Skip to content

Commit 463b13f

Browse files
committed
ignore ShapelyDeprecationWarning from fvcore
1 parent 35758f3 commit 463b13f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

train_net.py

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
55
This script is a simplified version of the training script in detectron2/tools.
66
"""
7+
try:
8+
# ignore ShapelyDeprecationWarning from fvcore
9+
from shapely.errors import ShapelyDeprecationWarning
10+
import warnings
11+
warnings.filterwarnings('ignore', category=ShapelyDeprecationWarning)
12+
except:
13+
pass
14+
715
import copy
816
import itertools
917
import logging

train_net_video.py

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
55
This script is a simplified version of the training script in detectron2/tools.
66
"""
7+
try:
8+
# ignore ShapelyDeprecationWarning from fvcore
9+
from shapely.errors import ShapelyDeprecationWarning
10+
import warnings
11+
warnings.filterwarnings('ignore', category=ShapelyDeprecationWarning)
12+
except:
13+
pass
14+
715
import copy
816
import itertools
917
import logging

0 commit comments

Comments
 (0)