Skip to content
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
5 changes: 5 additions & 0 deletions ffn/secgan/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,11 @@ def _create_dataset_from_volinfo(
"""Loads volumetric data patches and normalizes them."""
if bboxes_txt is None:
bboxes_txt = [None] * len(volinfo_paths)
if len(volinfo_paths) != len(bboxes_txt):
raise ValueError(
'volinfo_paths and bboxes_txt must be same length. (Multiple bboxes '
'on a single volinfo should be specified as a single textproto with '
'multiple box entries.)')

paths = {}
bounding_boxes = {}
Expand Down
Loading