Ignite: Requirements

Created on 11 Nov 2020  ยท  9Comments  ยท  Source: pytorch/ignite

โ“ Questions/Help/Support

Why there is no pytorch in requirements-dev.txt?
Also is it okay to add environment.yml for conda users?

cc: @vfdev-5

question

All 9 comments

@ydcjeff torch is a hard requirement (see setup.py) vs those from requirements-dev.txt which a sort of optional.

Also is it okay to add environment.yml for conda users?

I was thinking about that previously and I'm not sure what to add there. If we install ignite from conda

conda install ignite -c pytorch

we already have a minimum deps working library. What do you think ?

I see! so contributors feel free to create their own env as the only req is torch...
we can add pytorch, python and -r requirements-dev.txt in environement.yml

we can add pytorch, python and -r requirements-dev.txt in environement.yml

Well, yes, we can similarly provide a environement-dev.yml file and update contributing guide to say how to use it with conda...

Could you also please check if we missed torchvision dependency ? I mean to install pytorch + requirements-dev.txt, see if torchvision was not installed and run tests. Probably it should fail as torchvision is missing...

@vfdev-5 do you mean examples? I install pytorch + requirements-dev.txt and tests are passing.

@ydcjeff oh, yes, that's true, I though we used torchvision somewhere as test dependency... Not yet. Thanks for checking that !

@vfdev-5 how about we put torch in requirements-dev.txt? and add -r requirements-dev.txt in environment.yml if we want.
(we don't need it anymore, I think) I found we are installing torch torchvision separately with conda and follow up with -r requirements-dev.txt with pip.
so if we add torch in requirements-dev.txt, we can install all deps with pip install -r requirements-dev.txt -f https://download.pytorch.org/whl/cpu/torch_stable.html all in one command. no need for conda and caching can also be done in one step both stable and nightly replacing the url

Thanks for the idea, however i'm hesitating to remove conda for now. Let's keep it as it is.
As for caching, can't we put multiple paths to actions/cache ?

Yes we can but caching one step is just a suggestion

@ydcjeff I think we can close this issue as solved. Let me close it and feel free to reopen if needed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vfdev-5 picture vfdev-5  ยท  4Comments

elanmart picture elanmart  ยท  4Comments

jphdotam picture jphdotam  ยท  4Comments

CreateRandom picture CreateRandom  ยท  3Comments

sisp picture sisp  ยท  3Comments