rdroste / unisal

Unified Image and Video Saliency Modeling (ECCV 2020)
https://arxiv.org/abs/2003.05477
Apache License 2.0
128 stars 36 forks source link

Question about cudatoolkit and environment #2

Closed kayleeliyx closed 4 years ago

kayleeliyx commented 4 years ago

Hi! I'm trying to run this on my laptop. When I try:

conda install pytorch=1.0 torchvision cudatoolkit=9.2 -c pytorch

I got this:

Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - cudatoolkit=9.2

Current channels:

  - https://conda.anaconda.org/pytorch/win-64
  - https://conda.anaconda.org/pytorch/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

May I ask what kind of cuda requirements for training this project? Is it possible to run without GPU or CUDA?

Even I tried:

conda install pytorch=1.0 torchvision -c pytorch

I got a version incompatibility.

Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
Examining python=3.8:  33%|██████████████                            | 1/3 [00:00<00:0Examining python=3.8:  67%|████████████████████████████              | 2Examining torchvision:  67%|███████████████████████████▎             | 2Examining conflict for pytorch python torchvision:  33%|████▎        | 1/3 [00:00<00:00,  7.81iExamining conflict for pytorch python torchvision:  67%|████████▋    | 2/3 [00:00<00:00, 15Examining conflict for python torchvision:  67%|██████████████       | 2/3 [00:00<00:0Examining conflict for python torchvision: 100%|█████████████████████| 3/3 [00:failed

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - torchvision -> python[version='>=2.7,<2.8.0a0']

Your python: python=3.8

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package ca-certificates conflicts for:
python=3.8 -> openssl[version='>=1.1.1e,<1.1.2a'] -> ca-certificates
torchvision -> python -> ca-certificates

Thank you so much for your help.

rdroste commented 4 years ago

Hi, sorry for the delay in getting back to you. It seems that you're installing the environment on a Windows machine? Have you tried running the command for installing PyTorch on Windows from the pytorch.org website?

conda install pytorch=1.0 torchvision cudatoolkit=9.2 -c pytorch -c defaults -c numba/label/dev
rdroste commented 4 years ago

@karliell have you been able to resolve this issue? Did my suggestion help? Regarding your question about the computational requirements: You will probably need a GPU in order to train the model - it will simply take too long on a CPU. However, you can generate predictions without a GPU. Depending on the CPU, the should be able to process around 2 images per second.

rdroste commented 4 years ago

Closing this issue due to inactivity