Skip to content

Enforce image height and width from 0-1024 pixels - #13

Open
ckuethe wants to merge 1 commit into
lemonade-sdk:mainfrom
ckuethe:add_size_bounds_check
Open

Enforce image height and width from 0-1024 pixels#13
ckuethe wants to merge 1 commit into
lemonade-sdk:mainfrom
ckuethe:add_size_bounds_check

Conversation

@ckuethe

@ckuethe ckuethe commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

0 is treated as model default, and anything over 1024 is an error. CLI, API, and WUI all enforce these and give useful errors.

I went with 1024 as the upper limit since I have no evidence that any models are trained on larger inputs; the internet says to use upscaling if you want larger images

Fixes #11

0 is treated as model default, and anything over 1024 is an error. CLI, API,
and WUI all enforce these and give useful errors.

I went with 1024 as the upper limit since I have no evidence that any models
are trained on larger inputs; if you want a bigger output use upscaling.
@bitgamma

Copy link
Copy Markdown
Member

1024 is not even close to being reasonable. 4096 sounds more like it

@bitgamma

Copy link
Copy Markdown
Member

also, I don't like adding hard limits. This limit should only be in the index.html and generate cli to help the user not shot themselves in the foot, but not enforced in the API

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.

add some sensible image size restrictions

2 participants