GithubHelp home page GithubHelp logo

soulteary / docker-stable-diffusion-xl-turbo Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 1.0 313 KB

Stable Diffusion XL Turbo 实时文生图、图生图

Home Page: https://soulteary.com/2024/01/13/stable-diffusion-xl-turbo-image-generation.html

License: Apache License 2.0

Dockerfile 3.35% Python 96.65%
sdxl-turbo docker-stable-diffusion stable-diffusion-xl-turbo

docker-stable-diffusion-xl-turbo's Introduction

docker-stable-diffusion-xl-turbo's People

Contributors

soulteary avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-stable-diffusion-xl-turbo's Issues

运行 docker 容器后卡住了

The cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling `transformers.utils.move_cache()`.
0it [00:00, ?it/s]
Loading pipeline components...: 100%|██████████| 7/7 [00:03<00:00,  1.99it/s]
Loading pipeline components...: 100%|██████████| 7/7 [00:00<00:00,  7.13it/s]


卡在这里不动了,重新 docker build --no-cache 然后 run 也是这样

OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory /app/stabilityai/sdxl-turbo/text_encoder_2

tree /a /F
文件夹 PATH 列表    
卷序列号为 768F-B66D
D:.                 
|   .gitignore      
|   app.py          
|   LICENSE         
|   README.md       
|                   
+---.github         
|       img2img.jpg 
|       txt2img.jpg    
|                                           
+---docker                                  
|       Dockerfile                          
|       Dockerfile.cn
|                                           
\---stabilityai                             
    \---sdxl-turbo                          
        |   .gitattributes                  
        |   configuration.json              
        |   image_quality_one_step.png      
        |   LICENSE.TXT                     
        |   model_index.json                
        |   output_tile.jpg                 
        |   prompt_alignment_one_step.png   
        |   README.md                       
        |   sd_xl_turbo_1.0.safetensors     
        |   sd_xl_turbo_1.0_fp16.safetensors
        |                                   
        +---scheduler                       
        |       scheduler_config.json       
        |                                   
        +---text_encoder                    
        |       config.json                 
        |                                   
        +---text_encoder_2
        |       config.json
        |
        +---tokenizer
        |       merges.txt
        |       special_tokens_map.json
        |       tokenizer_config.json
        |       vocab.json
        |
        +---tokenizer_2
        |       merges.txt
        |       special_tokens_map.json
        |       tokenizer_config.json
        |       vocab.json
        |
        +---unet
        |       config.json
        |       diffusion_pytorch_model.fp16.safetensors
        |       diffusion_pytorch_model.safetensors
        |
        \---vae
                config.json
                diffusion_pytorch_model.fp16.safetensors
                diffusion_pytorch_model.safetensors

#####

docker run --rm -it -p 7860:7860 -p 8080:8080 --gpus all --ipc=host --ulimit memlock=-1 -v D:\.code\docker-stable-diffusion-xl-turbo:/app soulteary/sdxl-turbo-runtime python app.py

=============
== PyTorch ==
=============
Copyright (c) 2011-2013 NYU                      (Clement Farabet)
Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
Copyright (c) 2006      Idiap Research Institute (Samy Bengio)
Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
Copyright (c) 2015      Google Inc.
Copyright (c) 2015      Yangqing Jia
Copyright (c) 2013-2016 The Caffe contributors
All rights reserved.

Various files include modifications (c) NVIDIA CORPORATION & AFFILIATES.  All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

The cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling `transformers.utils.move_cache()`.
0it [00:00, ?it/s]
Loading pipeline components...:   0%|                                                                                                                                                                                                                               | 0/7 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/app/app.py", line 22, in <module>
    "img2img": AutoPipelineForImage2Image.from_pretrained(
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/diffusers/pipelines/auto_pipeline.py", line 615, in from_pretrained
    return image_2_image_cls.from_pretrained(pretrained_model_or_path, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/diffusers/pipelines/pipeline_utils.py", line 1271, in from_pretrained
    loaded_sub_model = load_sub_model(
  File "/usr/local/lib/python3.10/dist-packages/diffusers/pipelines/pipeline_utils.py", line 525, in load_sub_model
    loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
  File "/usr/local/lib/python3.10/dist-packages/transformers/modeling_utils.py", line 3206, in from_pretrained
    raise EnvironmentError(
OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory /app/stabilityai/sdxl-turbo/text_encoder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.