error when trying to edit

#2
by linoyts HF staff - opened

Hey there! Linoy from HF here ๐Ÿค—
This work is super cool, really excited to try it! I'm getting a weird error every time I try -
once I click generate it seems to work but when it's done processing it crashes.
I tried different images/prompts

Hi @linoyts ,

Thanks for your interest in our work! However, I can run the demo without error. Maybe you can firstly try the image and hyperparameters provided in our github (such as https://github.com/wangjiangshan0725/RF-Solver-Edit/blob/main/src/run_horse.sh) to see whether it can edit seccessfully?

To reproduce the result, we suggest to download the image from https://github.com/wangjiangshan0725/RF-Solver-Edit/blob/main/src/examples/source/horse.jpg. Then upload the image to this demo and set the value of hyperparameters according to https://github.com/wangjiangshan0725/RF-Solver-Edit/blob/main/src/run_horse.sh.

I will also check the code to find out if there is any bug.

Thanks a lot!
it worked, and very nice quality too :) Any thoughts as to why it would error on my image? for context I used the exact same params just changed the prompt

Screenshot 2024-12-04 at 10.13.23.png
Screenshot 2024-12-04 at 10.16.44.png
could it be an image size issue?

The error might be caused by the image size being too large, leading to insufficient GPU memory. We suggest trying to downsample the image. If you want to edit the image at its original size, you can use the command-line tool provided in our GitHub repository. Setting offload=True in the command can significantly reduce GPU memory usage.

Sign up or log in to comment