mirror of
https://github.com/deepseek-ai/Janus.git
synced 2026-11-05 00:57:18 +00:00
[GH-ISSUE #95] image_processing_auto.py:590 #71
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/Janus#71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xshy1213 on GitHub (Jan 29, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/95
C:\ProgramData\anaconda3\Lib\site-packages\transformers\models\auto\image_processing_auto.py:590: FutureWarning: The image_processor_class argument is deprecated and will be removed in v4.42. Please use
slow_image_processor_class, orfast_image_processor_classinsteadwarnings.warn(
Loading checkpoint shards: 0%| | 0/2 [00:00<?, ?it/s]
启动UI的时候报的
python demo/app_januspro.py
@xshy1213 commented on GitHub (Jan 29, 2025):
然后我更新了一下janus
pip install --upgrade janus
再次启动UI
D:\deepseek\Janus>python demo/app_januspro.py
(base) D:\deepseek\Janus>python demo/app_januspro.py
Traceback (most recent call last):
File "D:\deepseek\Janus\demo\app_januspro.py", line 4, in
from janus.models import MultiModalityCausalLM, VLChatProcessor
ModuleNotFoundError: No module named 'janus.models'
@dfgh012316 commented on GitHub (Jan 29, 2025):
@xshy1213 我調整了 app_januspro.py 中的
vl_gpt為以下配置後能夠正常運作看起來是因為記憶體不足的關係導致的。
@xshy1213 commented on GitHub (Jan 30, 2025):
配置修改以后
(myenvp) D:\deepseek\Janus>python demo/app_januspro.py --device cuda
Python version is above 3.10, patching the collections module.
C:\ProgramData\anaconda3\envs\myenvp\lib\site-packages\transformers\models\auto\image_processing_auto.py:590: FutureWarning: The image_processor_class argument is deprecated and will be removed in v4.42. Please use
slow_image_processor_class, orfast_image_processor_classinsteadwarnings.warn(
Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████| 2/2 [00:02<00:00, 1.09s/it]
Some parameters are on the meta device because they were offloaded to the cpu.
Traceback (most recent call last):
File "D:\deepseek\Janus\demo\app_januspro.py", line 25, in
vl_gpt = vl_gpt.to(torch.bfloat16).cuda()
File "C:\ProgramData\anaconda3\envs\myenvp\lib\site-packages\accelerate\big_modeling.py", line 458, in wrapper
raise RuntimeError("You can't move a model that has some modules offloaded to cpu or disk.")
RuntimeError: You can't move a model that has some modules offloaded to cpu or disk.
更新Gradio 的依赖 ?
@ShawnLi1102 commented on GitHub (Feb 1, 2025):
Hi xshy1213, did you resolve the issue?
@wz-dong commented on GitHub (Feb 2, 2025):
@xshy1213 这个问题你解决了嘛?我也遇到了相同的问题。