Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[request] can torch.hub.load("intel-isl/MiDaS", midas_model, trust_repo=True) load from local? #509

Open
t00350320 opened this issue Nov 15, 2024 · 0 comments

Comments

@t00350320
Copy link

t00350320 commented Nov 15, 2024

load midas model from ComfyUI/models/midas/checkpoints/dpt_hybrid_384.pt
and use loca ComfyUI/models/midas/intel-isl_MiDaS_master
my env show some errors when connect to torch.hub,

midas = torch.hub.load("intel-isl/MiDaS", midas_model, trust_repo=True)
midas_transforms = torch.hub.load("intel-isl/MiDaS", "transforms")

and the github repo intel-isl/MiDaS can't be reached correctly,
can I load the "intel-isl/MiDaS", "transforms" from local file path as dpt_hybrid_384.pt did?
thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant