Jyothirmai
commited on
Commit
•
65044cf
1
Parent(s):
3818998
Update clipGPT.py
Browse files- clipGPT.py +1 -1
clipGPT.py
CHANGED
@@ -147,7 +147,7 @@ def generate_beam(
|
|
147 |
def generate_caption_clipgpt(img):
|
148 |
|
149 |
prefix_length = 10
|
150 |
-
model = ClipGPT2Model(prefix_length
|
151 |
model.load_state_dict(torch.load('model_train_best_run_clipGPT.pt', map_location=torch.device('cpu')))
|
152 |
model = model.eval()
|
153 |
device=torch.device('cpu')
|
|
|
147 |
def generate_caption_clipgpt(img):
|
148 |
|
149 |
prefix_length = 10
|
150 |
+
model = ClipGPT2Model(prefix_length)
|
151 |
model.load_state_dict(torch.load('model_train_best_run_clipGPT.pt', map_location=torch.device('cpu')))
|
152 |
model = model.eval()
|
153 |
device=torch.device('cpu')
|