Spaces:
Paused
Paused
| import os | |
| import requests | |
| # Dictionary of files to download and their corresponding URLs | |
| files_to_download = { | |
| "models/animatediff_models/v3_sd15_mm.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/animatediff_models/v3_sd15_mm.ckpt", | |
| "models/animatediff_models/sd15_t2v_beta.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/animatediff_models/sd15_t2v_beta.ckpt", | |
| "models/checkpoints/juggernaut_reborn-inpainting.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/checkpoints/juggernaut_reborn-inpainting.safetensors", | |
| "models/checkpoints/juggernaut_reborn.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/checkpoints/juggernaut_reborn.safetensors", | |
| "models/checkpoints/photonLCM_v10.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/checkpoints/photonLCM_v10.safetensors", | |
| "models/clip_vision/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/clip_vision/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors", | |
| "models/controlnet/adiff_ControlGIF_controlnet.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/controlnet/adiff_ControlGIF_controlnet.ckpt", | |
| "models/controlnet/control_v11p_sd15_canny_fp16.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/controlnet/control_v11p_sd15_canny_fp16.safetensors", | |
| "models/controlnet/v3_sd15_sparsectrl_rgb.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/controlnet/v3_sd15_sparsectrl_rgb.ckpt", | |
| "models/controlnet/v3_sd15_sparsectrl_scribble.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/controlnet/v3_sd15_sparsectrl_scribble.ckpt", | |
| "models/controlnet/controlnet_checkpoint.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/controlnet/controlnet_checkpoint.ckpt", | |
| "models/ipadapter/ip-adapter-plus_sd15.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/ipadapter/ip-adapter-plus_sd15.safetensors", | |
| "models/loras/v3_sd15_adapter.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/loras/v3_sd15_adapter.ckpt", | |
| "models/upscale_models/RealESRGAN_x2plus.pth": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/upscale_models/RealESRGAN_x2plus.pth", | |
| "models/animatediff_models/AnimateLCM_sd15_t2v.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/animatediff_models/AnimateLCM_sd15_t2v.ckpt", | |
| "custom_nodes/ComfyUI-Frame-Interpolation/ckpts/rife/rife47.pth": "https://github.com/styler00dollar/VSGAN-tensorrt-docker/releases/download/models/rife47.pth" | |
| } | |
| # Base directory for ComfyUI installation | |
| base_dir = "C:/Users/bewiz/OneDrive/Desktop/AI/ComfyUI_windows_portable/ComfyUI/" | |
| def download_file(url, dest_path): | |
| response = requests.get(url, stream=True) | |
| response.raise_for_status() | |
| os.makedirs(os.path.dirname(dest_path), exist_ok=True) | |
| with open(dest_path, 'wb') as file: | |
| for chunk in response.iter_content(chunk_size=8192): | |
| file.write(chunk) | |
| def main(): | |
| results = [] | |
| for relative_path, url in files_to_download.items(): | |
| dest_path = os.path.join(base_dir, relative_path) | |
| if os.path.exists(dest_path): | |
| results.append(f"Already exists: {dest_path}") | |
| continue | |
| try: | |
| download_file(url, dest_path) | |
| results.append(f"Downloaded: {dest_path}") | |
| except Exception as e: | |
| results.append(f"Failed to download {url}. Error: {e}") | |
| # Print results | |
| for result in results: | |
| print(result) | |
| if __name__ == "__main__": | |
| main() | |
| import os | |
| import requests | |
| # Dictionary of files to download and their corresponding URLs | |
| files_to_download = { | |
| "models/animatediff_models/v3_sd15_mm.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/animatediff_models/v3_sd15_mm.ckpt", | |
| "models/animatediff_models/sd15_t2v_beta.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/animatediff_models/sd15_t2v_beta.ckpt", | |
| "models/checkpoints/juggernaut_reborn-inpainting.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/checkpoints/juggernaut_reborn-inpainting.safetensors", | |
| "models/checkpoints/juggernaut_reborn.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/checkpoints/juggernaut_reborn.safetensors", | |
| "models/checkpoints/photonLCM_v10.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/checkpoints/photonLCM_v10.safetensors", | |
| "models/clip_vision/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/clip_vision/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors", | |
| "models/controlnet/adiff_ControlGIF_controlnet.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/controlnet/adiff_ControlGIF_controlnet.ckpt", | |
| "models/controlnet/control_v11p_sd15_canny_fp16.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/controlnet/control_v11p_sd15_canny_fp16.safetensors", | |
| "models/controlnet/v3_sd15_sparsectrl_rgb.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/controlnet/v3_sd15_sparsectrl_rgb.ckpt", | |
| "models/controlnet/v3_sd15_sparsectrl_scribble.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/controlnet/v3_sd15_sparsectrl_scribble.ckpt", | |
| "models/controlnet/controlnet_checkpoint.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/controlnet/controlnet_checkpoint.ckpt", | |
| "models/ipadapter/ip-adapter-plus_sd15.safetensors": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/ipadapter/ip-adapter-plus_sd15.safetensors", | |
| "models/loras/v3_sd15_adapter.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/loras/v3_sd15_adapter.ckpt", | |
| "models/upscale_models/RealESRGAN_x2plus.pth": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/upscale_models/RealESRGAN_x2plus.pth", | |
| "models/animatediff_models/AnimateLCM_sd15_t2v.ckpt": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/animatediff_models/AnimateLCM_sd15_t2v.ckpt", | |
| "custom_nodes/ComfyUI-Frame-Interpolation/ckpts/rife/rife47.pth": "https://github.com/styler00dollar/VSGAN-tensorrt-docker/releases/download/models/rife47.pth" | |
| } | |
| # Base directory for ComfyUI installation | |
| base_dir = "C:/Users/bewiz/OneDrive/Desktop/AI/ComfyUI_windows_portable/ComfyUI/" | |
| def download_file(url, dest_path): | |
| response = requests.get(url, stream=True) | |
| response.raise_for_status() | |
| os.makedirs(os.path.dirname(dest_path), exist_ok=True) | |
| with open(dest_path, 'wb') as file: | |
| for chunk in response.iter_content(chunk_size=8192): | |
| file.write(chunk) | |
| def main(): | |
| results = [] | |
| for relative_path, url in files_to_download.items(): | |
| dest_path = os.path.join(base_dir, relative_path) | |
| if os.path.exists(dest_path): | |
| results.append(f"Already exists: {dest_path}") | |
| continu | |