Spaces:
Build error
Build error
Commit
·
b6b0b05
1
Parent(s):
b365ec9
updates
Browse files
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 |
-
|
| 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
|
| 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():
|