Skip to content
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

Error: NAPI API failure: Number expected #38

Open
Vektor369 opened this issue Feb 2, 2023 · 0 comments
Open

Error: NAPI API failure: Number expected #38

Vektor369 opened this issue Feb 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Vektor369
Copy link

Vektor369 commented Feb 2, 2023

Hi. I’m so sorry. I’m completely lost, and have no idea what I’m doing. I’m just trying to get the Stable.art Photoshop plugin to work, but whenever I click Generate, it gives me the following error:
Error: NAPI API failure: Number expected

I followed the instructions here:
https://github.com/isekaidev/stable.art#how-to-install
But I got stuck at:
https://github.com/isekaidev/stable.art#start-api-server
I use Automatic1111 locally, so it said to follow the guide here:
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API
Which I tried, and when I open http://127.0.0.1:7860/docs, it does look very similar to the images they have there, but the moment they started talking about “constructing a payload with the parameters”, I have absolutely no idea what they were talking about. I posted in their discussion, but they said that if I have --api in my commandline args, and I see the API endpoints when going to /docs, that's pretty much it on the Web UI side.

I'm not sure what else to say about the error.

My Stable Diffusion Automatic1111 runs fine.
I run the with --api after set COMMANDLINE_ARGS= in webui-user.bat
I launch Photoshop
The plugin seems to load fine in Photoshop
I make a selection with the Rectangular Marquee Tool
I put the local URL in the Endpoint box: http://127.0.0.1:7860
The Model option has default (current webui value) checked
I put any Prompt in
Negative Prompt empty
Seed empty (or a number like: 1333168849)
Sampling method: DPM2 Karras
Steps: 20
CFG Scale: 7
Mode: txt2img
Advanced Settings: Number of images: 4

I click Generate, and it gives me the error message. Generating sits at (0%) indefinitely (unless I click Interrupt,) and sometimes it scrolls back up to Seed, which led me to believe it had something to do with the Seed, but as I said, I've tried leaving it empty, and I've tried putting in a legitimate number like 1333168849 (copied from a successful generation in the webui,) but it's still the same result. I can change models just fine, but that's it.

Again, I'm not sure what else to include.

So if anyone could let me know what I’m doing wrong, or point me in the right direction, I’d certainly appreciate it. Thank you in advance.

@isekaidev isekaidev added the bug Something isn't working label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants