WanImageProcessor / README.md
YiYiXu's picture
Update README.md
f2db290 verified
|
raw
history blame
431 Bytes

this repo contains the default image preprocessing code for wan 2.2 5B I2V pipeline

this will load an image from URL, resize and center crop it

image_processor = ModularPipeline.from_pretrained("YiYiXu/WanImageProcessor", trust_remote_code=True)
image = image_processor(
    image="https://huggingface.co/datasets/YiYiXu/testing-images/resolve/main/wan_i2v_input.JPG",
    max_area=1280*704, output="processed_image")