Skip to content

Commit f8e40d5

Browse files
loader_bug
1 parent 3abc405 commit f8e40d5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ annotated_dataset = ImageAnnotations.import_from(path= 'folder_path', format= 'a
5454
## Features
5555

5656
### Image Utils
57-
- #### Annotation Conversion
57+
- #### Annotation Loader
5858
- Load various annotated image datasets and export to clarifai Platform
5959
- Convert from one annotation format to other supported annotation formats
6060

6161

6262

6363
## Usage
64-
### Image Annotation conversion
64+
### Image Annotation Loader
6565
```python
6666
from clarifai_datautils import ImageAnnotations
6767
#import from folder

clarifai_datautils/image/annotation_conversion/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Annotation conversion
1+
# Annotation Loader
22

33
A framework to load, export and analyze different annotated datasets.
44

clarifai_datautils/image/annotation_conversion/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __getitem__(self, index: int):
4747
_, encoded_image = cv2.imencode('.png', dataset_item.media.data)
4848
image_bytes = encoded_image.tobytes()
4949
else:
50-
image_bytes = None
50+
image_bytes = dataset_item.media.bytes
5151

5252
concept_ids = []
5353
annotations = dataset_item.annotations

0 commit comments

Comments
 (0)