HubHop commited on
Commit
1987539
·
1 Parent(s): 897875e
Files changed (2) hide show
  1. app.py +6 -0
  2. requirements.txt +0 -4
app.py CHANGED
@@ -1,4 +1,10 @@
1
  # Copyright (c) OpenMMLab. All rights reserved.
 
 
 
 
 
 
2
  from argparse import ArgumentParser
3
 
4
  import cv2
 
1
  # Copyright (c) OpenMMLab. All rights reserved.
2
+ import os
3
+
4
+ os.system('pip install -U openmim')
5
+ os.system('mim install mmengine')
6
+ os.system('mim install "mmcv>=2.0.0"')
7
+
8
  from argparse import ArgumentParser
9
 
10
  import cv2
requirements.txt CHANGED
@@ -2,10 +2,6 @@ torch
2
  opencv-python
3
  plotly
4
  gradio
5
- pip==23.0.1
6
- openmim
7
- mmcv-full
8
- mmengine
9
  SciPy
10
  ftfy
11
  regex
 
2
  opencv-python
3
  plotly
4
  gradio
 
 
 
 
5
  SciPy
6
  ftfy
7
  regex