Skip to content

Commit

Permalink
Refactor requirements (2/2)
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Nov 2, 2024
1 parent 4a99d7f commit 8a18a0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 40 deletions.
3 changes: 2 additions & 1 deletion generate-requirements5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ set -eu

cat > requirements5.txt << EOF
nanobind
huggingface_hub[hf_transfer]
EOF

array=(
Expand Down Expand Up @@ -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


Expand Down
3 changes: 1 addition & 2 deletions requirements4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cupy-cuda12x
diffusers
fairscale
ftfy
huggingface-hub[hf-transfer]
imageio
joblib
kornia
Expand All @@ -16,10 +17,8 @@ matplotlib
numpy==1.26.4
omegaconf
onnx
onnxruntime
onnxruntime-gpu
opencv-contrib-python-headless
opencv-python-headless
pandas
pilgram
pillow
Expand Down
37 changes: 0 additions & 37 deletions requirements5.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
accelerate
addict
aiohttp
albumentations
Expand All @@ -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
Expand All @@ -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
Expand All @@ -76,42 +52,29 @@ 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
slangtorch
soundfile
spandrel
svglib
timm
tokenizers
torch
torchaudio
torchdiffeq
torchmetrics
torchscale
torchsde
torchtyping
torchvision
tqdm
transformers
transparent-background
trimesh[easy]
typer
Expand Down

0 comments on commit 8a18a0d

Please sign in to comment.