Commit
·
11640a4
1
Parent(s):
e85e43c
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,10 +52,11 @@ inputs = gr.inputs.Image(type="pil", label="Upload an image")
|
|
| 52 |
# outputs = gr.outputs.HTML() #uncomment for single class output
|
| 53 |
|
| 54 |
def gen_pred(img=inputs, model=seg_model):
|
| 55 |
-
|
| 56 |
-
|
| 57 |
path = os.getcwd()
|
| 58 |
-
os.listdir(path)
|
|
|
|
| 59 |
#rgb_path = os.path.join(test_image_dir,img)
|
| 60 |
#img = cv2.imread(rgb_path)
|
| 61 |
img = img[::IMG_SCALING[0], ::IMG_SCALING[1]]
|
|
|
|
| 52 |
# outputs = gr.outputs.HTML() #uncomment for single class output
|
| 53 |
|
| 54 |
def gen_pred(img=inputs, model=seg_model):
|
| 55 |
+
|
| 56 |
+
img = cv2.imread('./003e2c95d.jpg')
|
| 57 |
path = os.getcwd()
|
| 58 |
+
tmp = os.listdir(path)
|
| 59 |
+
print(tmp)
|
| 60 |
#rgb_path = os.path.join(test_image_dir,img)
|
| 61 |
#img = cv2.imread(rgb_path)
|
| 62 |
img = img[::IMG_SCALING[0], ::IMG_SCALING[1]]
|