Circularmachines commited on
Commit
b6b0b05
·
1 Parent(s): b365ec9
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,7 +43,7 @@ if "draw" not in st.session_state:
43
  st.session_state["draw"] = True
44
 
45
  def patch(ij):
46
- #st.write(ij)
47
  immg=ij//n_patches
48
  p=ij%n_patches
49
 
@@ -51,7 +51,7 @@ def patch(ij):
51
 
52
  y=p//gridsize
53
  x=p%gridsize
54
- imc=imm.crop(((x-1)*stride,(y-1)*stride,(x+3)*stride,(y+3)*stride))
55
  return imc
56
 
57
  def find():
 
43
  st.session_state["draw"] = True
44
 
45
  def patch(ij):
46
+ st.write(ij)
47
  immg=ij//n_patches
48
  p=ij%n_patches
49
 
 
51
 
52
  y=p//gridsize
53
  x=p%gridsize
54
+ imc=imm.crop(((x)*stride,(y)*stride,(x+2)*stride,(y+2)*stride))
55
  return imc
56
 
57
  def find():