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 ạ ?
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 . . .
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
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
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
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...
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
Đâ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
@@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
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
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
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
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.
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
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
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/
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 . . .
video chi tiết và dễ hiểu. Cảm ơn ad nhiều.
Cảm ơn bạn, hướng dẫn rất tốt! 🌹
Này win 7 dùng đc k anh
cho em hỏi sao e chọn Model nó không cho ạ
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 ạ ?
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
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
GTX 1050 ti chạy nỗi ko bạn >
Được mà chắc làm workflow cơ bản với model 1.5 thôi bạn
Cấu hình tối thiểu để cài ứng dụng này là bao nhiêu vậy ad ơi ?
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
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 . . .
Bạn đổi chữ get pull thành git pull nhé.
@@xskills6 Máy ko có card rời ko cài được phải ko a
@@xskills6 mình cũng đổi như bạn nói nhưng vân báo press any key to continue....
không có hỗ trợ gpu của AMD ạ. có cách nào để fix không a. cám ơn a ạ
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
Thanks, bạn hướng dẫn rất dễ hiểu và nhiều kiến thức hay
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
Bạn vào extention rồi tải về là được nhé.
@@xskills6 cảm ơn Bạn nhiều nhe :)
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
Quá hay và chi tiết, cảm ơn rất nhiều về video. Rất bổ ích.
cái này có thể sử dụng ảnh chân dung của mình đổi background AI ĐƯỢC KO ANH?
cấu hình của máy bạn ntn vậy, mình toàn bị lỗi
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😢
sao e làm y hệt mà đến ko thấy user.bat ta?
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
sao của em k hiện phần controlnet
Cái đó phải cài thêm bạn. Bạn search trên google cách cài nhé.
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.
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 ạ?
Bạn seach giúp mình từ khóa: "cách làm xuất hiện đuôi file"
tải rất nhiều lần vẫn không có đuôi .bat
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
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...
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
Đâ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
@@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
@@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
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
hình như vram k đủ dùng
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
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
sao SD của em màu trắng nhìn không giống của anh thế ạ ????
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ả
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
1660 ti mà còn không được thì chịu rồi :v
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
Cài trên máy dùng vĩnh viễn mà
Minh đã cài đc rất cảm ơn bạn !
bạn có thể team view cài giúp mình mình gửi bạn chút phí đc k ạ
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.
Free hay mất phí đấy bạn ơi
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.
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
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
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/
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 . . .
Chỉ mình giúp, nó bị lỗi gì vậy bạn.