Hatman commited on
Commit
7528f6b
·
verified ·
1 Parent(s): 85bcb2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ from torchvision import transforms
13
 
14
  device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
15
  dtype = torch.float16 if torch.cuda.is_available() else torch.float32
16
- pipeline = AutoPipelineForText2Image.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=dtype, device_map='balance')
17
  pipeline.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter_sdxl.bin")
18
 
19
  def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
 
13
 
14
  device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
15
  dtype = torch.float16 if torch.cuda.is_available() else torch.float32
16
+ pipeline = AutoPipelineForText2Image.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=dtype, device_map='balanced')
17
  pipeline.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter_sdxl.bin")
18
 
19
  def randomize_seed_fn(seed: int, randomize_seed: bool) -> int: