Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using private roboflow model #4

Open
gilcohen67 opened this issue May 22, 2024 · 1 comment
Open

Error when using private roboflow model #4

gilcohen67 opened this issue May 22, 2024 · 1 comment

Comments

@gilcohen67
Copy link

When trying to use my own private model, I change current_model_name, version, API_KEY, and DETECT_API_KEY. I have also tried a version where I replace Microsoft COCO with the new model in available_models, and changing all if checks so that the new model completely replaces the Mircosoft COCO model. I can see in the network tab, that the model is retrieved successfully and saved as the current_model (and in available_models object).

I get the error:

graph_executor.js:131 Uncaught (in promise) Error: This execution contains the node 'StatefulPartitionedCall/assert_equal_1/Assert/AssertGuard/branch_executed/_139', which has the dynamic op 'Merge'. Please use model.executeAsync() instead. Alternatively, to avoid the dynamic ops, specify the inputs [Identity]
    at Le.compile (graph_executor.js:131:19)
    at Le.execute (graph_executor.js:172:33)
    at Pe.execute (graph_model.js:311:38)
    at e.<anonymous> (index.ts:175:41)
    at roboflow.js:2:1249565
    at Object.next (roboflow.js:2:1249670)
    at roboflow.js:2:1248582
    at new Promise (<anonymous>)
    at r (roboflow.js:2:1248327)
    at e.infer (roboflow.js:2:1251050)
compile @ graph_executor.js:131
execute @ graph_executor.js:172
execute @ graph_model.js:311
(anonymous) @ index.ts:175
(anonymous) @ roboflow.js:2
(anonymous) @ roboflow.js:2
(anonymous) @ roboflow.js:2
r @ roboflow.js:2
e.infer @ roboflow.js:2
(anonymous) @ index.ts:495
(anonymous) @ roboflow.js:2
(anonymous) @ roboflow.js:2
(anonymous) @ roboflow.js:2
r @ roboflow.js:2
e.detect @ roboflow.js:2
detect @ main.js:371
(anonymous) @ script.js:402
Promise.then (async)
(anonymous) @ script.js:402
Promise.then (async)
(anonymous) @ script.js:401
setInterval (async)
(anonymous) @ script.js:399
@MadeWithStone
Copy link
Collaborator

@gilcohen67 Do you mind linking to the model in roboflow? we've also released a new js library called inferencejs which might resolve this issue. https://www.npmjs.com/package/inferencejs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants