We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 432f30f commit 8695c09Copy full SHA for 8695c09
src/cleanvision/dataset/hf_dataset.py
@@ -29,7 +29,7 @@ def __len__(self) -> int:
29
30
def __getitem__(self, item: Union[int, str]) -> Optional[Image.Image]:
31
try:
32
- image = self._data[item][self._image_key]
+ image: Image.Image = self._data[item][self._image_key]
33
return image
34
except Exception as e:
35
print(f"Could not load image at index: {item}\n", e)
0 commit comments