nightfury commited on
Commit
0bf9897
1 Parent(s): 07c78b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -67,9 +67,10 @@ print ("torch.backends.mps.is_available: ", torch.backends.mps.is_available())
67
 
68
  pipe = pipe.to(device)
69
 
70
- model = CLIPDensePredT(version='ViT-B/16', reduce_dim=64)
71
- model.eval()
72
- model.load_state_dict(torch.load('./clipseg/weights/rd64-uni.pth', map_location=torch.device(device)), strict=True) #False
 
73
 
74
  imgRes = 256
75
 
 
67
 
68
  pipe = pipe.to(device)
69
 
70
+ model = CLIPDensePredT(version='ViT-B/16', reduce_dim=64, complex_trans_conv=True)
71
+ model.load_state_dict(torch.load('./clipseg/weights/rd64-uni.pth', map_location=torch.device(device)), strict=False) #False
72
+
73
+ model.eval().half()
74
 
75
  imgRes = 256
76