Skip to content

Add multi-GPU preprocessing#43

Open
lavinal712 wants to merge 2 commits into
sihyun-yu:mainfrom
lavinal712:main
Open

Add multi-GPU preprocessing#43
lavinal712 wants to merge 2 commits into
sihyun-yu:mainfrom
lavinal712:main

Conversation

@lavinal712
Copy link
Copy Markdown

In the original code, training feature extraction with REPA was cumbersome and extremely time-consuming. The new code offers multi-GPU multi-threading for feature extraction, reducing the time from 8 hours to 50 minutes.

torchrun --nproc_per_node=8 preprocess.py \
    --source=[YOUR_DOWNLOAD_PATH]/ILSVRC/Data/CLS-LOC/train \
    --dest=[TARGET_PATH]/vae-sd \
    --dest-images=[TARGET_PATH]/images \
    --batch-size=128 \
    --resolution=256 \
    --transform=center-crop-dhariwal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant