image
imagewidth (px)
1.28k
1.28k
annotations
stringlengths
0
263
image_name
stringlengths
41
50
partner
stringclasses
3 values
camera
stringclasses
39 values
date
stringlengths
19
19
1 0.0670989 0.708931 0.134198 0.108047
sdis-07_brison-200_2024-01-15T14-32-36.jpg
sdis-07
brison-200
2024-01-15T14-32-36
1 0.127985 0.638067 0.021695699999999984 0.06064439999999993
force-06_cabanelle-125_2024-01-08T12-55-31.jpg
force-06
cabanelle-125
2024-01-08T12-55-31
force-06_cabanelle-244_2024-09-14T17-48-31.jpg
force-06
cabanelle-244
2024-09-14T17-48-31
1 0.104256 0.578859 0.040052400000000016 0.08251779999999997
sdis-07_brison-110_2024-03-01T09-23-24.jpg
sdis-07
brison-110
2024-03-01T09-23-24
1 0.442308 0.41429 0.06054870000000001 0.06142729999999996
sdis-77_croix-augas-161_2024-08-08T12-48-52.jpg
sdis-77
croix-augas-161
2024-08-08T12-48-52
1 0.405002 0.560919 0.023917100000000024 0.012328899999999976
force-06_valbonne-138_2024-01-29T10-36-42.jpg
force-06
valbonne-138
2024-01-29T10-36-42
1 0.0393533 0.638264 0.028144799999999998 0.04390089999999991
sdis-07_marguerite-29_2024-01-31T11-38-49.jpg
sdis-07
marguerite-29
2024-01-31T11-38-49
1 0.186776 0.641595 0.022483099999999978 0.016961400000000015
sdis-07_brison-200_2024-01-21T13-03-57.jpg
sdis-07
brison-200
2024-01-21T13-03-57
1 0.32364 0.483893 0.06177949999999999 0.05954799999999999
sdis-07_marguerite-185_2024-01-26T12-22-52.jpg
sdis-07
marguerite-185
2024-01-26T12-22-52
1 0.0137981 0.440848 0.0275906 0.051580599999999976
sdis-07_brison-290_2024-02-06T13-42-36.jpg
sdis-07
brison-290
2024-02-06T13-42-36
1 0.359736 0.536299 0.05177339999999997 0.04357630000000001
force-06_ferion-142_2024-02-29T11-52-33.jpg
force-06
ferion-142
2024-02-29T11-52-33
1 0.136443 0.652594 0.0162621 0.03256419999999993
force-06_cabanelle-125_2024-01-08T12-41-44.jpg
force-06
cabanelle-125
2024-01-08T12-41-44
1 0.115638 0.357443 0.015700099999999995 0.013768000000000002 1 0.1915 0.348628 0.01583089999999998 0.009146729999999992
sdis-77_croix-augas-8_2024-08-12T16-49-15.jpg
sdis-77
croix-augas-8
2024-08-12T16-49-15
1 0.235326 0.611606 0.022420600000000013 0.05888430000000011
sdis-07_marguerite-29_2024-03-25T09-30-43.jpg
sdis-07
marguerite-29
2024-03-25T09-30-43
force-06_courmettes-160_2024-06-07T09-30-32.jpg
force-06
courmettes-160
2024-06-07T09-30-32
1 0.168806 0.578447 0.02445259999999999 0.02484810000000004
sdis-07_brison-110_2024-08-17T08-56-55.jpg
sdis-07
brison-110
2024-08-17T08-56-55
1 0.0104369 0.52736 0.0208738 0.051715600000000084
sdis-07_brison-20_2024-02-12T16-04-26.jpg
sdis-07
brison-20
2024-02-12T16-04-26
1 0.249323 0.628201 0.0268776 0.04015410000000008
sdis-07_brison-200_2024-03-16T14-06-32.jpg
sdis-07
brison-200
2024-03-16T14-06-32
1 0.123294 0.793369 0.052553199999999994 0.20224700000000007
force-06_ferion-142_2024-01-16T11-07-32.jpg
force-06
ferion-142
2024-01-16T11-07-32
1 0.0627887 0.719672 0.125577 0.08223249999999993
sdis-07_brison-200_2024-03-18T12-01-47.jpg
sdis-07
brison-200
2024-03-18T12-01-47
force-06_courmettes-275_2024-04-27T19-39-32.jpg
force-06
courmettes-275
2024-04-27T19-39-32
1 0.0925232 0.708726 0.08093929999999999 0.08484000000000003 1 0.0207214 0.69458 0.016101500000000005 0.04162559999999993
sdis-07_brison-110_2024-02-05T08-57-32.jpg
sdis-07
brison-110
2024-02-05T08-57-32
force-06_ferion-287_2024-01-30T11-09-02.jpg
force-06
ferion-287
2024-01-30T11-09-02
1 0.330858 0.707895 0.08619469999999996 0.09481680000000003
force-06_cabanelle-125_2024-04-03T09-05-10.jpg
force-06
cabanelle-125
2024-04-03T09-05-10
1 0.103048 0.601394 0.01224710000000001 0.015863399999999972
sdis-07_marguerite-339_2024-02-20T15-43-19.jpg
sdis-07
marguerite-339
2024-02-20T15-43-19
1 0.0777186 0.705855 0.06383820000000001 0.05108299999999999 1 0.693506 0.639058 0.09051600000000004 0.092225
sdis-07_brison-200_2024-02-07T16-25-29.jpg
sdis-07
brison-200
2024-02-07T16-25-29
1 0.31273 0.644521 0.024281099999999944 0.037802799999999914
sdis-07_brison-110_2024-03-16T08-52-49.jpg
sdis-07
brison-110
2024-03-16T08-52-49
1 0.0726926 0.776183 0.048702300000000004 0.05858819999999998
force-06_ferion-142_2024-02-28T16-20-01.jpg
force-06
ferion-142
2024-02-28T16-20-01
sdis-07_marguerite-29_2024-03-24T11-35-14.jpg
sdis-07
marguerite-29
2024-03-24T11-35-14
1 0.213609 0.454225 0.039547600000000016 0.061885199999999974
sdis-07_marguerite-185_2024-03-25T10-46-18.jpg
sdis-07
marguerite-185
2024-03-25T10-46-18
1 0.259656 0.538387 0.03011560000000002 0.04077559999999991
sdis-07_marguerite-339_2024-02-05T15-32-21.jpg
sdis-07
marguerite-339
2024-02-05T15-32-21
1 0.128252 0.511666 0.09324110000000001 0.07784499999999994
sdis-07_brison-20_2024-03-08T09-41-02.jpg
sdis-07
brison-20
2024-03-08T09-41-02
sdis-07_marguerite-282_2024-01-26T11-42-10.jpg
sdis-07
marguerite-282
2024-01-26T11-42-10
1 0.442578 0.678246 0.024573100000000014 0.06173429999999991
force-06_cabanelle-244_2024-09-12T14-08-22.jpg
force-06
cabanelle-244
2024-09-12T14-08-22
1 0.008739 0.748385 0.014938399999999998 0.024043899999999896
sdis-07_brison-200_2024-01-19T09-43-05.jpg
sdis-07
brison-200
2024-01-19T09-43-05
1 0.545012 0.67625 0.020201600000000042 0.0397358000000001
force-06_courmettes-160_2024-02-28T11-54-51.jpg
force-06
courmettes-160
2024-02-28T11-54-51
1 0.0291218 0.521075 0.0474311 0.02172710000000011
sdis-07_brison-110_2024-01-27T09-20-59.jpg
sdis-07
brison-110
2024-01-27T09-20-59
1 0.479425 0.35138 0.03216909999999995 0.029733200000000015
sdis-07_marguerite-282_2024-02-08T12-20-45.jpg
sdis-07
marguerite-282
2024-02-08T12-20-45
1 0.183833 0.615542 0.060482900000000006 0.07071749999999999
force-06_courmettes-160_2024-04-23T10-08-02.jpg
force-06
courmettes-160
2024-04-23T10-08-02
force-06_courmettes-212_2024-01-12T12-26-33.jpg
force-06
courmettes-212
2024-01-12T12-26-33
1 0.602986 0.668889 0.13415899999999992 0.0547879
force-06_courmettes-160_2024-02-27T16-12-34.jpg
force-06
courmettes-160
2024-02-27T16-12-34
sdis-07_marguerite-282_2024-03-13T16-22-33.jpg
sdis-07
marguerite-282
2024-03-13T16-22-33
1 0.163213 0.634889 0.0268775 0.03548810000000002
force-06_courmettes-160_2024-02-18T17-45-16.jpg
force-06
courmettes-160
2024-02-18T17-45-16
1 0.112314 0.516232 0.019336799999999987 0.06397040000000004
force-06_courmettes-275_2024-01-10T10-04-48.jpg
force-06
courmettes-275
2024-01-10T10-04-48
1 0.156173 0.519953 0.10496499999999999 0.04512699999999997
sdis-07_brison-110_2024-03-01T09-37-45.jpg
sdis-07
brison-110
2024-03-01T09-37-45
1 0.027895 0.428594 0.0557746 0.06439969999999995
sdis-07_brison-290_2024-02-06T12-05-40.jpg
sdis-07
brison-290
2024-02-06T12-05-40
1 0.194069 0.597028 0.02525329999999998 0.039402200000000054 1 0.877709 0.657884 0.008054919999999965 0.018527299999999913
sdis-07_brison-110_2024-01-09T11-09-08.jpg
sdis-07
brison-110
2024-01-09T11-09-08
force-06_valbonne-138_2024-01-06T17-35-14.jpg
force-06
valbonne-138
2024-01-06T17-35-14
1 0.208921 0.571948 0.047606800000000005 0.09483160000000002
sdis-07_brison-110_2024-02-06T14-08-42.jpg
sdis-07
brison-110
2024-02-06T14-08-42
1 0.269824 0.510226 0.03795769999999998 0.04501740000000004
force-06_valbonne-349_2024-01-22T11-14-56.jpg
force-06
valbonne-349
2024-01-22T11-14-56
1 0.1323 0.542279 0.04385040000000001 0.07062799999999991
sdis-07_serre-de-barre-0_2024-08-18T09-08-00.jpg
sdis-07
serre-de-barre-0
2024-08-18T09-08-00
1 0.182621 0.631325 0.060345399999999993 0.04225370000000006
sdis-07_brison-200_2024-01-20T12-04-06.jpg
sdis-07
brison-200
2024-01-20T12-04-06
1 0.500156 0.343859 0.015034200000000053 0.018434599999999968 1 0.19181 0.348079 0.015032199999999996 0.00874607999999999 1 0.115388 0.35718 0.0159937 0.01407769999999997
sdis-77_croix-augas-8_2024-08-12T16-49-01.jpg
sdis-77
croix-augas-8
2024-08-12T16-49-01
1 0.462813 0.50795 0.09943939999999996 0.08772209999999997 1 0.310536 0.546277 0.044667400000000024 0.054632400000000025
force-06_ferion-142_2024-02-25T10-02-15.jpg
force-06
ferion-142
2024-02-25T10-02-15
1 0.105516 0.73922 0.02351800000000001 0.03874310000000003
force-06_courmettes-160_2024-01-26T14-12-35.jpg
force-06
courmettes-160
2024-01-26T14-12-35
1 0.587101 0.574091 0.04102230000000007 0.07722410000000002
force-06_courmettes-160_2024-01-22T13-49-49.jpg
force-06
courmettes-160
2024-01-22T13-49-49
1 0.889522 0.645006 0.027233700000000027 0.04149420000000004 1 0.577955 0.660141 0.09093930000000006 0.10504899999999995
force-06_courmettes-160_2024-02-28T12-02-21.jpg
force-06
courmettes-160
2024-02-28T12-02-21
1 0.648934 0.637594 0.032196799999999914 0.04938240000000005 1 0.406217 0.461555 0.024963500000000027 0.07476899999999997
force-06_ferion-142_2024-01-08T11-54-33.jpg
force-06
ferion-142
2024-01-08T11-54-33
1 0.432404 0.762438 0.06506509999999999 0.13896700000000006
force-06_courmettes-212_2024-02-23T11-11-15.jpg
force-06
courmettes-212
2024-02-23T11-11-15
1 0.293921 0.568542 0.04313250000000002 0.08243259999999997
force-06_cabanelle-244_2024-02-28T11-17-58.jpg
force-06
cabanelle-244
2024-02-28T11-17-58
1 0.477163 0.352548 0.025993500000000003 0.028360000000000052
sdis-07_marguerite-282_2024-02-08T13-32-26.jpg
sdis-07
marguerite-282
2024-02-08T13-32-26
1 0.165852 0.449204 0.028482899999999978 0.0428982
sdis-07_brison-20_2024-01-18T14-19-02.jpg
sdis-07
brison-20
2024-01-18T14-19-02
1 0.26079 0.519882 0.050186900000000007 0.0762391
force-06_cabanelle-125_2024-02-27T13-27-25.jpg
force-06
cabanelle-125
2024-02-27T13-27-25
1 0.0634205 0.820465 0.04083239999999999 0.0937205000000001
force-06_ferion-142_2024-02-17T12-08-15.jpg
force-06
ferion-142
2024-02-17T12-08-15
1 0.540371 0.5462 0.07431879999999991 0.08200629999999998
sdis-07_brison-20_2024-01-09T11-09-15.jpg
sdis-07
brison-20
2024-01-09T11-09-15
1 0.289292 0.411132 0.11414000000000002 0.06449729999999998
force-06_valbonne-349_2024-01-23T11-54-59.jpg
force-06
valbonne-349
2024-01-23T11-54-59
1 0.513389 0.663936 0.109402 0.059960299999999966
force-06_courmettes-160_2024-01-20T09-37-20.jpg
force-06
courmettes-160
2024-01-20T09-37-20
1 0.0654515 0.61516 0.034131400000000006 0.03978309999999996
force-06_courmettes-275_2024-02-04T09-57-40.jpg
force-06
courmettes-275
2024-02-04T09-57-40
1 0.104303 0.706432 0.018728400000000006 0.024434000000000067
sdis-07_brison-200_2024-03-17T17-17-50.jpg
sdis-07
brison-200
2024-03-17T17-17-50
1 0.498825 0.678207 0.039695499999999995 0.04389759999999998
sdis-07_brison-110_2024-03-17T09-07-10.jpg
sdis-07
brison-110
2024-03-17T09-07-10
1 0.106637 0.595181 0.018094499999999986 0.054334899999999964
sdis-07_brison-110_2024-02-17T11-11-59.jpg
sdis-07
brison-110
2024-02-17T11-11-59
1 0.178426 0.635026 0.011000500000000024 0.030208800000000036 1 0.136764 0.670607 0.022729600000000016 0.025208499999999967
sdis-07_brison-200_2024-01-20T11-48-06.jpg
sdis-07
brison-200
2024-01-20T11-48-06
sdis-07_brison-110_2024-03-06T09-34-00.jpg
sdis-07
brison-110
2024-03-06T09-34-00
1 0.214463 0.576734 0.023637200000000025 0.05178410000000011
force-06_courmettes-275_2024-02-05T11-14-42.jpg
force-06
courmettes-275
2024-02-05T11-14-42
1 0.13796 0.737581 0.023138199999999998 0.04860299999999995
force-06_courmettes-160_2024-01-29T13-49-29.jpg
force-06
courmettes-160
2024-01-29T13-49-29
sdis-77_croix-augas-8_2024-07-09T19-44-45.jpg
sdis-77
croix-augas-8
2024-07-09T19-44-45
1 0.0741707 0.559704 0.032812100000000004 0.1027070000000001
force-06_cabanelle-327_2024-01-08T12-09-43.jpg
force-06
cabanelle-327
2024-01-08T12-09-43
1 0.0955171 0.584029 0.012409399999999987 0.02684210000000009
sdis-07_brison-110_2024-02-23T12-50-28.jpg
sdis-07
brison-110
2024-02-23T12-50-28
1 0.164384 0.823494 0.01733279999999998 0.06357609999999991
force-06_ferion-142_2024-01-22T10-44-11.jpg
force-06
ferion-142
2024-01-22T10-44-11
1 0.672395 0.643424 0.051283600000000096 0.08441039999999989 1 0.0864933 0.721339 0.061381099999999994 0.05926830000000005
sdis-07_brison-200_2024-02-07T16-25-15.jpg
sdis-07
brison-200
2024-02-07T16-25-15
1 0.492401 0.680823 0.019714299999999962 0.02872129999999995 1 0.571183 0.606929 0.008819200000000027 0.03895029999999999
sdis-07_brison-110_2024-03-02T11-02-41.jpg
sdis-07
brison-110
2024-03-02T11-02-41
1 0.278367 0.304518 0.0052639199999999775 0.02045790000000003
sdis-77_croix-augas-59_2024-07-07T07-41-00.jpg
sdis-77
croix-augas-59
2024-07-07T07-41-00
1 0.77484 0.608715 0.03852450000000007 0.03858030000000001
sdis-07_brison-110_2024-02-05T10-53-36.jpg
sdis-07
brison-110
2024-02-05T10-53-36
1 0.257906 0.543606 0.019006700000000015 0.028370599999999913
sdis-07_marguerite-339_2024-02-05T15-28-51.jpg
sdis-07
marguerite-339
2024-02-05T15-28-51
1 0.33519 0.427721 0.05780660000000004 0.06552199999999997
sdis-07_marguerite-282_2024-01-30T16-08-28.jpg
sdis-07
marguerite-282
2024-01-30T16-08-28
1 0.384799 0.467247 0.014552400000000021 0.04552820000000002 1 0.169561 0.47035 0.012759599999999982 0.0250572
force-06_courmettes-212_2024-04-03T11-09-22.jpg
force-06
courmettes-212
2024-04-03T11-09-22
1 0.845738 0.634747 0.008700850000000093 0.024942999999999937
sdis-07_brison-110_2024-03-02T09-08-54.jpg
sdis-07
brison-110
2024-03-02T09-08-54
1 0.0742668 0.558659 0.03316140000000001 0.10218299999999991
force-06_cabanelle-327_2024-01-08T12-09-57.jpg
force-06
cabanelle-327
2024-01-08T12-09-57
1 0.03447 0.579055 0.035210500000000006 0.0554424
force-06_courmettes-212_2024-01-14T16-06-29.jpg
force-06
courmettes-212
2024-01-14T16-06-29
1 0.320614 0.431029 0.02939820000000004 0.019743100000000013
sdis-77_croix-augas-161_2024-07-01T07-52-38.jpg
sdis-77
croix-augas-161
2024-07-01T07-52-38
1 0.494495 0.67702 0.018697299999999972 0.03652739999999999 1 0.571328 0.603245 0.008368780000000076 0.04680719999999994
sdis-07_brison-110_2024-03-02T11-02-55.jpg
sdis-07
brison-110
2024-03-02T11-02-55
1 0.485795 0.533389 0.039520900000000025 0.03945799999999999
force-06_ferion-142_2024-02-25T09-48-43.jpg
force-06
ferion-142
2024-02-25T09-48-43
1 0.0750864 0.618382 0.03362470000000001 0.042202400000000084
force-06_courmettes-275_2024-02-04T10-13-13.jpg
force-06
courmettes-275
2024-02-04T10-13-13
1 0.343017 0.816056 0.021265199999999984 0.06756249999999997
force-06_courmettes-212_2024-02-07T10-26-08.jpg
force-06
courmettes-212
2024-02-07T10-26-08
force-06_cabanelle-327_2024-04-03T08-17-30.jpg
force-06
cabanelle-327
2024-04-03T08-17-30
1 0.0248114 0.565186 0.0496228 0.08311580000000007
sdis-07_brison-290_2024-01-26T11-06-43.jpg
sdis-07
brison-290
2024-01-26T11-06-43
sdis-07_brison-290_2024-03-02T09-22-01.jpg
sdis-07
brison-290
2024-03-02T09-22-01
1 0.0630714 0.500476 0.12598900000000002 0.09421389999999996
force-06_courmettes-212_2024-01-04T12-02-07.jpg
force-06
courmettes-212
2024-01-04T12-02-07
1 0.480779 0.350011 0.01953640000000001 0.023364199999999946
sdis-07_marguerite-282_2024-02-08T13-26-47.jpg
sdis-07
marguerite-282
2024-02-08T13-26-47
1 0.26772 0.422756 0.025168199999999974 0.029713699999999954
sdis-07_marguerite-282_2024-01-15T09-07-51.jpg
sdis-07
marguerite-282
2024-01-15T09-07-51

Pyro-SDIS Dataset

Pyronear Logo


About the Dataset

Pyro-SDIS is a dataset designed for wildfire smoke detection using AI models. It is developed in collaboration with the Fire and Rescue Services (SDIS) in France and the dedicated volunteers of the Pyronear association.

The images in this dataset come from Pyronear cameras installed with the support of our SDIS partners. These images have been carefully annotated by Pyronear volunteers, whose tireless efforts we deeply appreciate.

We extend our heartfelt thanks to all Pyronear volunteers and our SDIS partners for their trust and support:

  • Force 06
  • SDIS 07
  • SDIS 12
  • SDIS 77

Additionally, we express our gratitude to the DINUM for their financial and strategic support through the AIC, Etalab, and the Legal Service. Special thanks also go to the Mission StratΓ©gie Prospective (MSP) for their guidance and collaboration.

The Pyro-SDIS Subset contains 33,636 images, including:

  • 28,103 images with smoke
  • 31,975 smoke instances

This dataset is formatted to be compatible with the Ultralytics YOLO framework, enabling efficient training of object detection models.


Stay tuned for the full release in January 2025, which will include additional images and refined annotations. Thank you for your interest and support in advancing wildfire detection technologies!

Dataset Overview

Contents

The Pyro-SDIS Subset contains images and annotations for wildfire smoke detection. The dataset is structured with the following metadata for each image:

  • Image Path: File path to the image.
  • Annotations: YOLO-format bounding box annotations for smoke detection:
    • class_id: Class label (e.g., smoke).
    • x_center, y_center: Normalized center coordinates of the bounding box.
    • width, height: Normalized width and height of the bounding box.
  • Metadata:
    • partner: Partner organization responsible for the camera (e.g., SDIS 07, Force 06).
    • camera: Camera identifier.
    • date: Date of image capture (formatted as YYYY-MM-DDTHH-MM-SS).
    • image_name: Original file name of the image.
  • Split: Indicates whether the image belongs to the training or validation set (train or val).

Example Record

Each record in the dataset contains the following structure:

{
  "image": "./images/train/partner_camera_date.jpg",
  "annotations": "0 0.5 0.5 0.1 0.2",
  "split": "train",
  "image_name": "partner_camera_date.jpg",
  "partner": "partner",
  "camera": "camera",
  "date": "YYYY-MM-DDTHH-MM-SS"
}

Let me know if you’d like further refinements or if you want me to include specific numbers/statistics for the dataset.

Splits

The dataset is divided into:

  • Training split: Used for training the model.
  • Validation split: Used to evaluate model performance.

Exporting the Dataset for Ultralytics Training

To train a YOLO model using the Ultralytics framework, the dataset must be structured as follows:

  • Images: Stored in images/train/ and images/val/ directories.
  • Annotations: Stored in YOLO-compatible format in labels/train/ and labels/val/ directories.

Steps to Export the Dataset

  1. Install Required Libraries:

    pip install datasets ultralytics
    
  2. Define Paths: Set up the directory structure for the Ultralytics dataset:

    import os
    from datasets import load_dataset
    
    # Define paths
    REPO_ID = "pyronear/pyro-sdis"
    OUTPUT_DIR = "./pyro-sdis"
    IMAGE_DIR = os.path.join(OUTPUT_DIR, "images")
    LABEL_DIR = IMAGE_DIR.replace("images", "labels")
    
    # Create the directory structure
    for split in ["train", "val"]:
        os.makedirs(os.path.join(IMAGE_DIR, split), exist_ok=True)
        os.makedirs(os.path.join(LABEL_DIR, split), exist_ok=True)
    
    # Load the dataset from the Hugging Face Hub
    dataset = load_dataset(REPO_ID)
    
  3. Export Dataset: Use the following function to save the dataset in Ultralytics format:

    def save_ultralytics_format(dataset_split, split):
        """
        Save a dataset split into the Ultralytics format.
        Args:
            dataset_split: The dataset split (e.g., dataset["train"])
            split: "train" or "val"
        """
        for example in dataset_split:
            # Save the image to the appropriate folder
            image = example["image"]  # PIL.Image.Image
            image_name = example["image_name"]  # Original file name
            output_image_path = os.path.join(IMAGE_DIR, split, image_name)
    
            # Save the image object to disk
            image.save(output_image_path)
    
            # Save label
            annotations = example["annotations"]
            label_name = image_name.replace(".jpg", ".txt").replace(".png", ".txt")
            output_label_path = os.path.join(LABEL_DIR, split, label_name)
            
            with open(output_label_path, "w") as label_file:
                label_file.write(annotations)
    
    # Save train and validation splits
    save_ultralytics_format(dataset["train"], "train")
    save_ultralytics_format(dataset["val"], "val")
    
    print("Dataset exported to Ultralytics format.")
    
  4. Directory Structure: After running the script, the dataset will have the following structure:

    pyro-sdis/
    β”œβ”€β”€ images/
    β”‚   β”œβ”€β”€ train/
    β”‚   β”œβ”€β”€ val/
    β”œβ”€β”€ labels/
    β”‚   β”œβ”€β”€ train/
    β”‚   β”œβ”€β”€ val/
    

Training with Ultralytics YOLO

  1. Download the data.yaml File: Use the following code to download the configuration file:

     from huggingface_hub import hf_hub_download
     
     # Correctly set repo_id and repo_type
     repo_id = "pyronear/pyro-sdis"
     filename = "data.yaml"
     
     # Download data.yaml to the current directory
     yaml_path = hf_hub_download(repo_id=repo_id, filename=filename, repo_type="dataset", local_dir=".")
     print(f"data.yaml downloaded to: {yaml_path}")
    
  2. Train the Model: Install the Ultralytics YOLO framework and train the model:

    pip install ultralytics
    yolo task=detect mode=train data=data.yaml model=yolov8n.pt epochs=50 imgsz=640 single_cls=True
    

License

The dataset is released under the Apache-2.0 License.

Citation

If you use this dataset, please cite:

@dataset{pyro-sdis,
  author = {Pyronear Team},
  title = {Pyro-SDIS Dataset},
  year = {2024},
  publisher = {Hugging Face},
  url = {https://huggingface.co/pyronear/pyro-sdis}
}
Downloads last month
2,179

Spaces using pyronear/pyro-sdis 24