Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
philippmwirth committed Sep 14, 2023
1 parent d59bdfe commit 2d10d76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion lightly/api/api_workflow_upload_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ def _order_csv_by_filenames(self, path_to_embeddings_csv: str) -> List[str]:
f"The filenames in the embedding file and "
f"the filenames on the server do not align"
)
io_utils.check_filenames(filenames)

rows_without_header_ordered = self._order_list_by_filenames(
filenames, rows_without_header
Expand Down
7 changes: 0 additions & 7 deletions lightly/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@

import torchvision.datasets as datasets
from PIL import Image
from torch._C import Value
from torchvision import transforms
from torchvision.datasets.vision import StandardTransform, VisionDataset

from lightly.data._helpers import DatasetFolder, _load_dataset_from_folder
from lightly.data._video import VideoDataset
from lightly.utils.io import check_filenames


def _get_filename_by_index(dataset, index):
Expand Down Expand Up @@ -177,11 +175,6 @@ def is_valid_file(filepath: str):
if index_to_filename is not None:
self.index_to_filename = index_to_filename

# if created from an input directory with filenames, check if they
# are valid
if input_dir:
check_filenames(self.get_filenames())

@classmethod
def from_torch_dataset(cls, dataset, transform=None, index_to_filename=None):
"""Builds a LightlyDataset from a PyTorch (or torchvision) dataset.
Expand Down

0 comments on commit 2d10d76

Please sign in to comment.