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

NSFW Allowed? #22

Open
AnnoSpmz opened this issue Mar 9, 2023 · 8 comments
Open

NSFW Allowed? #22

AnnoSpmz opened this issue Mar 9, 2023 · 8 comments

Comments

@AnnoSpmz
Copy link

AnnoSpmz commented Mar 9, 2023

is it possible to disable the nsfw checker? with an argument like --no_nsfw_checker, or any other way? (for scientific reasons)

@carefree0910
Copy link
Owner

Hi! If you can deploy locally, there are two ways to do it:

  1. Refer to this issue.
  2. You can actually call the APIs directly, which will give you back the image Response without any nsfw checker!

The API documentation locates at something like {host}/redoc, where the host is your domain url. 😉

@AnnoSpmz
Copy link
Author

AnnoSpmz commented Mar 9, 2023

Hi! If you can deploy locally, there are two ways to do it:

  1. Refer to this issue.
  2. You can actually call the APIs directly, which will give you back the image Response without any nsfw checker!

The API documentation locates at something like {host}/redoc, where the host is your domain url. 😉

Hello! Thanks, but I can't find any images logged under the network tab, it only seems like api requests to gw.nolibox.com. Am I doing something wrong? I will look into the second option you mentioned, although I don't really know how to do that. Will read the documentation at /redoc I guess, thanks :)

@carefree0910
Copy link
Owner

Hi! If you can deploy locally, there are two ways to do it:

  1. Refer to this issue.
  2. You can actually call the APIs directly, which will give you back the image Response without any nsfw checker!

The API documentation locates at something like {host}/redoc, where the host is your domain url. 😉

Hello! Thanks, but I can't find any images logged under the network tab, it only seems like api requests to gw.nolibox.com. Am I doing something wrong? I will look into the second option you mentioned, although I don't really know how to do that. Will read the documentation at /redoc I guess, thanks :)

Hi! Looks like you have not deployed the APIs locally before you look into the network tab, have you installed this package, or used the Google Colab to deploy one?

@AnnoSpmz
Copy link
Author

AnnoSpmz commented Mar 9, 2023

Hi! If you can deploy locally, there are two ways to do it:

  1. Refer to this issue.
  2. You can actually call the APIs directly, which will give you back the image Response without any nsfw checker!

The API documentation locates at something like {host}/redoc, where the host is your domain url. 😉

Hello! Thanks, but I can't find any images logged under the network tab, it only seems like api requests to gw.nolibox.com. Am I doing something wrong? I will look into the second option you mentioned, although I don't really know how to do that. Will read the documentation at /redoc I guess, thanks :)

Hi! Looks like you have not deployed the APIs locally before you look into the network tab, have you installed this package, or used the Google Colab to deploy one?

Oh right! I'm stupid, I was using your server, without deploying it myself. Sorry, also, I'm really new so you will have to excuse me, but what is Google Colab and how does it work? Can I run code in google colab? Is that in the cloud or locally? Do I have to download anything there? Thank you very much

@carefree0910
Copy link
Owner

Hi! You can treat Google Colab as a 'online code runner with GPUs', which means:

  1. yes, you can run codes in it.
  2. in the cloud.
  3. yes you have to download my models there, but the models will be downloaded to their (Google's) cloud server, and will not occupy your disk space.

And here's the Colab link: https://colab.research.google.com/github/carefree0910/carefree-creator/blob/dev/tests/server.ipynb, you can try it out to see if everything goes right!

@AnnoSpmz
Copy link
Author

Okay! Thank you very much :)

@AnnoSpmz
Copy link
Author

Hey! I started up the Google Colab version, but it seems like what you said in that other issue, about it being visible in the networks tab, didn't work... It works for the regular images, but not for the flagged ones. Although the logged png I get in the network tab on the normal ones already seems uploaded on your cdn, so I get that the flagged ones aren't there. The other stuff just seems like API requests to my webserver and to your cdn. Are you sure that we're able to see the raw generated on the networks tab? Thanks!

@carefree0910
Copy link
Owner

carefree0910 commented Mar 19, 2023

Yes, I'm pretty sure, because the API service can only return raw images, which will be uploaded to the cloud at the WebUI. So before uploading, the raw images have to be sent to the WebUI, so you should be able to see the images!

  • The requests correspond to these raw images in the network tab will be displayed as sd.
  • You may fail to see the raw image from the network tab directly, but you can copy the request into curl or other format you like and utilize your cmd/postman to fetch the outputs!

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