stable-diffusion-reference-only icon indicating copy to clipboard operation
stable-diffusion-reference-only copied to clipboard

colab error

Open loboere opened this issue 2 years ago • 1 comments


ValueError Traceback (most recent call last) in <cell line: 1>() ----> 1 automatic_coloring_pipeline = StableDiffusionReferenceOnlyPipeline.from_pretrained( 2 "AisingioroHao0/stable-diffusion-reference-only-automatic-coloring-0.1.2" 3 ).to(device) 4 automatic_coloring_pipeline.scheduler = UniPCMultistepScheduler.from_config( 5 automatic_coloring_pipeline.scheduler.config

1 frames /usr/local/lib/python3.10/dist-packages/diffusers/pipelines/pipeline_utils.py in download(cls, pretrained_model_name, **kwargs) 1683 custom_components[component] = module_candidate 1684 elif module_candidate not in LOADABLE_CLASSES and not hasattr(pipelines, module_candidate): -> 1685 raise ValueError( 1686 f"{candidate_file} as defined in model_index.json does not exist in {pretrained_model_name} and is not a module in 'diffusers/pipelines'." 1687 )

ValueError: unet/stable_diffusion_reference_only.models.unet_2d_dobule_condition.py as defined in model_index.json does not exist in AisingioroHao0/stable-diffusion-reference-only-automatic-coloring-0.1.2 and is not a module in 'diffusers/pipelines'.

loboere avatar Nov 08 '23 07:11 loboere

@loboere The temporary fix was fixed by fixing the diffusers version to 0.21.0. It seems that some new type checks have been added and custom modules are not supported. I will take a closer look.

aihao2000 avatar Nov 08 '23 09:11 aihao2000