Skip to content

Conversation

@skeydan
Copy link
Contributor

@skeydan skeydan commented May 8, 2023

This PR removes the dependency on zip::unzip added in version 0.4.0.

The problem is that zip::unzip may result in corrupted files. The following was seen on Fedora 37, unzipping the tiny_imagenet dataset:

  • The line unzip(raw_path, exdir = self$root_path) creates a path genet-200 (instead of unzipping to the given directory, which in this case is the same as the one the zip file is in)

  • Some files are extracted correctly, but in val/val_annotations.txt/, there is nothing.

@skeydan
Copy link
Contributor Author

skeydan commented May 8, 2023

Issue in zip::unzip: r-lib/zip#99

Copy link
Member

@dfalbel dfalbel left a comment

Choose a reason for hiding this comment

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

Looks good to me

Co-authored-by: Daniel Falbel <dfalbel@gmail.com>
@skeydan
Copy link
Contributor Author

skeydan commented May 8, 2023

thanks @dfalbel !

@skeydan skeydan merged commit da57bbb into main May 8, 2023
@skeydan skeydan deleted the remove_zip_unzip branch May 8, 2023 19:15
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.

3 participants