We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import torch from optimum.quanto import freeze, qfloat8, quantize from diffusers import FluxPipeline, FluxTransformer2DModel from PIL import Image from safetensors.torch import load_file transformer = FluxTransformer2DModel.from_single_file( "/models/Flux/FLUX.1-dev/flux1-dev-fp8.safetensors", torch_dtype=torch.float16, ) pipe = FluxPipeline.from_pretrained( "/models/Flux/FLUX.1-dev", transformer=transformer, torch_dtype=torch.float16, ).to("cuda") pipe.load_lora_weights("/models/output/bridge-arch-flux-000004.safetensors") generator = torch.Generator().manual_seed(12345)
The text was updated successfully, but these errors were encountered:
我也是这样加载,和没加载生成的图一样
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: