Hi,
NSFW Disabled: NOP's Stable Diffusion Colab v0.55 (1.4 Weights)
NOP's Basic Staple Diffusion v0.52 (1.4 Weights)
After running the RenderImage I am getting these errors
Creating Patches
NameError Traceback (most recent call last)
in eval_settings(self)
947 try:
--> 948 if pipetype != settings['mode'] or pipe is None:
949 Cache.Pipe.make(settings)
NameError: name 'pipetype' is not defined
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
5 frames
ModuleNotFoundError: No module named 'diffusers'
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
in install_diffusers()
996 print(subprocess.run(['cp','/usr/local/lib/python3.7/dist-packages/diffusers/pipelines/stable_diffusion/safety_checker.py','/content/safety_checker.py'], stdout=subprocess.PIPE).stdout.decode('utf-8'))
997 print(subprocess.run(['cp','/content/safety_checker.py','/content/safety_checker_patched.py'], stdout=subprocess.PIPE).stdout.decode('utf-8'))
--> 998 with open(f'/content/safety_checker_patched.py','r') as unpatched_file:
999 patch = unpatched_file.read().replace('for idx, has_nsfw_concept in enumerate(has_nsfw_concepts):','#for idx, has_nsfw_concept in enumerate(has_nsfw_concepts):').replace('if has_nsfw_concept:','# if has_nsfw_concept:').replace('images[idx] = np.zeros(images[idx].shape) # black image', '# images[idx] = np.zeros(images[idx].shape) # black image').replace("Potential NSFW content was detected in one or more images. A black image will be returned instead.","Potential NSFW content was detected in one or more images. It's patched out, no actions were taken.").replace(" Try again with a different prompt and/or seed.","")
1000 with open(f'/content/safety_checker_patched.py','w') as file:
FileNotFoundError: [Errno 2] No such file or directory: '/content/safety_checker_patched.py'
Thanks
Hi,
NSFW Disabled: NOP's Stable Diffusion Colab v0.55 (1.4 Weights)
NOP's Basic Staple Diffusion v0.52 (1.4 Weights)
After running the RenderImage I am getting these errors
Creating Patches
NameError Traceback (most recent call last)
in eval_settings(self)
947 try:
--> 948 if pipetype != settings['mode'] or pipe is None:
949 Cache.Pipe.make(settings)
NameError: name 'pipetype' is not defined
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
5 frames
ModuleNotFoundError: No module named 'diffusers'
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
in install_diffusers()
996 print(subprocess.run(['cp','/usr/local/lib/python3.7/dist-packages/diffusers/pipelines/stable_diffusion/safety_checker.py','/content/safety_checker.py'], stdout=subprocess.PIPE).stdout.decode('utf-8'))
997 print(subprocess.run(['cp','/content/safety_checker.py','/content/safety_checker_patched.py'], stdout=subprocess.PIPE).stdout.decode('utf-8'))
--> 998 with open(f'/content/safety_checker_patched.py','r') as unpatched_file:
999 patch = unpatched_file.read().replace('for idx, has_nsfw_concept in enumerate(has_nsfw_concepts):','#for idx, has_nsfw_concept in enumerate(has_nsfw_concepts):').replace('if has_nsfw_concept:','# if has_nsfw_concept:').replace('images[idx] = np.zeros(images[idx].shape) # black image', '# images[idx] = np.zeros(images[idx].shape) # black image').replace("Potential NSFW content was detected in one or more images. A black image will be returned instead.","Potential NSFW content was detected in one or more images. It's patched out, no actions were taken.").replace(" Try again with a different prompt and/or seed.","")
1000 with open(f'/content/safety_checker_patched.py','w') as file:
FileNotFoundError: [Errno 2] No such file or directory: '/content/safety_checker_patched.py'
Thanks