Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test data loading #3

Merged
merged 1 commit into from
Aug 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix test data loading
  • Loading branch information
Moritz Kampelmuehler committed Aug 18, 2022
commit e93b94dd9c748f1853236c1eb44f49e25f541573
6 changes: 3 additions & 3 deletions single_view_recon/src/model/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def get_batched_data(file_list, indices, sdf_dir, img_dir, cam_dir, point_num, t
file = file_list[index]
cat = file.split('/')[0]
fn = file.split('/')[1]
sdf_dir_cat = sdf_dir + cat
img_dir_cat = img_dir + cat
cam_dir_cat = cam_dir + cat
sdf_dir_cat = os.path.join(sdf_dir, cat)
img_dir_cat = os.path.join(img_dir, cat)
cam_dir_cat = os.path.join(cam_dir, cat)

# load the pre-defined SDF tfrecord
sdf_file = os.path.join(sdf_dir_cat, fn + '.tfrecord')
Expand Down