Spaces:
Runtime error
Runtime error
Update demo/model.py
Browse files- demo/model.py +2 -2
demo/model.py
CHANGED
@@ -384,7 +384,7 @@ class Model_all:
|
|
384 |
pose_link_color=self.pose_link_color,
|
385 |
radius=2,
|
386 |
thickness=2)
|
387 |
-
im_keypose_out = im_keypose_out.astype(np.uint8)
|
388 |
|
389 |
# extract condition features
|
390 |
c = self.base_model.get_learned_conditioning([prompt + ', ' + pos_prompt])
|
@@ -419,7 +419,7 @@ class Model_all:
|
|
419 |
x_samples_ddim = 255. * x_samples_ddim
|
420 |
x_samples_ddim = x_samples_ddim.astype(np.uint8)
|
421 |
|
422 |
-
return [im_depth_out, im_keypose_out, x_samples_ddim]
|
423 |
|
424 |
@torch.no_grad()
|
425 |
def process_seg(self, input_img, type_in, prompt, neg_prompt, pos_prompt, fix_sample, scale,
|
|
|
384 |
pose_link_color=self.pose_link_color,
|
385 |
radius=2,
|
386 |
thickness=2)
|
387 |
+
im_keypose_out = im_keypose_out.astype(np.uint8)
|
388 |
|
389 |
# extract condition features
|
390 |
c = self.base_model.get_learned_conditioning([prompt + ', ' + pos_prompt])
|
|
|
419 |
x_samples_ddim = 255. * x_samples_ddim
|
420 |
x_samples_ddim = x_samples_ddim.astype(np.uint8)
|
421 |
|
422 |
+
return [im_depth_out, im_keypose_out[:, :, ::-1], x_samples_ddim]
|
423 |
|
424 |
@torch.no_grad()
|
425 |
def process_seg(self, input_img, type_in, prompt, neg_prompt, pos_prompt, fix_sample, scale,
|