cosmicman commited on
Commit
7eb58cb
·
verified ·
1 Parent(s): f1093e4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -40,10 +40,10 @@ unet_path = "cosmicman/CosmicMan-SDXL"
40
 
41
  # Load model.
42
  unet = UNet2DConditionModel.from_pretrained(unet_path, torch_dtype=torch.float16)
43
- pipe = StableDiffusionXLPipeline.from_pretrained(base_path, unet=unet, torch_dtype=torch.float16, variant="fp16").to("cuda")
44
  pipe.scheduler = EulerDiscreteScheduler.from_pretrained(base_path, subfolder="scheduler", torch_dtype=torch.float16)
45
 
46
- refiner = StableDiffusionXLImg2ImgPipeline.from_pretrained(refiner_path,torch_dtype=torch.float16, use_safetensors=True).to("cuda") # we found use base_path instead of refiner_path may get a better performance
47
 
48
  # Generate image.
49
  positive_prompt = "A fit Caucasian elderly woman, her wavy white hair above shoulders, wears a pink floral cotton long-sleeve shirt and a cotton hat against a natural landscape in an upper body shot"
 
40
 
41
  # Load model.
42
  unet = UNet2DConditionModel.from_pretrained(unet_path, torch_dtype=torch.float16)
43
+ pipe = StableDiffusionXLPipeline.from_pretrained(base_path, unet=unet, torch_dtype=torch.float16, variant="fp16", use_safetensors=True).to("cuda")
44
  pipe.scheduler = EulerDiscreteScheduler.from_pretrained(base_path, subfolder="scheduler", torch_dtype=torch.float16)
45
 
46
+ refiner = StableDiffusionXLImg2ImgPipeline.from_pretrained(refiner_path,torch_dtype=torch.float16, variant="fp16", use_safetensors=True).to("cuda") # we found use base_path instead of refiner_path may get a better performance
47
 
48
  # Generate image.
49
  positive_prompt = "A fit Caucasian elderly woman, her wavy white hair above shoulders, wears a pink floral cotton long-sleeve shirt and a cotton hat against a natural landscape in an upper body shot"