ViCCo-Group / thingsvision

Python package for extracting representations from state-of-the-art computer vision models
https://vicco-group.github.io/thingsvision/
MIT License
157 stars 21 forks source link

Fix CLI & minor improvements #116

Closed andropar closed 1 year ago

andropar commented 1 year ago

When installing from scratch into a fresh env, I ran into the following error when trying to use the CLI: ModuleNotFoundError: No module named 'bin'.. This seemed to be because of the location of the CLI python file. I moved the file into the main package and adjusted the setup.py accordingly.

After fixing that, I also noticed that running thingsvision from some other directory than the repo doesn't work, because the version check used an absolute path to the version file. Getting the version directly from the installed package fixes this.

I also added the default values for CLI arguments to the help strings and removed the TF warning, by setting the corresponding env variable.