SHARK icon indicating copy to clipboard operation
SHARK copied to clipboard

256x256 image generation doesnt work

Open axel578 opened this issue 1 year ago • 6 comments

I tried generating through the API images of 256x256 resolution with SD1.5 without success, also --width and --height argument doesnt work, also custom model doesnt work through the API, its very limited and cpkt _loc doesnt work well with API , just test a custom 1.5 model through API, you will get errors.

256x256 is not a bad or unecessary resolution, many models output really fine on that resolution.

to reproduce, use a custom sd 1.5 model and query api with 256x256 resolution.

axel578 avatar Aug 30 '23 23:08 axel578

Can you provide some more info? I'm not able to reproduce with runwayml/stable-diffusion-v1-5 - it seems to generate 256x256 images just fine.

gpetters94 avatar Sep 01 '23 16:09 gpetters94

Can you provide some more info? I'm not able to reproduce with runwayml/stable-diffusion-v1-5 - it seems to generate 256x256 images just fine.

Hey thanks for your reponse @gpetters94

The workflow that doesnt work for me is on a ryzen 7 7735 HS 680 M gpu,

workflow: use https://civitai.com/models/9409/or-anything-v5ink as cpkt or safetensors

try to generate an image in 256x256 through the API in the api request.

If it works for you, could you tell me what you use as file config and command line arguments and API call arguments ?

axel578 avatar Sep 01 '23 19:09 axel578

Also custom model is not possible in API request

axel578 avatar Sep 01 '23 19:09 axel578

@gpetters94 any progress ? :)

axel578 avatar Sep 06 '23 18:09 axel578

@gpetters94 ??

axel578 avatar Sep 12 '23 12:09 axel578

I'm not able to reproduce what you're seeing, I've gotten that model to work just fine. Can you try these commands?

SHARK command: python3 apps/stable_diffusion/web/index.py --import_mlir --server_port 7860 --api --clear_all

API call: curl --header "Content-Type: application/json" --request POST --data '{"prompt":"Cat standing in a field", "negative_prompt": "deformed, ugly", "seed": "-1", "height": 256, "width": 256, "steps": 50, "cfg_scale": 7, "custom_vae": "https://civitai.com/models/9409/or-anything-v5ink"}' http://192.168.16.1:7860/sdapi/v1/txt2img

If those work, can you post the commands you were running? They might have been incorrectly formatted.

gpetters94 avatar Sep 12 '23 19:09 gpetters94