laurenok24 commited on
Commit
687643c
·
verified ·
1 Parent(s): cbf4adf

Update models/detectron2/platform_detector_setup.py

Browse files
models/detectron2/platform_detector_setup.py CHANGED
@@ -1,10 +1,10 @@
1
  import sys, os, distutils.core
2
 
3
- # os.system('python -m pip install pyyaml==5.3.1')
4
- # dist = distutils.core.run_setup("./detectron2/setup.py")
5
- # temp = ' '.join([f"'{x}'" for x in dist.install_requires])
6
- # cmd = "python -m pip install {0}".format(temp)
7
- # os.system(cmd)
8
  sys.path.insert(0, os.path.abspath('./detectron2'))
9
 
10
  import detectron2
 
1
  import sys, os, distutils.core
2
 
3
+ os.system('python -m pip install pyyaml==5.3.1')
4
+ dist = distutils.core.run_setup("./detectron2/setup.py")
5
+ temp = ' '.join([f"'{x}'" for x in dist.install_requires])
6
+ cmd = "python -m pip install {0}".format(temp)
7
+ os.system(cmd)
8
  sys.path.insert(0, os.path.abspath('./detectron2'))
9
 
10
  import detectron2