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
mmsegmentationprovidingmmseg.apis.init_modelandmmseg.apis.inference_model, whereinference_modelis passed through img and model created byinit_model.However,
mmagicdoesn't provideinference_modeland there are onlyinit_modelandMMagicInferencer.I tried to use
MMagicInferencerinstead 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=swinirI tried to find our tutorials but it only showed the example for pretrained model.
problem
init_modelto construct a model, and use in way like "results = model(inputs)"Beta Was this translation helpful? Give feedback.
All reactions