Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -61,15 +61,15 @@ The structure of the dataset is
|
|
61 |
|
62 |
## Download the dataset
|
63 |
|
64 |
-
|
65 |
from datasets import load_dataset
|
66 |
|
67 |
dataset = load_dataset('Javiai/failures-3D-print')
|
68 |
-
|
69 |
|
70 |
## Show the Bounding Boxes
|
71 |
|
72 |
-
|
73 |
import numpy as np
|
74 |
import os
|
75 |
from PIL import Image, ImageDraw
|
@@ -91,4 +91,4 @@ for i in range(len(annotations["categories"])):
|
|
91 |
draw.text((x - w/2, y - h/2), id2label[class_idx], fill="white")
|
92 |
|
93 |
image
|
94 |
-
|
|
|
61 |
|
62 |
## Download the dataset
|
63 |
|
64 |
+
```
|
65 |
from datasets import load_dataset
|
66 |
|
67 |
dataset = load_dataset('Javiai/failures-3D-print')
|
68 |
+
```
|
69 |
|
70 |
## Show the Bounding Boxes
|
71 |
|
72 |
+
```
|
73 |
import numpy as np
|
74 |
import os
|
75 |
from PIL import Image, ImageDraw
|
|
|
91 |
draw.text((x - w/2, y - h/2), id2label[class_idx], fill="white")
|
92 |
|
93 |
image
|
94 |
+
```
|