Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on installing cortex-DIM #14

Closed
masoudpz opened this issue Apr 23, 2019 · 10 comments
Closed

error on installing cortex-DIM #14

masoudpz opened this issue Apr 23, 2019 · 10 comments

Comments

@masoudpz
Copy link

Hi and thanks for your paper,
I see this error when i run
pip install .

Could not find a version that satisfies the requirement cortex==0.13a0 (from cortex-DIM==0.13) (from versions: 0.1a0, 0.11)
No matching distribution found for cortex==0.13a0 (from cortex-DIM==0.13)

What's wrong?

@rdevon
Copy link
Owner

rdevon commented Apr 23, 2019

Did you install cortex dev branch? You need to clone and install from source.

@masoudpz
Copy link
Author

thanks for your response. I cloned Dev branch and reinstall cortex. it was ok. now when I run
python scripts/main.py local classifier --d.source CIFAR10 -n DIM_CIFAR10 --t.epochs 1000
after downloading cifar10 I see below Error :

cortex/built_ins/datasets/torchvision_datasets.py", line 142, in handle
    uniques = sorted(np.unique(labels).tolist())
UnboundLocalError: local variable 'labels' referenced before assignment

@rdevon
Copy link
Owner

rdevon commented Apr 24, 2019

What version of torchvision are you using? (e.g., do python -c "import torchvision; print(torchvision.__version__)") If it's not >= 0.2.2, do a pip install torchvision --upgrade (or install cortex again with --upgrade).

@rdevon
Copy link
Owner

rdevon commented Apr 24, 2019

I just added a force on the torchvision version:
rdevon/cortex@71a5a5e
So that should fix your problem.

@masoudpz
Copy link
Author

masoudpz commented Apr 25, 2019

thanks again, previous error was for torchvision version, after updating disappeared.
now in model setup i have below error
I've installed last version of cortex-dev branch.

cortex_DIM/models/controller.py", line 154, in build
    config_dict.update(**mlp_configs)
NameError: name 'mlp_configs' is not defined

@rdevon
Copy link
Owner

rdevon commented Apr 25, 2019

Ah, thanks for finding that bug. Should be fixed:
bac4765

@masoudpz
Copy link
Author

thanks for your follow up.
when i can clone again and test the code?

@rdevon
Copy link
Owner

rdevon commented Apr 28, 2019

Now should be fine

@masoudpz
Copy link
Author

masoudpz commented Apr 29, 2019

every thing is ok now. thanks alot for your support

@rdevon rdevon closed this as completed Apr 29, 2019
@masoudpz
Copy link
Author

masoudpz commented Jul 17, 2019

Hi Dr,
I've cloned your repo and although i've cloned cortex-dev branch I get

Could not find a version that satisfies the requirement cortex==0.13a0 (from cortex-DIM==0.13) (from versions: 0.1a0, 0.11)
No matching distribution found for cortex==0.13a0 (from cortex-DIM==0.13)

again.what is your idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants