Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,11 @@ from huggingface_hub import hf_hub_download
|
|
7 |
|
8 |
# Initialize the model and other components
|
9 |
# config = "./models/cldm_v21_512_latctrl_coltrans.yaml'"
|
10 |
-
model = create_model('./models/cldm_v21_512_latctrl_coltrans.yaml').
|
11 |
ckpt = hf_hub_download(repo_id="xywwww/scene_diffusion", filename="checkpoints/epoch=25-step=112553.ckpt")
|
12 |
print(ckpt)
|
13 |
model.load_state_dict(load_state_dict(ckpt, location='cuda'), strict=False)
|
|
|
14 |
# model = load_model_checkpoint(model, ckpt)
|
15 |
ddim_sampler = DDIMSampler(model)
|
16 |
|
|
|
7 |
|
8 |
# Initialize the model and other components
|
9 |
# config = "./models/cldm_v21_512_latctrl_coltrans.yaml'"
|
10 |
+
model = create_model('./models/cldm_v21_512_latctrl_coltrans.yaml').cuda()
|
11 |
ckpt = hf_hub_download(repo_id="xywwww/scene_diffusion", filename="checkpoints/epoch=25-step=112553.ckpt")
|
12 |
print(ckpt)
|
13 |
model.load_state_dict(load_state_dict(ckpt, location='cuda'), strict=False)
|
14 |
+
model = model.cuda()
|
15 |
# model = load_model_checkpoint(model, ckpt)
|
16 |
ddim_sampler = DDIMSampler(model)
|
17 |
|