Dishku commited on
Commit
671394d
·
verified ·
1 Parent(s): c261ba4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -55,10 +55,12 @@ REPO_ID_DISTILLED = "black-forest-labs/FLUX.2-klein-9B"
55
  print("Loading 9B Regular model...")
56
  pipe_regular = Flux2KleinPipeline.from_pretrained(REPO_ID_REGULAR, torch_dtype=dtype)
57
  pipe_regular.to("cuda")
 
58
 
59
  print("Loading 9B Distilled model...")
60
  pipe_distilled = Flux2KleinPipeline.from_pretrained(REPO_ID_DISTILLED, torch_dtype=dtype)
61
  pipe_distilled.to("cuda")
 
62
 
63
  # Dictionary for easy access
64
  pipes = {
 
55
  print("Loading 9B Regular model...")
56
  pipe_regular = Flux2KleinPipeline.from_pretrained(REPO_ID_REGULAR, torch_dtype=dtype)
57
  pipe_regular.to("cuda")
58
+ pipe_regular.load_lora_weights(".", weight_name="Myctor_epoch_10.safetensors")
59
 
60
  print("Loading 9B Distilled model...")
61
  pipe_distilled = Flux2KleinPipeline.from_pretrained(REPO_ID_DISTILLED, torch_dtype=dtype)
62
  pipe_distilled.to("cuda")
63
+ pipe_distilled.load_lora_weights(".", weight_name="Myctor_epoch_10.safetensors")
64
 
65
  # Dictionary for easy access
66
  pipes = {