Update run.py
Browse files
run.py
CHANGED
@@ -43,7 +43,7 @@ def segment(im, interval_s=2):
|
|
43 |
logits_n = (logits[0, 0] - logits[0, 0].min()) / (logits[0, 0].max() - logits[0, 0].min())
|
44 |
logits_n = cv2.resize(logits_n, (im.shape[1], im.shape[0]))
|
45 |
imout = im.copy()
|
46 |
-
imout[...,
|
47 |
return imout #, cnt #np.flipud(im)
|
48 |
|
49 |
with gr.Blocks() as demo:
|
|
|
43 |
logits_n = (logits[0, 0] - logits[0, 0].min()) / (logits[0, 0].max() - logits[0, 0].min())
|
44 |
logits_n = cv2.resize(logits_n, (im.shape[1], im.shape[0]))
|
45 |
imout = im.copy()
|
46 |
+
imout[..., 1] = imout[..., 1] + logits_n * 200
|
47 |
return imout #, cnt #np.flipud(im)
|
48 |
|
49 |
with gr.Blocks() as demo:
|