ShiftHackZ / Stable-Diffusion-Android

Stable Diffusion AI client app for Android
https://sdai.moroz.cc
GNU Affero General Public License v3.0
541 stars 56 forks source link

Local A1111 session not working #87

Open bfvogel opened 10 months ago

bfvogel commented 10 months ago

Describe the bug When trying to use a local A1111 instance I receive an error:

"Parameter specified as non-null is null: method com.shifthackz.aisdv1.domain.entitiy.ServerConfiguration., parameter sdModelCheckpoint

To Reproduce Unknown as it always happens for me on multiple devices.

Things I have tried: Simplified network so that A111 server and mobile are on same L2 segment.

Simplified startup flags to only "--api --listen"

Tried authed and anonymous access

Tried FOSS and Play Store version

Updated A1111 to latest

Expected behavior Local A1111 usage works as described

Desktop (please complete the following information):

Smartphone (please complete the following information):

ShiftHackZ commented 10 months ago

Did not reproduced your issue on env:

The variable sd_model_checkpoint should return a string with model that is currently selected, so in your case api of your a1111 does not return this, but app expects this.

There is the opened issue with same behavior on A1111 repo: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9013

ShiftHackZ commented 10 months ago

I modified response backward compatibility for the SDAI app to allow having fields as null. In theory, even if your instance fails on sending sd_model_checkpoint, app will fallback to some default value. Please, check if you have the problem in latest version 0.5.2: https://github.com/ShiftHackZ/Stable-Diffusion-Android/releases/tag/0.5.2

bfvogel commented 10 months ago

Confirmed that release 0.5.2 works around my access issue. Odd thing is my A1111 instance does not return null for the model as I validated the payload with my local shell scripts. One thing that does strike me odd is post login with the app when I go into the config to select a model some of my models do not show up.