fix(sam2): fix api
This commit is contained in:
@@ -122,7 +122,7 @@ export const getAuxiliaryAnnotation = (data: any) => {
|
|||||||
|
|
||||||
export const getAuxiliaryAnnotation2 = (data: {
|
export const getAuxiliaryAnnotation2 = (data: {
|
||||||
project_id: string
|
project_id: string
|
||||||
image_name: string
|
image: string
|
||||||
prompt: {
|
prompt: {
|
||||||
foreground_points?: Array<[number, number]>
|
foreground_points?: Array<[number, number]>
|
||||||
background_points?: Array<[number, number]>
|
background_points?: Array<[number, number]>
|
||||||
|
|||||||
@@ -514,7 +514,7 @@ const PaperContainer = (
|
|||||||
try {
|
try {
|
||||||
const data = await getAuxiliaryAnnotation2({
|
const data = await getAuxiliaryAnnotation2({
|
||||||
project_id: projectId,
|
project_id: projectId,
|
||||||
image_name: activeImage,
|
image: activeImage,
|
||||||
// project_id: "image_test_bk",
|
// project_id: "image_test_bk",
|
||||||
prompt: {
|
prompt: {
|
||||||
foreground_points: promptPoints,
|
foreground_points: promptPoints,
|
||||||
|
|||||||
Reference in New Issue
Block a user