How to install and use Stable Diffision

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 62

  • @ktskhoa-KiemTienThongMinh
    @ktskhoa-KiemTienThongMinh 4 місяці тому +1

    video chi tiết và dễ hiểu. Cảm ơn ad nhiều.

  • @yhoccotruyentrungquoc
    @yhoccotruyentrungquoc Рік тому +1

    Cảm ơn bạn, hướng dẫn rất tốt! 🌹

  • @nqhealer8236
    @nqhealer8236 4 місяці тому

    Này win 7 dùng đc k anh

  • @manhnguyen-g4n
    @manhnguyen-g4n 11 місяців тому

    cho em hỏi sao e chọn Model nó không cho ạ

  • @naiha2593
    @naiha2593 Рік тому +1

    ad cho mình hỏi là mình làm các bước đều ổn và chạy được web rồi nhưng mà sao cái giao diện web của mình nó cứ bị trắng bóc chứ ko phải màu đen giống của ad nhỉ, để vậy rất khó nhìn ad có cách nào để fix về đen ko ạ ?

    • @xskills6
      @xskills6  Рік тому

      Cái đó bạn chuyển chế độ dark mode trên trình duyệt nhé. KHông phải cài đặt trên sd

  • @cookingandtips_com
    @cookingandtips_com Рік тому

    mình ko cài dc,dù đả cài 4,5 lần,cho đến khi xem dc video này,rất cảm ơn ad

  • @inhcuong4910
    @inhcuong4910 4 місяці тому +1

    GTX 1050 ti chạy nỗi ko bạn >

    • @xskills6
      @xskills6  4 місяці тому

      Được mà chắc làm workflow cơ bản với model 1.5 thôi bạn

  • @tranzen6557
    @tranzen6557 Рік тому +1

    Cấu hình tối thiểu để cài ứng dụng này là bao nhiêu vậy ad ơi ?

    • @xskills6
      @xskills6  Рік тому

      Yêu cầu card màn hình là chủ yếu thôi bạn. 8GB trở lên là tốt nhất bạn

  • @thuvientuduy
    @thuvientuduy Рік тому +1

    E NÓ BÁO NHƯ VẬY THÌ FIX SAO ĐƯỢC A. MONG A HỖ TRỢ Ạ
    C:\Users\Dell\Desktop\Stable\Stable Diffusion\stable-diffusion-webui>get pull
    'get' is not recognized as an internal or external command,
    operable program or batch file.
    venv "C:\Users\Dell\Desktop\Stable\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
    Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
    Version: v1.4.0
    Commit hash: 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
    Traceback (most recent call last):
    File "C:\Users\Dell\Desktop\Stable\Stable Diffusion\stable-diffusion-webui\launch.py", line 38, in
    main()
    File "C:\Users\Dell\Desktop\Stable\Stable Diffusion\stable-diffusion-webui\launch.py", line 29, in main
    prepare_environment()
    File "C:\Users\Dell\Desktop\Stable\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 268, in prepare_environment
    raise RuntimeError(
    RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
    Press any key to continue . . .

    • @xskills6
      @xskills6  Рік тому +1

      Bạn đổi chữ get pull thành git pull nhé.

    • @thuvientuduy
      @thuvientuduy Рік тому

      @@xskills6 Máy ko có card rời ko cài được phải ko a

    • @bazeronguyen603
      @bazeronguyen603 Рік тому

      @@xskills6 mình cũng đổi như bạn nói nhưng vân báo press any key to continue....

  • @sezrunay6057
    @sezrunay6057 Рік тому +1

    không có hỗ trợ gpu của AMD ạ. có cách nào để fix không a. cám ơn a ạ

    • @xskills6
      @xskills6  Рік тому

      Cái này vẫn chưa fix được bạn. Chịu khó đổi sang hoặc dùng bản Colab thôi bạn

  • @duchiendrive2543
    @duchiendrive2543 Рік тому +1

    Thanks, bạn hướng dẫn rất dễ hiểu và nhiều kiến thức hay

  • @quoctran3652
    @quoctran3652 Рік тому +2

    Bạn ơi làm sao để cài được tab CivitAI như bản trên Colab ạ. cảm ơn Bạn về video rất hay

    • @xskills6
      @xskills6  Рік тому

      Bạn vào extention rồi tải về là được nhé.

    • @quoctran3652
      @quoctran3652 Рік тому

      @@xskills6 cảm ơn Bạn nhiều nhe :)

  • @patuan89
    @patuan89 Рік тому

    của mình bị lỗi như này khi chạy file .bat, support mình với
    Creating venv in directory C:\Users\Admin\Desktop\hong\Stable Diffusion\stable-diffusion-webui\venv using python "C:\Python27\python.exe"
    Unable to create venv in directory "C:\Users\Admin\Desktop\hong\Stable Diffusion\stable-diffusion-webui\venv"
    exit code: 1
    stderr:
    C:\Python27\python.exe: No module named venv

  • @bachdiepkyphan88888
    @bachdiepkyphan88888 Рік тому

    Quá hay và chi tiết, cảm ơn rất nhiều về video. Rất bổ ích.

  • @thuytien491
    @thuytien491 Рік тому

    cái này có thể sử dụng ảnh chân dung của mình đổi background AI ĐƯỢC KO ANH?

  • @thanhvnhd
    @thanhvnhd Рік тому +1

    cấu hình của máy bạn ntn vậy, mình toàn bị lỗi

  • @jinbao520
    @jinbao520 Рік тому

    Máy mình rất mạnh sử dụng thấy rất lâu
    Mấy bạn máy yếu sao chịu nổi😢

  • @sora4265
    @sora4265 Рік тому

    sao e làm y hệt mà đến ko thấy user.bat ta?

    • @xskills6
      @xskills6  Рік тому +1

      Chắc hẳn bạn thấy file user mà ko thấy user.bat. Bạn kích vào file user đó bình thường nhé. Mình hiện đuôi file cho dễ nhìn và làm việc. Nếu muốn tìm hiểu thêm bạn kích vào link này xem nhé: www.thegioididong.com/game-app/cach-hien-file-an-va-duoi-file-tren-windown-sieu-nhanh-chi-1292683

  • @trungnguyen-rw1zq
    @trungnguyen-rw1zq Рік тому +1

    sao của em k hiện phần controlnet

    • @xskills6
      @xskills6  Рік тому

      Cái đó phải cài thêm bạn. Bạn search trên google cách cài nhé.

  • @candytruong
    @candytruong 7 місяців тому

    Chỗ chạy file "webui-user,bat" các bạn xóa cái "VENV" đi nha nếu không chạy được.

  • @NguyenAnh-yi
    @NguyenAnh-yi Рік тому +1

    Dạ anh ơi, em làm theo anh nhưng đến bước chỉnh sửa file.bat thì em lại không thấy file có đuôi "bat" hiện ra thì phải làm sao ạ?

    • @xskills6
      @xskills6  Рік тому

      Bạn seach giúp mình từ khóa: "cách làm xuất hiện đuôi file"

  • @hungtan343
    @hungtan343 Рік тому

    tải rất nhiều lần vẫn không có đuôi .bat

    • @xskills6
      @xskills6  Рік тому +1

      Chắc hẳn bạn thấy file user mà ko thấy user.bat. Bạn kích vào file user đó bình thường nhé. Mình hiện đuôi file cho dễ nhìn và làm việc. Nếu muốn tìm hiểu thêm bạn kích vào link này xem nhé: www.thegioididong.com/game-app/cach-hien-file-an-va-duoi-file-tren-windown-sieu-nhanh-chi-1292683

  • @LamNguyen-dt8dg
    @LamNguyen-dt8dg Рік тому +1

    em đã cài nhưng nó không ra địa chỉ web nó chạy đến như này
    [notice] A new release of pip available: 22.3.1 -> 23.1.2
    [notice] To update, run: F:\Stable diffision\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
    Installing gfpgan
    Installing clip
    Installing open_clip
    Cloning Stable Diffusion into F:\Stable diffision\stable-diffusion-webui
    epositories\stable-diffusion-stability-ai...
    Cloning Taming Transformers into F:\Stable diffision\stable-diffusion-webui
    epositories\taming-transformers...

    • @LamNguyen-dt8dg
      @LamNguyen-dt8dg Рік тому +1

      INFO: customize MSVCCompiler using ConditionalOpenMP
      INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (/O2)
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": visualstudio.microsoft.com/visual-cpp-build-tools/
      INFO: CCompilerOpt.cache_flush[857] : write cache to path -> C:\Users\LENOVO\AppData\Local\Temp\pip-install-_gj02381\scikit-image_0a8fe1f2b1c9434eb145d946fd228e0f\build\temp.win-amd64-3.11\Release\ccompiler_opt_cache_ext.py
      [end of output]
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for scikit-image
      ERROR: Could not build wheels for scikit-image, which is required to install pyproject.toml-based projects
      [notice] A new release of pip available: 22.3.1 -> 23.1.2
      [notice] To update, run: F:\Stable diffision\stable-diffusion-webui\venv\Scripts\pytho

    • @xskills6
      @xskills6  Рік тому

      Đây dường như không phải là một lỗi, đó là một thông báo cho bạn biết rằng 'pip' đã có bản cập nhật (NẾU bạn muốn). Hơi buồn cười vì pip thường là cái làm công việc cập nhật, nhưng nó không có khả năng tự cập nhật, vì nó sẽ phải tự gỡ bỏ rồi cài đặt phiên bản mới, nhưng nó sẽ tự gỡ bỏ như thế nào nếu nó hiện đang chạy?
      Bạn bấm Windows + R rồi gõ cmd, sau đó thêm dòng lệnh này vào nhé: "C:\Program Files\ai\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install --upgrade pip

    • @xskills6
      @xskills6  Рік тому

      @@LamNguyen-dt8dg
      Phần đầu bạn có vẻ cần cài thêm Mircrosoft C++ build Tools. Bạn kích vào link bên dưới, tải về cài đặt rồi restart lại máy nhé.
      aka.ms/vs/16/release/vs_buildtools.exe

    • @LamNguyen-dt8dg
      @LamNguyen-dt8dg Рік тому

      @@xskills6 bro cho em xin số điện thoại em liên hệ và hướng dẫn em cài đặt được không

  • @bombomtvyoutube
    @bombomtvyoutube Рік тому

    Video rất hay. Mình bị lỗi này thì làm ntn ạ :
    OutOfMemoryError: CUDA out of memory. Tried to allocate 32.00 MiB (GPU 0; 4.00 GiB total capacity; 2.29 GiB already allocated; 14.64 MiB free; 2.35 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
    Time taken: 1.71sTorch active/reserved: 2361/2402 MiB, Sys VRAM: 4082/4096 MiB (99.66%
    Cám ơn bạn

  • @nhanluong6981
    @nhanluong6981 Рік тому

    bạn cho mình hỏi, mình tới đây
    Textual inversion embeddings loaded(0):
    Model loaded in 59.8s (calculate hash: 31.4s, load weights from disk: 1.1s, create model: 1.5s, apply weights to model: 1.0s, apply half(): 0.9s, load VAE: 0.1s, move model to device: 0.8s, load textual inversion embeddings: 22.8s).
    rồi đứng lâu lắm không hiện ra cái url sau đó ra cái gì bảo Y/N bấm Y xong nó tắt luôn, mở lại file webui-user.bat cũng k lên luôn bạn

    • @nhanluong6981
      @nhanluong6981 Рік тому

      lần này chạy lại nó đứng luôn ngay chổ
      Applying optimization: Doggettx... done.
      Textual inversion embeddings loaded(0):
      Model loaded in 85.8s (load weights from disk: 8.4s, load config: 0.1s, create model: 1.2s, apply weights to model: 51.8s, apply half(): 0.7s, load VAE: 0.1s, move model to device: 1.0s, load textual inversion embeddings: 22.4s).
      mà không hiện url la luôn bạn

  • @thinhducng202
    @thinhducng202 Рік тому +1

    sao SD của em màu trắng nhìn không giống của anh thế ạ ????

    • @xskills6
      @xskills6  Рік тому +1

      Cái đó mình thiết lập theme bóng tối trong Firefox để cho dịu mắt thôi, không liên quan gì đến phần mềm cả

  • @lequanghung4202
    @lequanghung4202 Рік тому +1

    máy mình dùng 1660ti 6gb mà nó tạo cái ảnh mất gần 1 tiếng :v ảo thật đấy

    • @ntd_1337
      @ntd_1337 Рік тому

      1660 ti mà còn không được thì chịu rồi :v

    • @xskills6
      @xskills6  Рік тому

      Lên 4090 có mấy giây thôi bạn 🤣

  •  Рік тому

    Chạy trên web 1 mail đc 4h, cài trên máy dùng đc cả ngày k bro

    • @DrFait
      @DrFait Рік тому

      Cài trên máy dùng vĩnh viễn mà

  • @NguyenHung-s3m
    @NguyenHung-s3m Рік тому +1

    Minh đã cài đc rất cảm ơn bạn !

  • @malachinoble7439
    @malachinoble7439 Рік тому +1

    bạn có thể team view cài giúp mình mình gửi bạn chút phí đc k ạ

    • @xskills6
      @xskills6  Рік тому

      Bạn nhắn cho mình số đt, mình add Zalo rồi teamview mình cài cho. Ko càn phí gì đâu ban.

  • @sieuthitonghopcaocap
    @sieuthitonghopcaocap Рік тому

    Free hay mất phí đấy bạn ơi

  • @viminh-t-2993
    @viminh-t-2993 Рік тому

    kiểu mình thì bị thế này sửa sao v ad :> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
    Stable diffusion model failed to load
    Applying optimization: Doggettx... done.

  • @miraikuriyama57
    @miraikuriyama57 Рік тому +1

    Làm theo hướng dẫn nhưng khi chạy file.bat thì nó hiện như này:
    D:\Stable Diffusion\stable-diffusion-webui>git pull
    Already up to date.
    venv "D:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
    Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
    Version: v1.3.0
    Commit hash: 20ae71faa8ef035c31aa3a410b707d792c8203a3
    Traceback (most recent call last):
    File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 38, in
    main()
    File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 29, in main
    prepare_environment()
    File "D:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 257, in prepare_environment
    raise RuntimeError(
    RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
    Press any key to continue . . .
    Có thể cho mình biết cách khắc phục được không ạ! Thanks

  • @TRONGDUNG
    @TRONGDUNG Рік тому +1

    Kg gời Bạn
    Tôi đã làm theo hướng dẫn rất chi tiết của bạn, nhưng đến khi chạy file webui-user.bat thì nó hiện ra như sau
    " C:\STABLE DIFFUSION\stable-diffusion-webui>git pull
    Already up to date.
    venv "C:\STABLE DIFFUSION\stable-diffusion-webui\venv\Scripts\Python.exe"
    Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
    Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89
    Installing torch and torchvision
    C:\STABLE DIFFUSION\stable-diffusion-webui\venv\Scripts\python.exe: No module named pip
    Traceback (most recent call last):
    File "C:\STABLE DIFFUSION\stable-diffusion-webui\launch.py", line 352, in
    prepare_environment()
    File "C:\STABLE DIFFUSION\stable-diffusion-webui\launch.py", line 254, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
    File "C:\STABLE DIFFUSION\stable-diffusion-webui\launch.py", line 80, in run
    raise RuntimeError(f"""{errdesc or 'Error running command'}.
    RuntimeError: Couldn't install torch.
    Command: "C:\STABLE DIFFUSION\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.0.0 torchvision==0.15.1 --extra-index-url download.pytorch.org/whl/cu118
    Error code: 1
    Press any key to continue . . . "
    Mong bạn chỉ dẫn cách khắc phục
    Cám ơn bạn nhiều

    • @xskills6
      @xskills6  Рік тому +1

      Khả năng bạn bị lỗi với bộ cài đặt python. Bạn thử delete file venv đó, cài lại python phiên bản khác rồi chạy lại file.bat xem.
      www.python.org/downloads/release/python-3113/

  • @kiettran6234
    @kiettran6234 Рік тому

    D:\ẢNH\Stable diffusion\stable-diffusion-webui>get pull
    'get' is not recognized as an internal or external command,
    operable program or batch file.
    venv "D:\ẢNH\Stable diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
    Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
    Version: v1.4.1
    Commit hash: f865d3e11647dfd6c7b2cdf90dde24680e58acd8
    Installing torch and torchvision
    D:\ẢNH\Stable diffusion\stable-diffusion-webui\venv\Scripts\python.exe: No module named pip
    Traceback (most recent call last):
    File "D:\ẢNH\Stable diffusion\stable-diffusion-webui\launch.py", line 38, in
    main()
    File "D:\ẢNH\Stable diffusion\stable-diffusion-webui\launch.py", line 29, in main
    prepare_environment()
    File "D:\ẢNH\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 265, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
    File "D:\ẢNH\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 107, in run
    raise RuntimeError("
    ".join(error_bits))
    RuntimeError: Couldn't install torch.
    Command: "D:\ẢNH\Stable diffusion\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url download.pytorch.org/whl/cu118
    Error code: 1
    Press any key to continue . . .

    • @kiettran6234
      @kiettran6234 Рік тому

      Chỉ mình giúp, nó bị lỗi gì vậy bạn.