Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Can't run mnist example to verify installation, using conda env #4110

Closed
politecat314 opened this issue Aug 25, 2021 · 1 comment
Closed

Comments

@politecat314
Copy link
Contributor

politecat314 commented Aug 25, 2021

I installed nni as in the readme.md by doing
python -m pip install --upgrade nni

Under the section to verify installation, I followed the steps
git clone -b v2.4 https://github.com/Microsoft/nni.git

However, after this, when I do
nnictl create --config nni\examples\trials\mnist-pytorch\config_windows.yml
as in the readme.md, I get ERROR: Please set correct config path!

So when I checked the directory nni\examples\trials\mnist-pytorch\config_windows.yml, config_windows.yml file doesn't even exist! So I think this is an issue with outdate readme.md?

Everything works as expected when I do:
nnictl create --config nni/examples/trials/mnist-pytorch/config.yml

Environment:

  • NNI version: 2.4
  • Client OS: Windows 10
  • Python version: 3.9.6
  • conda env

How to reproduce it?:
Create a virtual env using conda and activate it. Do:
python -m pip install --upgrade nni
git clone -b v2.4 https://github.com/Microsoft/nni.git
nnictl create --config nni\examples\trials\mnist-pytorch\config_windows.yml

@JunweiSUN
Copy link
Contributor

Just use nni\examples\trials\mnist-pytorch\config.yml and change the command python3 mnist.py to python mnist.py in that file. The doc may have not be updated. BTW, you may need to use v2.3 since there is a issue in v2.4, see #4108

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

No branches or pull requests

2 participants