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