Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -72,9 +72,10 @@ else:
|
|
72 |
print("CUDA installation not found")
|
73 |
|
74 |
|
|
|
75 |
|
76 |
base_model = "black-forest-labs/FLUX.1-dev"
|
77 |
-
pipe = FluxPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16, token=huggingface_token)
|
78 |
|
79 |
print('Loading and fusing lora, please wait...')
|
80 |
pipe.load_lora_weights(hf_hub_download("gokaygokay/Flux-Game-Assets-LoRA-v2", "game_asst.safetensors"))
|
@@ -99,8 +100,6 @@ infer_config = config.infer_config
|
|
99 |
|
100 |
IS_FLEXICUBES = True if config_name.startswith('instant-mesh') else False
|
101 |
|
102 |
-
device = torch.device('cuda')
|
103 |
-
|
104 |
# Load diffusion model for 3D generation
|
105 |
print('Loading diffusion model ...')
|
106 |
pipeline = DiffusionPipeline.from_pretrained(
|
|
|
72 |
print("CUDA installation not found")
|
73 |
|
74 |
|
75 |
+
device = torch.device('cuda')
|
76 |
|
77 |
base_model = "black-forest-labs/FLUX.1-dev"
|
78 |
+
pipe = FluxPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16, token=huggingface_token).to(device)
|
79 |
|
80 |
print('Loading and fusing lora, please wait...')
|
81 |
pipe.load_lora_weights(hf_hub_download("gokaygokay/Flux-Game-Assets-LoRA-v2", "game_asst.safetensors"))
|
|
|
100 |
|
101 |
IS_FLEXICUBES = True if config_name.startswith('instant-mesh') else False
|
102 |
|
|
|
|
|
103 |
# Load diffusion model for 3D generation
|
104 |
print('Loading diffusion model ...')
|
105 |
pipeline = DiffusionPipeline.from_pretrained(
|