olehonyshchak / pywikimm Goto Github PK
View Code? Open in Web Editor NEWCollects a multimodal dataset of Wikipedia articles and their images
License: GNU General Public License v3.0
Collects a multimodal dataset of Wikipedia articles and their images
License: GNU General Public License v3.0
If you want to give just a short feedback, post a comment on this issue. That will help me to know what works good and what may be better or is missing. Thanks!
So now we have it calculated as following:
output of 5-th convolutional layer of ResNet152 trained on ImageNet dataset. That output of shape (19, 24, 2048) is then max-pooled to a shape (2048,). Features are taken from original images downloaded in jpeg format with a fixed width of 600px. Practically, it is a list of floats with len = 2048
But should we max-pool that tensor instead of saving the original (19, 24, 2048)? And if we really want just 2048, wouldn't it be better just to use ResNet101, which outputs tensors of this shape? (TODO: double-check whether it's true)
map
which takes image path as an input and returns a JSON-serializable type as output_get_image_features
functionIn code we have img_name = img.title(as_filename=True, with_ns=False).replace("\"", "")
and also as_filename paramer now removes it https://phabricator.wikimedia.org/T236614
But on the other hand, we have images on Commons like this https://commons.wikimedia.org/wiki/File:Leonard_%22Butch%22_Levy_in_his_Navy_uniform.jpg
Think about the design choices of how to make the library easily extendable. For example, make the query to accept as an argument list of function to process text and images. For example, text handlers can accept HTML of the page and its URL as an input, and then return some key-value pair to be added to the dataset.
With that approach, if a user wants to parse additional field he would only need to define the function which with appropriate parsing and pass it as a parameter to query
function, where all the meaty and common processing is done. With that approach, the user can select what to download by modifying the list of pre-created handlers for wikitext or caption parsing. Also, we could have designed an approach to uniformly pass cache-related parameters to such functions.
Might be a very good idea but requires tons of work. Will probably be suspended until some reasonable interest to the script appears.
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.