silveroxides commited on
Commit
8585126
β€’
1 Parent(s): aecc1f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -743,7 +743,7 @@ def get_image(image) -> torch.Tensor | None:
743
  from huggingface_hub import hf_hub_download
744
  from safetensors.torch import load_file
745
 
746
- sd = load_file(hf_hub_download(repo_id="silveroxides/flux1-nf4-unet", filename="chromatoskr-lowstep-nf4-unet.safetensors"))
747
  sd = {k.replace("model.diffusion_model.", ""): v for k, v in sd.items() if "model.diffusion_model" in k}
748
  model = Flux().to(dtype=torch.bfloat16, device="cuda")
749
  result = model.load_state_dict(sd)
 
743
  from huggingface_hub import hf_hub_download
744
  from safetensors.torch import load_file
745
 
746
+ sd = load_file(hf_hub_download(repo_id="lllyasviel/flux1-dev-bnb-nf4", filename="flux1-dev-bnb-nf4-v2.safetensors"))
747
  sd = {k.replace("model.diffusion_model.", ""): v for k, v in sd.items() if "model.diffusion_model" in k}
748
  model = Flux().to(dtype=torch.bfloat16, device="cuda")
749
  result = model.load_state_dict(sd)