Spaces:
Sleeping
Sleeping
Fix path
Browse files- gradio_caption.py +1 -1
- prismer_model.py +2 -1
gradio_caption.py
CHANGED
@@ -24,7 +24,7 @@ def create_demo():
|
|
24 |
object_detection = gr.Image(label='Object Detection')
|
25 |
ocr = gr.Image(label='OCR Detection')
|
26 |
|
27 |
-
inputs = [image
|
28 |
outputs = [depth, edge, normals]
|
29 |
|
30 |
paths = sorted(pathlib.Path('prismer/images').glob('*'))
|
|
|
24 |
object_detection = gr.Image(label='Object Detection')
|
25 |
ocr = gr.Image(label='OCR Detection')
|
26 |
|
27 |
+
inputs = [image]
|
28 |
outputs = [depth, edge, normals]
|
29 |
|
30 |
paths = sorted(pathlib.Path('prismer/images').glob('*'))
|
prismer_model.py
CHANGED
@@ -44,7 +44,8 @@ def run_experts(image_path: str) -> tuple[str | None, ...]:
|
|
44 |
out_path = image_dir / 'image.jpg'
|
45 |
cv2.imwrite(out_path.as_posix(), cv2.imread(image_path))
|
46 |
|
47 |
-
expert_names = ['depth', 'edge', 'normal', 'objdet', 'ocrdet', 'segmentation']
|
|
|
48 |
for expert_name in expert_names:
|
49 |
env = os.environ.copy()
|
50 |
if 'PYTHONPATH' in env:
|
|
|
44 |
out_path = image_dir / 'image.jpg'
|
45 |
cv2.imwrite(out_path.as_posix(), cv2.imread(image_path))
|
46 |
|
47 |
+
# expert_names = ['depth', 'edge', 'normal', 'objdet', 'ocrdet', 'segmentation']
|
48 |
+
expert_names = ['depth', 'edge', 'normal']
|
49 |
for expert_name in expert_names:
|
50 |
env = os.environ.copy()
|
51 |
if 'PYTHONPATH' in env:
|