morinop commited on
Commit
a800e1f
1 Parent(s): 7c4c927

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def print_bn():
22
 
23
  def update_bn(image):
24
  cursor_im = 0
25
- image = image.view(-1)
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]):