Closed danielsoy closed 1 year ago
Hey,
sorry for the inconvenience. There were ".cuda()"s which I changed to ".to(c.devices)"s in the latest commit. Please report if there are still issues with this.
With "cpu" for device in config.py everything should be set.
Hope that helps, Marco
the error poped, training with the latest commit. the one with :(c.devices).
running on colab with cpu enabled in config.py, and cpu as resource from google, fails too and shows: RuntimeError: No CUDA GPUs are available.
As it was trying to train with gpu, despite the selected device is cpu.
heres the full log:
Train class cable_gland
Traceback (most recent call last):
File "train_student.py", line 109, in
It seems like you don't use the latest commit. line 79 in model.py is https://github.com/marco-rudolph/AST/blob/47adbdce2f17ffe238a52e0bcb4c277b87652e8b/model.py#L79
bingo! mine says CUDA instead of c.device. Thanks , I see how it goes now...
no problem :)
Hi Marco, thanks for sharing your project.
I was trying to run train_student.py from CPU with device=cpu in config.py, but I have got:
Torch not compiled with CUDA enabled error.
Is there another device config that i should change, to train the model from CPU?
I could run all the scripts in colab, from GPU by the way.