学习图生图时调用的时千问4步蒸馏法大模型“Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors”,但是报错:“File "F:\ComfyUI-aki-v3\ComfyUI-aki-v3\ComfyUI\custom_nodes\comfyui-kjnodes\nodes\model_optimization_nodes.py", line 345, in _load_diffusion_model_kj model.cached_patcher_init = (_load_diffusion_model_kj, (unet_path, model_options, extra_state_dict)) ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'cached_patcher_init' and no __dict__ for setting new attributes”

自己网上搜索,然后思考了下,1‘肯定不会让我们去改代码,应该就是使用问题。2、问题出现在模型加载过程中,去网上搜了下这个模型介绍,以及查看有无替代模型,得出一个结论,千问有一个针对低内存的图生图模型“qwen_image_edit_2511_fp8_e4m3fn_scaled.safetensors”

然后我下载后试着加载这个模型,真的可以了

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐