Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Torrent download and Zstd compression #32

Open
mgrankin opened this issue Jul 21, 2019 · 7 comments
Open

Torrent download and Zstd compression #32

mgrankin opened this issue Jul 21, 2019 · 7 comments

Comments

@mgrankin
Copy link

I repackaged dataset with zstd and uploaded it to academictorrents.com.

http://academictorrents.com/details/dba20c45d4d6fa6453a4e99d2f8a4817893cfb94

Also it is temporarily availible as a direct link here

http://fma.mine.toys/fma/checksums
http://fma.mine.toys/fma/fma_metadata.tar.zst
http://fma.mine.toys/fma/fma_small.tar.zst
http://fma.mine.toys/fma/fma_medium.tar.zst
http://fma.mine.toys/fma/fma_large.tar.zst
http://fma.mine.toys/fma/fma_full.tar.zst

Zstd is way faster than Zip to unpack. If you don't have "tar" with zstd support you can install if from conda.
conda install tar zstd
How to unpack
tar -xaf fma_small.tar.zst
How to pack
tar -caf fma_small.tar.zst fma_small/
Alternatively you can install binary and use zstd as an external command for tar.

sudo apt install zstd
tar -I zstd -xvf fma_small.tar.zst
tar -I zstd -cf fma_small.tar.zst fma_small/

If that is desirable and appropriate then I can make a PR with changes to README.

@diogomoreira
Copy link

diogomoreira commented Oct 9, 2019

I just downloaded the fma_small dataset but an unexpected end of file error occur when I tried to unzip.

I tried with these commands:

brew install zstd
zstd -d fma_small.tar.zst

Has anyone managed to unzip?
Also, can you host a direct link again?

@mgrankin
Copy link
Author

mgrankin commented Oct 9, 2019

The links are up. I'll try to keep them up.

You shouldn't try to unpack files with zstd command. Use tar. Tar actually manages the file container and zstd is the compression algorithm.

@DKMDebugin
Copy link

I was able to uncompress the fma_small.tar.zst file differently. I added the solution as a comment on a StackOverflow question. https://stackoverflow.com/a/61800897/9571713

@stdio2016
Copy link

The torrent seems down. Academic torrents shows no seeds. Can you check the server?

@mgrankin
Copy link
Author

mgrankin commented Feb 3, 2021

Yeah, it's been cold for few days in Moscow (-20C) and my switch located on the balcony went out. I'll buy new in the next couple of days.

@mdeff
Copy link
Owner

mdeff commented Feb 3, 2021

Ouch. Thanks @mgrankin. In the meantime, direct download from https://os.unil.cloud.switch.ch/fma should work. What are your reasons to prefer torrents over direct downloads? We considered to setup a seeding server at EPFL but finally didn't. We could consider it again (or find another alternative) if there are good arguments.

@mgrankin
Copy link
Author

mgrankin commented Feb 7, 2021

@stdio2016 links and torrent are up

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

No branches or pull requests

5 participants