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

On which port does the local server start? #20

Open
bropines opened this issue Jan 10, 2023 · 23 comments
Open

On which port does the local server start? #20

bropines opened this issue Jan 10, 2023 · 23 comments

Comments

@bropines
Copy link

I run the program through colab through the bore tunnel. The thing is that the local server cannot see the assigned port.

@bropines
Copy link
Author

image

@carefree0910
Copy link
Owner

The local port is 8123 by default, and since you've already seen the {"detail": "Not Found"}, it should be OK to use the url (bropines.online:36849) already 😉

@carefree0910
Copy link
Owner

Also, by running

cfcreator serve --help

You may find that you can specify the port via

cfcreator serve -p xxxx

@bropines
Copy link
Author

bropines commented Jan 10, 2023

The local port is 8123 by default, and since you've already seen the {"detail": "Not Found"}, it should be OK to use the url (bropines.online:36849) already 😉

But it doesn't give the gui to me. Or is it supposed to be like that?
Initially, I thought that the server runs on port 8123 on localhost and I just need to proxy it into the network, through the tunnel. But for some reason it didn't happen.

@bropines
Copy link
Author

I seem to get it. We create a server in the colab and connect it here
image

@bropines
Copy link
Author

Either my tunnel is a piece of garbage crap, or besides ngrok it doesn't work at all

@bropines
Copy link
Author

Either I'm an idiot or something is wrong. But the normal version on your server calmly outputs the result, running it on a local server or on a colab does not output anything. Stupidly endless loading.

@carefree0910
Copy link
Owner

That looks weird, might be a bug... I'll look into it 😣

@carefree0910
Copy link
Owner

Hi, I found that if you use the Try these out! section, the generation process will be stuck; but if you press the Generate & Add button directly, you can get the results. This is definitely a bug and I'll fix it ASAP!

@bropines
Copy link
Author

bropines commented Jan 11, 2023

in general, it is planned to lay out the frontend code so that people just run a local server, if they can. For example, naifu materials or the shell from automatic1111 simply runs as WebUI directly on the Colab server.

I would also like a button in the local server settings that checks the connection. I think many people will feel calmer that they haven't messed up anywhere

@carefree0910
Copy link
Owner

carefree0910 commented Jan 11, 2023

Sorry for bringing you terrible experience, the bug comes from the WebUI part - I emit an event before I listen to it, so the first try will be messed up. 😣

Now I've updated the WebUI, everything should be fine after you refresh it!

For your advice: the whole project was designed to decouple frontend and the backend, which is pretty different from the typical Gradio-based projects (e.g. automatic1111). I designed in this way because I want to bring more flexibility to it: people can build their own frontend based on the backend APIs, or can build their own backend based on the frontend API interfaces.

And this project, carefree-creator, is the backend part. 😉 The frontend part is scheduled to be open-sourced, as mentioned here.

I know that Gradio-based projects also supports exposing backend APIs, but I think those APIs are not as standard/flexible as I need. 😔

@bropines
Copy link
Author

image
I must have broken something again.

@carefree0910
Copy link
Owner

Ah, looks weird... Maybe you misfilled the Server Host? The ngrok address will change everytime you run the colab.

To check out if the Server Host is filled correctly, you can copy paste it to your browser and see if it shows {"detail": "Not Found"}. 😉

@bropines
Copy link
Author

Ah, looks weird... Maybe you misfilled the Server Host? The ngrok address will change everytime you run the colab.

To check out if the Server Host is filled correctly, you can copy paste it to your browser and see if it shows {"detail": "Not Found"}. 😉

I understood that. And when you click on the link, he writes not found. But here that on my tunnel that on ngrok it does not work. I can't run it now, but I can give you a link to notepad for your tests

@bropines
Copy link
Author

bropines commented Jan 12, 2023

@carefree0910
Copy link
Owner

Turns out that it's an https issue, which can be observed if you open the console of your browser:

image

I'm not familiar with bore, but if you can get it serve https service, it should be fine!

@bropines
Copy link
Author

Turns out that it's an https issue, which can be observed if you open the console of your browser:

image

I'm not familiar with bore, but if you can get it serve https service, it should be fine!

Here I used LocalTunnel. I think I can make it work with a certificate

@bropines
Copy link
Author

browser_Wz5JRUCoau.mp4

Presets not working)

@carefree0910
Copy link
Owner

Oh, the ACG Paints application is actually an internal testing feature that should not appear here yet. 🤣 I'll hide them tomorrow.

@bropines
Copy link
Author

Oh, the ACG Paints application is actually an internal testing feature that should not appear here yet. 🤣 I'll hide them tomorrow.

A.... OK.

@carefree0910
Copy link
Owner

Because this application is not fully 'local' at the mean time, I'm using some third party APIs which may cost me quite a few dollars. 🤣 Once I localized those algorithms, I'll send it back online! 😉

@bropines
Copy link
Author

bropines commented Jan 12, 2023

Because this application is not fully 'local' at the mean time, I'm using some third party APIs which may cost me quite a few dollars. 🤣 Once I localized those algorithms, I'll send it back online! 😉

Okay. Here's another question. Will there be VAE support for models? I just didn't see it in the settings

@carefree0910
Copy link
Owner

You mean only loading your own VAE? Not for now because that will be a little too fine grained. 😣 But you can load your own (full) ckpt: https://github.com/carefree0910/carefree-creator#custom-checkpoints

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

No branches or pull requests

2 participants