Skip to content

Conversation

@guozixunnicolas
Copy link

No description provided.

Copy link
Owner

@KinWaiCheuk KinWaiCheuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dataset does not download and does not extract correctly. Even with manual extractions and move files around to the correct path, it still throws an error.

extract_archive(os.path.join(download_path, archive_name))
print(f"Using all file from {self._path} ")
else:
raise FileNotFoundError(f"Dataset not found at {self._path}, please specify the correct location or set `download=True`")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still get errors when the files are in the correct path

#file exists and extracted
if os.path.isfile(os.path.join(download_path,archive_name)) and os.path.exists(self._path):
print(f"Dataset archive exists, all files are extracted. Using all file from {self._path} ")
#file exists but not extracted
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extraction is not automatic. The zip file contain nested zip files, this code does not deal with nested zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants