Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Custom CNN Model for Image Classification
|
| 3 |
+
|
| 4 |
+
This repository contains a custom ResNet-like CNN trained for image classification. The model is provided in both PyTorch (`pytorch_model.bin`) and Safetensors (`model.safetensors`) formats for easy inference and transfer.
|
| 5 |
+
|
| 6 |
+
## Usage
|
| 7 |
+
|
| 8 |
+
- Load model weights and architecture from Hugging Face Hub.
|
| 9 |
+
- Preprocess images using the provided mean/std and img_size in `preprocessor_config.json`.
|
| 10 |
+
- See `train.py` for full training and inference pipeline.
|
| 11 |
+
|
| 12 |
+
## Files
|
| 13 |
+
- `pytorch_model.bin`: PyTorch weights
|
| 14 |
+
- `model.safetensors`: Safetensors weights
|
| 15 |
+
- `config.json`: Model config
|
| 16 |
+
- `preprocessor_config.json`: Preprocessing config
|
| 17 |
+
- `train.py`: Source code
|
| 18 |
+
- `prediction.csv`: Example predictions
|
| 19 |
+
|
| 20 |
+
## Citation
|
| 21 |
+
If you use this model, please cite the repository: https://huggingface.co/DungND1107/IntroAIver2
|