ml5-library icon indicating copy to clipboard operation
ml5-library copied to clipboard

Feature extractor for transfer learning - Unhandled Promise Rejection in Safari

Open vaughan-rich opened this issue 7 years ago • 2 comments

I've just had a go at implementing the two transfer learning examples from Dan's recent livestream (demonstrating classification and regression). I've deployed them on my website here and here (classifier and regression predictor respectively).

It works fine in Chrome, but in Safari for macOS and iOS i get an Unhandled Promise Rejection Error whenever I try to add an example image (call the addImage function):

Unhandled Promise Rejection: Error: MathBackendWebGL.writePixels(): pixels can not be null.

So I'm basically not able to train the model in Safari, and if I use a callback I still get the error. Any ideas why this is? Apologies, but not too clued up on promises etc.

vaughan-rich avatar Aug 10 '18 11:08 vaughan-rich

Seems related to https://github.com/ml5js/ml5-examples/issues/55 It seems we have an issue with Promises in Safari, will investigate.

cvalenzuela avatar Aug 13 '18 15:08 cvalenzuela

Just making a note that we need to do a comprehensive overview and testing cc/ @bomanimc

joeyklee avatar Feb 19 '20 11:02 joeyklee