yava-code commited on
Commit
93dbc6e
·
verified ·
1 Parent(s): 60ee951

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: mit
4
+ tags:
5
+ - pytorch
6
+ - image-classification
7
+ - satellite-imagery
8
+ - computer-vision
9
+ - eurosat
10
+ datasets:
11
+ - eurosat
12
+ metrics:
13
+ - accuracy
14
+ pipeline_tag: image-classification
15
+ ---
16
+
17
+ # SimpleNet — EuroSAT Land-Use Classifier
18
+
19
+ Lightweight CNN (~850K params) trained from scratch on the EuroSAT dataset
20
+ for 10-class satellite image classification.
21
+
22
+ ## Usage
23
+
24
+ ```python
25
+ import torch
26
+ from huggingface_hub import hf_hub_download
27
+
28
+ # Download
29
+ weights = hf_hub_download(repo_id="yava-code/eurosat-simplenet", filename="best_model.pth")
30
+
31
+ # Load (you need model.py from this repo)
32
+ from model import SimpleNet, CLASS_NAMES
33
+ model = SimpleNet()
34
+ model.load_state_dict(torch.load(weights, map_location="cpu"))
35
+ model.eval()
36
+ ```
37
+
38
+ ## Architecture
39
+ 4 convolutional blocks (Conv→BN→ReLU→Pool) + FC classifier.
40
+ Channels: 3→32→64→128→256. Spatial: 64→32→16→8→4.
41
+
42
+ ## Training
43
+ - **Dataset**: EuroSAT (27,000 images, 10 classes)
44
+ - **Optimizer**: Adam (lr=1e-3, StepLR γ=0.1 every 5 epochs)
45
+ - **Augmentations**: Flip, Rotation ±15°, ColorJitter
46
+ - **Epochs**: 20
47
+
48
+ ## Demo
49
+ 👉 [Try the live demo on Spaces](https://huggingface.co/spaces/yava-code/eurostat)