S
S
swyt2020-08-27 17:07:37
Python
swyt, 2020-08-27 17:07:37

Why doesn't the model change in ESRGAN?

I am writing a model "1x_JPEG_00-20.pth" and using "Model path models/RRDB_ESRGAN_x4.pth.".
5f47bdbe14c87239817072.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2020-08-28
@shurshur

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]

And you should still learn the language you use, and not try to run anything in the hope of success. I'm not sure that this test script is designed for an arbitrary model, and not just for the specified one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question