Commit e85c36e DHBaek
authored
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,13 @@ def load_model(self) -> None:
88
88
return
89
89
90
90
if torch .cuda .is_available ():
91
- safety_checker = CustomStableDiffusionSafetyChecker .from_pretrained (
92
- os .path .join (model_settings .model_name_or_path , "safety_checker" ), torch_dtype = torch .float16
93
- )
91
+ # safety_checker = CustomStableDiffusionSafetyChecker.from_pretrained(
92
+ # os.path.join(model_settings.model_name_or_path, "safety_checker"), torch_dtype=torch.float16
93
+ # )
94
94
self .diffusion_pipeline = DiffusionPipeline .from_pretrained (
95
95
model_settings .model_name_or_path ,
96
96
torch_dtype = torch .float16 ,
97
- safety_checker = safety_checker ,
97
+ # safety_checker=safety_checker,
98
98
).to ("cuda" )
99
99
self .diffusion_pipeline .enable_xformers_memory_efficient_attention ()
100
100
self .dimm_scheduler = DDIMScheduler .from_pretrained (
You can’t perform that action at this time.
0 commit comments