image_processing_auto.py:590
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, or fast_image_processor_class instead
warnings.warn(
Loading checkpoint shards: 0%| | 0/2 [00:00<?, ?it/s]
启动UI的时候报的 python demo/app_januspro.py
然后我更新了一下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
@xshy1213 我調整了 app_januspro.py 中的 vl_gpt 為以下配置後能夠正常運作
看起來是因為記憶體不足的關係導致的。
vl_gpt = AutoModelForCausalLM.from_pretrained(model_path,
language_config=language_config,
trust_remote_code=True,
device_map="auto",
torch_dtype=torch.bfloat16 if torch.cuda.is_available() else torch.float16)
配置修改以后
(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, or fast_image_processor_class instead
warnings.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
更新Gradio 的依赖 ?
Hi xshy1213, did you resolve the issue?
@xshy1213 这个问题你解决了嘛?我也遇到了相同的问题。