New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Increase image input size limit in imgtoimg #15723
Comments
sorry what and why 300 MB image?
such as? |
in an ultimate Upscaling process, using multidiffusion/tiled, we insert an input image, in image to image, we increase it in size, there is a limit to inserting an image of maximum 300mb, which makes it impossible to continue creating increasingly larger images, I believe That this input limit is from the Gradio interface, because any other limit I found, such as the grid limit to create a canvas, I have already been able to adjust, can you understand what I'm talking about? |
I'm not sure gradio has a limit by default. The option to limit the size of uploaded files was only recently added. Perhaps you're reaching the limit for data URLs.
|
Understood, thank you very much for the clarification, I'm going to test the loopback, I believe you're right and I'm reaching the data URL limit, because even if I send the resulting image via being to img2img it hangs and can't send it and we also don't have any message in the terminal or warnings, I'll test the loopback and tell you here what I achieved, if I couldn't continue inserting increasingly larger files to continue with the upscaling I think the only alternative would be to create the same flow using the Automatic1111 SDK, do you have any suggestion? Thx |
300mb image uploads will probably be a new feature in 3 months given how fast things are moving 😂 |
You might also check for JavaScript errors in the browser's Console (F12).
If you want to try that, here's an img2img API example. import requests
import base64
# Open input image
with open("input.png", "rb") as f:
img = base64.b64encode(f.read()).decode("utf-8")
# Define parameters
payload = {
"prompt": "hot air balloon",
"init_images": [img],
}
# Send request
response = requests.post(url="http://127.0.0.1:7860/sdapi/v1/img2img", json=payload)
r = response.json()
# Save output
with open("output.png", "wb") as f:
f.write(base64.b64decode(r["images"][0])) See the API docs for parameters. Payloads can also be generated with this extension. |
Is there an existing issue for this?
What would your feature do ?
There is a size limit for sending a file to imgtoimg I believe it is a maximum of 300mb, I also believe it comes from the Gradio interface, because even changing possible limits in grid files etc we still have this limit imposed, could anyone tell us where this limit to making a change is implicit, it would be incredible as it is limiting a number of cool things to happen, thank you very much in advance for your attention and congratulations on the incredible work 🙏
Proposed workflow
Additional information
No response
The text was updated successfully, but these errors were encountered: