Repository navigation
Inference artifact saving #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
9f76d05
a5986f4
9bb9c0d
593c87d
eb11741
79a9591
e3198e8
a854d77
9e7628f
c8e856c
3f659e7
c3e876b
3107256
f09b689
2b03320
72bdb54
6ee610d
1f60ebb
3c494f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,3 +12,7 @@ wandb | |
| /data | ||
| .idea | ||
| .editorconfig | ||
| checkpoints/ | ||
| segmentation_outputs/ | ||
| *.ckpt | ||
| *.onnx | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ stages: | |
| params: | ||
| - src/config.yaml: | ||
| deps: | ||
| - src/main.py | ||
| - src/main.py | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,7 @@ model: | |
| name: "fine_grained" # currently supporting resnet18, vit and inception_v3 | ||
|
|
||
| training: | ||
| batch_size: 32 | ||
| batch_size: 1 | ||
| learning_rate: 0.0001 | ||
| max_epochs: 100 | ||
| freeze: true | ||
|
|
@@ -36,6 +36,16 @@ training: | |
| step_size: 4 | ||
| gamma: 0.1 | ||
|
|
||
| augmentation: | ||
| enabled: true | ||
| horizontal_flip_p: 0.5 | ||
| vertical_flip_p: 0.2 | ||
| rotation_deg: 15 | ||
| brightness: 0.15 | ||
| contrast: 0.15 | ||
| saturation: 0.1 | ||
| hue: 0.02 | ||
|
|
||
| oversample: | ||
| oversample_factor: 4 | ||
| oversample_threshold: 1000 | ||
|
|
@@ -74,4 +84,18 @@ training: | |
| patience: 3 | ||
| mode: "min" | ||
|
|
||
| device: "gpu" | ||
| inference: | ||
| mask_size: 224 | ||
| export_onnx: true | ||
| checkpoint_path: "checkpoints/model.ckpt" | ||
| # wandb_artifact: "ghost-irim/ghost-irim/model-kx2co2o3:v0" | ||
| wandb_artifact: "ghost-irim/ghost-irim/best-model-inference-artifact-saving-vft1nd:v0" | ||
| wandb_project: "ghost-irim" | ||
| # Set to true to run inference on raw images (ONNX-style testing) | ||
| # Set to false to run inference on test dataset split | ||
| use_raw_images: false | ||
| # Path to directory containing raw images (relative to project root) | ||
| # raw_images_path: "test_images_qgis/10122025_193353" | ||
| # raw_images_path: "/home/adam/Documents/programming/tree-classification-irim/src/data/Abies_alba/train" | ||
| raw_images_path: "/home/adam/Documents/programming/tree-classification-irim/src/data/Robinia_pseudoacacia/train" | ||
| device: "cuda" | ||
|
Comment on lines
+87
to
+101
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The committed defaults make the repo configuration brittle/non-portable: (1)
raw_images_pathis an absolute, user-specific filesystem path; (2)wandb_artifactpoints to a specific run artifact; (3)export_onnx: trueenables export by default; and (4)training.batch_sizechanged from 32 to 1. Recommend reverting these to safe, portable defaults (e.g., comment out run-specific values, use relative example paths, setexport_onnx: falseby default, and restore a reasonable defaultbatch_size).