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