Robert001 commited on
Commit
11b57f1
1 Parent(s): c3c82a9

first commit

Browse files
annotator/uniformer/mmdet.zip DELETED
Binary file (688 kB)
 
annotator/uniformer_base/__init__.py CHANGED
@@ -13,8 +13,8 @@
13
 
14
 
15
  import os
16
- from annotator.uniformer.mmseg.apis import init_segmentor, inference_segmentor, show_result_pyplot
17
- from annotator.uniformer.mmseg.core.evaluation import get_palette
18
  from annotator.util import annotator_ckpts_path
19
 
20
  import pdb
 
13
 
14
 
15
  import os
16
+ from annotator.uniformer_base.mmseg.apis import init_segmentor, inference_segmentor, show_result_pyplot
17
+ from annotator.uniformer_base.mmseg.core.evaluation import get_palette
18
  from annotator.util import annotator_ckpts_path
19
 
20
  import pdb
app.py CHANGED
@@ -77,7 +77,8 @@ def inpainting(img, res, rand_h, rand_h_1, rand_w, rand_w_1):
77
 
78
 
79
  model = create_model('./models/cldm_v15_unicontrol.yaml').cpu()
80
- model.load_state_dict(load_state_dict('./ckpts/unicontrol.ckpt', location='cuda'), strict=False)
 
81
  model = model.cuda()
82
  ddim_sampler = DDIMSampler(model)
83
 
 
77
 
78
 
79
  model = create_model('./models/cldm_v15_unicontrol.yaml').cpu()
80
+ model_path = 'https://huggingface.co/Robert001/UniControl-Model/blob/main/unicontrol_v1.1.ckpt'
81
+ model.load_state_dict(load_state_dict(model_path, location='cuda'), strict=False)
82
  model = model.cuda()
83
  ddim_sampler = DDIMSampler(model)
84