Skip to content

Commit

Permalink
remove profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrj committed Jan 13, 2025
1 parent 37f4ca4 commit 6270e6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nerfstudio/data/utils/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import torch
from PIL import Image
from PIL.Image import Image as PILImage
from torch.profiler import record_function


def pil_to_numpy(im: PILImage) -> np.ndarray:
Expand All @@ -35,8 +34,7 @@ def pil_to_numpy(im: PILImage) -> np.ndarray:
numpy.ndarray representing the image data.
"""
# Load in image completely (PIL defaults to lazy loading)
with record_function("im.load()"):
im.load()
im.load()

# Unpack data
e = Image._getencoder(im.mode, "raw", im.mode)
Expand Down

0 comments on commit 6270e6b

Please sign in to comment.