xinntao / Real-ESRGAN

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.
BSD 3-Clause "New" or "Revised" License
28.45k stars 3.57k forks source link

inference_realesrgan.py how work on multi-gpu? #785

Open siestina opened 7 months ago

siestina commented 7 months ago

inference_realesrgan.py have argument: parser.add_argument('-g', '--gpu-id', type=int, default=None, help='gpu device to use (default=None) can be 0,1,2 for multi-gpu') but cause exception: error: argument -g/--gpu-id: invalid int value: '0,1'

smilekitty7 commented 2 months ago

hi, i've encountered the same problem, have you solved it? @siestina

siestina commented 2 months ago

hi, i've encountered the same problem, have you solved it? @siestina

I didn't solve it,but different jobs can work on different gpus