Giter VIP home page Giter VIP logo

infraredsolarmodules's People

Contributors

eobropta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

infraredsolarmodules's Issues

Deduplicate Metadata

While toying over this data set, I noticed about a 4x redundancy (1.5MB to 384KB) in the metadata. It's probably not a big deal, but I figured I'd leave this script somewhere in case it becomes useful.

Current Format:

<id>: {
  "image_filepath": "images/<id>.jpg",
  "anomaly_class": <class>
},
...

Reduced Format:

<id>: <class>,
...

This changes the images filepath requirement to consistent with the top level key instead of the image_filepath key, which is already the case in the current dataset. The provided script will fail if this constraint is not satisfied.

require 'json'
require 'pathname'

def shrink(old_path)
  old = File.open(old_path) { |f| JSON.load(f) }
  new = old.map do |key, value|
    if key != File.basename(value["image_filepath"], ".jpg")
      raise "key (#{key}) / filepath (#{value["image_filepath"]}) mismatch"
    end
    [key, value["anomaly_class"]]
  end.to_h
  new_path = Pathname(old_path).sub_ext("_new.json").to_s
  File.open(new_path, 'w') { |f| JSON.dump(new, f) }
end

shrink("./InfraredSolarModules/module_metadata.json")

Further reduction in size and random access time could be achieved by assuming a contiguous set of image paths and then using the offset into the metadata to index into them directly. This could prevent loading the entire set of metadata if it grows too large.

Any further update on the dataset?

May I know would there be any further update on the dataset?
"The dataset is 81.9 megabytes, which is expected to grow by 30% each year as more data is collected and labeled..."

Thermographic data

Thanks for the dataset. Would it be possible provide the original thermographic data?

While one can work with 8-bit images, their quantization and compression using JPEG are possible sources of bias. Hence, it's rather disadvantageous to use thermographic images that are converted to grayscale images due to loss of precision.

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.