Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ def print_bn():
|
|
24 |
|
25 |
def update_bn(image):
|
26 |
cursor_im = 0
|
27 |
-
image = image.reshape(-1)
|
28 |
image = T.Resize((40,40))(image)
|
|
|
29 |
for m in model.modules():
|
30 |
if(type(m) is nn.BatchNorm2d):
|
31 |
if(cursor_im < image.shape[0]):
|
|
|
24 |
|
25 |
def update_bn(image):
|
26 |
cursor_im = 0
|
|
|
27 |
image = T.Resize((40,40))(image)
|
28 |
+
image = image.reshape(-1)
|
29 |
for m in model.modules():
|
30 |
if(type(m) is nn.BatchNorm2d):
|
31 |
if(cursor_im < image.shape[0]):
|