rahulvenkk commited on
Commit
7ea6ce9
1 Parent(s): 110d56f

float16 rm

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ model = model_factory.load_model('vitb_8x8patch_3frames')#.to(device)
31
  model.requires_grad_(False)
32
  model.eval()
33
 
34
- model = model.to(torch.float16)
35
 
36
 
37
  import matplotlib.pyplot as plt
@@ -273,7 +273,7 @@ with gr.Blocks() as demo:
273
  img = img[None]
274
 
275
  # reshape image to [B, C, T, H, W], C = 3, T = 3 (3-frame model), H = W = 224
276
- x = img[:, :, None].expand(-1, -1, 3, -1, -1).to(torch.float16)
277
 
278
  # Imagenet-normalize the inputs (standardization)
279
 
 
31
  model.requires_grad_(False)
32
  model.eval()
33
 
34
+ model = model#.to(torch.float16)
35
 
36
 
37
  import matplotlib.pyplot as plt
 
273
  img = img[None]
274
 
275
  # reshape image to [B, C, T, H, W], C = 3, T = 3 (3-frame model), H = W = 224
276
+ x = img[:, :, None].expand(-1, -1, 3, -1, -1)#.to(torch.float16)
277
 
278
  # Imagenet-normalize the inputs (standardization)
279