Skip to content

Commit

Permalink
Fixed to confirm the existence of the attribute "masks"
Browse files Browse the repository at this point in the history
  • Loading branch information
rsuwa committed Nov 29, 2020
1 parent 8d32dc3 commit 69d27b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_networks/surface_normals/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
if config.train.datasetsTestReal is not None:
for dataset in config.train.datasetsTestReal:
if dataset.images:
mask_dir = dataset.masks if dataset.masks else ''
mask_dir = dataset.masks if hasattr(dataset, 'masks') and dataset.masks else ''
db = dataloader.SurfaceNormalsDataset(input_dir=dataset.images,
label_dir=dataset.labels,
mask_dir=mask_dir,
Expand Down

0 comments on commit 69d27b0

Please sign in to comment.