OpenBMB / VisCPM

[ICLR'24 spotlight] Chinese and English Multimodal Large Model Series (Chat and Paint) | 基于CPM基础模型的中英双语多模态大模型系列
1.06k stars 93 forks source link

NameError: name 'files' is not defined. Did you mean: 'filter'? #10

Closed funykatebird closed 1 year ago

funykatebird commented 1 year ago

Python 3.10.11 (main, May 16 2023, 00:28:57) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.

from VisCPM import VisCPMChat from PIL import Image model_path= '/home/jovyan/mm_large_model/viscpm_chat_zhplus_checkpoint.pt' viscpm_chat = VisCPMChat(model_path, image_safety_checker=True) Traceback (most recent call last): File "", line 1, in File "/home/jovyan/mm_large_model/VisCPM/VisCPM/viscpm_chat.py", line 36, in init files('mypkg.data').joinpath('data1.txt') NameError: name 'files' is not defined. Did you mean: 'filter'? exit()

Cppowboy commented 1 year ago

请更新到最新版代码,config_path可以传入对应的cpm bee配置文件路径。