marcin119a commited on
Commit
38ecbb7
·
verified ·
1 Parent(s): db258b8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -0
README.md CHANGED
@@ -13,3 +13,12 @@ and label from 0-9 digit
13
  This dataset has immense potential for applications in the field of machine learning, particularly in tasks related to object detection. You can use it for training and evaluating models that combine classification and regression tasks. Solutions based on this dataset can find applications in areas such as automatic identification of digits in images or more advanced detection tasks.
14
  ![dataset-cover (1).png](https://cdn-uploads.huggingface.co/production/uploads/64da1fd40fd0857fac62cf90/lUC-hkbKfgdU9GMVQaOza.png)
15
 
 
 
 
 
 
 
 
 
 
 
13
  This dataset has immense potential for applications in the field of machine learning, particularly in tasks related to object detection. You can use it for training and evaluating models that combine classification and regression tasks. Solutions based on this dataset can find applications in areas such as automatic identification of digits in images or more advanced detection tasks.
14
  ![dataset-cover (1).png](https://cdn-uploads.huggingface.co/production/uploads/64da1fd40fd0857fac62cf90/lUC-hkbKfgdU9GMVQaOza.png)
15
 
16
+ ```python
17
+ import numpy as np
18
+
19
+ # Loading data from the 'mnist_object.npz' file
20
+ data = np.load('/kaggle/input/mnist-for-object-detection/mnist_object.npz')
21
+
22
+ # Reading variables containing the data
23
+ X_train, y_train, y_train_bboxes, X_test, y_test, y_test_bboxes = data['train_images'], data['train_labels'], data['train_bboxes'], data['test_images'], data['test_labels'], data['test_bboxes']
24
+ ```