firenze11 / som_palette Goto Github PK
View Code? Open in Web Editor NEWrepo for cs51
repo for cs51
Instructions: Parameters that can be changed: In "functions.py" N - number of iterations through each pixel neuron_w - width of SOM neuron_h - height of SOM * Note that the sum of neuron_w and neuron_h must be greater than or equal to 8 * som_dim - width and height (in pixels) of the printed SOM a0 - learning rate In "run_som.py" pic_file - image file (.jpg/.jpeg/.bmp) To run the code, run "run_som.py" with python. From there, an SOM map will be initialized and shown in the format of a randomized color grid. Then the image to be evaluated will show up and the training begins. After the number of iterations specified at the top of "functions.py", training finishes and the final SOM is shown. The program then recreates the image using the color palette in SOM, and the resulting SOM will be saved into "database.py". After that, the program will look through all the existing SOMs in "database.py" for the one most similar to the current image, and show that image. It is recommended to not alter code in "database.py" and "database_index.py", as changing the values may make database searching and similar image return impossible.
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.