Update modeling_tinyllava_phi.py
Browse files
modeling_tinyllava_phi.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
|
2 |
from .configuration import TinyLlavaConfig, IGNORE_INDEX, IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN
|
|
|
|
|
3 |
from . import test
|
|
|
4 |
#from .data_preprocess import load_image, process_images, tokenizer_image_token
|
5 |
from dataclasses import dataclass
|
6 |
from typing import List, Optional, Tuple, Union
|
|
|
1 |
|
2 |
from .configuration import TinyLlavaConfig, IGNORE_INDEX, IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN
|
3 |
+
import sys
|
4 |
+
sys.path.append(os.path.dirname(sys.path[0]))
|
5 |
from . import test
|
6 |
+
|
7 |
#from .data_preprocess import load_image, process_images, tokenizer_image_token
|
8 |
from dataclasses import dataclass
|
9 |
from typing import List, Optional, Tuple, Union
|