Code Monkey home page Code Monkey logo

Comments (6)

yichiac avatar yichiac commented on June 2, 2024 1

I will submit a PR for this issue today.

from torchgeo.

adamjstewart avatar adamjstewart commented on June 2, 2024

This is annoying. Luckily NCCM is CC-BY-4.0. We should probably rehost the dataset on HF and download it from there instead so the checksum is stable.

from torchgeo.

adamjstewart avatar adamjstewart commented on June 2, 2024

@shreyakannan1205 @yichiac do we already have a copy of NCCM downloaded somewhere? How big is it? I can upload it to HF (or show you how) and then we can change the download URL/checksum, should be simple.

from torchgeo.

favyen2 avatar favyen2 commented on June 2, 2024

Could also checksum the files inside the archive.

from torchgeo.

yichiac avatar yichiac commented on June 2, 2024

I have the downloaded NCCM on my local machine. The size is ~2.4GB.

I agree with @favyen2. The zip has only five files (three TIF masks and two GEE codes). The checksums for all individual files are the same, regardless of the download time.

We can also consider downloading only mask files using separate links instead of the whole zip file.

from torchgeo.

adamjstewart avatar adamjstewart commented on June 2, 2024

5 files isn't bad, although it does open up the possibility of a zip bomb if we first extract the zip file before checksumming. But we already default to skipping the checksum, and TorchGeo isn't a security-focused application, so I'm not too worried.

I'm fine with either:

  1. Download 1 zip file, extract, checksum 3 mask files
  2. Download 3 mask files, checksum 3 mask files

Who wants to submit the PR?

from torchgeo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.