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

cpu only #128

Open
qq1243196045 opened this issue Jul 22, 2021 · 1 comment
Open

cpu only #128

qq1243196045 opened this issue Jul 22, 2021 · 1 comment

Comments

@qq1243196045
Copy link

I want to use it with pytorch-cuponly ,what should I do?
thanks!!

@robator0127
Copy link

robator0127 commented Apr 3, 2023

first create a conda virtual environment, where python version is 3.6
conda create -n pytorch_cpu python=3.6
then confirm it
conda activate pytorch_cpu,python --version(it should be )
second,install torch and torchvision, note the version must be matched,in this project,torch version is 0.4.0(cpu),torchvision version is 0.2.0
pip install http://download.pytorch.org/whl/cpu/torch-0.4.0-cp36-cp36m-linux_x86_64.whl
pip install torchvision==0.2.0
third, other packages should also be matched,whose version is earlier than now.the packages is numpy,cffi,cython,the version which i used is as follows:
pip install cffi==1.8.2 -i https://mirror.baidu.com/pypi/simple
pip install numpy==1.15.0
pip install cython==0.27.3 -i https://mirror.baidu.com/pypi/simple
then,you can pass the first step 'sh make.sh',but the whole project is based on gpu,so cpu version can't work without any change.if you delete the cuda related code ,it may work

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