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]