LTT commited on
Commit
b5bf93b
·
verified ·
1 Parent(s): 34620dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ isomer_color_weights = torch.from_numpy(np.array([1, 0.5, 1, 0.5])).float().to(d
95
 
96
  # model initialization and loading
97
  # flux
98
- flux_pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, token=access_token).to(dtype=torch.bfloat16)
99
  flux_lora_ckpt_path = hf_hub_download(repo_id="LTT/xxx-ckpt", filename="rgb_normal_large.safetensors", repo_type="model")
100
  flux_pipe.load_lora_weights(flux_lora_ckpt_path)
101
  flux_pipe.to(device=device_0, dtype=torch.bfloat16)
 
95
 
96
  # model initialization and loading
97
  # flux
98
+ flux_pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, token=access_token).to(device=device_0, dtype=torch.bfloat16)
99
  flux_lora_ckpt_path = hf_hub_download(repo_id="LTT/xxx-ckpt", filename="rgb_normal_large.safetensors", repo_type="model")
100
  flux_pipe.load_lora_weights(flux_lora_ckpt_path)
101
  flux_pipe.to(device=device_0, dtype=torch.bfloat16)