Skip to content

Not enough "grey-ish" data (Colour Classifier) #4

@DelSquared

Description

@DelSquared

I saw from the crowd sourcing website that grey was very uncommon and when downloading this and running it, the NN is really struggling with correctly classifying greys (i.e. ones where roughly R=G=B).

As a fix to this, maybe it would be possible to manually inject the dataset with grey datapoints following an algorithm (pseudocode) along the lines of:

let n = rand()%255;
let RGB = colour(n,n,n);
//send to server as "grey-ish"
//loop as many times as necessary

or alternatively adding a little bit of randomness:

let n = rand()%255;
let m = 3; 
//m is some small number of how large of a variation one would want. I suspect 3 or less is good

let r = n + rand()%m
let g = n + rand()%m
let b = n + rand()%m

let RGB = colour(r,g,b);
//send to server as "grey-ish"
//loop as many times as necessary

where rand() is some function that gives a random integer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions