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

has_nsfw_concept is a bool #3790

Closed
orenong opened this issue Jun 14, 2023 · 5 comments
Closed

has_nsfw_concept is a bool #3790

orenong opened this issue Jun 14, 2023 · 5 comments
Labels
stale Issues that haven't received updates

Comments

@orenong
Copy link

orenong commented Jun 14, 2023

Hi, I noticed that most of the implementations of the smooth zoom in SD died because of an error that comes from

pipeline_stable_diffusion_inpaint.py, line 1064

"TypeError: 'bool' object is not iterable"

Wonder if anybody knows what caused it and if it's a bug

@patrickvonplaten
Copy link
Contributor

Can you please add a reproducible code snippet?

@takhyun12
Copy link

I had the same issue after the version upgrade, but I was able to resolve it.

I had used a trick to disable the safety_check in the pipeline as follows, but after the version upgrade, the code checks if it's None, so I made the following changes.

Before:

pipeline.safety_checker = lambda images, clip_input: (images, False)

After:

pipeline.safety_checker = lambda images, clip_input: (images, None)

@orenong
Copy link
Author

orenong commented Jun 16, 2023

Can you please add a reproducible code snippet?
The colab in this one is an example for when it breaks
https://github.com/BalintKomjati/smooth-infinite-zoom

I had the same issue after the version upgrade, but I was able to resolve it.

I had used a trick to disable the safety_check in the pipeline as follows, but after the version upgrade, the code checks if it's None, so I made the following changes.

Before:

pipeline.safety_checker = lambda images, clip_input: (images, False)

After:

pipeline.safety_checker = lambda images, clip_input: (images, None)

I can't disable NSFW, it's highly important for my use case

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot added the stale Issues that haven't received updates label Jul 15, 2023
@rsxdalv
Copy link

rsxdalv commented Aug 24, 2023

Unless something has been fixed in the background, this issue does not seem to be fixed.

Here's the downstream impact: riffusion/riffusion-hobby#148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issues that haven't received updates
Projects
None yet
Development

No branches or pull requests

4 participants