From 37864bf15c0480b751a33cbd98cf04f54bf8c161 Mon Sep 17 00:00:00 2001 From: Alessandro Cerioni Date: Thu, 25 May 2023 06:54:54 +0000 Subject: [PATCH] Ignore UserWarning, cf. https://github.com/facebookresearch/detectron2/issues/3983 --- scripts/make_predictions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/make_predictions.py b/scripts/make_predictions.py index c78b33e..7640ed0 100644 --- a/scripts/make_predictions.py +++ b/scripts/make_predictions.py @@ -1,6 +1,9 @@ #!/usr/bin/env python # coding: utf-8 +import warnings +warnings.simplefilter(action='ignore', category=UserWarning) + import os, sys import argparse import json, yaml