You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Web seg/text-query/stereo support is being deferred until we settle on
a better wiring. Desktop integration is unchanged.
- Remove server/dive_server/viame_segmentation_service.py.
- Drop segmentation_predict, segmentation_status, text_query routes
from views_rpc.py (and the matching imports / logger).
- Drop the seg/text-query/stereo wrappers from web-girder
rpc.service.ts; runPipeline keeps frameRange + pipelineParams.
- Reset web-girder views/ViewerLoader.vue to main (no seg UI).
- Drop the multi-cam toolbar toggle from web-girder views/Settings.vue.
thrownewError('Model failed to load. Ensure that the SAM3 model pack is downloaded from the VIAME add-on repository and that you have enough video RAM to run it.');
105
-
}
106
-
}
107
-
108
-
/**
109
-
* Initialize and verify that text query is available.
110
-
* Throws if the segmentation service or text query capability is not available.
thrownewError('Model failed to load. Ensure that the SAM3 model pack is downloaded from the VIAME add-on repository and that you have enough video RAM to run it.');
116
-
}
117
-
consttqStatus=awaittextQueryStatus();
118
-
if(!tqStatus.grounding_available){
119
-
thrownewError('Text query model failed to load. Ensure that the SAM3 model pack is downloaded from the VIAME add-on repository and that you have enough video RAM to run it.');
120
-
}
121
-
}
122
-
123
-
/**
124
-
* Text Query API for open-vocabulary detection/segmentation
125
-
*/
126
-
127
-
asyncfunctiontextQuery(
128
-
folderId: string,
129
-
frameNumber: number,
130
-
request: Omit<TextQueryRequest,'imagePath'>,
131
-
): Promise<TextQueryResponse>{
132
-
const{ data }=awaitgirderRest.post<TextQueryResponse>('dive_rpc/text_query',{
getImagePath: () =>'', // Not used for web platform - backend resolves paths
246
-
// Initialize the segmentation service when the recipe is activated (user clicks Segment button)
247
-
initializeServiceFn: segmentationInitialize,
248
-
});
249
-
250
-
console.log('[Segmentation] Recipe initialized successfully for web');
251
-
} catch (error) {
252
-
console.error('[Segmentation] Failed to initialize recipe:', error);
253
-
}
254
-
}
255
-
256
-
/**
257
-
* Handle text query service initialization request
258
-
* Called when user opens the text query dialog
259
-
*/
260
-
asyncfunction handleTextQueryInit() {
261
-
try {
262
-
// Initialize and verify that text query is specifically available
263
-
awaittextQueryInitialize();
264
-
viewerRef.value?.onTextQueryServiceReady(true);
265
-
} catch (error) {
266
-
const errorMessage =errorinstanceofError
267
-
?error.message
268
-
:'Text query model failed to load. Ensure that the SAM3 model pack is downloaded from the VIAME add-on repository and that you have enough video RAM to run it.';
0 commit comments