Out of Memory Error
under-score opened this issue · comments
I have rewritten the LSH Feature Mapping for my own purpose. After testing of 8 or 10 (matchingMedia) images against the pretested set
const matchingPipeline = createMatchingPipeline(combinedTrainingKeypoints, matchingMedia);
const result = await matchingPipeline.run();
it crashes with this error.
Anything I could do?
Yes. Open src/gpu/speedy-texture-pool.js and change the DEFAULT_CAPACITY
from 1024 to a larger value such as 2048. Run npm run build
to generate a new .js file and try again.
In addition, make your pipeline leaner if possible. In my demo, I created one training pipeline for each training image for the sake of simplicity and didactics. It would be more economical to train with a single pipeline instead. I can help you with that if you need it.
May I be of further help?
Great, solved my problem! Will DM you ...
Glad to know it's solved!