diffuzers icon indicating copy to clipboard operation
diffuzers copied to clipboard

Crash when generate image

Open zhouhao27 opened this issue 1 year ago • 0 comments

Here are the steps:

  • diffuzers app
  • then load model.
  • Keep the default prompt blue elephant and click Generate

App crashes. Here is the error message:

INFO Args: Namespace(output=None, device='cpu') INFO {} INFO Args: Namespace(output=None, device='cpu') INFO {'output_path': None, 'device': 'cpu', 'FormSubmitter:x2img_model_form-Load model': True} Keyword arguments {'use_auth_token': False} are not expected by StableDiffusionPipeline and will be ignored.

Loading pipeline components...: 0%| | 0/6 [00:00<?, ?it/s] Loading pipeline components...: 17%|█▋ | 1/6 [00:00<00:00, 6.90it/s] Loading pipeline components...: 50%|█████ | 3/6 [00:00<00:00, 13.12it/s] Loading pipeline components...: 100%|██████████| 6/6 [00:00<00:00, 18.83it/s] You have disabled the safety checker for <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion_img2img.StableDiffusionImg2ImgPipeline'> by passing safety_checker=None. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 . You have disabled the safety checker for <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion_instruct_pix2pix.StableDiffusionInstructPix2PixPipeline'> by passing safety_checker=None. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 . INFO Args: Namespace(output=None, device='cpu') INFO {'x2img_model': 'stabilityai/stable-diffusion-2-base', 'output_path': None, 'textual_inversion_token_identifier': '', 'textual_inversion_embeddings': '', 'x2img': X2Image(device='cpu', model='stabilityai/stable-diffusion-2-base', output_path=None, custom_pipeline=None, embeddings_url='', token_identifier=''), 'device': 'cpu', 'x2img_custom_pipeline': 'Vanilla', 'FormSubmitter:x2img_model_form-Load model': False} /opt/miniconda3/envs/sd/lib/python3.11/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown warnings.warn('resource_tracker: There appear to be %d '

zhouhao27 avatar Jul 17 '24 07:07 zhouhao27