firgiawann commited on
Commit
cf4cf76
·
verified ·
1 Parent(s): 4a15b42

Revise layout evaluation and training artifact sync update 32

Browse files
Files changed (1) hide show
  1. README.md +21 -9
README.md CHANGED
@@ -31,19 +31,19 @@ Versi ini difokuskan untuk tahap awal:
31
 
32
  ## Struktur UI
33
 
34
- - **Section 1 - Input & Proses**
35
- - input gambar (upload/webcam)
 
36
  - confidence threshold
37
  - advanced options:
38
  - gaya anotasi `Border + Label` atau `Label saja`
 
 
39
  - tombol proses
40
- - **Section 2 - Hasil Processing**
41
- - hasil gambar deteksi
42
- - ringkasan klasifikasi `person` vs `not person/background`
43
- - grafik jumlah person terdeteksi
44
- - file gambar evaluasi dan file CSV evaluasi lokal
45
- - **Menu Training** (accordion)
46
  - membaca dataset dari `dataset/train` dan `dataset/test`
 
47
  - jika label `.txt` YOLO belum ada, bisa aktifkan pseudo-label
48
  - training dijalankan di background process (server-side)
49
  - progres bisa dipantau kembali setelah reconnect (status + log + grafik)
@@ -53,9 +53,16 @@ Versi ini difokuskan untuk tahap awal:
53
  - file `results.csv` training tersedia sebagai arsip metrik lokal
54
  - file `training.log` dan `training_curve_latest.png` juga disimpan lokal
55
  - jika env Hugging Face diisi, `best.pt` otomatis di-sync ke repo HF
 
 
 
 
 
 
 
56
 
57
  Catatan:
58
- - evaluasi dilakukan pada kelas `Person` dan `Not Person/Background`.
59
  - panel evaluasi diperbarui otomatis setelah inferensi.
60
  - hasil confidence rendah/tinggi dapat diamati melalui slider confidence dan arsip CSV evaluasi.
61
  - UI otomatis menyesuaikan mode gelap perangkat (dark mode).
@@ -91,6 +98,7 @@ Opsional environment variable:
91
  - `HF_MODEL_REPO_TYPE` - tipe repo HF: `space` (default), `model`, atau `dataset`
92
  - `HF_TOKEN` - token untuk upload otomatis saat training selesai
93
  - `HF_DETECTION_DIR` - folder khusus di repo HF untuk auto-save hasil deteksi (default: `space_detection_archive`)
 
94
  - `HF_AUTOSYNC_ENABLED` - aktif/nonaktif auto-sync file repo (`true/false`)
95
  - `HF_AUTOSYNC_LOCAL_ONLY` - default `true`, artinya autosync hanya jalan dari lokal
96
  - `HF_AUTOSYNC_REALTIME` - default `false`; jika `true` baru watcher realtime aktif
@@ -111,6 +119,10 @@ Catatan auto-save hasil deteksi:
111
  - Setelah inferensi sukses, aplikasi menyimpan gambar anotasi ke `evaluation_outputs/` lokal.
112
  - Jika `HF_MODEL_REPO` terisi, gambar hasil deteksi dan `detection_log.csv` juga otomatis di-upload ke folder repo `HF_DETECTION_DIR`.
113
 
 
 
 
 
114
  Catatan auto-sync update file repo:
115
  - Default `HF_AUTOSYNC_ENABLED=false`, jadi tidak ada sync repo saat startup/runtime.
116
  - Jika ingin sync repo otomatis, aktifkan manual: `HF_AUTOSYNC_ENABLED=true`.
 
31
 
32
  ## Struktur UI
33
 
34
+ - **Tahap 1 - Pilih Model**
35
+ - mode inferensi
36
+ - pilihan model `YOLOv8n` atau `Best.pt`
37
  - confidence threshold
38
  - advanced options:
39
  - gaya anotasi `Border + Label` atau `Label saja`
40
+ - **Tahap 2 - Input Gambar**
41
+ - input gambar (upload/webcam)
42
  - tombol proses
43
+ - **Tahap 3 - Grafik dan Training**
44
+ - grafik count `Person` dan `Not Person/Background`
 
 
 
 
45
  - membaca dataset dari `dataset/train` dan `dataset/test`
46
+ - pilihan model awal training: `YOLOv8n` atau `Best.pt`
47
  - jika label `.txt` YOLO belum ada, bisa aktifkan pseudo-label
48
  - training dijalankan di background process (server-side)
49
  - progres bisa dipantau kembali setelah reconnect (status + log + grafik)
 
53
  - file `results.csv` training tersedia sebagai arsip metrik lokal
54
  - file `training.log` dan `training_curve_latest.png` juga disimpan lokal
55
  - jika env Hugging Face diisi, `best.pt` otomatis di-sync ke repo HF
56
+ - **Tahap 4 - Evaluasi**
57
+ - confusion matrix berbasis count objek `Person` dan `Not Person/Background`
58
+ - rumus Accuracy, Precision, Recall, dan F1 dengan substitusi angka
59
+ - **Tahap 5 - Hasil Gambar**
60
+ - hasil gambar deteksi
61
+ - ringkasan klasifikasi `person` vs `not person/background`
62
+ - file gambar evaluasi dan file CSV evaluasi lokal
63
 
64
  Catatan:
65
+ - evaluasi dilakukan pada kelas `Person` dan `Not Person/Background` berbasis count objek.
66
  - panel evaluasi diperbarui otomatis setelah inferensi.
67
  - hasil confidence rendah/tinggi dapat diamati melalui slider confidence dan arsip CSV evaluasi.
68
  - UI otomatis menyesuaikan mode gelap perangkat (dark mode).
 
98
  - `HF_MODEL_REPO_TYPE` - tipe repo HF: `space` (default), `model`, atau `dataset`
99
  - `HF_TOKEN` - token untuk upload otomatis saat training selesai
100
  - `HF_DETECTION_DIR` - folder khusus di repo HF untuk auto-save hasil deteksi (default: `space_detection_archive`)
101
+ - `HF_TRAINING_DIR` - folder khusus di repo HF untuk auto-save artefak training (default: `space_training_archive`)
102
  - `HF_AUTOSYNC_ENABLED` - aktif/nonaktif auto-sync file repo (`true/false`)
103
  - `HF_AUTOSYNC_LOCAL_ONLY` - default `true`, artinya autosync hanya jalan dari lokal
104
  - `HF_AUTOSYNC_REALTIME` - default `false`; jika `true` baru watcher realtime aktif
 
119
  - Setelah inferensi sukses, aplikasi menyimpan gambar anotasi ke `evaluation_outputs/` lokal.
120
  - Jika `HF_MODEL_REPO` terisi, gambar hasil deteksi dan `detection_log.csv` juga otomatis di-upload ke folder repo `HF_DETECTION_DIR`.
121
 
122
+ Catatan auto-save hasil training:
123
+ - Setelah training selesai, grafik training, `results.csv`, `training.log`, dan summary JSON disimpan ke folder repo `HF_TRAINING_DIR`.
124
+ - File grafik terbaru juga disalin ke `training_outputs/training_curve_latest.png` agar tetap bisa ditampilkan ulang setelah Space rebuild.
125
+
126
  Catatan auto-sync update file repo:
127
  - Default `HF_AUTOSYNC_ENABLED=false`, jadi tidak ada sync repo saat startup/runtime.
128
  - Jika ingin sync repo otomatis, aktifkan manual: `HF_AUTOSYNC_ENABLED=true`.