fix(ci): download model from Hugging Face instead of storing in repo
- Remove binary model artifacts tracked in repo (.tflite, saved_model, tfjs model.json) - CI now downloads best_model.keras from Hugging Face Hub (MythEclipse2737/corn-leaf-disease-classifier) - Add save_model.py step before convert_onnx.py in CI pipeline - Remove LFS patterns from .gitattributes (no longer needed) - Remove lfs:true from checkout action The model is fetched at CI time using HF_TOKEN secret — no large binary files stored in git. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+1
-6
@@ -1,6 +1 @@
|
||||
best_model/best_model.keras filter=lfs diff=lfs merge=lfs -text
|
||||
model/saved_model/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
|
||||
model/tfjs_model/*.bin filter=lfs diff=lfs merge=lfs -text
|
||||
**/best_model.keras filter=lfs diff=lfs merge=lfs -text
|
||||
**/variables.data* filter=lfs diff=lfs merge=lfs -text
|
||||
**/tfjs_model/*.bin filter=lfs diff=lfs merge=lfs -text
|
||||
# Model artifacts are downloaded from Hugging Face at CI time — not stored in this repo.
|
||||
|
||||
Reference in New Issue
Block a user