Skip to content

Commit

Permalink
Adjusted plugin registration way (cvat-ai#6533)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev authored Jul 21, 2023
1 parent 1da005c commit fea0dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat-ui/plugins/sam_plugin/src/ts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ const samPlugin: SAMPlugin = {

const SAMModelPlugin: ComponentBuilder = ({ core }) => {
samPlugin.data.core = core;
core.plugins.register(samPlugin);
InferenceSession.create(samPlugin.data.modelURL).then((session) => {
samPlugin.data.session = session;
core.plugins.register(samPlugin);
});

return {
Expand Down

0 comments on commit fea0dae

Please sign in to comment.