-
Notifications
You must be signed in to change notification settings - Fork 59
/
load_dataset.py
23 lines (16 loc) · 1014 Bytes
/
load_dataset.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from load_scannet import load_scannet_data
def load_dataset(args):
if args.dataset_type == "scannet":
images, depth_images, poses, hwf, frame_indices = load_scannet_data(basedir=args.datadir,
trainskip=args.trainskip,
downsample_factor=args.factor,
translation=args.translation,
sc_factor=args.sc_factor,
crop=args.crop)
print('Loaded scannet', images.shape, hwf, args.datadir)
# Calls to other dataloaders go here
# elif args.dataset_type == "":
else:
print('Unknown dataset type', args.dataset_type, 'exiting')
return
return images, depth_images, poses, hwf, frame_indices