I need args and kwargs for load model. But how can I know these parameters? Sorry if this is a strange question. But I don’t know the answer. I am downloading a MIDAS model from this source MiDaS. And I save it to a file. But to get a model, I need to create a model with parameters that I don’t know. Help?!)
update!
I looked at the parameters in
class MidasNet(BaseModel):
    def __init__(self, path=None, features=256, non_negative=True):

And indicated them when creating the model. In this model, I want to load a saved network. the path was not copied.
But I got an error.

Error (s) in loading state_dict for Model:
Unexpected key (s) in state_dict: “pretrained.model.cls_token”, “pretrained.model.pos_embed”, …

And then there are a lot of, as I understand it, network settings that I did not specify. What should I do? Can you tell me ?!)