DiffSynth-Studio icon indicating copy to clipboard operation
DiffSynth-Studio copied to clipboard

Error with Wan2.1-Fun-1.3B-Control inference script - 'WanModel' object has no attribute 'ref_conv'

Open fusheng-ji opened this issue 5 months ago • 2 comments

Hi @Artiprocher ,

Thanks for your awesome project.

I am trying to infer video generation based on control video and reference image inputs with Wan2.1-Fun-1.3B-Control.

However, I met the error in diffsynth/pipelines/wan_video_new.py: AttributeError: 'WanModel' object has no attribute 'ref_conv'

I have checked the hash_state_dict_keys of Wan2.1-Fun-1.3B-Control, which lacks "has_ref_conv", but the diffsynth/pipelines/wan_video_new.py call dit.ref_conv to process reference_latents as default.

In that way, the control pipeline can work fine with Wan2.1-Fun-V1.1-1.3B-Control instead of the Wan2.1-Fun-1.3B-Control model.

Could you help me figure out how to fix this error?

Many thanks!

fusheng-ji avatar Sep 03 '25 21:09 fusheng-ji

@fusheng-ji Wan2.1-Fun-1.3B-Control doesn't support reference image.

Artiprocher avatar Sep 23 '25 05:09 Artiprocher

@fusheng-ji Maybe you used the wrong model as Wan2.1-Fun-1.3B-Control-Camera, which is different from Wan2.1-Fun-1.3B-Control, have a check.

doubleZ0108 avatar Nov 05 '25 08:11 doubleZ0108