diff --git a/API_civitai.py b/API_civitai.py index b9f811b..c487f57 100644 --- a/API_civitai.py +++ b/API_civitai.py @@ -199,7 +199,6 @@ def download_file(url, destination_path, model_name, api_token=None): # Set up main checkpoint directory _, civitai_base_path, parsed_models_path = get_civitai_base_paths() bjornulf_checkpoint_path = Path(folder_paths.models_dir) / "checkpoints" / "Bjornulf_civitAI" -bjornulf_checkpoint_path.mkdir(parents=True, exist_ok=True) # Register the main checkpoint folder checkpoint_folders = list(folder_paths.folder_names_and_paths["checkpoints"]) @@ -781,6 +780,7 @@ class CivitAIModelSelectorSDXL: CATEGORY = "Bjornulf" def load_model(self, image, civitai_token): + create_bjornulf_checkpoint_folder() if image == "none": raise ValueError("No image selected") @@ -883,6 +883,7 @@ class CivitAIModelSelectorFLUX_D: CATEGORY = "Bjornulf" def load_model(self, image, civitai_token): + create_bjornulf_checkpoint_folder() if image == "none": raise ValueError("No image selected") @@ -984,6 +985,7 @@ class CivitAIModelSelectorFLUX_S: CATEGORY = "Bjornulf" def load_model(self, image, civitai_token): + create_bjornulf_checkpoint_folder() if image == "none": raise ValueError("No image selected") @@ -1085,6 +1087,7 @@ class CivitAIModelSelectorPony: CATEGORY = "Bjornulf" def load_model(self, image, civitai_token): + create_bjornulf_checkpoint_folder() if image == "none": raise ValueError("No image selected") diff --git a/README.md b/README.md index b6491a9..b56a3e2 100644 --- a/README.md +++ b/README.md @@ -463,7 +463,6 @@ Fix preview image node for the new comfyui layout. Rewrite of FFMPEG nodes, COnfiguration and Video preview. Many other bug fixes and improvements on many nodes, thx for the reports. - **0.78**: Fix Line selector Reset button javascript. (not showing on refresh) -Fix civitai links and folder creation, now only when you use the nodes. # 📝 Nodes descriptions