mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 23:38:42 +08:00
fix ruff check (#3328)
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -337,7 +337,7 @@ class PixelSampler:
|
||||
collated_batch = {
|
||||
key: value[c, y, x]
|
||||
for key, value in batch.items()
|
||||
if key != "image_idx" and key != "image" and key != "mask" and key != "depth_image" and value is not None
|
||||
if key not in ("image_idx", "image", "mask", "depth_image") and value is not None
|
||||
}
|
||||
|
||||
collated_batch["image"] = torch.cat(all_images, dim=0)
|
||||
|
||||
Reference in new issue
Block a user