Skip to content

Commit

Permalink
optimize log message
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanyiLi committed Aug 22, 2023
1 parent 6fd500a commit d5b460a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions metadrive/component/sensors/base_camera.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import logging

import numpy as np

from metadrive.utils.cuda import check_cudart_err
Expand Down Expand Up @@ -41,7 +39,7 @@ def __init__(self, engine, setup_pbr=False, need_cuda=False):
height = self.BUFFER_H
if (width > 100 or height > 100) and not self.enable_cuda:
# Too large height or width will cause corruption in Mac.
logging.warning(
self.logger.warning(
"You may using too large buffer! The height is {}, and width is {}. "
"It may lower the sample efficiency! Considering reduce buffer size or using cuda image by"
" set [image_on_cuda=True].".format(height, width)
Expand Down

0 comments on commit d5b460a

Please sign in to comment.