Numpy version must be 1.22 or less

#10
by chris-rannou HF staff - opened
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ import subprocess
10
 
11
  if os.getenv('SYSTEM') == 'spaces':
12
  subprocess.run('pip install pyembree'.split())
13
- subprocess.run('pip install rembg'.split())
14
  subprocess.run(
15
  'pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html'.split())
16
  subprocess.run(
 
10
 
11
  if os.getenv('SYSTEM') == 'spaces':
12
  subprocess.run('pip install pyembree'.split())
13
+ subprocess.run('pip install git+https://github.com/danielgatis/rembg.git@v2.0.13'.split())
14
  subprocess.run(
15
  'pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html'.split())
16
  subprocess.run(
requirements.txt CHANGED
@@ -7,6 +7,7 @@ yacs>=0.1.8
7
  scikit-image==0.19.1
8
  termcolor
9
  tqdm
 
10
  trimesh==3.9.35
11
  flatten_dict==0.4.2
12
  jpeg4py
@@ -15,7 +16,6 @@ rtree==0.9.7
15
  pytorch_lightning==1.2.5
16
  PyMCubes
17
  chumpy
18
- rembg>=2.0.3
19
  opencv-python
20
  opencv_contrib_python
21
  scikit-learn
 
7
  scikit-image==0.19.1
8
  termcolor
9
  tqdm
10
+ numpy==1.22.2
11
  trimesh==3.9.35
12
  flatten_dict==0.4.2
13
  jpeg4py
 
16
  pytorch_lightning==1.2.5
17
  PyMCubes
18
  chumpy
 
19
  opencv-python
20
  opencv_contrib_python
21
  scikit-learn