WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.23k stars 178 forks source link

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

Open t00350320 opened 1 week ago

t00350320 commented 1 week ago

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 searched correctly, can I load the "intel-isl/MiDaS", "transforms" from local file path as dpt_hybrid_384.pt did? thanks a lot