fix(sam2): info
This commit is contained in:
@@ -123,6 +123,7 @@ export const getAuxiliaryAnnotation = (data: {
|
|||||||
background_points?: Array<[number, number]>
|
background_points?: Array<[number, number]>
|
||||||
boxes?: Array<[number, number, number, number]>
|
boxes?: Array<[number, number, number, number]>
|
||||||
}
|
}
|
||||||
|
contour_approximation?: number
|
||||||
}) => {
|
}) => {
|
||||||
return httpFetch<{
|
return httpFetch<{
|
||||||
contours: Array<Array<[[number, number]]>>
|
contours: Array<Array<[[number, number]]>>
|
||||||
|
|||||||
@@ -997,6 +997,7 @@ const PaperContainer = (
|
|||||||
: {}),
|
: {}),
|
||||||
...(normalizedBoxes.length ? { boxes: normalizedBoxes } : {}),
|
...(normalizedBoxes.length ? { boxes: normalizedBoxes } : {}),
|
||||||
},
|
},
|
||||||
|
contour_approximation: 0,
|
||||||
})
|
})
|
||||||
const { contours = [], hollows = [] } = data || {}
|
const { contours = [], hollows = [] } = data || {}
|
||||||
const outerPaths: any[] = []
|
const outerPaths: any[] = []
|
||||||
@@ -1050,6 +1051,8 @@ const PaperContainer = (
|
|||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
} finally {
|
||||||
|
notifications.hide("sam2")
|
||||||
}
|
}
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user