vcollos commited on
Commit
190cae0
·
verified ·
1 Parent(s): 02086fd

correções

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -244,6 +244,10 @@ loras = [
244
  # add new
245
  ]
246
 
 
 
 
 
247
  # Initialize the base model
248
  base_model = "SG161222/Verus_Vision_1.0b"
249
 
@@ -253,7 +257,7 @@ good_vae = AutoencoderKL.from_pretrained(base_model, filename="ae.safetensors",
253
  # Configurar o pipeline principal do Verus Vision
254
  pipe = DiffusionPipeline.from_pretrained(
255
  base_model,
256
- filename="VerusVision_1.0b_Transformer_fp16.safetensors", # Ajuste para FP16 ou FP8
257
  torch_dtype=dtype
258
  ).to(device)
259
 
 
244
  # add new
245
  ]
246
 
247
+ # Configuração inicial
248
+ dtype = torch.float16 # Pode ser torch.bfloat16 ou torch.float32, dependendo do hardware
249
+ device = "cuda" if torch.cuda.is_available() else "cpu"
250
+
251
  # Initialize the base model
252
  base_model = "SG161222/Verus_Vision_1.0b"
253
 
 
257
  # Configurar o pipeline principal do Verus Vision
258
  pipe = DiffusionPipeline.from_pretrained(
259
  base_model,
260
+ filename="VerusVision_1.0b_Transformer_fp16.safetensors", # Ajuste para FP16 ou FP8 conforme necessário
261
  torch_dtype=dtype
262
  ).to(device)
263