Skip to content

Commit 71b9d61

Browse files
authored
Merge pull request #575 from superannotateai/develop
Develop
2 parents 677eb02 + 7f28f6f commit 71b9d61

File tree

774 files changed

+4743
-652791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

774 files changed

+4743
-652791
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
22

33
on:
44
release:
5-
types: [prereleased,released]
6-
5+
types: [prereleased,released]
6+
77
jobs:
88
build-n-publish:
99
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/setup-python@v1
1515
with:
1616
python-version: "3.7"
17-
- name: Upgrade pip
17+
- name: Upgrade pip
1818
run: >-
1919
python -m
2020
pip install

.pre-commit-config.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
hooks:
1414
- id: black
1515
name: Code Formatter (black)
16-
- repo: 'https://gitlab.com/pycqa/flake8'
16+
- repo: 'https://github.com/PyCQA/flake8'
1717
rev: 3.8.2
1818
hooks:
1919
- id: flake8
@@ -30,15 +30,26 @@ repos:
3030
name: Upgrade syntax for newer versions of the language (pyupgrade)
3131
args:
3232
- '--py37-plus'
33+
- repo: 'https://github.com/PyCQA/doc8'
34+
rev: v1.1.1
35+
hooks:
36+
- id: doc8
37+
name: doc8
38+
description: This hook runs doc8 for linting docs
39+
entry: python -m doc8
40+
language: python
41+
args: ['--ignore=D001']
42+
files: '^docs(.*)\.rst'
43+
require_serial: true
3344
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
3445
rev: v3.1.0
3546
hooks:
3647
- id: check-byte-order-marker
3748
- id: trailing-whitespace
3849
- id: end-of-file-fixer
50+
files: \.rst$
3951
# - repo: 'https://github.com/asottile/dead'
4052
# rev: v1.3.0
4153
# hooks:
4254
# - id: dead
43-
files: src/
44-
exclude: src/lib/app/analytics | src/lib/app/converters | src/lib/app/input_converters
55+
exclude: src/lib/app/analytics | src/lib/app/input_converters

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ formats:
1919

2020
# Optionally set the version of Python and requirements required to build your docs
2121
python:
22-
version: 3.7
22+
version: 3.8
2323
install:
2424
- requirements: requirements.txt
2525
- requirements: requirements_extra.txt

CHANGELOG.md

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1-
# Changelog
1+
# Changelog
22
All release highlights of this project will be documented in this file.
3+
## 4.4.10 - March 12, 2023
4+
### Updated
5+
- Configuration file creation flow
6+
- `SAClient.search_projects()` method, removed `include_complete_image_count` argument, use `include_complete_item_count` instead.
7+
- `SAClient.get_project_metadata()` method, removed `include_complete_image_count` argument, use `include_complete_item_count` instead.
8+
- `SAClient.create_project()` method to support classes, workflows and instructions_link.
9+
### Fixed
10+
- `SAClient.clone_project()` method to address the issue of FPS mode is not being copied.
11+
### Deprecated
12+
- `SAClient.create_project_from_metadata()` method, use `SAClient.create_project()` instead.
13+
- `SAClient.get_project_image_count()` method, use `SAClient.get_project_metadata()` instead.
14+
### Removed
15+
- `SAClient.class_distribution()` method
16+
- `SAClient.benchmark()` method
317
## 4.4.9 - January 29, 2023
418
### Added
519
- `SAClient.set_approval_statuses` _method_ function to change the approval status of items (images, audio / videos) in bulk.
@@ -69,7 +83,7 @@ All release highlights of this project will be documented in this file.
6983
## 4.4.2, 4.4.3 - August 21, 2022
7084
### Updated
7185
- the **schema** of `classes JSON` to support new values for the `"group_type"` key for a given attribute group. `"group_type": "radio" | "checklist" | "text" | "numeric"`.
72-
- the **schema** of `video annotation JSON` to support instances that have a `"tag"` type.
86+
- the **schema** of `video annotation JSON` to support instances that have a `"tag"` type.
7387
### Fixed
7488
- `SAClient.get_annotations()` _method_ to address the issue of working with the large projects.
7589
- `SAClient.get_annotations_per_frame()` _method_ to address the issue of throwing an error on small videos when the fps is set to 1.
@@ -186,7 +200,7 @@ All release highlights of this project will be documented in this file.
186200
- `attach_items_from_integrated_storage()` to attach items from an integrated cloud storage.
187201
- `upload_priority_scores()` to set priority scores for a given list of items.
188202
### Updated
189-
- `JSON Schema` to version `1.0.40` to add instance type differentiation for text annotations and `"exclude"` key for subtracted polygon instances for image annotations.
203+
- `JSON Schema` to version `1.0.40` to add instance type differentiation for text annotations and `"exclude"` key for subtracted polygon instances for image annotations.
190204
- `validate_annotations()` to validate text and image annotations based on JSON schema version `1.0.40`.
191205
- `get_annotations()` to get annotation instances based on JSON schema version `1.0.40`.
192206
- `prepare_export()` to prepare for the download annotations with based on JSON schema version `1.0.40`.
@@ -206,8 +220,8 @@ All release highlights of this project will be documented in this file.
206220
### Updated
207221
- `get_image_annotations()` to reference `get_annotations()`.
208222
- `create_annotation_class()` to add `class_type` in parameters to specify class type on creation.
209-
- `create_annotation_classes_from_classes_json()` to handle class type in classes JSON.
210-
- `search_annotation_classes()` to return class type in metadata.
223+
- `create_annotation_classes_from_classes_json()` to handle class type in classes JSON.
224+
- `search_annotation_classes()` to return class type in metadata.
211225
- `upload_annotations_from_folder_to_project()` to handle tag annotations.
212226
- `upload_preannotations_from_folder_to_project()` to handle tag annotations.
213227
- `upload_image_annotations()` to handle tag annotations.
@@ -230,9 +244,9 @@ All release highlights of this project will be documented in this file.
230244
### Updated
231245
- `upload_annotations_from_folder_to_project()` to reference the `validate_annotations()`.
232246
- `upload_videos_from_folder_to_project()` to remove code duplications.
233-
- `clone_project()` to set upload state of clone project to inital.
247+
- `clone_project()` to set upload state of clone project to inital.
234248
### Fixed
235-
- `validate_annotations()` to fix rotated bounding box schema.
249+
- `validate_annotations()` to fix rotated bounding box schema.
236250
### Removed
237251
- Third party logs from logging mechanism.
238252
###
@@ -264,22 +278,22 @@ All release highlights of this project will be documented in this file.
264278
###
265279
## 4.2.6 - Nov 21 2021
266280
### Added
267-
- Validation schemas for annotations.
281+
- Validation schemas for annotations.
268282
- Dataframe aggregation for video projects.
269283
### Fixed
270-
- Minor bug fixes and enhancements.
284+
- Minor bug fixes and enhancements.
271285
###
272286
## 4.2.4 - Nov 2 2021
273287
### Fixed
274-
- Minor bug fixes and enhancements.
288+
- Minor bug fixes and enhancements.
275289
###
276290
## 4.2.3 - Oct 31 2021
277291
### Fixed
278-
- Minor bug fixes and enhancements.
292+
- Minor bug fixes and enhancements.
279293
###
280294
## 4.2.2 - Oct 22 2021
281295
### Fixed
282-
- Minor bug fixes and enhancements.
296+
- Minor bug fixes and enhancements.
283297
###
284298
## 4.2.1 - Oct 13 2021
285299
### Fixed
@@ -288,7 +302,7 @@ All release highlights of this project will be documented in this file.
288302
###
289303
## 4.2.0 - Oct 10 2021
290304
### Added
291-
- `delete_annotations()` for bulk annotation delete.
305+
- `delete_annotations()` for bulk annotation delete.
292306
### Updated
293307
- Project/folder limitations.
294308
### Fixed
@@ -300,7 +314,7 @@ All release highlights of this project will be documented in this file.
300314
### Added
301315
- Video project release.
302316
###
303-
## 4.1.7 - Aug 1 2021
317+
## 4.1.7 - Aug 1 2021
304318
### Fixed
305319
- Video upload refinements.
306320
###
@@ -345,7 +359,7 @@ All release highlights of this project will be documented in this file.
345359
###
346360
## 4.1.0 - Mar 22 2021
347361
### Added
348-
- Folder structure on platform.
362+
- Folder structure on platform.
349363
###
350364
## 4.0.1 - Mar 15 2021
351365
### Updated
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
===========
2+
Annotations
3+
===========
4+
5+
.. automethod:: superannotate.SAClient.upload_annotations
6+
.. automethod:: superannotate.SAClient.get_annotations
7+
.. automethod:: superannotate.SAClient.download_annotations
8+
.. automethod:: superannotate.SAClient.get_annotations_per_frame
9+
.. automethod:: superannotate.SAClient.set_annotation_statuses
10+
.. automethod:: superannotate.SAClient.delete_annotations
11+
.. _ref_upload_annotations_from_folder_to_project:
12+
.. automethod:: superannotate.SAClient.upload_annotations_from_folder_to_project
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
==================
2+
Annotation Classes
3+
==================
4+
5+
.. automethod:: superannotate.SAClient.create_annotation_class
6+
.. _ref_create_annotation_classes_from_classes_json:
7+
.. automethod:: superannotate.SAClient.create_annotation_classes_from_classes_json
8+
.. automethod:: superannotate.SAClient.search_annotation_classes
9+
.. automethod:: superannotate.SAClient.download_annotation_classes_json
10+
.. automethod:: superannotate.SAClient.delete_annotation_class
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
==================
2+
SAClient interface
3+
==================
4+
5+
Contents
6+
========
7+
8+
.. toctree::
9+
:maxdepth: 8
10+
11+
api_project
12+
api_item
13+
api_annotation
14+
api_annotation_class
15+
api_export
16+
api_custom_metadata
17+
api_subset
18+
api_image
19+
api_team
20+
api_neural_network
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
===============
2+
Custom Metadata
3+
===============
4+
5+
.. automethod:: superannotate.SAClient.create_custom_fields
6+
.. automethod:: superannotate.SAClient.get_custom_fields
7+
.. automethod:: superannotate.SAClient.delete_custom_fields
8+
.. automethod:: superannotate.SAClient.upload_custom_values
9+
.. automethod:: superannotate.SAClient.delete_custom_values
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
==========
2+
Exports
3+
==========
4+
5+
6+
.. automethod:: superannotate.SAClient.prepare_export
7+
.. _ref_download_export:
8+
.. automethod:: superannotate.SAClient.download_export
9+
.. automethod:: superannotate.SAClient.get_exports
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
==========
2+
Images
3+
==========
4+
5+
6+
.. _ref_search_images:
7+
.. automethod:: superannotate.SAClient.download_image
8+
.. automethod:: superannotate.SAClient.download_image_annotations
9+
.. automethod:: superannotate.SAClient.upload_image_annotations
10+
.. automethod:: superannotate.SAClient.pin_image
11+
.. automethod:: superannotate.SAClient.upload_priority_scores

0 commit comments

Comments
 (0)