Previous page Preview images  Neural network training Next page

On the page:


General info

Method

DELETE /IP address:port/<api_ver>/images

DescriptionThe request is used to remove images from a specific class. The request can specify one or more IDs of images to be removed. If the image is not found or cannot be removed, the Server will return an error message.

Sample request

DELETE http://localhost:5000/v1.3/images
{
  "task_id": "6407bfd7144f37e141b786e2acf4faf2822cc48f296f5047e58c9e536874f4ec",
  "class_name": "Cars",
  "image_ids": "car1.jpeg,car2.jpeg,car3.jpeg"
}

where:

ParameterDescription
task_id

A unique identifier of the task (uid), to which the class belongs. It can be obtained using a task list query (see Get the list of tasks)

class_name

The name of the class from which images should be removed

image_ids

The IDs of the images to remove. This can be a single ID or a comma-separated list of IDs

Sample responses

  • All specified images are removed.
{
  "message":"Done",
  "rejected_ids": {}
}
  • Not all images are removed.
{
  "message":"Completed with errors",
  "rejected_ids": {
    "image1.jpeg": "Image not found."
  }
}
  • Response in case of error.
{ "error": "error description" }


  • No labels