mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-27 12:21:38 -08:00
Use os.makedirs(..., exist_ok=True)
This commit is contained in:
parent
59419bd64a
commit
165ab44f03
6 changed files with 6 additions and 15 deletions
|
|
@ -20,9 +20,7 @@ codeformer = None
|
|||
|
||||
|
||||
def setup_model(dirname):
|
||||
global model_path
|
||||
if not os.path.exists(model_path):
|
||||
os.makedirs(model_path)
|
||||
os.makedirs(model_path, exist_ok=True)
|
||||
|
||||
path = modules.paths.paths.get("CodeFormer", None)
|
||||
if path is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue