Skip to content

Commit c47f9d5

Browse files
committed
Fix get_pixel_grid when only camera is provided
1 parent fc62875 commit c47f9d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gluefactory/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def get_pixel_grid(
444444
),
445445
dim=-1,
446446
)
447-
if fmap.ndim == 4:
447+
if fmap is not None and fmap.ndim == 4:
448448
b = fmap.shape[0]
449449
grid = grid[None].expand(b, -1, -1, -1)
450450
grid += 0.5

0 commit comments

Comments
 (0)