update to v1.2
This commit is contained in:
parent
adf34e91e9
commit
e8814e59e3
2
bot.py
2
bot.py
|
@ -59,7 +59,7 @@ def run_safety_nochecker(image, device, dtype):
|
|||
|
||||
sd_args = {
|
||||
"pretrained_model_name_or_path" : config_json["Diffusion"]["Diffusion-Model"],
|
||||
"torch_dtype" : (torch.float16 if config_json.get("UseFP16", True) else torch.float32)
|
||||
"torch_dtype" : (torch.float16 if config_json["Diffusion"].get("UseFP16", True) else torch.float32)
|
||||
}
|
||||
|
||||
sd_pipe = StableDiffusionPipeline.from_pretrained(**sd_args)
|
||||
|
|
Loading…
Reference in New Issue