Images
Manage the images in your DataGym.ai Datasets with our Python API
Upload Images
dataset = client.get_dataset_by_name("Dataset_Name")uploaded_image = client.upload_image(dataset.id, "PATH_TO_LOCAL_IMAGE")uploaded_image = client.upload_image(dataset.id, "PATH_TO_LOCAL_IMAGE", "name.jpg")image_url_list = [image_url_1, image_url_2]
upload_results = client.create_images_from_urls(dataset.id, image_url_list)Download Images
Select an image from your Project/Dataset
dummy_project = client.get_project_by_name("Dummy_Project")Download the image data
Download as Bytes
Download image as file
Delete Images
The Image object
Image Attributes
Last updated
Was this helpful?