Giter Club home page Giter Club logo

Comments (4)

nmichlo avatar nmichlo commented on June 5, 2024

Hi!

This simplest way would be to clone the repo:

  1. change your working directory to the root:
cd disent
  1. install the requirements
pip3 install requirements.txt
pip3 install requirements-experiment.txt
  1. run the experiment (this is the custom script we provide to load the hydra config files)
    • Unfortunately I see there is a config bug left over from research code that I am currently trying to extract into a separate project, meaning the general run settings are wrong. I have added a marker to fix this for the next release of disent. The command line options that start with 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.

  • These options correspond to the config files in their respective folders. eg. - framework: betavae or in the command line framework=betavae would correspond to experiment/config/framework/betavae.yaml.
  • You can add your own configurations this way (improvements to this are on the way so that you don't need to modify disent files/folders)!
  • The keys in the command line that are joined with full stops eg. 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!

from disent.

nmichlo avatar nmichlo commented on June 5, 2024

This has been fixed in 5695747 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

from disent.

cianeastwood avatar cianeastwood commented on June 5, 2024

This is fantastic!! Thank you for addressing this so quickly and thoroughly – appreciate it! The simple command really helps usability :)

from disent.

nmichlo avatar nmichlo commented on June 5, 2024

No problem, glad to help!

from disent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.