shubham680 commited on
Commit
1c28c69
·
verified ·
1 Parent(s): f456ac7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.round(np.random.uniform(1,1.6),2)
125
- sy=np.round(np.random.uniform(1,1.6),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)
 
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)