raptormaps / infraredsolarmodules Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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.
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..."
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.