Unverified Commit 8aad0e0a authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

Fix DTD prototype dataset on Windows (#5227)

* [DEBUG] run prototype tests on Windows

* disable duplicate resource class

* fix newlines in mock data generation

* fix path matching for DTD

* revert CI changes

* Revert "fix newlines in mock data generation"

This reverts commit f53cf60ff5638e6c2e08a0ee2e73d646b051395f.

* rerun tests with fix in torchdata

* revert CI changes

* add explanation
parent ac1f0ff2
...@@ -72,7 +72,8 @@ class DTD(Dataset): ...@@ -72,7 +72,8 @@ class DTD(Dataset):
def _image_key_fn(self, data: Tuple[str, Any]) -> str: def _image_key_fn(self, data: Tuple[str, Any]) -> str:
path = pathlib.Path(data[0]) path = pathlib.Path(data[0])
return str(path.relative_to(path.parents[1])) # The split files contain hardcoded posix paths for the images, e.g. banded/banded_0001.jpg
return str(path.relative_to(path.parents[1]).as_posix())
def _collate_and_decode_sample( def _collate_and_decode_sample(
self, self,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment