Closed mhubii closed 5 months ago
The weights you are using are for the Depth Anything architecture "da-*.pt". The weighs for the midas models "mi-*.pt" seem to have failed to upload, will rectify this and make the names clearer.
maybe good to make them mutually exclusive in load_model
Inferring the model type from the weights file would hide important details from the user, I have added a clear error message instead.
model_type = "midas"
weights_path = "da-sup-temp.pt"
Yields