ahrm / UnstableFusion

A Stable Diffusion desktop frontend with inpainting, img2img and more!
GNU General Public License v3.0
1.26k stars 84 forks source link

unexpected keyword argument 'serialized_options' #3

Closed ffdown closed 2 years ago

ffdown commented 2 years ago

Traceback (most recent call last): File "unstablefusion.py", line 7, in from diffusionserver import StableDiffusionHandler File "E:\AI\SD\SDUI\UnstableFusion-main\diffusionserver.py", line 4, in from diffusers import StableDiffusionPipeline, StableDiffusionInpaintPipeline, StableDiffusionImg2ImgPipeline File "e:\ai\koi-main\diffusers\src\diffusers__init.py", line 18, in from .pipelines import DDIMPipeline, DDPMPipeline, KarrasVePipeline, LDMPipeline, PNDMPipeline, ScoreSdeVePipeline File "e:\ai\koi-main\diffusers\src\diffusers\pipelines__init.py", line 11, in from .latent_diffusion import LDMTextToImagePipeline File "e:\ai\koi-main\diffusers\src\diffusers\pipelines\latent_diffusion__init__.py", line 6, in from .pipeline_latent_diffusion import LDMBertModel, LDMTextToImagePipeline File "e:\ai\koi-main\diffusers\src\diffusers\pipelines\latent_diffusion\pipeline_latent_diffusion.py", line 12, in from transformers.modeling_utils import PreTrainedModel File "E:\Anaconda3\envs\ldm\lib\site-packages\transformers\modeling_utils.py", line 79, in from accelerate import dispatch_model, infer_auto_device_map, init_empty_weights File "E:\Anaconda3\envs\ldm\lib\site-packages\accelerate\init.py", line 7, in from .accelerator import Accelerator File "E:\Anaconda3\envs\ldm\lib\site-packages\accelerate\accelerator.py", line 33, in from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers File "E:\Anaconda3\envs\ldm\lib\site-packages\accelerate\tracking.py", line 29, in from torch.utils import tensorboard File "E:\Anaconda3\envs\ldm\lib\site-packages\torch\utils\tensorboard\init__.py", line 10, in from .writer import FileWriter, SummaryWriter # noqa: F401 File "E:\Anaconda3\envs\ldm\lib\site-packages\torch\utils\tensorboard\writer.py", line 9, in from tensorboard.compat.proto.event_pb2 import SessionLog File "E:\Anaconda3\envs\ldm\lib\site-packages\tensorboard\compat\proto\event_pb2.py", line 17, in from tensorboard.compat.proto import summary_pb2 as tensorboard_dot_compat_dot_proto_dot_summarypb2 File "E:\Anaconda3\envs\ldm\lib\site-packages\tensorboard\compat\proto\summary_pb2.py", line 17, in from tensorboard.compat.proto import tensor_pb2 as tensorboard_dot_compat_dot_proto_dot_tensorpb2 File "E:\Anaconda3\envs\ldm\lib\site-packages\tensorboard\compat\proto\tensor_pb2.py", line 16, in from tensorboard.compat.proto import resource_handle_pb2 as tensorboard_dot_compat_dot_proto_dot_resourcehandlepb2 File "E:\Anaconda3\envs\ldm\lib\site-packages\tensorboard\compat\proto\resource_handle_pb2.py", line 16, in from tensorboard.compat.proto import tensor_shape_pb2 as tensorboard_dot_compat_dot_proto_dot_tensorshapepb2 File "E:\Anaconda3\envs\ldm\lib\site-packages\tensorboard\compat\proto\tensor_shape_pb2.py", line 18, in DESCRIPTOR = _descriptor.FileDescriptor( TypeError: init__() got an unexpected keyword argument 'serialized_options'

ahrm commented 2 years ago

Maybe try pip install protobuf and see if the issue persists.

ffdown commented 2 years ago

Maybe try pip install protobuf and see if the issue persists.

thanks, fixed =)) But everyone prompt "Potential NSFW content was detected in one or more images. A black image will be returned instead. Try again with a different prompt and/or seed." how i can disable it?

ahrm commented 2 years ago

It is disabled by default in the latest commits.

ffdown commented 2 years ago

It is disabled by default in the latest commits.

big 10x =)