Update README.md

Example in README documentation out of date for v.0.8.0.  __iter__() yields a length 3 tuple.  Example shows a length 2 tuple.

Change proposed: add image_name to example.

Reference: From API docs

```
__iter__() ¶
Iterate over the images and annotations in the dataset.

Yields:

Type	Description
Iterator[Tuple[str, np.ndarray, Detections]]	
Iterator[Tuple[str, np.ndarray, Detections]]: An iterator that yields tuples containing the image name, the image data, and its corresponding annotation.
```
This commit is contained in:
Stephen Lomnes authored and GitHub committed 2023-06-01 09:08:33 -04:00
1 parent 0261bec2ce
commit be65ba7370
1 file changed
+1 -1
+1 -1
View File
@@ -141,7 +141,7 @@ pip install -e ".[dev]"
- Loop over dataset entries
```python
>>> for image, labels in dataset:
>>> for name, image, labels in dataset:
... print(labels.xyxy)
array([[404. , 719. , 538. , 884.5 ],