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