Machine-Learning-Collection
Machine-Learning-Collection copied to clipboard
Error in train.py
C:\Users\hp\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\cuda\amp\grad_scaler.py:118: UserWarning: torch.cuda.amp.GradScaler is enabled, but CUDA is not available. Disabling.
warnings.warn("torch.cuda.amp.GradScaler is enabled, but CUDA is not available. Disabling.")
0%| | 0/9 [01:03<?, ?it/s]
Traceback (most recent call last):
File "c:\Users\hp\VSCode projcts\trainunet.py", line 143, in
@Daisytmzkae it seems like CUDA is not available in your device . you should train on GPU for this function not CPU