Update XFUN.py
Browse files
XFUN.py
CHANGED
@@ -10,7 +10,7 @@ import numpy as np
|
|
10 |
|
11 |
from transformers import AutoTokenizer
|
12 |
|
13 |
-
def load_image(image_path, size):
|
14 |
image = Image.open(image_path).convert("RGB")
|
15 |
w, h = image.size
|
16 |
if size is not None:
|
|
|
10 |
|
11 |
from transformers import AutoTokenizer
|
12 |
|
13 |
+
def load_image(image_path, size=None):
|
14 |
image = Image.open(image_path).convert("RGB")
|
15 |
w, h = image.size
|
16 |
if size is not None:
|