Skip to content

Commit

Permalink
re-format SMC reader import to reduce error
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyBusyYang committed May 30, 2022
1 parent d1d1fce commit 26aeaad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmhuman3d/data/datasets/pipelines/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import mmcv
import numpy as np

import mmhuman3d.data.data_structures as data_structures
from mmhuman3d.data.data_structures.smc_reader import SMCReader
from ..builder import PIPELINES


Expand Down Expand Up @@ -50,7 +50,7 @@ def __call__(self, results):
assert 'image_id' in results, 'Load image from .smc, ' \
'but image_id is not provided.'
device, device_id, frame_id = results['image_id']
smc_reader = data_structures.SMCReader(filename)
smc_reader = SMCReader(filename)
img = smc_reader.get_color(
device, device_id, frame_id, disable_tqdm=True)
img = img.squeeze() # (1, H, W, 3) -> (H, W, 3)
Expand Down

0 comments on commit 26aeaad

Please sign in to comment.