Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,8 +101,8 @@ def zip_file(folder_name="output_images"):
|
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
-
def translation(img,n):
|
| 105 |
-
for i in range(n
|
| 106 |
tx=np.random.randint(2,50)
|
| 107 |
ty=np.random.randint(1,45)
|
| 108 |
tm=np.array([[1,0,tx],[0,1,ty]],dtype=np.float32)
|
|
|
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
+
def translation(img,n=5):
|
| 105 |
+
for i in range(n):
|
| 106 |
tx=np.random.randint(2,50)
|
| 107 |
ty=np.random.randint(1,45)
|
| 108 |
tm=np.array([[1,0,tx],[0,1,ty]],dtype=np.float32)
|