What's the most elegant && expected way to infere with my trained checkpoint and modified config? #2159
Unanswered
ryougishikifor214
asked this question in
How-to
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Target
inference within my trained checkpoint and modified config, which is a SISR task.
What Had I done
Once I used
mmsegmentation
providingmmseg.apis.init_model
andmmseg.apis.inference_model
, whereinference_model
is passed through img and model created byinit_model
.However,
mmagic
doesn't provideinference_model
and there are onlyinit_model
andMMagicInferencer
.I tried to use
MMagicInferencer
instead but occurred some errors. It seems I didn't pass enough parameters for this interface to initialize a model? or If I set model name in the list like "swinir", the mmagic will try to load its checkpoint from openmmlab?For init without
model_name
:It cause the following error:
For init with
model_name
=swinir
I tried to find our tutorials but it only showed the example for pretrained model.
problem
init_model
to construct a model, and use in way like "results = model(inputs)"Beta Was this translation helpful? Give feedback.
All reactions