xinntao / Real-ESRGAN

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

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

Open siestina opened 4 months ago

siestina commented 4 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 3 weeks ago

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

siestina commented 3 weeks 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