@@ -365,12 +365,22 @@ def run_3dphoto(device, img_rgb, img_depth, inputnames, outpath, gen_inpainted_m
365
365
# create paths to model if not present
366
366
os .makedirs ('./models/3dphoto/' , exist_ok = True )
367
367
368
- ensure_file_downloaded (edgemodel_path ,
369
- "https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/edge-model.pth" )
370
- ensure_file_downloaded (depthmodel_path ,
371
- "https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/depth-model.pth" )
372
- ensure_file_downloaded (colormodel_path ,
373
- "https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/color-model.pth" )
368
+ ensure_file_downloaded (
369
+ edgemodel_path ,
370
+ ["https://huggingface.co/spaces/Epoching/3D_Photo_Inpainting/resolve/e389e564fd2a55cf/checkpoints/edge-model.pth" ,
371
+ "https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/edge-model.pth" ],
372
+ "b1d768bd008ad5fe9f540004f870b8c3d355e4939b2009aa4db493fd313217c9" )
373
+ ensure_file_downloaded (
374
+ depthmodel_path ,
375
+ ["https://huggingface.co/spaces/Epoching/3D_Photo_Inpainting/resolve/e389e564fd2a55cf/checkpoints/depth-model.pth" ,
376
+ "https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/depth-model.pth" ],
377
+ "2d0e63e89a22762ddfa8bc8c9f8c992e5532b140123274ffc6e4171baa1b76f8" )
378
+ ensure_file_downloaded (
379
+ colormodel_path ,
380
+ ["https://huggingface.co/spaces/Epoching/3D_Photo_Inpainting/resolve/e389e564fd2a55cf/checkpoints/color-model.pth" ,
381
+ "https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/color-model.pth" ],
382
+ "383c9b1db70097907a6f9c8abb0303e7056f50d5456a36f34ab784592b8b2c20"
383
+ )
374
384
375
385
print ("Loading edge model .." )
376
386
depth_edge_model = Inpaint_Edge_Net (init_weights = True )
0 commit comments