mirror of
https://github.com/OpenVGLab/OmniLottie.git
synced 2026-09-17 07:36:27 +00:00
Add files via upload
This commit is contained in:
@@ -3724,8 +3724,6 @@ class LottieTensor:
|
|||||||
if model_path is None:
|
if model_path is None:
|
||||||
# 尝试多个可能的路径
|
# 尝试多个可能的路径
|
||||||
possible_paths = [
|
possible_paths = [
|
||||||
'/mnt/jfs-test/Qwen2.5-VL-3B-Instruct',
|
|
||||||
'/data/models/Qwen2.5-VL-3B-Instruct',
|
|
||||||
'Qwen/Qwen2.5-VL-3B-Instruct', # HuggingFace Hub
|
'Qwen/Qwen2.5-VL-3B-Instruct', # HuggingFace Hub
|
||||||
]
|
]
|
||||||
for path in possible_paths:
|
for path in possible_paths:
|
||||||
@@ -3746,7 +3744,7 @@ class LottieTensor:
|
|||||||
def get_tokenizer(cls):
|
def get_tokenizer(cls):
|
||||||
if cls.tokenizer is None:
|
if cls.tokenizer is None:
|
||||||
from transformers import AutoTokenizer
|
from transformers import AutoTokenizer
|
||||||
cls.tokenizer = AutoTokenizer.from_pretrained('/mnt/jfs-test/Qwen2.5-VL-3B-Instruct')
|
cls.tokenizer = AutoTokenizer.from_pretrained('Qwen/Qwen2.5-VL-3B-Instruct')
|
||||||
return cls.tokenizer
|
return cls.tokenizer
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user