Menyu commited on
Commit
5a4a980
1 Parent(s): c40c28a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -9,12 +9,7 @@ import torch
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
  model_repo_id = "anon4ik/noobaiXLNAIXL_epsilonPred05Version_diffusers" # Replace to the model you would like to use
11
 
12
- if torch.cuda.is_available():
13
- torch_dtype = torch.float16
14
- else:
15
- torch_dtype = torch.float32
16
-
17
- pipe = StableDiffusionXLPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
18
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
19
  pipe.scheduler.register_to_config(
20
  prediction_type="v_prediction",
 
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
  model_repo_id = "anon4ik/noobaiXLNAIXL_epsilonPred05Version_diffusers" # Replace to the model you would like to use
11
 
12
+ pipe = StableDiffusionXLPipeline.from_pretrained(model_repo_id, torch_dtype=torch.float16)
 
 
 
 
 
13
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
14
  pipe.scheduler.register_to_config(
15
  prediction_type="v_prediction",