SmartForest-no / SegmentAnyTree

MIT License
42 stars 11 forks source link

Fix incorrect python script directory in run_inference.sh #7

Closed dluks closed 3 weeks ago

dluks commented 3 weeks ago

When running with Docker, the input was being set to $SOURCE_DIR (the input data directory) (see #6). This fails as the input directory is actually bound to:

/home/nibio/mutable-outside-world/bucket_in_folder

while the scripts live in:

/home/nibio/mutable-outside-world

This fixes this by setting a new SCRIPT_DIR variable which points to the actual scripts directory and sets the PYTHONPATH accordingly.

dluks commented 3 weeks ago

It seems that the configuration isn't quite set up to be particularly boilerplate-friendly for generalized use cases, so I've added a small change to the default eval.yaml config and .hydra/overrides.yaml.

I've also updated modify_eval.py to raise a SystemExit when no .ply files are found in the output directory.

maciekwielgosz commented 3 weeks ago

Thank you for fixes.