Skip to content

Adds Mage Flow support#1454

Draft
jtreminio wants to merge 1 commit into
mcmonkeyprojects:masterfrom
jtreminio:mage-flow-support
Draft

Adds Mage Flow support#1454
jtreminio wants to merge 1 commit into
mcmonkeyprojects:masterfrom
jtreminio:mage-flow-support

Conversation

@jtreminio

Copy link
Copy Markdown
Contributor

bool isQwenImage(JObject h) => (h.ContainsKey("time_text_embed.timestep_embedder.linear_1.bias") && h.ContainsKey("img_in.bias") && (h.ContainsKey("transformer_blocks.0.attn.add_k_proj.bias") || h.ContainsKey("transformer_blocks.0.attn.add_qkv_proj.bias")))
|| (h.ContainsKey("model.diffusion_model.time_text_embed.timestep_embedder.linear_1.bias") && h.ContainsKey("model.diffusion_model.img_in.bias") && (h.ContainsKey("model.diffusion_model.transformer_blocks.0.attn.add_k_proj.bias") || h.ContainsKey("model.diffusion_model.transformer_blocks.0.attn.add_qkv_proj.bias")));
bool isQwenImageEdit2511(JObject h) => h.ContainsKey("__index_timestep_zero__");
bool isMageFlow(JObject h) => tryGetKey(h, "txt_norm.weight", out JToken tok) && tok["shape"].ToArray()[0].Value<long>() == 2560;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Qwen's txt_norm.weight is 3584.

Let me know if you need more specificity

@jtreminio

Copy link
Copy Markdown
Contributor Author
1203002-A young woman holds a large, whimsical a-3

@jtreminio

Copy link
Copy Markdown
Contributor Author
1206002-draw a line across the words in the firs-2

@jtreminio

Copy link
Copy Markdown
Contributor Author
1209001-Add the word Edit in a speech bubble a-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant