HugoHE commited on
Commit
39f90f0
1 Parent(s): 0f4aad6

Update detectron2monitor.py

Browse files
Files changed (1) hide show
  1. detectron2monitor.py +5 -0
detectron2monitor.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import torch
2
  from detectron2.utils.logger import setup_logger
3
  setup_logger()
 
1
+ try:
2
+ import detectron2
3
+ except:
4
+ import os
5
+ os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
6
  import torch
7
  from detectron2.utils.logger import setup_logger
8
  setup_logger()