Spaces:
Runtime error
Runtime error
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -10,13 +10,12 @@ import random
|
|
| 10 |
|
| 11 |
from pytorch_lightning import seed_everything
|
| 12 |
from annotator.util import resize_image, HWC3
|
| 13 |
-
from annotator.canny import CannyDetector
|
| 14 |
from cldm.model import create_model, load_state_dict
|
| 15 |
from cldm.ddim_hacked import DDIMSampler
|
| 16 |
from ldm.models.diffusion.ddpm import LatentDiffusion
|
| 17 |
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
model = create_model('./models/cldm_v21_512_latctrl_coltrans.yaml').cpu()
|
| 22 |
# /checkpoints/epoch=25-step=112553.ckpt
|
|
|
|
| 10 |
|
| 11 |
from pytorch_lightning import seed_everything
|
| 12 |
from annotator.util import resize_image, HWC3
|
|
|
|
| 13 |
from cldm.model import create_model, load_state_dict
|
| 14 |
from cldm.ddim_hacked import DDIMSampler
|
| 15 |
from ldm.models.diffusion.ddpm import LatentDiffusion
|
| 16 |
|
| 17 |
|
| 18 |
+
|
| 19 |
|
| 20 |
model = create_model('./models/cldm_v21_512_latctrl_coltrans.yaml').cpu()
|
| 21 |
# /checkpoints/epoch=25-step=112553.ckpt
|