str
- The dataset hash.str
- The title of the dataset.str
- The description of the dataset.StorageLocation
- The storage location of the dataset.Optional[UUID]
- The UUID of the backing folder, if any.encord.dataset.Dataset.set_access_settings
method.
.. code::
dataset.set_access_settings(DatasetAccessSettings(fetch_client_metadata=True))
print(dataset.data_rows)
Returns:
List[DataRow]
- A list of DataRow objects.title_eq
- Optional exact title row filter.title_like
- Optional fuzzy title row filter; SQL syntax.created_before
- Optional datetime row filter.created_after
- Optional datetime row filter.data_types
- Optional data types row filter.data_hashes
- Optional list of individual data unit hashes to include.List[DataRow]
- A list of DataRow objects that match the filter.AuthorisationError
- If the dataset API key is invalid.ResourceNotFoundError
- If no dataset exists by the specified dataset EntityId.UnknownError
- If an error occurs while retrieving the dataset.OrmDataset
- The dataset instance.dataset_access_settings
- The access settings to use going forward.refetch_data
- Whether a refetch_data()
call should follow the update of the dataset access settings.user_role
remains unchanged. The
existing user_role
is reflected in the DatasetUser
instance returned.
Arguments:
user_emails
- List of user emails to be added.user_role
- The user role to assign to all users.List[DatasetUser]
- A list of DatasetUser instances reflecting the added users.Iterable[DatasetGroup]
- An iterable of DatasetGroup instances.group_hash
- List of group hashes to be added.user_role
- The user role that the group will be given.group_hash
- List of group hashes to be removed.file_path
- Path to the video, e.g., ‘/home/user/data/video.mp4’.cloud_upload_settings
- Settings for uploading data into the cloud. Change this object to overwrite the default values.title
- The video title. If unspecified, this will be the file name. This title should include an extension. For example: “encord_video.mp4”.folder
- When uploading to a non-mirror dataset, you have to specify the folder to store the file in. This can be either a :class:encord.storage.Folder
instance or the UUID of the folder.Video
- An object describing the created video, see :class:encord.orm.dataset.Video
.UploadOperationNotSupportedError
- If trying to upload to external datasets (e.g., S3/GPC/Azure)..Dataset.upload_image
function.
Arguments:
file_paths
- A list of paths to images, e.g., [‘/home/user/data/img1.png’, ‘/home/user/data/img2.png’].max_workers
- DEPRECATED: This argument will be ignored.cloud_upload_settings
- Settings for uploading data into the cloud. Change this object to overwrite the default values.title
- The title of the image group. If unspecified, this will be randomly generated for you. This title should NOT include an extension. For example, “encord_image_group”.create_video
- A flag specifying how image groups are stored. If True
, a compressed video will be created from the image groups. True
was the previous default support. If False
, the images are saved as a sequence of images.folder
- When uploading to a non-mirror dataset, you have to specify the folder to store the file in. This can be either a :class:encord.storage.Folder
instance or the UUID of the folder.List[ImageGroup]
- A list containing the object(s) describing the created data unit(s). See :class:encord.orm.dataset.ImageGroup
.UploadOperationNotSupportedError
- If trying to upload to external datasets (e.g., S3/GPC/Azure).InvalidArgumentError
- If the folder is specified, but the dataset is a mirror dataset.file_paths
- A collection of paths to DICOM files. Example: [‘/home/user/data/DICOM_1.dcm’, ‘/home/user/data/DICOM_2.dcm’]cloud_upload_settings
- Settings for uploading data into the cloud. Change this object to overwrite the default values.title
- The title of the DICOM series. If unspecified, a random title will be generated. This title should NOT include an extension. Example: “encord_image_group”folder
- When uploading to a non-mirror dataset, specify the folder to store the file in. This can be either a StorageFolder
instance or the UUID of the folder.UploadOperationNotSupportedError
- If trying to upload to external datasets (e.g., S3/GPC/Azure).InvalidArgumentError
- If the folder is specified, but the dataset is a mirror dataset..Dataset.create_image_group
function.
Arguments:
file_path
- The file path to the image.title
- The image title. If unspecified, the file name will be used. This title should include an extension. Example: “encord_image.png”cloud_upload_settings
- Settings for uploading data into the cloud. Change this object to overwrite the default values.folder
- When uploading to a non-mirror dataset, specify the folder to store the file in. This can be either a StorageFolder
instance or the UUID of the folder.item_uuids
- List of item UUIDs to link to the dataset.duplicates_behavior
- The behavior to follow when encountering duplicates. Defaults to SKIP
. See also :class:encord.orm.dataset.DataLinkDuplicatesBehavior
.data_hashes
- List of hashes of the videos/image_groups you’d like to delete. All should belong to the same dataset.https://python.docs.encord.com/tutorials/datasets.html#adding-data-from-a-private-cloud
Arguments:
integration_id
- The EntityId
of the cloud integration you wish to use.private_files
- A path to a JSON file, JSON string, Python dictionary, or a Path
object containing the files you wish to add.ignore_errors
- When set to True
, prevent individual errors from stopping the upload process.add_private_data_to_dataset_get_result
method.
This can be done in a separate Python session to the one
where the upload was initialized.
Arguments:
integration_id
- The EntityId
of the cloud integration you wish to use.
private_files:A path to a JSON file, JSON string, Python dictionary, or a Path
object containing the files you wish to add.ignore_errors
- When set to True
, prevent individual errors from stopping the upload process.folder
- When uploading to a non-mirror dataset, specify the folder to store the file in. This can be either a StorageFolder
instance or the UUID of the folder.timeout_seconds
.
Arguments:
upload_job_id
- UUID Identifier of the upload job. This ID enables the user to track the job progress via SDK or web app.timeout_seconds
- Number of seconds the method will wait while waiting for a response. If timeout_seconds == 0
, only a single checking request is performed. Response will be immediately returned.encord.orm.dataset.DataRow
instance instead. These can be retrieved via the :meth:.Dataset.data_rows
function.
Update a data item.
Arguments:
data_hash
- Data hash of the item being updated.new_title
- New title of the data item being updated.data_hashes
- List of hashes of the videos you’d like to re-encode. All should belong to the same dataset.job_id
- ID of the async task that was launched to re-encode the videos.image_group_id
- The ID of the image group in this dataset to run OCR on.