xywwww commited on
Commit
4a9b2af
·
verified ·
1 Parent(s): 5b41b81

Rename app2.py to app.py

Browse files
Files changed (1) hide show
  1. app2.py → app.py +9 -5
app2.py → app.py RENAMED
@@ -17,12 +17,16 @@ from ldm.models.diffusion.ddpm import LatentDiffusion
17
 
18
 
19
 
 
 
 
 
 
 
 
20
  model = create_model('./models/cldm_v21_512_latctrl_coltrans.yaml').cpu()
21
- # /checkpoints/epoch=25-step=112553.ckpt
22
- pipeline = TrellisImageTo3DPipeline.from_pretrained("xywwww/scene_diffusion/checkpoints/epoch=25-step=112553.ckpt")
23
- model.load_state_dict(load_state_dict('xywwww/scene_diffusion/checkpoints/epoch=25-step=112553.ckpt', location='cuda'),strict=False)
24
- pipeline = TrellisImageTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-image-large")
25
- model = model.cuda()
26
  ddim_sampler = DDIMSampler(model)
27
 
28
 
 
17
 
18
 
19
 
20
+ # model = create_model('./models/cldm_v21_512_latctrl_coltrans.yaml').cpu()
21
+ # # /checkpoints/epoch=25-step=112553.ckpt
22
+ # pipeline = TrellisImageTo3DPipeline.from_pretrained("xywwww/scene_diffusion/checkpoints/epoch=25-step=112553.ckpt")
23
+ # model.load_state_dict(load_state_dict('xywwww/scene_diffusion/checkpoints/epoch=25-step=112553.ckpt', location='cuda'),strict=False)
24
+ # pipeline = TrellisImageTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-image-large")
25
+ # model = model.cuda()
26
+ # ddim_sampler = DDIMSampler(model)
27
  model = create_model('./models/cldm_v21_512_latctrl_coltrans.yaml').cpu()
28
+ ckpt = hf_hub_download(repo_id="xywwww/scene_diffusion", filename="checkpoints/epoch=25-step=112553.ckpt")
29
+ model.load_state_dict(load_state_dict(ckpt), strict=False)
 
 
 
30
  ddim_sampler = DDIMSampler(model)
31
 
32