Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -26,7 +26,6 @@ from preprocess.openpose.run_openpose import OpenPose
|
|
26 |
from detectron2.data.detection_utils import convert_PIL_to_numpy, _apply_exif_orientation
|
27 |
from torchvision.transforms.functional import to_pil_image
|
28 |
|
29 |
-
|
30 |
def pil_to_binary_mask(pil_image, threshold=0):
|
31 |
np_image = np.array(pil_image)
|
32 |
grayscale_image = Image.fromarray(np_image).convert("L")
|
|
|
26 |
from detectron2.data.detection_utils import convert_PIL_to_numpy, _apply_exif_orientation
|
27 |
from torchvision.transforms.functional import to_pil_image
|
28 |
|
|
|
29 |
def pil_to_binary_mask(pil_image, threshold=0):
|
30 |
np_image = np.array(pil_image)
|
31 |
grayscale_image = Image.fromarray(np_image).convert("L")
|