noamholz commited on
Commit
c47ffe0
·
verified ·
1 Parent(s): 3476cae

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +1 -1
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[..., 0] = imout[..., 0] + logits_n / 10
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: