Subclassed abstract cached dataloader, for things like generic NeRFs where data fits in memory

This commit is contained in:
Jake Austin committed 2022-07-17 23:01:42 -07:00
1 parent f5a354fdb0
commit 667de0b758
1 file changed
+8
+8
View File
@@ -20,6 +20,7 @@ from abc import abstractmethod
import random
from typing import Dict, List, Tuple, Union
from omegaconf import ListConfig
import torch
from torchtyping import TensorType
@@ -191,6 +192,13 @@ class AbstractDataloaderV2(nn.Module):
"""Returns the next batch of data from the eval dataloader"""
class AbstractCachedDataloaderV2(AbstractDataloaderV2):
"""Subclass of the new V2 dataloader that is used for when things fit in memory"""
camera_to_world: torch.Tensor
intrinsics: torch.Tensor
class TrainDataloader:
"""Training dataloader base class."""