Views
No views yet
Stem: Conv2D(3→32) + BatchNorm + ReLU6
Features: 7× Depthwise Separable Conv blocks
- Block 0: 32→64 (stride 2)
- Block 1: 64→128 (stride 2)
- Block 2-3: 128→256 (stride 2)
- Block 4-6: 256→512
- SE (Squeeze-Excitation) attention in each block
Classifier: AdaptiveAvgPool → FC(512→256) → FC(256→120)1wget https://huggingface.co/2c6829/litecnn-pure-cpp/resolve/main/model_weights.bin
2wget https://huggingface.co/2c6829/litecnn-pure-cpp/resolve/main/breed_classes.json1# Clone the inference server
2git clone https://github.com/stupidcoderJung/litecnn-pure-cpp
3cd litecnn-pure-cpp
4
5# Place model files
6mv model_weights.bin weights/
7mv breed_classes.json .
8
9# Build
10mkdir -p build && cd build
11cmake .. -DCMAKE_BUILD_TYPE=Release
12make -j4
13
14# Run server
15./litecnn_server --port 80801# Health check
2curl http://localhost:8080/health
3
4# Predict
5curl -X POST http://localhost:8080/predict \
6 -F "image=@dog.jpg"1{
2 "predictions": [
3 {
4 "class_id": 81,
5 "score": 0.95,
6 "breed_en": "Border collie",
7 "breed_ko": "보더 콜리"
8 }
9 ]
10}| Metric | Value |
|---|---|
| Memory (RSS) | 26 MB |
| Binary Size | 803 KB |
| Weights Size | 4.0 MB |
| Inference Time | <100ms (CPU) |
model_weights.bin (4.0 MB) - Model weights in binary formatbreed_classes.json (7.4 KB) - 120 dog breeds (English + Korean)extract_weights.py - PyTorch checkpoint → binary converter1@software{litecnn_pure_cpp_2026,
2 author = {LiteCNN Team},
3 title = {LiteCNN Pure C++ Inference Server},
4 year = {2026},
5 url = {https://github.com/stupidcoderJung/litecnn-pure-cpp}
6}