misc/convert_folders_to_coco_format.py [132:153]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                else:
                    print('File / Symlink already exists: '+ target_file)
                js['images'].append(dict(id=next_im_id,
                                         width=width,
                                         height=height,
                                         file_name=target_file,
                                         license=lic_id,
                                         rights_holder=''))
                js['annotations'].append(dict(id=next_an_id,
                                              image_id=next_im_id,
                                              category_id=cat_id))
            except IOError:
                print('Cannot read image {}'.format(classimage))
                os.remove(classimage)
            except:
                print('Cannot read image {}'.format(classimage))
                raise


if __name__ == '__main__': 

    main()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



misc/make_species_extended.py [133:153]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                else:
                    print('File / Symlink already exists: '+ target_file)
                js['images'].append(dict(id=next_im_id,
                                         width=width,
                                         height=height,
                                         file_name=target_file,
                                         license=lic_id,
                                         rights_holder=''))
                js['annotations'].append(dict(id=next_an_id,
                                              image_id=next_im_id,
                                              category_id=cat_id))
            except IOError:
                print('Cannot read image {}'.format(classimage))
                os.remove(classimage)
            except:
                print('Cannot read image {}'.format(classimage))
                raise


if __name__ == '__main__': 
    main()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



