Stable-Diffusion-Android icon indicating copy to clipboard operation
Stable-Diffusion-Android copied to clipboard

Local A1111 session not working

Open bfvogel opened this issue 2 years ago • 3 comments

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):

  • OS: Fedora Linux
  • Version 37

Smartphone (please complete the following information):

  • Device: Samsung / Motorola
  • OS: Android12

bfvogel avatar Aug 24 '23 02:08 bfvogel

Did not reproduced your issue on env:

  • SDAI FOSS 0.5.0
  • A1111 1.6.0

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 avatar Sep 03 '23 12:09 ShiftHackZ

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

ShiftHackZ avatar Sep 03 '23 14:09 ShiftHackZ

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.

bfvogel avatar Sep 05 '23 03:09 bfvogel