modelscope / modelscope/DiffSynth-Studio

关于如何修改模型结构的问题

Open
#1,073 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13.1k
Forks
1.3k
Avg merge
13h 12m
Merged PRs (30d)
45

Description

您好,感谢您的工作,我有关于模型结构修改的两个问题:

  1. 在原始Wan2.1-Fun-V1.1-1.3B-Control模型中,模型输入为reference_image(参考图像), control_video(控制视频),video(视频真值),现在我想将第一帧图像到视频生成模型和原模型结合起来,那么我在extra_inputs中还多添加了一个input_images,这样子在pipeline中会自动调用WanVideoUnit_ImageEmbedderVAE以更新y且不会改变模型结构,这样子是否能够训练一个新的模型
  2. 我对wan_video_dit模型作出结构上的修改,比如多增加了一个动作输入,是否在self.keys_hash_with_shape_dict中添加新模型检查点的hashkey就可以完成新模型的注册和使用

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the pipeline's handling of extra_inputs and WanVideoUnit_ImageEmbedderVAE, then inspect wan_video_dit and self.keys_hash_with_shape_dict. Determine how the proposed input and architecture changes affect training and checkpoint registration. Done would require a documented maintainer decision or a reproducible implementation plan.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.