Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,8 +121,8 @@ def rotation(img,n=5):
|
|
| 121 |
|
| 122 |
def scaling(img,n=5):
|
| 123 |
for i in range(n):
|
| 124 |
-
sx=np.
|
| 125 |
-
sy=np.
|
| 126 |
tx=np.random.randint(1,16)
|
| 127 |
ty=np.random.randint(1,12)
|
| 128 |
sm=np.array([[sx,0,tx],[0,sy,ty]],dtype=np.float32)
|
|
|
|
| 121 |
|
| 122 |
def scaling(img,n=5):
|
| 123 |
for i in range(n):
|
| 124 |
+
sx=np.random.uniform(1,2)
|
| 125 |
+
sy=np.random.uniform(1,2)
|
| 126 |
tx=np.random.randint(1,16)
|
| 127 |
ty=np.random.randint(1,12)
|
| 128 |
sm=np.array([[sx,0,tx],[0,sy,ty]],dtype=np.float32)
|