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

how to run on cpu enviroment #32

Closed
peichenzhong opened this issue Oct 15, 2019 · 12 comments
Closed

how to run on cpu enviroment #32

peichenzhong opened this issue Oct 15, 2019 · 12 comments
Labels

Comments

@peichenzhong
Copy link

bash ./scripts/shrec/train.sh
THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1549630534704/work/torch/csrc/cuda/Module.cpp line=34 error=35 : CUDA driver version is insufficient for CUDA runtime version
Traceback (most recent call last):
File "train.py", line 9, in
opt = TrainOptions().parse()
File "/home/peichen/python_test/MeshCNN/options/base_options.py", line 54, in parse
torch.cuda.set_device(self.opt.gpu_ids[0])
File "/home/peichen/anaconda3/envs/meshcnn/lib/python3.6/site-packages/torch/cuda/init.py", line 264, in set_device
torch._C._cuda_setDevice(device)
RuntimeError: cuda runtime error (35) : CUDA driver version is insufficient for CUDA runtime version at /opt/conda/conda-bld/pytorch_1549630534704/work/torch/csrc/cuda/Module.cpp:34

@ankitpatnala
Copy link

add an argument --gpu_ids -1/

@peichenzhong
Copy link
Author

and python test.py --gpu_ids -1 --dataroot datasets
Running Test
loaded mean / std from cache
Traceback (most recent call last):
File "test.py", line 25, in
run_test()
File "test.py", line 12, in run_test
model = create_model(opt)
File "/home/peichen/python_test/MeshCNN/models/init.py", line 3, in create_model
model = ClassifierModel(opt)
File "/home/peichen/python_test/MeshCNN/models/mesh_classifier.py", line 33, in init
self.gpu_ids, opt.arch, opt.init_type, opt.init_gain)
File "/home/peichen/python_test/MeshCNN/models/networks.py", line 102, in define_classifier
opt.resblocks)
File "/home/peichen/python_test/MeshCNN/models/networks.py", line 132, in init
norm_args = get_norm_args(norm_layer, self.k[1:])
File "/home/peichen/python_test/MeshCNN/models/networks.py", line 38, in get_norm_args
raise NotImplementedError('normalization layer [%s] is not found' % norm_layer.func.name)
NotImplementedError: normalization layer [BatchNorm2d] is not found

how to deal with it ??thank

@peichenzhong
Copy link
Author

torch_mask = torch.from_numpy(edges_mask.copy())
TypeError: can't convert np.ndarray of type numpy.bool_. The only supported types are: double, float, float16, int64, int32, and uint8.

@ankitpatnala
Copy link

you can convert the type to uint8
I had the same issue as i created the environment from the repo's environment.yml file which has pytorch 1.0 but the current code's dependency is pytorch 1.2.0. So the author recommended me to use the old checkout of this branch which somehow works.

@peichenzhong
Copy link
Author

so i should updata my pytorch into 1.2.0 ??? i have a try

@ankitpatnala
Copy link

ankitpatnala commented Oct 16, 2019

i dont know the author suggested me to use the old checkout

please follow this link:
#30 (comment)

but author has changed the environment file in her latest commit which was 6 hours ago. May be you can update your branch and rerun the scripts.

@peichenzhong
Copy link
Author

thank , this project is running ,but i have a problem how to watch the layer or models on the tensorboardx???

@peichenzhong
Copy link
Author

i want to watch the graph ,what should i do

@ankitpatnala
Copy link

ankitpatnala commented Oct 20, 2019

I never used tensorboard but you can find it's documentation .you can save the checkpoints on a file and try to open the tensboard logdir on other terminal upon which it will give you a local host IP which you can run in your browser. Before that install tensorboard packages as it is not present in the environment.yml file

@ranahanocka ranahanocka added the question FAQ label Oct 21, 2019
@peichenzhong
Copy link
Author

peichenzhong commented Oct 25, 2019

i hava some problem that how could i compute the input edge feature which is a 5-dimensional vector every edge??? Anyway , i am confused about the edges value.

@peichenzhong
Copy link
Author

i hava some problem that how could i compute the input edge feature which is a 5-dimensional vector every edge??? Anyway , i am confused about the edges value.

@ranahanocka
Copy link
Owner

hi @peichenzhong ,

i hava some problem that how could i compute the input edge feature which is a 5-dimensional vector every edge??? Anyway , i am confused about the edges value.

I don't understand your question. Please go through the examples in this Github and follow the instructions in the README, I think it will clarify most of your problems. Also, you can read through the Github Issues, which might also answer some questions.

Thanks & Good luck!
-Rana

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

No branches or pull requests

3 participants