SPPNet
PyTorch for classification《 Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition》
Install / Use
/learn @mmmmmmiracle/SPPNetREADME
SPP-Net
Dataset
http://www.robots.ox.ac.uk/~vgg/data/flowers/102/
1. Dataset images ----> 102flowers.tgz
2. The image labels ----> imagelabels.mat
3. The data splits ----> setid.mat
Train
Single-size training
$ python single.py
image size: [(original_h,original_w)]
BATCH=1
EPOCH=20
====> accuracy ≈ 60% So Bad!!!
Multi-size training
$ python multi.py
image size: [(350,350), (400,400), (450,450), (500,500)]
BATCH=32
EPOCH=10
====> accuracy ≈ 70% So Bad!!!
TensorBoardX
$ tensorboard --logdir='./log_single' --port=6006
or
$ tensorboard --logdir='./log_multi' --port=6006
Then, open http://localhost:6006/ on your web browser.
Infer
$ python infer.py
model_path = './data/xxxx'
iamge_path = './data/xxxx'
Paper
《Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition》

layer = (13*13)
level = [3,2,1]
pool 3x3
window size = ceil[13/3] = 5
stride size = floor[13/3] = 4
pool 2x2
window size = ceil[13/3] = 7
stride size = floor[13/3] = 6
pool 1x1
window size = ceil[13/3] = 13
stride size = floor[13/3] = 13

Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
