Spaces:
Runtime error
Runtime error
Commit
Β·
c1ebdb7
1
Parent(s):
9763171
Update minigpt4/conversation/conversation.py
Browse files
minigpt4/conversation/conversation.py
CHANGED
|
@@ -196,7 +196,7 @@ class Chat:
|
|
| 196 |
|
| 197 |
def encode_img(self, img_list):
|
| 198 |
image = img_list[0]
|
| 199 |
-
img_list
|
| 200 |
if isinstance(image, str): # is a image path
|
| 201 |
raw_image = Image.open(image).convert('RGB')
|
| 202 |
image = self.vis_processor(raw_image).unsqueeze(0).to(self.device)
|
|
|
|
| 196 |
|
| 197 |
def encode_img(self, img_list):
|
| 198 |
image = img_list[0]
|
| 199 |
+
img_list = []
|
| 200 |
if isinstance(image, str): # is a image path
|
| 201 |
raw_image = Image.open(image).convert('RGB')
|
| 202 |
image = self.vis_processor(raw_image).unsqueeze(0).to(self.device)
|