Hi everyone,
I’ve been working on porting a TensorFlow model for Real-Time Super-Resolution (GitHub - braindotai/Real-Time-Super-Resolution: 🔥 Real-time Super Resolution enhancement (4x) with content loss and relativistic adversarial optimization 🔥) to PyTorch over the past week. However, I’ve hit a roadblock and could use some help since there aren’t many resources available online that address my specific issue.
The model trains fine on the CPU, but when I try to run train.py
on the GPU (‘cuda’), I encounter the following error:
RuntimeError: iter.device(arg).is_cuda() INTERNAL ASSERT FAILED at "/opt/conda/conda-bld/pytorch_1695392035891/work/aten/src/ATen/native/cuda/Loops.cuh":89, please report a bug to PyTorch. argument 2: expected a CUDA device but found cpu
You can check out my repository here: GitHub - snehilchatterjee/Real-Time-Super-Resolution-PyTorch
To reproduce the error, you just need to run train.py
(no additional arguments required).
I’ve been stuck on this for a while and would appreciate any insights or suggestions on how to resolve this issue. Thank you in advance for your help!