Spaces:
Sleeping
Sleeping
Update detectron2monitor.py
Browse files- 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()
|