Closed cianeastwood closed 2 years ago
Hi!
This simplest way would be to clone the repo:
cd disent
pip3 install requirements.txt
pip3 install requirements-experiment.txt
run_*
you should be able to remove in the next version.
PYTHONPATH=. python3 experiment/run.py framework=betavae dataset=cars3d framework.beta=0.01 \
run_location=local_cpu run_launcher=local run_logging=none # config bug workaround
If you would like to enable logging to W&B you can enable this by adding or changing the following command line options:
PYTHONPATH=. python3 experiment/run.py framework=betavae dataset=cars3d framework.beta=0.01 \
run_location=local_cpu run_launcher=local \
run_logging=wandb settings.job.user="your_wandb_username" settings.job.project="your_wandb_project"
You'll notice if you look at the experiment/config/config.yaml
file, these command line options correspond to the options set in the defaults list at the top of the file.
- framework: betavae
or in the command line framework=betavae
would correspond to experiment/config/framework/betavae.yaml
.settings.job.user
correspond to actual keys in the config rather than the groups in the defaults lists. See the hydra config docs for more details. Definitely need to add this to the docs! Improvements to those are in the roadmap!
This has been fixed in 5695747c1e94420c024f1505d9b8a4b3c81ad610 release v0.3.4
The simplest command should now be:
PYTHONPATH=. python3 experiment/run.py framework=betavae dataset=cars3d
or adjusting beta:
PYTHONPATH=. python3 experiment/run.py framework=betavae dataset=cars3d framework.beta=0.01
This is fantastic!! Thank you for addressing this so quickly and thoroughly – appreciate it! The simple command really helps usability :)
No problem, glad to help!
Hi there,
What's the simplest way to train a VAE on cars3d with all the default settings? Is there a single command that does this, using all the yaml config files? E.g. cars3d needs to be downsampled to 64x64, and this is specified in its yaml file. Not very familiar with Hydra, so I'm not sure how to automatically load the yaml config files.
Thanks in advance, and for providing this great framework!