DAI-Lab / SteganoGAN

SteganoGAN is a tool for creating steganographic images using adversarial training.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue in installing torch

sanjailal opened this issue · comments

  • SteganoGAN version or git commit: 0.1.2
  • Python version (output of python --version): 3.7.3
  • Pip version (output of pip --version): 19.3.1
  • Operating System: Windows

Description

Unable to install torch version 1.0.0

What I Did

I just tried installing steganogan using pip

pip install steganogan
ERROR: Could not find a version that satisfies the requirement torch>=1.0.0 (from steganogan) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch>=1.0.0 (from steganogan)

Hello @sanjailal thank you for opening this issue, as the error states, torch couldn't be installed.

In windows we recommend you to install the package as shown on the pytorch website, briefly, use the following command pip3 install torch===1.0.0 torchvision===0.2.1 -f https://download.pytorch.org/whl/torch_stable.html. This will download and install torch===1.0.0 which was used for developing SteganoGAN.

Once you have installed torch just go ahead and execute pip install steganogan, this time the installation should finish with no errors as the requierement is satisfied. Bear in mind to install it in the same virtualenv if you are using one.

Also, I have faced the following problem when executing SteganoGAN:
ImportError: DLL load failed: The specified module could not be found.
If you face the same problem just install the following C++ package in your system. https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

Let us know if this helped you to fix this problem.

When I tried the following command I still get this same error

ERROR: Could not find a version that satisfies the requirement torch===1.1.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch===1.1.0

When I tried the following command I still get this same error

ERROR: Could not find a version that satisfies the requirement torch===1.1.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch===1.1.0

Hello @sanjailal, the version of torch that you show doesn't match the one that I posted before. Make sure to execute the command below:

pip3 install torch===1.0.0 torchvision===0.2.1 -f https://download.pytorch.org/whl/torch_stable.html

I used the same command. Anyways I switched to Linux where it works seamlessly. Thank you for your support.