From 49fd3aa53fb5cb3b658aeb530b5f4adf94b89403 Mon Sep 17 00:00:00 2001 From: liuxinwei Date: Thu, 12 Dec 2024 10:35:25 +0800 Subject: [PATCH] =?UTF-8?q?=09=E4=BF=AE=E6=94=B9=EF=BC=9A=20=20=20=20=20.g?= =?UTF-8?q?ithub/workflows/pages.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pages.yml | 2 +- pyproject.toml | 20 ++++++-------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index d122b5b..8b6d63b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -42,7 +42,7 @@ jobs: sudo apt-get install graphviz pip install -U openmim mim install mmcv - pip install .[doc,dev] + pip install .[doc] pip install sphinxcontrib-websupport conda install -c conda-forge pandoc invoke doc diff --git a/pyproject.toml b/pyproject.toml index 375f40e..ec39105 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,38 +64,31 @@ doc = [ "click", # required by mmagic/utils/io_utils.py "captum", "Flask-Compress", + "sphinx-autoapi", ] coverage = [ "pytest-cov", "pytest-regressions", "codecov", - "torch_book[test]", ] dev = [ "pre-commit", - "torch_book[coverage]", "controlnet_aux", - "diffusers>=0.23.0", + "diffusers", "einops", - "face-alignment<=1.3.4", + "face-alignment", "facexlib", - "lmdb", "lpips", "mediapipe", "numpy", - # MMCV depends opencv-python instead of headless, thus we install opencv-python - # Due to a bug from upstream, we skip this two version - # https://github.com/opencv/opencv-python/issues/602 - # https://github.com/opencv/opencv/issues/21366 - # It seems to be fixed in https://github.com/opencv/opencv/pull/21382 - "opencv-python!=4.5.5.62,!=4.5.5.64", - "pandas", # required by mmagic/models/editors/disco_diffusion/guider.py + "opencv-python", + "pandas", "Pillow", "resize_right", "tensorboard", - "transformers>=4.27.4", + "transformers", "accelerate", "torch", "tensorflow", @@ -105,7 +98,6 @@ dev = [ ] test = [ "pytest", - "torch_book[doc]", ] [tool.flit.module]