From 8a18a0d423ccd613f34a24cd2feb8b2c6b55e0f4 Mon Sep 17 00:00:00 2001 From: YAN Wenkun Date: Sat, 2 Nov 2024 18:53:48 +0800 Subject: [PATCH] Refactor requirements (2/2) --- generate-requirements5.sh | 3 ++- requirements4.txt | 3 +-- requirements5.txt | 37 ------------------------------------- 3 files changed, 3 insertions(+), 40 deletions(-) diff --git a/generate-requirements5.sh b/generate-requirements5.sh index 31ce5fa..c7b27cb 100644 --- a/generate-requirements5.sh +++ b/generate-requirements5.sh @@ -3,7 +3,6 @@ set -eu cat > requirements5.txt << EOF nanobind -huggingface_hub[hf_transfer] EOF array=( @@ -45,6 +44,8 @@ sed -i 's/[[:space:]]*$//' requirements5.txt sed -i 's/>=.*$//' requirements5.txt sed -i 's/_/-/g' requirements5.txt +grep -Fxv -f requirements4.txt requirements5.txt > temp.txt && mv temp.txt requirements5.txt + sort -uo requirements5.txt requirements5.txt diff --git a/requirements4.txt b/requirements4.txt index 7e21719..4bc4268 100644 --- a/requirements4.txt +++ b/requirements4.txt @@ -8,6 +8,7 @@ cupy-cuda12x diffusers fairscale ftfy +huggingface-hub[hf-transfer] imageio joblib kornia @@ -16,10 +17,8 @@ matplotlib numpy==1.26.4 omegaconf onnx -onnxruntime onnxruntime-gpu opencv-contrib-python-headless -opencv-python-headless pandas pilgram pillow diff --git a/requirements5.txt b/requirements5.txt index bc0c397..f1b12c6 100644 --- a/requirements5.txt +++ b/requirements5.txt @@ -1,4 +1,3 @@ -accelerate addict aiohttp albumentations @@ -10,35 +9,24 @@ cachetools clip-interrogator color-matcher colour-science -compel -cupy-cuda12x deepdiff -diffusers dill einops -fairscale fastapi filelock -ftfy fvcore gguf GitPython google-generativeai gpytoolbox -huggingface-hub[hf-transfer] -imageio imageio-ffmpeg importlib-metadata inference-cli inference-gpu[yolo-world] iopath jaxtyping -joblib -kornia -lark lark-parser loguru -matplotlib matrix-client==0.4.0 mediapipe mss @@ -47,27 +35,15 @@ nerfacc ninja numba numexpr -numpy<2 -omegaconf -onnx -onnxruntime -onnxruntime-gpu open-clip-torch -opencv-contrib-python -opencv-python -opencv-python-headless packaging -pandas peft piexif -pilgram -pillow plyfile protobuf psd-tools psutil py-cpuinfo -pygit2 PyGithub pygltflib pyhocon @@ -76,23 +52,17 @@ PyMCubes pymeshlab pynvml python-dateutil -python-ffmpeg pytorch-lightning pytorch-msssim pyyaml pyzbar qrcode[pil] -regex rembg requests requirements-parser rich rich-argparse safetensors -scikit-build-core -scikit-image -scikit-learn -scipy segment-anything sentencepiece simpleeval @@ -100,18 +70,11 @@ slangtorch soundfile spandrel svglib -timm tokenizers -torch -torchaudio -torchdiffeq -torchmetrics torchscale torchsde torchtyping -torchvision tqdm -transformers transparent-background trimesh[easy] typer