Files
nunchaku-tech-ComfyUI-nunchaku/scripts/download_test_data.py
T
Muyang Li 02b84d1a4d chore: add a test for removal lora (#208)
* update

* fix the random seed

* fill lora does not work

* add a test for fill removal
2025-05-28 10:12:24 -07:00

21 lines
698 B
Python

# isort: off
import os
import wget
from tqdm import tqdm
# isort: on
if __name__ == "__main__":
os.makedirs("input", exist_ok=True)
filenames = ["logo.png", "robot.png", "strawberry.png", "strawberry-mask.png", "mushroom_depth.webp", "removal.png"]
for filename in tqdm(filenames):
if os.path.exists(os.path.join("input", filename)):
print(f"File {filename} already exists, skipping download.")
continue
print(f"Downloading {filename}...")
wget.download(
f"https://huggingface.co/mit-han-lab/nunchaku-artifacts/resolve/main/ComfyUI-nunchaku/test_data/{filename}",
out=os.path.join("input", filename),
)