ml5-library
ml5-library copied to clipboard
Are these 2 lines should change all the "128" to "this.config.imageSize"?
https://github.com/ml5js/ml5-library/blob/441718e65469709481006e98ebc8053c33c778a9/src/UNET/index.js#L116
https://github.com/ml5js/ml5-library/blob/441718e65469709481006e98ebc8053c33c778a9/src/UNET/index.js#L132
Yes! You are absolutely correct. Thanks for catching this!
I have opened a project board to find all instances where we are hard-coding values which should not be hard-coded.
I will fix this issue. I'm honestly not sure if we need to be adding an alpha channel at all since tf.browser.toPixels handles that. Maybe since it's a mask we are modifying the values from 1/255.
got it.