HRNet-Image-Classification
HRNet-Image-Classification copied to clipboard
How to train on single GPU
For I don't have multi-GPUS, I changed the GPUS = (0,0,0,0), but this error came RuntimeError: inputs must be on unique devices.
There is no doubt telling that this network working on more than one GPUS. So how do I change the code to run them on single GPU?
Find your corresponding yaml file, and then change its GPUs number to a separate 0.
Remove the GPUS:
from the yaml file that you are using. By default GPU is set to 0.
Refer: https://github.com/HRNet/HRNet-Image-Classification/blob/f760c988482cdb8a1f69b10b219d669721144582/lib/config/default.py#L23
@piyushchauhan @LvShuaiChao Hi, have you done any other operations? I have just simply changed the GPUs but got the error: RuntimeError: Default process group has not been initialized, please make sure to call init_process_group. Do you know how to solve it?