Skip to content

Releases: Graviti-AI/tensorbay-python-sdk

v1.9.0

04 Aug 14:34
Compare
Choose a tag to compare

New Features:

  • Support override and skip strategies in SegmentClient.move_data (#819)

  • Add GAS.get_user to get the current user info (#808)

  • Support manipulating dataset alias:

    • Support getting the dataset alias in GAS.get_dataset (#810)
    • Support setting the dataset alias in GAS.create_dataset (#812)
    • Add GAS.update_dataset to update the dataset alias (#813)
  • Support setting and showing description in CLI gas draft (#803)

  • Add --edit option in CLI gas draft to edit a draft (#805)

  • Add --close option in CLI gas draft to close a draft (#811)

  • Add draft description to the pop-up editor of gas commit as default message (#815)

  • Display the corresponding message after deleting data or a segment in gas rm (#859)

Interface Adjustments:

  • Change the signature of Transform3D.set_rotation and Sensor.set_rotation (#881)

Improvements:

  • Unify the description display logic in gas draft and gas commit (#817)
  • Set the file name as "" when posting files to cloud storage (#858)
  • Add utility function chunked to break an iterable into length n tuples (#876)
  • Set the minimum version of urllib3 back to v1.15 (#867)

Performance:

  • Speed up file uploads for fusion dataset in GAS.upload_dataset by adapting OpenAPI multiCallback (#804)
  • Speed up file uploads by sending file size to TensorBay (#862)
  • Speed up file uploads by enlarging the batch size of multiCallback (#882)

Documentation:

  • Add the docs about --edit and --close option in CLI gas draft (#827)
  • Add the docs about CLI "Profile" (#781)
  • Refine the docs (#791, #783, #861, #890)
  • Fix the typo in docstrings (#801, #818, #888)

Deprecations:

  • Remove the default value of the argument title in VersionControlClient.create_draft (#820)
  • Remove the deprecated message about setting AccessKey in gas config (#839)

v1.8.1

16 Jul 10:09
Compare
Choose a tag to compare

Bug fixes:

  • Fix CLI gas log --oneline that displays all commits in oneline (#835)

Documentation:

  • Replace -t with -m in the docs of CLI gas draft (#828)
  • Add details about strategy in the docs of copy and move operations (#831)
  • Fix the Synopsis section display error in CLI gas commit --help (#833)
  • Use batch move in the example code of moving data instead of one by one (#834)

v1.8.0

14 Jul 16:18
Compare
Choose a tag to compare

New Features:

  • Add Data.get_url to get the file:// url for a local file (#789)

  • Support more operations on draft:

    • Add status and description to the Draft class (#796)
    • Add VersionControlClient.update_draft to update title and description of a draft (#793)
    • Add VersionControlClient.close_draft to close a draft (#793)
    • Support setting description in VesionControlClient.create_draft (#799)
  • Add --message option in CLI gas draft to set title and description of a draft (#735)

  • Add SegmentClient.list_urls and FusionSegmentClient.list_urls to list the file urls (#807)

  • Add the following open dataset loaders:

Bug fixes:

  • Fix the ImportError when import tensorbay in python 3.6 (#814)

Improvements:

  • Add shorten function to get the short commit ID (#755)
  • Merge the CLASSIFICATION label into BOX2D label in the CompCars open dataset (#780)
  • Remove useless DatasetClient.import_all_files interface (#790)
  • Correct the illegal segment names in all the open dataset loaders (#794)
  • Move customized click classes from cli/cli.py to cli/custom.py (#797)
  • Stop showing the description in Commit.__repr__ (#800)
  • Exclude useless docs and tests modules from the tensorbay package (#826)

Performance:

  • Speed up file uploads in GAS.upload_dataset by adapting OpenAPI multiCallback (#788)
  • Enhance the performance of RemoteData.open by batch requesting file urls (#809)

Documentation:

  • Add Synopsis section to CLI --help message (#746)
  • Refine the CLI docs (#743, #745)

Deprecations:

  • Deprecate the --title option in CLI gas draft (#735)
  • Remove the deprecated CLI gas create and gas delete (#786)
  • Remove the deprecated exception CommitStatusError (#787)

v1.7.0

29 Jun 16:54
Compare
Choose a tag to compare

New Features:

  • Support copying and moving data and segment (#748, #753, #777)

    • Add DatasetClient.move_segment and FusionDatasetClient.move_segment (#753)
    • Add DatasetClient.copy_segment and FusionDatasetClient.copy_segment (#757)
    • Add SegmentClient.copy_data (#762)
    • Add SegmentClient.move_data (#766)
  • Support importing data from auth cloud storage (#747, #768, #769, #770)

    • Add AuthData.open and CloudClient.list_auth_data (#763, #773)
    • Add SegmentClient.import_auth_data (#760)
    • Support dataset with AuthData in GAS.upload_dataset (#774)
  • Add special error messages to all attrs in Label and Catalog when the attr does not exist (#731)

  • Add gas auth command to authenticate, list and unset TensorBay account (#672, #681, #684, #693)

  • Support listing and unsetting config in gas config command (#695, #697)

  • The CLI config file format is updated to support multiple profiles better (#638)

  • Add Vector.__abs__ to get the 2-norm of a vector (#674)

  • Add the following basic arithmetic methods for Vector: (#673)

    • Vector.__sub__
    • Vector.__rsub__
    • Vector.__mul__
    • Vector.__rmul__
    • Vector.__truediv__
    • Vector.__floordiv__
  • Add __contains__ method for the following Sequence subclasses (#707, #708):

    • UserSequence
    • NameList
    • SortedNameList
    • DatasetBase
  • Add __eq__ method for UserSequence and UserMapping (#719, #726)

  • Add __reversed__ method for UserSequence (#727)

Bug fixes:

  • Fix the issue that .png files are all missing in RP2K open dataset loader (#714)

Interface adjustment:

  • Use NameSortedList in Sensors to replace NameSortedDict (#704)
  • Rename NamedList to NameList and NameSortedList to SortedNameList (#706)

Improvements:

  • Move lazy evaluation related code to client/lazy.py (#688)
  • Use bisect in NameSortedList to replace SortedDict (#703)
  • Remove sortedcontainers from dependancies (#705)
  • Group version control methods from DatasetClientBase into VersionControlClient (#750)

Performance:

  • Enhance the performance of the following methods: (#675)
    • Polyline2D.uniform_frechet_distance
    • Polyline2D.similarity
  • Override PagingList mixin methods inherited from MutableSequence to enhance its performance (#686)

Documentation:

  • Add docs about copying and moving data and segment (#761, #765)
  • Add docs about importing data from auth cloud storage (#756)
  • Add docs about gas auth and gas config (#696, #702)
  • Fix typos in docs (#679)
  • Refine the docs (#700, #736, #725, #754)

Deprecations:

  • The setting access key feature in CLI gas config is deprecated, please use gas auth (#689)
  • Remove the deprecated method get_segment_by_name (#698)

v1.6.0

29 Jun 12:35
Compare
Choose a tag to compare

IMPORTANT: TensorBay system underwent a huge refactoring, which broke the downward compatibility
of OpenAPI and SDK. As a result, the SDK under version v1.6.0 does not work anymore.
Please update tensorbay SDK to v1.6.0 or a higher version.


New Features:

  • Add the following methods to support multiple branches (#644, #657):

    • DatasetClientBase.create_branch (#613)
    • DatasetClientBase.delete_branch (#616)
  • Support creating draft on different branches (#652, #649, #659, #733)

  • Support uploading dataset on different branches in GAS.upload_dataset (#694)

  • Add open dataset loader BDD100K for its CLASSIFICATION and BOX2D label (#631)

  • Add the following CLI commands:

    • gas branch to create, list and delete branches (#587, #640, #663)
    • gas tag to create, list and delete tags (#600, #611, #622)
    • gas log to show commit history (#614)
  • Add popup editor for the following CLI commands to edit title and description (#662):

  • Support setting description in gas commit command (#730)

Interface adjustment:

  • Change the default segment name from "" to "default" (#620, #686)
  • Set argument title of DatasetClientBase.create_draft required (#668)
  • Use dynamic attr and public attrs in CameraIntrinsics (#606)
  • Implement NamedList to replace NameOrderedDict (#621)
  • Change the type of Notes.bin_point_cloud_fields to list (#660)
  • Disable method SegmentClientBase.delete_data temporarily (#737)

Improvements:

  • Rebuild uploading data procedure to adapt new TensorBay backend (#671)
  • Use title and description instead of message in commit (#713, #718, #724)
  • Handle the branch without commit history (#618, #701, #709, #734, #596)
  • Fix type hint errors reported by mypy (#590)
  • No longer dumps "skew" of zero value in CameraMatrix (#609)
  • Add error() function for CLI to echo error message then exit (#642, #647, #658)
  • Delete useless need_team_dataset argument in GAS._list_datasets() (#682)
  • Add DefaultValueDeprecated to deprecate arg default value (#639, #654)
  • Refine AttrsMixin framework (#586, #591, #595, #598, #603, #607, #629, #633, #636)
  • Apply AttrsMixin in the following modules and classes:
    • NameMixin class (#601)
    • sensor module (#617)
    • label module (#635)
    • dataset module (#570)
    • client.struct module (#692, #716)

Documentation:

  • Add docs about multiple branches (#650, #670, #720)
  • Add docs about gas tag, gas branch and gas log(#624, #630, #667)
  • Update docstrings about version control (#721)
  • Refine the docs (#661)

v1.5.3

24 Jun 06:48
Compare
Choose a tag to compare

Bug fixes:

  • Add a workaround for the inconsistent label format generated from annotation platform (#751)

v1.5.2

08 Jun 04:58
Compare
Choose a tag to compare

Bug fixes:

  • Fix the UnicodeEncodeError in RemoteData.open() when there are Chinese characters in the remote data url (#678, Fix #676)

v1.5.1

03 Jun 08:45
Compare
Choose a tag to compare

Bug fixes:

  • Fix the AttributeError when using DatasetBase.keys() to list segment names (#641, Fix #637)

v1.5.0

31 May 10:28
Compare
Choose a tag to compare

New Features:

  • Redesign and implement the gas CLI based on TensorBay version control (#575):

    • Support draft number and revision in TBRN (#525)
    • Add gas dataset command to create, list and delete dataset (#523, #526, #528, #530, #534, #571)
    • Support gas ls command to list segments and data in specific draft or revision (#541, #618)
    • Add gas draft command to create and list drafts (#546, #547, #548)
    • Add gas commit command to commit draft (#549)
    • Add gas cp command to upload files to draft (#551)
    • Add gas rm command to remove segment and data in draft (#555, #582)
  • Add detailed resuming message when uploading process got interrupted (#516, #536)

  • Add ModuleImportError to print detailed install instruction when the optional requirement package is not installed (#544)

  • Implement DatasetBase.__delitem__ to support delete segment from dataset by del (#542)

  • Add open dataset loader LISA Traffic Sign (#518)

Bug fixes:

  • Fix the ValueError when passing the last item to UserSequence.index (#627, Fix #610)

Improvements:

  • Remove the redundant class variable description in KeypointsInfo (#506)
  • Implement python attr framework AttrsMixin (#447, #559, #560, #565, #569, #566, #580)
  • Move TBRN from utility module to cli module (#540)
  • Inherit EqMixin to replace __eq__ in the following intrinsic classes (#539):
    • CameraMatrix
    • DistortionCoefficients
    • CameraIntrinsics

Documentation:

Deprecations:

  • Deprecate CLI gas create and gas delete (#568)
  • Deprecate legacy fusion dataset TBRN (#581)
  • Remove the following deprecated interfaces (#511):
    • Following exceptions:
      • GASDatasetError
      • GASDatasetTypeError
      • GASException
      • GASPathError
      • GASResponseError
      • GASSegmentError
    • The start and stop keyword arguments in the following methods:
      • GAS.list_dataset_names
      • DatasetClientBase.list_drafts
      • DatasetClientBase.list_commits
      • DatasetClientBase.list_tags
      • DatasetClientBase.list_branches
      • DatasetClientBase.list_segment_names
      • SegmentClient.list_data_paths
      • SegmentClient.list_data
      • FusionSegmentClient.list_frames
    • Following methods:
      • DatasetClientBase.list_draft_titles_and_numbers

v1.4.1

19 May 15:27
Compare
Choose a tag to compare

New Features:

Bug fixes:

  • Fix the JSONDecodeError occurred when uploading dataset (#563, Fix #562)
  • Fix the AttributeError when using CADC dataloader in python3.6 (#576, Fix #574)
  • Fix the AttributeError when resuming upload of fusion dataset (#583, Fix #579)

Documentation: