diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f4f403c..03e1efa1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,7 +58,7 @@ stages: cache: key: files: - - api/requirements.txt + - api/requirements/base.txt paths: - .cache/pip policy: pull-push diff --git a/api/Makefile b/api/Makefile index cada39d6..1ee72d01 100644 --- a/api/Makefile +++ b/api/Makefile @@ -10,7 +10,7 @@ check-venv: if [ -z $${VIRTUAL_ENV+x} ]; then echo "Are you sure you want to install dependencies outside of a virtual environment?"; sleep 30; fi pip: check-venv - pip install -r requirements.txt + pip install -r requirements/base.txt pip-dev: check-venv pip install -r requirements/dev.txt diff --git a/api/requirements.txt b/api/requirements.txt deleted file mode 100644 index 2ac35af8..00000000 --- a/api/requirements.txt +++ /dev/null @@ -1,26 +0,0 @@ -### Specific versions ### -numpy>=1.20,<1.24 -protobuf<4,>=3.20.2 - -### AI packages ### -accelerate -diffusers -onnx -onnxruntime -safetensors -transformers - -#### Upscaling and face correction -basicsr -codeformer-perceptor -facexlib -gfpgan -realesrgan - -### Server packages ### -boto3 -flask -flask-cors -jsonschema -pyyaml -setproctitle \ No newline at end of file diff --git a/docs/user-guide.md b/docs/user-guide.md index 069a553f..9fc04f37 100644 --- a/docs/user-guide.md +++ b/docs/user-guide.md @@ -1052,7 +1052,7 @@ differentiate between them. Using `python3` and `pip3` _instead of_ `python` and `pip` in the commands should resolve this issue: ```shell -> pip3 install -r requirements.txt # for example, you may be running a different command +> pip3 install -r requirements/base.txt # for example, you may be running a different command ``` #### AttributeError: module 'numpy' has no attribute 'float'