MiniCPM-V icon indicating copy to clipboard operation
MiniCPM-V copied to clipboard

AssertionError: please make sure vector_quantize_pytorch and vocos are installed.

Open stromyu520 opened this issue 11 months ago • 1 comments

(minicpmo) PS E:\dev\pythonProject\MiniCPM-o> python web_demos/minicpm-o_2.6/model_server.py A new version of the following files was downloaded from https://huggingface.co/openbmb/MiniCPM-o-2_6:

  • modeling_navit_siglip.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. A new version of the following files was downloaded from https://huggingface.co/openbmb/MiniCPM-o-2_6:
  • image_processing_minicpmv.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. A new version of the following files was downloaded from https://huggingface.co/openbmb/MiniCPM-o-2_6:
  • processing_minicpmo.py
  • utils.py
  • resampler.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. Traceback (most recent call last): File "E:\dev\pythonProject\MiniCPM-o\web_demos\minicpm-o_2.6\model_server.py", line 601, in stream_manager = StreamManager() File "E:\dev\pythonProject\MiniCPM-o\web_demos\minicpm-o_2.6\model_server.py", line 96, in init self.minicpmo_model = AutoModel.from_pretrained(self.minicpmo_model_path, trust_remote_code=True, torch_dtype=self.target_dtype, attn_implementation='sdpa') File "D:\anaconda3\envs\minicpmo\lib\site-packages\transformers\models\auto\auto_factory.py", line 559, in from_pretrained return model_class.from_pretrained( File "D:\anaconda3\envs\minicpmo\lib\site-packages\transformers\modeling_utils.py", line 3832, in from_pretrained model = cls(config, *model_args, **model_kwargs) File "D:\data\modules\transformers_modules\openbmb\MiniCPM-o-2_6\1bbb7660afda1ddf2db4eab70fce4bdbcbe1e22c\modeling_minicpmo.py", line 119, in init assert _tts_deps, "please make sure vector_quantize_pytorch and vocos are installed." AssertionError: please make sure vector_quantize_pytorch and vocos are installed.

stromyu520 avatar Jan 22 '25 14:01 stromyu520

Please make sure these dependencies are installed,or you can run pip install vector_quantize_pytorch vocos

YuzaChongyi avatar Jan 22 '25 15:01 YuzaChongyi