clarifai 10.3.3__py3-none-any.whl → 10.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -416,9 +416,6 @@ class Dataset(Lister, BaseClient):
416
416
  log_warnings (bool): True if you want to save log warnings in a file
417
417
  kwargs: Additional keyword arguments for retry uploading functionality..
418
418
  """
419
- #add file handler to log warnings
420
- if log_warnings:
421
- add_file_handler(self.logger, f"Dataset_Upload{str(int(datetime.now().timestamp()))}.log")
422
419
  #set batch size and task
423
420
  self.batch_size = min(self.batch_size, batch_size)
424
421
  self.task = dataloader.task
@@ -442,6 +439,9 @@ class Dataset(Lister, BaseClient):
442
439
  if get_upload_status:
443
440
  pre_upload_stats = self.get_upload_status(pre_upload=True)
444
441
 
442
+ #add file handler to log warnings
443
+ if log_warnings:
444
+ add_file_handler(self.logger, f"Dataset_Upload{str(int(datetime.now().timestamp()))}.log")
445
445
  self._data_upload(dataset_obj, **kwargs)
446
446
 
447
447
  if get_upload_status:
clarifai/versions.py CHANGED
@@ -1,6 +1,6 @@
1
1
  import os
2
2
 
3
- CLIENT_VERSION = "10.3.3"
3
+ CLIENT_VERSION = "10.5.0"
4
4
  OS_VER = os.sys.platform
5
5
  PYTHON_VERSION = '.'.join(
6
6
  map(str, [os.sys.version_info.major, os.sys.version_info.minor, os.sys.version_info.micro]))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: clarifai
3
- Version: 10.3.3
3
+ Version: 10.5.0
4
4
  Summary: Clarifai Python SDK
5
5
  Home-page: https://github.com/Clarifai/clarifai-python
6
6
  Author: Clarifai
@@ -20,7 +20,7 @@ Classifier: Operating System :: OS Independent
20
20
  Requires-Python: >=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
- Requires-Dist: clarifai-grpc ~=10.3.4
23
+ Requires-Dist: clarifai-grpc >=10.5.0
24
24
  Requires-Dist: numpy >=1.22.0
25
25
  Requires-Dist: tqdm >=4.65.0
26
26
  Requires-Dist: tritonclient >=2.34.0
@@ -170,11 +170,14 @@ dataset.upload_dataset(dataloader=coco_dataloader, get_upload_status=True)
170
170
  #Try upload and record the failed outputs in log file.
171
171
  from clarifai.datasets.upload.utils import load_module_dataloader
172
172
  cifar_dataloader = load_module_dataloader('./image_classification/cifar10')
173
- dataset.upload_dataset(dataloader=cifar_dataloader, log_warnings =True)
173
+ dataset.upload_dataset(dataloader=cifar_dataloader,
174
+ get_upload_status=True,
175
+ log_warnings =True)
174
176
 
175
177
  #Retry upload from logs for `upload_dataset`
178
+ # Set retry_duplicates to True if you want to ingest failed inputs due to duplication issues. by default it is set to 'False'.
176
179
  dataset.retry_upload_from_logs(dataloader=cifar_dataloader, log_file_path='log_file.log',
177
- retry_duplicates=False,
180
+ retry_duplicates=True,
178
181
  log_warnings=True)
179
182
 
180
183
  #upload text from csv
@@ -1,11 +1,11 @@
1
1
  clarifai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  clarifai/cli.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  clarifai/errors.py,sha256=RwzTajwds51wLD0MVlMC5kcpBnzRpreDLlazPSBZxrg,2605
4
- clarifai/versions.py,sha256=o52vXofZC1oBgGfcOiA3rcSbaktIkvy-fWxZsri2mis,186
4
+ clarifai/versions.py,sha256=45yN_CYVHYMj9_5f2wK7IgHdCYaA5KHH9NBdC2-5rj0,186
5
5
  clarifai/client/__init__.py,sha256=xI1U0l5AZdRThvQAXCLsd9axxyFzXXJ22m8LHqVjQRU,662
6
6
  clarifai/client/app.py,sha256=LC3rnuqr97f-S7LsJ9Q7KZnYMBHGDAq4mcFjjcPjpqo,27240
7
7
  clarifai/client/base.py,sha256=FrnSY9tSxjTxhABfBzQz5-PEppWMPbIyvSNnx8mVz8s,6919
8
- clarifai/client/dataset.py,sha256=wKDpON8kbOXpbfOkre5EYKXT4zEX-5xu9LgtORNuhog,29903
8
+ clarifai/client/dataset.py,sha256=XX-J-9Ict1CQrEycq-JbdxUTuucSgLeDSvnlHE1ucQY,29903
9
9
  clarifai/client/input.py,sha256=Av_gPrmwa1vorDs5Pz9jUbY1MwXHYFb3NyF_a1S1aII,41630
10
10
  clarifai/client/lister.py,sha256=03KGMvs5RVyYqxLsSrWhNc34I8kiF1Ph0NeyEwu7nMU,2082
11
11
  clarifai/client/model.py,sha256=QTVSeR3D3SHh8rK6kWHATy87qS8khYeXIKbs9dn5W4I,58487
@@ -106,9 +106,9 @@ clarifai/workflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
106
106
  clarifai/workflows/export.py,sha256=vICRhIreqDSShxLKjHNM2JwzKsf1B4fdXB0ciMcA70k,1945
107
107
  clarifai/workflows/utils.py,sha256=nGeB_yjVgUO9kOeKTg4OBBaBz-AwXI3m-huSVj-9W18,1924
108
108
  clarifai/workflows/validate.py,sha256=yJq03MaJqi5AK3alKGJJBR89xmmjAQ31sVufJUiOqY8,2556
109
- clarifai-10.3.3.dist-info/LICENSE,sha256=mUqF_d12-qE2n41g7C5_sq-BMLOcj6CNN-jevr15YHU,555
110
- clarifai-10.3.3.dist-info/METADATA,sha256=_DucjDZoou8UlkC_FT4zhlWZl_emaag4d6jd3ad-IfA,19176
111
- clarifai-10.3.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
112
- clarifai-10.3.3.dist-info/entry_points.txt,sha256=qZOr_MIPG0dBBE1zringDJS_wXNGTAA_SQ-zcbmDHOw,82
113
- clarifai-10.3.3.dist-info/top_level.txt,sha256=wUMdCQGjkxaynZ6nZ9FAnvBUCgp5RJUVFSy2j-KYo0s,9
114
- clarifai-10.3.3.dist-info/RECORD,,
109
+ clarifai-10.5.0.dist-info/LICENSE,sha256=mUqF_d12-qE2n41g7C5_sq-BMLOcj6CNN-jevr15YHU,555
110
+ clarifai-10.5.0.dist-info/METADATA,sha256=XR2mF-8uqgbOp-nJXh97xrzITiszzpnq0D7xffqUryM,19372
111
+ clarifai-10.5.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
112
+ clarifai-10.5.0.dist-info/entry_points.txt,sha256=qZOr_MIPG0dBBE1zringDJS_wXNGTAA_SQ-zcbmDHOw,82
113
+ clarifai-10.5.0.dist-info/top_level.txt,sha256=wUMdCQGjkxaynZ6nZ9FAnvBUCgp5RJUVFSy2j-KYo0s,9
114
+ clarifai-10.5.0.dist-info/RECORD,,