facebookresearch / ClassyVision

An end-to-end PyTorch framework for image and video classification
https://classyvision.ai
MIT License
1.59k stars 278 forks source link

Getting started Tutorial doesn't work #731

Closed jsuit closed 3 years ago

jsuit commented 3 years ago

So I'm trying to follow the getting_started tutorial. I cd into the folder that was just created by classy-project and run ./classy_train.py --config configs/template_config.json

I get the error message:

                       [--cfg {job,hydra,all}] [--package PACKAGE] [--run]
                       [--multirun] [--shell-completion]
                       [--config-path CONFIG_PATH] [--config-name CONFIG_NAME]
                       [--config-dir CONFIG_DIR] [--info]
                       [overrides [overrides ...]]
classy_train.py: error: ambiguous option: --config could match --config-path, --config-name, --config-dir
mannatsingh commented 3 years ago

Hi @jsuit ! It looks like you have hydra installed in your setup. Classy has experimental and undocumented hydra support - for the tutorial to work correctly, you will need to uninstall hydra.

mannatsingh commented 3 years ago

Closing this issue. Please feel free to reopen if removing hydra doesn't solve your issue.