|
发表于 2025-1-8 09:37:32
|
显示全部楼层
Encountered exception while importing einops: No module named 'einops'
Traceback (most recent call last):
File "C:\Users\ppd\Downloads\Video-Background-Removal\Video-Background-Removal\app.py", line 21, in <module>
birefnet = AutoModelForImageSegmentation.from_pretrained("ZhengPeng7/BiRefNet", trust_remote_code=True)
File "C:\Users\ppd\Downloads\Video-Background-Removal\Video-Background-Removal\python\lib\site-packages\transformers\models\auto\auto_factory.py", line 553, in from_pretrained
model_class = get_class_from_dynamic_module(
File "C:\Users\ppd\Downloads\Video-Background-Removal\Video-Background-Removal\python\lib\site-packages\transformers\dynamic_module_utils.py", line 540, in get_class_from_dynamic_module
final_module = get_cached_module_file(
File "C:\Users\ppd\Downloads\Video-Background-Removal\Video-Background-Removal\python\lib\site-packages\transformers\dynamic_module_utils.py", line 365, in get_cached_module_file
modules_needed = check_imports(resolved_module_file)
File "C:\Users\ppd\Downloads\Video-Background-Removal\Video-Background-Removal\python\lib\site-packages\transformers\dynamic_module_utils.py", line 197, in check_imports
raise ImportError(
ImportError: This modeling file requires the following packages that were not found in your environment: einops. Run `pip install einops`
请问,这里要怎么处理? |
|