Skip to content

Commit

Permalink
fixed bug for matplotlib
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunkoome committed Dec 13, 2024
1 parent 6994532 commit 1964d93
Show file tree
Hide file tree
Showing 251 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions magicdrive/runner/map_visualizer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from typing import Tuple, Union
import io
import matplotlib
# and set the backend to be Agg (no gui)
matplotlib.use('Agg')
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
from PIL import Image
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import cv2
import mmcv
import numpy as np

import matplotlib
matplotlib.use('Agg') # 반드시 pyplot을 import하기 전에 설정
from matplotlib import pyplot as plt

from ..bbox import LiDARInstance3DBoxes
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1964d93

Please sign in to comment.