Skip to content

Commit 55b3dff

Browse files
committed
fix build checks
1 parent 9f0dbca commit 55b3dff

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/geobase-ai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const model_metadata: GeobaseAiModelMetadata[] = [
7777
): Promise<{
7878
instance: GenericSegmentation;
7979
}> => {
80-
return GenericSegmentation.getInstance(modelId, params);
80+
return GenericSegmentation.getInstance(modelId, params, modelParams);
8181
},
8282
},
8383
{

test/zeroShotObjectDetection.test.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ describe("geobaseAi.zeroShotObjectDetection", () => {
4646
const text = ["tree."];
4747

4848
for (const [quadrant, polygon] of Object.entries(quadrants)) {
49-
const results: ObjectDetectionResults = await instance.detection(
50-
polygon,
51-
text
52-
);
49+
const results: ObjectDetectionResults = await (
50+
instance as ZeroShotObjectDetection
51+
).detection(polygon, text);
5352

5453
let result = results;
5554

@@ -87,10 +86,9 @@ describe("geobaseAi.zeroShotObjectDetection", () => {
8786
const text = ["tree", "car", "vehicle", "building", "road", "person"];
8887

8988
for (const [quadrant, polygon] of Object.entries(quadrants)) {
90-
const results: ObjectDetectionResults = await instance.detection(
91-
polygon,
92-
text
93-
);
89+
const results: ObjectDetectionResults = await (
90+
instance as ZeroShotObjectDetection
91+
).detection(polygon, text);
9492

9593
const geoJson = detectionsToGeoJSON(
9694
results.detections,

0 commit comments

Comments
 (0)