Export training data for deep learning

3516
14
11-05-2019 03:00 AM
MattiasTivlin
New Contributor III

Hi all!

I'm trying to learn about python and deep learning. I have tried to follow the sample notebooks and watch the training courses but now i'm stucked.

I have done some training samples in Arcgis Pro with the training samples manager and saved it as a shapefile.

Then i export the samples with GP-tool "Export Training Data For Deep Learning" with KITTI Labels as Meta Data Format.

In jupyter notebook i write this to load the samples

from arcgis.learn import prepare_data
data = prepare_data('Path to my samples')
data.show_batch

The error i get

~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone4\lib\site-packages\arcgis\learn\_data.py in prepare_data(path, class_mapping, chip_size, val_split_pct, batch_size, transforms, collate_fn, seed, dataset_type, resize_to, **kwargs)

572 return ner_prepare_data(dataset_type=dataset_type, path=path, class_mapping=class_mapping, val_split_pct=val_split_pct)

573 else:

--> 574 raise NotImplementedError('Unknown dataset_type="{}".'.format(dataset_type))

575

576 if dataset_type == 'RCNN_Masks':

NotImplementedError: Unknown dataset_type="KITTI_rectangles".

What am i doing wrong?

Regards Mattias

0 Kudos
14 Replies
by Anonymous User
Not applicable

This is helpful, but I am still wondering why the KTTI Labels export is not working - could you elaborate on why the PASCAL method works, but KTTI labels does not? Thanks! 

0 Kudos
Wimalavan_Iersel
New Contributor

I am also curious about this issue with the KITTI labels. I have the same error as Mattias, but I can't switch to PASCAL since I want to use the training data for pixel classification. Any ideas? My KITTI labels already have points, so that can't fix it either... Thanks!

0 Kudos
by Anonymous User
Not applicable

Hi Wimala,

If you want to do pixel classification you can use the format 'Classified Tiles'.

Thanks,

Sandeep

0 Kudos
AlexaVerónicaGarcíaBarrantes
New Contributor II

Hi Javier

specifically where do I replace all commas to points? I went fo the folder created after exporting the training data and all the files look like in the picture. I don't see any points or commas, should they be created differently?

AlexaVernicaGarcaBarrantes_0-1699299378611.png

 

0 Kudos
AlexaVerónicaGarcíaBarrantes
New Contributor II

Hi Javier

I replied to your thread before but seems like it didn't upload

Specifically, where do I replace the commas to points, after creating the image chips I went to the Label folder and they all look like in the picture. Are they supposed to be in a different format?

AlexaVernicaGarcaBarrantes_0-1699303322678.png

 

 

 

 

0 Kudos