have doubts about flux model load #1255
Closed
mobilejammer
started this conversation in
General
Replies: 1 comment 3 replies
|
i can't even tell what the modification is. but you can't switch back to the Diffusers modeling code, it lacks a bunch of custom features that SimpleTuner relies on. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm sorry for always posting to ask for help or seek solutions. This time, I have a code problem that I need help with.
`elif (
args.model_family.lower() == "flux" and not args.flux_attention_masked_training
):
#from helpers.models.flux.transformer import (
# FluxTransformer2DModelWithMasking as FluxTransformer2DModel,
#)
from diffusers import FluxTransformer2DModel
import torch
This is the code starting from line 53 of the diffusion_model. py. I've looked at the two branches related to flux, and ultimately they are both about mask. Then I modified your code to the following:
#from helpers.models.flux.transformer import (
FluxTransformer2DModelWithMasking as FluxTransformer2DModel,
#)

from diffusers import FluxTransformer2DModel
I'm not sure if my modification has misunderstood the meaning of your code. I'm afraid that I haven't fully grasped the intention of your code, which may cause more problems for the subsequent program. Thank you!
All reactions