Update clipGPT.py
Browse files- clipGPT.py +1 -1
clipGPT.py
CHANGED
@@ -134,7 +134,7 @@ def generate_beam(
|
|
134 |
def generate_caption_clipgpt(img):
|
135 |
|
136 |
prefix_length = 10
|
137 |
-
model = ClipGPT2Model(prefix_length, img_feature_size =
|
138 |
model.load_state_dict(torch.load('model_train_best_run_clipGPT.pt'))
|
139 |
model = model.eval()
|
140 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
134 |
def generate_caption_clipgpt(img):
|
135 |
|
136 |
prefix_length = 10
|
137 |
+
model = ClipGPT2Model(prefix_length, img_feature_size = 512)
|
138 |
model.load_state_dict(torch.load('model_train_best_run_clipGPT.pt'))
|
139 |
model = model.eval()
|
140 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|