remove optimize error log

This commit is contained in:
Seunghoon Lee
2023-10-21 21:36:38 +09:00
parent ff6acb4e3f
commit f22bc3f53c
-1
View File
@@ -297,7 +297,6 @@ class OlivePipeline(diffusers.DiffusionPipeline):
shutil.copyfile(weights_src_path, weights_dst_path)
except Exception as e:
log.error(f"Failed to optimize model '{self.original_filename}'.")
log.error(e)
shutil.rmtree(temp_dir, ignore_errors=True)
shutil.rmtree(out_dir, ignore_errors=True)
pipeline = None