-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdebug.py
26 lines (20 loc) · 803 Bytes
/
debug.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- coding: utf-8 -*-
import os
import numpy as np
import h5py
# dataDir = '../coxlab-prednet-cc76248/kitti_data/'
# trainSet_path = os.path.join(dataDir, 'X_train.hkl')
# train_sources = os.path.join(dataDir, 'sources_train.hkl')
# testSet_path = os.path.join(dataDir, 'X_test.hkl')
# test_sources = os.path.join(dataDir, 'sources_test.hkl')
# @200.121
dataDir = '/media/sdb1/chenrui/kitti_data/h5/'
trainSet_path = os.path.join(dataDir, 'X_train.h5')
train_sources = os.path.join(dataDir, 'sources_train.h5')
testSet_path = os.path.join(dataDir, 'X_test.h5')
test_sources = os.path.join(dataDir, 'sources_test.h5')
h5f = h5py.File(testSet_path,'r')
testSet = h5f['X_test'][:]
# print(testSet)
# print(type(testSet)) # <class 'numpy.ndarray'>
# print(testSet.shape) # (832, 128, 160, 3)