We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4697968 commit 9a63c10Copy full SHA for 9a63c10
web/packages/new/photos/services/ml/hnsw.ts
@@ -365,7 +365,7 @@ export class HNSWIndex {
365
const success = await this.index.readIndex(filename, this.maxElements);
366
console.log(`[HNSW] readIndex returned: ${success} (type: ${typeof success})`);
367
368
- if (success !== true) {
+ if (success !== true && success !== undefined) {
369
throw new Error(`readIndex returned ${success} (expected true) - possible capacity mismatch or index already initialized`);
370
}
371
} catch (error) {
0 commit comments