Spaces:
Running
on
T4
Running
on
T4
liuyizhang
commited on
Commit
•
9546498
1
Parent(s):
72fe59d
update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
|
2 |
import subprocess, io, os, sys, time
|
|
|
3 |
|
4 |
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
|
5 |
|
@@ -21,7 +22,6 @@ import gradio as gr
|
|
21 |
|
22 |
import argparse
|
23 |
import copy
|
24 |
-
from loguru import logger
|
25 |
|
26 |
import numpy as np
|
27 |
import torch
|
@@ -342,7 +342,7 @@ def run_grounded_sam(input_image, text_prompt, task_type, inpaint_prompt, box_th
|
|
342 |
|
343 |
# visualize raw image
|
344 |
# image_pil.save(os.path.join(output_dir, f"raw_image_{file_temp}.jpg"))
|
345 |
-
|
346 |
size = image_pil.size
|
347 |
|
348 |
output_images = []
|
|
|
1 |
|
2 |
import subprocess, io, os, sys, time
|
3 |
+
from loguru import logger
|
4 |
|
5 |
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
|
6 |
|
|
|
22 |
|
23 |
import argparse
|
24 |
import copy
|
|
|
25 |
|
26 |
import numpy as np
|
27 |
import torch
|
|
|
342 |
|
343 |
# visualize raw image
|
344 |
# image_pil.save(os.path.join(output_dir, f"raw_image_{file_temp}.jpg"))
|
345 |
+
|
346 |
size = image_pil.size
|
347 |
|
348 |
output_images = []
|