Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Because the path to the file is hardwired inside the script :
To make it possible to pass it as a parameter, you need to change it like this:
model_path = 'models/RRDB_ESRGAN_x4.pth'
import sys
model_path = sys.argv[1]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question