was-node-suite-comfyui icon indicating copy to clipboard operation
was-node-suite-comfyui copied to clipboard

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

Open t00350320 opened this issue 1 year ago • 0 comments

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

t00350320 avatar Nov 15 '24 09:11 t00350320