You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/pyremotedata/dataloader.py
+5-8
Original file line number
Diff line number
Diff line change
@@ -50,11 +50,11 @@ class RemotePathDataset(IterableDataset):
50
50
verbose (bool, optional): Whether to print verbose output. Default: False.
51
51
52
52
Yields:
53
-
Tuple[torch.Tensor, Union[str, List[int]]]: A tuple containing the image as a tensor and the label as the remote path or class indices.
54
-
or
55
-
Tuple[torch.Tensor, Union[str, List[int]], str]: A tuple containing the image as a tensor, the label as the remote path or class indices, and the local or remote path.
56
-
or
57
-
Tuple[torch.Tensor, Union[str, List[int]], str, str]: A tuple containing the image as a tensor, the label as the remote path or class indices, the local path, and the remote path.
53
+
tuple: A tuple containing the following elements:
54
+
- torch.Tensor: The image as a tensor.
55
+
- Union[str, List[int]]: The label as the remote path or as a list of class indices.
56
+
- Optional[str]: The local path, if `return_local_path` is True.
57
+
- Optional[str]: The remote path, if `return_remote_path` is True.
0 commit comments