Code Monkey home page Code Monkey logo

Comments (7)

ke1ne avatar ke1ne commented on May 27, 2024 1

@ecker00

  1. Create&activate virtual environment:
cd automatic
python -m venv venv
.\venv\Scripts\activate
  1. Install Torch into that venv:
pip install torch torchaudio torchvision triton --force --extra-index-url https://download.pytorch.org/whl/cu118
  1. Exit venv:
.\venv\Scripts\deactivate
  1. Run UI via webui.bat. I'm using own runner instead (like start.bat):
@echo off

call git pull --recurse-submodules

set TF_CPP_MIN_LOG_LEVEL=2
set FORCE_CUDA="1"
set ATTN_PRECISION=fp16
set PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.9,max_split_size_mb:512
set CUDA_LAUNCH_BLOCKING=0
set CUDA_CACHE_DISABLE=0
set CUDA_AUTO_BOOST=1
set CUDA_DEVICE_DEFAULT_PERSISTING_L2_CACHE_PERCENTAGE_LIMIT=0
set CUDA_MODULE_LOADING="LAZY"
set GRADIO_ANALYTICS_ENABLED="False"
set SAFETENSORS_FAST_GPU=1

set COMMANDLINE_ARGS=--ckpt-dir="D:\AI\models" --vae-dir="D:\AI\vaes" --autolaunch --opt-channelslast --upcast-sampling --api --gradio-queue --theme dark --cors-allow-origins="http://127.0.0.1:7860" --update-all-extensions

call webui.bat

from automatic.

vladmandic avatar vladmandic commented on May 27, 2024

i've just re-added original webui.bat

from automatic.

ecker00 avatar ecker00 commented on May 27, 2024

The readme is missing documentation on how to install in windows.

Edit: If I understand correctly it's to just run webui.bat? But that gives me:

venv "…\automatic\venv\Scripts\Python.exe"
Traceback (most recent call last):
  File "…\automatic\launch.py", line 12, in <module>
    from rich import print
ModuleNotFoundError: No module named 'rich'

Which sounds a bit like python dependencies are not installed. Am I missing an instruction step?

from automatic.

ecker00 avatar ecker00 commented on May 27, 2024

That seemed to almost do it, but get error that it's unable to find the required version:

pip install torch torchaudio torchvision triton --force --extra-index-url https://download.pytorch.org/whl/cu118

Collecting torch
  Downloading torch-2.0.0-cp310-cp310-win_amd64.whl (172.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.3/172.3 MB 12.8 MB/s eta 0:00:00
Collecting torchaudio
  Downloading torchaudio-2.0.1-cp310-cp310-win_amd64.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 16.9 MB/s eta 0:00:00
Collecting torchvision
  Downloading torchvision-0.15.1-cp310-cp310-win_amd64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 9.5 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement triton (from versions: none)
ERROR: No matching distribution found for triton

If this works, should really add it to the readme.md

from automatic.

ke1ne avatar ke1ne commented on May 27, 2024

That seemed to almost do it, but get error that it's unable to find the required version:

Oh, simply remove the triton from the pip install line. There is no triton lib available on Windows.

from automatic.

ecker00 avatar ecker00 commented on May 27, 2024

Thank you, that got things to progress a bit!

But now encountering another error, but that's tracked here:
#100

from automatic.

ke1ne avatar ke1ne commented on May 27, 2024

@ecker00 It looks like we have to be patient a couple of days, there are multiple changes happening with the project, and many possible issues too. But it's great anyway.

from automatic.

Related Issues (20)

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.