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

Problem with training on macOS #44

Open
Hongbo-Z opened this issue Jan 3, 2022 · 1 comment
Open

Problem with training on macOS #44

Hongbo-Z opened this issue Jan 3, 2022 · 1 comment

Comments

@Hongbo-Z
Copy link

Hongbo-Z commented Jan 3, 2022

I came across a problem when I train GG-CNN on Cornell Dataset on my MacBook Pro (15-inch, 2019)

python train_ggcnn.py --description training_example --network ggcnn --dataset cornell --dataset-path Cornell_Grasping_Dataset/

INFO:root:Loading Cornell Dataset...
INFO:root:Done
INFO:root:Loading Network...
Traceback (most recent call last):
File "train_ggcnn.py", line 272, in
run()
File "train_ggcnn.py", line 229, in run
net = net.to(device)
...
raise AssertionError("Torch not compiled with CUDA enabled")

@dougsm
Copy link
Owner

dougsm commented Jan 9, 2022

It looks like the code assumes you're training on GPU. You can change

device = torch.device("cuda:0")

to "cpu" instead and it should work on your computer, but it will be quite slow to train.

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