lnyan commited on
Commit
0157bcd
1 Parent(s): c2aa652

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -426,7 +426,7 @@ class StableDiffusion:
426
  print(f"Loading {model_name}")
427
  if device == "cuda" and not args.fp32:
428
  text2img = StableDiffusionPipeline.from_pretrained(
429
- model_name,
430
  revision="fp16",
431
  torch_dtype=torch.float16,
432
  use_auth_token=token,
@@ -654,12 +654,6 @@ class StableDiffusion:
654
  def get_model(token="", model_choice="", model_path=""):
655
  if "model" not in model:
656
  model_name = ""
657
- if args.local_model:
658
- print(f"Using local_model: {args.local_model}")
659
- model_path = args.local_model
660
- elif args.remote_model:
661
- print(f"Using remote_model: {args.remote_model}")
662
- model_name = args.remote_model
663
  if model_choice == ModelChoice.INPAINTING.value:
664
  if len(model_name) < 1:
665
  model_name = "runwayml/stable-diffusion-inpainting"
 
426
  print(f"Loading {model_name}")
427
  if device == "cuda" and not args.fp32:
428
  text2img = StableDiffusionPipeline.from_pretrained(
429
+ "runwayml/stable-diffusion-v1-5",
430
  revision="fp16",
431
  torch_dtype=torch.float16,
432
  use_auth_token=token,
 
654
  def get_model(token="", model_choice="", model_path=""):
655
  if "model" not in model:
656
  model_name = ""
 
 
 
 
 
 
657
  if model_choice == ModelChoice.INPAINTING.value:
658
  if len(model_name) < 1:
659
  model_name = "runwayml/stable-diffusion-inpainting"