Spaces:
Running
on
Zero
Running
on
Zero
Update app_3.py
Browse files
app_3.py
CHANGED
@@ -1009,6 +1009,9 @@ def process_image(input_image, input_text):
|
|
1009 |
OUTPUT_DIR = Path("outputs/grounded_sam2_dinox_demo")
|
1010 |
OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
|
1011 |
|
|
|
|
|
|
|
1012 |
|
1013 |
# Initialize DDS client
|
1014 |
config = Config(API_TOKEN)
|
@@ -1087,7 +1090,6 @@ def process_image(input_image, input_text):
|
|
1087 |
# Get original RGB image
|
1088 |
img = input_image.copy()
|
1089 |
|
1090 |
-
|
1091 |
H, W, C = img.shape
|
1092 |
|
1093 |
# Create RGBA image
|
|
|
1009 |
OUTPUT_DIR = Path("outputs/grounded_sam2_dinox_demo")
|
1010 |
OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
|
1011 |
|
1012 |
+
HEIGHT = 768
|
1013 |
+
WIDTH = 768
|
1014 |
+
|
1015 |
|
1016 |
# Initialize DDS client
|
1017 |
config = Config(API_TOKEN)
|
|
|
1090 |
# Get original RGB image
|
1091 |
img = input_image.copy()
|
1092 |
|
|
|
1093 |
H, W, C = img.shape
|
1094 |
|
1095 |
# Create RGBA image
|