html_url
stringlengths 51
51
| title
stringlengths 6
280
| comments
stringlengths 63
141k
| body
stringlengths 18
58.6k
⌀ | comment_length
int64 16
10.8k
| text
stringlengths 6
280
| embeddings
listlengths 768
768
|
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
Well I just sharded the original commonVoice dataset and pushed a small chunk of it in a private rep
What did go wrong?
Holen Sie sich Outlook für iOS<https://aka.ms/o0ukef>
________________________________
Von: Quentin Lhoest ***@***.***>
Gesendet: Tuesday, November 22, 2022 3:03:40 PM
An: huggingface/datasets ***@***.***>
Cc: capsabogdan ***@***.***>; Author ***@***.***>
Betreff: Re: [huggingface/datasets] Bug in downloading common_voice data and snall chunk of it to one's own hub (Issue #5276)
Sounds like one of the file is not a valid one, can you make sure you uploaded valid mp3 files ?
—
Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/5276#issuecomment-1323727434>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALSIFOAPAL2V4TBJTSPMAULWJTHDZANCNFSM6AAAAAASHQJ63U>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 112 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
It should be all good then !
Could you share a link to your repository for me to investigate what went wrong ?
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 23 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
https://huggingface.co/datasets/DTU54DL/common-voice-test16k
Am Di., 22. Nov. 2022 um 16:43 Uhr schrieb Quentin Lhoest <
***@***.***>:
> It should be all good then !
> Could you share a link to your repository for me to investigate what went
> wrong ?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5276#issuecomment-1323876682>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOEUJRZWXAM7DYA5VJDWJTS3NANCNFSM6AAAAAASHQJ63U>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 76 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
I see ! This is a bug with MP3 files.
When we store audio data in parquet, we store the bytes and the file name. From the file name extension we know if it's a WAV, an MP3 or else. But here it looks like the paths are all None.
It looks like it comes from here:
https://github.com/huggingface/datasets/blob/7feeb5648a63b6135a8259dedc3b1e19185ee4c7/src/datasets/features/audio.py#L212
Cc @polinaeterna maybe we should simply put the file name instead of None values ?
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 73 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
@lhoestq I remember we wanted to avoid storing redundant data but maybe it's not that crucial indeed to store one more string value.
Or we can store paths only for mp3s, considering that for other formats we don't have such a problem with reading from bytes without format specified.
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 49 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
thanks for the help!
can I do anything on my side? we are doing a DL project and we need the
data really quick.
thanks
bogdan
> Message ID: ***@***.***>
>
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 31 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
I opened a pull requests here: https://github.com/huggingface/datasets/pull/5285, we'll do a new release soon with this fix.
Otherwise if you're really in a hurry you can install `datasets` from this PR
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 30 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
any idea on what's going wrong here?
thanks
Am So., 27. Nov. 2022 um 13:53 Uhr schrieb Bogdan Capsa <
***@***.***>:
> [image: image.png]
>
>> Message ID: ***@***.***>
>>
>
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 31 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
I have attached this screenshot above . can u pls help? So can not pip from pull request

|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 19 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
The pull request has been merged on `main`.
You can install `datasets` from `main` using
```
pip install git+https://github.com/huggingface/datasets.git
```
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 20 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
I've tried to load this dataset DTU54DL/common-voice-test16k, but am
getting the same error.
So the bug fix will fix only if I upload a new dataset, or also loading
previously uploaded datasets?
thanks
Am Mo., 28. Nov. 2022 um 19:51 Uhr schrieb Quentin Lhoest <
***@***.***>:
> The pull request has been merged on main.
> You can install datasets from main using
>
> pip install git+https://github.com/huggingface/datasets.git
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5276#issuecomment-1329587334>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOCNYYIGHM2EX3ZIO6DWKT5MXANCNFSM6AAAAAASHQJ63U>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 103 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
> So the bug fix will fix only if I upload a new dataset, or also loading
previously uploaded datasets?
You have to reupload the dataset, sorry for the inconvenience
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 30 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5276
|
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
thank you so much for the help! works like a charm!
Am Di., 29. Nov. 2022 um 12:15 Uhr schrieb Quentin Lhoest <
***@***.***>:
> So the bug fix will fix only if I upload a new dataset, or also loading
> previously uploaded datasets?
>
> You have to reupload the dataset, sorry for the inconvenience
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5276#issuecomment-1330468393>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOBKEFZO57BAKY4IGW3WKXQUZANCNFSM6AAAAAASHQJ63U>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
| 92 |
Bug in downloading common_voice data and snall chunk of it to one's own hub
|
[
-0.333806574344635,
-0.4068261981010437,
-0.030733244493603706,
0.17030298709869385,
0.04294775798916817,
-0.11819329857826233,
0.15857435762882233,
0.23961417376995087,
-0.057388607412576675,
0.2019980400800705,
-0.5687484741210938,
0.003013934940099716,
0.1325712651014328,
-0.20456798374652863,
-0.16953136026859283,
0.3354712128639221,
-0.06775226444005966,
0.11949065327644348,
0.14377637207508087,
-0.41616174578666687,
0.015325687825679779,
0.2636391818523407,
0.06945379823446274,
0.2969495952129364,
-0.22717413306236267,
0.09442458301782608,
0.11418115347623825,
0.3686072826385498,
-0.069365493953228,
0.0037358454428613186,
0.11759065836668015,
0.2548608183860779,
-0.1357107013463974,
0.2890900671482086,
-0.00010703741281758994,
-0.17556419968605042,
0.18210777640342712,
0.07114510238170624,
-0.11089995503425598,
0.32302165031433105,
-0.16119173169136047,
0.4232226312160492,
-0.24489779770374298,
0.029462607577443123,
0.2569620907306671,
0.4446161985397339,
0.028404364362359047,
0.1178877130150795,
0.20760686695575714,
0.22411394119262695,
0.22044217586517334,
0.09161943197250366,
-0.19082039594650269,
-0.06767328828573227,
0.3397628962993622,
-0.19615548849105835,
0.09635119140148163,
0.4030502140522003,
0.19247378408908844,
0.2401227355003357,
0.22798913717269897,
0.2386896312236786,
-0.18775413930416107,
-0.2043893039226532,
-0.4155650734901428,
0.03938361257314682,
-0.20179781317710876,
-0.19958332180976868,
0.20111273229122162,
0.06501730531454086,
0.2590469717979431,
-0.2034209817647934,
0.031367912888526917,
-0.08503088355064392,
-0.06033850833773613,
-0.141076922416687,
0.15154683589935303,
0.07452445477247238,
-0.1567039042711258,
0.22517803311347961,
0.18225808441638947,
-0.2133113294839859,
-0.052712034434080124,
-0.062354713678359985,
-0.1985507309436798,
0.02882177196443081,
-0.01856081187725067,
-0.0021667201071977615,
-0.17136099934577942,
0.16963809728622437,
0.19682808220386505,
-0.09300693869590759,
-0.16427898406982422,
0.11820335686206818,
-0.2092064917087555,
-0.13736601173877716,
0.09250248968601227,
-0.1304117739200592,
0.12304797023534775,
0.02922506257891655,
0.3699449598789215,
0.32355186343193054,
-0.3702148497104645,
-0.055315930396318436,
0.19393491744995117,
-0.09071524441242218,
-0.12808528542518616,
0.09154192358255386,
0.38948675990104675,
0.051957666873931885,
0.12135946750640869,
0.09202802181243896,
-0.25750306248664856,
0.34642189741134644,
-0.09039237350225449,
0.023854844272136688,
0.01325614657253027,
-0.36074957251548767,
-0.2897587716579437,
0.0973925068974495,
0.14187194406986237,
0.44266873598098755,
-0.028112154453992844,
0.27326837182044983,
-0.056998953223228455,
0.10329706966876984,
-0.11098632961511612,
0.24296215176582336,
-0.20914345979690552,
0.05967772752046585,
-0.2836272418498993,
-0.07925502210855484,
0.3202616274356842,
-0.11763428896665573,
0.113370381295681,
-0.025238551199436188,
0.0556056909263134,
-0.05634155124425888,
0.15625852346420288,
-0.2538608908653259,
-0.22151188552379608,
0.09460153430700302,
-0.20831283926963806,
0.09352561086416245,
0.12482819706201553,
0.4389822781085968,
-0.197339728474617,
0.244019016623497,
-0.16575689613819122,
0.0868450254201889,
-0.4991910755634308,
-0.4141375720500946,
0.1253092885017395,
0.2255331575870514,
-0.03406169265508652,
0.05093984678387642,
0.2796758711338043,
-0.05062253773212433,
0.13821707665920258,
-0.4813660979270935,
0.10162085294723511,
0.08660051971673965,
-0.11266997456550598,
-0.10355190187692642,
-0.09299907088279724,
0.08876053988933563,
-0.03450838848948479,
-0.059271588921546936,
-0.07759807258844376,
-0.10626083612442017,
0.24494783580303192,
0.2943403720855713,
0.054599978029727936,
-0.04487766698002815,
-0.3041992783546448,
0.9605340361595154,
0.22236502170562744,
-0.6845343708992004,
-0.7364930510520935,
0.24898460507392883,
-0.36954692006111145,
-0.049480218440294266,
0.07632426172494888,
0.020925451070070267,
0.029797174036502838,
-0.08318036049604416,
0.35471364855766296,
0.34172528982162476,
0.2764958441257477,
0.17131151258945465,
-0.27988287806510925,
-0.06409379094839096,
-0.6514257788658142,
0.012347058393061161,
0.005429279059171677,
0.08160452544689178,
0.2911992073059082,
0.3990948796272278,
0.5004373788833618,
-0.05614161118865013,
0.44467392563819885,
-0.02510038949549198,
0.23301295936107635,
-0.5759893655776978,
0.019887402653694153,
-0.022553108632564545,
-0.16124989092350006,
-0.0272559504956007,
-0.3182968497276306,
0.06258270144462585,
0.1392144113779068,
-0.20539462566375732,
-0.4334065020084381,
-0.15345536172389984,
0.02596803940832615,
0.1763593852519989,
0.1741022914648056,
0.001855208771303296,
-0.0764172375202179,
-0.14347614347934723,
0.11450276523828506,
0.31480905413627625,
0.14789965748786926,
0.03197162598371506,
-0.040404826402664185,
0.24625948071479797,
-0.10866933315992355,
-0.162858784198761,
0.18938297033309937,
0.13937044143676758,
0.17930638790130615,
0.13686005771160126,
-0.08831562101840973,
0.23279309272766113,
-0.2197628915309906,
0.577121376991272,
-0.34262365102767944,
-0.26588305830955505,
0.273169606924057,
-0.0638694316148758,
0.3099566102027893,
0.08570810407400131,
0.20125678181648254,
-0.23577333986759186,
-0.029405035078525543,
-0.009303947910666466,
0.014044801704585552,
-0.0763377845287323,
-0.02961074560880661,
-0.01042699534446001,
0.007521938532590866,
-0.13956737518310547,
0.11750416457653046,
-0.022816110402345657,
0.1161789670586586,
0.14417284727096558,
0.1402304619550705,
-0.04080132767558098,
-0.2839277982711792,
0.27465710043907166,
0.3820197284221649,
-0.1157260313630104,
0.24453561007976532,
-0.006191871128976345,
-0.08645007759332657,
-0.16706041991710663,
0.2634217441082001,
-0.0883256122469902,
0.2419799566268921,
-0.014341200701892376,
0.38433486223220825,
0.24658645689487457,
0.134312242269516,
-0.37298429012298584,
0.011382777243852615,
-0.0330190509557724,
-0.2733302712440491,
0.4713955223560333,
0.0558897890150547,
-0.03209224343299866,
-0.34260129928588867,
-0.04471682012081146,
-0.041442181915044785,
-0.16175775229930878,
-0.19720785319805145,
-0.23835855722427368,
-0.05764155462384224,
0.28483644127845764,
0.1741713434457779,
-0.14315132796764374,
0.003130339551717043,
-0.2786747217178345,
0.2664776146411896,
0.3661394715309143,
-0.27599823474884033,
-0.11131856590509415,
0.08671487867832184,
0.19719497859477997,
0.07951579242944717,
0.024934880435466766,
-0.08292757719755173,
0.08265690505504608,
-0.22539310157299042,
0.13411061465740204,
-0.16265158355236053,
0.3174515664577484,
-0.2251809537410736,
-0.11248624324798584,
0.22854216396808624,
0.150409534573555,
0.10093458741903305,
0.25399264693260193,
0.06656749546527863,
-0.1983414739370346,
-0.06296328455209732,
-0.14886002242565155,
-0.09998860210180283,
0.01969282329082489,
-0.17631106078624725,
-0.19542816281318665,
-0.1415642350912094,
0.1395231932401657,
0.05696083977818489,
0.06707748770713806,
-0.23087121546268463,
-0.21564018726348877,
-0.45061469078063965,
-0.41012343764305115,
0.23457041382789612,
-0.09178449213504791,
0.3423067629337311,
0.043210625648498535,
-0.06778278946876526,
-0.20977431535720825,
-0.14392700791358948,
0.08008352667093277,
-0.431406170129776,
0.009983856230974197,
0.2713039219379425,
-0.29100853204727173,
-0.3003098666667938,
-0.04342414811253548,
0.02190336398780346,
0.47410404682159424,
-0.017113124951720238,
-0.4066982865333557,
0.000578484614379704,
0.046772491186857224,
0.16196654736995697,
0.02370036393404007,
-0.11225716024637222,
0.3068639039993286,
-0.05570505931973457,
-0.13814708590507507,
-0.0601980946958065,
0.2332860231399536,
-0.19035707414150238,
0.5604894757270813,
-0.2662440538406372,
-0.15365882217884064,
-0.16732443869113922,
-0.06927116960287094,
0.4075325131416321,
0.18963231146335602,
0.5178688764572144,
0.30560100078582764,
-0.06783830374479294,
0.07533575594425201,
-0.11605310440063477,
0.12283603101968765,
0.367950439453125,
0.07639036327600479,
-0.1708679050207138,
0.5912085175514221,
0.18099181354045868,
-0.052521057426929474,
-0.09765171259641647,
-0.4048169255256653,
-0.0609566867351532,
-0.3965451717376709,
-0.0006150660337880254,
0.11850317567586899,
-0.31744304299354553,
0.3955304026603699,
0.15286874771118164,
0.06259748339653015,
-0.3183518052101135,
0.32244205474853516,
-0.27809959650039673,
-0.24917101860046387,
-0.08912892639636993,
-0.21568970382213593,
-0.2833162248134613,
-0.39326590299606323,
-0.010761192068457603,
0.010584737174212933,
0.21688060462474823,
-0.06255707889795303,
-0.12849684059619904,
0.014631429687142372,
-0.10719738155603409,
-0.020194116979837418,
-0.043696802109479904,
0.19963237643241882,
-0.12150471657514572,
0.5404013991355896,
-0.25767165422439575,
-0.0693364366889,
-0.14557190239429474,
0.08164402842521667,
0.021961284801363945,
-0.04578496143221855,
-0.3172961473464966,
0.3131905794143677,
-0.1494714915752411,
0.08599531650543213,
0.061897315084934235,
0.10953573882579803,
-0.01081389281898737,
-0.3134628236293793,
-0.5334519147872925,
0.1397838294506073,
0.06944482028484344,
0.04505316540598869,
-0.5639523863792419,
-0.11664297431707382,
0.5081366300582886,
0.06418322771787643,
0.09678935259580612,
-0.09349749982357025,
0.14239290356636047,
-0.03774668276309967,
0.2956940829753876,
0.04924311116337776,
0.06006640940904617,
-0.28895506262779236,
0.7888662815093994,
0.5272179245948792,
0.1520387828350067,
0.1395523101091385,
-0.25767287611961365,
0.012711402960121632,
0.5340608358383179,
0.06828334182500839,
0.0012578769819810987,
0.07709264010190964,
-0.041633058339357376,
0.08529237657785416,
0.15882501006126404,
0.04361306503415108,
-0.11284667253494263,
-0.12475280463695526,
0.27472618222236633,
0.2358754724264145,
0.05160367861390114,
-0.2581058442592621,
0.09261251986026764,
-0.0922718346118927,
-0.11263783276081085,
0.16659274697303772,
-0.45629388093948364,
0.7470259070396423,
0.6057650446891785,
0.28935277462005615,
0.32708707451820374,
-0.015689672902226448,
-0.10117652267217636,
-0.3354445695877075,
0.009875725023448467,
-0.04913162440061569,
0.1086062341928482,
0.0517902597784996,
0.07173854112625122,
-0.2764909863471985,
0.18012185394763947,
-0.24148623645305634,
0.06249485909938812,
-0.03573441877961159,
0.41484883427619934,
0.03726108372211456,
-0.04246344789862633,
-0.369038462638855,
-0.26797839999198914,
0.2936094403266907,
0.1563536524772644,
0.14638091623783112,
0.5108742713928223,
-0.00048704605433158576,
-0.15518072247505188,
-0.3208995461463928,
-0.3903907537460327,
-0.05144428089261055,
0.4444258213043213,
0.3015992045402527,
-0.23513449728488922,
-0.11169420927762985,
0.1388845592737198,
-0.1943179816007614,
-0.27991268038749695,
0.14454226195812225,
0.39147794246673584,
-0.33635368943214417,
0.20141880214214325,
0.055064745247364044,
0.1443088948726654,
0.15918612480163574,
-0.10303854942321777,
-0.10738612711429596,
-0.188127800822258,
-0.3337085545063019,
0.24268324673175812,
0.02053375169634819,
0.007986029610037804,
-0.2017115354537964,
0.03365977481007576,
0.082535021007061,
-0.23154142498970032,
0.0831010714173317,
0.21346083283424377,
-0.0863744243979454,
-0.16041430830955505,
0.19004888832569122,
0.20859526097774506,
-0.20492660999298096,
0.32977455854415894,
0.1445956975221634,
-0.19032210111618042,
-0.28648829460144043,
0.6360468864440918,
0.2805609107017517,
-0.4243294596672058,
0.3960588872432709,
-0.3599148690700531,
-0.1553400754928589,
-0.29322490096092224,
-0.18544279038906097,
0.17743822932243347,
-0.35783013701438904,
0.009496061131358147,
-0.5514694452285767,
-0.4465976357460022,
-0.18715693056583405,
0.133459210395813,
0.10598338395357132,
0.26313456892967224,
-0.08655170351266861,
-0.2244565635919571,
-0.29349470138549805,
-0.007941118441522121,
0.31867194175720215,
0.04194119572639465,
-0.3146211504936218,
-0.11775006353855133,
-0.0303465835750103,
0.12577664852142334,
-0.3712933361530304,
0.09185273945331573,
-0.1117951050400734,
0.043518584221601486,
-0.3190830945968628,
-0.1561780571937561,
0.11161163449287415,
-0.09162633121013641,
0.18850897252559662,
0.21311244368553162,
-0.17292222380638123,
-0.23458042740821838,
-0.15048304200172424,
0.09908605366945267,
0.16630801558494568,
-0.06739886105060577,
0.09860580414533615,
0.2471725046634674,
-0.18249446153640747,
0.1673785150051117,
0.314849853515625,
0.1243528202176094,
0.11260780692100525,
-0.4003368318080902,
0.2971266806125641,
0.1595325469970703,
0.040095455944538116,
0.315177857875824,
0.0011840208899229765,
0.4208292067050934,
-0.3964267075061798,
0.24739332497119904,
-0.33101609349250793,
-0.20443449914455414,
0.3703618347644806,
0.02986323833465576,
0.4527535140514374,
0.17185409367084503,
0.15426775813102722,
-0.3743669390678406,
-0.1021416038274765,
0.13952630758285522,
0.2738334834575653,
0.43368321657180786,
-0.2911814749240875,
-0.207794651389122,
-0.008601225912570953,
0.24864056706428528,
-0.008255425840616226,
-0.18393172323703766,
0.08362414687871933,
-0.3977019488811493,
0.06388525664806366,
-0.11084503680467606,
0.43034476041793823,
-0.3912036120891571,
0.042740415781736374,
0.1484019160270691,
0.2942802906036377,
0.013858495280146599,
-0.2533847987651825,
0.07916036248207092,
-0.28878727555274963,
0.20981861650943756,
0.26450005173683167,
-0.08980800211429596,
0.16861198842525482,
0.542174756526947,
-0.3886217176914215,
0.00224930583499372,
0.20744602382183075,
0.1024162694811821,
0.29818227887153625,
-0.4218769967556,
-0.20211751759052277,
-0.011668604798614979,
-0.23272742331027985,
0.10589059442281723,
0.18541567027568817,
0.0649910718202591,
-0.3229513168334961,
-0.03608398512005806,
-0.27292728424072266,
0.08529049158096313,
-0.22742749750614166,
-0.1826009601354599,
-0.25755736231803894,
-0.18452395498752594,
-0.20780250430107117,
-0.012081813998520374,
-0.04993593320250511,
-0.09115105122327805,
0.22312715649604797,
-0.13256558775901794,
-0.1513078361749649,
0.02793816849589348,
-0.2849732041358948,
-0.2023925483226776,
-0.04431772977113724,
-0.2906108796596527,
0.2820834815502167,
-0.10793417692184448,
-0.020958196371793747,
0.3957675099372864,
0.03602483868598938,
0.24650901556015015,
0.044680774211883545,
-0.1389540284872055,
0.16328731179237366,
0.21888650953769684,
-0.08365607261657715,
-0.012657719664275646,
0.23599988222122192,
0.2557033598423004,
0.30178216099739075,
0.2227933555841446,
0.15452009439468384,
-0.3134390711784363,
-0.030584504827857018,
0.1753801852464676,
-0.08494856208562851,
-0.011970668099820614,
0.2140945941209793,
-0.2587261497974396,
-0.1972450315952301,
-0.19745437800884247,
-0.2619875371456146,
-0.3350681662559509,
-0.08734967559576035,
0.33154749870300293,
-0.07969055324792862,
0.26713481545448303,
-0.2460372895002365,
0.09764476120471954,
-0.026067262515425682,
0.32117748260498047,
0.03333092853426933,
0.050499968230724335,
0.043474193662405014,
0.05500722676515579,
-0.1935589611530304,
0.6046104431152344,
0.061896782368421555,
-0.05033048614859581,
-0.33726704120635986,
0.17222747206687927,
-0.06278131902217865,
0.2710738480091095,
-0.14723944664001465,
-0.040726013481616974,
-0.16549097001552582,
-0.0305897518992424,
-0.02204436995089054,
-0.0336076095700264,
0.29798856377601624,
0.19931571185588837,
0.06361521035432816,
-0.5828980803489685,
0.5204647779464722,
0.010200894437730312,
0.14767570793628693,
0.145903542637825,
-0.2683491110801697,
-0.028657203540205956,
-0.24900871515274048,
0.41884034872055054,
-0.07624038308858871,
0.2638559639453888,
-0.28303438425064087,
-0.026583757251501083,
-0.14748044312000275,
-0.09867304563522339,
0.016784587875008583,
-0.38242536783218384,
-0.005339985713362694,
0.11167643219232559,
0.30019843578338623,
0.35931605100631714,
0.014698986895382404,
-0.10664987564086914,
0.20912763476371765,
0.12629424035549164,
0.2805396616458893,
0.09098657220602036,
-0.4204946458339691,
0.14293652772903442,
-0.023720741271972656,
0.04651645943522453,
-0.11679917573928833,
-0.10214875638484955,
-0.10636817663908005,
-0.6517386436462402,
0.5167625546455383,
0.14243444800376892,
-0.164845272898674,
-0.33894965052604675,
0.3112427294254303,
-0.03777828440070152,
-0.156244158744812,
0.1288357973098755,
0.2612451910972595,
0.18436112999916077,
-0.32196804881095886,
-0.0827866867184639,
-0.05719960108399391,
0.07723724842071533,
-0.3215683102607727,
-0.032337114214897156,
0.585117757320404,
0.42916491627693176,
-0.25582680106163025,
0.2870727479457855,
-0.25800102949142456
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
@huggingface/datasets if you agree, I can make the bulk edit on the Hub to fix integer keys into strings.
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 19 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
FYI there are still 2k+ weekly users on `datasets` 2.6.1 which doesn't support the string label format for class labels. And among those, some are using datasets with class labels like imdb (60 users), conllpp (40), msra_ner (40), peoples_daily_enr (40), weibo_ner (30), conll2003 (20), etc. And renaming to string would break these users code.
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 54 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
but isn't `datasets 2.6.1` downloading files from the Hub with the corresponding tag? I thought we had something like this before
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 21 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
We're using `main` as models do. Some datasets need to be updated from time to time, e.g. when a link to download the data is dead.
But yea a year ago we had those tags, we just ended up not using them
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 42 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
I opened https://github.com/huggingface/datasets/issues/5406 to communicate on this. Let me know what you think, and if it sounds good to you I can pin this issue
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 25 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
So, is it OK to make the bulk edit on the Hub now or should we wait longer? If the latter, how long?
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 23 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
I think we can do it. If you want to be extra cautious you can do it for all datasets except imdb and conllpp for now which are actively used by 2.6.1 users. For those two we can keep the YAML like this for some more time, or alternatively use the old dataset_infos.json file
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 54 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
The bulk edit of canonical datasets (except imdb and conllpp) is running.
See e.g.: https://huggingface.co/datasets/acronym_identification/discussions/3
EDITED:
Done, except for "universal_morphologies", where I get
```
HTTPError: 413 Client Error: Payload Too Large for url: https://huggingface.co/api/validate-yaml
```
Also not done for the datasets missing matadata "dataset_info":
- mc4: https://huggingface.co/datasets/mc4/discussions/3
- the_pile: https://huggingface.co/datasets/the_pile/discussions/6
- timit_asr: https://huggingface.co/datasets/timit_asr/discussions/1
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 53 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
@lhoestq, there are 6 community datasets with YAML integer keys in their `dataset_info` `class_label`:
- indonlp/indonlu
- rcds/swiss_judgment_prediction
- Jean-Baptiste/wikiner_fr
- Bingsu/Cat_and_Dog
- taskydata/tasky_or_not
- RCC-MSU/collection3
Maybe we could open a PR on them as well?
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 36 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
Let's do this then:
- [x] [indonlp/indonlu](https://huggingface.co/datasets/indonlp/indonlu/discussions/3)
- [x] rcds/swiss_judgment_prediction
- [x] Jean-Baptiste/wikiner_fr
- [x] Bingsu/Cat_and_Dog -> merged
- [x] taskydata/tasky_or_not (was already using quotes)
- [x] RCC-MSU/collection3
EDIT: all done :)
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 32 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5275
|
YAML integer keys are not preserved Hub server-side
|
@lhoestq I was not asking you to do it, but asking if you agree me to do it... :man_facepalming:
As I self-assigned this issue... :sweat_smile:
|
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
| 25 |
YAML integer keys are not preserved Hub server-side
|
[
-0.1430628001689911,
-0.4222528338432312,
0.014596860855817795,
0.20244213938713074,
0.28198298811912537,
-0.04618489369750023,
0.45588377118110657,
-0.007883376441895962,
0.17803829908370972,
0.24093657732009888,
0.0203052069991827,
0.262611448764801,
-0.007315122056752443,
0.03193837031722069,
0.04554922506213188,
0.5905369520187378,
0.11371636390686035,
0.03536461666226387,
-0.2578032314777374,
-0.24026252329349518,
-0.1359989494085312,
0.07651612162590027,
0.010242372751235962,
0.03244837000966072,
-0.2532517910003662,
0.17481590807437897,
0.0016130736330524087,
0.30221807956695557,
-0.09339512884616852,
0.018625039607286453,
-0.07174120098352432,
-0.1288469135761261,
-0.2590876519680023,
-0.45559486746788025,
-0.00011637723946478218,
-0.017480526119470596,
0.2041742205619812,
-0.14130495488643646,
-0.2576824724674225,
0.5423917174339294,
-0.14135894179344177,
-0.18063253164291382,
-0.31730905175209045,
-0.28150761127471924,
0.00862159114331007,
0.23156362771987915,
-0.14693062007427216,
0.04144864156842232,
0.19424587488174438,
-0.12997208535671234,
0.14965379238128662,
0.024219036102294922,
0.051056958734989166,
0.09354035556316376,
0.1682693511247635,
0.19463978707790375,
0.00006203580414876342,
-0.13105985522270203,
0.12201809138059616,
0.12198065221309662,
-0.14281249046325684,
0.15372052788734436,
0.11396753787994385,
-0.35664230585098267,
-0.16084067523479462,
0.0036282241344451904,
0.38686731457710266,
0.19425399601459503,
0.1772017627954483,
-0.21462123095989227,
0.13635700941085815,
-0.2550489902496338,
0.1178339272737503,
0.03356329724192619,
-0.18110202252864838,
0.17321042716503143,
0.11903535574674606,
0.13481712341308594,
0.1322423666715622,
0.11581100523471832,
-0.044043030589818954,
-0.5080622434616089,
-0.10506986081600189,
0.04028461501002312,
-0.08731202781200409,
0.16708196699619293,
0.19662383198738098,
0.10927243530750275,
-0.3829939663410187,
0.16427186131477356,
0.4627716839313507,
-0.16487111151218414,
-0.032541509717702866,
-0.07079794257879257,
0.44210684299468994,
-0.06946961581707001,
-0.123268261551857,
0.4219360947608948,
0.348097026348114,
-0.06454881280660629,
0.15437445044517517,
0.5401558876037598,
0.12300818413496017,
-0.04246989265084267,
0.06548705697059631,
0.13384588062763214,
0.6158642172813416,
0.29870840907096863,
0.4036642611026764,
0.22523580491542816,
-0.0017352185677736998,
0.05216464772820473,
0.10536449402570724,
0.12819385528564453,
0.4915943145751953,
0.15413859486579895,
0.26731806993484497,
0.12147526443004608,
0.22653710842132568,
0.1336943656206131,
0.16100119054317474,
0.11416756361722946,
0.2778627574443817,
0.15791432559490204,
0.08567313104867935,
0.05610566958785057,
-0.19875642657279968,
0.08490541577339172,
-0.27163609862327576,
-0.30142226815223694,
-0.3171014189720154,
0.05043213069438934,
0.20230232179164886,
-0.02598682790994644,
0.26368337869644165,
0.0255384910851717,
0.3779433071613312,
0.3544102907180786,
0.014618085697293282,
-0.05480394884943962,
-0.08832241594791412,
0.2061968892812729,
0.06420332938432693,
0.13572236895561218,
0.0599757581949234,
0.16213737428188324,
-0.12709900736808777,
-0.03537394106388092,
0.07315383851528168,
0.03320194035768509,
-0.26323172450065613,
-0.1785285621881485,
0.44393596053123474,
0.15492014586925507,
-0.1079210713505745,
0.057184845209121704,
0.053882382810115814,
-0.2553594410419464,
0.451244056224823,
0.07029615342617035,
0.35351911187171936,
-0.16304543614387512,
0.28895625472068787,
-0.1669394075870514,
-0.08337964862585068,
0.17042675614356995,
0.17114078998565674,
-0.14810341596603394,
0.2590397298336029,
-0.0013360196026042104,
0.11192300915718079,
-0.1153358444571495,
-0.038092806935310364,
-0.14355015754699707,
0.006140301935374737,
0.48409032821655273,
0.040283214300870895,
-0.7024787664413452,
-0.5364583134651184,
-0.20203211903572083,
0.19690029323101044,
-0.14173035323619843,
-0.008678636513650417,
0.022030729800462723,
0.7113296985626221,
-0.07810421288013458,
0.252511590719223,
-0.1585456132888794,
0.1781599372625351,
0.07941119372844696,
-0.3702179491519928,
0.062090035527944565,
-0.523979902267456,
-0.10881492495536804,
0.2686275839805603,
-0.14305613934993744,
0.4706856310367584,
0.7853837013244629,
0.0937504842877388,
-0.02796746790409088,
0.6096526384353638,
0.1177077442407608,
0.18568414449691772,
-0.050410784780979156,
0.2479000836610794,
0.32978108525276184,
-0.15644310414791107,
0.07809870690107346,
-0.38517317175865173,
-0.11263981461524963,
-0.11496926099061966,
-0.08429672569036484,
-0.13301967084407806,
0.19456125795841217,
-0.2194671928882599,
-0.01961776800453663,
0.1669728010892868,
-0.11815641820430756,
-0.12760013341903687,
0.1957923024892807,
0.05594169721007347,
0.2679252326488495,
0.16277804970741272,
0.05423324927687645,
-0.019135035574436188,
0.10753654688596725,
-0.08376356959342957,
-0.1148051992058754,
-0.18138280510902405,
0.19620491564273834,
0.19921116530895233,
-0.11676356196403503,
0.058316994458436966,
0.272476464509964,
0.0930352509021759,
0.0240296833217144,
0.0831378847360611,
-0.04608921334147453,
0.6204203367233276,
0.25530022382736206,
0.35433509945869446,
-0.26586610078811646,
-0.007900629192590714,
-0.0004024365625809878,
0.16847245395183563,
0.1612199991941452,
-0.13582654297351837,
-0.04440094158053398,
-0.180679053068161,
0.13782580196857452,
-0.0674496591091156,
-0.017705503851175308,
-0.2503302991390228,
-0.3852611482143402,
-0.08005727082490921,
-0.3673544228076935,
-0.339133083820343,
-0.06383057683706284,
0.09262893348932266,
0.39404118061065674,
0.6634119749069214,
-0.06332140415906906,
0.25534796714782715,
-0.12823164463043213,
-0.4257481098175049,
-0.0867108702659607,
0.15883614122867584,
-0.019281912595033646,
0.03567877784371376,
0.16737309098243713,
0.07918016612529755,
-0.13551664352416992,
-0.006045096088200808,
-0.2268427610397339,
0.2851083278656006,
0.024432003498077393,
0.02269403263926506,
0.2756304442882538,
0.2225201576948166,
-0.3504197597503662,
-0.33973076939582825,
0.5002356767654419,
0.34288454055786133,
-0.22272875905036926,
-0.339653342962265,
-0.186697855591774,
-0.43021246790885925,
0.37499046325683594,
0.16288669407367706,
-0.28791937232017517,
-0.09251407533884048,
-0.42661938071250916,
0.49507471919059753,
0.19931098818778992,
-0.08844397217035294,
0.010936226695775986,
0.18968984484672546,
-0.0700058788061142,
-0.027331503108143806,
-0.16710087656974792,
-0.2550073564052582,
-0.34866639971733093,
-0.07585451751947403,
-0.017622651532292366,
-0.18213266134262085,
-0.24588456749916077,
0.3046661615371704,
-0.08473203331232071,
0.039720319211483,
-0.32925981283187866,
-0.13881069421768188,
0.2552369236946106,
0.22380684316158295,
0.09548996388912201,
0.18361200392246246,
0.003368479898199439,
-0.24927273392677307,
0.1388751119375229,
0.33799228072166443,
-0.141499325633049,
-0.34122008085250854,
0.29811596870422363,
0.041565537452697754,
0.016818493604660034,
-0.3260544538497925,
-0.17883825302124023,
-0.02800232544541359,
-0.0701461061835289,
-0.23886725306510925,
0.12712419033050537,
0.06216884404420853,
-0.2370235025882721,
0.016066955402493477,
-0.4271305799484253,
-0.1427193135023117,
-0.06188756972551346,
-0.3799467980861664,
0.23291896283626556,
0.3608704209327698,
-0.3265231251716614,
-0.3274105191230774,
-0.07330162078142166,
-0.02609569951891899,
-0.006337891332805157,
-0.09976626187562943,
-0.23205824196338654,
-0.3096825182437897,
0.1306127905845642,
0.15473583340644836,
0.1446642130613327,
0.1779395043849945,
0.4309636652469635,
0.21246810257434845,
-0.08634810149669647,
-0.306291401386261,
0.1925431787967682,
0.3712541460990906,
0.09289481490850449,
0.35430580377578735,
-0.158827543258667,
0.0432182177901268,
0.10929934680461884,
0.24071389436721802,
-0.13854928314685822,
0.20765604078769684,
0.3101145327091217,
-0.1480829119682312,
-0.05681392177939415,
-0.176622673869133,
0.028893524780869484,
-0.32876184582710266,
-0.018460258841514587,
0.24993643164634705,
0.2055298537015915,
0.18751195073127747,
0.07903178036212921,
0.24269536137580872,
-0.48494580388069153,
-0.19275696575641632,
-0.5034785270690918,
-0.2195553481578827,
-0.2087613344192505,
-0.1488032341003418,
0.46683260798454285,
0.22941768169403076,
-0.2052321434020996,
-0.023024657741189003,
0.09857746213674545,
-0.09346453100442886,
-0.3591744899749756,
0.14764848351478577,
0.09487695246934891,
-0.13293904066085815,
-0.22815494239330292,
0.2391142100095749,
-0.21500717103481293,
0.18285977840423584,
0.13686946034431458,
-0.34443822503089905,
0.28537923097610474,
-0.36346492171287537,
0.3050001859664917,
-0.2021266669034958,
0.1269110143184662,
-0.22859658300876617,
-0.1829986423254013,
-0.22809885442256927,
-0.10183731466531754,
0.06081945076584816,
0.09088130295276642,
-0.1827496439218521,
0.5081859230995178,
-0.3629598617553711,
0.076128289103508,
-0.4546230137348175,
-0.12035750597715378,
-0.3625464141368866,
0.21390746533870697,
-0.2038727104663849,
-0.4309341609477997,
-0.34883230924606323,
-0.08401411026716232,
-0.16849087178707123,
0.08464401215314865,
0.12681923806667328,
-0.148857980966568,
-0.15152226388454437,
-0.29749923944473267,
-0.14576636254787445,
-0.02201702445745468,
0.25146281719207764,
-0.34618502855300903,
0.024515515193343163,
-0.1626700758934021,
0.46210840344429016,
0.1368890255689621,
-0.1949184238910675,
0.24589014053344727,
0.48119211196899414,
-0.020695045590400696,
-0.5655612945556641,
-0.14105282723903656,
0.12565907835960388,
-0.05024807155132294,
-0.053515344858169556,
-0.10578463971614838,
-0.12613371014595032,
0.04931365326046944,
-0.3296896517276764,
-0.3088068664073944,
-0.06677897274494171,
-0.01881161890923977,
0.29723286628723145,
0.23008953034877777,
-0.3008202314376831,
-0.2173408567905426,
-0.14204637706279755,
0.3102646470069885,
-0.361758828163147,
0.08159834146499634,
0.38867586851119995,
0.6217740774154663,
0.09148088097572327,
-0.003623055526986718,
0.024094639346003532,
-0.11672963947057724,
-0.09941675513982773,
-0.5202288627624512,
-0.08010930567979813,
-0.3450871706008911,
0.42810240387916565,
0.05118079483509064,
0.21705715358257294,
-0.07216769456863403,
-0.09462523460388184,
-0.22261889278888702,
-0.04644090309739113,
-0.1335289627313614,
0.3788546025753021,
-0.4036291539669037,
-0.18369661271572113,
-0.39025208353996277,
-0.14252382516860962,
0.293853223323822,
0.13604699075222015,
0.2588125765323639,
0.16379514336585999,
-0.14546485245227814,
-0.32891416549682617,
-0.27122461795806885,
-0.33274123072624207,
0.13388030230998993,
-0.12387558072805405,
0.01678682491183281,
0.24716274440288544,
0.016585443168878555,
0.04853234440088272,
-0.41852763295173645,
-0.1351846605539322,
0.6416314244270325,
0.04726601764559746,
-0.03578030690550804,
0.06608770787715912,
0.24297764897346497,
-0.13572406768798828,
0.002796752378344536,
0.1161804050207138,
-0.07970846444368362,
-0.22021909058094025,
-0.31515786051750183,
-0.19020728766918182,
0.05924977362155914,
-0.24069780111312866,
-0.20588001608848572,
-0.08333706110715866,
-0.16051293909549713,
-0.2819429636001587,
0.3061877191066742,
-0.07070113718509674,
-0.01733722724020481,
-0.3440321981906891,
0.0889570489525795,
-0.17665474116802216,
0.17933964729309082,
0.5399121046066284,
0.0920434296131134,
0.02974577061831951,
-0.09755143523216248,
0.288387268781662,
0.05383376404643059,
0.11310741305351257,
0.25114867091178894,
-0.3062536418437958,
-0.21024267375469208,
-0.3560611605644226,
0.24100568890571594,
0.12191078066825867,
-0.35545405745506287,
0.05783974379301071,
0.004114056006073952,
-0.5312682390213013,
0.16805028915405273,
0.18111906945705414,
-0.051950737833976746,
0.35155245661735535,
-0.2598993182182312,
-0.16835075616836548,
-0.35063570737838745,
0.31056520342826843,
0.2733100354671478,
-0.003023443277925253,
-0.00252149417065084,
-0.36608099937438965,
-0.12699192762374878,
0.019071659073233604,
-0.27615243196487427,
0.028101176023483276,
-0.09039943665266037,
0.2047489434480667,
-0.12291920185089111,
-0.10434646904468536,
-0.10058793425559998,
-0.05462374538183212,
0.17752324044704437,
0.07302368432283401,
0.05622295290231705,
-0.15492483973503113,
-0.07762166857719421,
0.1083613708615303,
-0.19773131608963013,
0.508965253829956,
-0.24286708235740662,
-0.08334716409444809,
0.05410066992044449,
0.048624515533447266,
0.1961919665336609,
0.10156815499067307,
-0.02395387552678585,
0.17857453227043152,
0.32486122846603394,
0.5699105262756348,
0.08778005093336105,
0.22751344740390778,
0.037329163402318954,
0.4371507465839386,
-0.4560275971889496,
0.03711315616965294,
-0.034909624606370926,
-0.1327623426914215,
-0.263327419757843,
0.25330737233161926,
0.05522553250193596,
-0.04225348308682442,
0.37502291798591614,
-0.0454707108438015,
0.18790575861930847,
0.2923316955566406,
0.07370532304048538,
-0.19166941940784454,
-0.19287362694740295,
-0.31583330035209656,
-0.17543822526931763,
0.22119387984275818,
-0.22721190750598907,
-0.1756608784198761,
-0.11713206022977829,
-0.2093118280172348,
-0.041533078998327255,
0.3153016269207001,
0.469844788312912,
-0.2767104208469391,
-0.05548186972737312,
0.18392957746982574,
0.35141444206237793,
-0.3246828317642212,
-0.2613008916378021,
0.518133819103241,
-0.3285757601261139,
0.15718543529510498,
0.15496791899204254,
-0.08927135169506073,
-0.11080881208181381,
0.5544682145118713,
-0.21045514941215515,
0.006910865660756826,
0.4552008807659149,
-0.059669915586709976,
0.08944518864154816,
0.3007664382457733,
0.1868961751461029,
0.20893825590610504,
0.3048563301563263,
0.01018348429352045,
0.18211494386196136,
0.3225560784339905,
0.37359678745269775,
0.05197499692440033,
-0.4303579032421112,
0.4509112238883972,
-0.16969013214111328,
-0.2325337678194046,
-0.2524363100528717,
-0.2326103150844574,
-0.10855621099472046,
-0.1559709906578064,
0.07309119403362274,
0.0882861390709877,
0.21126331388950348,
0.14529423415660858,
-0.12034151703119278,
0.028412651270627975,
0.5989220142364502,
-0.09692835807800293,
0.0052855354733765125,
-0.1612153947353363,
-0.07474088668823242,
0.29077959060668945,
0.08860033750534058,
-0.02810467593371868,
-0.32258766889572144,
0.08884696662425995,
-0.08077076077461243,
-0.22995804250240326,
0.39989200234413147,
0.022696377709507942,
-0.20890900492668152,
-0.21642734110355377,
0.20912037789821625,
0.3624720275402069,
0.10975421965122223,
0.1411667764186859,
0.07099858671426773,
-0.16592176258563995,
-0.12139381468296051,
0.3349922299385071,
-0.09994649887084961,
0.8343052268028259,
0.5159320831298828,
0.1434136927127838,
-0.32784098386764526,
0.009620260447263718,
-0.08722077310085297,
-0.03359045833349228,
-0.5290688276290894,
-0.0564703606069088,
-0.03891289234161377,
0.1846635639667511,
-0.43380188941955566,
0.07099391520023346,
-0.19381183385849,
0.23855456709861755,
-0.15523847937583923,
-0.6319767832756042,
0.06466178596019745,
0.10498787462711334,
-0.16895224153995514,
-0.004702978301793337,
-0.2302699238061905,
-0.49871116876602173,
-0.18961210548877716,
0.3156684935092926,
0.32153284549713135,
-0.10911768674850464,
0.04331741854548454,
-0.010496605187654495,
0.1356416642665863,
0.36919984221458435,
-0.004080628044903278,
0.4163515865802765,
0.5541731715202332,
0.10032746940851212,
0.0944046601653099,
-0.3236292004585266,
0.4624848961830139,
-0.30176249146461487,
0.15647001564502716,
0.1151365339756012,
0.30223849415779114,
0.20055025815963745,
-0.12552161514759064,
0.011487303301692009,
0.05798006057739258,
0.07709234207868576,
-0.32859498262405396,
0.28246060013771057,
-0.033124618232250214,
-0.12721717357635498,
0.0775064080953598,
-0.2651335895061493,
0.05130521580576897,
-0.2575705945491791,
0.08168978244066238,
-0.3480771481990814,
0.09374707192182541,
0.22362379729747772,
-0.06361246109008789,
0.07708621770143509,
-0.009776788763701916,
0.1314108967781067,
-0.08945625275373459,
-0.14125476777553558,
-0.008835384622216225,
0.06625030189752579,
0.010484504513442516,
-0.14763306081295013,
-0.15261076390743256,
-0.6085935831069946,
0.1541452705860138,
-0.05604143813252449,
-0.1803644299507141,
-0.1457587629556656,
0.4441049098968506,
0.19296014308929443,
-0.09756561368703842,
0.0017310280818492174,
0.016236022114753723,
0.1621166616678238,
-0.15924181044101715,
-0.3741984963417053,
0.46104300022125244,
0.3436964452266693,
-0.09943708032369614,
0.01630324125289917,
-0.13480553030967712,
0.03454602137207985,
0.16541488468647003,
-0.005136240739375353,
0.0018329225713387132
] |
https://github.com/huggingface/datasets/issues/5274
|
load_dataset possibly broken for gated datasets?
|
Btw, thanks very much for finding the hub rollback temporary fix and bringing the issue to our attention @KhoomeiK!
|
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
| 19 |
load_dataset possibly broken for gated datasets?
|
[
-0.6134456396102905,
0.13876403868198395,
-0.13353587687015533,
0.2112499475479126,
0.261823832988739,
-0.0352916419506073,
0.8927196860313416,
0.15922442078590393,
0.5084536671638489,
-0.12161698192358017,
-0.31658250093460083,
0.10621646791696548,
-0.05615757778286934,
0.46598726511001587,
-0.09058697521686554,
0.17812606692314148,
0.2234235405921936,
-0.015385911799967289,
-0.3836742341518402,
-0.11422280967235565,
-0.2242521196603775,
0.18603993952274323,
-0.32835233211517334,
0.07419871538877487,
-0.25605112314224243,
0.033075299113988876,
0.1158093735575676,
0.5218628644943237,
0.06492920964956284,
-0.017099888995289803,
0.3110398054122925,
0.38990262150764465,
0.08048318326473236,
0.3366941511631012,
-0.00010702236613724381,
0.07289056479930878,
0.0687304139137268,
-0.10304958373308182,
-0.3576889634132385,
0.11532788723707199,
-0.361736923456192,
-0.2884056866168976,
-0.022667475044727325,
-0.12107449769973755,
0.03332933038473129,
-0.5175758004188538,
-0.02388223074376583,
-0.21581976115703583,
0.27714040875434875,
0.06627481430768967,
0.3163925111293793,
0.2377837747335434,
-0.18625198304653168,
-0.31117162108421326,
-0.11788641661405563,
0.0840945616364479,
0.023240920156240463,
0.41469234228134155,
0.09289742261171341,
-0.25139209628105164,
-0.4029277265071869,
-0.005995878949761391,
-0.15718117356300354,
-0.06879166513681412,
0.34438297152519226,
-0.22122178971767426,
-0.1960671991109848,
0.1544109433889389,
0.026539623737335205,
0.24253882467746735,
0.23385490477085114,
-0.06213019788265228,
-0.10705053061246872,
-0.3953525424003601,
-0.39077988266944885,
-0.14917537569999695,
0.18367744982242584,
0.008722551167011261,
0.027631113305687904,
0.32546117901802063,
-0.2362491935491562,
-0.10078354924917221,
0.09677276760339737,
-0.030377497896552086,
-0.3079310655593872,
0.42219817638397217,
0.06302725523710251,
0.157456174492836,
-0.18204207718372345,
0.09519967436790466,
0.47089794278144836,
0.08574733138084412,
-0.06204421818256378,
-0.19136275351047516,
-0.29553523659706116,
0.1813739389181137,
0.22854232788085938,
0.14764901995658875,
0.2028432935476303,
0.4157983958721161,
-0.11161179095506668,
0.3507339656352997,
0.1389515995979309,
-0.030313408002257347,
0.5046567320823669,
0.013999167829751968,
0.05774889886379242,
-0.005326838232576847,
0.38536158204078674,
0.15364044904708862,
-0.3459326922893524,
-0.00914484541863203,
-0.03869738057255745,
-0.3928492069244385,
0.2222752571105957,
-0.17335936427116394,
0.026059549301862717,
-0.07628815621137619,
-0.33916720747947693,
0.0986514762043953,
0.3787166476249695,
-0.0351220928132534,
0.15638050436973572,
0.29868942499160767,
0.35379573702812195,
0.007422677706927061,
-0.25019389390945435,
0.27170512080192566,
-0.14183969795703888,
-0.5083118081092834,
-0.33435317873954773,
-0.34786325693130493,
-0.2673625946044922,
0.03258223459124565,
0.19055232405662537,
-0.014034183695912361,
0.2996397912502289,
-0.10940185189247131,
-0.13335686922073364,
0.014861071482300758,
-0.11058221012353897,
0.017939958721399307,
0.28700265288352966,
0.31237754225730896,
0.3005122244358063,
0.06464941054582596,
0.25316691398620605,
-0.09984190762042999,
-0.047992974519729614,
0.09403367340564728,
-0.04113294929265976,
-0.32512402534484863,
0.1710938960313797,
0.2176751047372818,
-0.43914318084716797,
0.04407339170575142,
-0.0522504523396492,
0.25823837518692017,
0.15816061198711395,
-0.3323575258255005,
0.013568946160376072,
-0.04866691678762436,
-0.28419193625450134,
-0.1605195701122284,
0.08148497343063354,
0.5028259754180908,
-0.3308963179588318,
-0.009425518102943897,
-0.11008088290691376,
-0.2494041621685028,
0.16174325346946716,
0.2150464951992035,
-0.2940320372581482,
0.11906948685646057,
-0.2747874855995178,
0.21973080933094025,
-0.0019188086735084653,
-0.2591986656188965,
-0.39594176411628723,
0.46385863423347473,
0.03224489092826843,
0.11401856690645218,
0.0515647828578949,
-0.0424954891204834,
0.18685007095336914,
0.02620496042072773,
0.27809077501296997,
0.3115726709365845,
0.1806468963623047,
-0.10531032085418701,
-0.10234087705612183,
-0.016395356506109238,
0.31056123971939087,
0.30237454175949097,
0.14069871604442596,
0.1293964385986328,
0.3693041503429413,
0.13849225640296936,
0.28500714898109436,
-0.009262964129447937,
0.10816413164138794,
0.04555744677782059,
0.025660766288638115,
-0.15739871561527252,
0.017237035557627678,
-0.13793309032917023,
-0.32380855083465576,
0.11626515537500381,
0.1929509937763214,
-0.011177957989275455,
0.28930047154426575,
0.020027510821819305,
-0.30646175146102905,
0.1489776223897934,
-0.13062837719917297,
-0.15514624118804932,
0.2548949122428894,
0.05902879312634468,
-0.33434155583381653,
-0.19634254276752472,
-0.08458109945058823,
0.44236835837364197,
-0.30108171701431274,
-0.05615878477692604,
-0.036444004625082016,
0.10723679512739182,
0.19847352802753448,
-0.26037460565567017,
0.07666479796171188,
0.037188541144132614,
0.09103266894817352,
-0.009970461018383503,
-0.007543682120740414,
0.4015762209892273,
0.13827276229858398,
-0.07049618661403656,
-0.25967204570770264,
0.00974286999553442,
-0.06006286293268204,
0.003317083464935422,
-0.05451852083206177,
-0.21277786791324615,
-0.0010405301582068205,
-0.11934814602136612,
-0.16449594497680664,
0.45049789547920227,
-0.21807707846164703,
0.03586387261748314,
0.08328846096992493,
0.07304549217224121,
0.31749585270881653,
-0.14066556096076965,
-0.12227396667003632,
-0.1382572501897812,
0.08492118120193481,
0.021191492676734924,
0.01932893879711628,
0.2944274842739105,
0.08154971897602081,
0.11186060309410095,
0.24688217043876648,
-0.005465389229357243,
0.22656920552253723,
-0.08972280472517014,
-0.012051430530846119,
-0.19812250137329102,
0.3338440954685211,
0.4751116633415222,
0.5373748540878296,
0.2714194655418396,
0.22295354306697845,
-0.004796728491783142,
-0.042580604553222656,
-0.3022957444190979,
0.22107316553592682,
-0.20557986199855804,
0.130303293466568,
0.30847352743148804,
0.21186167001724243,
-0.34511736035346985,
-0.48983582854270935,
0.019563565030694008,
0.22248175740242004,
0.11848931759595871,
-0.4995971620082855,
0.19822575151920319,
-0.29591625928878784,
0.07507595419883728,
0.07210622727870941,
0.12940466403961182,
-0.025103889405727386,
-0.30693694949150085,
-0.18470822274684906,
0.2918294370174408,
-0.05556527152657509,
0.21399329602718353,
-0.37185579538345337,
0.17327788472175598,
-0.01886759139597416,
-0.058756276965141296,
0.020899219438433647,
-0.11194390058517456,
-0.28202369809150696,
0.12327379733324051,
0.13001561164855957,
0.09094647318124771,
-0.12725207209587097,
-0.07461556047201157,
-0.14973147213459015,
-0.2729473114013672,
-0.05867517367005348,
0.12014211714267731,
-0.14512231945991516,
0.5445305109024048,
0.20521685481071472,
0.21756066381931305,
0.00603404501453042,
-0.15861918032169342,
0.2108670026063919,
-0.004367500077933073,
-0.028010116890072823,
0.07996086776256561,
-0.2127118855714798,
0.007449701894074678,
-0.23930877447128296,
-0.18843834102153778,
-0.11001218110322952,
-0.4218486249446869,
0.05333094298839569,
-0.01931067928671837,
0.059869807213544846,
0.544654130935669,
0.22826553881168365,
-0.3585255444049835,
0.280071496963501,
-0.17819425463676453,
-0.39825499057769775,
-0.4273524880409241,
0.31957221031188965,
-0.31285426020622253,
-0.2538580000400543,
-0.20630672574043274,
0.05013164132833481,
0.48970451951026917,
0.27919480204582214,
-0.27910304069519043,
0.37648409605026245,
-0.034397415816783905,
0.3348134458065033,
0.033775217831134796,
-0.10759713500738144,
-0.09079568833112717,
-0.06855800002813339,
-0.17448939383029938,
-0.2793257534503937,
0.026174936443567276,
0.46569085121154785,
-0.26072338223457336,
-0.019823549315333366,
-0.24496561288833618,
0.12260330468416214,
-0.20059485733509064,
0.24113674461841583,
-0.31965669989585876,
-0.048302073031663895,
0.5094330906867981,
-0.15484216809272766,
0.5727548599243164,
-0.07115582376718521,
-0.09737930446863174,
0.143282949924469,
-0.07165743410587311,
-0.059220097959041595,
0.232028990983963,
0.015310055576264858,
-0.2760954201221466,
-0.23555657267570496,
-0.22514089941978455,
-0.03966144472360611,
-0.25548872351646423,
-0.004983030259609222,
0.2677537202835083,
0.1769251674413681,
0.24868549406528473,
0.3248455822467804,
-0.06792416423559189,
-0.060039058327674866,
0.01906505972146988,
-0.03997074067592621,
0.11871083825826645,
-0.12502726912498474,
-0.2889608144760132,
0.17831163108348846,
-0.013492205180227757,
0.001841241493821144,
-0.3442804515361786,
0.3925546109676361,
-0.20814606547355652,
-0.29338300228118896,
-0.0791204497218132,
-0.10858923941850662,
0.5967525243759155,
-0.1412045806646347,
0.31597623229026794,
0.033707041293382645,
0.1940583735704422,
-0.35301080346107483,
-0.19663038849830627,
0.1680062711238861,
0.00990227609872818,
0.12946680188179016,
0.23167486488819122,
-0.18781933188438416,
-0.019704826176166534,
0.024450315162539482,
0.07336059212684631,
-0.3088112473487854,
-0.3403022885322571,
-0.3662998080253601,
-0.2117699682712555,
-0.12747101485729218,
-0.08758093416690826,
0.09594175219535828,
0.10242049396038055,
-0.2121056318283081,
-0.1485169380903244,
-0.19397594034671783,
0.012876362539827824,
0.03404051065444946,
0.20221354067325592,
0.2001572549343109,
-0.027767110615968704,
0.3037213087081909,
0.17352399230003357,
0.16076238453388214,
0.21694296598434448,
0.5979692935943604,
-0.07582999765872955,
-0.0959206223487854,
0.5266185402870178,
-0.09334486722946167,
0.01459302008152008,
0.4121988117694855,
-0.08889764547348022,
-0.1621471643447876,
0.599030613899231,
-0.25491079688072205,
-0.19195356965065002,
0.13596948981285095,
-0.09493811428546906,
-0.17706988751888275,
-0.011786901392042637,
-0.3901786506175995,
-0.05391035974025726,
-0.18997417390346527,
-0.1254575401544571,
0.27430254220962524,
-0.08747050911188126,
-0.33747193217277527,
0.3413420617580414,
0.013463850133121014,
0.6669343113899231,
-0.15001653134822845,
0.24233654141426086,
0.6680607199668884,
-0.04417792707681656,
-0.14343523979187012,
-0.11144007742404938,
-0.08009018748998642,
-0.13046470284461975,
-0.35079225897789,
0.005942252930253744,
-0.10706184804439545,
0.04582125321030617,
0.44892966747283936,
0.27665191888809204,
0.2068142592906952,
-0.05435324087738991,
-0.056825727224349976,
-0.0972287505865097,
0.03189895674586296,
-0.19858932495117188,
-0.14202935993671417,
-0.28392043709754944,
0.1294984221458435,
0.16872966289520264,
-0.03555546700954437,
-0.09485795348882675,
-0.11360161006450653,
-0.008156247437000275,
-0.06712035089731216,
-0.20746219158172607,
0.057453859597444534,
0.32558706402778625,
0.11828668415546417,
0.039618752896785736,
-0.1763242483139038,
-0.21614843606948853,
0.004986012354493141,
-0.07707829028367996,
-0.0064707170240581036,
-0.16108010709285736,
0.32182273268699646,
0.05997021868824959,
0.23900897800922394,
-0.014702207408845425,
0.010330626741051674,
0.366075336933136,
-0.004280746914446354,
-0.2677350342273712,
-0.05218004062771797,
-0.03556011989712715,
-0.29240521788597107,
-0.21641653776168823,
0.16284649074077606,
-0.08694785088300705,
-0.5713104605674744,
0.0190046988427639,
0.0021554110571742058,
0.26666614413261414,
-0.33629366755485535,
0.16062283515930176,
0.024111758917570114,
0.29380297660827637,
-0.025354234501719475,
0.08061771839857101,
-0.3778730630874634,
-0.33827921748161316,
0.6317729353904724,
-0.050522249191999435,
0.14816677570343018,
0.3605039119720459,
0.14631791412830353,
-0.19533903896808624,
-0.23990865051746368,
0.031097177416086197,
0.39964359998703003,
-0.2450539916753769,
0.10259432345628738,
-0.13852620124816895,
-0.056457482278347015,
-0.009298495016992092,
0.22911155223846436,
0.16733725368976593,
-0.07173603773117065,
0.0944775864481926,
-0.3809865117073059,
-0.38124844431877136,
0.08319991081953049,
-0.14195291697978973,
-0.008549824357032776,
0.09707634150981903,
-0.30993369221687317,
-0.06446855515241623,
-0.035148605704307556,
-0.35763370990753174,
-0.2517906427383423,
0.01687946543097496,
-0.11261861026287079,
-0.07133706659078598,
-0.0532367117702961,
-0.14229318499565125,
-0.13779190182685852,
0.20969319343566895,
-0.15158388018608093,
-0.08145643770694733,
-0.25760817527770996,
-0.30950912833213806,
0.10345032811164856,
0.11190242320299149,
-0.00840361975133419,
-0.10344545543193817,
-0.2642019987106323,
-0.3762109875679016,
-0.14167095720767975,
0.1849563866853714,
0.20544295012950897,
-0.038399241864681244,
-0.10331903398036957,
0.09256541728973389,
0.22889909148216248,
-0.2572237551212311,
0.05164148658514023,
0.12570297718048096,
0.005154759157449007,
0.015000412240624428,
-0.03896961733698845,
0.03652474656701088,
-0.055388178676366806,
-0.13481959700584412,
-0.014247057028114796,
0.21460458636283875,
0.05456431955099106,
0.3377086818218231,
-0.3263537287712097,
-0.06248687207698822,
0.10868164151906967,
0.5018452405929565,
0.37890318036079407,
-0.12208220362663269,
-0.2062075436115265,
0.12763521075248718,
0.21410945057868958,
-0.3382135033607483,
-0.05493665114045143,
-0.03985045477747917,
-0.07311386615037918,
0.08041758835315704,
0.23762063682079315,
0.3448210060596466,
-0.3689101040363312,
0.0061464556492865086,
0.05000811442732811,
0.20281656086444855,
0.2926657795906067,
-0.10567523539066315,
0.4106948971748352,
-0.20468632876873016,
0.24208472669124603,
0.3031952381134033,
0.08963248878717422,
0.18918374180793762,
0.7621464729309082,
0.03129403293132782,
0.3833898603916168,
-0.12176217883825302,
0.2255241423845291,
-0.3144139051437378,
-0.7955082058906555,
0.1238585114479065,
-0.06817447394132614,
-0.08573629707098007,
-0.03894266486167908,
-0.0881284773349762,
0.17613431811332703,
-0.06920215487480164,
0.004633523523807526,
-0.1121872067451477,
0.17053845524787903,
-0.24231787025928497,
-0.1774587333202362,
-0.08142771571874619,
-0.23303912580013275,
-0.1158146932721138,
0.17511329054832458,
-0.14451120793819427,
-0.11989939212799072,
0.10757090151309967,
-0.03659454360604286,
0.0335814394056797,
-0.31786733865737915,
0.13028614223003387,
-0.012576044537127018,
-0.26005464792251587,
-0.22034473717212677,
0.277095228433609,
0.2270638346672058,
-0.13111110031604767,
0.6092444658279419,
-0.01951056718826294,
0.3621789813041687,
0.21348361670970917,
0.22981052100658417,
-0.16356885433197021,
0.090635284781456,
-0.013769809156656265,
-0.44255486130714417,
0.4691876471042633,
0.23079228401184082,
0.5626729130744934,
0.3801555633544922,
0.21465133130550385,
-0.15452153980731964,
-0.03774433583021164,
0.501735508441925,
-0.15166400372982025,
-0.14502635598182678,
0.13489197194576263,
0.09793753176927567,
-0.10224128514528275,
-0.03320519998669624,
-0.049530789256095886,
-0.10164959728717804,
0.06285586208105087,
0.2253022938966751,
0.10923131555318832,
0.3628467321395874,
-0.2437894493341446,
0.10387911647558212,
-0.07260219007730484,
0.7275210618972778,
-0.11388954520225525,
0.31450262665748596,
-0.14506779611110687,
-0.16836082935333252,
-0.7731072306632996,
0.3513866662979126,
-0.20077252388000488,
0.06661296635866165,
0.06331866979598999,
0.029755083844065666,
0.41485396027565,
-0.11288625001907349,
-0.0800398513674736,
0.1428557187318802,
0.1524868905544281,
0.1505807638168335,
-0.20268622040748596,
-0.13896554708480835,
-0.01139735896140337,
0.17981576919555664,
-0.3373463451862335,
-0.2897776961326599,
0.40666234493255615,
-0.07353432476520538,
0.1115684062242508,
0.0689530074596405,
-0.31208696961402893,
0.07558263838291168,
0.42266586422920227,
0.49982401728630066,
-0.10520342737436295,
0.580101490020752,
-0.1616331934928894,
0.14275193214416504,
-0.5877315998077393,
-0.3523682951927185,
0.017279699444770813,
0.26304879784584045,
0.0002599917643237859,
-0.06098342686891556,
-0.08732031285762787,
0.09828723967075348,
-0.08128265291452408,
0.46559950709342957,
0.11476744711399078,
-0.07733463495969772,
-0.21055133640766144,
0.15803837776184082,
-0.06955400109291077,
-0.1147930920124054,
0.12361614406108856,
-0.013845818117260933,
-0.07857328653335571,
0.04895605891942978,
-0.09651854634284973,
-0.08660651743412018,
0.3535487949848175,
-0.45952001214027405,
-0.2850203812122345,
-0.13613058626651764,
0.1339835822582245,
0.3011189103126526,
-0.022271551191806793,
-0.19134202599525452,
0.08883940428495407,
0.2659738063812256,
-0.15435218811035156,
-0.05316588655114174,
0.14577855169773102,
-0.15370042622089386,
0.0641770213842392,
-0.0658361166715622,
-0.05038934573531151,
0.027253685519099236,
-0.5360069870948792,
-0.02152854949235916,
-0.1054135113954544
] |
https://github.com/huggingface/datasets/issues/5274
|
load_dataset possibly broken for gated datasets?
|
I see the same issue when calling `load_dataset('poloclub/diffusiondb', 'large_random_1k')` with `datasets==2.7.1` and `huggingface-hub=0.11.0`. No issue with `datasets=2.6.1` and `huggingface_hub==0.10.1`.
https://github.com/poloclub/diffusiondb/issues/7
|
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
| 20 |
load_dataset possibly broken for gated datasets?
|
[
-0.6134456396102905,
0.13876403868198395,
-0.13353587687015533,
0.2112499475479126,
0.261823832988739,
-0.0352916419506073,
0.8927196860313416,
0.15922442078590393,
0.5084536671638489,
-0.12161698192358017,
-0.31658250093460083,
0.10621646791696548,
-0.05615757778286934,
0.46598726511001587,
-0.09058697521686554,
0.17812606692314148,
0.2234235405921936,
-0.015385911799967289,
-0.3836742341518402,
-0.11422280967235565,
-0.2242521196603775,
0.18603993952274323,
-0.32835233211517334,
0.07419871538877487,
-0.25605112314224243,
0.033075299113988876,
0.1158093735575676,
0.5218628644943237,
0.06492920964956284,
-0.017099888995289803,
0.3110398054122925,
0.38990262150764465,
0.08048318326473236,
0.3366941511631012,
-0.00010702236613724381,
0.07289056479930878,
0.0687304139137268,
-0.10304958373308182,
-0.3576889634132385,
0.11532788723707199,
-0.361736923456192,
-0.2884056866168976,
-0.022667475044727325,
-0.12107449769973755,
0.03332933038473129,
-0.5175758004188538,
-0.02388223074376583,
-0.21581976115703583,
0.27714040875434875,
0.06627481430768967,
0.3163925111293793,
0.2377837747335434,
-0.18625198304653168,
-0.31117162108421326,
-0.11788641661405563,
0.0840945616364479,
0.023240920156240463,
0.41469234228134155,
0.09289742261171341,
-0.25139209628105164,
-0.4029277265071869,
-0.005995878949761391,
-0.15718117356300354,
-0.06879166513681412,
0.34438297152519226,
-0.22122178971767426,
-0.1960671991109848,
0.1544109433889389,
0.026539623737335205,
0.24253882467746735,
0.23385490477085114,
-0.06213019788265228,
-0.10705053061246872,
-0.3953525424003601,
-0.39077988266944885,
-0.14917537569999695,
0.18367744982242584,
0.008722551167011261,
0.027631113305687904,
0.32546117901802063,
-0.2362491935491562,
-0.10078354924917221,
0.09677276760339737,
-0.030377497896552086,
-0.3079310655593872,
0.42219817638397217,
0.06302725523710251,
0.157456174492836,
-0.18204207718372345,
0.09519967436790466,
0.47089794278144836,
0.08574733138084412,
-0.06204421818256378,
-0.19136275351047516,
-0.29553523659706116,
0.1813739389181137,
0.22854232788085938,
0.14764901995658875,
0.2028432935476303,
0.4157983958721161,
-0.11161179095506668,
0.3507339656352997,
0.1389515995979309,
-0.030313408002257347,
0.5046567320823669,
0.013999167829751968,
0.05774889886379242,
-0.005326838232576847,
0.38536158204078674,
0.15364044904708862,
-0.3459326922893524,
-0.00914484541863203,
-0.03869738057255745,
-0.3928492069244385,
0.2222752571105957,
-0.17335936427116394,
0.026059549301862717,
-0.07628815621137619,
-0.33916720747947693,
0.0986514762043953,
0.3787166476249695,
-0.0351220928132534,
0.15638050436973572,
0.29868942499160767,
0.35379573702812195,
0.007422677706927061,
-0.25019389390945435,
0.27170512080192566,
-0.14183969795703888,
-0.5083118081092834,
-0.33435317873954773,
-0.34786325693130493,
-0.2673625946044922,
0.03258223459124565,
0.19055232405662537,
-0.014034183695912361,
0.2996397912502289,
-0.10940185189247131,
-0.13335686922073364,
0.014861071482300758,
-0.11058221012353897,
0.017939958721399307,
0.28700265288352966,
0.31237754225730896,
0.3005122244358063,
0.06464941054582596,
0.25316691398620605,
-0.09984190762042999,
-0.047992974519729614,
0.09403367340564728,
-0.04113294929265976,
-0.32512402534484863,
0.1710938960313797,
0.2176751047372818,
-0.43914318084716797,
0.04407339170575142,
-0.0522504523396492,
0.25823837518692017,
0.15816061198711395,
-0.3323575258255005,
0.013568946160376072,
-0.04866691678762436,
-0.28419193625450134,
-0.1605195701122284,
0.08148497343063354,
0.5028259754180908,
-0.3308963179588318,
-0.009425518102943897,
-0.11008088290691376,
-0.2494041621685028,
0.16174325346946716,
0.2150464951992035,
-0.2940320372581482,
0.11906948685646057,
-0.2747874855995178,
0.21973080933094025,
-0.0019188086735084653,
-0.2591986656188965,
-0.39594176411628723,
0.46385863423347473,
0.03224489092826843,
0.11401856690645218,
0.0515647828578949,
-0.0424954891204834,
0.18685007095336914,
0.02620496042072773,
0.27809077501296997,
0.3115726709365845,
0.1806468963623047,
-0.10531032085418701,
-0.10234087705612183,
-0.016395356506109238,
0.31056123971939087,
0.30237454175949097,
0.14069871604442596,
0.1293964385986328,
0.3693041503429413,
0.13849225640296936,
0.28500714898109436,
-0.009262964129447937,
0.10816413164138794,
0.04555744677782059,
0.025660766288638115,
-0.15739871561527252,
0.017237035557627678,
-0.13793309032917023,
-0.32380855083465576,
0.11626515537500381,
0.1929509937763214,
-0.011177957989275455,
0.28930047154426575,
0.020027510821819305,
-0.30646175146102905,
0.1489776223897934,
-0.13062837719917297,
-0.15514624118804932,
0.2548949122428894,
0.05902879312634468,
-0.33434155583381653,
-0.19634254276752472,
-0.08458109945058823,
0.44236835837364197,
-0.30108171701431274,
-0.05615878477692604,
-0.036444004625082016,
0.10723679512739182,
0.19847352802753448,
-0.26037460565567017,
0.07666479796171188,
0.037188541144132614,
0.09103266894817352,
-0.009970461018383503,
-0.007543682120740414,
0.4015762209892273,
0.13827276229858398,
-0.07049618661403656,
-0.25967204570770264,
0.00974286999553442,
-0.06006286293268204,
0.003317083464935422,
-0.05451852083206177,
-0.21277786791324615,
-0.0010405301582068205,
-0.11934814602136612,
-0.16449594497680664,
0.45049789547920227,
-0.21807707846164703,
0.03586387261748314,
0.08328846096992493,
0.07304549217224121,
0.31749585270881653,
-0.14066556096076965,
-0.12227396667003632,
-0.1382572501897812,
0.08492118120193481,
0.021191492676734924,
0.01932893879711628,
0.2944274842739105,
0.08154971897602081,
0.11186060309410095,
0.24688217043876648,
-0.005465389229357243,
0.22656920552253723,
-0.08972280472517014,
-0.012051430530846119,
-0.19812250137329102,
0.3338440954685211,
0.4751116633415222,
0.5373748540878296,
0.2714194655418396,
0.22295354306697845,
-0.004796728491783142,
-0.042580604553222656,
-0.3022957444190979,
0.22107316553592682,
-0.20557986199855804,
0.130303293466568,
0.30847352743148804,
0.21186167001724243,
-0.34511736035346985,
-0.48983582854270935,
0.019563565030694008,
0.22248175740242004,
0.11848931759595871,
-0.4995971620082855,
0.19822575151920319,
-0.29591625928878784,
0.07507595419883728,
0.07210622727870941,
0.12940466403961182,
-0.025103889405727386,
-0.30693694949150085,
-0.18470822274684906,
0.2918294370174408,
-0.05556527152657509,
0.21399329602718353,
-0.37185579538345337,
0.17327788472175598,
-0.01886759139597416,
-0.058756276965141296,
0.020899219438433647,
-0.11194390058517456,
-0.28202369809150696,
0.12327379733324051,
0.13001561164855957,
0.09094647318124771,
-0.12725207209587097,
-0.07461556047201157,
-0.14973147213459015,
-0.2729473114013672,
-0.05867517367005348,
0.12014211714267731,
-0.14512231945991516,
0.5445305109024048,
0.20521685481071472,
0.21756066381931305,
0.00603404501453042,
-0.15861918032169342,
0.2108670026063919,
-0.004367500077933073,
-0.028010116890072823,
0.07996086776256561,
-0.2127118855714798,
0.007449701894074678,
-0.23930877447128296,
-0.18843834102153778,
-0.11001218110322952,
-0.4218486249446869,
0.05333094298839569,
-0.01931067928671837,
0.059869807213544846,
0.544654130935669,
0.22826553881168365,
-0.3585255444049835,
0.280071496963501,
-0.17819425463676453,
-0.39825499057769775,
-0.4273524880409241,
0.31957221031188965,
-0.31285426020622253,
-0.2538580000400543,
-0.20630672574043274,
0.05013164132833481,
0.48970451951026917,
0.27919480204582214,
-0.27910304069519043,
0.37648409605026245,
-0.034397415816783905,
0.3348134458065033,
0.033775217831134796,
-0.10759713500738144,
-0.09079568833112717,
-0.06855800002813339,
-0.17448939383029938,
-0.2793257534503937,
0.026174936443567276,
0.46569085121154785,
-0.26072338223457336,
-0.019823549315333366,
-0.24496561288833618,
0.12260330468416214,
-0.20059485733509064,
0.24113674461841583,
-0.31965669989585876,
-0.048302073031663895,
0.5094330906867981,
-0.15484216809272766,
0.5727548599243164,
-0.07115582376718521,
-0.09737930446863174,
0.143282949924469,
-0.07165743410587311,
-0.059220097959041595,
0.232028990983963,
0.015310055576264858,
-0.2760954201221466,
-0.23555657267570496,
-0.22514089941978455,
-0.03966144472360611,
-0.25548872351646423,
-0.004983030259609222,
0.2677537202835083,
0.1769251674413681,
0.24868549406528473,
0.3248455822467804,
-0.06792416423559189,
-0.060039058327674866,
0.01906505972146988,
-0.03997074067592621,
0.11871083825826645,
-0.12502726912498474,
-0.2889608144760132,
0.17831163108348846,
-0.013492205180227757,
0.001841241493821144,
-0.3442804515361786,
0.3925546109676361,
-0.20814606547355652,
-0.29338300228118896,
-0.0791204497218132,
-0.10858923941850662,
0.5967525243759155,
-0.1412045806646347,
0.31597623229026794,
0.033707041293382645,
0.1940583735704422,
-0.35301080346107483,
-0.19663038849830627,
0.1680062711238861,
0.00990227609872818,
0.12946680188179016,
0.23167486488819122,
-0.18781933188438416,
-0.019704826176166534,
0.024450315162539482,
0.07336059212684631,
-0.3088112473487854,
-0.3403022885322571,
-0.3662998080253601,
-0.2117699682712555,
-0.12747101485729218,
-0.08758093416690826,
0.09594175219535828,
0.10242049396038055,
-0.2121056318283081,
-0.1485169380903244,
-0.19397594034671783,
0.012876362539827824,
0.03404051065444946,
0.20221354067325592,
0.2001572549343109,
-0.027767110615968704,
0.3037213087081909,
0.17352399230003357,
0.16076238453388214,
0.21694296598434448,
0.5979692935943604,
-0.07582999765872955,
-0.0959206223487854,
0.5266185402870178,
-0.09334486722946167,
0.01459302008152008,
0.4121988117694855,
-0.08889764547348022,
-0.1621471643447876,
0.599030613899231,
-0.25491079688072205,
-0.19195356965065002,
0.13596948981285095,
-0.09493811428546906,
-0.17706988751888275,
-0.011786901392042637,
-0.3901786506175995,
-0.05391035974025726,
-0.18997417390346527,
-0.1254575401544571,
0.27430254220962524,
-0.08747050911188126,
-0.33747193217277527,
0.3413420617580414,
0.013463850133121014,
0.6669343113899231,
-0.15001653134822845,
0.24233654141426086,
0.6680607199668884,
-0.04417792707681656,
-0.14343523979187012,
-0.11144007742404938,
-0.08009018748998642,
-0.13046470284461975,
-0.35079225897789,
0.005942252930253744,
-0.10706184804439545,
0.04582125321030617,
0.44892966747283936,
0.27665191888809204,
0.2068142592906952,
-0.05435324087738991,
-0.056825727224349976,
-0.0972287505865097,
0.03189895674586296,
-0.19858932495117188,
-0.14202935993671417,
-0.28392043709754944,
0.1294984221458435,
0.16872966289520264,
-0.03555546700954437,
-0.09485795348882675,
-0.11360161006450653,
-0.008156247437000275,
-0.06712035089731216,
-0.20746219158172607,
0.057453859597444534,
0.32558706402778625,
0.11828668415546417,
0.039618752896785736,
-0.1763242483139038,
-0.21614843606948853,
0.004986012354493141,
-0.07707829028367996,
-0.0064707170240581036,
-0.16108010709285736,
0.32182273268699646,
0.05997021868824959,
0.23900897800922394,
-0.014702207408845425,
0.010330626741051674,
0.366075336933136,
-0.004280746914446354,
-0.2677350342273712,
-0.05218004062771797,
-0.03556011989712715,
-0.29240521788597107,
-0.21641653776168823,
0.16284649074077606,
-0.08694785088300705,
-0.5713104605674744,
0.0190046988427639,
0.0021554110571742058,
0.26666614413261414,
-0.33629366755485535,
0.16062283515930176,
0.024111758917570114,
0.29380297660827637,
-0.025354234501719475,
0.08061771839857101,
-0.3778730630874634,
-0.33827921748161316,
0.6317729353904724,
-0.050522249191999435,
0.14816677570343018,
0.3605039119720459,
0.14631791412830353,
-0.19533903896808624,
-0.23990865051746368,
0.031097177416086197,
0.39964359998703003,
-0.2450539916753769,
0.10259432345628738,
-0.13852620124816895,
-0.056457482278347015,
-0.009298495016992092,
0.22911155223846436,
0.16733725368976593,
-0.07173603773117065,
0.0944775864481926,
-0.3809865117073059,
-0.38124844431877136,
0.08319991081953049,
-0.14195291697978973,
-0.008549824357032776,
0.09707634150981903,
-0.30993369221687317,
-0.06446855515241623,
-0.035148605704307556,
-0.35763370990753174,
-0.2517906427383423,
0.01687946543097496,
-0.11261861026287079,
-0.07133706659078598,
-0.0532367117702961,
-0.14229318499565125,
-0.13779190182685852,
0.20969319343566895,
-0.15158388018608093,
-0.08145643770694733,
-0.25760817527770996,
-0.30950912833213806,
0.10345032811164856,
0.11190242320299149,
-0.00840361975133419,
-0.10344545543193817,
-0.2642019987106323,
-0.3762109875679016,
-0.14167095720767975,
0.1849563866853714,
0.20544295012950897,
-0.038399241864681244,
-0.10331903398036957,
0.09256541728973389,
0.22889909148216248,
-0.2572237551212311,
0.05164148658514023,
0.12570297718048096,
0.005154759157449007,
0.015000412240624428,
-0.03896961733698845,
0.03652474656701088,
-0.055388178676366806,
-0.13481959700584412,
-0.014247057028114796,
0.21460458636283875,
0.05456431955099106,
0.3377086818218231,
-0.3263537287712097,
-0.06248687207698822,
0.10868164151906967,
0.5018452405929565,
0.37890318036079407,
-0.12208220362663269,
-0.2062075436115265,
0.12763521075248718,
0.21410945057868958,
-0.3382135033607483,
-0.05493665114045143,
-0.03985045477747917,
-0.07311386615037918,
0.08041758835315704,
0.23762063682079315,
0.3448210060596466,
-0.3689101040363312,
0.0061464556492865086,
0.05000811442732811,
0.20281656086444855,
0.2926657795906067,
-0.10567523539066315,
0.4106948971748352,
-0.20468632876873016,
0.24208472669124603,
0.3031952381134033,
0.08963248878717422,
0.18918374180793762,
0.7621464729309082,
0.03129403293132782,
0.3833898603916168,
-0.12176217883825302,
0.2255241423845291,
-0.3144139051437378,
-0.7955082058906555,
0.1238585114479065,
-0.06817447394132614,
-0.08573629707098007,
-0.03894266486167908,
-0.0881284773349762,
0.17613431811332703,
-0.06920215487480164,
0.004633523523807526,
-0.1121872067451477,
0.17053845524787903,
-0.24231787025928497,
-0.1774587333202362,
-0.08142771571874619,
-0.23303912580013275,
-0.1158146932721138,
0.17511329054832458,
-0.14451120793819427,
-0.11989939212799072,
0.10757090151309967,
-0.03659454360604286,
0.0335814394056797,
-0.31786733865737915,
0.13028614223003387,
-0.012576044537127018,
-0.26005464792251587,
-0.22034473717212677,
0.277095228433609,
0.2270638346672058,
-0.13111110031604767,
0.6092444658279419,
-0.01951056718826294,
0.3621789813041687,
0.21348361670970917,
0.22981052100658417,
-0.16356885433197021,
0.090635284781456,
-0.013769809156656265,
-0.44255486130714417,
0.4691876471042633,
0.23079228401184082,
0.5626729130744934,
0.3801555633544922,
0.21465133130550385,
-0.15452153980731964,
-0.03774433583021164,
0.501735508441925,
-0.15166400372982025,
-0.14502635598182678,
0.13489197194576263,
0.09793753176927567,
-0.10224128514528275,
-0.03320519998669624,
-0.049530789256095886,
-0.10164959728717804,
0.06285586208105087,
0.2253022938966751,
0.10923131555318832,
0.3628467321395874,
-0.2437894493341446,
0.10387911647558212,
-0.07260219007730484,
0.7275210618972778,
-0.11388954520225525,
0.31450262665748596,
-0.14506779611110687,
-0.16836082935333252,
-0.7731072306632996,
0.3513866662979126,
-0.20077252388000488,
0.06661296635866165,
0.06331866979598999,
0.029755083844065666,
0.41485396027565,
-0.11288625001907349,
-0.0800398513674736,
0.1428557187318802,
0.1524868905544281,
0.1505807638168335,
-0.20268622040748596,
-0.13896554708480835,
-0.01139735896140337,
0.17981576919555664,
-0.3373463451862335,
-0.2897776961326599,
0.40666234493255615,
-0.07353432476520538,
0.1115684062242508,
0.0689530074596405,
-0.31208696961402893,
0.07558263838291168,
0.42266586422920227,
0.49982401728630066,
-0.10520342737436295,
0.580101490020752,
-0.1616331934928894,
0.14275193214416504,
-0.5877315998077393,
-0.3523682951927185,
0.017279699444770813,
0.26304879784584045,
0.0002599917643237859,
-0.06098342686891556,
-0.08732031285762787,
0.09828723967075348,
-0.08128265291452408,
0.46559950709342957,
0.11476744711399078,
-0.07733463495969772,
-0.21055133640766144,
0.15803837776184082,
-0.06955400109291077,
-0.1147930920124054,
0.12361614406108856,
-0.013845818117260933,
-0.07857328653335571,
0.04895605891942978,
-0.09651854634284973,
-0.08660651743412018,
0.3535487949848175,
-0.45952001214027405,
-0.2850203812122345,
-0.13613058626651764,
0.1339835822582245,
0.3011189103126526,
-0.022271551191806793,
-0.19134202599525452,
0.08883940428495407,
0.2659738063812256,
-0.15435218811035156,
-0.05316588655114174,
0.14577855169773102,
-0.15370042622089386,
0.0641770213842392,
-0.0658361166715622,
-0.05038934573531151,
0.027253685519099236,
-0.5360069870948792,
-0.02152854949235916,
-0.1054135113954544
] |
https://github.com/huggingface/datasets/issues/5274
|
load_dataset possibly broken for gated datasets?
|
I fixed my issue by specifying `repo_type` in `hf_hub_url()`. https://github.com/poloclub/diffusiondb/commit/9eb91c79aaca98b0515a0ce45778b8af65b84652
I opened a PR on the Winoground's repo: https://huggingface.co/datasets/facebook/winoground/discussions/2
|
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
| 19 |
load_dataset possibly broken for gated datasets?
|
[
-0.6134456396102905,
0.13876403868198395,
-0.13353587687015533,
0.2112499475479126,
0.261823832988739,
-0.0352916419506073,
0.8927196860313416,
0.15922442078590393,
0.5084536671638489,
-0.12161698192358017,
-0.31658250093460083,
0.10621646791696548,
-0.05615757778286934,
0.46598726511001587,
-0.09058697521686554,
0.17812606692314148,
0.2234235405921936,
-0.015385911799967289,
-0.3836742341518402,
-0.11422280967235565,
-0.2242521196603775,
0.18603993952274323,
-0.32835233211517334,
0.07419871538877487,
-0.25605112314224243,
0.033075299113988876,
0.1158093735575676,
0.5218628644943237,
0.06492920964956284,
-0.017099888995289803,
0.3110398054122925,
0.38990262150764465,
0.08048318326473236,
0.3366941511631012,
-0.00010702236613724381,
0.07289056479930878,
0.0687304139137268,
-0.10304958373308182,
-0.3576889634132385,
0.11532788723707199,
-0.361736923456192,
-0.2884056866168976,
-0.022667475044727325,
-0.12107449769973755,
0.03332933038473129,
-0.5175758004188538,
-0.02388223074376583,
-0.21581976115703583,
0.27714040875434875,
0.06627481430768967,
0.3163925111293793,
0.2377837747335434,
-0.18625198304653168,
-0.31117162108421326,
-0.11788641661405563,
0.0840945616364479,
0.023240920156240463,
0.41469234228134155,
0.09289742261171341,
-0.25139209628105164,
-0.4029277265071869,
-0.005995878949761391,
-0.15718117356300354,
-0.06879166513681412,
0.34438297152519226,
-0.22122178971767426,
-0.1960671991109848,
0.1544109433889389,
0.026539623737335205,
0.24253882467746735,
0.23385490477085114,
-0.06213019788265228,
-0.10705053061246872,
-0.3953525424003601,
-0.39077988266944885,
-0.14917537569999695,
0.18367744982242584,
0.008722551167011261,
0.027631113305687904,
0.32546117901802063,
-0.2362491935491562,
-0.10078354924917221,
0.09677276760339737,
-0.030377497896552086,
-0.3079310655593872,
0.42219817638397217,
0.06302725523710251,
0.157456174492836,
-0.18204207718372345,
0.09519967436790466,
0.47089794278144836,
0.08574733138084412,
-0.06204421818256378,
-0.19136275351047516,
-0.29553523659706116,
0.1813739389181137,
0.22854232788085938,
0.14764901995658875,
0.2028432935476303,
0.4157983958721161,
-0.11161179095506668,
0.3507339656352997,
0.1389515995979309,
-0.030313408002257347,
0.5046567320823669,
0.013999167829751968,
0.05774889886379242,
-0.005326838232576847,
0.38536158204078674,
0.15364044904708862,
-0.3459326922893524,
-0.00914484541863203,
-0.03869738057255745,
-0.3928492069244385,
0.2222752571105957,
-0.17335936427116394,
0.026059549301862717,
-0.07628815621137619,
-0.33916720747947693,
0.0986514762043953,
0.3787166476249695,
-0.0351220928132534,
0.15638050436973572,
0.29868942499160767,
0.35379573702812195,
0.007422677706927061,
-0.25019389390945435,
0.27170512080192566,
-0.14183969795703888,
-0.5083118081092834,
-0.33435317873954773,
-0.34786325693130493,
-0.2673625946044922,
0.03258223459124565,
0.19055232405662537,
-0.014034183695912361,
0.2996397912502289,
-0.10940185189247131,
-0.13335686922073364,
0.014861071482300758,
-0.11058221012353897,
0.017939958721399307,
0.28700265288352966,
0.31237754225730896,
0.3005122244358063,
0.06464941054582596,
0.25316691398620605,
-0.09984190762042999,
-0.047992974519729614,
0.09403367340564728,
-0.04113294929265976,
-0.32512402534484863,
0.1710938960313797,
0.2176751047372818,
-0.43914318084716797,
0.04407339170575142,
-0.0522504523396492,
0.25823837518692017,
0.15816061198711395,
-0.3323575258255005,
0.013568946160376072,
-0.04866691678762436,
-0.28419193625450134,
-0.1605195701122284,
0.08148497343063354,
0.5028259754180908,
-0.3308963179588318,
-0.009425518102943897,
-0.11008088290691376,
-0.2494041621685028,
0.16174325346946716,
0.2150464951992035,
-0.2940320372581482,
0.11906948685646057,
-0.2747874855995178,
0.21973080933094025,
-0.0019188086735084653,
-0.2591986656188965,
-0.39594176411628723,
0.46385863423347473,
0.03224489092826843,
0.11401856690645218,
0.0515647828578949,
-0.0424954891204834,
0.18685007095336914,
0.02620496042072773,
0.27809077501296997,
0.3115726709365845,
0.1806468963623047,
-0.10531032085418701,
-0.10234087705612183,
-0.016395356506109238,
0.31056123971939087,
0.30237454175949097,
0.14069871604442596,
0.1293964385986328,
0.3693041503429413,
0.13849225640296936,
0.28500714898109436,
-0.009262964129447937,
0.10816413164138794,
0.04555744677782059,
0.025660766288638115,
-0.15739871561527252,
0.017237035557627678,
-0.13793309032917023,
-0.32380855083465576,
0.11626515537500381,
0.1929509937763214,
-0.011177957989275455,
0.28930047154426575,
0.020027510821819305,
-0.30646175146102905,
0.1489776223897934,
-0.13062837719917297,
-0.15514624118804932,
0.2548949122428894,
0.05902879312634468,
-0.33434155583381653,
-0.19634254276752472,
-0.08458109945058823,
0.44236835837364197,
-0.30108171701431274,
-0.05615878477692604,
-0.036444004625082016,
0.10723679512739182,
0.19847352802753448,
-0.26037460565567017,
0.07666479796171188,
0.037188541144132614,
0.09103266894817352,
-0.009970461018383503,
-0.007543682120740414,
0.4015762209892273,
0.13827276229858398,
-0.07049618661403656,
-0.25967204570770264,
0.00974286999553442,
-0.06006286293268204,
0.003317083464935422,
-0.05451852083206177,
-0.21277786791324615,
-0.0010405301582068205,
-0.11934814602136612,
-0.16449594497680664,
0.45049789547920227,
-0.21807707846164703,
0.03586387261748314,
0.08328846096992493,
0.07304549217224121,
0.31749585270881653,
-0.14066556096076965,
-0.12227396667003632,
-0.1382572501897812,
0.08492118120193481,
0.021191492676734924,
0.01932893879711628,
0.2944274842739105,
0.08154971897602081,
0.11186060309410095,
0.24688217043876648,
-0.005465389229357243,
0.22656920552253723,
-0.08972280472517014,
-0.012051430530846119,
-0.19812250137329102,
0.3338440954685211,
0.4751116633415222,
0.5373748540878296,
0.2714194655418396,
0.22295354306697845,
-0.004796728491783142,
-0.042580604553222656,
-0.3022957444190979,
0.22107316553592682,
-0.20557986199855804,
0.130303293466568,
0.30847352743148804,
0.21186167001724243,
-0.34511736035346985,
-0.48983582854270935,
0.019563565030694008,
0.22248175740242004,
0.11848931759595871,
-0.4995971620082855,
0.19822575151920319,
-0.29591625928878784,
0.07507595419883728,
0.07210622727870941,
0.12940466403961182,
-0.025103889405727386,
-0.30693694949150085,
-0.18470822274684906,
0.2918294370174408,
-0.05556527152657509,
0.21399329602718353,
-0.37185579538345337,
0.17327788472175598,
-0.01886759139597416,
-0.058756276965141296,
0.020899219438433647,
-0.11194390058517456,
-0.28202369809150696,
0.12327379733324051,
0.13001561164855957,
0.09094647318124771,
-0.12725207209587097,
-0.07461556047201157,
-0.14973147213459015,
-0.2729473114013672,
-0.05867517367005348,
0.12014211714267731,
-0.14512231945991516,
0.5445305109024048,
0.20521685481071472,
0.21756066381931305,
0.00603404501453042,
-0.15861918032169342,
0.2108670026063919,
-0.004367500077933073,
-0.028010116890072823,
0.07996086776256561,
-0.2127118855714798,
0.007449701894074678,
-0.23930877447128296,
-0.18843834102153778,
-0.11001218110322952,
-0.4218486249446869,
0.05333094298839569,
-0.01931067928671837,
0.059869807213544846,
0.544654130935669,
0.22826553881168365,
-0.3585255444049835,
0.280071496963501,
-0.17819425463676453,
-0.39825499057769775,
-0.4273524880409241,
0.31957221031188965,
-0.31285426020622253,
-0.2538580000400543,
-0.20630672574043274,
0.05013164132833481,
0.48970451951026917,
0.27919480204582214,
-0.27910304069519043,
0.37648409605026245,
-0.034397415816783905,
0.3348134458065033,
0.033775217831134796,
-0.10759713500738144,
-0.09079568833112717,
-0.06855800002813339,
-0.17448939383029938,
-0.2793257534503937,
0.026174936443567276,
0.46569085121154785,
-0.26072338223457336,
-0.019823549315333366,
-0.24496561288833618,
0.12260330468416214,
-0.20059485733509064,
0.24113674461841583,
-0.31965669989585876,
-0.048302073031663895,
0.5094330906867981,
-0.15484216809272766,
0.5727548599243164,
-0.07115582376718521,
-0.09737930446863174,
0.143282949924469,
-0.07165743410587311,
-0.059220097959041595,
0.232028990983963,
0.015310055576264858,
-0.2760954201221466,
-0.23555657267570496,
-0.22514089941978455,
-0.03966144472360611,
-0.25548872351646423,
-0.004983030259609222,
0.2677537202835083,
0.1769251674413681,
0.24868549406528473,
0.3248455822467804,
-0.06792416423559189,
-0.060039058327674866,
0.01906505972146988,
-0.03997074067592621,
0.11871083825826645,
-0.12502726912498474,
-0.2889608144760132,
0.17831163108348846,
-0.013492205180227757,
0.001841241493821144,
-0.3442804515361786,
0.3925546109676361,
-0.20814606547355652,
-0.29338300228118896,
-0.0791204497218132,
-0.10858923941850662,
0.5967525243759155,
-0.1412045806646347,
0.31597623229026794,
0.033707041293382645,
0.1940583735704422,
-0.35301080346107483,
-0.19663038849830627,
0.1680062711238861,
0.00990227609872818,
0.12946680188179016,
0.23167486488819122,
-0.18781933188438416,
-0.019704826176166534,
0.024450315162539482,
0.07336059212684631,
-0.3088112473487854,
-0.3403022885322571,
-0.3662998080253601,
-0.2117699682712555,
-0.12747101485729218,
-0.08758093416690826,
0.09594175219535828,
0.10242049396038055,
-0.2121056318283081,
-0.1485169380903244,
-0.19397594034671783,
0.012876362539827824,
0.03404051065444946,
0.20221354067325592,
0.2001572549343109,
-0.027767110615968704,
0.3037213087081909,
0.17352399230003357,
0.16076238453388214,
0.21694296598434448,
0.5979692935943604,
-0.07582999765872955,
-0.0959206223487854,
0.5266185402870178,
-0.09334486722946167,
0.01459302008152008,
0.4121988117694855,
-0.08889764547348022,
-0.1621471643447876,
0.599030613899231,
-0.25491079688072205,
-0.19195356965065002,
0.13596948981285095,
-0.09493811428546906,
-0.17706988751888275,
-0.011786901392042637,
-0.3901786506175995,
-0.05391035974025726,
-0.18997417390346527,
-0.1254575401544571,
0.27430254220962524,
-0.08747050911188126,
-0.33747193217277527,
0.3413420617580414,
0.013463850133121014,
0.6669343113899231,
-0.15001653134822845,
0.24233654141426086,
0.6680607199668884,
-0.04417792707681656,
-0.14343523979187012,
-0.11144007742404938,
-0.08009018748998642,
-0.13046470284461975,
-0.35079225897789,
0.005942252930253744,
-0.10706184804439545,
0.04582125321030617,
0.44892966747283936,
0.27665191888809204,
0.2068142592906952,
-0.05435324087738991,
-0.056825727224349976,
-0.0972287505865097,
0.03189895674586296,
-0.19858932495117188,
-0.14202935993671417,
-0.28392043709754944,
0.1294984221458435,
0.16872966289520264,
-0.03555546700954437,
-0.09485795348882675,
-0.11360161006450653,
-0.008156247437000275,
-0.06712035089731216,
-0.20746219158172607,
0.057453859597444534,
0.32558706402778625,
0.11828668415546417,
0.039618752896785736,
-0.1763242483139038,
-0.21614843606948853,
0.004986012354493141,
-0.07707829028367996,
-0.0064707170240581036,
-0.16108010709285736,
0.32182273268699646,
0.05997021868824959,
0.23900897800922394,
-0.014702207408845425,
0.010330626741051674,
0.366075336933136,
-0.004280746914446354,
-0.2677350342273712,
-0.05218004062771797,
-0.03556011989712715,
-0.29240521788597107,
-0.21641653776168823,
0.16284649074077606,
-0.08694785088300705,
-0.5713104605674744,
0.0190046988427639,
0.0021554110571742058,
0.26666614413261414,
-0.33629366755485535,
0.16062283515930176,
0.024111758917570114,
0.29380297660827637,
-0.025354234501719475,
0.08061771839857101,
-0.3778730630874634,
-0.33827921748161316,
0.6317729353904724,
-0.050522249191999435,
0.14816677570343018,
0.3605039119720459,
0.14631791412830353,
-0.19533903896808624,
-0.23990865051746368,
0.031097177416086197,
0.39964359998703003,
-0.2450539916753769,
0.10259432345628738,
-0.13852620124816895,
-0.056457482278347015,
-0.009298495016992092,
0.22911155223846436,
0.16733725368976593,
-0.07173603773117065,
0.0944775864481926,
-0.3809865117073059,
-0.38124844431877136,
0.08319991081953049,
-0.14195291697978973,
-0.008549824357032776,
0.09707634150981903,
-0.30993369221687317,
-0.06446855515241623,
-0.035148605704307556,
-0.35763370990753174,
-0.2517906427383423,
0.01687946543097496,
-0.11261861026287079,
-0.07133706659078598,
-0.0532367117702961,
-0.14229318499565125,
-0.13779190182685852,
0.20969319343566895,
-0.15158388018608093,
-0.08145643770694733,
-0.25760817527770996,
-0.30950912833213806,
0.10345032811164856,
0.11190242320299149,
-0.00840361975133419,
-0.10344545543193817,
-0.2642019987106323,
-0.3762109875679016,
-0.14167095720767975,
0.1849563866853714,
0.20544295012950897,
-0.038399241864681244,
-0.10331903398036957,
0.09256541728973389,
0.22889909148216248,
-0.2572237551212311,
0.05164148658514023,
0.12570297718048096,
0.005154759157449007,
0.015000412240624428,
-0.03896961733698845,
0.03652474656701088,
-0.055388178676366806,
-0.13481959700584412,
-0.014247057028114796,
0.21460458636283875,
0.05456431955099106,
0.3377086818218231,
-0.3263537287712097,
-0.06248687207698822,
0.10868164151906967,
0.5018452405929565,
0.37890318036079407,
-0.12208220362663269,
-0.2062075436115265,
0.12763521075248718,
0.21410945057868958,
-0.3382135033607483,
-0.05493665114045143,
-0.03985045477747917,
-0.07311386615037918,
0.08041758835315704,
0.23762063682079315,
0.3448210060596466,
-0.3689101040363312,
0.0061464556492865086,
0.05000811442732811,
0.20281656086444855,
0.2926657795906067,
-0.10567523539066315,
0.4106948971748352,
-0.20468632876873016,
0.24208472669124603,
0.3031952381134033,
0.08963248878717422,
0.18918374180793762,
0.7621464729309082,
0.03129403293132782,
0.3833898603916168,
-0.12176217883825302,
0.2255241423845291,
-0.3144139051437378,
-0.7955082058906555,
0.1238585114479065,
-0.06817447394132614,
-0.08573629707098007,
-0.03894266486167908,
-0.0881284773349762,
0.17613431811332703,
-0.06920215487480164,
0.004633523523807526,
-0.1121872067451477,
0.17053845524787903,
-0.24231787025928497,
-0.1774587333202362,
-0.08142771571874619,
-0.23303912580013275,
-0.1158146932721138,
0.17511329054832458,
-0.14451120793819427,
-0.11989939212799072,
0.10757090151309967,
-0.03659454360604286,
0.0335814394056797,
-0.31786733865737915,
0.13028614223003387,
-0.012576044537127018,
-0.26005464792251587,
-0.22034473717212677,
0.277095228433609,
0.2270638346672058,
-0.13111110031604767,
0.6092444658279419,
-0.01951056718826294,
0.3621789813041687,
0.21348361670970917,
0.22981052100658417,
-0.16356885433197021,
0.090635284781456,
-0.013769809156656265,
-0.44255486130714417,
0.4691876471042633,
0.23079228401184082,
0.5626729130744934,
0.3801555633544922,
0.21465133130550385,
-0.15452153980731964,
-0.03774433583021164,
0.501735508441925,
-0.15166400372982025,
-0.14502635598182678,
0.13489197194576263,
0.09793753176927567,
-0.10224128514528275,
-0.03320519998669624,
-0.049530789256095886,
-0.10164959728717804,
0.06285586208105087,
0.2253022938966751,
0.10923131555318832,
0.3628467321395874,
-0.2437894493341446,
0.10387911647558212,
-0.07260219007730484,
0.7275210618972778,
-0.11388954520225525,
0.31450262665748596,
-0.14506779611110687,
-0.16836082935333252,
-0.7731072306632996,
0.3513866662979126,
-0.20077252388000488,
0.06661296635866165,
0.06331866979598999,
0.029755083844065666,
0.41485396027565,
-0.11288625001907349,
-0.0800398513674736,
0.1428557187318802,
0.1524868905544281,
0.1505807638168335,
-0.20268622040748596,
-0.13896554708480835,
-0.01139735896140337,
0.17981576919555664,
-0.3373463451862335,
-0.2897776961326599,
0.40666234493255615,
-0.07353432476520538,
0.1115684062242508,
0.0689530074596405,
-0.31208696961402893,
0.07558263838291168,
0.42266586422920227,
0.49982401728630066,
-0.10520342737436295,
0.580101490020752,
-0.1616331934928894,
0.14275193214416504,
-0.5877315998077393,
-0.3523682951927185,
0.017279699444770813,
0.26304879784584045,
0.0002599917643237859,
-0.06098342686891556,
-0.08732031285762787,
0.09828723967075348,
-0.08128265291452408,
0.46559950709342957,
0.11476744711399078,
-0.07733463495969772,
-0.21055133640766144,
0.15803837776184082,
-0.06955400109291077,
-0.1147930920124054,
0.12361614406108856,
-0.013845818117260933,
-0.07857328653335571,
0.04895605891942978,
-0.09651854634284973,
-0.08660651743412018,
0.3535487949848175,
-0.45952001214027405,
-0.2850203812122345,
-0.13613058626651764,
0.1339835822582245,
0.3011189103126526,
-0.022271551191806793,
-0.19134202599525452,
0.08883940428495407,
0.2659738063812256,
-0.15435218811035156,
-0.05316588655114174,
0.14577855169773102,
-0.15370042622089386,
0.0641770213842392,
-0.0658361166715622,
-0.05038934573531151,
0.027253685519099236,
-0.5360069870948792,
-0.02152854949235916,
-0.1054135113954544
] |
https://github.com/huggingface/datasets/issues/5274
|
load_dataset possibly broken for gated datasets?
|
This is a bug in the script, indeed. The most robust fix is to use a relative path instead of `hf_hub_url`, which does not depend on `huggingface_hub`'s version 🙂. I've opened a PR here: https://huggingface.co/datasets/facebook/winoground/discussions/3.
|
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
| 35 |
load_dataset possibly broken for gated datasets?
|
[
-0.6134456396102905,
0.13876403868198395,
-0.13353587687015533,
0.2112499475479126,
0.261823832988739,
-0.0352916419506073,
0.8927196860313416,
0.15922442078590393,
0.5084536671638489,
-0.12161698192358017,
-0.31658250093460083,
0.10621646791696548,
-0.05615757778286934,
0.46598726511001587,
-0.09058697521686554,
0.17812606692314148,
0.2234235405921936,
-0.015385911799967289,
-0.3836742341518402,
-0.11422280967235565,
-0.2242521196603775,
0.18603993952274323,
-0.32835233211517334,
0.07419871538877487,
-0.25605112314224243,
0.033075299113988876,
0.1158093735575676,
0.5218628644943237,
0.06492920964956284,
-0.017099888995289803,
0.3110398054122925,
0.38990262150764465,
0.08048318326473236,
0.3366941511631012,
-0.00010702236613724381,
0.07289056479930878,
0.0687304139137268,
-0.10304958373308182,
-0.3576889634132385,
0.11532788723707199,
-0.361736923456192,
-0.2884056866168976,
-0.022667475044727325,
-0.12107449769973755,
0.03332933038473129,
-0.5175758004188538,
-0.02388223074376583,
-0.21581976115703583,
0.27714040875434875,
0.06627481430768967,
0.3163925111293793,
0.2377837747335434,
-0.18625198304653168,
-0.31117162108421326,
-0.11788641661405563,
0.0840945616364479,
0.023240920156240463,
0.41469234228134155,
0.09289742261171341,
-0.25139209628105164,
-0.4029277265071869,
-0.005995878949761391,
-0.15718117356300354,
-0.06879166513681412,
0.34438297152519226,
-0.22122178971767426,
-0.1960671991109848,
0.1544109433889389,
0.026539623737335205,
0.24253882467746735,
0.23385490477085114,
-0.06213019788265228,
-0.10705053061246872,
-0.3953525424003601,
-0.39077988266944885,
-0.14917537569999695,
0.18367744982242584,
0.008722551167011261,
0.027631113305687904,
0.32546117901802063,
-0.2362491935491562,
-0.10078354924917221,
0.09677276760339737,
-0.030377497896552086,
-0.3079310655593872,
0.42219817638397217,
0.06302725523710251,
0.157456174492836,
-0.18204207718372345,
0.09519967436790466,
0.47089794278144836,
0.08574733138084412,
-0.06204421818256378,
-0.19136275351047516,
-0.29553523659706116,
0.1813739389181137,
0.22854232788085938,
0.14764901995658875,
0.2028432935476303,
0.4157983958721161,
-0.11161179095506668,
0.3507339656352997,
0.1389515995979309,
-0.030313408002257347,
0.5046567320823669,
0.013999167829751968,
0.05774889886379242,
-0.005326838232576847,
0.38536158204078674,
0.15364044904708862,
-0.3459326922893524,
-0.00914484541863203,
-0.03869738057255745,
-0.3928492069244385,
0.2222752571105957,
-0.17335936427116394,
0.026059549301862717,
-0.07628815621137619,
-0.33916720747947693,
0.0986514762043953,
0.3787166476249695,
-0.0351220928132534,
0.15638050436973572,
0.29868942499160767,
0.35379573702812195,
0.007422677706927061,
-0.25019389390945435,
0.27170512080192566,
-0.14183969795703888,
-0.5083118081092834,
-0.33435317873954773,
-0.34786325693130493,
-0.2673625946044922,
0.03258223459124565,
0.19055232405662537,
-0.014034183695912361,
0.2996397912502289,
-0.10940185189247131,
-0.13335686922073364,
0.014861071482300758,
-0.11058221012353897,
0.017939958721399307,
0.28700265288352966,
0.31237754225730896,
0.3005122244358063,
0.06464941054582596,
0.25316691398620605,
-0.09984190762042999,
-0.047992974519729614,
0.09403367340564728,
-0.04113294929265976,
-0.32512402534484863,
0.1710938960313797,
0.2176751047372818,
-0.43914318084716797,
0.04407339170575142,
-0.0522504523396492,
0.25823837518692017,
0.15816061198711395,
-0.3323575258255005,
0.013568946160376072,
-0.04866691678762436,
-0.28419193625450134,
-0.1605195701122284,
0.08148497343063354,
0.5028259754180908,
-0.3308963179588318,
-0.009425518102943897,
-0.11008088290691376,
-0.2494041621685028,
0.16174325346946716,
0.2150464951992035,
-0.2940320372581482,
0.11906948685646057,
-0.2747874855995178,
0.21973080933094025,
-0.0019188086735084653,
-0.2591986656188965,
-0.39594176411628723,
0.46385863423347473,
0.03224489092826843,
0.11401856690645218,
0.0515647828578949,
-0.0424954891204834,
0.18685007095336914,
0.02620496042072773,
0.27809077501296997,
0.3115726709365845,
0.1806468963623047,
-0.10531032085418701,
-0.10234087705612183,
-0.016395356506109238,
0.31056123971939087,
0.30237454175949097,
0.14069871604442596,
0.1293964385986328,
0.3693041503429413,
0.13849225640296936,
0.28500714898109436,
-0.009262964129447937,
0.10816413164138794,
0.04555744677782059,
0.025660766288638115,
-0.15739871561527252,
0.017237035557627678,
-0.13793309032917023,
-0.32380855083465576,
0.11626515537500381,
0.1929509937763214,
-0.011177957989275455,
0.28930047154426575,
0.020027510821819305,
-0.30646175146102905,
0.1489776223897934,
-0.13062837719917297,
-0.15514624118804932,
0.2548949122428894,
0.05902879312634468,
-0.33434155583381653,
-0.19634254276752472,
-0.08458109945058823,
0.44236835837364197,
-0.30108171701431274,
-0.05615878477692604,
-0.036444004625082016,
0.10723679512739182,
0.19847352802753448,
-0.26037460565567017,
0.07666479796171188,
0.037188541144132614,
0.09103266894817352,
-0.009970461018383503,
-0.007543682120740414,
0.4015762209892273,
0.13827276229858398,
-0.07049618661403656,
-0.25967204570770264,
0.00974286999553442,
-0.06006286293268204,
0.003317083464935422,
-0.05451852083206177,
-0.21277786791324615,
-0.0010405301582068205,
-0.11934814602136612,
-0.16449594497680664,
0.45049789547920227,
-0.21807707846164703,
0.03586387261748314,
0.08328846096992493,
0.07304549217224121,
0.31749585270881653,
-0.14066556096076965,
-0.12227396667003632,
-0.1382572501897812,
0.08492118120193481,
0.021191492676734924,
0.01932893879711628,
0.2944274842739105,
0.08154971897602081,
0.11186060309410095,
0.24688217043876648,
-0.005465389229357243,
0.22656920552253723,
-0.08972280472517014,
-0.012051430530846119,
-0.19812250137329102,
0.3338440954685211,
0.4751116633415222,
0.5373748540878296,
0.2714194655418396,
0.22295354306697845,
-0.004796728491783142,
-0.042580604553222656,
-0.3022957444190979,
0.22107316553592682,
-0.20557986199855804,
0.130303293466568,
0.30847352743148804,
0.21186167001724243,
-0.34511736035346985,
-0.48983582854270935,
0.019563565030694008,
0.22248175740242004,
0.11848931759595871,
-0.4995971620082855,
0.19822575151920319,
-0.29591625928878784,
0.07507595419883728,
0.07210622727870941,
0.12940466403961182,
-0.025103889405727386,
-0.30693694949150085,
-0.18470822274684906,
0.2918294370174408,
-0.05556527152657509,
0.21399329602718353,
-0.37185579538345337,
0.17327788472175598,
-0.01886759139597416,
-0.058756276965141296,
0.020899219438433647,
-0.11194390058517456,
-0.28202369809150696,
0.12327379733324051,
0.13001561164855957,
0.09094647318124771,
-0.12725207209587097,
-0.07461556047201157,
-0.14973147213459015,
-0.2729473114013672,
-0.05867517367005348,
0.12014211714267731,
-0.14512231945991516,
0.5445305109024048,
0.20521685481071472,
0.21756066381931305,
0.00603404501453042,
-0.15861918032169342,
0.2108670026063919,
-0.004367500077933073,
-0.028010116890072823,
0.07996086776256561,
-0.2127118855714798,
0.007449701894074678,
-0.23930877447128296,
-0.18843834102153778,
-0.11001218110322952,
-0.4218486249446869,
0.05333094298839569,
-0.01931067928671837,
0.059869807213544846,
0.544654130935669,
0.22826553881168365,
-0.3585255444049835,
0.280071496963501,
-0.17819425463676453,
-0.39825499057769775,
-0.4273524880409241,
0.31957221031188965,
-0.31285426020622253,
-0.2538580000400543,
-0.20630672574043274,
0.05013164132833481,
0.48970451951026917,
0.27919480204582214,
-0.27910304069519043,
0.37648409605026245,
-0.034397415816783905,
0.3348134458065033,
0.033775217831134796,
-0.10759713500738144,
-0.09079568833112717,
-0.06855800002813339,
-0.17448939383029938,
-0.2793257534503937,
0.026174936443567276,
0.46569085121154785,
-0.26072338223457336,
-0.019823549315333366,
-0.24496561288833618,
0.12260330468416214,
-0.20059485733509064,
0.24113674461841583,
-0.31965669989585876,
-0.048302073031663895,
0.5094330906867981,
-0.15484216809272766,
0.5727548599243164,
-0.07115582376718521,
-0.09737930446863174,
0.143282949924469,
-0.07165743410587311,
-0.059220097959041595,
0.232028990983963,
0.015310055576264858,
-0.2760954201221466,
-0.23555657267570496,
-0.22514089941978455,
-0.03966144472360611,
-0.25548872351646423,
-0.004983030259609222,
0.2677537202835083,
0.1769251674413681,
0.24868549406528473,
0.3248455822467804,
-0.06792416423559189,
-0.060039058327674866,
0.01906505972146988,
-0.03997074067592621,
0.11871083825826645,
-0.12502726912498474,
-0.2889608144760132,
0.17831163108348846,
-0.013492205180227757,
0.001841241493821144,
-0.3442804515361786,
0.3925546109676361,
-0.20814606547355652,
-0.29338300228118896,
-0.0791204497218132,
-0.10858923941850662,
0.5967525243759155,
-0.1412045806646347,
0.31597623229026794,
0.033707041293382645,
0.1940583735704422,
-0.35301080346107483,
-0.19663038849830627,
0.1680062711238861,
0.00990227609872818,
0.12946680188179016,
0.23167486488819122,
-0.18781933188438416,
-0.019704826176166534,
0.024450315162539482,
0.07336059212684631,
-0.3088112473487854,
-0.3403022885322571,
-0.3662998080253601,
-0.2117699682712555,
-0.12747101485729218,
-0.08758093416690826,
0.09594175219535828,
0.10242049396038055,
-0.2121056318283081,
-0.1485169380903244,
-0.19397594034671783,
0.012876362539827824,
0.03404051065444946,
0.20221354067325592,
0.2001572549343109,
-0.027767110615968704,
0.3037213087081909,
0.17352399230003357,
0.16076238453388214,
0.21694296598434448,
0.5979692935943604,
-0.07582999765872955,
-0.0959206223487854,
0.5266185402870178,
-0.09334486722946167,
0.01459302008152008,
0.4121988117694855,
-0.08889764547348022,
-0.1621471643447876,
0.599030613899231,
-0.25491079688072205,
-0.19195356965065002,
0.13596948981285095,
-0.09493811428546906,
-0.17706988751888275,
-0.011786901392042637,
-0.3901786506175995,
-0.05391035974025726,
-0.18997417390346527,
-0.1254575401544571,
0.27430254220962524,
-0.08747050911188126,
-0.33747193217277527,
0.3413420617580414,
0.013463850133121014,
0.6669343113899231,
-0.15001653134822845,
0.24233654141426086,
0.6680607199668884,
-0.04417792707681656,
-0.14343523979187012,
-0.11144007742404938,
-0.08009018748998642,
-0.13046470284461975,
-0.35079225897789,
0.005942252930253744,
-0.10706184804439545,
0.04582125321030617,
0.44892966747283936,
0.27665191888809204,
0.2068142592906952,
-0.05435324087738991,
-0.056825727224349976,
-0.0972287505865097,
0.03189895674586296,
-0.19858932495117188,
-0.14202935993671417,
-0.28392043709754944,
0.1294984221458435,
0.16872966289520264,
-0.03555546700954437,
-0.09485795348882675,
-0.11360161006450653,
-0.008156247437000275,
-0.06712035089731216,
-0.20746219158172607,
0.057453859597444534,
0.32558706402778625,
0.11828668415546417,
0.039618752896785736,
-0.1763242483139038,
-0.21614843606948853,
0.004986012354493141,
-0.07707829028367996,
-0.0064707170240581036,
-0.16108010709285736,
0.32182273268699646,
0.05997021868824959,
0.23900897800922394,
-0.014702207408845425,
0.010330626741051674,
0.366075336933136,
-0.004280746914446354,
-0.2677350342273712,
-0.05218004062771797,
-0.03556011989712715,
-0.29240521788597107,
-0.21641653776168823,
0.16284649074077606,
-0.08694785088300705,
-0.5713104605674744,
0.0190046988427639,
0.0021554110571742058,
0.26666614413261414,
-0.33629366755485535,
0.16062283515930176,
0.024111758917570114,
0.29380297660827637,
-0.025354234501719475,
0.08061771839857101,
-0.3778730630874634,
-0.33827921748161316,
0.6317729353904724,
-0.050522249191999435,
0.14816677570343018,
0.3605039119720459,
0.14631791412830353,
-0.19533903896808624,
-0.23990865051746368,
0.031097177416086197,
0.39964359998703003,
-0.2450539916753769,
0.10259432345628738,
-0.13852620124816895,
-0.056457482278347015,
-0.009298495016992092,
0.22911155223846436,
0.16733725368976593,
-0.07173603773117065,
0.0944775864481926,
-0.3809865117073059,
-0.38124844431877136,
0.08319991081953049,
-0.14195291697978973,
-0.008549824357032776,
0.09707634150981903,
-0.30993369221687317,
-0.06446855515241623,
-0.035148605704307556,
-0.35763370990753174,
-0.2517906427383423,
0.01687946543097496,
-0.11261861026287079,
-0.07133706659078598,
-0.0532367117702961,
-0.14229318499565125,
-0.13779190182685852,
0.20969319343566895,
-0.15158388018608093,
-0.08145643770694733,
-0.25760817527770996,
-0.30950912833213806,
0.10345032811164856,
0.11190242320299149,
-0.00840361975133419,
-0.10344545543193817,
-0.2642019987106323,
-0.3762109875679016,
-0.14167095720767975,
0.1849563866853714,
0.20544295012950897,
-0.038399241864681244,
-0.10331903398036957,
0.09256541728973389,
0.22889909148216248,
-0.2572237551212311,
0.05164148658514023,
0.12570297718048096,
0.005154759157449007,
0.015000412240624428,
-0.03896961733698845,
0.03652474656701088,
-0.055388178676366806,
-0.13481959700584412,
-0.014247057028114796,
0.21460458636283875,
0.05456431955099106,
0.3377086818218231,
-0.3263537287712097,
-0.06248687207698822,
0.10868164151906967,
0.5018452405929565,
0.37890318036079407,
-0.12208220362663269,
-0.2062075436115265,
0.12763521075248718,
0.21410945057868958,
-0.3382135033607483,
-0.05493665114045143,
-0.03985045477747917,
-0.07311386615037918,
0.08041758835315704,
0.23762063682079315,
0.3448210060596466,
-0.3689101040363312,
0.0061464556492865086,
0.05000811442732811,
0.20281656086444855,
0.2926657795906067,
-0.10567523539066315,
0.4106948971748352,
-0.20468632876873016,
0.24208472669124603,
0.3031952381134033,
0.08963248878717422,
0.18918374180793762,
0.7621464729309082,
0.03129403293132782,
0.3833898603916168,
-0.12176217883825302,
0.2255241423845291,
-0.3144139051437378,
-0.7955082058906555,
0.1238585114479065,
-0.06817447394132614,
-0.08573629707098007,
-0.03894266486167908,
-0.0881284773349762,
0.17613431811332703,
-0.06920215487480164,
0.004633523523807526,
-0.1121872067451477,
0.17053845524787903,
-0.24231787025928497,
-0.1774587333202362,
-0.08142771571874619,
-0.23303912580013275,
-0.1158146932721138,
0.17511329054832458,
-0.14451120793819427,
-0.11989939212799072,
0.10757090151309967,
-0.03659454360604286,
0.0335814394056797,
-0.31786733865737915,
0.13028614223003387,
-0.012576044537127018,
-0.26005464792251587,
-0.22034473717212677,
0.277095228433609,
0.2270638346672058,
-0.13111110031604767,
0.6092444658279419,
-0.01951056718826294,
0.3621789813041687,
0.21348361670970917,
0.22981052100658417,
-0.16356885433197021,
0.090635284781456,
-0.013769809156656265,
-0.44255486130714417,
0.4691876471042633,
0.23079228401184082,
0.5626729130744934,
0.3801555633544922,
0.21465133130550385,
-0.15452153980731964,
-0.03774433583021164,
0.501735508441925,
-0.15166400372982025,
-0.14502635598182678,
0.13489197194576263,
0.09793753176927567,
-0.10224128514528275,
-0.03320519998669624,
-0.049530789256095886,
-0.10164959728717804,
0.06285586208105087,
0.2253022938966751,
0.10923131555318832,
0.3628467321395874,
-0.2437894493341446,
0.10387911647558212,
-0.07260219007730484,
0.7275210618972778,
-0.11388954520225525,
0.31450262665748596,
-0.14506779611110687,
-0.16836082935333252,
-0.7731072306632996,
0.3513866662979126,
-0.20077252388000488,
0.06661296635866165,
0.06331866979598999,
0.029755083844065666,
0.41485396027565,
-0.11288625001907349,
-0.0800398513674736,
0.1428557187318802,
0.1524868905544281,
0.1505807638168335,
-0.20268622040748596,
-0.13896554708480835,
-0.01139735896140337,
0.17981576919555664,
-0.3373463451862335,
-0.2897776961326599,
0.40666234493255615,
-0.07353432476520538,
0.1115684062242508,
0.0689530074596405,
-0.31208696961402893,
0.07558263838291168,
0.42266586422920227,
0.49982401728630066,
-0.10520342737436295,
0.580101490020752,
-0.1616331934928894,
0.14275193214416504,
-0.5877315998077393,
-0.3523682951927185,
0.017279699444770813,
0.26304879784584045,
0.0002599917643237859,
-0.06098342686891556,
-0.08732031285762787,
0.09828723967075348,
-0.08128265291452408,
0.46559950709342957,
0.11476744711399078,
-0.07733463495969772,
-0.21055133640766144,
0.15803837776184082,
-0.06955400109291077,
-0.1147930920124054,
0.12361614406108856,
-0.013845818117260933,
-0.07857328653335571,
0.04895605891942978,
-0.09651854634284973,
-0.08660651743412018,
0.3535487949848175,
-0.45952001214027405,
-0.2850203812122345,
-0.13613058626651764,
0.1339835822582245,
0.3011189103126526,
-0.022271551191806793,
-0.19134202599525452,
0.08883940428495407,
0.2659738063812256,
-0.15435218811035156,
-0.05316588655114174,
0.14577855169773102,
-0.15370042622089386,
0.0641770213842392,
-0.0658361166715622,
-0.05038934573531151,
0.027253685519099236,
-0.5360069870948792,
-0.02152854949235916,
-0.1054135113954544
] |
https://github.com/huggingface/datasets/issues/5274
|
load_dataset possibly broken for gated datasets?
|
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name':
tokenizer = AutoTokenizer.from_pretrained(ARGS.model_path, trust_remote_code=True)
Please handle automatically for local path and repo name inside, otherwise users always get confused about this
|
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
| 32 |
load_dataset possibly broken for gated datasets?
|
[
-0.6134456396102905,
0.13876403868198395,
-0.13353587687015533,
0.2112499475479126,
0.261823832988739,
-0.0352916419506073,
0.8927196860313416,
0.15922442078590393,
0.5084536671638489,
-0.12161698192358017,
-0.31658250093460083,
0.10621646791696548,
-0.05615757778286934,
0.46598726511001587,
-0.09058697521686554,
0.17812606692314148,
0.2234235405921936,
-0.015385911799967289,
-0.3836742341518402,
-0.11422280967235565,
-0.2242521196603775,
0.18603993952274323,
-0.32835233211517334,
0.07419871538877487,
-0.25605112314224243,
0.033075299113988876,
0.1158093735575676,
0.5218628644943237,
0.06492920964956284,
-0.017099888995289803,
0.3110398054122925,
0.38990262150764465,
0.08048318326473236,
0.3366941511631012,
-0.00010702236613724381,
0.07289056479930878,
0.0687304139137268,
-0.10304958373308182,
-0.3576889634132385,
0.11532788723707199,
-0.361736923456192,
-0.2884056866168976,
-0.022667475044727325,
-0.12107449769973755,
0.03332933038473129,
-0.5175758004188538,
-0.02388223074376583,
-0.21581976115703583,
0.27714040875434875,
0.06627481430768967,
0.3163925111293793,
0.2377837747335434,
-0.18625198304653168,
-0.31117162108421326,
-0.11788641661405563,
0.0840945616364479,
0.023240920156240463,
0.41469234228134155,
0.09289742261171341,
-0.25139209628105164,
-0.4029277265071869,
-0.005995878949761391,
-0.15718117356300354,
-0.06879166513681412,
0.34438297152519226,
-0.22122178971767426,
-0.1960671991109848,
0.1544109433889389,
0.026539623737335205,
0.24253882467746735,
0.23385490477085114,
-0.06213019788265228,
-0.10705053061246872,
-0.3953525424003601,
-0.39077988266944885,
-0.14917537569999695,
0.18367744982242584,
0.008722551167011261,
0.027631113305687904,
0.32546117901802063,
-0.2362491935491562,
-0.10078354924917221,
0.09677276760339737,
-0.030377497896552086,
-0.3079310655593872,
0.42219817638397217,
0.06302725523710251,
0.157456174492836,
-0.18204207718372345,
0.09519967436790466,
0.47089794278144836,
0.08574733138084412,
-0.06204421818256378,
-0.19136275351047516,
-0.29553523659706116,
0.1813739389181137,
0.22854232788085938,
0.14764901995658875,
0.2028432935476303,
0.4157983958721161,
-0.11161179095506668,
0.3507339656352997,
0.1389515995979309,
-0.030313408002257347,
0.5046567320823669,
0.013999167829751968,
0.05774889886379242,
-0.005326838232576847,
0.38536158204078674,
0.15364044904708862,
-0.3459326922893524,
-0.00914484541863203,
-0.03869738057255745,
-0.3928492069244385,
0.2222752571105957,
-0.17335936427116394,
0.026059549301862717,
-0.07628815621137619,
-0.33916720747947693,
0.0986514762043953,
0.3787166476249695,
-0.0351220928132534,
0.15638050436973572,
0.29868942499160767,
0.35379573702812195,
0.007422677706927061,
-0.25019389390945435,
0.27170512080192566,
-0.14183969795703888,
-0.5083118081092834,
-0.33435317873954773,
-0.34786325693130493,
-0.2673625946044922,
0.03258223459124565,
0.19055232405662537,
-0.014034183695912361,
0.2996397912502289,
-0.10940185189247131,
-0.13335686922073364,
0.014861071482300758,
-0.11058221012353897,
0.017939958721399307,
0.28700265288352966,
0.31237754225730896,
0.3005122244358063,
0.06464941054582596,
0.25316691398620605,
-0.09984190762042999,
-0.047992974519729614,
0.09403367340564728,
-0.04113294929265976,
-0.32512402534484863,
0.1710938960313797,
0.2176751047372818,
-0.43914318084716797,
0.04407339170575142,
-0.0522504523396492,
0.25823837518692017,
0.15816061198711395,
-0.3323575258255005,
0.013568946160376072,
-0.04866691678762436,
-0.28419193625450134,
-0.1605195701122284,
0.08148497343063354,
0.5028259754180908,
-0.3308963179588318,
-0.009425518102943897,
-0.11008088290691376,
-0.2494041621685028,
0.16174325346946716,
0.2150464951992035,
-0.2940320372581482,
0.11906948685646057,
-0.2747874855995178,
0.21973080933094025,
-0.0019188086735084653,
-0.2591986656188965,
-0.39594176411628723,
0.46385863423347473,
0.03224489092826843,
0.11401856690645218,
0.0515647828578949,
-0.0424954891204834,
0.18685007095336914,
0.02620496042072773,
0.27809077501296997,
0.3115726709365845,
0.1806468963623047,
-0.10531032085418701,
-0.10234087705612183,
-0.016395356506109238,
0.31056123971939087,
0.30237454175949097,
0.14069871604442596,
0.1293964385986328,
0.3693041503429413,
0.13849225640296936,
0.28500714898109436,
-0.009262964129447937,
0.10816413164138794,
0.04555744677782059,
0.025660766288638115,
-0.15739871561527252,
0.017237035557627678,
-0.13793309032917023,
-0.32380855083465576,
0.11626515537500381,
0.1929509937763214,
-0.011177957989275455,
0.28930047154426575,
0.020027510821819305,
-0.30646175146102905,
0.1489776223897934,
-0.13062837719917297,
-0.15514624118804932,
0.2548949122428894,
0.05902879312634468,
-0.33434155583381653,
-0.19634254276752472,
-0.08458109945058823,
0.44236835837364197,
-0.30108171701431274,
-0.05615878477692604,
-0.036444004625082016,
0.10723679512739182,
0.19847352802753448,
-0.26037460565567017,
0.07666479796171188,
0.037188541144132614,
0.09103266894817352,
-0.009970461018383503,
-0.007543682120740414,
0.4015762209892273,
0.13827276229858398,
-0.07049618661403656,
-0.25967204570770264,
0.00974286999553442,
-0.06006286293268204,
0.003317083464935422,
-0.05451852083206177,
-0.21277786791324615,
-0.0010405301582068205,
-0.11934814602136612,
-0.16449594497680664,
0.45049789547920227,
-0.21807707846164703,
0.03586387261748314,
0.08328846096992493,
0.07304549217224121,
0.31749585270881653,
-0.14066556096076965,
-0.12227396667003632,
-0.1382572501897812,
0.08492118120193481,
0.021191492676734924,
0.01932893879711628,
0.2944274842739105,
0.08154971897602081,
0.11186060309410095,
0.24688217043876648,
-0.005465389229357243,
0.22656920552253723,
-0.08972280472517014,
-0.012051430530846119,
-0.19812250137329102,
0.3338440954685211,
0.4751116633415222,
0.5373748540878296,
0.2714194655418396,
0.22295354306697845,
-0.004796728491783142,
-0.042580604553222656,
-0.3022957444190979,
0.22107316553592682,
-0.20557986199855804,
0.130303293466568,
0.30847352743148804,
0.21186167001724243,
-0.34511736035346985,
-0.48983582854270935,
0.019563565030694008,
0.22248175740242004,
0.11848931759595871,
-0.4995971620082855,
0.19822575151920319,
-0.29591625928878784,
0.07507595419883728,
0.07210622727870941,
0.12940466403961182,
-0.025103889405727386,
-0.30693694949150085,
-0.18470822274684906,
0.2918294370174408,
-0.05556527152657509,
0.21399329602718353,
-0.37185579538345337,
0.17327788472175598,
-0.01886759139597416,
-0.058756276965141296,
0.020899219438433647,
-0.11194390058517456,
-0.28202369809150696,
0.12327379733324051,
0.13001561164855957,
0.09094647318124771,
-0.12725207209587097,
-0.07461556047201157,
-0.14973147213459015,
-0.2729473114013672,
-0.05867517367005348,
0.12014211714267731,
-0.14512231945991516,
0.5445305109024048,
0.20521685481071472,
0.21756066381931305,
0.00603404501453042,
-0.15861918032169342,
0.2108670026063919,
-0.004367500077933073,
-0.028010116890072823,
0.07996086776256561,
-0.2127118855714798,
0.007449701894074678,
-0.23930877447128296,
-0.18843834102153778,
-0.11001218110322952,
-0.4218486249446869,
0.05333094298839569,
-0.01931067928671837,
0.059869807213544846,
0.544654130935669,
0.22826553881168365,
-0.3585255444049835,
0.280071496963501,
-0.17819425463676453,
-0.39825499057769775,
-0.4273524880409241,
0.31957221031188965,
-0.31285426020622253,
-0.2538580000400543,
-0.20630672574043274,
0.05013164132833481,
0.48970451951026917,
0.27919480204582214,
-0.27910304069519043,
0.37648409605026245,
-0.034397415816783905,
0.3348134458065033,
0.033775217831134796,
-0.10759713500738144,
-0.09079568833112717,
-0.06855800002813339,
-0.17448939383029938,
-0.2793257534503937,
0.026174936443567276,
0.46569085121154785,
-0.26072338223457336,
-0.019823549315333366,
-0.24496561288833618,
0.12260330468416214,
-0.20059485733509064,
0.24113674461841583,
-0.31965669989585876,
-0.048302073031663895,
0.5094330906867981,
-0.15484216809272766,
0.5727548599243164,
-0.07115582376718521,
-0.09737930446863174,
0.143282949924469,
-0.07165743410587311,
-0.059220097959041595,
0.232028990983963,
0.015310055576264858,
-0.2760954201221466,
-0.23555657267570496,
-0.22514089941978455,
-0.03966144472360611,
-0.25548872351646423,
-0.004983030259609222,
0.2677537202835083,
0.1769251674413681,
0.24868549406528473,
0.3248455822467804,
-0.06792416423559189,
-0.060039058327674866,
0.01906505972146988,
-0.03997074067592621,
0.11871083825826645,
-0.12502726912498474,
-0.2889608144760132,
0.17831163108348846,
-0.013492205180227757,
0.001841241493821144,
-0.3442804515361786,
0.3925546109676361,
-0.20814606547355652,
-0.29338300228118896,
-0.0791204497218132,
-0.10858923941850662,
0.5967525243759155,
-0.1412045806646347,
0.31597623229026794,
0.033707041293382645,
0.1940583735704422,
-0.35301080346107483,
-0.19663038849830627,
0.1680062711238861,
0.00990227609872818,
0.12946680188179016,
0.23167486488819122,
-0.18781933188438416,
-0.019704826176166534,
0.024450315162539482,
0.07336059212684631,
-0.3088112473487854,
-0.3403022885322571,
-0.3662998080253601,
-0.2117699682712555,
-0.12747101485729218,
-0.08758093416690826,
0.09594175219535828,
0.10242049396038055,
-0.2121056318283081,
-0.1485169380903244,
-0.19397594034671783,
0.012876362539827824,
0.03404051065444946,
0.20221354067325592,
0.2001572549343109,
-0.027767110615968704,
0.3037213087081909,
0.17352399230003357,
0.16076238453388214,
0.21694296598434448,
0.5979692935943604,
-0.07582999765872955,
-0.0959206223487854,
0.5266185402870178,
-0.09334486722946167,
0.01459302008152008,
0.4121988117694855,
-0.08889764547348022,
-0.1621471643447876,
0.599030613899231,
-0.25491079688072205,
-0.19195356965065002,
0.13596948981285095,
-0.09493811428546906,
-0.17706988751888275,
-0.011786901392042637,
-0.3901786506175995,
-0.05391035974025726,
-0.18997417390346527,
-0.1254575401544571,
0.27430254220962524,
-0.08747050911188126,
-0.33747193217277527,
0.3413420617580414,
0.013463850133121014,
0.6669343113899231,
-0.15001653134822845,
0.24233654141426086,
0.6680607199668884,
-0.04417792707681656,
-0.14343523979187012,
-0.11144007742404938,
-0.08009018748998642,
-0.13046470284461975,
-0.35079225897789,
0.005942252930253744,
-0.10706184804439545,
0.04582125321030617,
0.44892966747283936,
0.27665191888809204,
0.2068142592906952,
-0.05435324087738991,
-0.056825727224349976,
-0.0972287505865097,
0.03189895674586296,
-0.19858932495117188,
-0.14202935993671417,
-0.28392043709754944,
0.1294984221458435,
0.16872966289520264,
-0.03555546700954437,
-0.09485795348882675,
-0.11360161006450653,
-0.008156247437000275,
-0.06712035089731216,
-0.20746219158172607,
0.057453859597444534,
0.32558706402778625,
0.11828668415546417,
0.039618752896785736,
-0.1763242483139038,
-0.21614843606948853,
0.004986012354493141,
-0.07707829028367996,
-0.0064707170240581036,
-0.16108010709285736,
0.32182273268699646,
0.05997021868824959,
0.23900897800922394,
-0.014702207408845425,
0.010330626741051674,
0.366075336933136,
-0.004280746914446354,
-0.2677350342273712,
-0.05218004062771797,
-0.03556011989712715,
-0.29240521788597107,
-0.21641653776168823,
0.16284649074077606,
-0.08694785088300705,
-0.5713104605674744,
0.0190046988427639,
0.0021554110571742058,
0.26666614413261414,
-0.33629366755485535,
0.16062283515930176,
0.024111758917570114,
0.29380297660827637,
-0.025354234501719475,
0.08061771839857101,
-0.3778730630874634,
-0.33827921748161316,
0.6317729353904724,
-0.050522249191999435,
0.14816677570343018,
0.3605039119720459,
0.14631791412830353,
-0.19533903896808624,
-0.23990865051746368,
0.031097177416086197,
0.39964359998703003,
-0.2450539916753769,
0.10259432345628738,
-0.13852620124816895,
-0.056457482278347015,
-0.009298495016992092,
0.22911155223846436,
0.16733725368976593,
-0.07173603773117065,
0.0944775864481926,
-0.3809865117073059,
-0.38124844431877136,
0.08319991081953049,
-0.14195291697978973,
-0.008549824357032776,
0.09707634150981903,
-0.30993369221687317,
-0.06446855515241623,
-0.035148605704307556,
-0.35763370990753174,
-0.2517906427383423,
0.01687946543097496,
-0.11261861026287079,
-0.07133706659078598,
-0.0532367117702961,
-0.14229318499565125,
-0.13779190182685852,
0.20969319343566895,
-0.15158388018608093,
-0.08145643770694733,
-0.25760817527770996,
-0.30950912833213806,
0.10345032811164856,
0.11190242320299149,
-0.00840361975133419,
-0.10344545543193817,
-0.2642019987106323,
-0.3762109875679016,
-0.14167095720767975,
0.1849563866853714,
0.20544295012950897,
-0.038399241864681244,
-0.10331903398036957,
0.09256541728973389,
0.22889909148216248,
-0.2572237551212311,
0.05164148658514023,
0.12570297718048096,
0.005154759157449007,
0.015000412240624428,
-0.03896961733698845,
0.03652474656701088,
-0.055388178676366806,
-0.13481959700584412,
-0.014247057028114796,
0.21460458636283875,
0.05456431955099106,
0.3377086818218231,
-0.3263537287712097,
-0.06248687207698822,
0.10868164151906967,
0.5018452405929565,
0.37890318036079407,
-0.12208220362663269,
-0.2062075436115265,
0.12763521075248718,
0.21410945057868958,
-0.3382135033607483,
-0.05493665114045143,
-0.03985045477747917,
-0.07311386615037918,
0.08041758835315704,
0.23762063682079315,
0.3448210060596466,
-0.3689101040363312,
0.0061464556492865086,
0.05000811442732811,
0.20281656086444855,
0.2926657795906067,
-0.10567523539066315,
0.4106948971748352,
-0.20468632876873016,
0.24208472669124603,
0.3031952381134033,
0.08963248878717422,
0.18918374180793762,
0.7621464729309082,
0.03129403293132782,
0.3833898603916168,
-0.12176217883825302,
0.2255241423845291,
-0.3144139051437378,
-0.7955082058906555,
0.1238585114479065,
-0.06817447394132614,
-0.08573629707098007,
-0.03894266486167908,
-0.0881284773349762,
0.17613431811332703,
-0.06920215487480164,
0.004633523523807526,
-0.1121872067451477,
0.17053845524787903,
-0.24231787025928497,
-0.1774587333202362,
-0.08142771571874619,
-0.23303912580013275,
-0.1158146932721138,
0.17511329054832458,
-0.14451120793819427,
-0.11989939212799072,
0.10757090151309967,
-0.03659454360604286,
0.0335814394056797,
-0.31786733865737915,
0.13028614223003387,
-0.012576044537127018,
-0.26005464792251587,
-0.22034473717212677,
0.277095228433609,
0.2270638346672058,
-0.13111110031604767,
0.6092444658279419,
-0.01951056718826294,
0.3621789813041687,
0.21348361670970917,
0.22981052100658417,
-0.16356885433197021,
0.090635284781456,
-0.013769809156656265,
-0.44255486130714417,
0.4691876471042633,
0.23079228401184082,
0.5626729130744934,
0.3801555633544922,
0.21465133130550385,
-0.15452153980731964,
-0.03774433583021164,
0.501735508441925,
-0.15166400372982025,
-0.14502635598182678,
0.13489197194576263,
0.09793753176927567,
-0.10224128514528275,
-0.03320519998669624,
-0.049530789256095886,
-0.10164959728717804,
0.06285586208105087,
0.2253022938966751,
0.10923131555318832,
0.3628467321395874,
-0.2437894493341446,
0.10387911647558212,
-0.07260219007730484,
0.7275210618972778,
-0.11388954520225525,
0.31450262665748596,
-0.14506779611110687,
-0.16836082935333252,
-0.7731072306632996,
0.3513866662979126,
-0.20077252388000488,
0.06661296635866165,
0.06331866979598999,
0.029755083844065666,
0.41485396027565,
-0.11288625001907349,
-0.0800398513674736,
0.1428557187318802,
0.1524868905544281,
0.1505807638168335,
-0.20268622040748596,
-0.13896554708480835,
-0.01139735896140337,
0.17981576919555664,
-0.3373463451862335,
-0.2897776961326599,
0.40666234493255615,
-0.07353432476520538,
0.1115684062242508,
0.0689530074596405,
-0.31208696961402893,
0.07558263838291168,
0.42266586422920227,
0.49982401728630066,
-0.10520342737436295,
0.580101490020752,
-0.1616331934928894,
0.14275193214416504,
-0.5877315998077393,
-0.3523682951927185,
0.017279699444770813,
0.26304879784584045,
0.0002599917643237859,
-0.06098342686891556,
-0.08732031285762787,
0.09828723967075348,
-0.08128265291452408,
0.46559950709342957,
0.11476744711399078,
-0.07733463495969772,
-0.21055133640766144,
0.15803837776184082,
-0.06955400109291077,
-0.1147930920124054,
0.12361614406108856,
-0.013845818117260933,
-0.07857328653335571,
0.04895605891942978,
-0.09651854634284973,
-0.08660651743412018,
0.3535487949848175,
-0.45952001214027405,
-0.2850203812122345,
-0.13613058626651764,
0.1339835822582245,
0.3011189103126526,
-0.022271551191806793,
-0.19134202599525452,
0.08883940428495407,
0.2659738063812256,
-0.15435218811035156,
-0.05316588655114174,
0.14577855169773102,
-0.15370042622089386,
0.0641770213842392,
-0.0658361166715622,
-0.05038934573531151,
0.027253685519099236,
-0.5360069870948792,
-0.02152854949235916,
-0.1054135113954544
] |
https://github.com/huggingface/datasets/issues/5274
|
load_dataset possibly broken for gated datasets?
|
I think I'm also hitting this error, trying to load a model from a local path.
|
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
| 16 |
load_dataset possibly broken for gated datasets?
|
[
-0.6134456396102905,
0.13876403868198395,
-0.13353587687015533,
0.2112499475479126,
0.261823832988739,
-0.0352916419506073,
0.8927196860313416,
0.15922442078590393,
0.5084536671638489,
-0.12161698192358017,
-0.31658250093460083,
0.10621646791696548,
-0.05615757778286934,
0.46598726511001587,
-0.09058697521686554,
0.17812606692314148,
0.2234235405921936,
-0.015385911799967289,
-0.3836742341518402,
-0.11422280967235565,
-0.2242521196603775,
0.18603993952274323,
-0.32835233211517334,
0.07419871538877487,
-0.25605112314224243,
0.033075299113988876,
0.1158093735575676,
0.5218628644943237,
0.06492920964956284,
-0.017099888995289803,
0.3110398054122925,
0.38990262150764465,
0.08048318326473236,
0.3366941511631012,
-0.00010702236613724381,
0.07289056479930878,
0.0687304139137268,
-0.10304958373308182,
-0.3576889634132385,
0.11532788723707199,
-0.361736923456192,
-0.2884056866168976,
-0.022667475044727325,
-0.12107449769973755,
0.03332933038473129,
-0.5175758004188538,
-0.02388223074376583,
-0.21581976115703583,
0.27714040875434875,
0.06627481430768967,
0.3163925111293793,
0.2377837747335434,
-0.18625198304653168,
-0.31117162108421326,
-0.11788641661405563,
0.0840945616364479,
0.023240920156240463,
0.41469234228134155,
0.09289742261171341,
-0.25139209628105164,
-0.4029277265071869,
-0.005995878949761391,
-0.15718117356300354,
-0.06879166513681412,
0.34438297152519226,
-0.22122178971767426,
-0.1960671991109848,
0.1544109433889389,
0.026539623737335205,
0.24253882467746735,
0.23385490477085114,
-0.06213019788265228,
-0.10705053061246872,
-0.3953525424003601,
-0.39077988266944885,
-0.14917537569999695,
0.18367744982242584,
0.008722551167011261,
0.027631113305687904,
0.32546117901802063,
-0.2362491935491562,
-0.10078354924917221,
0.09677276760339737,
-0.030377497896552086,
-0.3079310655593872,
0.42219817638397217,
0.06302725523710251,
0.157456174492836,
-0.18204207718372345,
0.09519967436790466,
0.47089794278144836,
0.08574733138084412,
-0.06204421818256378,
-0.19136275351047516,
-0.29553523659706116,
0.1813739389181137,
0.22854232788085938,
0.14764901995658875,
0.2028432935476303,
0.4157983958721161,
-0.11161179095506668,
0.3507339656352997,
0.1389515995979309,
-0.030313408002257347,
0.5046567320823669,
0.013999167829751968,
0.05774889886379242,
-0.005326838232576847,
0.38536158204078674,
0.15364044904708862,
-0.3459326922893524,
-0.00914484541863203,
-0.03869738057255745,
-0.3928492069244385,
0.2222752571105957,
-0.17335936427116394,
0.026059549301862717,
-0.07628815621137619,
-0.33916720747947693,
0.0986514762043953,
0.3787166476249695,
-0.0351220928132534,
0.15638050436973572,
0.29868942499160767,
0.35379573702812195,
0.007422677706927061,
-0.25019389390945435,
0.27170512080192566,
-0.14183969795703888,
-0.5083118081092834,
-0.33435317873954773,
-0.34786325693130493,
-0.2673625946044922,
0.03258223459124565,
0.19055232405662537,
-0.014034183695912361,
0.2996397912502289,
-0.10940185189247131,
-0.13335686922073364,
0.014861071482300758,
-0.11058221012353897,
0.017939958721399307,
0.28700265288352966,
0.31237754225730896,
0.3005122244358063,
0.06464941054582596,
0.25316691398620605,
-0.09984190762042999,
-0.047992974519729614,
0.09403367340564728,
-0.04113294929265976,
-0.32512402534484863,
0.1710938960313797,
0.2176751047372818,
-0.43914318084716797,
0.04407339170575142,
-0.0522504523396492,
0.25823837518692017,
0.15816061198711395,
-0.3323575258255005,
0.013568946160376072,
-0.04866691678762436,
-0.28419193625450134,
-0.1605195701122284,
0.08148497343063354,
0.5028259754180908,
-0.3308963179588318,
-0.009425518102943897,
-0.11008088290691376,
-0.2494041621685028,
0.16174325346946716,
0.2150464951992035,
-0.2940320372581482,
0.11906948685646057,
-0.2747874855995178,
0.21973080933094025,
-0.0019188086735084653,
-0.2591986656188965,
-0.39594176411628723,
0.46385863423347473,
0.03224489092826843,
0.11401856690645218,
0.0515647828578949,
-0.0424954891204834,
0.18685007095336914,
0.02620496042072773,
0.27809077501296997,
0.3115726709365845,
0.1806468963623047,
-0.10531032085418701,
-0.10234087705612183,
-0.016395356506109238,
0.31056123971939087,
0.30237454175949097,
0.14069871604442596,
0.1293964385986328,
0.3693041503429413,
0.13849225640296936,
0.28500714898109436,
-0.009262964129447937,
0.10816413164138794,
0.04555744677782059,
0.025660766288638115,
-0.15739871561527252,
0.017237035557627678,
-0.13793309032917023,
-0.32380855083465576,
0.11626515537500381,
0.1929509937763214,
-0.011177957989275455,
0.28930047154426575,
0.020027510821819305,
-0.30646175146102905,
0.1489776223897934,
-0.13062837719917297,
-0.15514624118804932,
0.2548949122428894,
0.05902879312634468,
-0.33434155583381653,
-0.19634254276752472,
-0.08458109945058823,
0.44236835837364197,
-0.30108171701431274,
-0.05615878477692604,
-0.036444004625082016,
0.10723679512739182,
0.19847352802753448,
-0.26037460565567017,
0.07666479796171188,
0.037188541144132614,
0.09103266894817352,
-0.009970461018383503,
-0.007543682120740414,
0.4015762209892273,
0.13827276229858398,
-0.07049618661403656,
-0.25967204570770264,
0.00974286999553442,
-0.06006286293268204,
0.003317083464935422,
-0.05451852083206177,
-0.21277786791324615,
-0.0010405301582068205,
-0.11934814602136612,
-0.16449594497680664,
0.45049789547920227,
-0.21807707846164703,
0.03586387261748314,
0.08328846096992493,
0.07304549217224121,
0.31749585270881653,
-0.14066556096076965,
-0.12227396667003632,
-0.1382572501897812,
0.08492118120193481,
0.021191492676734924,
0.01932893879711628,
0.2944274842739105,
0.08154971897602081,
0.11186060309410095,
0.24688217043876648,
-0.005465389229357243,
0.22656920552253723,
-0.08972280472517014,
-0.012051430530846119,
-0.19812250137329102,
0.3338440954685211,
0.4751116633415222,
0.5373748540878296,
0.2714194655418396,
0.22295354306697845,
-0.004796728491783142,
-0.042580604553222656,
-0.3022957444190979,
0.22107316553592682,
-0.20557986199855804,
0.130303293466568,
0.30847352743148804,
0.21186167001724243,
-0.34511736035346985,
-0.48983582854270935,
0.019563565030694008,
0.22248175740242004,
0.11848931759595871,
-0.4995971620082855,
0.19822575151920319,
-0.29591625928878784,
0.07507595419883728,
0.07210622727870941,
0.12940466403961182,
-0.025103889405727386,
-0.30693694949150085,
-0.18470822274684906,
0.2918294370174408,
-0.05556527152657509,
0.21399329602718353,
-0.37185579538345337,
0.17327788472175598,
-0.01886759139597416,
-0.058756276965141296,
0.020899219438433647,
-0.11194390058517456,
-0.28202369809150696,
0.12327379733324051,
0.13001561164855957,
0.09094647318124771,
-0.12725207209587097,
-0.07461556047201157,
-0.14973147213459015,
-0.2729473114013672,
-0.05867517367005348,
0.12014211714267731,
-0.14512231945991516,
0.5445305109024048,
0.20521685481071472,
0.21756066381931305,
0.00603404501453042,
-0.15861918032169342,
0.2108670026063919,
-0.004367500077933073,
-0.028010116890072823,
0.07996086776256561,
-0.2127118855714798,
0.007449701894074678,
-0.23930877447128296,
-0.18843834102153778,
-0.11001218110322952,
-0.4218486249446869,
0.05333094298839569,
-0.01931067928671837,
0.059869807213544846,
0.544654130935669,
0.22826553881168365,
-0.3585255444049835,
0.280071496963501,
-0.17819425463676453,
-0.39825499057769775,
-0.4273524880409241,
0.31957221031188965,
-0.31285426020622253,
-0.2538580000400543,
-0.20630672574043274,
0.05013164132833481,
0.48970451951026917,
0.27919480204582214,
-0.27910304069519043,
0.37648409605026245,
-0.034397415816783905,
0.3348134458065033,
0.033775217831134796,
-0.10759713500738144,
-0.09079568833112717,
-0.06855800002813339,
-0.17448939383029938,
-0.2793257534503937,
0.026174936443567276,
0.46569085121154785,
-0.26072338223457336,
-0.019823549315333366,
-0.24496561288833618,
0.12260330468416214,
-0.20059485733509064,
0.24113674461841583,
-0.31965669989585876,
-0.048302073031663895,
0.5094330906867981,
-0.15484216809272766,
0.5727548599243164,
-0.07115582376718521,
-0.09737930446863174,
0.143282949924469,
-0.07165743410587311,
-0.059220097959041595,
0.232028990983963,
0.015310055576264858,
-0.2760954201221466,
-0.23555657267570496,
-0.22514089941978455,
-0.03966144472360611,
-0.25548872351646423,
-0.004983030259609222,
0.2677537202835083,
0.1769251674413681,
0.24868549406528473,
0.3248455822467804,
-0.06792416423559189,
-0.060039058327674866,
0.01906505972146988,
-0.03997074067592621,
0.11871083825826645,
-0.12502726912498474,
-0.2889608144760132,
0.17831163108348846,
-0.013492205180227757,
0.001841241493821144,
-0.3442804515361786,
0.3925546109676361,
-0.20814606547355652,
-0.29338300228118896,
-0.0791204497218132,
-0.10858923941850662,
0.5967525243759155,
-0.1412045806646347,
0.31597623229026794,
0.033707041293382645,
0.1940583735704422,
-0.35301080346107483,
-0.19663038849830627,
0.1680062711238861,
0.00990227609872818,
0.12946680188179016,
0.23167486488819122,
-0.18781933188438416,
-0.019704826176166534,
0.024450315162539482,
0.07336059212684631,
-0.3088112473487854,
-0.3403022885322571,
-0.3662998080253601,
-0.2117699682712555,
-0.12747101485729218,
-0.08758093416690826,
0.09594175219535828,
0.10242049396038055,
-0.2121056318283081,
-0.1485169380903244,
-0.19397594034671783,
0.012876362539827824,
0.03404051065444946,
0.20221354067325592,
0.2001572549343109,
-0.027767110615968704,
0.3037213087081909,
0.17352399230003357,
0.16076238453388214,
0.21694296598434448,
0.5979692935943604,
-0.07582999765872955,
-0.0959206223487854,
0.5266185402870178,
-0.09334486722946167,
0.01459302008152008,
0.4121988117694855,
-0.08889764547348022,
-0.1621471643447876,
0.599030613899231,
-0.25491079688072205,
-0.19195356965065002,
0.13596948981285095,
-0.09493811428546906,
-0.17706988751888275,
-0.011786901392042637,
-0.3901786506175995,
-0.05391035974025726,
-0.18997417390346527,
-0.1254575401544571,
0.27430254220962524,
-0.08747050911188126,
-0.33747193217277527,
0.3413420617580414,
0.013463850133121014,
0.6669343113899231,
-0.15001653134822845,
0.24233654141426086,
0.6680607199668884,
-0.04417792707681656,
-0.14343523979187012,
-0.11144007742404938,
-0.08009018748998642,
-0.13046470284461975,
-0.35079225897789,
0.005942252930253744,
-0.10706184804439545,
0.04582125321030617,
0.44892966747283936,
0.27665191888809204,
0.2068142592906952,
-0.05435324087738991,
-0.056825727224349976,
-0.0972287505865097,
0.03189895674586296,
-0.19858932495117188,
-0.14202935993671417,
-0.28392043709754944,
0.1294984221458435,
0.16872966289520264,
-0.03555546700954437,
-0.09485795348882675,
-0.11360161006450653,
-0.008156247437000275,
-0.06712035089731216,
-0.20746219158172607,
0.057453859597444534,
0.32558706402778625,
0.11828668415546417,
0.039618752896785736,
-0.1763242483139038,
-0.21614843606948853,
0.004986012354493141,
-0.07707829028367996,
-0.0064707170240581036,
-0.16108010709285736,
0.32182273268699646,
0.05997021868824959,
0.23900897800922394,
-0.014702207408845425,
0.010330626741051674,
0.366075336933136,
-0.004280746914446354,
-0.2677350342273712,
-0.05218004062771797,
-0.03556011989712715,
-0.29240521788597107,
-0.21641653776168823,
0.16284649074077606,
-0.08694785088300705,
-0.5713104605674744,
0.0190046988427639,
0.0021554110571742058,
0.26666614413261414,
-0.33629366755485535,
0.16062283515930176,
0.024111758917570114,
0.29380297660827637,
-0.025354234501719475,
0.08061771839857101,
-0.3778730630874634,
-0.33827921748161316,
0.6317729353904724,
-0.050522249191999435,
0.14816677570343018,
0.3605039119720459,
0.14631791412830353,
-0.19533903896808624,
-0.23990865051746368,
0.031097177416086197,
0.39964359998703003,
-0.2450539916753769,
0.10259432345628738,
-0.13852620124816895,
-0.056457482278347015,
-0.009298495016992092,
0.22911155223846436,
0.16733725368976593,
-0.07173603773117065,
0.0944775864481926,
-0.3809865117073059,
-0.38124844431877136,
0.08319991081953049,
-0.14195291697978973,
-0.008549824357032776,
0.09707634150981903,
-0.30993369221687317,
-0.06446855515241623,
-0.035148605704307556,
-0.35763370990753174,
-0.2517906427383423,
0.01687946543097496,
-0.11261861026287079,
-0.07133706659078598,
-0.0532367117702961,
-0.14229318499565125,
-0.13779190182685852,
0.20969319343566895,
-0.15158388018608093,
-0.08145643770694733,
-0.25760817527770996,
-0.30950912833213806,
0.10345032811164856,
0.11190242320299149,
-0.00840361975133419,
-0.10344545543193817,
-0.2642019987106323,
-0.3762109875679016,
-0.14167095720767975,
0.1849563866853714,
0.20544295012950897,
-0.038399241864681244,
-0.10331903398036957,
0.09256541728973389,
0.22889909148216248,
-0.2572237551212311,
0.05164148658514023,
0.12570297718048096,
0.005154759157449007,
0.015000412240624428,
-0.03896961733698845,
0.03652474656701088,
-0.055388178676366806,
-0.13481959700584412,
-0.014247057028114796,
0.21460458636283875,
0.05456431955099106,
0.3377086818218231,
-0.3263537287712097,
-0.06248687207698822,
0.10868164151906967,
0.5018452405929565,
0.37890318036079407,
-0.12208220362663269,
-0.2062075436115265,
0.12763521075248718,
0.21410945057868958,
-0.3382135033607483,
-0.05493665114045143,
-0.03985045477747917,
-0.07311386615037918,
0.08041758835315704,
0.23762063682079315,
0.3448210060596466,
-0.3689101040363312,
0.0061464556492865086,
0.05000811442732811,
0.20281656086444855,
0.2926657795906067,
-0.10567523539066315,
0.4106948971748352,
-0.20468632876873016,
0.24208472669124603,
0.3031952381134033,
0.08963248878717422,
0.18918374180793762,
0.7621464729309082,
0.03129403293132782,
0.3833898603916168,
-0.12176217883825302,
0.2255241423845291,
-0.3144139051437378,
-0.7955082058906555,
0.1238585114479065,
-0.06817447394132614,
-0.08573629707098007,
-0.03894266486167908,
-0.0881284773349762,
0.17613431811332703,
-0.06920215487480164,
0.004633523523807526,
-0.1121872067451477,
0.17053845524787903,
-0.24231787025928497,
-0.1774587333202362,
-0.08142771571874619,
-0.23303912580013275,
-0.1158146932721138,
0.17511329054832458,
-0.14451120793819427,
-0.11989939212799072,
0.10757090151309967,
-0.03659454360604286,
0.0335814394056797,
-0.31786733865737915,
0.13028614223003387,
-0.012576044537127018,
-0.26005464792251587,
-0.22034473717212677,
0.277095228433609,
0.2270638346672058,
-0.13111110031604767,
0.6092444658279419,
-0.01951056718826294,
0.3621789813041687,
0.21348361670970917,
0.22981052100658417,
-0.16356885433197021,
0.090635284781456,
-0.013769809156656265,
-0.44255486130714417,
0.4691876471042633,
0.23079228401184082,
0.5626729130744934,
0.3801555633544922,
0.21465133130550385,
-0.15452153980731964,
-0.03774433583021164,
0.501735508441925,
-0.15166400372982025,
-0.14502635598182678,
0.13489197194576263,
0.09793753176927567,
-0.10224128514528275,
-0.03320519998669624,
-0.049530789256095886,
-0.10164959728717804,
0.06285586208105087,
0.2253022938966751,
0.10923131555318832,
0.3628467321395874,
-0.2437894493341446,
0.10387911647558212,
-0.07260219007730484,
0.7275210618972778,
-0.11388954520225525,
0.31450262665748596,
-0.14506779611110687,
-0.16836082935333252,
-0.7731072306632996,
0.3513866662979126,
-0.20077252388000488,
0.06661296635866165,
0.06331866979598999,
0.029755083844065666,
0.41485396027565,
-0.11288625001907349,
-0.0800398513674736,
0.1428557187318802,
0.1524868905544281,
0.1505807638168335,
-0.20268622040748596,
-0.13896554708480835,
-0.01139735896140337,
0.17981576919555664,
-0.3373463451862335,
-0.2897776961326599,
0.40666234493255615,
-0.07353432476520538,
0.1115684062242508,
0.0689530074596405,
-0.31208696961402893,
0.07558263838291168,
0.42266586422920227,
0.49982401728630066,
-0.10520342737436295,
0.580101490020752,
-0.1616331934928894,
0.14275193214416504,
-0.5877315998077393,
-0.3523682951927185,
0.017279699444770813,
0.26304879784584045,
0.0002599917643237859,
-0.06098342686891556,
-0.08732031285762787,
0.09828723967075348,
-0.08128265291452408,
0.46559950709342957,
0.11476744711399078,
-0.07733463495969772,
-0.21055133640766144,
0.15803837776184082,
-0.06955400109291077,
-0.1147930920124054,
0.12361614406108856,
-0.013845818117260933,
-0.07857328653335571,
0.04895605891942978,
-0.09651854634284973,
-0.08660651743412018,
0.3535487949848175,
-0.45952001214027405,
-0.2850203812122345,
-0.13613058626651764,
0.1339835822582245,
0.3011189103126526,
-0.022271551191806793,
-0.19134202599525452,
0.08883940428495407,
0.2659738063812256,
-0.15435218811035156,
-0.05316588655114174,
0.14577855169773102,
-0.15370042622089386,
0.0641770213842392,
-0.0658361166715622,
-0.05038934573531151,
0.027253685519099236,
-0.5360069870948792,
-0.02152854949235916,
-0.1054135113954544
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
Hi ! We're using the Arrow format for the datasets, and PyArrow tensors are not part of the Arrow format AFAIK:
> There is no direct support in the arrow columnar format to store Tensors as column values.
source: https://github.com/apache/arrow/issues/4802#issuecomment-508494694
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 40 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
@wesm @rok its been around three years. any updates, regarding dataset arrow tensor support? 🙏 I know you must be very busy, would appreciate to learn what is the state of art. I saw the PR is still open [#8510](https://github.com/apache/arrow/pull/8510)
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 40 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
Hey @franz101 & @lhoestq!
There is a plan and a PR to create an [ExtensionArray of Tensors](https://github.com/apache/arrow/pull/8510) of equal sizes as well as a plan to do the same for Tensors of different sizes [ARROW-8714](https://issues.apache.org/jira/browse/ARROW-8714).
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 35 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
The work stalled a little because it was not clear where TensorArray would live. However Arrow community recently agreed to make a [well-known-extension-type document](https://lists.apache.org/thread/sxd5fhc42hb6svs79t3fd79gkqj83pfh) and I would like https://github.com/apache/arrow/pull/8510 to land there and add an implementation to C++/Python + another language. Is that something you would find beneficial to you?
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 50 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
that is a great update, thank you.
it looks like this feature would benefit datasets implementation of [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9f2ff14673cac1f1ad56d80221a793f5938b68c7/src/datasets/features/features.py#L585-L641). Is that correct @eladsegal @lhoestq?
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 23 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
TensorArray sounds great ! Looking forward to it :)
We've had our own ExtensionArray for fixed shape tensors for a while now, hoping to see something more standardized by the arrow community.
Also super interested in the extension array for tensors of different sizes cc @mariosasko
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 46 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
@rok Thanks for keeping us updated! I think it's best to introduce a new feature type that would use this extension type under the hood. I'll create an issue to discuss the design with the community in the coming days.
Also, is there a tentative time frame for the variable-shape Tensor extension type?
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 53 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
@mariosasko please tag me in the discussion, perhaps I can contribute.
As for the [variable shape tensor array](https://github.com/apache/arrow/issues/24868) - I'd be interested in working on it but didn't see much interest in community yet. Are you saying `huggingface/datasets` could use it?
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 41 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
pyarrow 12 is out 🎉, will have a look if I can work on it for the ExtensionArray
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 18 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
I think these two issues need to be fixed first on the Arrow side before adding the tensor feature type here: https://github.com/apache/arrow/issues/35573 and https://github.com/apache/arrow/issues/35599.
@rok We've had a couple of requests for supporting variable-shape tensors on the forum/GH, but I did not manage to find the concrete issues using the search. TF/TFDS (and PyTorch with the `nested_tensor` API) support them, so it makes sense for us to do the same eventually (the Ray project has an [extension](https://github.com/ray-project/ray/blob/42a8d1489b37243f203120899a23d919dc85bf2a/python/ray/air/util/tensor_extensions/arrow.py#L634) type to support this case)
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 82 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
> @rok We've had a couple of requests for supporting variable-shape tensors on the forum/GH, but I did not manage to find the concrete issues using the search. TF/TFDS (and PyTorch with the `nested_tensor` API) support them, so it makes sense for us to do the same eventually (the Ray project has an [extension](https://github.com/ray-project/ray/blob/42a8d1489b37243f203120899a23d919dc85bf2a/python/ray/air/util/tensor_extensions/arrow.py#L634) type to support this case)
That does make sense indeed. We should probably also be careful about memory layout to enable zero-copy interface to TF/PyTorch.
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 79 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
Not with with the Arrow format, and therefore not in `datasets`. But they released a new [FixedShapeTensorArray](https://arrow.apache.org/docs/python/extending_types.html#fixed-size-tensor) to store tensors in Arrow format. We plan to support this in `datasets` at one point !
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 34 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
There is also an open issue to enable the conversion of `pyarrow.Tensor` to `pyarrow.FixedShapeTensorType`: https://github.com/apache/arrow/issues/35068. This way one could indirectly use `pyarrow.Tensor` in Arrow format.
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 25 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5272
|
Use pyarrow Tensor dtype
|
We started a [mailing list discussion](https://lists.apache.org/thread/qc9qho0fg5ph1dns4hjq56hp4tj7rk1k) about potential `VariableShapeTensor` extension array, please check it out and give feedback. For more details here's also a PR https://github.com/apache/arrow/pull/37166.
|
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
| 26 |
Use pyarrow Tensor dtype
|
[
-0.15518175065517426,
-0.2878752648830414,
-0.16815713047981262,
0.103001669049263,
0.3359271287918091,
-0.03229547664523125,
0.5140809416770935,
0.3354252278804779,
-0.39618414640426636,
0.24230912327766418,
-0.0783652737736702,
0.30467548966407776,
0.000917820434551686,
-0.0032604122534394264,
0.25915297865867615,
-0.2018304169178009,
-0.0330657921731472,
0.3722289800643921,
0.06483469903469086,
-0.17171020805835724,
0.08529460430145264,
-0.07061656564474106,
-0.2165793627500534,
-0.03219436854124069,
-0.37555721402168274,
0.10929276049137115,
0.1800571084022522,
-0.10381253808736801,
-0.05316135659813881,
-0.11300384998321533,
0.37210163474082947,
-0.0986730232834816,
0.13518404960632324,
0.21780167520046234,
-0.00010918627231149003,
0.36695626378059387,
0.1391255110502243,
0.03882509469985962,
0.3188222348690033,
0.18788504600524902,
0.28958025574684143,
-0.038580574095249176,
-0.012964478693902493,
-0.30304014682769775,
-0.15776467323303223,
-0.32389652729034424,
0.22009894251823425,
0.37211015820503235,
0.2329002320766449,
0.2628273367881775,
0.23975026607513428,
0.4924508035182953,
0.2877379059791565,
0.1261136829853058,
0.43344882130622864,
0.055536556988954544,
0.07384519279003143,
0.5783663988113403,
-0.0053491368889808655,
0.13398219645023346,
0.04800926893949509,
-0.1399226039648056,
-0.060060080140829086,
-0.007167649921029806,
0.08153126388788223,
0.353280633687973,
0.5154358744621277,
0.01764674484729767,
-0.09546027332544327,
0.2777232527732849,
0.3370431959629059,
-0.4245597720146179,
0.08508460968732834,
0.23975254595279694,
-0.0008760734926909208,
-0.522202730178833,
0.05282377079129219,
-0.005052486434578896,
-0.20413748919963837,
0.21508720517158508,
0.3570913076400757,
0.209928497672081,
-0.5276314616203308,
0.19337321817874908,
-0.26898568868637085,
0.11066336929798126,
0.309383749961853,
-0.07094761729240417,
-0.06492100656032562,
0.049575161188840866,
0.49814093112945557,
0.04386718571186066,
0.18078897893428802,
-0.02204592153429985,
0.07778430730104446,
-0.15349872410297394,
0.023461436852812767,
-0.5840609073638916,
-0.06486272066831589,
-0.48015668988227844,
0.05453672260046005,
0.18129809200763702,
0.07265189290046692,
0.16195668280124664,
-0.16406607627868652,
0.19738604128360748,
-0.18743234872817993,
-0.032127298414707184,
0.22881780564785004,
-0.28025344014167786,
-0.13229969143867493,
0.11312515288591385,
-0.15008798241615295,
-0.2768971621990204,
0.09114740788936615,
0.022539228200912476,
0.14927570521831512,
0.26805779337882996,
-0.21216610074043274,
-0.26004114747047424,
-0.4203020930290222,
-0.10111063718795776,
-0.009320192970335484,
0.1923334002494812,
-0.13309189677238464,
-0.005107964854687452,
-0.09825306385755539,
0.04338371008634567,
-0.1088876724243164,
-0.1785763055086136,
-0.21990768611431122,
0.1840168833732605,
-0.06142030656337738,
-0.19595542550086975,
0.10090579092502594,
0.11163929104804993,
-0.07903686165809631,
0.07333248108625412,
0.32515382766723633,
0.17354805767536163,
-0.006344275549054146,
0.14335639774799347,
-0.06628389656543732,
0.1951357126235962,
-0.24774545431137085,
-0.11836222559213638,
-0.1361338198184967,
-0.28754428029060364,
-0.23319049179553986,
0.34139731526374817,
-0.1155293881893158,
-0.22831448912620544,
-0.2031368613243103,
0.24550557136535645,
0.060256388038396835,
-0.23139417171478271,
-0.04240211099386215,
0.09199374169111252,
0.22105197608470917,
-0.04685733839869499,
0.043523889034986496,
-0.06072123348712921,
0.07597468793392181,
-0.415368914604187,
0.10647504031658173,
-0.32432642579078674,
-0.4184921383857727,
-0.08052144199609756,
0.32829874753952026,
-0.14823149144649506,
0.38201242685317993,
0.48658961057662964,
-0.1677471399307251,
0.14197129011154175,
0.12618303298950195,
0.3359093964099884,
0.5341479182243347,
-0.3899678885936737,
-0.3618144989013672,
-0.12431170046329498,
0.010646414011716843,
-0.40034183859825134,
0.18845173716545105,
0.022299932315945625,
0.13644126057624817,
0.07377408444881439,
0.09660382568836212,
0.21245941519737244,
-0.03567839413881302,
0.05596001818776131,
-0.1266094595193863,
-0.05407935753464699,
0.2989954948425293,
0.14048120379447937,
-0.039227768778800964,
-0.06000283360481262,
-0.1877392679452896,
-0.06024673953652382,
0.164617657661438,
-0.20911692082881927,
-0.08529514074325562,
-0.282701313495636,
0.37021318078041077,
-0.15402254462242126,
0.10561422258615494,
-0.03896204009652138,
-0.379826158285141,
0.03446964919567108,
-0.4983445405960083,
0.36977991461753845,
0.02912401221692562,
-0.32175323367118835,
0.03454810380935669,
-0.008258435875177383,
0.12866942584514618,
0.205855593085289,
0.2463551163673401,
-0.3098374009132385,
-0.03721397742629051,
0.26273113489151,
-0.10203041881322861,
-0.494947224855423,
0.2708131670951843,
0.21197576820850372,
0.26054367423057556,
0.3754963278770447,
-0.13630877435207367,
-0.4074210226535797,
-0.01919148676097393,
0.12006144225597382,
0.0015139582101255655,
-0.003733606543391943,
0.2019852250814438,
-0.02944616600871086,
-0.05261703208088875,
0.1470206081867218,
-0.5296424031257629,
0.37292301654815674,
0.3492881655693054,
-0.3171539306640625,
-0.05825413763523102,
0.02961919456720352,
-0.02608882635831833,
-0.1091633141040802,
0.1970510482788086,
0.2783021628856659,
0.43516600131988525,
-0.12168585509061813,
-0.1427801549434662,
-0.10069125145673752,
0.08675502985715866,
0.008256830275058746,
0.22250735759735107,
0.08062492311000824,
-0.16090214252471924,
0.32006219029426575,
0.004749533720314503,
0.05371064320206642,
-0.28586751222610474,
0.0924769788980484,
0.5927686095237732,
-0.015349279157817364,
0.22187460958957672,
-0.05401317775249481,
-0.1767469346523285,
0.008038523606956005,
0.20247693359851837,
-0.7123531699180603,
-0.08377205580472946,
0.19376763701438904,
0.330096960067749,
0.052112266421318054,
-0.2547619342803955,
-0.40571632981300354,
0.011742361821234226,
-0.20353297889232635,
0.16642138361930847,
0.10521816462278366,
0.02030842937529087,
-0.14228200912475586,
-0.272678017616272,
0.15748590230941772,
0.10460518300533295,
0.12146904319524765,
-0.19016426801681519,
0.07895064353942871,
-0.3387066423892975,
-0.34180745482444763,
0.028551658615469933,
-0.3668838441371918,
0.07899139076471329,
0.09782180935144424,
0.10833678394556046,
0.14331525564193726,
0.1345905363559723,
0.3519674241542816,
0.6735178232192993,
0.17629212141036987,
0.22804328799247742,
-0.38314515352249146,
-0.22194978594779968,
-0.0684698298573494,
-0.2737094461917877,
0.21104532480239868,
0.0457112155854702,
-0.18237441778182983,
0.12230002135038376,
-0.08828938752412796,
-0.0035330194514244795,
0.1193392351269722,
-0.5065025687217712,
0.157760351896286,
-0.13964220881462097,
-0.14011670649051666,
0.04608855023980141,
0.20656590163707733,
-0.05398566275835037,
-0.17969033122062683,
0.2571144104003906,
-0.0047959559597074986,
-0.18720528483390808,
0.110990010201931,
-0.48246511816978455,
0.04616383835673332,
-0.2186603993177414,
-0.07269643992185593,
-0.08337006717920303,
-0.1387844681739807,
0.40628111362457275,
0.08364351093769073,
0.1535307765007019,
0.09474455565214157,
0.11162319034337997,
0.21047048270702362,
0.040780991315841675,
0.07277052104473114,
-0.02392560988664627,
-0.044917453080415726,
0.317226767539978,
-0.17947427928447723,
-0.28454872965812683,
0.061404258012771606,
-0.26532894372940063,
0.23269732296466827,
0.006199338473379612,
-0.16421285271644592,
-0.25211256742477417,
0.01433776505291462,
0.6574368476867676,
0.21241530776023865,
-0.08676625788211823,
0.23554465174674988,
0.06878843158483505,
-0.1722056120634079,
0.019779827445745468,
0.13915227353572845,
0.19140076637268066,
0.02373252622783184,
0.048865582793951035,
-0.009489797987043858,
0.15303775668144226,
0.05624014139175415,
0.5905971527099609,
-0.19147439301013947,
-0.643034040927887,
0.24770279228687286,
-0.5029746890068054,
-0.18298928439617157,
0.15314504504203796,
0.08734751492738724,
0.008271263912320137,
0.08475229889154434,
-0.023144826292991638,
0.11524040997028351,
-0.3247622549533844,
-0.42108193039894104,
0.09109333902597427,
0.011797461658716202,
-0.11225955188274384,
-0.25166162848472595,
0.23023612797260284,
0.17386053502559662,
0.001709966454654932,
0.07091699540615082,
-0.128091961145401,
-0.0018436888931319118,
-0.2231324315071106,
0.3051518201828003,
0.13712947070598602,
-0.22826993465423584,
-0.16757477819919586,
0.14608782529830933,
-0.23850113153457642,
-0.3122174143791199,
0.2119922935962677,
0.12119081616401672,
-0.0065216440707445145,
0.11445490270853043,
-0.08020921796560287,
0.11010683327913284,
-0.08789262175559998,
0.7644411325454712,
0.2576218843460083,
0.08279559761285782,
0.1399139165878296,
0.043187130242586136,
-0.12592750787734985,
-0.005957041401416063,
-0.18506917357444763,
-0.2874954640865326,
0.011353584937751293,
-0.03585069254040718,
-0.47017860412597656,
0.12446058541536331,
0.18303023278713226,
-0.10636389255523682,
-0.20308171212673187,
-0.18736456334590912,
-0.23011162877082825,
-0.3871869444847107,
0.1753292828798294,
-0.12981395423412323,
0.16584424674510956,
0.16781911253929138,
0.11521200835704803,
-0.15465150773525238,
-0.19188189506530762,
-0.20628204941749573,
0.037984251976013184,
0.04477553069591522,
0.020433511584997177,
-0.042059168219566345,
-0.19655197858810425,
-0.03722984716296196,
0.010964869521558285,
0.32750630378723145,
-0.0776519849896431,
-0.14383478462696075,
-0.4645625948905945,
-0.2429644614458084,
0.19708138704299927,
0.359835147857666,
-0.08219367265701294,
-0.15850268304347992,
0.07532313466072083,
-0.10875549167394638,
-0.09112323075532913,
-0.11765874922275543,
0.32619717717170715,
0.3126732409000397,
0.2081117033958435,
0.046015575528144836,
-0.1037120372056961,
0.37285807728767395,
-0.003570067696273327,
0.0038226861506700516,
-0.013780293986201286,
-0.05050848051905632,
-0.2912493944168091,
0.07055335491895676,
0.3097081780433655,
0.8306193947792053,
-0.20815935730934143,
0.4720560312271118,
0.6604757905006409,
0.13520075380802155,
0.16779069602489471,
-0.3831304907798767,
0.1588245928287506,
-0.40023961663246155,
-0.21719390153884888,
-0.06387554854154587,
-0.14739425480365753,
-0.1348925530910492,
0.06712706387042999,
-0.29889124631881714,
-0.17617163062095642,
0.06150072440505028,
0.35836541652679443,
0.14688125252723694,
0.07315083593130112,
0.1863991618156433,
-0.05176885053515434,
0.1264856904745102,
0.110528863966465,
-0.06739132851362228,
-0.08074287325143814,
-0.11385011672973633,
-0.10998865216970444,
-0.09824477136135101,
-0.16883796453475952,
-0.014165067113935947,
-0.19421733915805817,
-0.47969019412994385,
0.13452546298503876,
0.009409507736563683,
-0.38085702061653137,
-0.20246386528015137,
0.06836461275815964,
0.07836873829364777,
-0.15212638676166534,
-0.12308822572231293,
0.11882828921079636,
0.31073883175849915,
-0.17271637916564941,
-0.14734046161174774,
-0.05011948198080063,
0.2742912471294403,
-0.24747467041015625,
-0.15188227593898773,
0.3660828769207001,
0.1444987654685974,
0.06459062546491623,
-0.0729132741689682,
0.05961664393544197,
-0.14013297855854034,
-0.12304387986660004,
0.24849574267864227,
-0.08758975565433502,
-0.23348796367645264,
0.020478207617998123,
0.2044416218996048,
0.008235401473939419,
-0.07742895185947418,
0.18109464645385742,
0.0018985457718372345,
-0.18596863746643066,
-0.077094666659832,
0.07567428052425385,
0.28282785415649414,
0.28887680172920227,
0.02135976403951645,
0.10572179406881332,
-0.21754755079746246,
-0.1978018879890442,
-0.061050187796354294,
0.047139279544353485,
-0.28311994671821594,
0.11141715198755264,
0.08209491521120071,
-0.015652840957045555,
-0.27685990929603577,
0.26974251866340637,
0.20322075486183167,
0.004487335216253996,
-0.2727683484554291,
0.14426390826702118,
-0.4427632689476013,
0.33746880292892456,
0.14289148151874542,
0.1872863471508026,
-0.0090586356818676,
0.7433428764343262,
0.07106923311948776,
-0.13284502923488617,
-0.37229976058006287,
0.17872847616672516,
0.21789774298667908,
0.09486059099435806,
-0.3896090090274811,
-0.25027114152908325,
0.29607632756233215,
0.10280434787273407,
0.2883923053741455,
0.12438132613897324,
0.009017853066325188,
-0.33462509512901306,
-0.21469241380691528,
0.07564964145421982,
-0.07687130570411682,
-0.11096888035535812,
0.34152913093566895,
-0.04589271917939186,
-0.09320969879627228,
0.25946950912475586,
0.2077767550945282,
-0.15631942451000214,
-0.163356214761734,
0.36595776677131653,
0.49551835656166077,
0.20636220276355743,
-0.20188342034816742,
-0.10746817290782928,
0.030298814177513123,
0.2623717486858368,
0.07321332395076752,
0.12076984345912933,
-0.3516625761985779,
-0.0597560741007328,
0.09985040873289108,
0.08568139374256134,
0.3995314836502075,
-0.48916715383529663,
0.23658859729766846,
-0.07662267237901688,
-0.36493200063705444,
-0.4802195131778717,
0.13302043080329895,
0.19657370448112488,
-0.3112606108188629,
0.07174088805913925,
0.32646358013153076,
0.22694329917430878,
-0.20858803391456604,
0.023659052327275276,
0.019334938377141953,
-0.07609272003173828,
0.11189331859350204,
0.22762306034564972,
-0.018535269424319267,
0.26894956827163696,
-0.3706424832344055,
-0.03350383788347244,
-0.00003943971387343481,
0.04068934544920921,
-0.22224438190460205,
0.23895622789859772,
-0.24770605564117432,
0.0570475198328495,
0.30358877778053284,
0.3558282256126404,
0.11863774061203003,
0.004206875339150429,
0.15441888570785522,
-0.021123716607689857,
-0.3428744971752167,
-0.2652873992919922,
0.17056050896644592,
0.12080526351928711,
-0.46390601992607117,
0.14948122203350067,
0.04338381439447403,
-0.00015415686357300729,
0.20470942556858063,
0.5633050203323364,
0.47478026151657104,
0.05274416506290436,
-0.020046167075634003,
0.20221084356307983,
-0.21785035729408264,
-0.08161640912294388,
-0.1261567324399948,
0.129098042845726,
0.09489903599023819,
-0.17065958678722382,
0.0028764749877154827,
-0.08249933272600174,
0.035373419523239136,
0.11343780905008316,
0.030245523899793625,
0.30005696415901184,
0.15957829356193542,
-0.06853138655424118,
0.002527454635128379,
0.0890851765871048,
0.13695435225963593,
0.1412368267774582,
-0.16565825045108795,
-0.128898024559021,
-0.05881339684128761,
0.1309269517660141,
-0.0799904316663742,
-0.38719505071640015,
-0.23664550483226776,
-0.3566502630710602,
-0.09384641796350479,
-0.25263696908950806,
0.18219882249832153,
0.5489722490310669,
0.14879383146762848,
0.03214847669005394,
0.19333867728710175,
-0.2623370587825775,
0.012550294399261475,
0.09945838153362274,
-0.20748476684093475,
0.052544593811035156,
0.22762511670589447,
0.054494407027959824,
-0.35741734504699707,
-0.08283410966396332,
-0.05265239626169205,
-0.11559396237134933,
0.03878641501069069,
0.4019666910171509,
0.032625626772642136,
0.0254641342908144,
0.041066620498895645,
0.11926627159118652,
-0.016531186178326607,
0.6924286484718323,
-0.10327515006065369,
0.7841479182243347,
-0.08888641744852066,
0.18616624176502228,
-0.14475074410438538,
0.5428727865219116,
-0.05931153893470764,
-0.08197222650051117,
-0.020925965160131454,
0.14307086169719696,
0.12579120695590973,
0.06707143783569336,
0.05140194296836853,
-0.1750645935535431,
-0.01576188951730728,
-0.0037298446986824274,
-0.2252141833305359,
0.04466322436928749,
-0.37588825821876526,
-0.18077492713928223,
0.040113694965839386,
-0.2639334797859192,
0.40304386615753174,
-0.24801135063171387,
0.1888868659734726,
-0.45969530940055847,
0.1586729884147644,
0.24268372356891632,
0.34827548265457153,
0.36862850189208984,
-0.1830131560564041,
0.506012499332428,
-0.04013068974018097,
0.03806100785732269,
0.3450627326965332,
0.056474167853593826,
-0.3134603798389435,
0.0003095387073699385,
-0.05453646928071976,
-0.3212798535823822,
-0.1667051613330841,
-0.1106904074549675,
-0.007932053878903389,
0.3209674060344696,
0.22056184709072113,
-0.4002954363822937,
-0.1510552316904068,
0.2328324317932129,
-0.0931508019566536,
-0.22393643856048584,
-0.04819807782769203,
0.27651530504226685,
0.08124510943889618,
-0.16862396895885468,
-0.21405960619449615,
-0.3821461498737335,
0.37552890181541443,
-0.38305166363716125,
-0.04879404604434967,
-0.0555574893951416,
-0.07276003062725067,
0.055451199412345886,
0.19507451355457306,
-0.2954535186290741,
-0.13060639798641205,
0.35602620244026184,
-0.06714703142642975,
-0.5206583142280579,
0.20704323053359985,
0.2803627848625183,
-0.007764784153550863,
-0.1616547554731369,
0.35207802057266235,
-0.12311491370201111,
-0.14483894407749176,
-0.5509958863258362,
-0.4347775876522064
] |
https://github.com/huggingface/datasets/issues/5270
|
When len(_URLS) > 16, download will hang
|
It can fix the bug temporarily.
```python
from datasets import DownloadConfig
config = DownloadConfig(num_proc=8)
In [5]: dataset = load_dataset('Freed-Wu/kodak', split='test', download_config=config)
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/6cf51f2b3d686d24a33fe86945f9e16802def212325f9345cf3cbb1b9f5f4a57...
Downloading data files #4: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:02<00:00, 1.39obj/s]
Downloading data files #2: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:02<00:00, 1.38obj/s]
Downloading data files #3: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:02<00:00, 1.13obj/s]
Downloading data files #7: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:02<00:00, 1.09obj/s]
Downloading data files #5: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:02<00:00, 1.08obj/s]
Downloading data files #0: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:02<00:00, 1.08obj/s]
Downloading data files #1: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:10<00:00, 3.36s/obj]
Downloading data: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 492k/492k [00:01<00:00, 253kB/s]
Downloading data files #6: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:13<00:00, 4.63s/obj]
Extracting data files #0: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1407.17obj/s]
Extracting data files #1: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1325.91obj/s]
Extracting data files #3: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1524.46obj/s]
Extracting data files #2: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1404.66obj/s]
Extracting data files #4: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1538.63obj/s]
Extracting data files #6: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1711.73obj/s]
Extracting data files #7: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 2144.33obj/s]
Extracting data files #5: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1964.85obj/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/6cf51f2b3d686d24a33fe86945f9e16802def212325f9345cf3cbb1b9f5f4a57. Subsequent calls will reuse this data.
```
|
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:01<00:00, 366kB/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:13<00:00, 1.18it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
| 176 |
When len(_URLS) > 16, download will hang
|
[
-0.35618311166763306,
-0.15406537055969238,
-0.2573458254337311,
0.18303023278713226,
0.23311255872249603,
-0.07892145961523056,
0.029426762834191322,
0.046859659254550934,
0.26982203125953674,
0.20958082377910614,
-0.10404272377490997,
-0.32338833808898926,
-0.06664596498012543,
-0.2741364538669586,
-0.27228811383247375,
0.2237529158592224,
-0.12956349551677704,
-0.02941983938217163,
-0.2225925177335739,
0.10779544711112976,
-0.450708270072937,
0.2663893699645996,
-0.0013458734611049294,
-0.2235354483127594,
0.22345121204853058,
0.2350965142250061,
0.2799101173877716,
0.1861484944820404,
-0.3113683760166168,
-0.49473798274993896,
-0.15827827155590057,
0.22592990100383759,
0.1301344633102417,
-0.020820239558815956,
-0.00010121761442860588,
-0.2040739208459854,
0.21811828017234802,
0.19010770320892334,
-0.42747417092323303,
0.1379660815000534,
-0.2643221318721771,
0.0772998258471489,
0.013070725835859776,
0.01883205585181713,
0.40394192934036255,
0.3526190519332886,
-0.05936043709516525,
-0.011338140815496445,
0.018883483484387398,
0.224971741437912,
0.24967651069164276,
0.024459781125187874,
0.07993566244840622,
-0.09612121433019638,
0.41302093863487244,
-0.2688952386379242,
0.050428956747055054,
0.3344174921512604,
0.26279082894325256,
0.016045328229665756,
-0.07638654857873917,
0.0160078015178442,
0.16776365041732788,
-0.01976090483367443,
-0.34979915618896484,
-0.20472198724746704,
0.11602418124675751,
-0.2673425078392029,
0.29948967695236206,
-0.045952338725328445,
-0.15855863690376282,
0.2678770124912262,
-0.02269439399242401,
-0.027707664296030998,
0.0077475314028561115,
-0.084836445748806,
0.31406617164611816,
0.3039005398750305,
0.0433451309800148,
0.11523456871509552,
-0.24355997145175934,
-0.07453618943691254,
-0.02036605030298233,
0.23403523862361908,
0.08313388377428055,
0.2510643005371094,
0.0383666455745697,
0.07972078025341034,
0.3352867364883423,
-0.017281053587794304,
-0.13650362193584442,
-0.17030633985996246,
0.10772937536239624,
0.009610145352780819,
0.13447622954845428,
0.18604576587677002,
0.12007595598697662,
0.13184717297554016,
0.3693464994430542,
-0.0379989929497242,
-0.07568792253732681,
0.1921439915895462,
0.03849524259567261,
-0.09047270566225052,
-0.08635333180427551,
-0.15126876533031464,
0.04697085916996002,
-0.049706727266311646,
0.33208662271499634,
0.5042951107025146,
0.16540750861167908,
0.16624508798122406,
-0.004951127339154482,
-0.09566126763820648,
-0.29008010029792786,
-0.11967726051807404,
-0.07084257900714874,
0.10153576731681824,
-0.05029965192079544,
0.24275964498519897,
0.0723571851849556,
0.1850481778383255,
0.17213670909404755,
0.2595895528793335,
-0.41566693782806396,
0.10005541145801544,
0.20363552868366241,
-0.0009783182758837938,
-0.16914987564086914,
0.10923264175653458,
-0.16658850014209747,
-0.2021520435810089,
0.00012850973871536553,
-0.1843768209218979,
0.17259562015533447,
-0.09494394809007645,
0.08232954144477844,
-0.008710182271897793,
-0.10281477868556976,
-0.35530832409858704,
0.09196915477514267,
-0.058851681649684906,
0.04105852544307709,
0.2953895330429077,
0.10668723285198212,
0.2745741307735443,
-0.10868728905916214,
-0.12137287110090256,
0.12755000591278076,
0.022012822329998016,
0.02697673812508583,
0.1828829050064087,
0.21219368278980255,
0.3272596597671509,
-0.15997537970542908,
0.15805497765541077,
0.4033485949039459,
-0.33493536710739136,
-0.01979072205722332,
0.24993933737277985,
0.18757475912570953,
-0.16136378049850464,
0.08806252479553223,
-0.060398172587156296,
0.09352591633796692,
0.5264043211936951,
0.17103886604309082,
0.06684405356645584,
0.008858812041580677,
-0.29409852623939514,
-0.00938585214316845,
0.05061149224638939,
0.0470464862883091,
-0.3697573244571686,
-0.21513007581233978,
0.4164828658103943,
0.2269127070903778,
-0.03823632001876831,
-0.32339951395988464,
0.5079792737960815,
-0.19708649814128876,
-0.24481771886348724,
-0.012363946065306664,
0.2370026409626007,
0.2630981504917145,
-0.0015323213301599026,
0.2844882607460022,
0.23523376882076263,
0.11333991587162018,
0.01157936081290245,
-0.35518306493759155,
-0.21619492769241333,
-0.27504420280456543,
0.09686151891946793,
-0.031091032549738884,
-0.15333707630634308,
0.035147525370121,
0.029499052092432976,
0.31790632009506226,
0.0068832943215966225,
-0.027526894584298134,
0.18555103242397308,
-0.07505083084106445,
0.18596966564655304,
-0.10277631878852844,
0.1325489729642868,
-0.24408705532550812,
0.07492022216320038,
-0.16333553194999695,
-0.13654382526874542,
0.009183711372315884,
-0.0030977774877101183,
-0.4546065330505371,
0.34442368149757385,
0.05757829546928406,
0.18374456465244293,
0.1838407665491104,
0.12065073847770691,
0.17569757997989655,
0.31766143441200256,
0.2527918815612793,
-0.11733615398406982,
-0.20591555535793304,
0.1346343755722046,
0.05717173591256142,
0.011302110739052296,
-0.1817532628774643,
0.05171091482043266,
0.3068832457065582,
-0.2055485099554062,
-0.0014731492847204208,
0.02831200323998928,
0.1649930775165558,
0.4357200562953949,
0.08638570457696915,
0.09471455961465836,
0.12451622635126114,
-0.025779658928513527,
0.30582401156425476,
0.11169610917568207,
-0.13978324830532074,
0.34710693359375,
0.10012055933475494,
0.13437797129154205,
0.2745252549648285,
-0.027410030364990234,
0.14225974678993225,
0.08875619620084763,
0.4708724617958069,
-0.20425869524478912,
0.18323872983455658,
-0.004291757941246033,
-0.04225362837314606,
-0.05613300949335098,
0.42750057578086853,
0.10405075550079346,
0.3743574619293213,
0.022972125560045242,
-0.0914660096168518,
0.17372146248817444,
0.20642311871051788,
-0.15993571281433105,
0.11410307139158249,
0.2167484164237976,
0.2273348718881607,
0.032291069626808167,
-0.2178553342819214,
0.029199806973338127,
0.09325212240219116,
0.05654139816761017,
0.21515485644340515,
-0.15280768275260925,
-0.27062222361564636,
-0.719377875328064,
0.16538384556770325,
0.10394877940416336,
-0.3720248341560364,
0.1272227168083191,
-0.028548363596200943,
-0.34297671914100647,
-0.3365797996520996,
-0.33872175216674805,
0.0031282096169888973,
0.1490909308195114,
0.07737129926681519,
-0.03689969703555107,
-0.1424155831336975,
-0.3365827202796936,
-0.09368877112865448,
0.013571346178650856,
-0.34997206926345825,
-0.2735872268676758,
0.17329871654510498,
0.2825598418712616,
-0.3052968382835388,
0.10188927501440048,
-0.2174646258354187,
0.00918774027377367,
0.4041125774383545,
0.11330270767211914,
0.17132461071014404,
0.017186040058732033,
-0.10804703086614609,
0.08907447010278702,
0.3968052864074707,
-0.5031251907348633,
0.08220210671424866,
0.11347304284572601,
-0.05782678723335266,
-0.2165156453847885,
-0.09399168938398361,
-0.0700925663113594,
0.3947594463825226,
-0.10541065037250519,
0.16352087259292603,
0.3393019735813141,
0.2976436913013458,
0.024388425052165985,
0.08454083651304245,
-0.02736032009124756,
0.12836705148220062,
-0.04021370783448219,
0.45192673802375793,
0.12034344673156738,
-0.3796444535255432,
-0.2142796367406845,
0.18980301916599274,
-0.46543189883232117,
0.061217065900564194,
0.012489089742302895,
0.11161642521619797,
0.11875507980585098,
0.4335567057132721,
0.08353136479854584,
0.26017308235168457,
-0.1694023311138153,
-0.15688958764076233,
0.0784115344285965,
0.2376783937215805,
-0.1508849412202835,
-0.3703739643096924,
-0.1105353832244873,
-0.06685984879732132,
-0.04761426895856857,
0.16310787200927734,
-0.5133163332939148,
0.34995412826538086,
-0.19859014451503754,
-0.1257530301809311,
-0.15620529651641846,
-0.25131821632385254,
0.2417023628950119,
-0.13957956433296204,
-0.28741374611854553,
-0.05302969738841057,
0.08985796570777893,
0.18341702222824097,
-0.2390277087688446,
0.1196451336145401,
-0.2439040094614029,
0.06312361359596252,
0.012021701782941818,
0.17080333828926086,
-0.23248817026615143,
0.12312015146017075,
0.3533233106136322,
0.05249632149934769,
0.1534317582845688,
0.11820704489946365,
0.3144252896308899,
0.10899190604686737,
0.2373121976852417,
0.01319789607077837,
0.5343934893608093,
0.3460833430290222,
-0.27623867988586426,
-0.20598836243152618,
-0.10864922404289246,
-0.03559621050953865,
-0.2100875824689865,
0.17038078606128693,
0.34775739908218384,
0.04609585180878639,
0.21760272979736328,
0.04104987531900406,
0.2906089127063751,
0.08013873547315598,
-0.07850772142410278,
0.0019497182220220566,
-0.007152186241000891,
-0.10015583783388138,
-0.08857215940952301,
0.11189056187868118,
-0.29815077781677246,
0.1617923229932785,
0.2367282658815384,
0.47107571363449097,
-0.12255274504423141,
-0.3154431879520416,
-0.1241297796368599,
-0.22143122553825378,
0.4080723822116852,
-0.022067023441195488,
0.34529909491539,
-0.2130862921476364,
0.25375044345855713,
-0.441230833530426,
-0.021392665803432465,
0.10169745981693268,
-0.29825279116630554,
0.4348728656768799,
0.23045998811721802,
-0.3229914605617523,
0.06601089239120483,
-0.05214277654886246,
-0.04061776399612427,
0.09607214480638504,
-0.060610830783843994,
-0.22824525833129883,
-0.4394353926181793,
-0.3339163064956665,
0.18733897805213928,
0.017027901485562325,
0.02426721714437008,
-0.2359025776386261,
-0.42441675066947937,
0.10506423562765121,
-0.6062357425689697,
-0.30523404479026794,
-0.04439091682434082,
-0.30277571082115173,
-0.06508475542068481,
0.05017958581447601,
-0.17318762838840485,
-0.2557677924633026,
0.08888493478298187,
-0.13525310158729553,
0.05351294204592705,
0.26578080654144287,
0.2841205298900604,
0.14053134620189667,
-0.3367415964603424,
0.2923120856285095,
0.05479948967695236,
0.16959284245967865,
0.31655949354171753,
0.3600858151912689,
-0.06004001945257187,
0.2894037961959839,
0.15190771222114563,
-0.09111402928829193,
-0.16481204330921173,
0.026324359700083733,
0.19034940004348755,
-0.21540354192256927,
-0.017991269007325172,
0.26575830578804016,
-0.22063875198364258,
-0.08004108816385269,
-0.3347049355506897,
-0.0027472747024148703,
0.556882381439209,
-0.14671792089939117,
0.03007938712835312,
-0.0424785353243351,
-0.28098803758621216,
0.051007479429244995,
-0.07855954021215439,
0.03401639312505722,
-0.04126134142279625,
0.08442258834838867,
0.13244912028312683,
-0.14156410098075867,
0.2787367105484009,
-0.02829154208302498,
0.018653353676199913,
-0.16378267109394073,
-0.22475206851959229,
0.40372607111930847,
0.25284260511398315,
0.3641708791255951,
-0.5667450428009033,
0.012629272416234016,
-0.1452673375606537,
0.25875088572502136,
0.18848104774951935,
0.0016209286404773593,
-0.3658011555671692,
0.049134403467178345,
-0.08211445808410645,
-0.3129558563232422,
0.09741686284542084,
0.19492220878601074,
-0.2755419611930847,
0.1266126185655594,
-0.2675856351852417,
0.07331909984350204,
-0.5204734802246094,
-0.03143421560525894,
-0.11651761084794998,
0.3148021996021271,
-0.09975282102823257,
0.2180161029100418,
-0.5487869381904602,
-0.34253987669944763,
0.0801355317234993,
0.12637490034103394,
-0.24248471856117249,
-0.19022224843502045,
-0.020824100822210312,
-0.1091122105717659,
0.20903319120407104,
-0.11989155411720276,
0.285554438829422,
0.09444988518953323,
-0.11857721209526062,
-0.228939026594162,
-0.03997078165411949,
-0.220155730843544,
-0.5566468238830566,
-0.10842416435480118,
0.19960324466228485,
-0.1301525980234146,
-0.00022805682965554297,
-0.05760250613093376,
0.18909913301467896,
-0.09557411074638367,
-0.4868345260620117,
0.7238265872001648,
-0.18994709849357605,
0.09456425905227661,
-0.016727004200220108,
0.030181940644979477,
-0.2948154807090759,
-0.27321580052375793,
-0.16753914952278137,
-0.5009494423866272,
-0.37386664748191833,
0.24111847579479218,
-0.2708863317966461,
-0.033590614795684814,
-0.18240876495838165,
0.021388959139585495,
-0.05599115416407585,
0.2840058505535126,
0.29966437816619873,
-0.5430159568786621,
-0.040545567870140076,
-0.058236099779605865,
-0.16866905987262726,
0.0062080626375973225,
-0.22962184250354767,
0.05838716775178909,
0.31554344296455383,
-0.2339012771844864,
-0.3587260842323303,
0.049567531794309616,
-0.672084629535675,
-0.02411278337240219,
-0.009577102027833462,
-0.3126116693019867,
0.18691310286521912,
0.03397463262081146,
0.2593633234500885,
0.31924089789390564,
-0.31935644149780273,
-0.2638483941555023,
-0.14689122140407562,
0.046595096588134766,
-0.0428558774292469,
-0.20671194791793823,
-0.00845749769359827,
-0.26858454942703247,
0.12503114342689514,
0.23261219263076782,
-0.22478443384170532,
-0.3884178400039673,
-0.2260909229516983,
-0.4874003529548645,
0.07798299938440323,
0.34830161929130554,
0.13260772824287415,
0.3848700523376465,
-0.26909157633781433,
0.4930743873119354,
0.19824306666851044,
-0.0017960043624043465,
-0.01594548672437668,
-0.1402796506881714,
-0.20682528614997864,
-0.019732262939214706,
0.19214841723442078,
-0.008257764391601086,
0.3593757152557373,
-0.01363297738134861,
-0.013846559450030327,
0.3824499249458313,
0.33121827244758606,
0.5278819799423218,
0.007640785071998835,
-0.317105770111084,
0.07945555448532104,
0.30871567130088806,
-0.06814873963594437,
-0.03021296113729477,
-0.18854065239429474,
-0.14615599811077118,
0.059338752180337906,
0.025448806583881378,
-0.14383940398693085,
-0.38959118723869324,
0.3677624762058258,
0.402981698513031,
0.44875624775886536,
0.1629847139120102,
-0.23258563876152039,
0.2161850482225418,
-0.09390891343355179,
0.0945589616894722,
-0.021979626268148422,
-0.038230158388614655,
0.2893945276737213,
-0.22580310702323914,
-0.3183583617210388,
-0.0890296995639801,
0.07621017843484879,
0.33412793278694153,
-0.16887876391410828,
-0.04843733459711075,
-0.3645451068878174,
0.3517848551273346,
-0.1683254987001419,
0.14764486253261566,
0.08139849454164505,
0.11176161468029022,
0.05570988729596138,
0.23917996883392334,
0.028434420004487038,
0.3731403648853302,
0.08047004044055939,
-0.12953007221221924,
-0.09984597563743591,
-0.14986006915569305,
-0.27216488122940063,
0.09162596613168716,
0.04748469963669777,
-0.07932606339454651,
0.24695393443107605,
-0.0038011781871318817,
0.02025720477104187,
-0.35025736689567566,
-0.2717888057231903,
-0.11011525243520737,
-0.0679338276386261,
-0.42714953422546387,
0.02327956072986126,
0.46283331513404846,
0.09292708337306976,
0.16418714821338654,
-0.0039368681609630585,
0.13927704095840454,
0.23760677874088287,
-0.0033122533932328224,
-0.05118812620639801,
0.042680930346250534,
0.10843060910701752,
-0.18843640387058258,
0.2558368444442749,
0.6394868493080139,
0.22251741588115692,
0.28655967116355896,
0.17572148144245148,
-0.35462936758995056,
0.20134477317333221,
0.004715000744909048,
-0.08574549853801727,
0.03063221462070942,
0.005844870116561651,
0.060983601957559586,
0.12018896639347076,
-0.18385185301303864,
-0.140483558177948,
-0.4646155834197998,
-0.039029303938150406,
-0.09165901690721512,
-0.4398086667060852,
0.1678721159696579,
-0.14584867656230927,
0.11156602948904037,
0.0005918503156863153,
0.5945186018943787,
0.06726234406232834,
0.22372129559516907,
0.07171403616666794,
-0.49384230375289917,
-0.24658043682575226,
0.11905200779438019,
-0.28564754128456116,
-0.0036760272923856974,
-0.20028041303157806,
0.1491798311471939,
-0.18928790092468262,
0.10653631389141083,
-0.006388834677636623,
-0.0037220115773379803,
0.1168578639626503,
0.08858499675989151,
0.05448759347200394,
0.04613334685564041,
-0.03375569358468056,
0.03850984945893288,
-0.05720289424061775,
-0.2785634994506836,
0.5586587190628052,
-0.46011435985565186,
0.22554181516170502,
-0.051130276173353195,
-0.13780425488948822,
-0.18151381611824036,
0.0197515357285738,
0.2623394727706909,
0.1208009123802185,
0.11603660136461258,
-0.23704682290554047,
-0.12325171381235123,
-0.08050214499235153,
-0.10315783321857452,
0.3936762511730194,
-0.2879680395126343,
0.3666875660419464,
-0.034850526601076126,
-0.1071532592177391,
-0.02690167911350727,
-0.0020114718936383724,
0.4636845290660858,
0.09767798334360123,
0.29977041482925415,
0.21860139071941376,
-0.28419792652130127,
0.07981880754232407,
-0.0610751174390316,
0.005282776430249214,
0.15216782689094543,
0.02297942526638508,
-0.2296515256166458,
-0.09659790247678757,
-0.29440736770629883,
0.19904272258281708,
0.16490411758422852,
-0.15348432958126068,
0.03807321563363075,
0.2333960384130478,
0.09944124519824982,
-0.008755464106798172,
0.08301883190870285,
0.2501694858074188,
0.17221197485923767,
0.10269494354724884,
-0.5839256644248962,
0.18696580827236176,
-0.1826639324426651,
-0.23320680856704712,
0.04187037795782089,
0.21414732933044434,
0.3058007061481476,
-0.19947248697280884,
0.2895098924636841,
-0.22922074794769287
] |
https://github.com/huggingface/datasets/issues/5270
|
When len(_URLS) > 16, download will hang
|
Thanks for reporting ! This sounds like an issue with python multiprocessing. If we switch to multithreading for the downloads it should be much more robust - let me know if this is something you'd like to contribute, I'd be happy to help and give you some pointers
|
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:01<00:00, 366kB/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:13<00:00, 1.18it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
| 48 |
When len(_URLS) > 16, download will hang
|
[
-0.35618311166763306,
-0.15406537055969238,
-0.2573458254337311,
0.18303023278713226,
0.23311255872249603,
-0.07892145961523056,
0.029426762834191322,
0.046859659254550934,
0.26982203125953674,
0.20958082377910614,
-0.10404272377490997,
-0.32338833808898926,
-0.06664596498012543,
-0.2741364538669586,
-0.27228811383247375,
0.2237529158592224,
-0.12956349551677704,
-0.02941983938217163,
-0.2225925177335739,
0.10779544711112976,
-0.450708270072937,
0.2663893699645996,
-0.0013458734611049294,
-0.2235354483127594,
0.22345121204853058,
0.2350965142250061,
0.2799101173877716,
0.1861484944820404,
-0.3113683760166168,
-0.49473798274993896,
-0.15827827155590057,
0.22592990100383759,
0.1301344633102417,
-0.020820239558815956,
-0.00010121761442860588,
-0.2040739208459854,
0.21811828017234802,
0.19010770320892334,
-0.42747417092323303,
0.1379660815000534,
-0.2643221318721771,
0.0772998258471489,
0.013070725835859776,
0.01883205585181713,
0.40394192934036255,
0.3526190519332886,
-0.05936043709516525,
-0.011338140815496445,
0.018883483484387398,
0.224971741437912,
0.24967651069164276,
0.024459781125187874,
0.07993566244840622,
-0.09612121433019638,
0.41302093863487244,
-0.2688952386379242,
0.050428956747055054,
0.3344174921512604,
0.26279082894325256,
0.016045328229665756,
-0.07638654857873917,
0.0160078015178442,
0.16776365041732788,
-0.01976090483367443,
-0.34979915618896484,
-0.20472198724746704,
0.11602418124675751,
-0.2673425078392029,
0.29948967695236206,
-0.045952338725328445,
-0.15855863690376282,
0.2678770124912262,
-0.02269439399242401,
-0.027707664296030998,
0.0077475314028561115,
-0.084836445748806,
0.31406617164611816,
0.3039005398750305,
0.0433451309800148,
0.11523456871509552,
-0.24355997145175934,
-0.07453618943691254,
-0.02036605030298233,
0.23403523862361908,
0.08313388377428055,
0.2510643005371094,
0.0383666455745697,
0.07972078025341034,
0.3352867364883423,
-0.017281053587794304,
-0.13650362193584442,
-0.17030633985996246,
0.10772937536239624,
0.009610145352780819,
0.13447622954845428,
0.18604576587677002,
0.12007595598697662,
0.13184717297554016,
0.3693464994430542,
-0.0379989929497242,
-0.07568792253732681,
0.1921439915895462,
0.03849524259567261,
-0.09047270566225052,
-0.08635333180427551,
-0.15126876533031464,
0.04697085916996002,
-0.049706727266311646,
0.33208662271499634,
0.5042951107025146,
0.16540750861167908,
0.16624508798122406,
-0.004951127339154482,
-0.09566126763820648,
-0.29008010029792786,
-0.11967726051807404,
-0.07084257900714874,
0.10153576731681824,
-0.05029965192079544,
0.24275964498519897,
0.0723571851849556,
0.1850481778383255,
0.17213670909404755,
0.2595895528793335,
-0.41566693782806396,
0.10005541145801544,
0.20363552868366241,
-0.0009783182758837938,
-0.16914987564086914,
0.10923264175653458,
-0.16658850014209747,
-0.2021520435810089,
0.00012850973871536553,
-0.1843768209218979,
0.17259562015533447,
-0.09494394809007645,
0.08232954144477844,
-0.008710182271897793,
-0.10281477868556976,
-0.35530832409858704,
0.09196915477514267,
-0.058851681649684906,
0.04105852544307709,
0.2953895330429077,
0.10668723285198212,
0.2745741307735443,
-0.10868728905916214,
-0.12137287110090256,
0.12755000591278076,
0.022012822329998016,
0.02697673812508583,
0.1828829050064087,
0.21219368278980255,
0.3272596597671509,
-0.15997537970542908,
0.15805497765541077,
0.4033485949039459,
-0.33493536710739136,
-0.01979072205722332,
0.24993933737277985,
0.18757475912570953,
-0.16136378049850464,
0.08806252479553223,
-0.060398172587156296,
0.09352591633796692,
0.5264043211936951,
0.17103886604309082,
0.06684405356645584,
0.008858812041580677,
-0.29409852623939514,
-0.00938585214316845,
0.05061149224638939,
0.0470464862883091,
-0.3697573244571686,
-0.21513007581233978,
0.4164828658103943,
0.2269127070903778,
-0.03823632001876831,
-0.32339951395988464,
0.5079792737960815,
-0.19708649814128876,
-0.24481771886348724,
-0.012363946065306664,
0.2370026409626007,
0.2630981504917145,
-0.0015323213301599026,
0.2844882607460022,
0.23523376882076263,
0.11333991587162018,
0.01157936081290245,
-0.35518306493759155,
-0.21619492769241333,
-0.27504420280456543,
0.09686151891946793,
-0.031091032549738884,
-0.15333707630634308,
0.035147525370121,
0.029499052092432976,
0.31790632009506226,
0.0068832943215966225,
-0.027526894584298134,
0.18555103242397308,
-0.07505083084106445,
0.18596966564655304,
-0.10277631878852844,
0.1325489729642868,
-0.24408705532550812,
0.07492022216320038,
-0.16333553194999695,
-0.13654382526874542,
0.009183711372315884,
-0.0030977774877101183,
-0.4546065330505371,
0.34442368149757385,
0.05757829546928406,
0.18374456465244293,
0.1838407665491104,
0.12065073847770691,
0.17569757997989655,
0.31766143441200256,
0.2527918815612793,
-0.11733615398406982,
-0.20591555535793304,
0.1346343755722046,
0.05717173591256142,
0.011302110739052296,
-0.1817532628774643,
0.05171091482043266,
0.3068832457065582,
-0.2055485099554062,
-0.0014731492847204208,
0.02831200323998928,
0.1649930775165558,
0.4357200562953949,
0.08638570457696915,
0.09471455961465836,
0.12451622635126114,
-0.025779658928513527,
0.30582401156425476,
0.11169610917568207,
-0.13978324830532074,
0.34710693359375,
0.10012055933475494,
0.13437797129154205,
0.2745252549648285,
-0.027410030364990234,
0.14225974678993225,
0.08875619620084763,
0.4708724617958069,
-0.20425869524478912,
0.18323872983455658,
-0.004291757941246033,
-0.04225362837314606,
-0.05613300949335098,
0.42750057578086853,
0.10405075550079346,
0.3743574619293213,
0.022972125560045242,
-0.0914660096168518,
0.17372146248817444,
0.20642311871051788,
-0.15993571281433105,
0.11410307139158249,
0.2167484164237976,
0.2273348718881607,
0.032291069626808167,
-0.2178553342819214,
0.029199806973338127,
0.09325212240219116,
0.05654139816761017,
0.21515485644340515,
-0.15280768275260925,
-0.27062222361564636,
-0.719377875328064,
0.16538384556770325,
0.10394877940416336,
-0.3720248341560364,
0.1272227168083191,
-0.028548363596200943,
-0.34297671914100647,
-0.3365797996520996,
-0.33872175216674805,
0.0031282096169888973,
0.1490909308195114,
0.07737129926681519,
-0.03689969703555107,
-0.1424155831336975,
-0.3365827202796936,
-0.09368877112865448,
0.013571346178650856,
-0.34997206926345825,
-0.2735872268676758,
0.17329871654510498,
0.2825598418712616,
-0.3052968382835388,
0.10188927501440048,
-0.2174646258354187,
0.00918774027377367,
0.4041125774383545,
0.11330270767211914,
0.17132461071014404,
0.017186040058732033,
-0.10804703086614609,
0.08907447010278702,
0.3968052864074707,
-0.5031251907348633,
0.08220210671424866,
0.11347304284572601,
-0.05782678723335266,
-0.2165156453847885,
-0.09399168938398361,
-0.0700925663113594,
0.3947594463825226,
-0.10541065037250519,
0.16352087259292603,
0.3393019735813141,
0.2976436913013458,
0.024388425052165985,
0.08454083651304245,
-0.02736032009124756,
0.12836705148220062,
-0.04021370783448219,
0.45192673802375793,
0.12034344673156738,
-0.3796444535255432,
-0.2142796367406845,
0.18980301916599274,
-0.46543189883232117,
0.061217065900564194,
0.012489089742302895,
0.11161642521619797,
0.11875507980585098,
0.4335567057132721,
0.08353136479854584,
0.26017308235168457,
-0.1694023311138153,
-0.15688958764076233,
0.0784115344285965,
0.2376783937215805,
-0.1508849412202835,
-0.3703739643096924,
-0.1105353832244873,
-0.06685984879732132,
-0.04761426895856857,
0.16310787200927734,
-0.5133163332939148,
0.34995412826538086,
-0.19859014451503754,
-0.1257530301809311,
-0.15620529651641846,
-0.25131821632385254,
0.2417023628950119,
-0.13957956433296204,
-0.28741374611854553,
-0.05302969738841057,
0.08985796570777893,
0.18341702222824097,
-0.2390277087688446,
0.1196451336145401,
-0.2439040094614029,
0.06312361359596252,
0.012021701782941818,
0.17080333828926086,
-0.23248817026615143,
0.12312015146017075,
0.3533233106136322,
0.05249632149934769,
0.1534317582845688,
0.11820704489946365,
0.3144252896308899,
0.10899190604686737,
0.2373121976852417,
0.01319789607077837,
0.5343934893608093,
0.3460833430290222,
-0.27623867988586426,
-0.20598836243152618,
-0.10864922404289246,
-0.03559621050953865,
-0.2100875824689865,
0.17038078606128693,
0.34775739908218384,
0.04609585180878639,
0.21760272979736328,
0.04104987531900406,
0.2906089127063751,
0.08013873547315598,
-0.07850772142410278,
0.0019497182220220566,
-0.007152186241000891,
-0.10015583783388138,
-0.08857215940952301,
0.11189056187868118,
-0.29815077781677246,
0.1617923229932785,
0.2367282658815384,
0.47107571363449097,
-0.12255274504423141,
-0.3154431879520416,
-0.1241297796368599,
-0.22143122553825378,
0.4080723822116852,
-0.022067023441195488,
0.34529909491539,
-0.2130862921476364,
0.25375044345855713,
-0.441230833530426,
-0.021392665803432465,
0.10169745981693268,
-0.29825279116630554,
0.4348728656768799,
0.23045998811721802,
-0.3229914605617523,
0.06601089239120483,
-0.05214277654886246,
-0.04061776399612427,
0.09607214480638504,
-0.060610830783843994,
-0.22824525833129883,
-0.4394353926181793,
-0.3339163064956665,
0.18733897805213928,
0.017027901485562325,
0.02426721714437008,
-0.2359025776386261,
-0.42441675066947937,
0.10506423562765121,
-0.6062357425689697,
-0.30523404479026794,
-0.04439091682434082,
-0.30277571082115173,
-0.06508475542068481,
0.05017958581447601,
-0.17318762838840485,
-0.2557677924633026,
0.08888493478298187,
-0.13525310158729553,
0.05351294204592705,
0.26578080654144287,
0.2841205298900604,
0.14053134620189667,
-0.3367415964603424,
0.2923120856285095,
0.05479948967695236,
0.16959284245967865,
0.31655949354171753,
0.3600858151912689,
-0.06004001945257187,
0.2894037961959839,
0.15190771222114563,
-0.09111402928829193,
-0.16481204330921173,
0.026324359700083733,
0.19034940004348755,
-0.21540354192256927,
-0.017991269007325172,
0.26575830578804016,
-0.22063875198364258,
-0.08004108816385269,
-0.3347049355506897,
-0.0027472747024148703,
0.556882381439209,
-0.14671792089939117,
0.03007938712835312,
-0.0424785353243351,
-0.28098803758621216,
0.051007479429244995,
-0.07855954021215439,
0.03401639312505722,
-0.04126134142279625,
0.08442258834838867,
0.13244912028312683,
-0.14156410098075867,
0.2787367105484009,
-0.02829154208302498,
0.018653353676199913,
-0.16378267109394073,
-0.22475206851959229,
0.40372607111930847,
0.25284260511398315,
0.3641708791255951,
-0.5667450428009033,
0.012629272416234016,
-0.1452673375606537,
0.25875088572502136,
0.18848104774951935,
0.0016209286404773593,
-0.3658011555671692,
0.049134403467178345,
-0.08211445808410645,
-0.3129558563232422,
0.09741686284542084,
0.19492220878601074,
-0.2755419611930847,
0.1266126185655594,
-0.2675856351852417,
0.07331909984350204,
-0.5204734802246094,
-0.03143421560525894,
-0.11651761084794998,
0.3148021996021271,
-0.09975282102823257,
0.2180161029100418,
-0.5487869381904602,
-0.34253987669944763,
0.0801355317234993,
0.12637490034103394,
-0.24248471856117249,
-0.19022224843502045,
-0.020824100822210312,
-0.1091122105717659,
0.20903319120407104,
-0.11989155411720276,
0.285554438829422,
0.09444988518953323,
-0.11857721209526062,
-0.228939026594162,
-0.03997078165411949,
-0.220155730843544,
-0.5566468238830566,
-0.10842416435480118,
0.19960324466228485,
-0.1301525980234146,
-0.00022805682965554297,
-0.05760250613093376,
0.18909913301467896,
-0.09557411074638367,
-0.4868345260620117,
0.7238265872001648,
-0.18994709849357605,
0.09456425905227661,
-0.016727004200220108,
0.030181940644979477,
-0.2948154807090759,
-0.27321580052375793,
-0.16753914952278137,
-0.5009494423866272,
-0.37386664748191833,
0.24111847579479218,
-0.2708863317966461,
-0.033590614795684814,
-0.18240876495838165,
0.021388959139585495,
-0.05599115416407585,
0.2840058505535126,
0.29966437816619873,
-0.5430159568786621,
-0.040545567870140076,
-0.058236099779605865,
-0.16866905987262726,
0.0062080626375973225,
-0.22962184250354767,
0.05838716775178909,
0.31554344296455383,
-0.2339012771844864,
-0.3587260842323303,
0.049567531794309616,
-0.672084629535675,
-0.02411278337240219,
-0.009577102027833462,
-0.3126116693019867,
0.18691310286521912,
0.03397463262081146,
0.2593633234500885,
0.31924089789390564,
-0.31935644149780273,
-0.2638483941555023,
-0.14689122140407562,
0.046595096588134766,
-0.0428558774292469,
-0.20671194791793823,
-0.00845749769359827,
-0.26858454942703247,
0.12503114342689514,
0.23261219263076782,
-0.22478443384170532,
-0.3884178400039673,
-0.2260909229516983,
-0.4874003529548645,
0.07798299938440323,
0.34830161929130554,
0.13260772824287415,
0.3848700523376465,
-0.26909157633781433,
0.4930743873119354,
0.19824306666851044,
-0.0017960043624043465,
-0.01594548672437668,
-0.1402796506881714,
-0.20682528614997864,
-0.019732262939214706,
0.19214841723442078,
-0.008257764391601086,
0.3593757152557373,
-0.01363297738134861,
-0.013846559450030327,
0.3824499249458313,
0.33121827244758606,
0.5278819799423218,
0.007640785071998835,
-0.317105770111084,
0.07945555448532104,
0.30871567130088806,
-0.06814873963594437,
-0.03021296113729477,
-0.18854065239429474,
-0.14615599811077118,
0.059338752180337906,
0.025448806583881378,
-0.14383940398693085,
-0.38959118723869324,
0.3677624762058258,
0.402981698513031,
0.44875624775886536,
0.1629847139120102,
-0.23258563876152039,
0.2161850482225418,
-0.09390891343355179,
0.0945589616894722,
-0.021979626268148422,
-0.038230158388614655,
0.2893945276737213,
-0.22580310702323914,
-0.3183583617210388,
-0.0890296995639801,
0.07621017843484879,
0.33412793278694153,
-0.16887876391410828,
-0.04843733459711075,
-0.3645451068878174,
0.3517848551273346,
-0.1683254987001419,
0.14764486253261566,
0.08139849454164505,
0.11176161468029022,
0.05570988729596138,
0.23917996883392334,
0.028434420004487038,
0.3731403648853302,
0.08047004044055939,
-0.12953007221221924,
-0.09984597563743591,
-0.14986006915569305,
-0.27216488122940063,
0.09162596613168716,
0.04748469963669777,
-0.07932606339454651,
0.24695393443107605,
-0.0038011781871318817,
0.02025720477104187,
-0.35025736689567566,
-0.2717888057231903,
-0.11011525243520737,
-0.0679338276386261,
-0.42714953422546387,
0.02327956072986126,
0.46283331513404846,
0.09292708337306976,
0.16418714821338654,
-0.0039368681609630585,
0.13927704095840454,
0.23760677874088287,
-0.0033122533932328224,
-0.05118812620639801,
0.042680930346250534,
0.10843060910701752,
-0.18843640387058258,
0.2558368444442749,
0.6394868493080139,
0.22251741588115692,
0.28655967116355896,
0.17572148144245148,
-0.35462936758995056,
0.20134477317333221,
0.004715000744909048,
-0.08574549853801727,
0.03063221462070942,
0.005844870116561651,
0.060983601957559586,
0.12018896639347076,
-0.18385185301303864,
-0.140483558177948,
-0.4646155834197998,
-0.039029303938150406,
-0.09165901690721512,
-0.4398086667060852,
0.1678721159696579,
-0.14584867656230927,
0.11156602948904037,
0.0005918503156863153,
0.5945186018943787,
0.06726234406232834,
0.22372129559516907,
0.07171403616666794,
-0.49384230375289917,
-0.24658043682575226,
0.11905200779438019,
-0.28564754128456116,
-0.0036760272923856974,
-0.20028041303157806,
0.1491798311471939,
-0.18928790092468262,
0.10653631389141083,
-0.006388834677636623,
-0.0037220115773379803,
0.1168578639626503,
0.08858499675989151,
0.05448759347200394,
0.04613334685564041,
-0.03375569358468056,
0.03850984945893288,
-0.05720289424061775,
-0.2785634994506836,
0.5586587190628052,
-0.46011435985565186,
0.22554181516170502,
-0.051130276173353195,
-0.13780425488948822,
-0.18151381611824036,
0.0197515357285738,
0.2623394727706909,
0.1208009123802185,
0.11603660136461258,
-0.23704682290554047,
-0.12325171381235123,
-0.08050214499235153,
-0.10315783321857452,
0.3936762511730194,
-0.2879680395126343,
0.3666875660419464,
-0.034850526601076126,
-0.1071532592177391,
-0.02690167911350727,
-0.0020114718936383724,
0.4636845290660858,
0.09767798334360123,
0.29977041482925415,
0.21860139071941376,
-0.28419792652130127,
0.07981880754232407,
-0.0610751174390316,
0.005282776430249214,
0.15216782689094543,
0.02297942526638508,
-0.2296515256166458,
-0.09659790247678757,
-0.29440736770629883,
0.19904272258281708,
0.16490411758422852,
-0.15348432958126068,
0.03807321563363075,
0.2333960384130478,
0.09944124519824982,
-0.008755464106798172,
0.08301883190870285,
0.2501694858074188,
0.17221197485923767,
0.10269494354724884,
-0.5839256644248962,
0.18696580827236176,
-0.1826639324426651,
-0.23320680856704712,
0.04187037795782089,
0.21414732933044434,
0.3058007061481476,
-0.19947248697280884,
0.2895098924636841,
-0.22922074794769287
] |
https://github.com/huggingface/datasets/issues/5270
|
When len(_URLS) > 16, download will hang
|
> an issue with python multiprocessing
If it is an issue with multiprocessing, should we report it to upstream?
|
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:01<00:00, 366kB/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:13<00:00, 1.18it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
| 19 |
When len(_URLS) > 16, download will hang
|
[
-0.35618311166763306,
-0.15406537055969238,
-0.2573458254337311,
0.18303023278713226,
0.23311255872249603,
-0.07892145961523056,
0.029426762834191322,
0.046859659254550934,
0.26982203125953674,
0.20958082377910614,
-0.10404272377490997,
-0.32338833808898926,
-0.06664596498012543,
-0.2741364538669586,
-0.27228811383247375,
0.2237529158592224,
-0.12956349551677704,
-0.02941983938217163,
-0.2225925177335739,
0.10779544711112976,
-0.450708270072937,
0.2663893699645996,
-0.0013458734611049294,
-0.2235354483127594,
0.22345121204853058,
0.2350965142250061,
0.2799101173877716,
0.1861484944820404,
-0.3113683760166168,
-0.49473798274993896,
-0.15827827155590057,
0.22592990100383759,
0.1301344633102417,
-0.020820239558815956,
-0.00010121761442860588,
-0.2040739208459854,
0.21811828017234802,
0.19010770320892334,
-0.42747417092323303,
0.1379660815000534,
-0.2643221318721771,
0.0772998258471489,
0.013070725835859776,
0.01883205585181713,
0.40394192934036255,
0.3526190519332886,
-0.05936043709516525,
-0.011338140815496445,
0.018883483484387398,
0.224971741437912,
0.24967651069164276,
0.024459781125187874,
0.07993566244840622,
-0.09612121433019638,
0.41302093863487244,
-0.2688952386379242,
0.050428956747055054,
0.3344174921512604,
0.26279082894325256,
0.016045328229665756,
-0.07638654857873917,
0.0160078015178442,
0.16776365041732788,
-0.01976090483367443,
-0.34979915618896484,
-0.20472198724746704,
0.11602418124675751,
-0.2673425078392029,
0.29948967695236206,
-0.045952338725328445,
-0.15855863690376282,
0.2678770124912262,
-0.02269439399242401,
-0.027707664296030998,
0.0077475314028561115,
-0.084836445748806,
0.31406617164611816,
0.3039005398750305,
0.0433451309800148,
0.11523456871509552,
-0.24355997145175934,
-0.07453618943691254,
-0.02036605030298233,
0.23403523862361908,
0.08313388377428055,
0.2510643005371094,
0.0383666455745697,
0.07972078025341034,
0.3352867364883423,
-0.017281053587794304,
-0.13650362193584442,
-0.17030633985996246,
0.10772937536239624,
0.009610145352780819,
0.13447622954845428,
0.18604576587677002,
0.12007595598697662,
0.13184717297554016,
0.3693464994430542,
-0.0379989929497242,
-0.07568792253732681,
0.1921439915895462,
0.03849524259567261,
-0.09047270566225052,
-0.08635333180427551,
-0.15126876533031464,
0.04697085916996002,
-0.049706727266311646,
0.33208662271499634,
0.5042951107025146,
0.16540750861167908,
0.16624508798122406,
-0.004951127339154482,
-0.09566126763820648,
-0.29008010029792786,
-0.11967726051807404,
-0.07084257900714874,
0.10153576731681824,
-0.05029965192079544,
0.24275964498519897,
0.0723571851849556,
0.1850481778383255,
0.17213670909404755,
0.2595895528793335,
-0.41566693782806396,
0.10005541145801544,
0.20363552868366241,
-0.0009783182758837938,
-0.16914987564086914,
0.10923264175653458,
-0.16658850014209747,
-0.2021520435810089,
0.00012850973871536553,
-0.1843768209218979,
0.17259562015533447,
-0.09494394809007645,
0.08232954144477844,
-0.008710182271897793,
-0.10281477868556976,
-0.35530832409858704,
0.09196915477514267,
-0.058851681649684906,
0.04105852544307709,
0.2953895330429077,
0.10668723285198212,
0.2745741307735443,
-0.10868728905916214,
-0.12137287110090256,
0.12755000591278076,
0.022012822329998016,
0.02697673812508583,
0.1828829050064087,
0.21219368278980255,
0.3272596597671509,
-0.15997537970542908,
0.15805497765541077,
0.4033485949039459,
-0.33493536710739136,
-0.01979072205722332,
0.24993933737277985,
0.18757475912570953,
-0.16136378049850464,
0.08806252479553223,
-0.060398172587156296,
0.09352591633796692,
0.5264043211936951,
0.17103886604309082,
0.06684405356645584,
0.008858812041580677,
-0.29409852623939514,
-0.00938585214316845,
0.05061149224638939,
0.0470464862883091,
-0.3697573244571686,
-0.21513007581233978,
0.4164828658103943,
0.2269127070903778,
-0.03823632001876831,
-0.32339951395988464,
0.5079792737960815,
-0.19708649814128876,
-0.24481771886348724,
-0.012363946065306664,
0.2370026409626007,
0.2630981504917145,
-0.0015323213301599026,
0.2844882607460022,
0.23523376882076263,
0.11333991587162018,
0.01157936081290245,
-0.35518306493759155,
-0.21619492769241333,
-0.27504420280456543,
0.09686151891946793,
-0.031091032549738884,
-0.15333707630634308,
0.035147525370121,
0.029499052092432976,
0.31790632009506226,
0.0068832943215966225,
-0.027526894584298134,
0.18555103242397308,
-0.07505083084106445,
0.18596966564655304,
-0.10277631878852844,
0.1325489729642868,
-0.24408705532550812,
0.07492022216320038,
-0.16333553194999695,
-0.13654382526874542,
0.009183711372315884,
-0.0030977774877101183,
-0.4546065330505371,
0.34442368149757385,
0.05757829546928406,
0.18374456465244293,
0.1838407665491104,
0.12065073847770691,
0.17569757997989655,
0.31766143441200256,
0.2527918815612793,
-0.11733615398406982,
-0.20591555535793304,
0.1346343755722046,
0.05717173591256142,
0.011302110739052296,
-0.1817532628774643,
0.05171091482043266,
0.3068832457065582,
-0.2055485099554062,
-0.0014731492847204208,
0.02831200323998928,
0.1649930775165558,
0.4357200562953949,
0.08638570457696915,
0.09471455961465836,
0.12451622635126114,
-0.025779658928513527,
0.30582401156425476,
0.11169610917568207,
-0.13978324830532074,
0.34710693359375,
0.10012055933475494,
0.13437797129154205,
0.2745252549648285,
-0.027410030364990234,
0.14225974678993225,
0.08875619620084763,
0.4708724617958069,
-0.20425869524478912,
0.18323872983455658,
-0.004291757941246033,
-0.04225362837314606,
-0.05613300949335098,
0.42750057578086853,
0.10405075550079346,
0.3743574619293213,
0.022972125560045242,
-0.0914660096168518,
0.17372146248817444,
0.20642311871051788,
-0.15993571281433105,
0.11410307139158249,
0.2167484164237976,
0.2273348718881607,
0.032291069626808167,
-0.2178553342819214,
0.029199806973338127,
0.09325212240219116,
0.05654139816761017,
0.21515485644340515,
-0.15280768275260925,
-0.27062222361564636,
-0.719377875328064,
0.16538384556770325,
0.10394877940416336,
-0.3720248341560364,
0.1272227168083191,
-0.028548363596200943,
-0.34297671914100647,
-0.3365797996520996,
-0.33872175216674805,
0.0031282096169888973,
0.1490909308195114,
0.07737129926681519,
-0.03689969703555107,
-0.1424155831336975,
-0.3365827202796936,
-0.09368877112865448,
0.013571346178650856,
-0.34997206926345825,
-0.2735872268676758,
0.17329871654510498,
0.2825598418712616,
-0.3052968382835388,
0.10188927501440048,
-0.2174646258354187,
0.00918774027377367,
0.4041125774383545,
0.11330270767211914,
0.17132461071014404,
0.017186040058732033,
-0.10804703086614609,
0.08907447010278702,
0.3968052864074707,
-0.5031251907348633,
0.08220210671424866,
0.11347304284572601,
-0.05782678723335266,
-0.2165156453847885,
-0.09399168938398361,
-0.0700925663113594,
0.3947594463825226,
-0.10541065037250519,
0.16352087259292603,
0.3393019735813141,
0.2976436913013458,
0.024388425052165985,
0.08454083651304245,
-0.02736032009124756,
0.12836705148220062,
-0.04021370783448219,
0.45192673802375793,
0.12034344673156738,
-0.3796444535255432,
-0.2142796367406845,
0.18980301916599274,
-0.46543189883232117,
0.061217065900564194,
0.012489089742302895,
0.11161642521619797,
0.11875507980585098,
0.4335567057132721,
0.08353136479854584,
0.26017308235168457,
-0.1694023311138153,
-0.15688958764076233,
0.0784115344285965,
0.2376783937215805,
-0.1508849412202835,
-0.3703739643096924,
-0.1105353832244873,
-0.06685984879732132,
-0.04761426895856857,
0.16310787200927734,
-0.5133163332939148,
0.34995412826538086,
-0.19859014451503754,
-0.1257530301809311,
-0.15620529651641846,
-0.25131821632385254,
0.2417023628950119,
-0.13957956433296204,
-0.28741374611854553,
-0.05302969738841057,
0.08985796570777893,
0.18341702222824097,
-0.2390277087688446,
0.1196451336145401,
-0.2439040094614029,
0.06312361359596252,
0.012021701782941818,
0.17080333828926086,
-0.23248817026615143,
0.12312015146017075,
0.3533233106136322,
0.05249632149934769,
0.1534317582845688,
0.11820704489946365,
0.3144252896308899,
0.10899190604686737,
0.2373121976852417,
0.01319789607077837,
0.5343934893608093,
0.3460833430290222,
-0.27623867988586426,
-0.20598836243152618,
-0.10864922404289246,
-0.03559621050953865,
-0.2100875824689865,
0.17038078606128693,
0.34775739908218384,
0.04609585180878639,
0.21760272979736328,
0.04104987531900406,
0.2906089127063751,
0.08013873547315598,
-0.07850772142410278,
0.0019497182220220566,
-0.007152186241000891,
-0.10015583783388138,
-0.08857215940952301,
0.11189056187868118,
-0.29815077781677246,
0.1617923229932785,
0.2367282658815384,
0.47107571363449097,
-0.12255274504423141,
-0.3154431879520416,
-0.1241297796368599,
-0.22143122553825378,
0.4080723822116852,
-0.022067023441195488,
0.34529909491539,
-0.2130862921476364,
0.25375044345855713,
-0.441230833530426,
-0.021392665803432465,
0.10169745981693268,
-0.29825279116630554,
0.4348728656768799,
0.23045998811721802,
-0.3229914605617523,
0.06601089239120483,
-0.05214277654886246,
-0.04061776399612427,
0.09607214480638504,
-0.060610830783843994,
-0.22824525833129883,
-0.4394353926181793,
-0.3339163064956665,
0.18733897805213928,
0.017027901485562325,
0.02426721714437008,
-0.2359025776386261,
-0.42441675066947937,
0.10506423562765121,
-0.6062357425689697,
-0.30523404479026794,
-0.04439091682434082,
-0.30277571082115173,
-0.06508475542068481,
0.05017958581447601,
-0.17318762838840485,
-0.2557677924633026,
0.08888493478298187,
-0.13525310158729553,
0.05351294204592705,
0.26578080654144287,
0.2841205298900604,
0.14053134620189667,
-0.3367415964603424,
0.2923120856285095,
0.05479948967695236,
0.16959284245967865,
0.31655949354171753,
0.3600858151912689,
-0.06004001945257187,
0.2894037961959839,
0.15190771222114563,
-0.09111402928829193,
-0.16481204330921173,
0.026324359700083733,
0.19034940004348755,
-0.21540354192256927,
-0.017991269007325172,
0.26575830578804016,
-0.22063875198364258,
-0.08004108816385269,
-0.3347049355506897,
-0.0027472747024148703,
0.556882381439209,
-0.14671792089939117,
0.03007938712835312,
-0.0424785353243351,
-0.28098803758621216,
0.051007479429244995,
-0.07855954021215439,
0.03401639312505722,
-0.04126134142279625,
0.08442258834838867,
0.13244912028312683,
-0.14156410098075867,
0.2787367105484009,
-0.02829154208302498,
0.018653353676199913,
-0.16378267109394073,
-0.22475206851959229,
0.40372607111930847,
0.25284260511398315,
0.3641708791255951,
-0.5667450428009033,
0.012629272416234016,
-0.1452673375606537,
0.25875088572502136,
0.18848104774951935,
0.0016209286404773593,
-0.3658011555671692,
0.049134403467178345,
-0.08211445808410645,
-0.3129558563232422,
0.09741686284542084,
0.19492220878601074,
-0.2755419611930847,
0.1266126185655594,
-0.2675856351852417,
0.07331909984350204,
-0.5204734802246094,
-0.03143421560525894,
-0.11651761084794998,
0.3148021996021271,
-0.09975282102823257,
0.2180161029100418,
-0.5487869381904602,
-0.34253987669944763,
0.0801355317234993,
0.12637490034103394,
-0.24248471856117249,
-0.19022224843502045,
-0.020824100822210312,
-0.1091122105717659,
0.20903319120407104,
-0.11989155411720276,
0.285554438829422,
0.09444988518953323,
-0.11857721209526062,
-0.228939026594162,
-0.03997078165411949,
-0.220155730843544,
-0.5566468238830566,
-0.10842416435480118,
0.19960324466228485,
-0.1301525980234146,
-0.00022805682965554297,
-0.05760250613093376,
0.18909913301467896,
-0.09557411074638367,
-0.4868345260620117,
0.7238265872001648,
-0.18994709849357605,
0.09456425905227661,
-0.016727004200220108,
0.030181940644979477,
-0.2948154807090759,
-0.27321580052375793,
-0.16753914952278137,
-0.5009494423866272,
-0.37386664748191833,
0.24111847579479218,
-0.2708863317966461,
-0.033590614795684814,
-0.18240876495838165,
0.021388959139585495,
-0.05599115416407585,
0.2840058505535126,
0.29966437816619873,
-0.5430159568786621,
-0.040545567870140076,
-0.058236099779605865,
-0.16866905987262726,
0.0062080626375973225,
-0.22962184250354767,
0.05838716775178909,
0.31554344296455383,
-0.2339012771844864,
-0.3587260842323303,
0.049567531794309616,
-0.672084629535675,
-0.02411278337240219,
-0.009577102027833462,
-0.3126116693019867,
0.18691310286521912,
0.03397463262081146,
0.2593633234500885,
0.31924089789390564,
-0.31935644149780273,
-0.2638483941555023,
-0.14689122140407562,
0.046595096588134766,
-0.0428558774292469,
-0.20671194791793823,
-0.00845749769359827,
-0.26858454942703247,
0.12503114342689514,
0.23261219263076782,
-0.22478443384170532,
-0.3884178400039673,
-0.2260909229516983,
-0.4874003529548645,
0.07798299938440323,
0.34830161929130554,
0.13260772824287415,
0.3848700523376465,
-0.26909157633781433,
0.4930743873119354,
0.19824306666851044,
-0.0017960043624043465,
-0.01594548672437668,
-0.1402796506881714,
-0.20682528614997864,
-0.019732262939214706,
0.19214841723442078,
-0.008257764391601086,
0.3593757152557373,
-0.01363297738134861,
-0.013846559450030327,
0.3824499249458313,
0.33121827244758606,
0.5278819799423218,
0.007640785071998835,
-0.317105770111084,
0.07945555448532104,
0.30871567130088806,
-0.06814873963594437,
-0.03021296113729477,
-0.18854065239429474,
-0.14615599811077118,
0.059338752180337906,
0.025448806583881378,
-0.14383940398693085,
-0.38959118723869324,
0.3677624762058258,
0.402981698513031,
0.44875624775886536,
0.1629847139120102,
-0.23258563876152039,
0.2161850482225418,
-0.09390891343355179,
0.0945589616894722,
-0.021979626268148422,
-0.038230158388614655,
0.2893945276737213,
-0.22580310702323914,
-0.3183583617210388,
-0.0890296995639801,
0.07621017843484879,
0.33412793278694153,
-0.16887876391410828,
-0.04843733459711075,
-0.3645451068878174,
0.3517848551273346,
-0.1683254987001419,
0.14764486253261566,
0.08139849454164505,
0.11176161468029022,
0.05570988729596138,
0.23917996883392334,
0.028434420004487038,
0.3731403648853302,
0.08047004044055939,
-0.12953007221221924,
-0.09984597563743591,
-0.14986006915569305,
-0.27216488122940063,
0.09162596613168716,
0.04748469963669777,
-0.07932606339454651,
0.24695393443107605,
-0.0038011781871318817,
0.02025720477104187,
-0.35025736689567566,
-0.2717888057231903,
-0.11011525243520737,
-0.0679338276386261,
-0.42714953422546387,
0.02327956072986126,
0.46283331513404846,
0.09292708337306976,
0.16418714821338654,
-0.0039368681609630585,
0.13927704095840454,
0.23760677874088287,
-0.0033122533932328224,
-0.05118812620639801,
0.042680930346250534,
0.10843060910701752,
-0.18843640387058258,
0.2558368444442749,
0.6394868493080139,
0.22251741588115692,
0.28655967116355896,
0.17572148144245148,
-0.35462936758995056,
0.20134477317333221,
0.004715000744909048,
-0.08574549853801727,
0.03063221462070942,
0.005844870116561651,
0.060983601957559586,
0.12018896639347076,
-0.18385185301303864,
-0.140483558177948,
-0.4646155834197998,
-0.039029303938150406,
-0.09165901690721512,
-0.4398086667060852,
0.1678721159696579,
-0.14584867656230927,
0.11156602948904037,
0.0005918503156863153,
0.5945186018943787,
0.06726234406232834,
0.22372129559516907,
0.07171403616666794,
-0.49384230375289917,
-0.24658043682575226,
0.11905200779438019,
-0.28564754128456116,
-0.0036760272923856974,
-0.20028041303157806,
0.1491798311471939,
-0.18928790092468262,
0.10653631389141083,
-0.006388834677636623,
-0.0037220115773379803,
0.1168578639626503,
0.08858499675989151,
0.05448759347200394,
0.04613334685564041,
-0.03375569358468056,
0.03850984945893288,
-0.05720289424061775,
-0.2785634994506836,
0.5586587190628052,
-0.46011435985565186,
0.22554181516170502,
-0.051130276173353195,
-0.13780425488948822,
-0.18151381611824036,
0.0197515357285738,
0.2623394727706909,
0.1208009123802185,
0.11603660136461258,
-0.23704682290554047,
-0.12325171381235123,
-0.08050214499235153,
-0.10315783321857452,
0.3936762511730194,
-0.2879680395126343,
0.3666875660419464,
-0.034850526601076126,
-0.1071532592177391,
-0.02690167911350727,
-0.0020114718936383724,
0.4636845290660858,
0.09767798334360123,
0.29977041482925415,
0.21860139071941376,
-0.28419792652130127,
0.07981880754232407,
-0.0610751174390316,
0.005282776430249214,
0.15216782689094543,
0.02297942526638508,
-0.2296515256166458,
-0.09659790247678757,
-0.29440736770629883,
0.19904272258281708,
0.16490411758422852,
-0.15348432958126068,
0.03807321563363075,
0.2333960384130478,
0.09944124519824982,
-0.008755464106798172,
0.08301883190870285,
0.2501694858074188,
0.17221197485923767,
0.10269494354724884,
-0.5839256644248962,
0.18696580827236176,
-0.1826639324426651,
-0.23320680856704712,
0.04187037795782089,
0.21414732933044434,
0.3058007061481476,
-0.19947248697280884,
0.2895098924636841,
-0.22922074794769287
] |
https://github.com/huggingface/datasets/issues/5270
|
When len(_URLS) > 16, download will hang
|
Debugging this would require quite some work in my opinion, and I've often failed to make reproducible examples, since it's pretty correlated to one's environment + hardware. So I wouldn't spend too much time on this unless we manage to reproduce this on another machine consistently.
Instead I'd encourage a more pragmatic fix that is: not create tons of processes (on regular machines it may slow things down anyway), and instead use multithreading by default.
|
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:01<00:00, 366kB/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:13<00:00, 1.18it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
| 75 |
When len(_URLS) > 16, download will hang
|
[
-0.35618311166763306,
-0.15406537055969238,
-0.2573458254337311,
0.18303023278713226,
0.23311255872249603,
-0.07892145961523056,
0.029426762834191322,
0.046859659254550934,
0.26982203125953674,
0.20958082377910614,
-0.10404272377490997,
-0.32338833808898926,
-0.06664596498012543,
-0.2741364538669586,
-0.27228811383247375,
0.2237529158592224,
-0.12956349551677704,
-0.02941983938217163,
-0.2225925177335739,
0.10779544711112976,
-0.450708270072937,
0.2663893699645996,
-0.0013458734611049294,
-0.2235354483127594,
0.22345121204853058,
0.2350965142250061,
0.2799101173877716,
0.1861484944820404,
-0.3113683760166168,
-0.49473798274993896,
-0.15827827155590057,
0.22592990100383759,
0.1301344633102417,
-0.020820239558815956,
-0.00010121761442860588,
-0.2040739208459854,
0.21811828017234802,
0.19010770320892334,
-0.42747417092323303,
0.1379660815000534,
-0.2643221318721771,
0.0772998258471489,
0.013070725835859776,
0.01883205585181713,
0.40394192934036255,
0.3526190519332886,
-0.05936043709516525,
-0.011338140815496445,
0.018883483484387398,
0.224971741437912,
0.24967651069164276,
0.024459781125187874,
0.07993566244840622,
-0.09612121433019638,
0.41302093863487244,
-0.2688952386379242,
0.050428956747055054,
0.3344174921512604,
0.26279082894325256,
0.016045328229665756,
-0.07638654857873917,
0.0160078015178442,
0.16776365041732788,
-0.01976090483367443,
-0.34979915618896484,
-0.20472198724746704,
0.11602418124675751,
-0.2673425078392029,
0.29948967695236206,
-0.045952338725328445,
-0.15855863690376282,
0.2678770124912262,
-0.02269439399242401,
-0.027707664296030998,
0.0077475314028561115,
-0.084836445748806,
0.31406617164611816,
0.3039005398750305,
0.0433451309800148,
0.11523456871509552,
-0.24355997145175934,
-0.07453618943691254,
-0.02036605030298233,
0.23403523862361908,
0.08313388377428055,
0.2510643005371094,
0.0383666455745697,
0.07972078025341034,
0.3352867364883423,
-0.017281053587794304,
-0.13650362193584442,
-0.17030633985996246,
0.10772937536239624,
0.009610145352780819,
0.13447622954845428,
0.18604576587677002,
0.12007595598697662,
0.13184717297554016,
0.3693464994430542,
-0.0379989929497242,
-0.07568792253732681,
0.1921439915895462,
0.03849524259567261,
-0.09047270566225052,
-0.08635333180427551,
-0.15126876533031464,
0.04697085916996002,
-0.049706727266311646,
0.33208662271499634,
0.5042951107025146,
0.16540750861167908,
0.16624508798122406,
-0.004951127339154482,
-0.09566126763820648,
-0.29008010029792786,
-0.11967726051807404,
-0.07084257900714874,
0.10153576731681824,
-0.05029965192079544,
0.24275964498519897,
0.0723571851849556,
0.1850481778383255,
0.17213670909404755,
0.2595895528793335,
-0.41566693782806396,
0.10005541145801544,
0.20363552868366241,
-0.0009783182758837938,
-0.16914987564086914,
0.10923264175653458,
-0.16658850014209747,
-0.2021520435810089,
0.00012850973871536553,
-0.1843768209218979,
0.17259562015533447,
-0.09494394809007645,
0.08232954144477844,
-0.008710182271897793,
-0.10281477868556976,
-0.35530832409858704,
0.09196915477514267,
-0.058851681649684906,
0.04105852544307709,
0.2953895330429077,
0.10668723285198212,
0.2745741307735443,
-0.10868728905916214,
-0.12137287110090256,
0.12755000591278076,
0.022012822329998016,
0.02697673812508583,
0.1828829050064087,
0.21219368278980255,
0.3272596597671509,
-0.15997537970542908,
0.15805497765541077,
0.4033485949039459,
-0.33493536710739136,
-0.01979072205722332,
0.24993933737277985,
0.18757475912570953,
-0.16136378049850464,
0.08806252479553223,
-0.060398172587156296,
0.09352591633796692,
0.5264043211936951,
0.17103886604309082,
0.06684405356645584,
0.008858812041580677,
-0.29409852623939514,
-0.00938585214316845,
0.05061149224638939,
0.0470464862883091,
-0.3697573244571686,
-0.21513007581233978,
0.4164828658103943,
0.2269127070903778,
-0.03823632001876831,
-0.32339951395988464,
0.5079792737960815,
-0.19708649814128876,
-0.24481771886348724,
-0.012363946065306664,
0.2370026409626007,
0.2630981504917145,
-0.0015323213301599026,
0.2844882607460022,
0.23523376882076263,
0.11333991587162018,
0.01157936081290245,
-0.35518306493759155,
-0.21619492769241333,
-0.27504420280456543,
0.09686151891946793,
-0.031091032549738884,
-0.15333707630634308,
0.035147525370121,
0.029499052092432976,
0.31790632009506226,
0.0068832943215966225,
-0.027526894584298134,
0.18555103242397308,
-0.07505083084106445,
0.18596966564655304,
-0.10277631878852844,
0.1325489729642868,
-0.24408705532550812,
0.07492022216320038,
-0.16333553194999695,
-0.13654382526874542,
0.009183711372315884,
-0.0030977774877101183,
-0.4546065330505371,
0.34442368149757385,
0.05757829546928406,
0.18374456465244293,
0.1838407665491104,
0.12065073847770691,
0.17569757997989655,
0.31766143441200256,
0.2527918815612793,
-0.11733615398406982,
-0.20591555535793304,
0.1346343755722046,
0.05717173591256142,
0.011302110739052296,
-0.1817532628774643,
0.05171091482043266,
0.3068832457065582,
-0.2055485099554062,
-0.0014731492847204208,
0.02831200323998928,
0.1649930775165558,
0.4357200562953949,
0.08638570457696915,
0.09471455961465836,
0.12451622635126114,
-0.025779658928513527,
0.30582401156425476,
0.11169610917568207,
-0.13978324830532074,
0.34710693359375,
0.10012055933475494,
0.13437797129154205,
0.2745252549648285,
-0.027410030364990234,
0.14225974678993225,
0.08875619620084763,
0.4708724617958069,
-0.20425869524478912,
0.18323872983455658,
-0.004291757941246033,
-0.04225362837314606,
-0.05613300949335098,
0.42750057578086853,
0.10405075550079346,
0.3743574619293213,
0.022972125560045242,
-0.0914660096168518,
0.17372146248817444,
0.20642311871051788,
-0.15993571281433105,
0.11410307139158249,
0.2167484164237976,
0.2273348718881607,
0.032291069626808167,
-0.2178553342819214,
0.029199806973338127,
0.09325212240219116,
0.05654139816761017,
0.21515485644340515,
-0.15280768275260925,
-0.27062222361564636,
-0.719377875328064,
0.16538384556770325,
0.10394877940416336,
-0.3720248341560364,
0.1272227168083191,
-0.028548363596200943,
-0.34297671914100647,
-0.3365797996520996,
-0.33872175216674805,
0.0031282096169888973,
0.1490909308195114,
0.07737129926681519,
-0.03689969703555107,
-0.1424155831336975,
-0.3365827202796936,
-0.09368877112865448,
0.013571346178650856,
-0.34997206926345825,
-0.2735872268676758,
0.17329871654510498,
0.2825598418712616,
-0.3052968382835388,
0.10188927501440048,
-0.2174646258354187,
0.00918774027377367,
0.4041125774383545,
0.11330270767211914,
0.17132461071014404,
0.017186040058732033,
-0.10804703086614609,
0.08907447010278702,
0.3968052864074707,
-0.5031251907348633,
0.08220210671424866,
0.11347304284572601,
-0.05782678723335266,
-0.2165156453847885,
-0.09399168938398361,
-0.0700925663113594,
0.3947594463825226,
-0.10541065037250519,
0.16352087259292603,
0.3393019735813141,
0.2976436913013458,
0.024388425052165985,
0.08454083651304245,
-0.02736032009124756,
0.12836705148220062,
-0.04021370783448219,
0.45192673802375793,
0.12034344673156738,
-0.3796444535255432,
-0.2142796367406845,
0.18980301916599274,
-0.46543189883232117,
0.061217065900564194,
0.012489089742302895,
0.11161642521619797,
0.11875507980585098,
0.4335567057132721,
0.08353136479854584,
0.26017308235168457,
-0.1694023311138153,
-0.15688958764076233,
0.0784115344285965,
0.2376783937215805,
-0.1508849412202835,
-0.3703739643096924,
-0.1105353832244873,
-0.06685984879732132,
-0.04761426895856857,
0.16310787200927734,
-0.5133163332939148,
0.34995412826538086,
-0.19859014451503754,
-0.1257530301809311,
-0.15620529651641846,
-0.25131821632385254,
0.2417023628950119,
-0.13957956433296204,
-0.28741374611854553,
-0.05302969738841057,
0.08985796570777893,
0.18341702222824097,
-0.2390277087688446,
0.1196451336145401,
-0.2439040094614029,
0.06312361359596252,
0.012021701782941818,
0.17080333828926086,
-0.23248817026615143,
0.12312015146017075,
0.3533233106136322,
0.05249632149934769,
0.1534317582845688,
0.11820704489946365,
0.3144252896308899,
0.10899190604686737,
0.2373121976852417,
0.01319789607077837,
0.5343934893608093,
0.3460833430290222,
-0.27623867988586426,
-0.20598836243152618,
-0.10864922404289246,
-0.03559621050953865,
-0.2100875824689865,
0.17038078606128693,
0.34775739908218384,
0.04609585180878639,
0.21760272979736328,
0.04104987531900406,
0.2906089127063751,
0.08013873547315598,
-0.07850772142410278,
0.0019497182220220566,
-0.007152186241000891,
-0.10015583783388138,
-0.08857215940952301,
0.11189056187868118,
-0.29815077781677246,
0.1617923229932785,
0.2367282658815384,
0.47107571363449097,
-0.12255274504423141,
-0.3154431879520416,
-0.1241297796368599,
-0.22143122553825378,
0.4080723822116852,
-0.022067023441195488,
0.34529909491539,
-0.2130862921476364,
0.25375044345855713,
-0.441230833530426,
-0.021392665803432465,
0.10169745981693268,
-0.29825279116630554,
0.4348728656768799,
0.23045998811721802,
-0.3229914605617523,
0.06601089239120483,
-0.05214277654886246,
-0.04061776399612427,
0.09607214480638504,
-0.060610830783843994,
-0.22824525833129883,
-0.4394353926181793,
-0.3339163064956665,
0.18733897805213928,
0.017027901485562325,
0.02426721714437008,
-0.2359025776386261,
-0.42441675066947937,
0.10506423562765121,
-0.6062357425689697,
-0.30523404479026794,
-0.04439091682434082,
-0.30277571082115173,
-0.06508475542068481,
0.05017958581447601,
-0.17318762838840485,
-0.2557677924633026,
0.08888493478298187,
-0.13525310158729553,
0.05351294204592705,
0.26578080654144287,
0.2841205298900604,
0.14053134620189667,
-0.3367415964603424,
0.2923120856285095,
0.05479948967695236,
0.16959284245967865,
0.31655949354171753,
0.3600858151912689,
-0.06004001945257187,
0.2894037961959839,
0.15190771222114563,
-0.09111402928829193,
-0.16481204330921173,
0.026324359700083733,
0.19034940004348755,
-0.21540354192256927,
-0.017991269007325172,
0.26575830578804016,
-0.22063875198364258,
-0.08004108816385269,
-0.3347049355506897,
-0.0027472747024148703,
0.556882381439209,
-0.14671792089939117,
0.03007938712835312,
-0.0424785353243351,
-0.28098803758621216,
0.051007479429244995,
-0.07855954021215439,
0.03401639312505722,
-0.04126134142279625,
0.08442258834838867,
0.13244912028312683,
-0.14156410098075867,
0.2787367105484009,
-0.02829154208302498,
0.018653353676199913,
-0.16378267109394073,
-0.22475206851959229,
0.40372607111930847,
0.25284260511398315,
0.3641708791255951,
-0.5667450428009033,
0.012629272416234016,
-0.1452673375606537,
0.25875088572502136,
0.18848104774951935,
0.0016209286404773593,
-0.3658011555671692,
0.049134403467178345,
-0.08211445808410645,
-0.3129558563232422,
0.09741686284542084,
0.19492220878601074,
-0.2755419611930847,
0.1266126185655594,
-0.2675856351852417,
0.07331909984350204,
-0.5204734802246094,
-0.03143421560525894,
-0.11651761084794998,
0.3148021996021271,
-0.09975282102823257,
0.2180161029100418,
-0.5487869381904602,
-0.34253987669944763,
0.0801355317234993,
0.12637490034103394,
-0.24248471856117249,
-0.19022224843502045,
-0.020824100822210312,
-0.1091122105717659,
0.20903319120407104,
-0.11989155411720276,
0.285554438829422,
0.09444988518953323,
-0.11857721209526062,
-0.228939026594162,
-0.03997078165411949,
-0.220155730843544,
-0.5566468238830566,
-0.10842416435480118,
0.19960324466228485,
-0.1301525980234146,
-0.00022805682965554297,
-0.05760250613093376,
0.18909913301467896,
-0.09557411074638367,
-0.4868345260620117,
0.7238265872001648,
-0.18994709849357605,
0.09456425905227661,
-0.016727004200220108,
0.030181940644979477,
-0.2948154807090759,
-0.27321580052375793,
-0.16753914952278137,
-0.5009494423866272,
-0.37386664748191833,
0.24111847579479218,
-0.2708863317966461,
-0.033590614795684814,
-0.18240876495838165,
0.021388959139585495,
-0.05599115416407585,
0.2840058505535126,
0.29966437816619873,
-0.5430159568786621,
-0.040545567870140076,
-0.058236099779605865,
-0.16866905987262726,
0.0062080626375973225,
-0.22962184250354767,
0.05838716775178909,
0.31554344296455383,
-0.2339012771844864,
-0.3587260842323303,
0.049567531794309616,
-0.672084629535675,
-0.02411278337240219,
-0.009577102027833462,
-0.3126116693019867,
0.18691310286521912,
0.03397463262081146,
0.2593633234500885,
0.31924089789390564,
-0.31935644149780273,
-0.2638483941555023,
-0.14689122140407562,
0.046595096588134766,
-0.0428558774292469,
-0.20671194791793823,
-0.00845749769359827,
-0.26858454942703247,
0.12503114342689514,
0.23261219263076782,
-0.22478443384170532,
-0.3884178400039673,
-0.2260909229516983,
-0.4874003529548645,
0.07798299938440323,
0.34830161929130554,
0.13260772824287415,
0.3848700523376465,
-0.26909157633781433,
0.4930743873119354,
0.19824306666851044,
-0.0017960043624043465,
-0.01594548672437668,
-0.1402796506881714,
-0.20682528614997864,
-0.019732262939214706,
0.19214841723442078,
-0.008257764391601086,
0.3593757152557373,
-0.01363297738134861,
-0.013846559450030327,
0.3824499249458313,
0.33121827244758606,
0.5278819799423218,
0.007640785071998835,
-0.317105770111084,
0.07945555448532104,
0.30871567130088806,
-0.06814873963594437,
-0.03021296113729477,
-0.18854065239429474,
-0.14615599811077118,
0.059338752180337906,
0.025448806583881378,
-0.14383940398693085,
-0.38959118723869324,
0.3677624762058258,
0.402981698513031,
0.44875624775886536,
0.1629847139120102,
-0.23258563876152039,
0.2161850482225418,
-0.09390891343355179,
0.0945589616894722,
-0.021979626268148422,
-0.038230158388614655,
0.2893945276737213,
-0.22580310702323914,
-0.3183583617210388,
-0.0890296995639801,
0.07621017843484879,
0.33412793278694153,
-0.16887876391410828,
-0.04843733459711075,
-0.3645451068878174,
0.3517848551273346,
-0.1683254987001419,
0.14764486253261566,
0.08139849454164505,
0.11176161468029022,
0.05570988729596138,
0.23917996883392334,
0.028434420004487038,
0.3731403648853302,
0.08047004044055939,
-0.12953007221221924,
-0.09984597563743591,
-0.14986006915569305,
-0.27216488122940063,
0.09162596613168716,
0.04748469963669777,
-0.07932606339454651,
0.24695393443107605,
-0.0038011781871318817,
0.02025720477104187,
-0.35025736689567566,
-0.2717888057231903,
-0.11011525243520737,
-0.0679338276386261,
-0.42714953422546387,
0.02327956072986126,
0.46283331513404846,
0.09292708337306976,
0.16418714821338654,
-0.0039368681609630585,
0.13927704095840454,
0.23760677874088287,
-0.0033122533932328224,
-0.05118812620639801,
0.042680930346250534,
0.10843060910701752,
-0.18843640387058258,
0.2558368444442749,
0.6394868493080139,
0.22251741588115692,
0.28655967116355896,
0.17572148144245148,
-0.35462936758995056,
0.20134477317333221,
0.004715000744909048,
-0.08574549853801727,
0.03063221462070942,
0.005844870116561651,
0.060983601957559586,
0.12018896639347076,
-0.18385185301303864,
-0.140483558177948,
-0.4646155834197998,
-0.039029303938150406,
-0.09165901690721512,
-0.4398086667060852,
0.1678721159696579,
-0.14584867656230927,
0.11156602948904037,
0.0005918503156863153,
0.5945186018943787,
0.06726234406232834,
0.22372129559516907,
0.07171403616666794,
-0.49384230375289917,
-0.24658043682575226,
0.11905200779438019,
-0.28564754128456116,
-0.0036760272923856974,
-0.20028041303157806,
0.1491798311471939,
-0.18928790092468262,
0.10653631389141083,
-0.006388834677636623,
-0.0037220115773379803,
0.1168578639626503,
0.08858499675989151,
0.05448759347200394,
0.04613334685564041,
-0.03375569358468056,
0.03850984945893288,
-0.05720289424061775,
-0.2785634994506836,
0.5586587190628052,
-0.46011435985565186,
0.22554181516170502,
-0.051130276173353195,
-0.13780425488948822,
-0.18151381611824036,
0.0197515357285738,
0.2623394727706909,
0.1208009123802185,
0.11603660136461258,
-0.23704682290554047,
-0.12325171381235123,
-0.08050214499235153,
-0.10315783321857452,
0.3936762511730194,
-0.2879680395126343,
0.3666875660419464,
-0.034850526601076126,
-0.1071532592177391,
-0.02690167911350727,
-0.0020114718936383724,
0.4636845290660858,
0.09767798334360123,
0.29977041482925415,
0.21860139071941376,
-0.28419792652130127,
0.07981880754232407,
-0.0610751174390316,
0.005282776430249214,
0.15216782689094543,
0.02297942526638508,
-0.2296515256166458,
-0.09659790247678757,
-0.29440736770629883,
0.19904272258281708,
0.16490411758422852,
-0.15348432958126068,
0.03807321563363075,
0.2333960384130478,
0.09944124519824982,
-0.008755464106798172,
0.08301883190870285,
0.2501694858074188,
0.17221197485923767,
0.10269494354724884,
-0.5839256644248962,
0.18696580827236176,
-0.1826639324426651,
-0.23320680856704712,
0.04187037795782089,
0.21414732933044434,
0.3058007061481476,
-0.19947248697280884,
0.2895098924636841,
-0.22922074794769287
] |
https://github.com/huggingface/datasets/issues/5270
|
When len(_URLS) > 16, download will hang
|
I am not expert of python. I hear about python has GIL, which result in multi processing is worse than multi threading. So I am not sure if this change makes sense?
And if this is a bug of multi processing, why not report to upstream and let them fix? And even if change it to multi threading, how can we make sure it can truly fix this problem?
|
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:01<00:00, 366kB/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:13<00:00, 1.18it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
| 69 |
When len(_URLS) > 16, download will hang
|
[
-0.35618311166763306,
-0.15406537055969238,
-0.2573458254337311,
0.18303023278713226,
0.23311255872249603,
-0.07892145961523056,
0.029426762834191322,
0.046859659254550934,
0.26982203125953674,
0.20958082377910614,
-0.10404272377490997,
-0.32338833808898926,
-0.06664596498012543,
-0.2741364538669586,
-0.27228811383247375,
0.2237529158592224,
-0.12956349551677704,
-0.02941983938217163,
-0.2225925177335739,
0.10779544711112976,
-0.450708270072937,
0.2663893699645996,
-0.0013458734611049294,
-0.2235354483127594,
0.22345121204853058,
0.2350965142250061,
0.2799101173877716,
0.1861484944820404,
-0.3113683760166168,
-0.49473798274993896,
-0.15827827155590057,
0.22592990100383759,
0.1301344633102417,
-0.020820239558815956,
-0.00010121761442860588,
-0.2040739208459854,
0.21811828017234802,
0.19010770320892334,
-0.42747417092323303,
0.1379660815000534,
-0.2643221318721771,
0.0772998258471489,
0.013070725835859776,
0.01883205585181713,
0.40394192934036255,
0.3526190519332886,
-0.05936043709516525,
-0.011338140815496445,
0.018883483484387398,
0.224971741437912,
0.24967651069164276,
0.024459781125187874,
0.07993566244840622,
-0.09612121433019638,
0.41302093863487244,
-0.2688952386379242,
0.050428956747055054,
0.3344174921512604,
0.26279082894325256,
0.016045328229665756,
-0.07638654857873917,
0.0160078015178442,
0.16776365041732788,
-0.01976090483367443,
-0.34979915618896484,
-0.20472198724746704,
0.11602418124675751,
-0.2673425078392029,
0.29948967695236206,
-0.045952338725328445,
-0.15855863690376282,
0.2678770124912262,
-0.02269439399242401,
-0.027707664296030998,
0.0077475314028561115,
-0.084836445748806,
0.31406617164611816,
0.3039005398750305,
0.0433451309800148,
0.11523456871509552,
-0.24355997145175934,
-0.07453618943691254,
-0.02036605030298233,
0.23403523862361908,
0.08313388377428055,
0.2510643005371094,
0.0383666455745697,
0.07972078025341034,
0.3352867364883423,
-0.017281053587794304,
-0.13650362193584442,
-0.17030633985996246,
0.10772937536239624,
0.009610145352780819,
0.13447622954845428,
0.18604576587677002,
0.12007595598697662,
0.13184717297554016,
0.3693464994430542,
-0.0379989929497242,
-0.07568792253732681,
0.1921439915895462,
0.03849524259567261,
-0.09047270566225052,
-0.08635333180427551,
-0.15126876533031464,
0.04697085916996002,
-0.049706727266311646,
0.33208662271499634,
0.5042951107025146,
0.16540750861167908,
0.16624508798122406,
-0.004951127339154482,
-0.09566126763820648,
-0.29008010029792786,
-0.11967726051807404,
-0.07084257900714874,
0.10153576731681824,
-0.05029965192079544,
0.24275964498519897,
0.0723571851849556,
0.1850481778383255,
0.17213670909404755,
0.2595895528793335,
-0.41566693782806396,
0.10005541145801544,
0.20363552868366241,
-0.0009783182758837938,
-0.16914987564086914,
0.10923264175653458,
-0.16658850014209747,
-0.2021520435810089,
0.00012850973871536553,
-0.1843768209218979,
0.17259562015533447,
-0.09494394809007645,
0.08232954144477844,
-0.008710182271897793,
-0.10281477868556976,
-0.35530832409858704,
0.09196915477514267,
-0.058851681649684906,
0.04105852544307709,
0.2953895330429077,
0.10668723285198212,
0.2745741307735443,
-0.10868728905916214,
-0.12137287110090256,
0.12755000591278076,
0.022012822329998016,
0.02697673812508583,
0.1828829050064087,
0.21219368278980255,
0.3272596597671509,
-0.15997537970542908,
0.15805497765541077,
0.4033485949039459,
-0.33493536710739136,
-0.01979072205722332,
0.24993933737277985,
0.18757475912570953,
-0.16136378049850464,
0.08806252479553223,
-0.060398172587156296,
0.09352591633796692,
0.5264043211936951,
0.17103886604309082,
0.06684405356645584,
0.008858812041580677,
-0.29409852623939514,
-0.00938585214316845,
0.05061149224638939,
0.0470464862883091,
-0.3697573244571686,
-0.21513007581233978,
0.4164828658103943,
0.2269127070903778,
-0.03823632001876831,
-0.32339951395988464,
0.5079792737960815,
-0.19708649814128876,
-0.24481771886348724,
-0.012363946065306664,
0.2370026409626007,
0.2630981504917145,
-0.0015323213301599026,
0.2844882607460022,
0.23523376882076263,
0.11333991587162018,
0.01157936081290245,
-0.35518306493759155,
-0.21619492769241333,
-0.27504420280456543,
0.09686151891946793,
-0.031091032549738884,
-0.15333707630634308,
0.035147525370121,
0.029499052092432976,
0.31790632009506226,
0.0068832943215966225,
-0.027526894584298134,
0.18555103242397308,
-0.07505083084106445,
0.18596966564655304,
-0.10277631878852844,
0.1325489729642868,
-0.24408705532550812,
0.07492022216320038,
-0.16333553194999695,
-0.13654382526874542,
0.009183711372315884,
-0.0030977774877101183,
-0.4546065330505371,
0.34442368149757385,
0.05757829546928406,
0.18374456465244293,
0.1838407665491104,
0.12065073847770691,
0.17569757997989655,
0.31766143441200256,
0.2527918815612793,
-0.11733615398406982,
-0.20591555535793304,
0.1346343755722046,
0.05717173591256142,
0.011302110739052296,
-0.1817532628774643,
0.05171091482043266,
0.3068832457065582,
-0.2055485099554062,
-0.0014731492847204208,
0.02831200323998928,
0.1649930775165558,
0.4357200562953949,
0.08638570457696915,
0.09471455961465836,
0.12451622635126114,
-0.025779658928513527,
0.30582401156425476,
0.11169610917568207,
-0.13978324830532074,
0.34710693359375,
0.10012055933475494,
0.13437797129154205,
0.2745252549648285,
-0.027410030364990234,
0.14225974678993225,
0.08875619620084763,
0.4708724617958069,
-0.20425869524478912,
0.18323872983455658,
-0.004291757941246033,
-0.04225362837314606,
-0.05613300949335098,
0.42750057578086853,
0.10405075550079346,
0.3743574619293213,
0.022972125560045242,
-0.0914660096168518,
0.17372146248817444,
0.20642311871051788,
-0.15993571281433105,
0.11410307139158249,
0.2167484164237976,
0.2273348718881607,
0.032291069626808167,
-0.2178553342819214,
0.029199806973338127,
0.09325212240219116,
0.05654139816761017,
0.21515485644340515,
-0.15280768275260925,
-0.27062222361564636,
-0.719377875328064,
0.16538384556770325,
0.10394877940416336,
-0.3720248341560364,
0.1272227168083191,
-0.028548363596200943,
-0.34297671914100647,
-0.3365797996520996,
-0.33872175216674805,
0.0031282096169888973,
0.1490909308195114,
0.07737129926681519,
-0.03689969703555107,
-0.1424155831336975,
-0.3365827202796936,
-0.09368877112865448,
0.013571346178650856,
-0.34997206926345825,
-0.2735872268676758,
0.17329871654510498,
0.2825598418712616,
-0.3052968382835388,
0.10188927501440048,
-0.2174646258354187,
0.00918774027377367,
0.4041125774383545,
0.11330270767211914,
0.17132461071014404,
0.017186040058732033,
-0.10804703086614609,
0.08907447010278702,
0.3968052864074707,
-0.5031251907348633,
0.08220210671424866,
0.11347304284572601,
-0.05782678723335266,
-0.2165156453847885,
-0.09399168938398361,
-0.0700925663113594,
0.3947594463825226,
-0.10541065037250519,
0.16352087259292603,
0.3393019735813141,
0.2976436913013458,
0.024388425052165985,
0.08454083651304245,
-0.02736032009124756,
0.12836705148220062,
-0.04021370783448219,
0.45192673802375793,
0.12034344673156738,
-0.3796444535255432,
-0.2142796367406845,
0.18980301916599274,
-0.46543189883232117,
0.061217065900564194,
0.012489089742302895,
0.11161642521619797,
0.11875507980585098,
0.4335567057132721,
0.08353136479854584,
0.26017308235168457,
-0.1694023311138153,
-0.15688958764076233,
0.0784115344285965,
0.2376783937215805,
-0.1508849412202835,
-0.3703739643096924,
-0.1105353832244873,
-0.06685984879732132,
-0.04761426895856857,
0.16310787200927734,
-0.5133163332939148,
0.34995412826538086,
-0.19859014451503754,
-0.1257530301809311,
-0.15620529651641846,
-0.25131821632385254,
0.2417023628950119,
-0.13957956433296204,
-0.28741374611854553,
-0.05302969738841057,
0.08985796570777893,
0.18341702222824097,
-0.2390277087688446,
0.1196451336145401,
-0.2439040094614029,
0.06312361359596252,
0.012021701782941818,
0.17080333828926086,
-0.23248817026615143,
0.12312015146017075,
0.3533233106136322,
0.05249632149934769,
0.1534317582845688,
0.11820704489946365,
0.3144252896308899,
0.10899190604686737,
0.2373121976852417,
0.01319789607077837,
0.5343934893608093,
0.3460833430290222,
-0.27623867988586426,
-0.20598836243152618,
-0.10864922404289246,
-0.03559621050953865,
-0.2100875824689865,
0.17038078606128693,
0.34775739908218384,
0.04609585180878639,
0.21760272979736328,
0.04104987531900406,
0.2906089127063751,
0.08013873547315598,
-0.07850772142410278,
0.0019497182220220566,
-0.007152186241000891,
-0.10015583783388138,
-0.08857215940952301,
0.11189056187868118,
-0.29815077781677246,
0.1617923229932785,
0.2367282658815384,
0.47107571363449097,
-0.12255274504423141,
-0.3154431879520416,
-0.1241297796368599,
-0.22143122553825378,
0.4080723822116852,
-0.022067023441195488,
0.34529909491539,
-0.2130862921476364,
0.25375044345855713,
-0.441230833530426,
-0.021392665803432465,
0.10169745981693268,
-0.29825279116630554,
0.4348728656768799,
0.23045998811721802,
-0.3229914605617523,
0.06601089239120483,
-0.05214277654886246,
-0.04061776399612427,
0.09607214480638504,
-0.060610830783843994,
-0.22824525833129883,
-0.4394353926181793,
-0.3339163064956665,
0.18733897805213928,
0.017027901485562325,
0.02426721714437008,
-0.2359025776386261,
-0.42441675066947937,
0.10506423562765121,
-0.6062357425689697,
-0.30523404479026794,
-0.04439091682434082,
-0.30277571082115173,
-0.06508475542068481,
0.05017958581447601,
-0.17318762838840485,
-0.2557677924633026,
0.08888493478298187,
-0.13525310158729553,
0.05351294204592705,
0.26578080654144287,
0.2841205298900604,
0.14053134620189667,
-0.3367415964603424,
0.2923120856285095,
0.05479948967695236,
0.16959284245967865,
0.31655949354171753,
0.3600858151912689,
-0.06004001945257187,
0.2894037961959839,
0.15190771222114563,
-0.09111402928829193,
-0.16481204330921173,
0.026324359700083733,
0.19034940004348755,
-0.21540354192256927,
-0.017991269007325172,
0.26575830578804016,
-0.22063875198364258,
-0.08004108816385269,
-0.3347049355506897,
-0.0027472747024148703,
0.556882381439209,
-0.14671792089939117,
0.03007938712835312,
-0.0424785353243351,
-0.28098803758621216,
0.051007479429244995,
-0.07855954021215439,
0.03401639312505722,
-0.04126134142279625,
0.08442258834838867,
0.13244912028312683,
-0.14156410098075867,
0.2787367105484009,
-0.02829154208302498,
0.018653353676199913,
-0.16378267109394073,
-0.22475206851959229,
0.40372607111930847,
0.25284260511398315,
0.3641708791255951,
-0.5667450428009033,
0.012629272416234016,
-0.1452673375606537,
0.25875088572502136,
0.18848104774951935,
0.0016209286404773593,
-0.3658011555671692,
0.049134403467178345,
-0.08211445808410645,
-0.3129558563232422,
0.09741686284542084,
0.19492220878601074,
-0.2755419611930847,
0.1266126185655594,
-0.2675856351852417,
0.07331909984350204,
-0.5204734802246094,
-0.03143421560525894,
-0.11651761084794998,
0.3148021996021271,
-0.09975282102823257,
0.2180161029100418,
-0.5487869381904602,
-0.34253987669944763,
0.0801355317234993,
0.12637490034103394,
-0.24248471856117249,
-0.19022224843502045,
-0.020824100822210312,
-0.1091122105717659,
0.20903319120407104,
-0.11989155411720276,
0.285554438829422,
0.09444988518953323,
-0.11857721209526062,
-0.228939026594162,
-0.03997078165411949,
-0.220155730843544,
-0.5566468238830566,
-0.10842416435480118,
0.19960324466228485,
-0.1301525980234146,
-0.00022805682965554297,
-0.05760250613093376,
0.18909913301467896,
-0.09557411074638367,
-0.4868345260620117,
0.7238265872001648,
-0.18994709849357605,
0.09456425905227661,
-0.016727004200220108,
0.030181940644979477,
-0.2948154807090759,
-0.27321580052375793,
-0.16753914952278137,
-0.5009494423866272,
-0.37386664748191833,
0.24111847579479218,
-0.2708863317966461,
-0.033590614795684814,
-0.18240876495838165,
0.021388959139585495,
-0.05599115416407585,
0.2840058505535126,
0.29966437816619873,
-0.5430159568786621,
-0.040545567870140076,
-0.058236099779605865,
-0.16866905987262726,
0.0062080626375973225,
-0.22962184250354767,
0.05838716775178909,
0.31554344296455383,
-0.2339012771844864,
-0.3587260842323303,
0.049567531794309616,
-0.672084629535675,
-0.02411278337240219,
-0.009577102027833462,
-0.3126116693019867,
0.18691310286521912,
0.03397463262081146,
0.2593633234500885,
0.31924089789390564,
-0.31935644149780273,
-0.2638483941555023,
-0.14689122140407562,
0.046595096588134766,
-0.0428558774292469,
-0.20671194791793823,
-0.00845749769359827,
-0.26858454942703247,
0.12503114342689514,
0.23261219263076782,
-0.22478443384170532,
-0.3884178400039673,
-0.2260909229516983,
-0.4874003529548645,
0.07798299938440323,
0.34830161929130554,
0.13260772824287415,
0.3848700523376465,
-0.26909157633781433,
0.4930743873119354,
0.19824306666851044,
-0.0017960043624043465,
-0.01594548672437668,
-0.1402796506881714,
-0.20682528614997864,
-0.019732262939214706,
0.19214841723442078,
-0.008257764391601086,
0.3593757152557373,
-0.01363297738134861,
-0.013846559450030327,
0.3824499249458313,
0.33121827244758606,
0.5278819799423218,
0.007640785071998835,
-0.317105770111084,
0.07945555448532104,
0.30871567130088806,
-0.06814873963594437,
-0.03021296113729477,
-0.18854065239429474,
-0.14615599811077118,
0.059338752180337906,
0.025448806583881378,
-0.14383940398693085,
-0.38959118723869324,
0.3677624762058258,
0.402981698513031,
0.44875624775886536,
0.1629847139120102,
-0.23258563876152039,
0.2161850482225418,
-0.09390891343355179,
0.0945589616894722,
-0.021979626268148422,
-0.038230158388614655,
0.2893945276737213,
-0.22580310702323914,
-0.3183583617210388,
-0.0890296995639801,
0.07621017843484879,
0.33412793278694153,
-0.16887876391410828,
-0.04843733459711075,
-0.3645451068878174,
0.3517848551273346,
-0.1683254987001419,
0.14764486253261566,
0.08139849454164505,
0.11176161468029022,
0.05570988729596138,
0.23917996883392334,
0.028434420004487038,
0.3731403648853302,
0.08047004044055939,
-0.12953007221221924,
-0.09984597563743591,
-0.14986006915569305,
-0.27216488122940063,
0.09162596613168716,
0.04748469963669777,
-0.07932606339454651,
0.24695393443107605,
-0.0038011781871318817,
0.02025720477104187,
-0.35025736689567566,
-0.2717888057231903,
-0.11011525243520737,
-0.0679338276386261,
-0.42714953422546387,
0.02327956072986126,
0.46283331513404846,
0.09292708337306976,
0.16418714821338654,
-0.0039368681609630585,
0.13927704095840454,
0.23760677874088287,
-0.0033122533932328224,
-0.05118812620639801,
0.042680930346250534,
0.10843060910701752,
-0.18843640387058258,
0.2558368444442749,
0.6394868493080139,
0.22251741588115692,
0.28655967116355896,
0.17572148144245148,
-0.35462936758995056,
0.20134477317333221,
0.004715000744909048,
-0.08574549853801727,
0.03063221462070942,
0.005844870116561651,
0.060983601957559586,
0.12018896639347076,
-0.18385185301303864,
-0.140483558177948,
-0.4646155834197998,
-0.039029303938150406,
-0.09165901690721512,
-0.4398086667060852,
0.1678721159696579,
-0.14584867656230927,
0.11156602948904037,
0.0005918503156863153,
0.5945186018943787,
0.06726234406232834,
0.22372129559516907,
0.07171403616666794,
-0.49384230375289917,
-0.24658043682575226,
0.11905200779438019,
-0.28564754128456116,
-0.0036760272923856974,
-0.20028041303157806,
0.1491798311471939,
-0.18928790092468262,
0.10653631389141083,
-0.006388834677636623,
-0.0037220115773379803,
0.1168578639626503,
0.08858499675989151,
0.05448759347200394,
0.04613334685564041,
-0.03375569358468056,
0.03850984945893288,
-0.05720289424061775,
-0.2785634994506836,
0.5586587190628052,
-0.46011435985565186,
0.22554181516170502,
-0.051130276173353195,
-0.13780425488948822,
-0.18151381611824036,
0.0197515357285738,
0.2623394727706909,
0.1208009123802185,
0.11603660136461258,
-0.23704682290554047,
-0.12325171381235123,
-0.08050214499235153,
-0.10315783321857452,
0.3936762511730194,
-0.2879680395126343,
0.3666875660419464,
-0.034850526601076126,
-0.1071532592177391,
-0.02690167911350727,
-0.0020114718936383724,
0.4636845290660858,
0.09767798334360123,
0.29977041482925415,
0.21860139071941376,
-0.28419792652130127,
0.07981880754232407,
-0.0610751174390316,
0.005282776430249214,
0.15216782689094543,
0.02297942526638508,
-0.2296515256166458,
-0.09659790247678757,
-0.29440736770629883,
0.19904272258281708,
0.16490411758422852,
-0.15348432958126068,
0.03807321563363075,
0.2333960384130478,
0.09944124519824982,
-0.008755464106798172,
0.08301883190870285,
0.2501694858074188,
0.17221197485923767,
0.10269494354724884,
-0.5839256644248962,
0.18696580827236176,
-0.1826639324426651,
-0.23320680856704712,
0.04187037795782089,
0.21414732933044434,
0.3058007061481476,
-0.19947248697280884,
0.2895098924636841,
-0.22922074794769287
] |
https://github.com/huggingface/datasets/issues/5270
|
When len(_URLS) > 16, download will hang
|
> Just my 2c. No offense.
sure np ^^
> I hear about python has GIL, which result in multi processing is worse than multi threading. So I am not sure if this change makes sense?
Here the bottleneck speed is the bandwidth used to download the files. When downloading, the GIL is released, so multithreading gives the same speed as multiprocessing.
> And if this is a bug of multi processing, why not report to upstream and let them fix?
Usually to fix a bug it's important to be able to reproduce it. This way you can share it, experiment with it, and then make sure it's fixed. Here I'm afraid it's not easy to reproduce. Though I think that spawning too many processes for your machine can lead to this kind of issues.
> And even if change it to multi threading, how can we make sure it can truly fix this problem?
Multithreading is more robust in python because IIRC there are less locks involved which are often the cause of code hanging for no reason.
|
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 531k/531k [00:01<00:00, 366kB/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:13<00:00, 1.18it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
| 179 |
When len(_URLS) > 16, download will hang
|
[
-0.35618311166763306,
-0.15406537055969238,
-0.2573458254337311,
0.18303023278713226,
0.23311255872249603,
-0.07892145961523056,
0.029426762834191322,
0.046859659254550934,
0.26982203125953674,
0.20958082377910614,
-0.10404272377490997,
-0.32338833808898926,
-0.06664596498012543,
-0.2741364538669586,
-0.27228811383247375,
0.2237529158592224,
-0.12956349551677704,
-0.02941983938217163,
-0.2225925177335739,
0.10779544711112976,
-0.450708270072937,
0.2663893699645996,
-0.0013458734611049294,
-0.2235354483127594,
0.22345121204853058,
0.2350965142250061,
0.2799101173877716,
0.1861484944820404,
-0.3113683760166168,
-0.49473798274993896,
-0.15827827155590057,
0.22592990100383759,
0.1301344633102417,
-0.020820239558815956,
-0.00010121761442860588,
-0.2040739208459854,
0.21811828017234802,
0.19010770320892334,
-0.42747417092323303,
0.1379660815000534,
-0.2643221318721771,
0.0772998258471489,
0.013070725835859776,
0.01883205585181713,
0.40394192934036255,
0.3526190519332886,
-0.05936043709516525,
-0.011338140815496445,
0.018883483484387398,
0.224971741437912,
0.24967651069164276,
0.024459781125187874,
0.07993566244840622,
-0.09612121433019638,
0.41302093863487244,
-0.2688952386379242,
0.050428956747055054,
0.3344174921512604,
0.26279082894325256,
0.016045328229665756,
-0.07638654857873917,
0.0160078015178442,
0.16776365041732788,
-0.01976090483367443,
-0.34979915618896484,
-0.20472198724746704,
0.11602418124675751,
-0.2673425078392029,
0.29948967695236206,
-0.045952338725328445,
-0.15855863690376282,
0.2678770124912262,
-0.02269439399242401,
-0.027707664296030998,
0.0077475314028561115,
-0.084836445748806,
0.31406617164611816,
0.3039005398750305,
0.0433451309800148,
0.11523456871509552,
-0.24355997145175934,
-0.07453618943691254,
-0.02036605030298233,
0.23403523862361908,
0.08313388377428055,
0.2510643005371094,
0.0383666455745697,
0.07972078025341034,
0.3352867364883423,
-0.017281053587794304,
-0.13650362193584442,
-0.17030633985996246,
0.10772937536239624,
0.009610145352780819,
0.13447622954845428,
0.18604576587677002,
0.12007595598697662,
0.13184717297554016,
0.3693464994430542,
-0.0379989929497242,
-0.07568792253732681,
0.1921439915895462,
0.03849524259567261,
-0.09047270566225052,
-0.08635333180427551,
-0.15126876533031464,
0.04697085916996002,
-0.049706727266311646,
0.33208662271499634,
0.5042951107025146,
0.16540750861167908,
0.16624508798122406,
-0.004951127339154482,
-0.09566126763820648,
-0.29008010029792786,
-0.11967726051807404,
-0.07084257900714874,
0.10153576731681824,
-0.05029965192079544,
0.24275964498519897,
0.0723571851849556,
0.1850481778383255,
0.17213670909404755,
0.2595895528793335,
-0.41566693782806396,
0.10005541145801544,
0.20363552868366241,
-0.0009783182758837938,
-0.16914987564086914,
0.10923264175653458,
-0.16658850014209747,
-0.2021520435810089,
0.00012850973871536553,
-0.1843768209218979,
0.17259562015533447,
-0.09494394809007645,
0.08232954144477844,
-0.008710182271897793,
-0.10281477868556976,
-0.35530832409858704,
0.09196915477514267,
-0.058851681649684906,
0.04105852544307709,
0.2953895330429077,
0.10668723285198212,
0.2745741307735443,
-0.10868728905916214,
-0.12137287110090256,
0.12755000591278076,
0.022012822329998016,
0.02697673812508583,
0.1828829050064087,
0.21219368278980255,
0.3272596597671509,
-0.15997537970542908,
0.15805497765541077,
0.4033485949039459,
-0.33493536710739136,
-0.01979072205722332,
0.24993933737277985,
0.18757475912570953,
-0.16136378049850464,
0.08806252479553223,
-0.060398172587156296,
0.09352591633796692,
0.5264043211936951,
0.17103886604309082,
0.06684405356645584,
0.008858812041580677,
-0.29409852623939514,
-0.00938585214316845,
0.05061149224638939,
0.0470464862883091,
-0.3697573244571686,
-0.21513007581233978,
0.4164828658103943,
0.2269127070903778,
-0.03823632001876831,
-0.32339951395988464,
0.5079792737960815,
-0.19708649814128876,
-0.24481771886348724,
-0.012363946065306664,
0.2370026409626007,
0.2630981504917145,
-0.0015323213301599026,
0.2844882607460022,
0.23523376882076263,
0.11333991587162018,
0.01157936081290245,
-0.35518306493759155,
-0.21619492769241333,
-0.27504420280456543,
0.09686151891946793,
-0.031091032549738884,
-0.15333707630634308,
0.035147525370121,
0.029499052092432976,
0.31790632009506226,
0.0068832943215966225,
-0.027526894584298134,
0.18555103242397308,
-0.07505083084106445,
0.18596966564655304,
-0.10277631878852844,
0.1325489729642868,
-0.24408705532550812,
0.07492022216320038,
-0.16333553194999695,
-0.13654382526874542,
0.009183711372315884,
-0.0030977774877101183,
-0.4546065330505371,
0.34442368149757385,
0.05757829546928406,
0.18374456465244293,
0.1838407665491104,
0.12065073847770691,
0.17569757997989655,
0.31766143441200256,
0.2527918815612793,
-0.11733615398406982,
-0.20591555535793304,
0.1346343755722046,
0.05717173591256142,
0.011302110739052296,
-0.1817532628774643,
0.05171091482043266,
0.3068832457065582,
-0.2055485099554062,
-0.0014731492847204208,
0.02831200323998928,
0.1649930775165558,
0.4357200562953949,
0.08638570457696915,
0.09471455961465836,
0.12451622635126114,
-0.025779658928513527,
0.30582401156425476,
0.11169610917568207,
-0.13978324830532074,
0.34710693359375,
0.10012055933475494,
0.13437797129154205,
0.2745252549648285,
-0.027410030364990234,
0.14225974678993225,
0.08875619620084763,
0.4708724617958069,
-0.20425869524478912,
0.18323872983455658,
-0.004291757941246033,
-0.04225362837314606,
-0.05613300949335098,
0.42750057578086853,
0.10405075550079346,
0.3743574619293213,
0.022972125560045242,
-0.0914660096168518,
0.17372146248817444,
0.20642311871051788,
-0.15993571281433105,
0.11410307139158249,
0.2167484164237976,
0.2273348718881607,
0.032291069626808167,
-0.2178553342819214,
0.029199806973338127,
0.09325212240219116,
0.05654139816761017,
0.21515485644340515,
-0.15280768275260925,
-0.27062222361564636,
-0.719377875328064,
0.16538384556770325,
0.10394877940416336,
-0.3720248341560364,
0.1272227168083191,
-0.028548363596200943,
-0.34297671914100647,
-0.3365797996520996,
-0.33872175216674805,
0.0031282096169888973,
0.1490909308195114,
0.07737129926681519,
-0.03689969703555107,
-0.1424155831336975,
-0.3365827202796936,
-0.09368877112865448,
0.013571346178650856,
-0.34997206926345825,
-0.2735872268676758,
0.17329871654510498,
0.2825598418712616,
-0.3052968382835388,
0.10188927501440048,
-0.2174646258354187,
0.00918774027377367,
0.4041125774383545,
0.11330270767211914,
0.17132461071014404,
0.017186040058732033,
-0.10804703086614609,
0.08907447010278702,
0.3968052864074707,
-0.5031251907348633,
0.08220210671424866,
0.11347304284572601,
-0.05782678723335266,
-0.2165156453847885,
-0.09399168938398361,
-0.0700925663113594,
0.3947594463825226,
-0.10541065037250519,
0.16352087259292603,
0.3393019735813141,
0.2976436913013458,
0.024388425052165985,
0.08454083651304245,
-0.02736032009124756,
0.12836705148220062,
-0.04021370783448219,
0.45192673802375793,
0.12034344673156738,
-0.3796444535255432,
-0.2142796367406845,
0.18980301916599274,
-0.46543189883232117,
0.061217065900564194,
0.012489089742302895,
0.11161642521619797,
0.11875507980585098,
0.4335567057132721,
0.08353136479854584,
0.26017308235168457,
-0.1694023311138153,
-0.15688958764076233,
0.0784115344285965,
0.2376783937215805,
-0.1508849412202835,
-0.3703739643096924,
-0.1105353832244873,
-0.06685984879732132,
-0.04761426895856857,
0.16310787200927734,
-0.5133163332939148,
0.34995412826538086,
-0.19859014451503754,
-0.1257530301809311,
-0.15620529651641846,
-0.25131821632385254,
0.2417023628950119,
-0.13957956433296204,
-0.28741374611854553,
-0.05302969738841057,
0.08985796570777893,
0.18341702222824097,
-0.2390277087688446,
0.1196451336145401,
-0.2439040094614029,
0.06312361359596252,
0.012021701782941818,
0.17080333828926086,
-0.23248817026615143,
0.12312015146017075,
0.3533233106136322,
0.05249632149934769,
0.1534317582845688,
0.11820704489946365,
0.3144252896308899,
0.10899190604686737,
0.2373121976852417,
0.01319789607077837,
0.5343934893608093,
0.3460833430290222,
-0.27623867988586426,
-0.20598836243152618,
-0.10864922404289246,
-0.03559621050953865,
-0.2100875824689865,
0.17038078606128693,
0.34775739908218384,
0.04609585180878639,
0.21760272979736328,
0.04104987531900406,
0.2906089127063751,
0.08013873547315598,
-0.07850772142410278,
0.0019497182220220566,
-0.007152186241000891,
-0.10015583783388138,
-0.08857215940952301,
0.11189056187868118,
-0.29815077781677246,
0.1617923229932785,
0.2367282658815384,
0.47107571363449097,
-0.12255274504423141,
-0.3154431879520416,
-0.1241297796368599,
-0.22143122553825378,
0.4080723822116852,
-0.022067023441195488,
0.34529909491539,
-0.2130862921476364,
0.25375044345855713,
-0.441230833530426,
-0.021392665803432465,
0.10169745981693268,
-0.29825279116630554,
0.4348728656768799,
0.23045998811721802,
-0.3229914605617523,
0.06601089239120483,
-0.05214277654886246,
-0.04061776399612427,
0.09607214480638504,
-0.060610830783843994,
-0.22824525833129883,
-0.4394353926181793,
-0.3339163064956665,
0.18733897805213928,
0.017027901485562325,
0.02426721714437008,
-0.2359025776386261,
-0.42441675066947937,
0.10506423562765121,
-0.6062357425689697,
-0.30523404479026794,
-0.04439091682434082,
-0.30277571082115173,
-0.06508475542068481,
0.05017958581447601,
-0.17318762838840485,
-0.2557677924633026,
0.08888493478298187,
-0.13525310158729553,
0.05351294204592705,
0.26578080654144287,
0.2841205298900604,
0.14053134620189667,
-0.3367415964603424,
0.2923120856285095,
0.05479948967695236,
0.16959284245967865,
0.31655949354171753,
0.3600858151912689,
-0.06004001945257187,
0.2894037961959839,
0.15190771222114563,
-0.09111402928829193,
-0.16481204330921173,
0.026324359700083733,
0.19034940004348755,
-0.21540354192256927,
-0.017991269007325172,
0.26575830578804016,
-0.22063875198364258,
-0.08004108816385269,
-0.3347049355506897,
-0.0027472747024148703,
0.556882381439209,
-0.14671792089939117,
0.03007938712835312,
-0.0424785353243351,
-0.28098803758621216,
0.051007479429244995,
-0.07855954021215439,
0.03401639312505722,
-0.04126134142279625,
0.08442258834838867,
0.13244912028312683,
-0.14156410098075867,
0.2787367105484009,
-0.02829154208302498,
0.018653353676199913,
-0.16378267109394073,
-0.22475206851959229,
0.40372607111930847,
0.25284260511398315,
0.3641708791255951,
-0.5667450428009033,
0.012629272416234016,
-0.1452673375606537,
0.25875088572502136,
0.18848104774951935,
0.0016209286404773593,
-0.3658011555671692,
0.049134403467178345,
-0.08211445808410645,
-0.3129558563232422,
0.09741686284542084,
0.19492220878601074,
-0.2755419611930847,
0.1266126185655594,
-0.2675856351852417,
0.07331909984350204,
-0.5204734802246094,
-0.03143421560525894,
-0.11651761084794998,
0.3148021996021271,
-0.09975282102823257,
0.2180161029100418,
-0.5487869381904602,
-0.34253987669944763,
0.0801355317234993,
0.12637490034103394,
-0.24248471856117249,
-0.19022224843502045,
-0.020824100822210312,
-0.1091122105717659,
0.20903319120407104,
-0.11989155411720276,
0.285554438829422,
0.09444988518953323,
-0.11857721209526062,
-0.228939026594162,
-0.03997078165411949,
-0.220155730843544,
-0.5566468238830566,
-0.10842416435480118,
0.19960324466228485,
-0.1301525980234146,
-0.00022805682965554297,
-0.05760250613093376,
0.18909913301467896,
-0.09557411074638367,
-0.4868345260620117,
0.7238265872001648,
-0.18994709849357605,
0.09456425905227661,
-0.016727004200220108,
0.030181940644979477,
-0.2948154807090759,
-0.27321580052375793,
-0.16753914952278137,
-0.5009494423866272,
-0.37386664748191833,
0.24111847579479218,
-0.2708863317966461,
-0.033590614795684814,
-0.18240876495838165,
0.021388959139585495,
-0.05599115416407585,
0.2840058505535126,
0.29966437816619873,
-0.5430159568786621,
-0.040545567870140076,
-0.058236099779605865,
-0.16866905987262726,
0.0062080626375973225,
-0.22962184250354767,
0.05838716775178909,
0.31554344296455383,
-0.2339012771844864,
-0.3587260842323303,
0.049567531794309616,
-0.672084629535675,
-0.02411278337240219,
-0.009577102027833462,
-0.3126116693019867,
0.18691310286521912,
0.03397463262081146,
0.2593633234500885,
0.31924089789390564,
-0.31935644149780273,
-0.2638483941555023,
-0.14689122140407562,
0.046595096588134766,
-0.0428558774292469,
-0.20671194791793823,
-0.00845749769359827,
-0.26858454942703247,
0.12503114342689514,
0.23261219263076782,
-0.22478443384170532,
-0.3884178400039673,
-0.2260909229516983,
-0.4874003529548645,
0.07798299938440323,
0.34830161929130554,
0.13260772824287415,
0.3848700523376465,
-0.26909157633781433,
0.4930743873119354,
0.19824306666851044,
-0.0017960043624043465,
-0.01594548672437668,
-0.1402796506881714,
-0.20682528614997864,
-0.019732262939214706,
0.19214841723442078,
-0.008257764391601086,
0.3593757152557373,
-0.01363297738134861,
-0.013846559450030327,
0.3824499249458313,
0.33121827244758606,
0.5278819799423218,
0.007640785071998835,
-0.317105770111084,
0.07945555448532104,
0.30871567130088806,
-0.06814873963594437,
-0.03021296113729477,
-0.18854065239429474,
-0.14615599811077118,
0.059338752180337906,
0.025448806583881378,
-0.14383940398693085,
-0.38959118723869324,
0.3677624762058258,
0.402981698513031,
0.44875624775886536,
0.1629847139120102,
-0.23258563876152039,
0.2161850482225418,
-0.09390891343355179,
0.0945589616894722,
-0.021979626268148422,
-0.038230158388614655,
0.2893945276737213,
-0.22580310702323914,
-0.3183583617210388,
-0.0890296995639801,
0.07621017843484879,
0.33412793278694153,
-0.16887876391410828,
-0.04843733459711075,
-0.3645451068878174,
0.3517848551273346,
-0.1683254987001419,
0.14764486253261566,
0.08139849454164505,
0.11176161468029022,
0.05570988729596138,
0.23917996883392334,
0.028434420004487038,
0.3731403648853302,
0.08047004044055939,
-0.12953007221221924,
-0.09984597563743591,
-0.14986006915569305,
-0.27216488122940063,
0.09162596613168716,
0.04748469963669777,
-0.07932606339454651,
0.24695393443107605,
-0.0038011781871318817,
0.02025720477104187,
-0.35025736689567566,
-0.2717888057231903,
-0.11011525243520737,
-0.0679338276386261,
-0.42714953422546387,
0.02327956072986126,
0.46283331513404846,
0.09292708337306976,
0.16418714821338654,
-0.0039368681609630585,
0.13927704095840454,
0.23760677874088287,
-0.0033122533932328224,
-0.05118812620639801,
0.042680930346250534,
0.10843060910701752,
-0.18843640387058258,
0.2558368444442749,
0.6394868493080139,
0.22251741588115692,
0.28655967116355896,
0.17572148144245148,
-0.35462936758995056,
0.20134477317333221,
0.004715000744909048,
-0.08574549853801727,
0.03063221462070942,
0.005844870116561651,
0.060983601957559586,
0.12018896639347076,
-0.18385185301303864,
-0.140483558177948,
-0.4646155834197998,
-0.039029303938150406,
-0.09165901690721512,
-0.4398086667060852,
0.1678721159696579,
-0.14584867656230927,
0.11156602948904037,
0.0005918503156863153,
0.5945186018943787,
0.06726234406232834,
0.22372129559516907,
0.07171403616666794,
-0.49384230375289917,
-0.24658043682575226,
0.11905200779438019,
-0.28564754128456116,
-0.0036760272923856974,
-0.20028041303157806,
0.1491798311471939,
-0.18928790092468262,
0.10653631389141083,
-0.006388834677636623,
-0.0037220115773379803,
0.1168578639626503,
0.08858499675989151,
0.05448759347200394,
0.04613334685564041,
-0.03375569358468056,
0.03850984945893288,
-0.05720289424061775,
-0.2785634994506836,
0.5586587190628052,
-0.46011435985565186,
0.22554181516170502,
-0.051130276173353195,
-0.13780425488948822,
-0.18151381611824036,
0.0197515357285738,
0.2623394727706909,
0.1208009123802185,
0.11603660136461258,
-0.23704682290554047,
-0.12325171381235123,
-0.08050214499235153,
-0.10315783321857452,
0.3936762511730194,
-0.2879680395126343,
0.3666875660419464,
-0.034850526601076126,
-0.1071532592177391,
-0.02690167911350727,
-0.0020114718936383724,
0.4636845290660858,
0.09767798334360123,
0.29977041482925415,
0.21860139071941376,
-0.28419792652130127,
0.07981880754232407,
-0.0610751174390316,
0.005282776430249214,
0.15216782689094543,
0.02297942526638508,
-0.2296515256166458,
-0.09659790247678757,
-0.29440736770629883,
0.19904272258281708,
0.16490411758422852,
-0.15348432958126068,
0.03807321563363075,
0.2333960384130478,
0.09944124519824982,
-0.008755464106798172,
0.08301883190870285,
0.2501694858074188,
0.17221197485923767,
0.10269494354724884,
-0.5839256644248962,
0.18696580827236176,
-0.1826639324426651,
-0.23320680856704712,
0.04187037795782089,
0.21414732933044434,
0.3058007061481476,
-0.19947248697280884,
0.2895098924636841,
-0.22922074794769287
] |
https://github.com/huggingface/datasets/issues/5265
|
Get an IterableDataset from a map-style Dataset
|
I think `stream` could be misleading since the data is not being streamed from remote endpoints (one could think that's the case when they see `load_dataset` followed by `stream`). Hence, I prefer the second option.
PS: When we resolve https://github.com/huggingface/datasets/issues/4542, we could add `as_tf_dataset` to the API for consistency and deprecate `to_tf_dataset`.
|
This is useful to leverage iterable datasets specific features like:
- fast approximate shuffling
- lazy map, filter etc.
Iterating over the resulting iterable dataset should be at least as fast at iterating over the map-style dataset.
Here are some ideas regarding the API:
```python
# 1.
# - consistency with load_dataset(..., streaming=True)
# - gives intuition that map/filter/etc. are done on-the-fly
ids = ds.stream()
# 2.
# - more explicit on the output type
# - but maybe sounds like a conversion tool rather than a step in a processing pipeline
ids = ds.as_iterable_dataset()
```
| 52 |
Get an IterableDataset from a map-style Dataset
|
[
-0.36830347776412964,
-0.25387948751449585,
-0.20844894647598267,
0.11226876825094223,
-0.0286428052932024,
0.1177472472190857,
0.27109402418136597,
0.2719980776309967,
0.04188494384288788,
-0.0139852249994874,
-0.10940033197402954,
0.28408515453338623,
-0.2583920359611511,
-0.004488443955779076,
-0.01136789657175541,
0.20607388019561768,
-0.22442948818206787,
0.25563183426856995,
-0.1510756015777588,
-0.1877581924200058,
-0.11301334202289581,
0.17360089719295502,
-0.2459232062101364,
-0.09220675379037857,
0.07213320583105087,
-0.26575517654418945,
-0.2201773226261139,
0.08076143264770508,
-0.16794870793819427,
-0.2964101731777191,
0.4233013689517975,
0.20497120916843414,
-0.11591257899999619,
-0.0505584254860878,
-0.00009841295832302421,
0.00979913491755724,
-0.24194854497909546,
-0.1895521581172943,
0.08180071413516998,
0.058233071118593216,
-0.42475610971450806,
-0.025752335786819458,
-0.28460830450057983,
-0.44978922605514526,
-0.18378734588623047,
-0.3934747576713562,
0.0346466563642025,
-0.4534364938735962,
0.15217044949531555,
-0.0893695056438446,
0.295839786529541,
-0.18888956308364868,
-0.37148818373680115,
-0.10988671332597733,
-0.0639723539352417,
0.24209044873714447,
-0.003677845699712634,
0.1308857649564743,
0.5690779089927673,
0.10955877602100372,
0.08740932494401932,
0.22202828526496887,
-0.19092856347560883,
0.11132895946502686,
0.06342677026987076,
-0.03140315040946007,
-0.0415336899459362,
0.2304033637046814,
0.14985966682434082,
0.1733635663986206,
0.36793053150177,
-0.2288116216659546,
-0.09384550899267197,
-0.2856779098510742,
-0.10290651023387909,
0.07219328731298447,
-0.13481873273849487,
-0.033246077597141266,
-0.06189672276377678,
0.16127771139144897,
-0.20571573078632355,
0.005930351093411446,
-0.1789015382528305,
0.2770639657974243,
0.07118897140026093,
0.16770543158054352,
-0.16052575409412384,
0.11818116903305054,
0.031693246215581894,
-0.0996151864528656,
0.23513153195381165,
-0.16043515503406525,
-0.1445799171924591,
0.43145614862442017,
0.1383129209280014,
-0.30145537853240967,
0.272296279668808,
0.05839964747428894,
0.48114579916000366,
0.010655061341822147,
0.22295908629894257,
-0.059571731835603714,
-0.23345673084259033,
-0.06614729017019272,
0.6113442778587341,
-0.3486986458301544,
0.01564444787800312,
0.22730308771133423,
-0.15515676140785217,
-0.13722746074199677,
-0.10179997235536575,
0.011121610179543495,
-0.011355182155966759,
0.013814487494528294,
0.36975958943367004,
0.08967164903879166,
0.06761772185564041,
0.01302778348326683,
-0.042712219059467316,
-0.11052852123975754,
-0.4686717391014099,
-0.0009114252752624452,
-0.04114818945527077,
-0.04949204996228218,
0.2296847403049469,
-0.24629996716976166,
-0.21523287892341614,
0.03512267768383026,
0.2247067093849182,
0.028630029410123825,
-0.30311259627342224,
-0.014764239080250263,
-0.0546640120446682,
-0.14843302965164185,
0.049548495560884476,
-0.03202947974205017,
0.1932048350572586,
-0.10294907540082932,
-0.337096244096756,
-0.14038744568824768,
0.23661686480045319,
-0.05432930216193199,
0.5501492619514465,
-0.156158909201622,
-0.039849743247032166,
-0.008446073159575462,
0.023348873481154442,
-0.3133390247821808,
-0.3412053883075714,
-0.16801771521568298,
-0.037390775978565216,
-0.20538389682769775,
0.26301640272140503,
0.2517191469669342,
-0.03331034258008003,
0.030664745718240738,
-0.0922517403960228,
0.4586515724658966,
0.06616591662168503,
-0.13106271624565125,
0.015591905452311039,
0.14927029609680176,
-0.06674361974000931,
-0.07736420631408691,
-0.026258986443281174,
0.3995327651500702,
-0.3229185938835144,
-0.13972891867160797,
-0.04888312891125679,
-0.11391356587409973,
0.016469715163111687,
0.15316076576709747,
-0.1488908976316452,
0.365477591753006,
-0.4620271623134613,
0.40666186809539795,
0.1843876838684082,
0.035165440291166306,
-0.37245479226112366,
0.35184574127197266,
0.060673173516988754,
0.09435576945543289,
-0.015221414156258106,
0.17326760292053223,
0.20931841433048248,
-0.22437924146652222,
0.15953123569488525,
0.040507614612579346,
-0.5247517824172974,
0.003727889386937022,
0.19360651075839996,
-0.16501978039741516,
-0.09613560140132904,
-0.09208083152770996,
0.12807689607143402,
0.3291444778442383,
0.17127448320388794,
-0.07735121995210648,
0.4181692898273468,
-0.19316422939300537,
0.01966773346066475,
0.2044188231229782,
0.03355108201503754,
-0.28290921449661255,
0.029941929504275322,
-0.4609639048576355,
-0.2701283097267151,
0.04395388811826706,
0.17214500904083252,
-0.2782876193523407,
-0.02463032491505146,
-0.10326854139566422,
-0.20690469443798065,
0.2070983499288559,
0.03321005031466484,
0.08078482747077942,
0.29097023606300354,
0.05445246770977974,
0.056546520441770554,
-0.2869569659233093,
-0.3256778419017792,
-0.2416173815727234,
-0.06176695227622986,
-0.28413546085357666,
-0.12458141893148422,
0.07178380340337753,
0.3263694941997528,
-0.017264077439904213,
0.08410845696926117,
0.20842111110687256,
-0.032089777290821075,
-0.2199764996767044,
0.21663351356983185,
0.14341212809085846,
0.18577036261558533,
0.21154338121414185,
0.25667738914489746,
0.5814284682273865,
0.06417904794216156,
0.00357988104224205,
-0.10971207171678543,
-0.031575173139572144,
0.0038669263012707233,
-0.16126587986946106,
-0.1746416687965393,
0.39649879932403564,
-0.32525360584259033,
0.3786014914512634,
0.028965597972273827,
0.26811400055885315,
0.32160302996635437,
0.07252786308526993,
-0.32932236790657043,
-0.3502611219882965,
-0.29114580154418945,
0.09727168083190918,
0.20351722836494446,
-0.11172974854707718,
-0.009163987822830677,
0.20139570534229279,
0.55846107006073,
0.06275153905153275,
0.07588230818510056,
-0.3119676411151886,
-0.2144821584224701,
0.10253149271011353,
0.13821977376937866,
0.1836005449295044,
0.12727084755897522,
0.12787210941314697,
0.10559741407632828,
0.03138570487499237,
0.11114764958620071,
0.11968784779310226,
0.13444378972053528,
0.1055057942867279,
0.31853243708610535,
0.08045902848243713,
-0.042562324553728104,
-0.30849406123161316,
-0.28635889291763306,
-0.34733134508132935,
-0.07346738874912262,
0.11343443393707275,
0.14847980439662933,
0.03262897580862045,
-0.09195501357316971,
-0.06382087618112564,
0.06475941091775894,
-0.22973521053791046,
0.18379104137420654,
-0.23022012412548065,
-0.08603905141353607,
0.3547593057155609,
-0.06012984737753868,
0.14520084857940674,
0.0034381397999823093,
0.2705928683280945,
0.3153458535671234,
-0.2161724865436554,
-0.03278771787881851,
-0.5748363733291626,
0.004709265194833279,
0.2606855630874634,
0.0536426343023777,
-0.2725408673286438,
0.4284631311893463,
-0.06265998631715775,
0.05298595875501633,
-0.33364883065223694,
-0.029613791033625603,
0.3011642098426819,
-0.10207676887512207,
-0.21137243509292603,
0.5846320986747742,
0.30528444051742554,
-0.10756617784500122,
0.12647809088230133,
-0.034194622188806534,
0.08521147817373276,
-0.14733906090259552,
-0.12287437915802002,
-0.20857690274715424,
-0.12397246807813644,
0.11193711310625076,
-0.13858848810195923,
0.06866591423749924,
-0.027463454753160477,
0.21460473537445068,
0.164388045668602,
0.1449560821056366,
0.2046535462141037,
0.12732543051242828,
0.12767286598682404,
0.15101438760757446,
-0.13774392008781433,
-0.2038128823041916,
0.008388261310756207,
0.19662553071975708,
-0.0655839592218399,
-0.056829191744327545,
-0.16453328728675842,
-0.24328646063804626,
0.2856127917766571,
0.277656614780426,
-0.16136233508586884,
-0.04665980860590935,
0.14569979906082153,
0.12723207473754883,
0.08731558173894882,
-0.23073524236679077,
0.452597975730896,
0.2993684709072113,
-0.1561068892478943,
-0.39572370052337646,
-0.006616936530917883,
0.35620033740997314,
0.14815561473369598,
-0.2168218046426773,
0.3011229932308197,
0.13454502820968628,
0.3462356925010681,
0.39186611771583557,
0.2266627550125122,
0.09938615560531616,
0.12737789750099182,
-0.259651780128479,
0.0021609070245176554,
0.11963588744401932,
-0.3336142599582672,
-0.04657689854502678,
-0.044532760977745056,
-0.1892509162425995,
0.2594631016254425,
-0.10358847677707672,
-0.514783501625061,
0.0040868730284273624,
0.31275516748428345,
-0.05004449561238289,
-0.260822594165802,
-0.07606210559606552,
-0.05023866519331932,
0.2140989601612091,
0.22899654507637024,
0.10657967627048492,
-0.32520169019699097,
0.07481010258197784,
0.17878766357898712,
-0.5763790607452393,
0.2265777289867401,
-0.20089827477931976,
-0.31133005023002625,
0.14459916949272156,
-0.028032725676894188,
0.10231012105941772,
0.2809784412384033,
0.046237461268901825,
0.00030196653096936643,
-0.09739477932453156,
-0.056424885988235474,
0.01658669486641884,
0.5820155143737793,
-0.10114256292581558,
0.04511675983667374,
0.02901441976428032,
0.014989917166531086,
-0.18530195951461792,
0.24085645377635956,
-0.2510720491409302,
0.671204149723053,
0.2586703300476074,
0.5751644372940063,
-0.34601667523384094,
0.00789828784763813,
0.025825075805187225,
-0.031488701701164246,
-0.03564876317977905,
0.05446713790297508,
0.2404913753271103,
-0.2483893185853958,
-0.04268524423241615,
0.08965517580509186,
0.10790526121854782,
0.10063217580318451,
0.6700999140739441,
-0.1670469492673874,
-0.30165499448776245,
-0.12387064099311829,
-0.058340463787317276,
0.059945158660411835,
0.13790257275104523,
0.12162511050701141,
0.15975406765937805,
0.34304729104042053,
0.08402905613183975,
-0.09030178934335709,
0.5153957009315491,
0.12435317784547806,
-0.04517342895269394,
0.15173304080963135,
-0.18029291927814484,
0.06357082724571228,
0.19426286220550537,
0.08015477657318115,
-0.18589971959590912,
0.21556438505649567,
-0.20745600759983063,
-0.4235934019088745,
-0.1675422340631485,
0.16929519176483154,
-0.0168803408741951,
-0.2785971760749817,
-0.4169468581676483,
0.18445062637329102,
-0.06253769993782043,
-0.23330235481262207,
0.5744702816009521,
0.007233880925923586,
-0.2454454004764557,
0.29840776324272156,
0.3316294252872467,
0.592006504535675,
-0.062266185879707336,
-0.10553967952728271,
0.18519844114780426,
0.25668981671333313,
-0.1825045496225357,
-0.04207692667841911,
0.08824555575847626,
-0.2509090006351471,
-0.36995965242385864,
-0.19870372116565704,
-0.055964116007089615,
-0.12199392914772034,
0.69544917345047,
0.015653181821107864,
-0.14125704765319824,
0.320537805557251,
0.3438529670238495,
-0.0015600713668391109,
-0.15417233109474182,
-0.08518228679895401,
-0.14654535055160522,
-0.21832755208015442,
0.2604312300682068,
-0.07495734095573425,
-0.06637656688690186,
0.0009071162203326821,
-0.06243206933140755,
0.2136814445257187,
0.08804120868444443,
-0.3773018717765808,
-0.059843651950359344,
-0.3073052167892456,
0.03295086696743965,
0.10337822884321213,
-0.08070237934589386,
-0.43193548917770386,
0.20788682997226715,
0.11494451016187668,
-0.06438133865594864,
-0.19541840255260468,
0.1006954163312912,
0.2773166000843048,
0.04829035699367523,
0.11966510862112045,
0.10473784059286118,
0.07942701876163483,
0.11075476557016373,
0.19016942381858826,
0.03596245497465134,
0.05708059296011925,
-0.33416640758514404,
-0.1964404433965683,
-0.02027210406959057,
0.123420350253582,
-0.30678170919418335,
-0.13589216768741608,
0.22156722843647003,
0.047587860375642776,
0.03235858678817749,
0.1773322969675064,
0.1235530748963356,
0.21560119092464447,
0.18572232127189636,
0.02655876614153385,
-0.06890508532524109,
0.027338817715644836,
0.319942831993103,
0.0958063155412674,
0.07696846127510071,
0.2791633605957031,
-0.06258411705493927,
-0.12138400226831436,
-0.3448058068752289,
0.054053280502557755,
0.1591366082429886,
-0.04912450537085533,
0.11986257135868073,
-0.423194944858551,
0.016025695949792862,
-0.13981659710407257,
0.31395772099494934,
0.15321604907512665,
0.1879042237997055,
-0.2100640833377838,
-0.34295445680618286,
-0.348588228225708,
0.21977855265140533,
0.16482101380825043,
0.2993091642856598,
0.12352562695741653,
-0.4390382766723633,
-0.3273150324821472,
0.07355424761772156,
-0.44562721252441406,
-0.30305367708206177,
-0.01787799410521984,
0.11537287384271622,
0.1124960407614708,
0.17877958714962006,
0.06541593372821808,
-0.07656177878379822,
0.3032878041267395,
0.1122044250369072,
-0.14327192306518555,
-0.3514833152294159,
-0.13304612040519714,
0.03126005083322525,
-0.09648974984884262,
-0.15543200075626373,
0.004721948876976967,
-0.1949026733636856,
-0.334131121635437,
-0.5433597564697266,
0.050101857632398605,
0.05310297757387161,
0.09728357940912247,
-0.11236118525266647,
0.2503291964530945,
-0.20953425765037537,
-0.26591742038726807,
-0.1836022436618805,
0.09752002358436584,
-0.06128893047571182,
-0.10773841291666031,
0.14431560039520264,
0.01820162869989872,
-0.2443252056837082,
0.24912305176258087,
0.3929843306541443,
0.4126591384410858,
0.08712414652109146,
0.5007591843605042,
0.04133928194642067,
0.04184409976005554,
0.4416944980621338,
0.42059144377708435,
0.14035676419734955,
-0.0555284321308136,
0.13027368485927582,
-0.028762660920619965,
0.30941835045814514,
-0.3081609308719635,
-0.16039679944515228,
0.19101671874523163,
-0.01739766262471676,
0.18410153687000275,
0.33574798703193665,
-0.10321855545043945,
0.11772000044584274,
0.37470972537994385,
-0.13589341938495636,
0.14294491708278656,
-0.5383619070053101,
-0.11435685306787491,
0.36497271060943604,
0.10913117974996567,
-0.21969500184059143,
0.08736518025398254,
0.3055921494960785,
0.4144384562969208,
0.2979750633239746,
-0.09882895648479462,
0.07951082289218903,
0.07080430537462234,
-0.07010543346405029,
0.29433900117874146,
-0.299561083316803,
0.053722456097602844,
0.0038363414350897074,
0.06720725446939468,
0.36553236842155457,
0.24488280713558197,
-0.19120870530605316,
0.010968524031341076,
-0.07317133247852325,
-0.21173247694969177,
0.0032977524679154158,
-0.013765053823590279,
-0.04374178126454353,
-0.23886938393115997,
-0.19098784029483795,
-0.06130922585725784,
-0.15040870010852814,
0.054383087903261185,
-0.2231127768754959,
0.23592616617679596,
-0.18615975975990295,
0.30875223875045776,
-0.41758665442466736,
0.22420230507850647,
-0.1861366629600525,
0.18509463965892792,
-0.2851708233356476,
0.018640827387571335,
-0.20258988440036774,
0.12513402104377747,
-0.05848538503050804,
0.3249139189720154,
-0.20331695675849915,
0.09223432093858719,
-0.03154103085398674,
0.1497611254453659,
-0.38607075810432434,
-0.41003212332725525,
-0.39382436871528625,
0.046349432319402695,
-0.35065174102783203,
-0.21023307740688324,
0.48708927631378174,
0.17660260200500488,
-0.044581349939107895,
0.11862770467996597,
0.21582980453968048,
-0.11179371923208237,
0.02191247045993805,
-0.17124421894550323,
0.10555196553468704,
-0.22308392822742462,
0.12359213829040527,
-0.09279653429985046,
0.25111398100852966,
-0.42391082644462585,
-0.02443511411547661,
-0.31318846344947815,
0.4255175292491913,
0.15965017676353455,
0.16678288578987122,
-0.045192502439022064,
0.1352207213640213,
0.16219623386859894,
0.06976117193698883,
-0.1351396143436432,
-0.18730230629444122,
-0.14155201613903046,
-0.29733380675315857,
0.03790288418531418,
-0.14662408828735352,
0.07864019274711609,
0.3020903468132019,
0.2856687009334564,
0.3467668294906616,
0.0771527886390686,
-0.22553624212741852,
-0.016056811437010765,
0.3843657374382019,
-0.027280325070023537,
-0.5154544711112976,
0.22116319835186005,
-0.02227248065173626,
0.1488327533006668,
-0.33892735838890076,
-0.005701697897166014,
-0.20702475309371948,
0.2642868757247925,
-0.02744857594370842,
-0.1589876264333725,
-0.10198299586772919,
-0.12133561819791794,
0.08159302920103073,
0.043877944350242615,
-0.13018961250782013,
-0.20797118544578552,
0.1083468496799469,
-0.23843161761760712,
-0.09179685264825821,
0.01524344366043806,
0.4557994604110718,
0.03201201930642128,
0.10002879798412323,
-0.2956884801387787,
0.044175565242767334,
0.09323988109827042,
-0.24215736985206604,
0.2136838436126709,
0.3477555215358734,
-0.32600754499435425,
0.2781088948249817,
-0.4693417549133301,
0.2008449137210846,
-0.21459178626537323,
0.2525430917739868,
-0.07456713169813156,
0.3943665325641632,
0.19312700629234314,
-0.05350150913000107,
0.23160213232040405,
-0.4037281274795532,
-0.36078783869743347,
0.45236822962760925,
0.06537652015686035,
0.06469932943582535,
-0.2204069197177887,
0.08672621101140976,
-0.12225278466939926,
0.5822228193283081,
-0.1540335714817047,
0.006985201966017485,
-0.12323057651519775,
0.1839188039302826,
0.09166792780160904,
-0.05443309247493744,
0.5616362690925598,
0.1172182559967041,
-0.3986265957355499,
-0.04056572541594505,
-0.29003414511680603
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
Could you share the full stack trace please ?
Can you also try running this code ? It can be useful to determine if the issue comes from `datasets` or `fsspec` (streaming) or `pyarrow` (parquet reading):
```python
ds = load_dataset("parquet", data_files=a_parquet_file_url, use_auth_token=True)
```
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 43 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
Here's the full trace
```
Traceback (most recent call last):
File "/home/loubna_huggingface_co/load.py", line 15, in <module>
ds_all = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java",use_auth_token=True, split="train", revision="v1.1.a1")
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1742, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 814, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 905, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 1502, in _prepare_split
for key, table in logging.tqdm(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py", line 67, in _generate_tables
parquet_file = pq.ParquetFile(f)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/parquet/__init__.py", line 286, in __init__
self.reader.open(
File "pyarrow/_parquet.pyx", line 1227, in pyarrow._parquet.ParquetReader.open
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
when running
```python
ds = load_dataset("parquet", data_files="https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj/blob/v1.1.a1/data/java/data_0000.parquet", use_auth_token=True)
```
I get 401 error, but that's the case for the python subset too which I can load properly
```
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1719, in load_dataset
builder_instance = load_dataset_builder(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1497, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1134, in dataset_module_factory
return PackagedDatasetModuleFactory(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 707, in get_module
data_files = DataFilesDict.from_local_or_remote(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 795, in from_local_or_remote
DataFilesList.from_local_or_remote(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 764, in from_local_or_remote
origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 710, in _get_origin_metadata_locally_or_by_urls
return thread_map(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/contrib/concurrent.py", line 94, in thread_map
return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/contrib/concurrent.py", line 76, in _executor_map
return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs))
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py", line 1183, in __iter__
for obj in iterable:
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/_base.py", line 609, in result_iterator
yield fs.pop().result()
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/_base.py", line 446, in result
return self.__get_result()
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 701, in _get_single_origin_metadata_locally_or_by_urls
return (request_etag(data_file, use_auth_token=use_auth_token),)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 411, in request_etag
response.raise_for_status()
File "/opt/conda/envs/venv/lib/python3.9/site-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj/blob/v1.1.a1/data/python/data_0000.parquet```
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 301 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
Can you check you used the right token ? You shouldn't get a 401 using your token
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 17 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
I checked it’s the right token, when loading the full dataset I get the error after data extraction so I can access the files.
```
Downloading and preparing dataset parquet/bigcode--the-stack-dedup-pjj to /home/loubna_huggingface_co/.cache/huggingface/datasets/bigcode___parquet/bigcode--the-stack-dedup-pjj-872ffac7f4bb46ca/0.0.0/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec...
Downloading data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 22.38it/s]
Extracting data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 49.91it/s]
Traceback (most recent call last):
File "/home/loubna_huggingface_co/load_ds.py", line 5, in <module>
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", use_auth_token=True,split="train", revision="v1.1.a1")
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1742, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 814, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 905, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 1502, in _prepare_split
for key, table in logging.tqdm(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py", line 67, in _generate_tables
parquet_file = pq.ParquetFile(f)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/parquet/__init__.py", line 286, in __init__
self.reader.open(
File "pyarrow/_parquet.pyx", line 1227, in pyarrow._parquet.ParquetReader.open
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
Could it be that I'm using a wrong url, I just copied it from the address bar
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 172 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
The URL is wrong indeed, the right one is the one with "resolve" (the one you get when clicking on "download")- otherwise you try to download an html page ;)
```
https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj/resolve/v1.1.a1/data/java/data_0000.parquet
```
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 33 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
Ah thanks! So I tried it with the first parquet file and it works, is there a way to know which parquet file was causing the issue since there are a lot of shards?
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 34 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
I think you have to try them all :/
Alternatively you can add a try/catch in `parquet.py` in `datasets` to raise the name of the file that fails at doing `parquet_file = pq.ParquetFile(f)` when you run your initial code
```python
load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
```
but it will still iterate on all the files until it fails
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 58 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
I did find the file, and I get the same error as before
```
Downloading data files: 100%|███████████████████| 1/1 [00:00<00:00, 8160.12it/s]
Extracting data files: 100%|████████████████████| 1/1 [00:00<00:00, 1447.81it/s]
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
Input In [22], in <cell line: 7>()
4 data_features = (data["train"].features)
6 url = "/home/loubna_huggingface_co/.cache/huggingface/datasets/downloads/93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7"
----> 7 data = load_dataset("parquet",
8 data_files=url,
9 split="train",
10 features=data_features,
11 use_auth_token=True)
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py:1742, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1739 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1741 # Download and prepare data
-> 1742 builder_instance.download_and_prepare(
1743 download_config=download_config,
1744 download_mode=download_mode,
1745 ignore_verifications=ignore_verifications,
1746 try_from_hf_gcs=try_from_hf_gcs,
1747 use_auth_token=use_auth_token,
1748 )
1750 # Build dataset for splits
1751 keep_in_memory = (
1752 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1753 )
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py:814, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, storage_options, **download_and_prepare_kwargs)
808 if not downloaded_from_gcs:
809 prepare_split_kwargs = {
810 "file_format": file_format,
811 "max_shard_size": max_shard_size,
812 **download_and_prepare_kwargs,
813 }
--> 814 self._download_and_prepare(
815 dl_manager=dl_manager,
816 verify_infos=verify_infos,
817 **prepare_split_kwargs,
818 **download_and_prepare_kwargs,
819 )
820 # Sync info
821 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py:905, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
901 split_dict.add(split_generator.split_info)
903 try:
904 # Prepare split will record examples associated to the split
--> 905 self._prepare_split(split_generator, **prepare_split_kwargs)
906 except OSError as e:
907 raise OSError(
908 "Cannot find data file. "
909 + (self.manual_download_instructions or "")
910 + "\nOriginal error:\n"
911 + str(e)
912 ) from None
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py:1502, in ArrowBasedBuilder._prepare_split(self, split_generator, file_format, max_shard_size)
1500 total_num_examples, total_num_bytes = 0, 0
1501 try:
-> 1502 for key, table in logging.tqdm(
1503 generator,
1504 unit=" tables",
1505 leave=False,
1506 disable=not logging.is_progress_bar_enabled(),
1507 ):
1508 if max_shard_size is not None and writer._num_bytes > max_shard_size:
1509 num_examples, num_bytes = writer.finalize()
File /opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py:1195, in tqdm.__iter__(self)
1192 time = self._time
1194 try:
-> 1195 for obj in iterable:
1196 yield obj
1197 # Update and possibly print the progressbar.
1198 # Note: does not call self.update(1) for speed optimisation.
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py:67, in Parquet._generate_tables(self, files)
65 for file_idx, file in enumerate(itertools.chain.from_iterable(files)):
66 with open(file, "rb") as f:
---> 67 parquet_file = pq.ParquetFile(f)
68 try:
69 for batch_idx, record_batch in enumerate(
70 parquet_file.iter_batches(batch_size=self.config.batch_size, columns=self.config.columns)
71 ):
File /opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/parquet/__init__.py:286, in ParquetFile.__init__(self, source, metadata, common_metadata, read_dictionary, memory_map, buffer_size, pre_buffer, coerce_int96_timestamp_unit, decryption_properties, thrift_string_size_limit, thrift_container_size_limit)
280 def __init__(self, source, *, metadata=None, common_metadata=None,
281 read_dictionary=None, memory_map=False, buffer_size=0,
282 pre_buffer=False, coerce_int96_timestamp_unit=None,
283 decryption_properties=None, thrift_string_size_limit=None,
284 thrift_container_size_limit=None):
285 self.reader = ParquetReader()
--> 286 self.reader.open(
287 source, use_memory_map=memory_map,
288 buffer_size=buffer_size, pre_buffer=pre_buffer,
289 read_dictionary=read_dictionary, metadata=metadata,
290 coerce_int96_timestamp_unit=coerce_int96_timestamp_unit,
291 decryption_properties=decryption_properties,
292 thrift_string_size_limit=thrift_string_size_limit,
293 thrift_container_size_limit=thrift_container_size_limit,
294 )
295 self.common_metadata = common_metadata
296 self._nested_paths_by_prefix = self._build_nested_paths()
File /opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/_parquet.pyx:1227, in pyarrow._parquet.ParquetReader.open()
File /opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/error.pxi:100, in pyarrow.lib.check_status()
ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 465 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
Can you check the JSON file associated to `/home/loubna_huggingface_co/.cache/huggingface/datasets/downloads/93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7` ? In the JSON file we can know from where it was downloaded
You can find it at `/home/loubna_huggingface_co/.cache/huggingface/datasets/downloads/93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7.json`
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 28 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
I'm able to load it properly using
```python
ds = load_dataset("parquet", data_files=a_parquet_file_url, use_auth_token=token)
```
My guess is that your download was corrupted. Please delete `93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7` and `93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7.json` locally and try again
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 31 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
That worked, thanks! But I thought if something went wrong with a download `datasets` creates new cache for all the files, that's not the case? (at some point I even changed dataset versions so it was still using that cache?)
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 40 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
Cool !
> But I thought if something went wrong with a download datasets creates new cache for all the files
We don't perform integrity verifications if we don't know in advance the hash of the file to download.
> at some point I even changed dataset versions so it was still using that cache?
`datasets` caches the files by URL and ETag. If the content of a file changes, then the ETag changes and so it redownloads the file
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 80 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5264
|
`datasets` can't read a Parquet file in Python 3.9.13
|
I experience the same error in v 2.12.0. But found out it was due to one column from polars was a categorical dtype (related to the error from #5706. Temporarily resolved it by casting the column to str instead.
|
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
| 39 |
`datasets` can't read a Parquet file in Python 3.9.13
|
[
-0.3800830543041229,
0.07631088048219681,
-0.1883685290813446,
0.21809513866901398,
0.3117997646331787,
0.16252918541431427,
0.053439218550920486,
0.13869188725948334,
-0.004878104664385319,
-0.05802319571375847,
-0.046398356556892395,
0.46008536219596863,
-0.22710062563419342,
0.3410235643386841,
-0.03403187170624733,
0.09341804683208466,
-0.000900528859347105,
0.11079692095518112,
0.17939965426921844,
-0.007373031694442034,
-0.2302393615245819,
0.2700667679309845,
-0.10801279544830322,
0.1536424309015274,
-0.042915914207696915,
-0.22357501089572906,
0.025000074878335,
0.2319636344909668,
-0.42670297622680664,
-0.3647651970386505,
0.2332325428724289,
0.051061686128377914,
-0.0378393791615963,
0.4480684995651245,
-0.0001021320786094293,
0.19724787771701813,
0.3344958424568176,
-0.01885702647268772,
-0.2626537084579468,
-0.18449844419956207,
-0.2457919865846634,
-0.38415876030921936,
0.3039664328098297,
-0.26597312092781067,
-0.257500022649765,
-0.2915133535861969,
0.19744352996349335,
-0.42432528734207153,
0.2348591536283493,
0.535361647605896,
0.29221323132514954,
0.3500893712043762,
0.02741922438144684,
0.030260253697633743,
0.48724114894866943,
0.005898422561585903,
-0.03469552844762802,
-0.011206809431314468,
0.1898721307516098,
0.014574502594769001,
0.05656912922859192,
0.014294378459453583,
-0.07788780331611633,
0.018868476152420044,
0.21602188050746918,
0.07787168771028519,
-0.10716792941093445,
-0.1815122365951538,
0.2480386644601822,
-0.08297643810510635,
0.4146451950073242,
-0.43719443678855896,
-0.3981616795063019,
-0.1825833022594452,
-0.1477036476135254,
-0.37874075770378113,
0.09359097480773926,
0.2903898358345032,
0.11659272015094757,
0.1746787577867508,
0.09299212694168091,
-0.2446516752243042,
-0.12734708189964294,
0.06362870335578918,
-0.1820165067911148,
0.4046194851398468,
-0.2500794529914856,
0.08408231288194656,
-0.11347486823797226,
-0.11497160792350769,
0.16825652122497559,
0.10366331785917282,
0.00034770669299177825,
-0.03448352962732315,
-0.09982076287269592,
-0.018476905301213264,
0.1255413442850113,
0.013692324049770832,
-0.09339818358421326,
0.15860041975975037,
-0.12540288269519806,
0.12399037182331085,
0.19490225613117218,
0.2329624444246292,
0.40175968408584595,
-0.4488023817539215,
0.06386314332485199,
0.41004908084869385,
0.2748829126358032,
0.1903011053800583,
-0.1427435725927353,
-0.18695150315761566,
0.06492865830659866,
-0.20162546634674072,
-0.07680462300777435,
-0.1617690622806549,
0.4601685404777527,
-0.19690492749214172,
0.03115924261510372,
0.40606167912483215,
0.2216612696647644,
-0.0010697224643081427,
-0.0482163205742836,
0.4196722209453583,
0.07300923019647598,
-0.14437466859817505,
-0.09704574942588806,
0.34041857719421387,
-0.2291949838399887,
-0.2195008099079132,
-0.3426370620727539,
0.15008790791034698,
-0.06514723598957062,
-0.33893710374832153,
0.1423249989748001,
-0.04839666560292244,
0.2554605007171631,
-0.013404377736151218,
-0.019171908497810364,
-0.09363854676485062,
0.2043265998363495,
-0.1415187120437622,
0.102972611784935,
0.2961796820163727,
0.07421597838401794,
0.21283729374408722,
0.3067767918109894,
-0.27511876821517944,
-0.17841163277626038,
-0.049082741141319275,
-0.30341270565986633,
-0.08202791213989258,
-0.009289087727665901,
0.23397813737392426,
0.06790085881948471,
-0.04216873273253441,
-0.3814549446105957,
0.16384978592395782,
0.023375123739242554,
-0.20367775857448578,
-0.21039192378520966,
-0.26137807965278625,
-0.019849155098199844,
-0.29525044560432434,
0.0413164384663105,
0.07726303488016129,
-0.3842717111110687,
0.24822723865509033,
-0.05240194872021675,
-0.2701528072357178,
0.2685883939266205,
0.18659092485904694,
-0.15675179660320282,
-0.15482975542545319,
-0.05536434426903725,
0.22988589107990265,
0.5612520575523376,
-0.06920599937438965,
-0.2544233798980713,
0.24273796379566193,
0.13213282823562622,
-0.10346286743879318,
0.1137821227312088,
-0.12362319976091385,
0.411735862493515,
0.10506082326173782,
0.0032480035442858934,
0.12570402026176453,
0.13625608384609222,
0.11049545556306839,
-0.06917249411344528,
-0.03337821364402771,
0.26896512508392334,
0.13274945318698883,
0.07261421531438828,
-0.149421826004982,
0.2559535801410675,
0.05656474083662033,
0.24563436210155487,
-0.1195734515786171,
-0.008357040584087372,
0.3531419038772583,
0.1290435791015625,
0.4548438489437103,
-0.028174716979265213,
-0.21052652597427368,
-0.2649582028388977,
-0.027674993500113487,
0.1531250923871994,
-0.12647472321987152,
-0.4294523298740387,
-0.20808492600917816,
-0.17571459710597992,
0.26723313331604004,
-0.04964611679315567,
-0.34869420528411865,
0.2830261290073395,
0.31041842699050903,
0.04468217492103577,
0.13970857858657837,
-0.2938489019870758,
0.16243873536586761,
0.014789275825023651,
0.09947367757558823,
-0.2713187038898468,
0.2741031348705292,
-0.16785268485546112,
-0.3992372751235962,
0.2725357115268707,
0.07557498663663864,
0.09110066294670105,
-0.12472575157880783,
0.040589142590761185,
0.3291109800338745,
0.4711352586746216,
-0.1463003158569336,
0.062455914914608,
-0.005418713670223951,
-0.036875441670417786,
-0.22150923311710358,
-0.011667763814330101,
0.04400746896862984,
0.13323505222797394,
0.1766895353794098,
-0.2775907516479492,
0.21469537913799286,
0.1924443244934082,
-0.09816312044858932,
0.16771681606769562,
-0.15943121910095215,
0.3110082149505615,
0.23079505562782288,
-0.14984320104122162,
-0.07912807166576385,
0.03115726448595524,
0.03622383996844292,
0.04691588506102562,
-0.08989729732275009,
-0.5431841015815735,
-0.08407232910394669,
0.5673742294311523,
0.048604000359773636,
0.07797525823116302,
-0.1349485218524933,
0.12101949006319046,
-0.058749184012413025,
0.06836274266242981,
0.14236705005168915,
0.006876506842672825,
0.23158204555511475,
0.24157170951366425,
0.10079362988471985,
-0.20338833332061768,
-0.10971604287624359,
0.026776481419801712,
0.304802805185318,
-0.12768416106700897,
-0.006787918508052826,
0.20395363867282867,
-0.24202248454093933,
-0.28072798252105713,
0.03964095190167427,
-0.08455131202936172,
0.2264852672815323,
-0.3757578134536743,
0.2767470180988312,
-0.3297800123691559,
0.10388675332069397,
-0.007574255112558603,
0.2169508934020996,
-0.20487788319587708,
-0.39872387051582336,
-0.0706028863787651,
0.10127197951078415,
-0.02686941996216774,
-0.13621550798416138,
-0.07537540793418884,
-0.052909523248672485,
0.15704749524593353,
-0.024039769545197487,
-0.04459719732403755,
-0.42998579144477844,
-0.125050351023674,
0.16289585828781128,
0.12595234811306,
0.16510732471942902,
0.16803793609142303,
-0.12883204221725464,
-0.025898171588778496,
-0.4363380968570709,
-0.28444087505340576,
0.038573477417230606,
-0.07386180758476257,
0.43565499782562256,
0.29321950674057007,
0.12370818853378296,
-0.20248106122016907,
-0.16821342706680298,
0.30536752939224243,
-0.27945566177368164,
-0.006292961072176695,
0.0278193149715662,
0.10020097345113754,
-0.19236846268177032,
-0.0424916073679924,
-0.422067791223526,
-0.24425175786018372,
-0.31490397453308105,
0.20681093633174896,
0.2921350300312042,
-0.07248574495315552,
-0.196458637714386,
0.00995289534330368,
0.10697799175977707,
-0.06881119310855865,
0.22298181056976318,
-0.07982844114303589,
-0.2350822389125824,
0.29861560463905334,
-0.2975282669067383,
-0.35784587264060974,
0.16818681359291077,
0.014200057834386826,
0.2745783030986786,
0.16594849526882172,
-0.3642272651195526,
-0.005580815486609936,
-0.12823770940303802,
-0.052491966634988785,
-0.020029054954648018,
0.16340573132038116,
0.15292076766490936,
-0.019539007917046547,
-0.07085571438074112,
-0.24028925597667694,
-0.2153051793575287,
-0.07295649498701096,
0.09932761639356613,
-0.1229739859700203,
-0.08112262189388275,
0.5105181932449341,
-0.07010684907436371,
0.32754167914390564,
0.018291324377059937,
0.1367127001285553,
0.396573930978775,
-0.3478381037712097,
0.5804539322853088,
-0.02572365663945675,
-0.12296724319458008,
-0.10133256018161774,
0.044958263635635376,
-0.2639940679073334,
0.2754077911376953,
-0.03817107155919075,
-0.19376204907894135,
-0.057233113795518875,
-0.07603075355291367,
-0.3162382245063782,
-0.27718713879585266,
-0.1831549108028412,
0.41105273365974426,
0.11120359599590302,
0.05180869996547699,
0.15888148546218872,
-0.10113291442394257,
0.06733455508947372,
0.08965723216533661,
0.2708098888397217,
-0.2766288220882416,
0.12065738439559937,
-0.09046203643083572,
0.08426603674888611,
-0.3192847967147827,
0.08351444453001022,
-0.25749099254608154,
0.3494875729084015,
-0.05029932036995888,
-0.11405573040246964,
0.18451811373233795,
-0.21092700958251953,
0.6938341856002808,
-0.2543471157550812,
0.18765416741371155,
0.22484415769577026,
-0.1492668241262436,
-0.5536187887191772,
0.05008256807923317,
-0.4484468996524811,
0.10656783729791641,
0.16346853971481323,
0.5757027268409729,
-0.37730535864830017,
0.0027380562387406826,
0.08908113092184067,
-0.046388283371925354,
0.03344174101948738,
0.2443283051252365,
-0.33567094802856445,
-0.2062879055738449,
-0.41788098216056824,
0.03052200935781002,
0.23648954927921295,
0.09309709072113037,
0.2230539321899414,
0.1896476298570633,
-0.28213533759117126,
-0.04316549748182297,
0.04514499008655548,
0.3124467730522156,
0.3500917851924896,
-0.026097843423485756,
-0.0782356709241867,
0.009324269369244576,
0.2919255793094635,
0.1323769986629486,
0.7523767352104187,
-0.014035875909030437,
-0.6601797938346863,
0.24034221470355988,
-0.15229369699954987,
0.4675173759460449,
-0.01620284840464592,
-0.19664266705513,
-0.09943832457065582,
-0.03447501361370087,
0.058870282024145126,
-0.04483192786574364,
0.3830336630344391,
0.2975708246231079,
-0.014252853579819202,
-0.2858310043811798,
-0.5580135583877563,
0.07676452398300171,
0.16791841387748718,
0.071024589240551,
-0.07425761967897415,
0.21465323865413666,
-0.11046606302261353,
0.506287157535553,
-0.02377074398100376,
0.4603557586669922,
-0.20927311480045319,
0.2097187042236328,
0.31107136607170105,
-0.46228480339050293,
0.3346693217754364,
-0.42258670926094055,
0.08244199305772781,
-0.27991971373558044,
-0.20265744626522064,
-0.021508120000362396,
-0.1648889183998108,
0.35484883189201355,
0.2712840139865875,
-0.11814431846141815,
0.15147121250629425,
0.22440749406814575,
-0.12738248705863953,
-0.2712303698062897,
0.1927001029253006,
0.21313729882240295,
0.2032507210969925,
-0.4831637442111969,
0.27976277470588684,
0.033594969660043716,
-0.21166501939296722,
-0.07004950940608978,
-0.02323358692228794,
-0.10319974273443222,
-0.1874527484178543,
-0.04975195229053497,
-0.03394060209393501,
-0.06325341016054153,
0.23387102782726288,
0.02564697340130806,
-0.3454682528972626,
0.09083522856235504,
0.041835639625787735,
0.07649771124124527,
0.37703371047973633,
-0.2037556767463684,
0.004931318573653698,
-0.09008097648620605,
-0.302493155002594,
-0.22025175392627716,
0.1958591639995575,
0.2100335955619812,
-0.012300190515816212,
-0.08215697854757309,
0.12162911891937256,
-0.09028250724077225,
-0.18738369643688202,
0.21297180652618408,
0.1297135353088379,
0.126447394490242,
-0.32608142495155334,
-0.27261680364608765,
-0.2007463574409485,
0.03296523168683052,
-0.21879470348358154,
0.1858406364917755,
-0.0689975768327713,
0.016189057379961014,
-0.1209222748875618,
-0.061960943043231964,
-0.2567729651927948,
-0.1197517141699791,
0.33544549345970154,
-0.12910358607769012,
0.31529468297958374,
0.40295466780662537,
0.3956986367702484,
-0.4332294464111328,
-0.31571832299232483,
-0.22278080880641937,
0.13559526205062866,
0.06829070299863815,
0.24823297560214996,
0.09056854248046875,
-0.07545500993728638,
0.13662098348140717,
-0.022969773039221764,
0.019169889390468597,
-0.11896426230669022,
-0.03605298325419426,
-0.2747328579425812,
-0.1949067860841751,
0.01777697168290615,
-0.053453873842954636,
0.17329078912734985,
0.4993141293525696,
-0.04375186190009117,
0.023390069603919983,
-0.36123669147491455,
-0.36781299114227295,
0.09777671098709106,
-0.16663992404937744,
0.07919243723154068,
0.4685305655002594,
-0.0758417472243309,
-0.08454470336437225,
0.051437389105558395,
0.23626835644245148,
-0.04307986795902252,
-0.11196327209472656,
-0.2668754756450653,
0.0569656677544117,
0.049063850194215775,
0.051843058317899704,
0.08051399886608124,
-0.03152582049369812,
-0.13456258177757263,
-0.26662904024124146,
-0.0910239890217781,
0.22600425779819489,
0.24143406748771667,
-0.03422318398952484,
0.24147281050682068,
0.43698421120643616,
-0.16466812789440155,
0.01380114909261465,
-0.005708685610443354,
-0.15542657673358917,
-0.08361946046352386,
-0.10834430158138275,
0.07932060211896896,
-0.034721486270427704,
0.0887092724442482,
0.1646643429994583,
0.09285580366849899,
0.05980977043509483,
0.1874898076057434,
0.3215537965297699,
-0.3160575330257416,
-0.03150762990117073,
0.3805018663406372,
0.43400922417640686,
0.4451937973499298,
0.01689598523080349,
-0.1401393711566925,
0.3698320984840393,
0.18803803622722626,
-0.2832174003124237,
-0.12463512271642685,
0.39107954502105713,
-0.028975941240787506,
0.13539299368858337,
0.16295835375785828,
0.1292976588010788,
0.12716792523860931,
-0.24100114405155182,
0.20974981784820557,
0.4126306176185608,
-0.11512444913387299,
0.21403425931930542,
0.2803598642349243,
-0.11005642265081406,
-0.20456789433956146,
0.1265675127506256,
0.2372441589832306,
0.13183800876140594,
0.6956760287284851,
0.04005669057369232,
0.26030513644218445,
0.29818642139434814,
-0.11633647233247757,
-0.07325644046068192,
-0.34902045130729675,
0.16987371444702148,
-0.008912403136491776,
0.21321922540664673,
0.0910545065999031,
0.06271891295909882,
-0.04883380979299545,
0.24821199476718903,
0.12143667042255402,
-0.09978529810905457,
0.31237301230430603,
-0.1911567598581314,
-0.18374931812286377,
0.2400568574666977,
-0.1845763772726059,
0.006764257792383432,
0.12083130329847336,
-0.18825283646583557,
0.019143270328640938,
-0.0965023785829544,
-0.06229041889309883,
0.200840562582016,
-0.22846393287181854,
0.11720220744609833,
-0.33747538924217224,
-0.062207091599702835,
-0.12305881083011627,
0.20006434619426727,
-0.2529742419719696,
-0.035176072269678116,
0.2324378937482834,
0.05979291349649429,
0.4516710042953491,
0.03019198402762413,
-0.03831769526004791,
-0.07823102176189423,
-0.1144486516714096,
-0.19170743227005005,
-0.19713877141475677,
0.12249217182397842,
-0.10441549867391586,
0.44036102294921875,
0.4108765125274658,
0.24427099525928497,
-0.14334136247634888,
-0.22821544110774994,
0.19894059002399445,
-0.14000746607780457,
-0.23610728979110718,
-0.16972821950912476,
-0.022280024364590645,
-0.14340777695178986,
-0.14428193867206573,
-0.1250057965517044,
-0.5353736877441406,
-0.4553196430206299,
0.34889888763427734,
0.08550534397363663,
0.32718804478645325,
-0.03862513601779938,
0.14596015214920044,
0.02575485222041607,
0.4874020218849182,
0.41093710064888,
-0.11287142336368561,
0.025999518111348152,
-0.11186539381742477,
-0.7132740616798401,
0.21303048729896545,
-0.2002817988395691,
-0.45430105924606323,
0.21434611082077026,
0.17512795329093933,
0.1528661996126175,
0.01566590555012226,
-0.04417300596833229,
0.21852131187915802,
-0.36012575030326843,
-0.0429428406059742,
-0.17623545229434967,
-0.21730442345142365,
0.039857398718595505,
-0.15969736874103546,
0.05462180823087692,
0.04560074582695961,
0.1280655711889267,
-0.0603342168033123,
0.1827555149793625,
-0.1044919416308403,
-0.08731698989868164,
-0.2446492463350296,
-0.1652158945798874,
0.20113058388233185,
-0.013645648956298828,
0.3239959180355072,
-0.20953257381916046,
-0.002955537522211671,
-0.283901572227478,
-0.1714334338903427,
-0.13964296877384186,
0.6141853928565979,
-0.19805464148521423,
0.3608130216598511,
-0.33749446272850037,
-0.16403724253177643,
-0.10302256047725677,
-0.13387838006019592,
-0.006463091354817152,
0.10720214992761612,
0.07068227231502533,
0.33237341046333313,
0.03955782577395439,
0.06060805171728134,
-0.08766882866621017,
-0.04456503316760063,
0.039512623101472855,
0.056653670966625214,
0.08359036594629288,
-0.4689519703388214,
0.33520615100860596,
-0.3650951683521271,
-0.5432819128036499,
-0.17262858152389526,
-0.08376486599445343,
-0.027933960780501366,
-0.028603726997971535,
-0.3135720193386078,
0.23064373433589935,
0.22985070943832397,
-0.08859546482563019,
-0.1757422685623169,
0.12522351741790771,
-0.1383058875799179,
-0.06940028816461563,
-0.12540797889232635,
0.28196394443511963,
0.053120777010917664,
-0.1854381561279297,
0.02990063838660717,
-0.13276036083698273
] |
https://github.com/huggingface/datasets/issues/5262
|
AttributeError: 'Value' object has no attribute 'names'
|
Hi ! It looks like your "isDif" column is a Sequence of Value("string"), not a Sequence of ClassLabel.
You can convert your Value("string") feature type to a ClassLabel feature type this way:
```python
from datasets import ClassLabel, Sequence
# provide the label_names yourself
label_names = [...]
# OR get them from the dataset
label_names = sorted(set(label for labels in raw_datasets["train"]["isDif"] for label in labels))
# Cast to ClassLabel
raw_datasets = raw_datasets.cast_column("isDif", Sequence(ClassLabel(names=label_names)))
```
|
Hello
I'm trying to build a model for custom token classification
I already followed the token classification course on huggingface
while adapting the code to my work, this message occures :
'Value' object has no attribute 'names'
Here's my code:
`raw_datasets`
generates
DatasetDict({
train: Dataset({
features: ['isDisf', 'pos', 'tokens', 'id'],
num_rows: 14
})
})
`raw_datasets["train"][3]["isDisf"]`
generates
['B_RM', 'I_RM', 'I_RM', 'B_RP', 'I_RP', 'O', 'O']
`dis_feature = raw_datasets["train"].features["isDisf"]
dis_feature`
generates
Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)
and
`label_names = dis_feature.feature.names
label_names`
generates
AttributeError Traceback (most recent call last)
[<ipython-input-28-972fd54a869a>](https://localhost:8080/#) in <module>
----> 1 label_names = dis_feature.feature.names
2 label_names
AttributeError: 'Value' object has
AttributeError: 'Value' object has no attribute 'names'
Thank you for your help
| 73 |
AttributeError: 'Value' object has no attribute 'names'
|
[
0.13739222288131714,
-0.0004256422398611903,
-0.26892760396003723,
0.3369944393634796,
0.47742441296577454,
0.04062443971633911,
0.267669141292572,
0.48641008138656616,
-0.10267923027276993,
0.6372484564781189,
-0.10145919770002365,
0.45427292585372925,
-0.04967213794589043,
0.015967363491654396,
-0.38382071256637573,
-0.31382042169570923,
-0.10618585348129272,
0.17605392634868622,
0.13279342651367188,
-0.16508613526821136,
-0.059715528041124344,
0.31543901562690735,
0.06295222789049149,
0.3703519403934479,
-0.1009003072977066,
-0.02839873544871807,
-0.021313978359103203,
0.010290290229022503,
0.1374111920595169,
-0.2507057189941406,
-0.2655762732028961,
-0.09939640760421753,
-0.2546658217906952,
0.1537301391363144,
-0.0000929368834476918,
-0.10543330758810043,
0.33378174901008606,
0.07427076250314713,
-0.27665039896965027,
0.05065406486392021,
-0.23729990422725677,
0.04375053942203522,
0.08709157258272171,
-0.3730195164680481,
-0.11717060208320618,
-0.06906887888908386,
-0.13233043253421783,
-0.19580435752868652,
-0.05525241792201996,
0.182267427444458,
0.3966295123100281,
-0.01808011718094349,
0.3678644597530365,
-0.31145766377449036,
0.5094177722930908,
-0.23081828653812408,
-0.05471215397119522,
0.09964943677186966,
0.13508108258247375,
-0.022431356832385063,
0.3292170464992523,
0.18708659708499908,
-0.14314740896224976,
0.08382133394479752,
0.18837226927280426,
0.07534348219633102,
0.12563644349575043,
-0.10471151769161224,
0.28758174180984497,
0.06166570261120796,
0.07941794395446777,
0.004534782376140356,
-0.17028293013572693,
-0.007219914346933365,
0.06448253244161606,
-0.13726985454559326,
0.14719337224960327,
-0.01996692642569542,
0.04470318555831909,
-0.057577747851610184,
0.016988644376397133,
0.12157348543405533,
-0.10184964537620544,
0.21965821087360382,
0.2722591161727905,
-0.02422821708023548,
-0.2709689736366272,
0.0641864687204361,
0.08586514741182327,
-0.0643315240740776,
-0.06953143328428268,
-0.07266219705343246,
-0.05597478523850441,
-0.26795828342437744,
0.16800308227539062,
0.06312450021505356,
0.17051364481449127,
-0.1832718849182129,
-0.16926558315753937,
-0.07659914344549179,
-0.00454558664932847,
-0.10504820942878723,
0.3864728808403015,
0.41879603266716003,
0.02873189002275467,
0.06987772136926651,
0.40965989232063293,
-0.006329192779958248,
0.022639602422714233,
0.1220637783408165,
-0.1324291229248047,
-0.28682246804237366,
-0.32679063081741333,
-0.2013224959373474,
0.017666133120656013,
0.18838952481746674,
0.24366310238838196,
-0.08633799105882645,
-0.3371991515159607,
0.18428653478622437,
-0.19569915533065796,
0.1813722550868988,
0.14218942821025848,
0.46764764189720154,
-0.15701326727867126,
0.16060663759708405,
0.1543901562690735,
0.15018953382968903,
0.15554822981357574,
-0.1893218606710434,
-0.34643128514289856,
0.36014771461486816,
-0.03038187511265278,
-0.3970417082309723,
0.06787692755460739,
0.11938954144716263,
0.2916977107524872,
-0.4019582271575928,
0.2835410237312317,
-0.38389715552330017,
0.09802397340536118,
-0.10738544911146164,
-0.06243288516998291,
0.26354891061782837,
-0.15545140206813812,
-0.04728670418262482,
0.4940128028392792,
-0.4881516695022583,
-0.004948710091412067,
0.021021131426095963,
-0.24988634884357452,
-0.166997492313385,
0.09782310575246811,
0.3721220791339874,
0.2723063826560974,
-0.08813364803791046,
-0.016535023227334023,
-0.14108282327651978,
0.3087817132472992,
0.012900041416287422,
-0.13685794174671173,
0.06953931599855423,
0.10557098686695099,
-0.28310129046440125,
0.08410666137933731,
0.1711919605731964,
-0.34977999329566956,
-0.10975293070077896,
-0.02738284133374691,
0.004934840835630894,
-0.15185792744159698,
-0.30517926812171936,
-0.04080834239721298,
0.2205914705991745,
0.0893128290772438,
-0.016448726877570152,
-0.018882475793361664,
-0.3035065829753876,
0.02116861380636692,
-0.05742791295051575,
0.27185848355293274,
-0.48496106266975403,
0.17321746051311493,
-0.023011643439531326,
-0.0668407455086708,
0.07675719261169434,
0.18116620182991028,
-0.24236290156841278,
-0.091469906270504,
-0.03541290760040283,
-0.1075928807258606,
-0.15771767497062683,
-0.09226956218481064,
-0.003208490554243326,
-0.0053391363471746445,
0.15238714218139648,
0.028673358261585236,
-0.4234600365161896,
-0.24974681437015533,
-0.22193826735019684,
0.006984738167375326,
0.3046624958515167,
0.35474392771720886,
0.2393379956483841,
-0.000002198366928496398,
-0.11272073537111282,
-0.10234788060188293,
-0.026657771319150925,
-0.1026640459895134,
-0.06887593865394592,
-0.08668958395719528,
0.0442696213722229,
-0.3681350350379944,
0.21585990488529205,
0.12081120908260345,
-0.1272670328617096,
0.35028377175331116,
0.29354146122932434,
-0.25991106033325195,
-0.1746717095375061,
-0.3161340653896332,
0.024019263684749603,
-0.31463080644607544,
-0.12916503846645355,
-0.19921937584877014,
0.05100705847144127,
-0.36989086866378784,
-0.10688651353120804,
-0.036102209240198135,
-0.13413861393928528,
0.43191537261009216,
0.05220673978328705,
-0.20702505111694336,
0.4095990061759949,
-0.05229965224862099,
-0.24649517238140106,
0.07229289412498474,
0.10576029866933823,
-0.21069423854351044,
-0.060648467391729355,
-0.06147487461566925,
0.1373196691274643,
0.3123883903026581,
-0.04326528683304787,
0.107853963971138,
0.3886919319629669,
-0.11634840071201324,
0.2109498530626297,
0.14666379988193512,
0.1471293419599533,
0.17563632130622864,
-0.14211374521255493,
-0.0597684420645237,
-0.1977262794971466,
0.06275533139705658,
-0.32341164350509644,
0.14525966346263885,
-0.3012818992137909,
-0.33126914501190186,
-0.20310930907726288,
0.2788238823413849,
0.21702225506305695,
0.13613569736480713,
-0.1612008810043335,
0.024628235027194023,
0.3009439706802368,
-0.052026763558387756,
0.1943173110485077,
0.2577176094055176,
0.2069389820098877,
-0.38241222500801086,
0.018605001270771027,
0.0923379585146904,
0.03386937826871872,
0.15402239561080933,
0.09431878477334976,
0.2221382111310959,
0.0433199405670166,
-0.12864089012145996,
-0.0021112258546054363,
-0.13057371973991394,
-0.29414910078048706,
0.07273244857788086,
0.1480962485074997,
-0.42469143867492676,
0.10202334076166153,
0.007527492940425873,
0.18846464157104492,
0.1505092978477478,
-0.17622807621955872,
-0.020999737083911896,
-0.23647485673427582,
0.15305647253990173,
0.2129162698984146,
-0.35524776577949524,
0.2403930425643921,
0.05749521777033806,
0.2436179518699646,
0.21341639757156372,
0.17716480791568756,
-0.3531687557697296,
-0.2242509424686432,
-0.10794606804847717,
0.1918237805366516,
-0.1881203055381775,
-0.08883104473352432,
0.2111583948135376,
-0.023074394091963768,
0.2271229773759842,
0.18072153627872467,
-0.4312356114387512,
-0.02551814541220665,
-0.10962804406881332,
0.3622414767742157,
0.24774661660194397,
0.10883016139268875,
-0.027790172025561333,
-0.4492512047290802,
0.5371003150939941,
-0.2956838607788086,
-0.10004986077547073,
0.2227683663368225,
0.3491610288619995,
-0.5277571082115173,
-0.12816259264945984,
-0.31606292724609375,
-0.07860031723976135,
-0.24677929282188416,
-0.07054249942302704,
0.05318361148238182,
0.24371854960918427,
0.3857162892818451,
0.241670161485672,
0.2898235619068146,
0.13372208178043365,
0.4316159784793854,
-0.09601657837629318,
-0.000833510363008827,
0.1295374035835266,
-0.3088460862636566,
-0.25995132327079773,
-0.012259590439498425,
-0.052919819951057434,
0.0568348690867424,
-0.24453812837600708,
0.0011714915744960308,
-0.44490665197372437,
0.03454361483454704,
-0.17763182520866394,
0.11905679851770401,
0.0009073646506294608,
0.11573299020528793,
0.2925626337528229,
-0.3452743589878082,
-0.30473095178604126,
-0.37151646614074707,
0.1037767082452774,
0.06731574237346649,
0.018409261479973793,
-0.21716630458831787,
0.2541339099407196,
-0.20177596807479858,
0.055172987282276154,
-0.11133763194084167,
0.03636305034160614,
0.316765695810318,
-0.0747765526175499,
0.14955466985702515,
-0.04567263275384903,
-0.6261096596717834,
-0.07820287346839905,
0.045913293957710266,
-0.17940618097782135,
0.1490349918603897,
-0.14096605777740479,
-0.18260444700717926,
-0.34234166145324707,
0.08806057274341583,
-0.24642311036586761,
-0.07672806084156036,
-0.19981040060520172,
0.13079005479812622,
0.05314107984304428,
-0.04181482270359993,
0.10273968428373337,
-0.19812887907028198,
0.06115229055285454,
0.07885799556970596,
0.003269059117883444,
-0.4154275357723236,
-0.22218181192874908,
-0.28317442536354065,
-0.008230242878198624,
0.25382205843925476,
0.26056966185569763,
-0.006462860386818647,
0.14333215355873108,
-0.03198596090078354,
-0.14411626756191254,
-0.025438835844397545,
-0.0819476768374443,
0.5355196595191956,
-0.01659628562629223,
0.09358324855566025,
0.24316799640655518,
-0.05249648913741112,
0.2791280150413513,
-0.0033116647973656654,
-0.3563264310359955,
-0.016810119152069092,
-0.01181028876453638,
0.09077715873718262,
-0.09334861487150192,
-0.06259864568710327,
0.1968398243188858,
-0.14942298829555511,
-0.096462182700634,
0.12026897072792053,
-0.14542938768863678,
-0.07819214463233948,
-0.4424268305301666,
-0.17741502821445465,
-0.1377982199192047,
0.29292401671409607,
0.17184291779994965,
0.1655755639076233,
-0.27849891781806946,
-0.09958919137716293,
0.22589391469955444,
0.025754140689969063,
0.09889231622219086,
-0.1168697252869606,
0.008541368879377842,
-0.15858565270900726,
0.2813551425933838,
-0.09055700153112411,
0.2818060517311096,
0.05251145362854004,
-0.24413561820983887,
0.01017756573855877,
-0.08277887850999832,
0.30984801054000854,
0.15320336818695068,
-0.2890837788581848,
-0.3098953068256378,
-0.08057977259159088,
0.16313335299491882,
0.25746968388557434,
0.19549742341041565,
0.2984953820705414,
0.0743938609957695,
0.05278337001800537,
-0.15803474187850952,
0.2826107144355774,
-0.17606483399868011,
0.005015787668526173,
0.07968775928020477,
0.3013114333152771,
-0.0560331866145134,
0.04986497759819031,
0.1838918924331665,
0.8411126136779785,
0.2104460597038269,
-0.20953065156936646,
0.07608791440725327,
-0.3188767731189728,
-0.010797377675771713,
0.07534444332122803,
0.11781476438045502,
-0.4392877519130707,
-0.0563366673886776,
0.0863439291715622,
-0.006110603455454111,
0.44426649808883667,
0.3164273202419281,
-0.041045233607292175,
0.08606916666030884,
0.026372728869318962,
0.2418782114982605,
-0.21572396159172058,
-0.0019009612733498216,
0.3623034954071045,
-0.09748442471027374,
-0.029324237257242203,
0.36450809240341187,
-0.22448639571666718,
0.046564944088459015,
-0.02111930400133133,
0.03460754081606865,
-0.2105959802865982,
-0.04500771686434746,
-0.04591936618089676,
0.160153329372406,
-0.0605897381901741,
0.22031186521053314,
0.23195119202136993,
-0.1838274747133255,
-0.18104705214500427,
-0.07978032529354095,
0.20725232362747192,
0.10001933574676514,
0.005416641943156719,
0.1777559369802475,
-0.03607580065727234,
0.0064747571013867855,
-0.1408039629459381,
0.28370577096939087,
0.22222301363945007,
-0.15944668650627136,
-0.11150166392326355,
0.20761150121688843,
-0.015973422676324844,
-0.19720442593097687,
-0.029975526034832,
0.08064652979373932,
-0.0538967065513134,
-0.5712251663208008,
-0.21019643545150757,
-0.07365695387125015,
-0.06880871951580048,
-0.2153366506099701,
0.31664490699768066,
-0.07855245471000671,
-0.3645251989364624,
-0.09460058063268661,
0.23186717927455902,
-0.13619086146354675,
-0.03949175775051117,
0.07547309994697571,
-0.06280023604631424,
0.23109526932239532,
0.41500622034072876,
0.006905215792357922,
-0.08264762908220291,
-0.3254518508911133,
-0.027308601886034012,
0.23265932500362396,
-0.3494051396846771,
0.2335985004901886,
-0.028922950848937035,
-0.43085283041000366,
0.12982279062271118,
0.16624851524829865,
-0.11359956860542297,
0.3833009898662567,
0.1261165291070938,
-0.20312608778476715,
-0.3065459132194519,
0.032342057675123215,
0.14971457421779633,
0.16730737686157227,
-0.06324431300163269,
-0.08060667663812637,
-0.06727972626686096,
0.05816846340894699,
-0.5074210166931152,
-0.1500147134065628,
-0.3790425658226013,
0.19430477917194366,
0.0835147500038147,
-0.12834757566452026,
0.21219255030155182,
0.004084878135472536,
0.4102819859981537,
-0.0355641134083271,
-0.08120297640562057,
-0.43764033913612366,
-0.18816497921943665,
0.039689801633358,
0.08079242706298828,
0.18246446549892426,
-0.2007228285074234,
-0.13109660148620605,
-0.2538187801837921,
-0.19578707218170166,
-0.20712441205978394,
0.018825680017471313,
0.029665794223546982,
0.5567609071731567,
-0.0578216128051281,
0.19139687716960907,
0.3827592730522156,
-0.049551740288734436,
0.015262514352798462,
0.30249279737472534,
-0.12001151591539383,
-0.402898371219635,
-0.05005240440368652,
-0.0722314715385437,
-0.11165070533752441,
0.042200226336717606,
-0.3414267897605896,
-0.089198999106884,
0.298469215631485,
-0.22802674770355225,
0.05736830085515976,
0.02775641344487667,
0.19060246646404266,
0.2171533852815628,
-0.18439525365829468,
0.20270618796348572,
0.3011758029460907,
0.3236255645751953,
-0.15778817236423492,
0.06740660220384598,
-0.03427601605653763,
-0.15023209154605865,
0.17103710770606995,
0.0999806746840477,
-0.25262558460235596,
0.03555591031908989,
-0.007184729911386967,
0.1367359459400177,
0.2079329639673233,
-0.31093865633010864,
-0.0659610703587532,
0.06649263203144073,
-0.1121998131275177,
0.07601109147071838,
0.2238251119852066,
0.3915617763996124,
0.040515583008527756,
0.3527691960334778,
0.13334615528583527,
0.019553791731595993,
0.1438816785812378,
0.0511351004242897,
0.3644801080226898,
-0.04735502228140831,
0.17983050644397736,
-0.008315935730934143,
0.13115385174751282,
0.17095880210399628,
0.0402839258313179,
0.010651334188878536,
-0.11986309289932251,
0.10253770649433136,
-0.08895203471183777,
0.2248230129480362,
-0.059637196362018585,
-0.12525059282779694,
-0.0824345126748085,
-0.035970937460660934,
-0.08531657606363297,
-0.1375947743654251,
0.14089442789554596,
-0.029206443578004837,
0.40192586183547974,
-0.030853142961859703,
-0.060552846640348434,
-0.420015811920166,
0.1612020879983902,
0.05279795452952385,
0.29521897435188293,
-0.27902474999427795,
0.0736619159579277,
0.24867166578769684,
-0.01258692517876625,
0.0182209350168705,
0.23426702618598938,
0.3996973931789398,
0.21196237206459045,
-0.08684790134429932,
-0.1385684609413147,
-0.2533431053161621,
-0.4468022584915161,
0.04490446299314499,
0.15072865784168243,
0.16097301244735718,
0.1513351947069168,
0.1311994194984436,
0.31560927629470825,
-0.316853791475296,
-0.03643280640244484,
0.08240272849798203,
0.023853443562984467,
0.042655158787965775,
0.4461809992790222,
0.006384093780070543,
-0.0431850329041481,
-0.1729651391506195,
-0.22114352881908417,
-0.4603198170661926,
-0.4497520327568054,
0.2952369153499603,
0.07324414700269699,
0.11580610275268555,
-0.05773366987705231,
0.19752322137355804,
0.045329321175813675,
0.15284742414951324,
0.10457070171833038,
-0.01733585260808468,
-0.1790563017129898,
0.23201610147953033,
-0.07460564374923706,
0.13295629620552063,
0.126783549785614,
0.030402807518839836,
0.0424194410443306,
0.03423115611076355,
0.2225193828344345,
-0.059328898787498474,
-0.13175787031650543,
-0.1534261405467987,
0.15383200347423553,
0.06844893097877502,
-0.3404955565929413,
-0.14998656511306763,
-0.15238156914710999,
0.10155290365219116,
0.4233402609825134,
-0.00020717181905638427,
-0.1641847789287567,
0.13363096117973328,
0.2413128912448883,
-0.12220917642116547,
-0.12647926807403564,
-0.09309526532888412,
0.17226053774356842,
0.030250530689954758,
-0.17165322601795197,
0.3572176992893219,
-0.19237461686134338,
0.11372281610965729,
0.20123523473739624,
-0.3252469301223755,
-0.10272291302680969,
0.3117702007293701,
0.08407914638519287,
0.06377498060464859,
0.16152985394001007,
-0.002487015677616,
-0.104747474193573,
0.17645569145679474,
-0.12515483796596527,
0.09308309853076935,
-0.0965353325009346,
0.27244916558265686,
0.03532883897423744,
0.1795322149991989,
-0.11912163347005844,
-0.009249755181372166,
-0.08002113550901413,
0.21506060659885406,
-0.3407045304775238,
-0.43586933612823486,
0.6232252717018127,
0.0005271278787404299,
-0.41774967312812805,
0.2220275104045868,
0.18686838448047638,
0.08123593032360077,
0.00533548928797245,
-0.23152492940425873,
-0.031844690442085266,
0.2510380744934082,
-0.1118839681148529,
-0.2763010859489441,
0.06892403215169907,
-0.1038331687450409,
0.07274074852466583,
0.23106253147125244,
0.17981410026550293,
0.21444988250732422,
0.1977206915616989,
-0.10749692469835281,
0.04102411866188049
] |
https://github.com/huggingface/datasets/issues/5261
|
Add PubTables-1M
|
cc @albertvillanova the author would like to add this dataset to the hub: https://github.com/microsoft/table-transformer/issues/68#issuecomment-1319114621. Could you help him out?
|
### Name
PubTables-1M
### Paper
https://openaccess.thecvf.com/content/CVPR2022/html/Smock_PubTables-1M_Towards_Comprehensive_Table_Extraction_From_Unstructured_Documents_CVPR_2022_paper.html
### Data
https://github.com/microsoft/table-transformer
### Motivation
Table Transformer is now available in 🤗 Transformer, and it was trained on PubTables-1M. It's a large dataset for table extraction and structure recognition in unstructured documents.
| 19 |
Add PubTables-1M
|
[
0.006959710270166397,
-0.06652294844388962,
-0.24123448133468628,
-0.3161908686161041,
0.04627996310591698,
-0.14612549543380737,
0.060099780559539795,
0.26869139075279236,
-0.20187905430793762,
0.2904769480228424,
-0.11332062631845474,
0.2904765009880066,
-0.19209983944892883,
0.015232658945024014,
0.23094721138477325,
0.19406358897686005,
0.16957679390907288,
0.25308260321617126,
-0.09554503113031387,
-0.06644316017627716,
-0.026361295953392982,
0.17467689514160156,
-0.008728251792490482,
-0.18389150500297546,
0.07700265944004059,
0.36369404196739197,
-0.2647932171821594,
-0.13360129296779633,
-0.3422715663909912,
-0.2069786638021469,
0.0281674787402153,
0.27246347069740295,
0.031528279185295105,
0.11155814677476883,
-0.00011041102698072791,
-0.02531394176185131,
-0.017327817156910896,
0.05247911810874939,
-0.2756917476654053,
0.09472080320119858,
-0.06173600256443024,
-0.17662830650806427,
-0.06266271322965622,
0.07816307991743088,
-0.12378174066543579,
-0.3276820480823517,
0.090949147939682,
-0.04451737925410271,
-0.1334283947944641,
0.1290055513381958,
0.30439066886901855,
-0.2363937348127365,
-0.21086251735687256,
-0.19074085354804993,
0.6727384924888611,
-0.051237281411886215,
0.12477117776870728,
0.139426127076149,
0.2398635745048523,
0.10748245567083359,
0.2435235232114792,
0.16948215663433075,
-0.08345548808574677,
-0.1478230357170105,
-0.23861749470233917,
-0.03671637177467346,
0.3572579324245453,
0.015514623373746872,
0.3493179678916931,
0.09661929309368134,
0.2963535785675049,
-0.29737672209739685,
0.06964831799268723,
0.31269997358322144,
0.1990286260843277,
0.007908946834504604,
-0.2133542001247406,
-0.049706947058439255,
0.09469128400087357,
0.21204833686351776,
0.08074665069580078,
-0.6242852807044983,
-0.026516452431678772,
0.32664793729782104,
0.37743836641311646,
0.43281692266464233,
0.01853295974433422,
0.1317003220319748,
0.08270002901554108,
0.2703133821487427,
-0.09443622827529907,
0.0627414882183075,
-0.0023830237332731485,
0.2867480218410492,
0.18855862319469452,
-0.002790016820654273,
0.2874177098274231,
-0.03929668292403221,
0.06574133783578873,
0.1630949229001999,
-0.02527579292654991,
-0.00621227640658617,
0.19333061575889587,
-0.06545217335224152,
-0.08216051757335663,
-0.16104035079479218,
-0.025660593062639236,
0.5169869661331177,
0.25502440333366394,
0.00560578890144825,
0.1742478311061859,
0.12337952107191086,
-0.13000129163265228,
0.11359631270170212,
-0.05391623452305794,
0.09381597489118576,
0.007201118860393763,
-0.08070994168519974,
0.35020363330841064,
0.22698965668678284,
0.4613378643989563,
-0.004008905962109566,
-0.043824855238199234,
0.16421175003051758,
0.2224474996328354,
0.02497365139424801,
0.06521725654602051,
-0.10358467698097229,
-0.17452076077461243,
-0.34643062949180603,
-0.2550729811191559,
0.246529221534729,
-0.20010249316692352,
-0.0054386090487241745,
0.40198591351509094,
-0.14384953677654266,
-0.150440514087677,
-0.01905253157019615,
0.08452072739601135,
-0.07021347433328629,
-0.16621926426887512,
0.32348260283470154,
-0.09064003080129623,
0.2658439576625824,
-0.04995053634047508,
0.02848529815673828,
0.04760728031396866,
-0.017710836604237556,
0.027413027361035347,
0.20469877123832703,
-0.06514594703912735,
-0.3496650457382202,
-0.3004608154296875,
0.30836018919944763,
0.16106796264648438,
0.00006202615622896701,
-0.26866182684898376,
0.28509777784347534,
0.18959654867649078,
-0.4104764759540558,
0.0003434182144701481,
0.12960165739059448,
-0.10737401247024536,
0.07667870819568634,
0.09379579871892929,
0.07414714992046356,
-0.062405072152614594,
-0.15915720164775848,
0.16295015811920166,
-0.2909952402114868,
0.3699018359184265,
-0.11492598056793213,
0.02787320874631405,
-0.1335030347108841,
0.18520647287368774,
-0.5053457617759705,
0.5290035605430603,
0.13964097201824188,
-0.32214000821113586,
-0.026473114266991615,
-0.3721701502799988,
-0.6312706470489502,
0.11297360062599182,
0.04072398692369461,
0.33038589358329773,
0.19170118868350983,
0.2570010721683502,
-0.14180518686771393,
-0.009540708735585213,
0.18051160871982574,
-0.39736607670783997,
0.12521992623806,
-0.2080267071723938,
0.16063842177391052,
0.46213242411613464,
0.3580167293548584,
0.15630732476711273,
0.1522580236196518,
0.1332927644252777,
0.2509607672691345,
0.4163247048854828,
-0.12331423163414001,
0.4779859781265259,
-0.24770206212997437,
0.3710744380950928,
-0.3197222352027893,
0.2796837091445923,
-0.24613536894321442,
-0.2668501138687134,
0.4060606360435486,
0.42639780044555664,
-0.26992976665496826,
-0.05473051965236664,
-0.04510814696550369,
0.2687781751155853,
0.3419448435306549,
0.23558150231838226,
0.01279426645487547,
-0.04226122796535492,
-0.3730839788913727,
-0.25350186228752136,
-0.391229510307312,
0.08344539254903793,
0.12433736771345139,
0.0603896901011467,
-0.07640053331851959,
-0.3134515583515167,
-0.20739491283893585,
0.2495107203722,
-0.033726442605257034,
0.032612551003694534,
-0.11200409382581711,
0.08560127764940262,
0.1450200229883194,
-0.22631189227104187,
0.020192010328173637,
0.4653363525867462,
0.23853355646133423,
0.13965857028961182,
0.03256368637084961,
-0.04950904846191406,
0.04407623037695885,
0.016871273517608643,
0.18931078910827637,
-0.06499840319156647,
0.19568195939064026,
-0.05830550566315651,
-0.017074143514037132,
-0.13655848801136017,
-0.033143300563097,
-0.09050168842077255,
0.20390625298023224,
-0.020594405010342598,
-0.29036745429039,
0.3154301941394806,
0.08547093719244003,
-0.5819658637046814,
-0.1668356955051422,
0.11481714248657227,
0.35121577978134155,
-0.24362118542194366,
-0.12442054599523544,
0.1345503181219101,
-0.014329634606838226,
0.28228893876075745,
-0.13542330265045166,
0.06340012699365616,
-0.35241079330444336,
0.2211041897535324,
0.33265629410743713,
-0.027136171236634254,
-0.030423955991864204,
-0.09425204247236252,
-0.23061026632785797,
0.16236773133277893,
-0.042861465364694595,
-0.1505204439163208,
0.12183226644992828,
0.41469383239746094,
-0.14642485976219177,
-0.2550230324268341,
-0.2600656747817993,
-0.04195423051714897,
0.45147451758384705,
-0.12684601545333862,
-0.02448011189699173,
-0.408723384141922,
-0.059609442949295044,
0.21021567285060883,
-0.09974298626184464,
0.11568896472454071,
-0.15297812223434448,
0.45369669795036316,
-0.23507767915725708,
-0.04981817305088043,
0.12148045748472214,
-0.26193562150001526,
0.6377460360527039,
-0.35642537474632263,
0.2580398917198181,
0.04905319586396217,
-0.2584632337093353,
-0.0278167724609375,
0.19694580137729645,
-0.18739493191242218,
-0.17777064442634583,
0.28976303339004517,
0.20246745645999908,
-0.027557700872421265,
-0.03288230672478676,
-0.260433554649353,
0.07733709365129471,
-0.034002307802438736,
-0.03606410324573517,
0.37665870785713196,
0.027552049607038498,
-0.29462993144989014,
0.3545898199081421,
-0.10217830538749695,
-0.250904381275177,
0.03417278826236725,
-0.026317177340388298,
-0.11089050024747849,
-0.2646830677986145,
-0.26393526792526245,
-0.14886236190795898,
0.10707385838031769,
0.013232001103460789,
0.20614837110042572,
0.2505135238170624,
0.2027890384197235,
-0.2789899408817291,
0.057317521423101425,
-0.02885211631655693,
0.16460326313972473,
0.454741895198822,
-0.2454969882965088,
0.04021037742495537,
0.03986208885908127,
-0.07397692650556564,
-0.15046951174736023,
-0.004262429196387529,
-0.06548886001110077,
-0.20467714965343475,
-0.12004271894693375,
-0.2875973582267761,
-0.03089609555900097,
0.5517879128456116,
-0.3053266108036041,
0.017573479562997818,
0.09593174606561661,
0.3037872016429901,
0.050221554934978485,
-0.29845988750457764,
-0.20488688349723816,
0.05209551751613617,
-0.01348660234361887,
0.21372775733470917,
-0.06479993462562561,
-0.21303671598434448,
-0.01667727343738079,
-0.24767394363880157,
0.5688037276268005,
-0.0970359519124031,
0.17741645872592926,
0.28764107823371887,
0.002857303712517023,
-0.08369148522615433,
0.03319846838712692,
-0.08785350620746613,
-0.058504749089479446,
0.33297863602638245,
-0.0024810407776385546,
0.2022160142660141,
0.009104706346988678,
-0.11821341514587402,
-0.25802963972091675,
-0.26299676299095154,
0.031915903091430664,
-0.10345447063446045,
-0.061123721301555634,
-0.08749109506607056,
0.12886863946914673,
0.2517663538455963,
-0.402675986289978,
-0.29745832085609436,
-0.15609608590602875,
-0.24606004357337952,
0.41208380460739136,
-0.30688339471817017,
-0.001208461937494576,
-0.018856072798371315,
-0.18995830416679382,
-0.17220786213874817,
0.3136613965034485,
-0.08396120369434357,
0.1712866574525833,
-0.1448269635438919,
-0.089431531727314,
0.26760512590408325,
-0.11861539632081985,
0.39894306659698486,
-0.16385911405086517,
-0.4405253529548645,
-0.03761261701583862,
0.32482802867889404,
0.08677712082862854,
-0.20616553723812103,
0.056725066155195236,
0.18284054100513458,
0.0314960777759552,
0.2222035974264145,
-0.09910538792610168,
0.2811545431613922,
0.6986981630325317,
-0.31597477197647095,
0.050238754600286484,
-0.3731490969657898,
-0.6125532388687134,
-0.2034960836172104,
-0.30234047770500183,
0.249470055103302,
0.011803541332483292,
0.10144946724176407,
0.11659874022006989,
-0.07478342205286026,
0.22716307640075684,
-0.20244590938091278,
0.21500708162784576,
-0.05634591355919838,
-0.15624234080314636,
0.48688969016075134,
0.007870879955589771,
-0.6135571599006653,
-0.18057645857334137,
0.0210588239133358,
0.3013661801815033,
-0.11634927988052368,
0.26326730847358704,
0.4049499034881592,
-0.24075119197368622,
0.12650936841964722,
0.1515246480703354,
0.18176142871379852,
0.48332297801971436,
-0.04311986267566681,
0.23338115215301514,
0.40100136399269104,
-0.15200164914131165,
-0.4462124705314636,
-0.4713410437107086,
-0.1877344846725464,
-0.08699170500040054,
0.29140332341194153,
-0.1286890059709549,
-0.23802022635936737,
0.30740445852279663,
0.2792032063007355,
-0.2746346592903137,
0.06665301322937012,
-0.016705293208360672,
1.2967243194580078,
0.0029306383803486824,
-0.006585035938769579,
-0.5397955775260925,
-0.16882072389125824,
0.0554233193397522,
-0.25108280777931213,
0.16903254389762878,
-0.031843751668930054,
-0.3165694773197174,
0.028042808175086975,
0.06050249934196472,
-0.09780342876911163,
-0.12836384773254395,
-0.3034905791282654,
0.19985833764076233,
0.20551320910453796,
0.020610151812434196,
0.04632047191262245,
0.1635751724243164,
0.24611034989356995,
-0.14336539804935455,
-0.2804843783378601,
0.24995264410972595,
-0.08253156393766403,
0.0003745589929167181,
-0.23051853477954865,
0.3268703818321228,
-0.23017092049121857,
-0.16531868278980255,
-0.238078773021698,
-0.2611910104751587,
0.1472061276435852,
0.07239866256713867,
0.529978334903717,
0.22042137384414673,
-0.29834219813346863,
-0.48248428106307983,
0.10336348414421082,
0.30117180943489075,
0.05170482397079468,
-0.06375591456890106,
0.32359975576400757,
-0.18049564957618713,
-0.5945080518722534,
-0.04214118421077728,
0.029060544446110725,
-0.22282756865024567,
-0.27715280652046204,
0.10055899620056152,
0.10118774324655533,
-0.03245788440108299,
-0.1405092179775238,
0.0375148206949234,
0.1413157731294632,
0.11776836961507797,
0.10948312282562256,
0.33124467730522156,
0.003480192506685853,
-0.2560272216796875,
0.20050206780433655,
0.21480692923069,
-0.2320089489221573,
0.0590428002178669,
0.5235757231712341,
-0.08249735832214355,
-0.3559024930000305,
0.5516305565834045,
0.37795379757881165,
-0.03856932371854782,
-0.23477376997470856,
0.21014942228794098,
-0.27981746196746826,
-0.2536308169364929,
-0.12698228657245636,
-0.10633666068315506,
-0.08002453297376633,
-0.20213104784488678,
-0.11916641145944595,
-0.09916502237319946,
0.31312990188598633,
0.2384340614080429,
0.15999329090118408,
0.3962363004684448,
-0.07576370239257812,
0.02856346219778061,
-0.22815153002738953,
0.06496325135231018,
-0.2820172905921936,
0.07401693612337112,
0.2683333158493042,
-0.08360882848501205,
0.13506247103214264,
0.21904993057250977,
-0.42736056447029114,
-0.3184816539287567,
-0.11202538013458252,
0.11201158165931702,
0.027315251529216766,
-0.0031539122574031353,
-0.28749313950538635,
-0.3346664309501648,
0.2443244457244873,
0.11755777895450592,
-0.01673552207648754,
-0.363007515668869,
0.13361090421676636,
0.1305810809135437,
-0.016660021618008614,
0.10187710076570511,
-0.415850430727005,
0.11169344186782837,
-0.3250672519207001,
0.2840763032436371,
0.02286475896835327,
-0.23101329803466797,
0.11998899281024933,
-0.4502755105495453,
0.06955550611019135,
-0.1524961292743683,
0.31755009293556213,
0.056763216853141785,
-0.05988598242402077,
-0.11675003916025162,
0.0435955747961998,
0.0038434327580034733,
0.33749306201934814,
-0.2231217473745346,
-0.19307447969913483,
0.42986685037612915,
0.2710742950439453,
-0.023746490478515625,
0.14111049473285675,
0.049878571182489395,
-0.009598885662853718,
-0.008681213483214378,
-0.15731802582740784,
0.10928228497505188,
-0.17576690018177032,
-0.1031198650598526,
0.008924161083996296,
0.25083816051483154,
-0.27594518661499023,
0.0360238254070282,
0.08073234558105469,
0.09758149832487106,
-0.05513877049088478,
0.5899331569671631,
0.05503932386636734,
-0.018078181892633438,
0.058051109313964844,
0.4763107895851135,
0.018412712961435318,
-0.1498725414276123,
-0.19324703514575958,
-0.39484840631484985,
-0.026491042226552963,
0.2374238818883896,
0.0892934575676918,
0.13820025324821472,
-0.18561196327209473,
-0.39570510387420654,
-0.39815276861190796,
0.20558911561965942,
0.19104014337062836,
0.13964484632015228,
0.19795623421669006,
0.056180037558078766,
0.26921266317367554,
0.35116493701934814,
0.09963976591825485,
0.03889935463666916,
0.3689113259315491,
0.31563544273376465,
0.04436202347278595,
0.06531593203544617,
-0.06764531135559082,
0.379607617855072,
0.10139849036931992,
-0.18460211157798767,
-0.4927431643009186,
-0.12873351573944092,
-0.5304593443870544,
-0.029082119464874268,
0.16133978962898254,
0.309944212436676,
-0.2827332317829132,
0.12202300131320953,
-0.007221815641969442,
-0.3125409483909607,
0.2519236207008362,
0.08184719830751419,
0.13954226672649384,
0.042343124747276306,
0.13611139357089996,
-0.12252182513475418,
0.1438315510749817,
0.1600906401872635,
-0.10275382548570633,
-0.047665633261203766,
0.04088173434138298,
-0.10927015542984009,
-0.2565650939941406,
0.13946090638637543,
-0.12498774379491806,
0.11180002987384796,
0.20748461782932281,
0.4207912087440491,
0.4830344319343567,
-0.11177153885364532,
0.20088934898376465,
-0.3219619393348694,
0.39381760358810425,
0.17981089651584625,
-0.15518151223659515,
0.09989024698734283,
0.1721741408109665,
0.24393682181835175,
-0.20107823610305786,
-0.11003328859806061,
0.12830506265163422,
-0.18853771686553955,
-0.07375698536634445,
-0.018251517787575722,
-0.3432806730270386,
-0.1439599096775055,
-0.3325388431549072,
0.09491788595914841,
0.17285989224910736,
0.24629196524620056,
0.1203487291932106,
-0.00498418090865016,
-0.12526042759418488,
-0.2821791470050812,
0.13505718111991882,
0.12357403337955475,
-0.12248586863279343,
-0.1793229877948761,
-0.1965726912021637,
-0.020357796922326088,
0.29120540618896484,
0.17452417314052582,
0.10942500829696655,
-0.22383099794387817,
-0.26988792419433594,
0.2465207427740097,
0.17878594994544983,
0.19011270999908447,
-0.06240076944231987,
0.13347698748111725,
-0.004561985842883587,
0.08159046620130539,
0.11559569835662842,
-0.10174823552370071,
0.1447359174489975,
-0.281467080116272,
-0.18354256451129913,
-0.06200151890516281,
-0.02479691617190838,
0.09899632632732391,
-0.3204491436481476,
0.18051624298095703,
-0.30301642417907715,
0.25043508410453796,
-0.01079005841165781,
0.20677870512008667,
-0.021933844313025475,
0.07672491669654846,
-0.013160193338990211,
-0.09636249393224716,
0.321963369846344,
-0.20593886077404022,
0.09424660354852676,
-0.057155508548021317,
0.3377445340156555,
0.8494982123374939,
-0.04384686425328255,
-0.08503852039575577,
-0.07309040427207947,
-0.13877034187316895,
-0.1445213258266449,
-0.36315906047821045,
0.2453019618988037,
0.09651413559913635,
-0.13569869101047516,
-0.3773987591266632,
0.10073540359735489,
-0.06427542120218277,
-0.08374776691198349,
-0.367429256439209,
0.441830039024353,
-0.04286779463291168,
-0.08257462829351425,
-0.5097655057907104,
-0.03775615990161896,
0.2505589425563812,
-0.286855012178421,
-0.332549124956131,
0.5522673726081848,
-0.27367115020751953,
0.2070038914680481,
-0.1881144791841507,
-0.48128175735473633,
-0.09481146931648254,
-0.035606663674116135,
-0.6182875037193298,
-0.24630074203014374
] |
https://github.com/huggingface/datasets/issues/5260
|
consumer-finance-complaints dataset not loading
|
I have opened an issue in that dataset Community tab on the Hub: https://huggingface.co/datasets/consumer-finance-complaints/discussions/1
Please note that in the meantime, you can load the dataset by passing `ignore_verifications=True`:
```python
>>> ds = load_dataset("consumer-finance-complaints", ignore_verifications=True)
>>> ds
DatasetDict({
train: Dataset({
features: ['Date Received', 'Product', 'Sub Product', 'Issue', 'Sub Issue', 'Complaint Text', 'Company Public Response', 'Company', 'State', 'Zip Code', 'Tags', 'Consumer Consent Provided', 'Submitted via', 'Date Sent To Company', 'Company Response To Consumer', 'Timely Response', 'Consumer Disputed', 'Complaint ID'],
num_rows: 3079747
})
})
```
|
### Describe the bug
Error during dataset loading
### Steps to reproduce the bug
```
>>> import datasets
>>> cf_raw = datasets.load_dataset("consumer-finance-complaints")
Downloading builder script: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8.42k/8.42k [00:00<00:00, 3.33MB/s]
Downloading metadata: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5.60k/5.60k [00:00<00:00, 2.90MB/s]
Downloading readme: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16.6k/16.6k [00:00<00:00, 510kB/s]
Downloading and preparing dataset consumer-finance-complaints/default to /root/.cache/huggingface/datasets/consumer-finance-complaints/default/0.0.0/30e483d37fb4b25bb98cad1bfd2dc48f6ed6d1f3371eb4568c625a61d1a79b69...
Downloading data: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 511M/511M [00:04<00:00, 103MB/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/builder.py", line 931, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=1605177353, num_examples=2455765, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='train', num_bytes=2043641693, num_examples=3079747, shard_lengths=[721000, 656000, 788000, 846000, 68747], dataset_name='consumer-finance-complaints')}]
```
### Expected behavior
dataset should load
### Environment info
>>> datasets.__version__
'2.7.0'
Python 3.8.10
"Ubuntu 20.04.4 LTS"
| 82 |
consumer-finance-complaints dataset not loading
|
[
-0.5111345648765564,
0.4019094407558441,
-0.2886299788951874,
0.2746185064315796,
0.15287533402442932,
0.4247465133666992,
0.3738875389099121,
0.07833752781152725,
0.37983739376068115,
-0.20031435787677765,
-0.1616220772266388,
-0.06837001442909241,
0.12338748574256897,
0.13336016237735748,
0.10648223012685776,
0.27398839592933655,
-0.18011708557605743,
0.2133345603942871,
0.2460547834634781,
-0.03646775335073471,
0.03863910213112831,
0.06672895699739456,
-0.24549034237861633,
0.1483469158411026,
-0.5284507274627686,
-0.16509374976158142,
0.20722752809524536,
0.1402530074119568,
-0.42466098070144653,
-0.3562803268432617,
0.7166367173194885,
0.42063841223716736,
0.039208028465509415,
0.4858263432979584,
-0.0001032747095450759,
-0.18513095378875732,
0.37820273637771606,
-0.0789729654788971,
-0.3090837895870209,
0.06735321879386902,
-0.11584389209747314,
-0.2272578775882721,
0.09806650131940842,
0.14975924789905548,
-0.06669777631759644,
-0.2193135917186737,
0.01499180682003498,
-0.2572234272956848,
0.2223706692457199,
0.2229425460100174,
0.2773909270763397,
-0.17885318398475647,
-0.03404310718178749,
-0.20823852717876434,
-0.23707076907157898,
0.14484906196594238,
0.12613560259342194,
0.39214321970939636,
-0.059890344738960266,
-0.3621634542942047,
-0.20453691482543945,
0.0004998780786991119,
-0.10447609424591064,
0.01590154320001602,
-0.08503373712301254,
-0.22362709045410156,
-0.01991841197013855,
-0.02367032691836357,
0.29939377307891846,
0.2996666133403778,
0.7391670346260071,
0.18057115375995636,
-0.16681426763534546,
0.13590498268604279,
0.2184579074382782,
-0.11575653403997421,
0.18719984591007233,
0.15774552524089813,
-0.14755812287330627,
0.22981396317481995,
-0.23451027274131775,
-0.12261532247066498,
-0.08494120091199875,
0.062387626618146896,
-0.21995793282985687,
-0.25933393836021423,
-0.2399011254310608,
-0.040816616266965866,
-0.001075508538633585,
-0.0751933678984642,
0.4286385476589203,
0.10590469837188721,
0.011790283024311066,
-0.047650206834077835,
-0.25629985332489014,
0.00529919657856226,
0.47891563177108765,
-0.061038341373205185,
0.011111360974609852,
-0.27108412981033325,
0.2141169160604477,
0.17933836579322815,
0.18450771272182465,
-0.15150485932826996,
0.2935303747653961,
0.005882762372493744,
0.05717838928103447,
-0.11747223883867264,
0.2710515856742859,
0.33933794498443604,
-0.17007175087928772,
0.055855944752693176,
-0.18268568813800812,
0.04572527855634689,
-0.3603244423866272,
-0.04015759378671646,
0.11374717205762863,
-0.3460594713687897,
-0.2140461653470993,
0.20118412375450134,
0.25870969891548157,
-0.1547488272190094,
0.05374828353524208,
0.49234578013420105,
0.05133648216724396,
0.062452562153339386,
-0.004640418104827404,
0.01120348647236824,
-0.07772933691740036,
0.025640882551670074,
-0.3525044322013855,
-0.07710041850805283,
-0.360037624835968,
-0.0015094541013240814,
0.27247652411460876,
0.132605642080307,
0.34873291850090027,
-0.26781797409057617,
-0.0662974938750267,
0.09161712974309921,
-0.0842415988445282,
-0.06940437108278275,
-0.1213531643152237,
0.32522469758987427,
0.022574881091713905,
0.041365526616573334,
0.01990027353167534,
-0.025688791647553444,
-0.004347620531916618,
0.09362378716468811,
-0.22447215020656586,
-0.31422871351242065,
-0.06202968955039978,
0.22559195756912231,
-0.17136885225772858,
-0.2299071103334427,
0.20941199362277985,
0.07748974114656448,
0.05557222291827202,
-0.20488695800304413,
-0.1609364151954651,
0.12089464068412781,
-0.07291747629642487,
-0.07902752608060837,
-0.050477005541324615,
0.42071714997291565,
-0.21797509491443634,
-0.010635476559400558,
-0.490193635225296,
-0.2503647804260254,
0.17285186052322388,
-0.009382951073348522,
-0.2814790904521942,
0.05034166947007179,
-0.2370166927576065,
-0.04620164632797241,
0.41729044914245605,
-0.10830464214086533,
-0.6299319863319397,
0.22101429104804993,
-0.0702611580491066,
-0.1633525788784027,
0.1672920435667038,
-0.08478976786136627,
-0.11998258531093597,
0.17983295023441315,
0.16001620888710022,
0.12454371899366379,
0.15757796168327332,
-0.16142025589942932,
-0.21762073040008545,
-0.26196104288101196,
0.12460064888000488,
0.18544216454029083,
0.12836119532585144,
0.1603359878063202,
0.15013255178928375,
0.05055752396583557,
0.37892717123031616,
0.245314821600914,
-0.2537980079650879,
0.08571894466876984,
0.41609030961990356,
0.04997427016496658,
0.09027837961912155,
0.06642793118953705,
-0.3263094425201416,
-0.13510668277740479,
0.0558089017868042,
-0.012046516872942448,
0.35421472787857056,
-0.07717061042785645,
-0.6536937355995178,
0.02630474418401718,
-0.12010353058576584,
-0.029523178935050964,
0.20889578759670258,
0.5497593283653259,
0.039746806025505066,
-0.08963988721370697,
-0.26433560252189636,
-0.042232953011989594,
-0.20908117294311523,
-0.17941422760486603,
0.06401296705007553,
0.24230045080184937,
0.007928933016955853,
-0.26286059617996216,
0.16608144342899323,
-0.022065769881010056,
0.2655792534351349,
0.029176974669098854,
0.0701480507850647,
0.16600185632705688,
0.0248172115534544,
0.22172541916370392,
0.39272060990333557,
0.013934265822172165,
0.2755771279335022,
-0.2978185713291168,
0.14726711809635162,
0.28381457924842834,
0.0021701212972402573,
0.2435070276260376,
-0.17361783981323242,
0.27200642228126526,
-0.28984513878822327,
-0.2801787853240967,
0.074216827750206,
0.13668662309646606,
0.22405342757701874,
0.0627300813794136,
0.05254588648676872,
-0.2433597296476364,
0.21787947416305542,
-0.1896083801984787,
0.4203697144985199,
0.016845567151904106,
-0.15856307744979858,
0.19223842024803162,
0.31966477632522583,
0.2506099045276642,
-0.004671270959079266,
-0.05441343039274216,
-0.11325068771839142,
-0.3046712577342987,
0.36900246143341064,
-0.024120939895510674,
0.18050111830234528,
0.2353915423154831,
-0.012766383588314056,
-0.24251613020896912,
-0.052514102309942245,
-0.3688538670539856,
0.1849396973848343,
-0.19335150718688965,
-0.13139361143112183,
0.13942740857601166,
0.2598620057106018,
-0.08202717453241348,
-0.7052388787269592,
-0.11425196379423141,
0.144828662276268,
0.046287816017866135,
-0.31330764293670654,
-0.1348051130771637,
-0.087514229118824,
-0.14329618215560913,
0.2546367347240448,
-0.20954763889312744,
0.3304074704647064,
-0.3505926728248596,
-0.08907777816057205,
0.08510046452283859,
-0.17543736100196838,
0.09133870154619217,
-0.11917948722839355,
0.2286837100982666,
-0.005212129559367895,
0.4794618785381317,
-0.38192886114120483,
-0.31515008211135864,
0.03149864077568054,
0.24180813133716583,
-0.08110643923282623,
-0.10713691264390945,
0.09491825103759766,
0.03753547742962837,
0.14095354080200195,
-0.11889427900314331,
-0.3467957377433777,
0.19699451327323914,
0.10207623988389969,
0.3518722653388977,
0.04616541415452957,
0.11569970846176147,
-0.2639821469783783,
-0.016559313982725143,
0.09589681774377823,
-0.07035502046346664,
-0.03545793145895004,
0.005623298231512308,
-0.048022184520959854,
-0.11966396868228912,
-0.05639132112264633,
-0.24834366142749786,
-0.2034507840871811,
-0.36990007758140564,
-0.12785504758358002,
-0.1476116180419922,
-0.03934978321194649,
0.27783796191215515,
0.014886892400681973,
0.10468332469463348,
-0.22767004370689392,
0.3261803090572357,
-0.34707358479499817,
-0.24935148656368256,
0.32365596294403076,
-0.32139602303504944,
-0.3669227063655853,
0.10860412567853928,
0.08245334029197693,
-0.22397784888744354,
0.2392091006040573,
-0.5294009447097778,
0.22686098515987396,
0.006775462068617344,
-0.23917344212532043,
0.22109226882457733,
-0.321377158164978,
0.01386318914592266,
0.09224001318216324,
-0.2367628961801529,
0.035364605486392975,
0.05940227210521698,
-0.3282037079334259,
0.13153937458992004,
0.15507537126541138,
-0.4479861855506897,
-0.027303215116262436,
-0.11288612335920334,
0.6381287574768066,
0.03392260521650314,
0.10291168838739395,
0.22734440863132477,
-0.2659255564212799,
0.4435652196407318,
-0.03220043703913689,
-0.3606553077697754,
-0.12498417496681213,
0.11304846405982971,
-0.14299070835113525,
0.26417404413223267,
0.016513127833604813,
-0.023411450907588005,
-0.29560115933418274,
0.24084237217903137,
-0.10104192048311234,
-0.0018145829671993852,
-0.19203899800777435,
0.15899623930454254,
0.31971073150634766,
0.47732284665107727,
0.26341840624809265,
0.06091073527932167,
-0.24815413355827332,
-0.1781962662935257,
0.2213970571756363,
0.3433980941772461,
-0.1729615479707718,
-0.10215792804956436,
0.04598774388432503,
-0.0944366380572319,
0.16431738436222076,
-0.23990891873836517,
0.32810044288635254,
-0.31229913234710693,
-0.17674598097801208,
0.143644317984581,
0.17300479114055634,
0.24059632420539856,
0.0582193024456501,
0.11020564287900925,
0.13663436472415924,
0.13087280094623566,
-0.24330173432826996,
-0.010451973415911198,
-0.06477739661931992,
0.297079861164093,
-0.02653622254729271,
0.03980353847146034,
0.0018520669545978308,
0.0914604589343071,
0.3259516656398773,
-0.1705273687839508,
-0.10992684215307236,
0.03299945592880249,
-0.1547011137008667,
-0.25546255707740784,
0.027496105059981346,
-0.13723693788051605,
-0.5189521312713623,
0.1658248007297516,
-0.04169401526451111,
-0.13581399619579315,
-0.1079484149813652,
-0.060340262949466705,
0.15731146931648254,
0.3023035228252411,
0.3196409046649933,
0.14460015296936035,
0.10519365966320038,
-0.2683005630970001,
0.21919308602809906,
0.6102781891822815,
0.5233604311943054,
0.2884536683559418,
-0.342792809009552,
0.4614717960357666,
-0.4369543492794037,
0.06757152825593948,
0.49373143911361694,
-0.20622552931308746,
-0.38226720690727234,
0.2006673961877823,
0.07400244474411011,
-0.16747087240219116,
0.2781030833721161,
-0.1295698881149292,
-0.0033214285504072905,
-0.07054120302200317,
0.036016881465911865,
0.31438690423965454,
-0.06404319405555725,
-0.1309434324502945,
0.08807659149169922,
0.10397633910179138,
-0.009735417552292347,
0.026027066633105278,
-0.1670137643814087,
0.7769577503204346,
-0.008778653107583523,
-0.06716036051511765,
0.5751709342002869,
-0.0816982164978981,
0.22013886272907257,
-0.39946869015693665,
0.04502972215414047,
0.07207971811294556,
-0.13969969749450684,
-0.07941712439060211,
-0.07834267616271973,
0.16667822003364563,
0.45898693799972534,
0.07797776162624359,
0.2141568958759308,
0.11427777260541916,
-0.0178330410271883,
0.13050617277622223,
0.2838239371776581,
0.011697405017912388,
0.0973701998591423,
-0.2483275979757309,
0.1759001612663269,
-0.0016294651431962848,
0.25973689556121826,
-0.12583963572978973,
-0.015157770365476608,
-0.01254054345190525,
-0.04439808055758476,
-0.1781473457813263,
0.04147909954190254,
0.05416083708405495,
0.027572063729166985,
-0.1711347997188568,
-0.4068272113800049,
-0.034999046474695206,
-0.00171366345603019,
-0.13635261356830597,
0.08537930995225906,
-0.2643653452396393,
0.4425823390483856,
0.15899889171123505,
-0.3555786907672882,
-0.3861827850341797,
0.23458674550056458,
0.13824936747550964,
-0.04530085250735283,
-0.16650213301181793,
0.2426815778017044,
-0.1521529108285904,
0.028174836188554764,
-0.0015253074234351516,
0.2326446920633316,
-0.16147679090499878,
-0.38426873087882996,
-0.16590048372745514,
0.07061504572629929,
0.1746635138988495,
-0.20081539452075958,
0.2489205300807953,
-0.015102616511285305,
0.08010216802358627,
-0.0996004119515419,
0.3085339069366455,
-0.11964526027441025,
-0.3176095485687256,
0.2981624901294708,
0.23493961989879608,
-0.15184509754180908,
0.3616162836551666,
0.06789987534284592,
-0.20713087916374207,
-0.40651074051856995,
-0.4271802306175232,
0.24508816003799438,
-0.29329603910446167,
0.1709027886390686,
-0.03660006448626518,
-0.18789273500442505,
0.08605854213237762,
0.2626621425151825,
0.1296645849943161,
0.06379403173923492,
-0.17444895207881927,
-0.28868982195854187,
-0.10663644224405289,
0.14923284947872162,
0.081211157143116,
0.041508663445711136,
0.07203435152769089,
-0.2319047898054123,
0.11673999577760696,
-0.05729250982403755,
-0.44376614689826965,
0.03351566195487976,
-0.1808621734380722,
-0.040598493069410324,
0.18269506096839905,
0.03400813415646553,
-0.08403662592172623,
-0.1915421038866043,
0.25908470153808594,
0.0021136959549039602,
-0.10719165205955505,
-0.3136041760444641,
0.2765846848487854,
0.1171494647860527,
0.049847111105918884,
-0.024022338911890984,
-0.10434100031852722,
-0.12561923265457153,
-0.3105042278766632,
0.052527736872434616,
-0.015859154984354973,
-0.09795120358467102,
0.19623923301696777,
-0.036352064460515976,
-0.3497944176197052,
-0.10899559408426285,
-0.07297033816576004,
0.25986573100090027,
-0.049082256853580475,
0.3827202022075653,
0.13350330293178558,
0.07413779944181442,
0.11843441426753998,
0.03469279408454895,
-0.09597111493349075,
0.15879586338996887,
-0.08064834028482437,
-0.14179140329360962,
0.3620832860469818,
-0.30809733271598816,
0.01526860985904932,
0.2600546181201935,
0.20532748103141785,
0.40048161149024963,
-0.21319642663002014,
-0.0180144552141428,
-0.1983405500650406,
0.23778951168060303,
-0.5281899571418762,
0.16042493283748627,
-0.09311816841363907,
-0.06801586598157883,
0.11336904019117355,
-0.21546238660812378,
0.3718414902687073,
-0.20607954263687134,
0.28875967860221863,
0.22419534623622894,
0.5259724259376526,
0.24367135763168335,
0.1009024903178215,
0.23693040013313293,
-0.35984572768211365,
0.11958496272563934,
0.1522180438041687,
0.23384086787700653,
-0.10891581326723099,
0.07208921015262604,
0.049041006714105606,
0.1945570856332779,
0.23963579535484314,
0.3225370943546295,
-0.27130401134490967,
-0.5819244384765625,
0.5238558053970337,
0.24192838370800018,
-0.1907920241355896,
0.12051554024219513,
0.059918444603681564,
0.4145711660385132,
-0.17186136543750763,
0.2800544500350952,
-0.26683393120765686,
-0.07770133763551712,
-0.3039826452732086,
0.03572746366262436,
-0.22047072649002075,
-0.053882963955402374,
-0.11071880906820297,
0.20235511660575867,
-0.089485302567482,
0.1980801522731781,
-0.03412242606282234,
-0.20589277148246765,
-0.09209313243627548,
-0.40510785579681396,
0.3044843375682831,
0.30130207538604736,
-0.005583769176155329,
-0.1364101618528366,
0.39862769842147827,
-0.05687369778752327,
0.004389969632029533,
0.29755064845085144,
0.6979382038116455,
0.06633128970861435,
-0.1777609884738922,
-0.04087249934673309,
-0.14856168627738953,
0.11652392894029617,
-0.26508447527885437,
-0.16560405492782593,
0.3771575391292572,
0.40419256687164307,
0.4677700996398926,
0.058495379984378815,
0.29094836115837097,
-0.23504260182380676,
0.07578497380018234,
0.018579723313450813,
0.2061867117881775,
-0.19403396546840668,
-0.30208325386047363,
-0.3225456476211548,
-0.0027573322877287865,
0.13374094665050507,
-0.32158154249191284,
-0.20406517386436462,
-0.06286467611789703,
0.48492076992988586,
-0.1060691848397255,
0.24840587377548218,
-0.19128744304180145,
0.1372336596250534,
-0.3057481348514557,
0.21425294876098633,
0.4125063419342041,
0.18709196150302887,
0.06265173852443695,
-0.2843296527862549,
-0.5876275300979614,
0.28345808386802673,
0.3636379539966583,
0.008364992216229439,
-0.13985177874565125,
0.12137250602245331,
0.18133597075939178,
0.06220700591802597,
0.11808449029922485,
-0.14556379616260529,
0.1548384726047516,
-0.047210898250341415,
-0.19286872446537018,
0.1688474714756012,
-0.008104376494884491,
0.36799871921539307,
-0.20949500799179077,
-0.3804852366447449,
0.20524026453495026,
0.05272921919822693,
0.08410169929265976,
-0.266065776348114,
-0.350080668926239,
-0.1680329442024231,
0.12045605480670929,
0.44413521885871887,
-0.11210273951292038,
0.38522303104400635,
-0.11503054946660995,
-0.01817220076918602,
-0.3132176697254181,
-0.38927775621414185,
0.37744343280792236,
0.15724150836467743,
0.10456594824790955,
0.08832864463329315,
-0.10820107161998749,
0.18556314706802368,
0.01407539937645197,
-0.043978575617074966,
-0.0628495141863823,
-0.07496710121631622,
-0.11355261504650116,
-0.054379653185606,
-0.2449621707201004,
-0.20934469997882843,
0.034934088587760925,
0.06387093663215637,
0.0524752140045166,
-0.19456693530082703,
0.0917319506406784,
-0.1670478880405426,
0.23430955410003662,
0.06451275199651718,
-0.2925798296928406,
-0.10656755417585373,
0.126734659075737,
0.039259761571884155,
0.11008758842945099,
-0.3556709587574005,
0.14430098235607147,
0.18227048218250275,
-0.08913503587245941,
-0.043966155499219894,
0.1360100954771042,
-0.2152203619480133,
-0.17426837980747223,
-0.0934419259428978,
0.5286746621131897,
0.28818103671073914,
-0.16463862359523773,
-0.4744204878807068,
0.007637187838554382
] |
https://github.com/huggingface/datasets/issues/5259
|
datasets 2.7 introduces sharding error
|
I notice a comment in the code says:
`Having lists of different sizes makes sharding ambigious, raise an error in this case until we decide how to define sharding without ambiguity for users`
... which suggests this update was pushed knowing that it might break some things. But, it didn't seem to have a useful error message of an argument that could be passed to avoid the error.
|
### Describe the bug
dataset fails to load with runtime error
`RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.`
### Steps to reproduce the bug
With datasets[audio] 2.7 loaded, and logged into hugging face,
`data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)`
creates the error.
Full stack trace:
```---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
[<ipython-input-7-8cb9ca0f79f0>](https://localhost:8080/#) in <module>
----> 1 data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)
5 frames
[/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, num_proc, **config_kwargs)
1745 try_from_hf_gcs=try_from_hf_gcs,
1746 use_auth_token=use_auth_token,
-> 1747 num_proc=num_proc,
1748 )
1749
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, output_dir, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)
824 verify_infos=verify_infos,
825 **prepare_split_kwargs,
--> 826 **download_and_prepare_kwargs,
827 )
828 # Sync info
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs)
1554 def _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs):
1555 super()._download_and_prepare(
-> 1556 dl_manager, verify_infos, check_duplicate_keys=verify_infos, **prepare_splits_kwargs
1557 )
1558
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
911 try:
912 # Prepare split will record examples associated to the split
--> 913 self._prepare_split(split_generator, **prepare_split_kwargs)
914 except OSError as e:
915 raise OSError(
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split(self, split_generator, check_duplicate_keys, file_format, num_proc, max_shard_size)
1362 fpath = path_join(self._output_dir, fname)
1363
-> 1364 num_input_shards = _number_of_shards_in_gen_kwargs(split_generator.gen_kwargs)
1365 if num_input_shards <= 1 and num_proc is not None:
1366 logger.warning(
[/usr/local/lib/python3.7/dist-packages/datasets/utils/sharding.py](https://localhost:8080/#) in _number_of_shards_in_gen_kwargs(gen_kwargs)
16 + "\n".join(f"\t- key {key} has length {length}" for key, length in lists_lengths.items())
17 + "\nTo fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, "
---> 18 + "and use tuples otherwise. In the end there should only be one single list, or several lists with the same length."
19 )
20 )
RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.```
### Expected behavior
the dataset loads in datasets version 2.6.1 and should load with datasets 2.7
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
| 68 |
datasets 2.7 introduces sharding error
|
[
-0.4542286694049835,
-0.04700472578406334,
-0.10457874089479446,
0.07286141067743301,
-0.04029931128025055,
-0.06902579218149185,
0.23992054164409637,
0.36145639419555664,
-0.19953379034996033,
0.07589299231767654,
0.05583185330033302,
-0.054489944130182266,
-0.12331058084964752,
0.14963193237781525,
-0.20104320347309113,
-0.31952014565467834,
0.16380828619003296,
0.06663302332162857,
-0.14520488679409027,
-0.0014327818062156439,
-0.14000414311885834,
0.27310678362846375,
-0.30209362506866455,
-0.03991328179836273,
-0.258849561214447,
-0.1495051234960556,
0.06543640792369843,
0.16109132766723633,
-0.3347875773906708,
-0.19894126057624817,
0.060418009757995605,
0.1844680905342102,
0.04959765821695328,
0.11375834047794342,
-0.00010778601426864043,
-0.02535729669034481,
0.3472866117954254,
0.16013875603675842,
0.03718995675444603,
0.1652769148349762,
-0.513410210609436,
-0.0766323134303093,
-0.15397422015666962,
0.008757863193750381,
0.14480504393577576,
0.09394974261522293,
-0.03868287429213524,
0.03653881698846817,
0.18946731090545654,
0.12083456665277481,
0.29640528559684753,
0.12761445343494415,
-0.11369539052248001,
-0.31096622347831726,
0.3882373571395874,
-0.11387073248624802,
-0.06221872568130493,
-0.18741664290428162,
-0.051006659865379333,
0.22294259071350098,
-0.31583890318870544,
0.3080117702484131,
-0.01878213696181774,
-0.04255392402410507,
-0.18862700462341309,
-0.039671964943408966,
-0.002859510015696287,
0.0950917974114418,
0.20930257439613342,
0.011531433090567589,
0.11436749994754791,
-0.08966725319623947,
-0.1503121703863144,
-0.019833484664559364,
-0.1274569183588028,
-0.34142225980758667,
0.3299018442630768,
-0.10859895497560501,
-0.024856913834810257,
0.2176884412765503,
-0.21189863979816437,
-0.24708957970142365,
-0.12432016432285309,
-0.051716722548007965,
-0.14663900434970856,
0.05426693707704544,
-0.1809879094362259,
0.12006428092718124,
0.09886310249567032,
-0.2944240868091583,
0.021522115916013718,
-0.006773038301616907,
-0.4718483090400696,
-0.3051775097846985,
-0.24611464142799377,
-0.1885083168745041,
0.12843093276023865,
0.23556260764598846,
0.36181527376174927,
0.08686608076095581,
-0.05131945386528969,
0.2881445288658142,
0.0823635384440422,
0.10636910051107407,
-0.04890352115035057,
0.05990936979651451,
0.35136309266090393,
0.048717230558395386,
0.42925944924354553,
0.1062510535120964,
0.1581565886735916,
0.10396846383810043,
0.35901185870170593,
-0.6369895935058594,
-0.1886247992515564,
-0.08628244698047638,
0.059312604367733,
-0.3177103102207184,
-0.1428164541721344,
0.31578800082206726,
0.31108537316322327,
-0.0633009597659111,
0.03486460819840431,
0.3024718463420868,
0.22340519726276398,
-0.46257483959198,
-0.26245149970054626,
0.2278340607881546,
-0.11439927667379379,
-0.5582284927368164,
-0.3227365016937256,
0.0861428827047348,
-0.3531196713447571,
-0.020402884110808372,
0.0780404806137085,
0.1399485468864441,
0.167814701795578,
0.05025244131684303,
0.05411073565483093,
0.15123127400875092,
-0.5000727772712708,
-0.027648773044347763,
0.2548312246799469,
0.3810528814792633,
-0.11946500837802887,
0.02521742321550846,
-0.10449513792991638,
-0.24901185929775238,
-0.03587409108877182,
0.07205818593502045,
-0.10599607229232788,
-0.2035273313522339,
-0.1730937957763672,
0.2028590589761734,
-0.14165928959846497,
-0.0204771775752306,
-0.34816092252731323,
0.10832169651985168,
0.2559382915496826,
-0.32174018025398254,
-0.25938141345977783,
-0.1496780514717102,
-0.20708024501800537,
-0.23630979657173157,
0.12544021010398865,
0.3401273488998413,
-0.17647850513458252,
0.1503882259130478,
-0.22648954391479492,
-0.1557408720254898,
0.450013667345047,
0.34108924865722656,
0.03145947679877281,
-0.1919507384300232,
-0.2863498330116272,
0.587561309337616,
0.4228472411632538,
0.2914835512638092,
-0.4238572418689728,
0.28300565481185913,
0.03034575656056404,
-0.027950508520007133,
0.03753859922289848,
0.03139852359890938,
0.12932299077510834,
0.07077118754386902,
-0.1426185965538025,
-0.07403754442930222,
0.034813061356544495,
-0.11192270368337631,
-0.22341981530189514,
-0.04378595948219299,
-0.05932484567165375,
0.0029028241988271475,
0.2912435233592987,
0.3088988661766052,
0.551632821559906,
-0.26400741934776306,
-0.06839495152235031,
-0.10960858315229416,
0.11566436290740967,
0.07841454446315765,
0.28589341044425964,
-0.12563864886760712,
0.032538652420043945,
-0.24710503220558167,
-0.2529006004333496,
0.07265033572912216,
0.19397246837615967,
0.021408313885331154,
-0.3143957555294037,
-0.0883508175611496,
-0.11413581669330597,
-0.12485049664974213,
-0.10119803994894028,
-0.08056024461984634,
0.171932190656662,
-0.06445726752281189,
-0.3415389955043793,
-0.2282097339630127,
-0.04244481027126312,
0.19220353662967682,
-0.5205806493759155,
0.10156567394733429,
-0.2822748124599457,
0.15962980687618256,
-0.19070778787136078,
-0.4018096625804901,
0.0013663278659805655,
-0.05881083384156227,
0.09081670641899109,
-0.07059317827224731,
-0.05384073406457901,
0.31100961565971375,
0.06357632577419281,
-0.07507473975419998,
0.16861048340797424,
0.2511965334415436,
-0.08448120206594467,
-0.06330553442239761,
0.0008967972244136035,
-0.20394305884838104,
-0.17084699869155884,
0.0566854290664196,
-0.03176967799663544,
0.3331575095653534,
-0.17282116413116455,
-0.15976837277412415,
-0.08339560031890869,
0.06335077434778214,
0.6142124533653259,
0.018255919218063354,
0.1402600109577179,
-0.407010942697525,
0.05201931670308113,
-0.10433011502027512,
-0.525567352771759,
-0.04797951132059097,
-0.2691640555858612,
-0.07434860616922379,
0.3742443919181824,
0.12396865338087082,
0.19953753054141998,
0.2285522073507309,
0.1595296412706375,
0.005376514513045549,
0.408077597618103,
0.7456969618797302,
0.47918540239334106,
0.24985504150390625,
0.10041515529155731,
0.2232944816350937,
-0.14239344000816345,
-0.2730632722377777,
0.1154266968369484,
-0.10232103615999222,
-0.13554726541042328,
0.280179888010025,
-0.06406503170728683,
0.05116956681013107,
-0.37350723147392273,
-0.15074749290943146,
0.06795583665370941,
0.2894691824913025,
-0.5119712948799133,
-0.20496071875095367,
-0.4690200388431549,
-0.1757488250732422,
-0.07074229419231415,
0.58055180311203,
-0.11276698857545853,
-0.3840987980365753,
0.06478787213563919,
0.3650101125240326,
-0.3483872711658478,
0.13221076130867004,
0.06083182990550995,
0.4178043603897095,
0.12879560887813568,
0.28733620047569275,
-0.10669571161270142,
-0.029863568022847176,
0.026302097365260124,
0.10325691103935242,
0.1449185162782669,
0.059856295585632324,
0.15400129556655884,
-0.43278780579566956,
0.001589563675224781,
-0.6243661046028137,
-0.5124782919883728,
0.13795188069343567,
-0.12139629572629929,
0.48902633786201477,
0.3263414204120636,
0.07836359739303589,
-0.2825470268726349,
-0.13967843353748322,
0.19297704100608826,
-0.055016737431287766,
-0.2926267981529236,
0.331644743680954,
-0.09904219955205917,
-0.3087732493877411,
-0.2226131558418274,
-0.1880026012659073,
0.1716942936182022,
-0.258827805519104,
0.123472198843956,
-0.06616675108671188,
0.2341340333223343,
0.22243881225585938,
0.12697429955005646,
-0.23209573328495026,
-0.48520082235336304,
0.22372445464134216,
-0.24519594013690948,
-0.5217613577842712,
0.34505608677864075,
-0.32925674319267273,
-0.3691885471343994,
0.07517438381910324,
0.16396412253379822,
0.20763714611530304,
0.3351267874240875,
-0.17111776769161224,
0.07459430396556854,
-0.11586323380470276,
0.5503787398338318,
0.2535606026649475,
0.023671230301260948,
0.2655746638774872,
0.2101454734802246,
-0.20581869781017303,
-0.305573046207428,
0.019922077655792236,
0.18198662996292114,
-0.19364921748638153,
0.24116438627243042,
-0.09492991119623184,
0.3589300215244293,
0.22695361077785492,
0.7096003890037537,
0.0953182727098465,
-0.27049171924591064,
0.4009586274623871,
-0.07228951901197433,
0.2810625731945038,
-0.13020355999469757,
-0.1350293755531311,
-0.027082623913884163,
0.051328904926776886,
0.10664238780736923,
0.1748964488506317,
-0.024322059005498886,
-0.02654845081269741,
0.02457607537508011,
-0.2627692222595215,
-0.13636527955532074,
-0.2862963080406189,
-0.05621112138032913,
0.1435372680425644,
0.17207875847816467,
0.2807735204696655,
0.014247910119593143,
0.06472937762737274,
-0.25204217433929443,
0.06603419035673141,
0.372927725315094,
0.0678185373544693,
-0.06563383340835571,
-0.17120349407196045,
-0.0812830701470375,
-0.09977136552333832,
0.3789512813091278,
0.05774188041687012,
0.6068074107170105,
-0.35852575302124023,
-0.09890594333410263,
0.026484917849302292,
0.17685751616954803,
0.5144116878509521,
-0.5551300644874573,
-0.012759337201714516,
-0.12436095625162125,
-0.012555333785712719,
0.15253040194511414,
0.04313497990369797,
-0.053681619465351105,
0.41351404786109924,
-0.03285938501358032,
0.279731422662735,
-0.1587587594985962,
0.010451755486428738,
0.3752659857273102,
-0.12675608694553375,
-0.07788652181625366,
-0.1468823254108429,
-0.10272197425365448,
-0.06312836706638336,
-0.12659990787506104,
-0.12256301194429398,
-0.016335727646946907,
0.1421600580215454,
-0.22619590163230896,
0.009100200608372688,
-0.1592901051044464,
-0.047690246254205704,
0.1330813616514206,
0.36265990138053894,
0.23460373282432556,
-0.13519394397735596,
0.2043711394071579,
-0.09565737098455429,
0.2703550457954407,
0.37518730759620667,
0.22000253200531006,
0.09346288442611694,
-0.006135950330644846,
0.047392405569553375,
-0.14296407997608185,
0.15324220061302185,
0.1951030194759369,
-0.33657002449035645,
0.08532079309225082,
-0.08412209153175354,
-0.05796060711145401,
-0.08559227734804153,
0.06720452010631561,
0.2536846697330475,
0.22174395620822906,
-0.07834407687187195,
0.15429238975048065,
0.1899818331003189,
0.16645032167434692,
-0.27128520607948303,
0.15034644305706024,
0.3614519536495209,
-0.30761462450027466,
0.26871776580810547,
-0.03563462197780609,
0.8198750615119934,
0.1543668508529663,
0.027737701311707497,
0.1455787718296051,
0.16793346405029297,
0.004809925798326731,
0.09102551639080048,
0.19864307343959808,
-0.42368084192276,
-0.6217608451843262,
0.0007116202032193542,
-0.11670408397912979,
0.5263987183570862,
-0.09575708210468292,
-0.08555422723293304,
0.2221665233373642,
-0.011951318942010403,
0.2263057827949524,
-0.08256267011165619,
-0.03832300007343292,
-0.17645472288131714,
0.02498186193406582,
0.04717029631137848,
0.19061125814914703,
-0.08149217069149017,
-0.09551839530467987,
-0.22675864398479462,
0.05679015442728996,
0.061956390738487244,
-0.09149596095085144,
-0.10509347915649414,
0.062147121876478195,
0.5266746282577515,
0.2702910006046295,
0.021572275087237358,
0.10991054028272629,
0.23550741374492645,
0.08329585194587708,
0.4179512858390808,
0.07303401082754135,
-0.07518422603607178,
0.2914937138557434,
0.042544327676296234,
0.054372388869524,
0.03641950711607933,
-0.002830648561939597,
0.10429346561431885,
-0.034030038863420486,
-0.1152891218662262,
-0.28427591919898987,
0.14087560772895813,
-0.28358083963394165,
-0.3051712214946747,
-0.16785819828510284,
-0.012893825769424438,
-0.36054372787475586,
0.08652474731206894,
-0.08247053623199463,
-0.016988396644592285,
-0.2826128602027893,
0.22643619775772095,
0.10487764328718185,
-0.2039458304643631,
0.47116872668266296,
0.11132322251796722,
-0.19488130509853363,
-0.0018992715049535036,
0.5038066506385803,
-0.11549897491931915,
0.19793841242790222,
0.08521202206611633,
-0.04626813530921936,
-0.42823490500450134,
-0.31817081570625305,
0.07429672032594681,
-0.0021583898924291134,
-0.29461437463760376,
0.16197174787521362,
-0.3098925054073334,
-0.021013803780078888,
-0.0920017659664154,
0.4985275864601135,
0.12659144401550293,
0.12122458219528198,
0.1216706931591034,
-0.23593245446681976,
-0.1180310994386673,
0.24873429536819458,
-0.43829602003097534,
0.22171935439109802,
0.0019326324108988047,
0.024837544187903404,
-0.25767263770103455,
0.09858197718858719,
-0.39249518513679504,
-0.03085862286388874,
-0.026222258806228638,
0.22466455399990082,
0.1368950754404068,
0.09995049238204956,
-0.09172249585390091,
-0.18196238577365875,
0.11246331036090851,
0.1594541221857071,
-0.11551859974861145,
-0.2362031191587448,
-0.00896634440869093,
0.0909244492650032,
-0.0649474635720253,
0.02025415748357773,
0.005675491411238909,
-0.08233132213354111,
-0.27970173954963684,
0.10290463268756866,
0.16566535830497742,
0.18012064695358276,
-0.03514143452048302,
0.19881358742713928,
0.4645647406578064,
-0.10613691061735153,
0.23831218481063843,
0.13257314264774323,
-0.07060253620147705,
0.21368205547332764,
-0.265207976102829,
0.17904308438301086,
-0.26173827052116394,
-0.1252174973487854,
0.40958553552627563,
0.15745675563812256,
0.03501703962683678,
-0.08573568612337112,
0.31070613861083984,
-0.34962353110313416,
-0.1248009130358696,
0.020055774599313736,
0.5396607518196106,
0.10891444236040115,
-0.21067652106285095,
-0.41500020027160645,
0.3213562071323395,
0.2662968635559082,
-0.2527080774307251,
-0.283280611038208,
0.5321582555770874,
0.1412528157234192,
0.001500751473940909,
0.10220436006784439,
0.2784607410430908,
-0.07663014531135559,
0.0906025618314743,
0.16829167306423187,
0.19519494473934174,
-0.3241378366947174,
-0.012797477655112743,
0.2583187520503998,
-0.0914226844906807,
0.009096523746848106,
0.4702530801296234,
0.1529952734708786,
-0.04853946343064308,
0.6569116115570068,
-0.27982690930366516,
0.5664153099060059,
-0.005654236767441034,
0.14930123090744019,
-0.015152260661125183,
-0.4775388538837433,
0.3538351356983185,
0.20319370925426483,
0.1041117012500763,
-0.12436090409755707,
0.07917336374521255,
0.36436352133750916,
0.265973299741745,
-0.1162065863609314,
-0.21222884953022003,
0.10508013516664505,
-0.3931012749671936,
-0.2257097214460373,
-0.4432780146598816,
-0.1909681260585785,
-0.3103063106536865,
-0.03497309982776642,
-0.05262359231710434,
0.15276163816452026,
0.5424008965492249,
-0.03434327244758606,
0.0005720978952012956,
-0.2779330611228943,
0.14823290705680847,
-0.12217406183481216,
0.04515357315540314,
-0.23587533831596375,
0.34477248787879944,
0.08041724562644958,
-0.07261529564857483,
0.4111284911632538,
0.2357562780380249,
0.3325185775756836,
0.13755249977111816,
0.34498685598373413,
-0.2650526762008667,
0.011340389028191566,
-0.14976926147937775,
-0.194197878241539,
0.4365273416042328,
0.10441621392965317,
0.2456923872232437,
0.3236633539199829,
0.1668054312467575,
-0.13596433401107788,
0.26922154426574707,
0.22569571435451508,
0.34007957577705383,
0.03221281245350838,
0.06473404914140701,
0.006164473947137594,
-0.20443646609783173,
0.13686393201351166,
-0.12770015001296997,
-0.19093002378940582,
-0.0643487200140953,
0.5721685290336609,
-0.2834191620349884,
0.08983637392520905,
-0.16164681315422058,
0.12009889632463455,
0.1459762006998062,
0.4142906665802002,
0.10148849338293076,
-0.0032449455466121435,
-0.18830427527427673,
-0.2782139778137207,
-0.4653834402561188,
0.04174764081835747,
0.18688318133354187,
0.36916035413742065,
-0.09875595569610596,
0.21487562358379364,
-0.13755428791046143,
-0.02114536613225937,
0.032072629779577255,
-0.38177523016929626,
-0.2159171998500824,
0.1254100352525711,
-0.050368525087833405,
0.031364865601062775,
0.12680862843990326,
-0.29021671414375305,
-0.10908126831054688,
-0.128470778465271,
0.31708216667175293,
-0.17532750964164734,
0.14104977250099182,
0.0005825866828672588,
0.06708807498216629,
-0.13456135988235474,
-0.12789861857891083,
0.22127671539783478,
0.23576094210147858,
0.3672407865524292,
-0.34928175806999207,
0.059283122420310974,
-0.3861084282398224,
-0.5656563639640808,
-0.039427224546670914,
0.24355480074882507,
0.08148375153541565,
0.48811769485473633,
-0.012143848463892937,
0.2732701897621155,
-0.04349736124277115,
0.10364601016044617,
-0.11906494200229645,
0.1360725462436676,
-0.33049097657203674,
0.31560465693473816,
-0.15540321171283722,
0.13268113136291504,
-0.07472522556781769,
-0.021715106442570686,
0.04524112492799759,
0.2188037633895874,
-0.07020627707242966,
-0.6342966556549072,
0.5540285110473633,
-0.39861130714416504,
-0.14250239729881287,
-0.033295877277851105,
0.08590000867843628,
0.18460409343242645,
-0.40139010548591614,
-0.4471183717250824,
-0.2915225923061371,
0.19289742410182953,
-0.12449382990598679,
0.09224239736795425,
0.37854865193367004,
0.1644778698682785,
-0.20057375729084015,
0.01430538110435009,
0.007199873682111502,
0.058402080088853836,
-0.4635796546936035,
0.12677456438541412,
-0.2670952379703522
] |
https://github.com/huggingface/datasets/issues/5259
|
datasets 2.7 introduces sharding error
|
Sorry for the inconvenience, I opened a PR in your repo to fix this: https://huggingface.co/datasets/sil-ai/bloom-speech/discussions/2
Basically we've always considered lists in `gen_kwargs` to be a shard list that we can split and pass into different workers to generate the dataset (e.g. if you pass `num_proc=` in `load_dataset()` to generate the dataset in parallel), but it was documented only recently
|
### Describe the bug
dataset fails to load with runtime error
`RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.`
### Steps to reproduce the bug
With datasets[audio] 2.7 loaded, and logged into hugging face,
`data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)`
creates the error.
Full stack trace:
```---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
[<ipython-input-7-8cb9ca0f79f0>](https://localhost:8080/#) in <module>
----> 1 data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)
5 frames
[/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, num_proc, **config_kwargs)
1745 try_from_hf_gcs=try_from_hf_gcs,
1746 use_auth_token=use_auth_token,
-> 1747 num_proc=num_proc,
1748 )
1749
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, output_dir, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)
824 verify_infos=verify_infos,
825 **prepare_split_kwargs,
--> 826 **download_and_prepare_kwargs,
827 )
828 # Sync info
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs)
1554 def _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs):
1555 super()._download_and_prepare(
-> 1556 dl_manager, verify_infos, check_duplicate_keys=verify_infos, **prepare_splits_kwargs
1557 )
1558
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
911 try:
912 # Prepare split will record examples associated to the split
--> 913 self._prepare_split(split_generator, **prepare_split_kwargs)
914 except OSError as e:
915 raise OSError(
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split(self, split_generator, check_duplicate_keys, file_format, num_proc, max_shard_size)
1362 fpath = path_join(self._output_dir, fname)
1363
-> 1364 num_input_shards = _number_of_shards_in_gen_kwargs(split_generator.gen_kwargs)
1365 if num_input_shards <= 1 and num_proc is not None:
1366 logger.warning(
[/usr/local/lib/python3.7/dist-packages/datasets/utils/sharding.py](https://localhost:8080/#) in _number_of_shards_in_gen_kwargs(gen_kwargs)
16 + "\n".join(f"\t- key {key} has length {length}" for key, length in lists_lengths.items())
17 + "\nTo fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, "
---> 18 + "and use tuples otherwise. In the end there should only be one single list, or several lists with the same length."
19 )
20 )
RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.```
### Expected behavior
the dataset loads in datasets version 2.6.1 and should load with datasets 2.7
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
| 59 |
datasets 2.7 introduces sharding error
|
[
-0.4542286694049835,
-0.04700472578406334,
-0.10457874089479446,
0.07286141067743301,
-0.04029931128025055,
-0.06902579218149185,
0.23992054164409637,
0.36145639419555664,
-0.19953379034996033,
0.07589299231767654,
0.05583185330033302,
-0.054489944130182266,
-0.12331058084964752,
0.14963193237781525,
-0.20104320347309113,
-0.31952014565467834,
0.16380828619003296,
0.06663302332162857,
-0.14520488679409027,
-0.0014327818062156439,
-0.14000414311885834,
0.27310678362846375,
-0.30209362506866455,
-0.03991328179836273,
-0.258849561214447,
-0.1495051234960556,
0.06543640792369843,
0.16109132766723633,
-0.3347875773906708,
-0.19894126057624817,
0.060418009757995605,
0.1844680905342102,
0.04959765821695328,
0.11375834047794342,
-0.00010778601426864043,
-0.02535729669034481,
0.3472866117954254,
0.16013875603675842,
0.03718995675444603,
0.1652769148349762,
-0.513410210609436,
-0.0766323134303093,
-0.15397422015666962,
0.008757863193750381,
0.14480504393577576,
0.09394974261522293,
-0.03868287429213524,
0.03653881698846817,
0.18946731090545654,
0.12083456665277481,
0.29640528559684753,
0.12761445343494415,
-0.11369539052248001,
-0.31096622347831726,
0.3882373571395874,
-0.11387073248624802,
-0.06221872568130493,
-0.18741664290428162,
-0.051006659865379333,
0.22294259071350098,
-0.31583890318870544,
0.3080117702484131,
-0.01878213696181774,
-0.04255392402410507,
-0.18862700462341309,
-0.039671964943408966,
-0.002859510015696287,
0.0950917974114418,
0.20930257439613342,
0.011531433090567589,
0.11436749994754791,
-0.08966725319623947,
-0.1503121703863144,
-0.019833484664559364,
-0.1274569183588028,
-0.34142225980758667,
0.3299018442630768,
-0.10859895497560501,
-0.024856913834810257,
0.2176884412765503,
-0.21189863979816437,
-0.24708957970142365,
-0.12432016432285309,
-0.051716722548007965,
-0.14663900434970856,
0.05426693707704544,
-0.1809879094362259,
0.12006428092718124,
0.09886310249567032,
-0.2944240868091583,
0.021522115916013718,
-0.006773038301616907,
-0.4718483090400696,
-0.3051775097846985,
-0.24611464142799377,
-0.1885083168745041,
0.12843093276023865,
0.23556260764598846,
0.36181527376174927,
0.08686608076095581,
-0.05131945386528969,
0.2881445288658142,
0.0823635384440422,
0.10636910051107407,
-0.04890352115035057,
0.05990936979651451,
0.35136309266090393,
0.048717230558395386,
0.42925944924354553,
0.1062510535120964,
0.1581565886735916,
0.10396846383810043,
0.35901185870170593,
-0.6369895935058594,
-0.1886247992515564,
-0.08628244698047638,
0.059312604367733,
-0.3177103102207184,
-0.1428164541721344,
0.31578800082206726,
0.31108537316322327,
-0.0633009597659111,
0.03486460819840431,
0.3024718463420868,
0.22340519726276398,
-0.46257483959198,
-0.26245149970054626,
0.2278340607881546,
-0.11439927667379379,
-0.5582284927368164,
-0.3227365016937256,
0.0861428827047348,
-0.3531196713447571,
-0.020402884110808372,
0.0780404806137085,
0.1399485468864441,
0.167814701795578,
0.05025244131684303,
0.05411073565483093,
0.15123127400875092,
-0.5000727772712708,
-0.027648773044347763,
0.2548312246799469,
0.3810528814792633,
-0.11946500837802887,
0.02521742321550846,
-0.10449513792991638,
-0.24901185929775238,
-0.03587409108877182,
0.07205818593502045,
-0.10599607229232788,
-0.2035273313522339,
-0.1730937957763672,
0.2028590589761734,
-0.14165928959846497,
-0.0204771775752306,
-0.34816092252731323,
0.10832169651985168,
0.2559382915496826,
-0.32174018025398254,
-0.25938141345977783,
-0.1496780514717102,
-0.20708024501800537,
-0.23630979657173157,
0.12544021010398865,
0.3401273488998413,
-0.17647850513458252,
0.1503882259130478,
-0.22648954391479492,
-0.1557408720254898,
0.450013667345047,
0.34108924865722656,
0.03145947679877281,
-0.1919507384300232,
-0.2863498330116272,
0.587561309337616,
0.4228472411632538,
0.2914835512638092,
-0.4238572418689728,
0.28300565481185913,
0.03034575656056404,
-0.027950508520007133,
0.03753859922289848,
0.03139852359890938,
0.12932299077510834,
0.07077118754386902,
-0.1426185965538025,
-0.07403754442930222,
0.034813061356544495,
-0.11192270368337631,
-0.22341981530189514,
-0.04378595948219299,
-0.05932484567165375,
0.0029028241988271475,
0.2912435233592987,
0.3088988661766052,
0.551632821559906,
-0.26400741934776306,
-0.06839495152235031,
-0.10960858315229416,
0.11566436290740967,
0.07841454446315765,
0.28589341044425964,
-0.12563864886760712,
0.032538652420043945,
-0.24710503220558167,
-0.2529006004333496,
0.07265033572912216,
0.19397246837615967,
0.021408313885331154,
-0.3143957555294037,
-0.0883508175611496,
-0.11413581669330597,
-0.12485049664974213,
-0.10119803994894028,
-0.08056024461984634,
0.171932190656662,
-0.06445726752281189,
-0.3415389955043793,
-0.2282097339630127,
-0.04244481027126312,
0.19220353662967682,
-0.5205806493759155,
0.10156567394733429,
-0.2822748124599457,
0.15962980687618256,
-0.19070778787136078,
-0.4018096625804901,
0.0013663278659805655,
-0.05881083384156227,
0.09081670641899109,
-0.07059317827224731,
-0.05384073406457901,
0.31100961565971375,
0.06357632577419281,
-0.07507473975419998,
0.16861048340797424,
0.2511965334415436,
-0.08448120206594467,
-0.06330553442239761,
0.0008967972244136035,
-0.20394305884838104,
-0.17084699869155884,
0.0566854290664196,
-0.03176967799663544,
0.3331575095653534,
-0.17282116413116455,
-0.15976837277412415,
-0.08339560031890869,
0.06335077434778214,
0.6142124533653259,
0.018255919218063354,
0.1402600109577179,
-0.407010942697525,
0.05201931670308113,
-0.10433011502027512,
-0.525567352771759,
-0.04797951132059097,
-0.2691640555858612,
-0.07434860616922379,
0.3742443919181824,
0.12396865338087082,
0.19953753054141998,
0.2285522073507309,
0.1595296412706375,
0.005376514513045549,
0.408077597618103,
0.7456969618797302,
0.47918540239334106,
0.24985504150390625,
0.10041515529155731,
0.2232944816350937,
-0.14239344000816345,
-0.2730632722377777,
0.1154266968369484,
-0.10232103615999222,
-0.13554726541042328,
0.280179888010025,
-0.06406503170728683,
0.05116956681013107,
-0.37350723147392273,
-0.15074749290943146,
0.06795583665370941,
0.2894691824913025,
-0.5119712948799133,
-0.20496071875095367,
-0.4690200388431549,
-0.1757488250732422,
-0.07074229419231415,
0.58055180311203,
-0.11276698857545853,
-0.3840987980365753,
0.06478787213563919,
0.3650101125240326,
-0.3483872711658478,
0.13221076130867004,
0.06083182990550995,
0.4178043603897095,
0.12879560887813568,
0.28733620047569275,
-0.10669571161270142,
-0.029863568022847176,
0.026302097365260124,
0.10325691103935242,
0.1449185162782669,
0.059856295585632324,
0.15400129556655884,
-0.43278780579566956,
0.001589563675224781,
-0.6243661046028137,
-0.5124782919883728,
0.13795188069343567,
-0.12139629572629929,
0.48902633786201477,
0.3263414204120636,
0.07836359739303589,
-0.2825470268726349,
-0.13967843353748322,
0.19297704100608826,
-0.055016737431287766,
-0.2926267981529236,
0.331644743680954,
-0.09904219955205917,
-0.3087732493877411,
-0.2226131558418274,
-0.1880026012659073,
0.1716942936182022,
-0.258827805519104,
0.123472198843956,
-0.06616675108671188,
0.2341340333223343,
0.22243881225585938,
0.12697429955005646,
-0.23209573328495026,
-0.48520082235336304,
0.22372445464134216,
-0.24519594013690948,
-0.5217613577842712,
0.34505608677864075,
-0.32925674319267273,
-0.3691885471343994,
0.07517438381910324,
0.16396412253379822,
0.20763714611530304,
0.3351267874240875,
-0.17111776769161224,
0.07459430396556854,
-0.11586323380470276,
0.5503787398338318,
0.2535606026649475,
0.023671230301260948,
0.2655746638774872,
0.2101454734802246,
-0.20581869781017303,
-0.305573046207428,
0.019922077655792236,
0.18198662996292114,
-0.19364921748638153,
0.24116438627243042,
-0.09492991119623184,
0.3589300215244293,
0.22695361077785492,
0.7096003890037537,
0.0953182727098465,
-0.27049171924591064,
0.4009586274623871,
-0.07228951901197433,
0.2810625731945038,
-0.13020355999469757,
-0.1350293755531311,
-0.027082623913884163,
0.051328904926776886,
0.10664238780736923,
0.1748964488506317,
-0.024322059005498886,
-0.02654845081269741,
0.02457607537508011,
-0.2627692222595215,
-0.13636527955532074,
-0.2862963080406189,
-0.05621112138032913,
0.1435372680425644,
0.17207875847816467,
0.2807735204696655,
0.014247910119593143,
0.06472937762737274,
-0.25204217433929443,
0.06603419035673141,
0.372927725315094,
0.0678185373544693,
-0.06563383340835571,
-0.17120349407196045,
-0.0812830701470375,
-0.09977136552333832,
0.3789512813091278,
0.05774188041687012,
0.6068074107170105,
-0.35852575302124023,
-0.09890594333410263,
0.026484917849302292,
0.17685751616954803,
0.5144116878509521,
-0.5551300644874573,
-0.012759337201714516,
-0.12436095625162125,
-0.012555333785712719,
0.15253040194511414,
0.04313497990369797,
-0.053681619465351105,
0.41351404786109924,
-0.03285938501358032,
0.279731422662735,
-0.1587587594985962,
0.010451755486428738,
0.3752659857273102,
-0.12675608694553375,
-0.07788652181625366,
-0.1468823254108429,
-0.10272197425365448,
-0.06312836706638336,
-0.12659990787506104,
-0.12256301194429398,
-0.016335727646946907,
0.1421600580215454,
-0.22619590163230896,
0.009100200608372688,
-0.1592901051044464,
-0.047690246254205704,
0.1330813616514206,
0.36265990138053894,
0.23460373282432556,
-0.13519394397735596,
0.2043711394071579,
-0.09565737098455429,
0.2703550457954407,
0.37518730759620667,
0.22000253200531006,
0.09346288442611694,
-0.006135950330644846,
0.047392405569553375,
-0.14296407997608185,
0.15324220061302185,
0.1951030194759369,
-0.33657002449035645,
0.08532079309225082,
-0.08412209153175354,
-0.05796060711145401,
-0.08559227734804153,
0.06720452010631561,
0.2536846697330475,
0.22174395620822906,
-0.07834407687187195,
0.15429238975048065,
0.1899818331003189,
0.16645032167434692,
-0.27128520607948303,
0.15034644305706024,
0.3614519536495209,
-0.30761462450027466,
0.26871776580810547,
-0.03563462197780609,
0.8198750615119934,
0.1543668508529663,
0.027737701311707497,
0.1455787718296051,
0.16793346405029297,
0.004809925798326731,
0.09102551639080048,
0.19864307343959808,
-0.42368084192276,
-0.6217608451843262,
0.0007116202032193542,
-0.11670408397912979,
0.5263987183570862,
-0.09575708210468292,
-0.08555422723293304,
0.2221665233373642,
-0.011951318942010403,
0.2263057827949524,
-0.08256267011165619,
-0.03832300007343292,
-0.17645472288131714,
0.02498186193406582,
0.04717029631137848,
0.19061125814914703,
-0.08149217069149017,
-0.09551839530467987,
-0.22675864398479462,
0.05679015442728996,
0.061956390738487244,
-0.09149596095085144,
-0.10509347915649414,
0.062147121876478195,
0.5266746282577515,
0.2702910006046295,
0.021572275087237358,
0.10991054028272629,
0.23550741374492645,
0.08329585194587708,
0.4179512858390808,
0.07303401082754135,
-0.07518422603607178,
0.2914937138557434,
0.042544327676296234,
0.054372388869524,
0.03641950711607933,
-0.002830648561939597,
0.10429346561431885,
-0.034030038863420486,
-0.1152891218662262,
-0.28427591919898987,
0.14087560772895813,
-0.28358083963394165,
-0.3051712214946747,
-0.16785819828510284,
-0.012893825769424438,
-0.36054372787475586,
0.08652474731206894,
-0.08247053623199463,
-0.016988396644592285,
-0.2826128602027893,
0.22643619775772095,
0.10487764328718185,
-0.2039458304643631,
0.47116872668266296,
0.11132322251796722,
-0.19488130509853363,
-0.0018992715049535036,
0.5038066506385803,
-0.11549897491931915,
0.19793841242790222,
0.08521202206611633,
-0.04626813530921936,
-0.42823490500450134,
-0.31817081570625305,
0.07429672032594681,
-0.0021583898924291134,
-0.29461437463760376,
0.16197174787521362,
-0.3098925054073334,
-0.021013803780078888,
-0.0920017659664154,
0.4985275864601135,
0.12659144401550293,
0.12122458219528198,
0.1216706931591034,
-0.23593245446681976,
-0.1180310994386673,
0.24873429536819458,
-0.43829602003097534,
0.22171935439109802,
0.0019326324108988047,
0.024837544187903404,
-0.25767263770103455,
0.09858197718858719,
-0.39249518513679504,
-0.03085862286388874,
-0.026222258806228638,
0.22466455399990082,
0.1368950754404068,
0.09995049238204956,
-0.09172249585390091,
-0.18196238577365875,
0.11246331036090851,
0.1594541221857071,
-0.11551859974861145,
-0.2362031191587448,
-0.00896634440869093,
0.0909244492650032,
-0.0649474635720253,
0.02025415748357773,
0.005675491411238909,
-0.08233132213354111,
-0.27970173954963684,
0.10290463268756866,
0.16566535830497742,
0.18012064695358276,
-0.03514143452048302,
0.19881358742713928,
0.4645647406578064,
-0.10613691061735153,
0.23831218481063843,
0.13257314264774323,
-0.07060253620147705,
0.21368205547332764,
-0.265207976102829,
0.17904308438301086,
-0.26173827052116394,
-0.1252174973487854,
0.40958553552627563,
0.15745675563812256,
0.03501703962683678,
-0.08573568612337112,
0.31070613861083984,
-0.34962353110313416,
-0.1248009130358696,
0.020055774599313736,
0.5396607518196106,
0.10891444236040115,
-0.21067652106285095,
-0.41500020027160645,
0.3213562071323395,
0.2662968635559082,
-0.2527080774307251,
-0.283280611038208,
0.5321582555770874,
0.1412528157234192,
0.001500751473940909,
0.10220436006784439,
0.2784607410430908,
-0.07663014531135559,
0.0906025618314743,
0.16829167306423187,
0.19519494473934174,
-0.3241378366947174,
-0.012797477655112743,
0.2583187520503998,
-0.0914226844906807,
0.009096523746848106,
0.4702530801296234,
0.1529952734708786,
-0.04853946343064308,
0.6569116115570068,
-0.27982690930366516,
0.5664153099060059,
-0.005654236767441034,
0.14930123090744019,
-0.015152260661125183,
-0.4775388538837433,
0.3538351356983185,
0.20319370925426483,
0.1041117012500763,
-0.12436090409755707,
0.07917336374521255,
0.36436352133750916,
0.265973299741745,
-0.1162065863609314,
-0.21222884953022003,
0.10508013516664505,
-0.3931012749671936,
-0.2257097214460373,
-0.4432780146598816,
-0.1909681260585785,
-0.3103063106536865,
-0.03497309982776642,
-0.05262359231710434,
0.15276163816452026,
0.5424008965492249,
-0.03434327244758606,
0.0005720978952012956,
-0.2779330611228943,
0.14823290705680847,
-0.12217406183481216,
0.04515357315540314,
-0.23587533831596375,
0.34477248787879944,
0.08041724562644958,
-0.07261529564857483,
0.4111284911632538,
0.2357562780380249,
0.3325185775756836,
0.13755249977111816,
0.34498685598373413,
-0.2650526762008667,
0.011340389028191566,
-0.14976926147937775,
-0.194197878241539,
0.4365273416042328,
0.10441621392965317,
0.2456923872232437,
0.3236633539199829,
0.1668054312467575,
-0.13596433401107788,
0.26922154426574707,
0.22569571435451508,
0.34007957577705383,
0.03221281245350838,
0.06473404914140701,
0.006164473947137594,
-0.20443646609783173,
0.13686393201351166,
-0.12770015001296997,
-0.19093002378940582,
-0.0643487200140953,
0.5721685290336609,
-0.2834191620349884,
0.08983637392520905,
-0.16164681315422058,
0.12009889632463455,
0.1459762006998062,
0.4142906665802002,
0.10148849338293076,
-0.0032449455466121435,
-0.18830427527427673,
-0.2782139778137207,
-0.4653834402561188,
0.04174764081835747,
0.18688318133354187,
0.36916035413742065,
-0.09875595569610596,
0.21487562358379364,
-0.13755428791046143,
-0.02114536613225937,
0.032072629779577255,
-0.38177523016929626,
-0.2159171998500824,
0.1254100352525711,
-0.050368525087833405,
0.031364865601062775,
0.12680862843990326,
-0.29021671414375305,
-0.10908126831054688,
-0.128470778465271,
0.31708216667175293,
-0.17532750964164734,
0.14104977250099182,
0.0005825866828672588,
0.06708807498216629,
-0.13456135988235474,
-0.12789861857891083,
0.22127671539783478,
0.23576094210147858,
0.3672407865524292,
-0.34928175806999207,
0.059283122420310974,
-0.3861084282398224,
-0.5656563639640808,
-0.039427224546670914,
0.24355480074882507,
0.08148375153541565,
0.48811769485473633,
-0.012143848463892937,
0.2732701897621155,
-0.04349736124277115,
0.10364601016044617,
-0.11906494200229645,
0.1360725462436676,
-0.33049097657203674,
0.31560465693473816,
-0.15540321171283722,
0.13268113136291504,
-0.07472522556781769,
-0.021715106442570686,
0.04524112492799759,
0.2188037633895874,
-0.07020627707242966,
-0.6342966556549072,
0.5540285110473633,
-0.39861130714416504,
-0.14250239729881287,
-0.033295877277851105,
0.08590000867843628,
0.18460409343242645,
-0.40139010548591614,
-0.4471183717250824,
-0.2915225923061371,
0.19289742410182953,
-0.12449382990598679,
0.09224239736795425,
0.37854865193367004,
0.1644778698682785,
-0.20057375729084015,
0.01430538110435009,
0.007199873682111502,
0.058402080088853836,
-0.4635796546936035,
0.12677456438541412,
-0.2670952379703522
] |
https://github.com/huggingface/datasets/issues/5258
|
Restore order of split names in dataset_info for canonical datasets
|
The bulk edit is running...
See for example:
- A single config: https://huggingface.co/datasets/acronym_identification/discussions/2
- Multiple configs: https://huggingface.co/datasets/babi_qa/discussions/1
|
After a bulk edit of canonical datasets to create the YAML `dataset_info` metadata, the split names were accidentally sorted alphabetically. See for example:
- https://huggingface.co/datasets/bc2gm_corpus/commit/2384629484401ecf4bb77cd808816719c424e57c
Note that this order is the one appearing in the preview of the datasets.
I'm making a bulk edit to align the order of the splits appearing in the metadata info with the order appearing in the loading script.
Related to:
- #5202
| 17 |
Restore order of split names in dataset_info for canonical datasets
|
[
-0.22344465553760529,
0.1607712209224701,
-0.13147982954978943,
0.06533283740282059,
0.07257682085037231,
0.053844816982746124,
0.29796743392944336,
0.06184975802898407,
-0.18531431257724762,
0.08587566018104553,
-0.18528878688812256,
0.06932441890239716,
0.16788387298583984,
0.1434292197227478,
-0.1428406685590744,
-0.20862698554992676,
-0.13801153004169464,
0.3177259564399719,
-0.16045214235782623,
-0.12713252007961273,
-0.26214292645454407,
0.12173047661781311,
-0.306239515542984,
-0.09127970784902573,
-0.02422788180410862,
0.014361316338181496,
0.1270858645439148,
0.32983148097991943,
-0.008444050326943398,
-0.09206508100032806,
0.004438929259777069,
0.30390605330467224,
-0.10173740237951279,
0.02478783205151558,
-0.00010979639046126977,
-0.25071385502815247,
0.014570774510502815,
0.018618091940879822,
-0.23839044570922852,
0.1315091997385025,
-0.5701709389686584,
-0.09048540145158768,
-0.22689272463321686,
-0.18514655530452728,
-0.05422445759177208,
-0.13651368021965027,
0.027965355664491653,
-0.37065389752388,
0.1510508507490158,
-0.06386329233646393,
0.21713991463184357,
-0.1589404195547104,
-0.09744450449943542,
-0.194517120718956,
0.09388448297977448,
0.20966802537441254,
0.0700533390045166,
-0.15031468868255615,
-0.2893131375312805,
0.12186244130134583,
-0.03987668827176094,
0.4181728661060333,
0.1636584848165512,
0.07623309642076492,
-0.3939204216003418,
0.1318451166152954,
-0.17927922308444977,
0.09150410443544388,
0.0016871524276211858,
0.07221853733062744,
0.366163969039917,
-0.28895270824432373,
-0.26848188042640686,
-0.239756241440773,
0.042151689529418945,
-0.29505273699760437,
0.00616968609392643,
-0.036827944219112396,
0.3886377811431885,
-0.027332667261362076,
-0.020812824368476868,
0.1539575457572937,
0.15726345777511597,
-0.0906158909201622,
-0.3315744400024414,
0.4810290038585663,
0.08337290585041046,
-0.005882129538804293,
-0.030844857916235924,
-0.2033761590719223,
0.3804979920387268,
0.1690671443939209,
-0.17216919362545013,
-0.2371598184108734,
0.10627777129411697,
-0.1348818689584732,
-0.008780543692409992,
0.10694081336259842,
0.1254730373620987,
0.1727493703365326,
-0.36340612173080444,
0.2605590522289276,
0.011249422095716,
-0.2869914174079895,
0.2243925929069519,
0.0442814864218235,
0.31867823004722595,
0.4936421513557434,
0.2545684278011322,
0.25199830532073975,
-0.301902174949646,
0.024251464754343033,
0.04909328371286392,
-0.2195574790239334,
-0.2787518799304962,
0.4048781991004944,
-0.05334508791565895,
-0.14356479048728943,
-0.31705889105796814,
-0.038898829370737076,
0.15881210565567017,
-0.04322022199630737,
0.04775901883840561,
0.16823351383209229,
-0.053975846618413925,
0.20835858583450317,
-0.14380313456058502,
-0.09421534091234207,
-0.09371230751276016,
-0.1553775519132614,
-0.21180422604084015,
-0.33486270904541016,
0.03681951388716698,
0.061416178941726685,
0.060583774000406265,
0.15068846940994263,
0.3615726828575134,
0.06431448459625244,
0.338273823261261,
0.09029512107372284,
0.022699974477291107,
0.05314812809228897,
0.1913440227508545,
0.2994542121887207,
0.27123814821243286,
0.2349778264760971,
0.01604156568646431,
-0.011586383916437626,
-0.2478129118680954,
-0.021988915279507637,
-0.3895795941352844,
-0.2661331593990326,
-0.18650922179222107,
0.25007495284080505,
-0.040784094482660294,
0.1951799988746643,
0.14520908892154694,
-0.005035542882978916,
0.2752532660961151,
-0.252625435590744,
-0.13502123951911926,
-0.27037233114242554,
-0.1427803635597229,
0.07175911217927933,
0.08922520279884338,
0.017544465139508247,
-0.338737428188324,
-0.050084833055734634,
-0.4319526255130768,
0.08095917105674744,
0.2096737176179886,
0.2354065179824829,
-0.021747471764683723,
-0.1000092476606369,
-0.25891903042793274,
0.3469965159893036,
0.37451502680778503,
-0.21962891519069672,
-0.33354851603507996,
-0.03151065111160278,
-0.10900320112705231,
-0.06363987922668457,
0.16326788067817688,
-0.13452556729316711,
0.512623131275177,
-0.04926683381199837,
-0.023047279566526413,
0.24244552850723267,
0.04784393310546875,
0.13892510533332825,
-0.07619038969278336,
-0.17546415328979492,
-0.2084050178527832,
-0.048893995583057404,
-0.065672867000103,
0.06406455487012863,
0.25207018852233887,
0.22400835156440735,
0.4757451117038727,
-0.08954901248216629,
-0.11024276912212372,
0.28194695711135864,
0.1407751739025116,
0.036656010895967484,
0.42815208435058594,
-0.10951775312423706,
-0.2487974315881729,
-0.03020549938082695,
0.184068962931633,
-0.08539119362831116,
-0.3708590865135193,
-0.43103551864624023,
-0.2963029146194458,
-0.19840578734874725,
-0.1067100316286087,
0.22330676019191742,
0.2080267369747162,
0.20866842567920685,
-0.11955512315034866,
-0.20524807274341583,
-0.0006522649200633168,
0.16421937942504883,
-0.11411453783512115,
0.13930554687976837,
-0.02819058857858181,
0.2610238492488861,
0.02925143390893936,
0.07427416741847992,
0.028288470581173897,
0.3378804922103882,
0.1715041995048523,
0.10842828452587128,
0.16769088804721832,
0.4686606228351593,
0.31693440675735474,
-0.17063173651695251,
0.14304593205451965,
-0.20887184143066406,
-0.0227399542927742,
-0.14671479165554047,
0.0576140433549881,
0.16994276642799377,
-0.316410094499588,
0.14529554545879364,
-0.44110003113746643,
0.5974512100219727,
-0.14317113161087036,
0.10014990717172623,
0.1528109759092331,
0.061779171228408813,
0.3904270529747009,
-0.11886700987815857,
0.19371014833450317,
-0.7923867702484131,
-0.04450180381536484,
0.0713338851928711,
0.015230164863169193,
0.05244944989681244,
-0.08886758238077164,
0.43413326144218445,
0.7654005885124207,
0.08972179889678955,
0.01625867374241352,
-0.2943699359893799,
-0.15692631900310516,
0.0015302278334274888,
0.29213666915893555,
0.32509949803352356,
0.18535172939300537,
0.2714589238166809,
0.2459374964237213,
-0.1828036904335022,
-0.09767689555883408,
-0.2115631252527237,
-0.011897395364940166,
-0.08630961179733276,
-0.029057376086711884,
0.31238895654678345,
0.17416952550411224,
-0.2846923768520355,
-0.3375878930091858,
0.12575800716876984,
0.20056727528572083,
-0.16774946451187134,
-0.3244263231754303,
-0.08684246987104416,
-0.3285332918167114,
-0.4199134111404419,
-0.22325816750526428,
-0.027355292811989784,
-0.29780980944633484,
-0.47646304965019226,
0.22776809334754944,
-0.014283674769103527,
-0.26550087332725525,
0.6321552991867065,
0.19174349308013916,
-0.11696173995733261,
0.19750958681106567,
-0.04862081632018089,
0.11048614233732224,
-0.1351543813943863,
0.08454697579145432,
0.1464088261127472,
-0.17665502429008484,
0.32827961444854736,
0.2804648280143738,
-0.32258477807044983,
-0.22122950851917267,
-0.24237197637557983,
-0.4553985595703125,
0.04459735006093979,
0.07524117827415466,
-0.11563817411661148,
0.25364431738853455,
-0.05704765394330025,
0.13872969150543213,
-0.4666588008403778,
-0.06641638278961182,
0.28922393918037415,
-0.09854007512331009,
-0.04770004004240036,
-0.09223857522010803,
0.15448911488056183,
-0.32225221395492554,
-0.2664598822593689,
-0.008476678282022476,
-0.2831312417984009,
0.17119371891021729,
0.13069725036621094,
0.16130658984184265,
0.016380460932850838,
-0.464586079120636,
-0.44341355562210083,
0.045739997178316116,
0.02528252825140953,
-0.3786454200744629,
0.012876584194600582,
0.26002663373947144,
-0.27866795659065247,
0.010439813137054443,
-0.3232100009918213,
-0.1510399729013443,
-0.20699436962604523,
0.22362157702445984,
0.0689401924610138,
-0.02847329154610634,
-0.240485280752182,
0.3169368803501129,
0.2511732876300812,
0.18471494317054749,
0.2090558260679245,
0.07240556925535202,
-0.05673850327730179,
-0.11218980699777603,
-0.05671221762895584,
0.13365808129310608,
-0.03682979941368103,
0.12715357542037964,
-0.19333411753177643,
0.09128149598836899,
0.12260492146015167,
0.4622909128665924,
0.0397365428507328,
0.07880349457263947,
-0.3608127534389496,
-0.1041063591837883,
0.22755637764930725,
-0.11577221751213074,
0.004134777933359146,
0.030196823179721832,
0.19607552886009216,
0.19923579692840576,
0.4981638491153717,
0.04359420761466026,
-0.05479494109749794,
0.3547108471393585,
0.34090325236320496,
-0.21690066158771515,
-0.351401150226593,
-0.22322945296764374,
-0.1875154674053192,
0.038662392646074295,
0.18050511181354523,
0.13892678916454315,
-0.1796635240316391,
-0.13376814126968384,
0.1643368899822235,
0.22419659793376923,
-0.24758605659008026,
-0.1796867549419403,
-0.4429563581943512,
0.1745861917734146,
0.19969062507152557,
0.17359153926372528,
0.16611745953559875,
-0.01580425724387169,
0.107664093375206,
-0.2580379843711853,
-0.037056539207696915,
0.06980574876070023,
0.5527011752128601,
-0.23502510786056519,
0.10722851753234863,
0.11354417353868484,
0.1897665113210678,
0.35576796531677246,
-0.08066228777170181,
-0.3286133110523224,
0.18997298181056976,
0.2673010528087616,
0.4360167682170868,
-0.3163449764251709,
0.11341740190982819,
0.5120486617088318,
0.0720914751291275,
-0.024887701496481895,
0.005679577123373747,
0.012048507109284401,
0.04490470513701439,
0.13797086477279663,
-0.01770995371043682,
0.1289127767086029,
0.21261240541934967,
-0.3291015326976776,
0.1188649833202362,
-0.14334115386009216,
-0.327136367559433,
0.030875971540808678,
0.12177349627017975,
0.4924132823944092,
0.1632092148065567,
0.184577077627182,
0.25674140453338623,
0.21732193231582642,
0.20070353150367737,
0.3933259844779968,
-0.3627431094646454,
-0.529100239276886,
-0.07063452899456024,
-0.21364377439022064,
0.19064642488956451,
0.32096126675605774,
-0.12044169753789902,
-0.03435785695910454,
0.018989143893122673,
0.24593546986579895,
-0.08780277520418167,
0.40612882375717163,
0.10513826459646225,
-0.10094314068555832,
-0.4808726906776428,
-0.4434719681739807,
0.15213219821453094,
0.23005498945713043,
-0.1420583873987198,
0.3198309540748596,
0.22938333451747894,
-0.549980640411377,
-0.01908518746495247,
0.05683045834302902,
0.5044289231300354,
-0.14527589082717896,
0.1178380697965622,
-0.059129148721694946,
-0.06485854089260101,
0.5740277767181396,
0.006930921226739883,
0.2926500737667084,
-0.5341815948486328,
-0.3765442967414856,
0.06039513647556305,
0.06464806199073792,
-0.004596935585141182,
0.05195920914411545,
-0.09581046551465988,
0.1323612481355667,
0.002435901667922735,
0.4012283682823181,
-0.10194648802280426,
0.14961229264736176,
-0.02834097295999527,
-0.230889230966568,
-0.009633544832468033,
0.057564008980989456,
0.08870577067136765,
-0.27137795090675354,
-0.056463465094566345,
0.03645098954439163,
0.23118361830711365,
0.056779369711875916,
-0.09600503742694855,
0.08126579970121384,
-0.2829534411430359,
0.288773775100708,
-0.2617233991622925,
-0.41868436336517334,
-0.2534917891025543,
-0.04708043485879898,
0.5183250308036804,
0.31209036707878113,
0.034418340772390366,
0.30035901069641113,
0.3694731891155243,
0.18910041451454163,
0.2082984745502472,
0.1118103414773941,
0.08357464522123337,
0.2682526707649231,
0.14973653852939606,
-0.4564144015312195,
0.17654703557491302,
-0.10113990306854248,
-0.26377370953559875,
-0.08537095785140991,
-0.2170797437429428,
-0.3709004521369934,
0.4074603319168091,
0.261089950799942,
0.35776349902153015,
-0.3192712962627411,
0.119241863489151,
-0.2749590277671814,
-0.05091661214828491,
0.13380488753318787,
-0.17649902403354645,
-0.22176313400268555,
-0.17024798691272736,
0.4354136288166046,
0.2934332489967346,
-0.01818101853132248,
0.029666842892766,
-0.09089230000972748,
-0.2911549508571625,
-0.22424261271953583,
-0.03034353256225586,
-0.18260954320430756,
-0.19807429611682892,
0.21358604729175568,
-0.11473800987005234,
-0.4787065386772156,
0.2660059630870819,
-0.027209488674998283,
-0.12360039353370667,
0.14763036370277405,
-0.2978358864784241,
-0.07743777334690094,
-0.014673382043838501,
0.18871064484119415,
-0.23310410976409912,
0.2907101809978485,
0.12494882196187973,
0.2994304299354553,
-0.4959586560726166,
-0.1025535985827446,
-0.3377173840999603,
0.11758122593164444,
0.26501351594924927,
0.1987914741039276,
-0.22984834015369415,
-0.03316516801714897,
0.12052825093269348,
0.13735578954219818,
0.24117246270179749,
-0.11459586024284363,
0.1263435184955597,
-0.27348411083221436,
-0.11866947263479233,
0.037212420254945755,
-0.25075605511665344,
-0.03458100184798241,
0.007272469345480204,
-0.2738945782184601,
-0.0899478867650032,
-0.26805010437965393,
0.26917564868927,
0.14891014993190765,
0.2931683659553528,
0.3293848931789398,
0.17499372363090515,
-0.014421295374631882,
0.09825850278139114,
0.19419042766094208,
0.015086792409420013,
-0.007220557890832424,
-0.23085057735443115,
0.599484920501709,
-0.5664893984794617,
0.17512363195419312,
0.3696101903915405,
-0.03184591978788376,
0.059889648109674454,
0.03915882110595703,
0.2206915020942688,
-0.14571121335029602,
-0.29807865619659424,
0.06774395704269409,
0.7393156886100769,
0.3853834271430969,
0.0059450105763971806,
-0.459124356508255,
0.05032297968864441,
0.21886593103408813,
-0.2765026390552521,
-0.321525901556015,
0.1437646597623825,
0.05046217888593674,
0.16644679009914398,
0.25638097524642944,
0.29338908195495605,
-0.05612678825855255,
0.11220383644104004,
0.004250700585544109,
0.45229169726371765,
-0.04742976278066635,
0.45722970366477966,
0.7566207051277161,
0.1642484962940216,
0.05027119442820549,
0.08431655913591385,
0.00046088872477412224,
0.20275437831878662,
0.4660927653312683,
0.18845750391483307,
0.2766056954860687,
0.022137179970741272,
-0.24996104836463928,
0.22664883732795715,
-0.058166954666376114,
0.16235171258449554,
0.0584801509976387,
-0.039506811648607254,
0.0771011933684349,
0.2543695867061615,
0.1928718239068985,
-0.22941024601459503,
-0.09383878111839294,
-0.20376139879226685,
-0.007700249087065458,
-0.15936709940433502,
-0.2073574662208557,
-0.026391446590423584,
-0.04893884062767029,
-0.23396852612495422,
-0.06329385936260223,
-0.1967402696609497,
0.0014985939487814903,
0.3744829297065735,
-0.2712940275669098,
0.2452230304479599,
-0.4001446068286896,
0.14979121088981628,
0.03382755070924759,
0.31933948397636414,
-0.3018178641796112,
0.11349181085824966,
0.07332226634025574,
0.10468976199626923,
0.3007239103317261,
0.09468287974596024,
0.055411480367183685,
-0.14218401908874512,
0.1333714872598648,
-0.4028632938861847,
0.18844623863697052,
-0.17098888754844666,
-0.24128742516040802,
-0.01227417029440403,
-0.11135327070951462,
-0.17521455883979797,
0.3358767330646515,
0.22673563659191132,
-0.1746528446674347,
-0.035608433187007904,
0.33796426653862,
-0.09484267234802246,
0.17006072402000427,
0.006506428122520447,
0.01352645829319954,
-0.05238921567797661,
0.3262048065662384,
-0.14873020350933075,
-0.035871174186468124,
-0.4467630684375763,
0.3254418969154358,
0.008774819783866405,
0.1253841519355774,
0.11517459154129028,
0.11128785461187363,
0.04009038209915161,
0.013901853002607822,
0.12183524668216705,
-0.19860875606536865,
-0.055398762226104736,
-0.40082457661628723,
-0.32279613614082336,
0.17886073887348175,
0.09744381159543991,
-0.2632923722267151,
0.06973868608474731,
0.16618593037128448,
0.11882098019123077,
-0.3476680815219879,
-0.07493457198143005,
-0.40574225783348083,
0.16354866325855255,
-0.09260722994804382,
-0.42091861367225647,
-0.2625727951526642,
-0.10825099796056747,
-0.1919316202402115,
-0.12968075275421143,
-0.2769196033477783,
-0.15727710723876953,
0.31624722480773926,
0.12577594816684723,
0.06118682399392128,
-0.043832045048475266,
0.5121318697929382,
0.11878528445959091,
-0.33094948530197144,
0.18077526986598969,
0.3145056664943695,
-0.3280850946903229,
0.12304773181676865,
-0.06546950340270996,
-0.4049317538738251,
-0.26241981983184814,
0.4697488248348236,
0.05443919822573662,
0.12945598363876343,
-0.0028736123349517584,
0.019670620560646057,
-0.03975477069616318,
-0.09964276850223541,
0.2049575001001358,
0.42005571722984314,
-0.3692929744720459,
0.27285733819007874,
0.030141117051243782,
-0.004758552182465792,
0.0929563120007515,
0.3010424077510834,
-0.05716576799750328,
0.04679977148771286,
0.07879795879125595,
-0.5509779453277588,
0.15668770670890808,
-0.03202130272984505,
-0.2662801146507263,
-0.22113488614559174,
0.5129058361053467,
0.13444849848747253,
-0.0071077789179980755,
-0.31880781054496765,
-0.0824236273765564,
0.3567062020301819,
-0.2873990535736084,
-0.046753186732530594,
0.10751480609178543,
0.3415634334087372,
-0.0003790036716964096,
-0.12694546580314636,
0.017979983240365982,
0.48333829641342163,
-0.5956828594207764,
-0.1673993617296219,
-0.06486520171165466
] |
https://github.com/huggingface/datasets/issues/5258
|
Restore order of split names in dataset_info for canonical datasets
|
TODO: Add "dataset_info" YAML metadata to:
- [x] "chr_en" has no metadata JSON file, nor "dataset_info" YAML tag in its card
- Fixing PR: https://huggingface.co/datasets/chr_en/discussions/1
- [x] "conll2000" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [x] "crime_and_punish" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [x] "dart" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [x] "iwslt2017" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [ ] "mc4" has no metadata JSON file, nor "dataset_info" YAML tag in its card
- [ ] "the_pile" has no metadata JSON file, nor "dataset_info" YAML tag in its card
- [ ] "timit_asr" has no metadata JSON file, nor "dataset_info" YAML tag in its card
|
After a bulk edit of canonical datasets to create the YAML `dataset_info` metadata, the split names were accidentally sorted alphabetically. See for example:
- https://huggingface.co/datasets/bc2gm_corpus/commit/2384629484401ecf4bb77cd808816719c424e57c
Note that this order is the one appearing in the preview of the datasets.
I'm making a bulk edit to align the order of the splits appearing in the metadata info with the order appearing in the loading script.
Related to:
- #5202
| 141 |
Restore order of split names in dataset_info for canonical datasets
|
[
-0.22344465553760529,
0.1607712209224701,
-0.13147982954978943,
0.06533283740282059,
0.07257682085037231,
0.053844816982746124,
0.29796743392944336,
0.06184975802898407,
-0.18531431257724762,
0.08587566018104553,
-0.18528878688812256,
0.06932441890239716,
0.16788387298583984,
0.1434292197227478,
-0.1428406685590744,
-0.20862698554992676,
-0.13801153004169464,
0.3177259564399719,
-0.16045214235782623,
-0.12713252007961273,
-0.26214292645454407,
0.12173047661781311,
-0.306239515542984,
-0.09127970784902573,
-0.02422788180410862,
0.014361316338181496,
0.1270858645439148,
0.32983148097991943,
-0.008444050326943398,
-0.09206508100032806,
0.004438929259777069,
0.30390605330467224,
-0.10173740237951279,
0.02478783205151558,
-0.00010979639046126977,
-0.25071385502815247,
0.014570774510502815,
0.018618091940879822,
-0.23839044570922852,
0.1315091997385025,
-0.5701709389686584,
-0.09048540145158768,
-0.22689272463321686,
-0.18514655530452728,
-0.05422445759177208,
-0.13651368021965027,
0.027965355664491653,
-0.37065389752388,
0.1510508507490158,
-0.06386329233646393,
0.21713991463184357,
-0.1589404195547104,
-0.09744450449943542,
-0.194517120718956,
0.09388448297977448,
0.20966802537441254,
0.0700533390045166,
-0.15031468868255615,
-0.2893131375312805,
0.12186244130134583,
-0.03987668827176094,
0.4181728661060333,
0.1636584848165512,
0.07623309642076492,
-0.3939204216003418,
0.1318451166152954,
-0.17927922308444977,
0.09150410443544388,
0.0016871524276211858,
0.07221853733062744,
0.366163969039917,
-0.28895270824432373,
-0.26848188042640686,
-0.239756241440773,
0.042151689529418945,
-0.29505273699760437,
0.00616968609392643,
-0.036827944219112396,
0.3886377811431885,
-0.027332667261362076,
-0.020812824368476868,
0.1539575457572937,
0.15726345777511597,
-0.0906158909201622,
-0.3315744400024414,
0.4810290038585663,
0.08337290585041046,
-0.005882129538804293,
-0.030844857916235924,
-0.2033761590719223,
0.3804979920387268,
0.1690671443939209,
-0.17216919362545013,
-0.2371598184108734,
0.10627777129411697,
-0.1348818689584732,
-0.008780543692409992,
0.10694081336259842,
0.1254730373620987,
0.1727493703365326,
-0.36340612173080444,
0.2605590522289276,
0.011249422095716,
-0.2869914174079895,
0.2243925929069519,
0.0442814864218235,
0.31867823004722595,
0.4936421513557434,
0.2545684278011322,
0.25199830532073975,
-0.301902174949646,
0.024251464754343033,
0.04909328371286392,
-0.2195574790239334,
-0.2787518799304962,
0.4048781991004944,
-0.05334508791565895,
-0.14356479048728943,
-0.31705889105796814,
-0.038898829370737076,
0.15881210565567017,
-0.04322022199630737,
0.04775901883840561,
0.16823351383209229,
-0.053975846618413925,
0.20835858583450317,
-0.14380313456058502,
-0.09421534091234207,
-0.09371230751276016,
-0.1553775519132614,
-0.21180422604084015,
-0.33486270904541016,
0.03681951388716698,
0.061416178941726685,
0.060583774000406265,
0.15068846940994263,
0.3615726828575134,
0.06431448459625244,
0.338273823261261,
0.09029512107372284,
0.022699974477291107,
0.05314812809228897,
0.1913440227508545,
0.2994542121887207,
0.27123814821243286,
0.2349778264760971,
0.01604156568646431,
-0.011586383916437626,
-0.2478129118680954,
-0.021988915279507637,
-0.3895795941352844,
-0.2661331593990326,
-0.18650922179222107,
0.25007495284080505,
-0.040784094482660294,
0.1951799988746643,
0.14520908892154694,
-0.005035542882978916,
0.2752532660961151,
-0.252625435590744,
-0.13502123951911926,
-0.27037233114242554,
-0.1427803635597229,
0.07175911217927933,
0.08922520279884338,
0.017544465139508247,
-0.338737428188324,
-0.050084833055734634,
-0.4319526255130768,
0.08095917105674744,
0.2096737176179886,
0.2354065179824829,
-0.021747471764683723,
-0.1000092476606369,
-0.25891903042793274,
0.3469965159893036,
0.37451502680778503,
-0.21962891519069672,
-0.33354851603507996,
-0.03151065111160278,
-0.10900320112705231,
-0.06363987922668457,
0.16326788067817688,
-0.13452556729316711,
0.512623131275177,
-0.04926683381199837,
-0.023047279566526413,
0.24244552850723267,
0.04784393310546875,
0.13892510533332825,
-0.07619038969278336,
-0.17546415328979492,
-0.2084050178527832,
-0.048893995583057404,
-0.065672867000103,
0.06406455487012863,
0.25207018852233887,
0.22400835156440735,
0.4757451117038727,
-0.08954901248216629,
-0.11024276912212372,
0.28194695711135864,
0.1407751739025116,
0.036656010895967484,
0.42815208435058594,
-0.10951775312423706,
-0.2487974315881729,
-0.03020549938082695,
0.184068962931633,
-0.08539119362831116,
-0.3708590865135193,
-0.43103551864624023,
-0.2963029146194458,
-0.19840578734874725,
-0.1067100316286087,
0.22330676019191742,
0.2080267369747162,
0.20866842567920685,
-0.11955512315034866,
-0.20524807274341583,
-0.0006522649200633168,
0.16421937942504883,
-0.11411453783512115,
0.13930554687976837,
-0.02819058857858181,
0.2610238492488861,
0.02925143390893936,
0.07427416741847992,
0.028288470581173897,
0.3378804922103882,
0.1715041995048523,
0.10842828452587128,
0.16769088804721832,
0.4686606228351593,
0.31693440675735474,
-0.17063173651695251,
0.14304593205451965,
-0.20887184143066406,
-0.0227399542927742,
-0.14671479165554047,
0.0576140433549881,
0.16994276642799377,
-0.316410094499588,
0.14529554545879364,
-0.44110003113746643,
0.5974512100219727,
-0.14317113161087036,
0.10014990717172623,
0.1528109759092331,
0.061779171228408813,
0.3904270529747009,
-0.11886700987815857,
0.19371014833450317,
-0.7923867702484131,
-0.04450180381536484,
0.0713338851928711,
0.015230164863169193,
0.05244944989681244,
-0.08886758238077164,
0.43413326144218445,
0.7654005885124207,
0.08972179889678955,
0.01625867374241352,
-0.2943699359893799,
-0.15692631900310516,
0.0015302278334274888,
0.29213666915893555,
0.32509949803352356,
0.18535172939300537,
0.2714589238166809,
0.2459374964237213,
-0.1828036904335022,
-0.09767689555883408,
-0.2115631252527237,
-0.011897395364940166,
-0.08630961179733276,
-0.029057376086711884,
0.31238895654678345,
0.17416952550411224,
-0.2846923768520355,
-0.3375878930091858,
0.12575800716876984,
0.20056727528572083,
-0.16774946451187134,
-0.3244263231754303,
-0.08684246987104416,
-0.3285332918167114,
-0.4199134111404419,
-0.22325816750526428,
-0.027355292811989784,
-0.29780980944633484,
-0.47646304965019226,
0.22776809334754944,
-0.014283674769103527,
-0.26550087332725525,
0.6321552991867065,
0.19174349308013916,
-0.11696173995733261,
0.19750958681106567,
-0.04862081632018089,
0.11048614233732224,
-0.1351543813943863,
0.08454697579145432,
0.1464088261127472,
-0.17665502429008484,
0.32827961444854736,
0.2804648280143738,
-0.32258477807044983,
-0.22122950851917267,
-0.24237197637557983,
-0.4553985595703125,
0.04459735006093979,
0.07524117827415466,
-0.11563817411661148,
0.25364431738853455,
-0.05704765394330025,
0.13872969150543213,
-0.4666588008403778,
-0.06641638278961182,
0.28922393918037415,
-0.09854007512331009,
-0.04770004004240036,
-0.09223857522010803,
0.15448911488056183,
-0.32225221395492554,
-0.2664598822593689,
-0.008476678282022476,
-0.2831312417984009,
0.17119371891021729,
0.13069725036621094,
0.16130658984184265,
0.016380460932850838,
-0.464586079120636,
-0.44341355562210083,
0.045739997178316116,
0.02528252825140953,
-0.3786454200744629,
0.012876584194600582,
0.26002663373947144,
-0.27866795659065247,
0.010439813137054443,
-0.3232100009918213,
-0.1510399729013443,
-0.20699436962604523,
0.22362157702445984,
0.0689401924610138,
-0.02847329154610634,
-0.240485280752182,
0.3169368803501129,
0.2511732876300812,
0.18471494317054749,
0.2090558260679245,
0.07240556925535202,
-0.05673850327730179,
-0.11218980699777603,
-0.05671221762895584,
0.13365808129310608,
-0.03682979941368103,
0.12715357542037964,
-0.19333411753177643,
0.09128149598836899,
0.12260492146015167,
0.4622909128665924,
0.0397365428507328,
0.07880349457263947,
-0.3608127534389496,
-0.1041063591837883,
0.22755637764930725,
-0.11577221751213074,
0.004134777933359146,
0.030196823179721832,
0.19607552886009216,
0.19923579692840576,
0.4981638491153717,
0.04359420761466026,
-0.05479494109749794,
0.3547108471393585,
0.34090325236320496,
-0.21690066158771515,
-0.351401150226593,
-0.22322945296764374,
-0.1875154674053192,
0.038662392646074295,
0.18050511181354523,
0.13892678916454315,
-0.1796635240316391,
-0.13376814126968384,
0.1643368899822235,
0.22419659793376923,
-0.24758605659008026,
-0.1796867549419403,
-0.4429563581943512,
0.1745861917734146,
0.19969062507152557,
0.17359153926372528,
0.16611745953559875,
-0.01580425724387169,
0.107664093375206,
-0.2580379843711853,
-0.037056539207696915,
0.06980574876070023,
0.5527011752128601,
-0.23502510786056519,
0.10722851753234863,
0.11354417353868484,
0.1897665113210678,
0.35576796531677246,
-0.08066228777170181,
-0.3286133110523224,
0.18997298181056976,
0.2673010528087616,
0.4360167682170868,
-0.3163449764251709,
0.11341740190982819,
0.5120486617088318,
0.0720914751291275,
-0.024887701496481895,
0.005679577123373747,
0.012048507109284401,
0.04490470513701439,
0.13797086477279663,
-0.01770995371043682,
0.1289127767086029,
0.21261240541934967,
-0.3291015326976776,
0.1188649833202362,
-0.14334115386009216,
-0.327136367559433,
0.030875971540808678,
0.12177349627017975,
0.4924132823944092,
0.1632092148065567,
0.184577077627182,
0.25674140453338623,
0.21732193231582642,
0.20070353150367737,
0.3933259844779968,
-0.3627431094646454,
-0.529100239276886,
-0.07063452899456024,
-0.21364377439022064,
0.19064642488956451,
0.32096126675605774,
-0.12044169753789902,
-0.03435785695910454,
0.018989143893122673,
0.24593546986579895,
-0.08780277520418167,
0.40612882375717163,
0.10513826459646225,
-0.10094314068555832,
-0.4808726906776428,
-0.4434719681739807,
0.15213219821453094,
0.23005498945713043,
-0.1420583873987198,
0.3198309540748596,
0.22938333451747894,
-0.549980640411377,
-0.01908518746495247,
0.05683045834302902,
0.5044289231300354,
-0.14527589082717896,
0.1178380697965622,
-0.059129148721694946,
-0.06485854089260101,
0.5740277767181396,
0.006930921226739883,
0.2926500737667084,
-0.5341815948486328,
-0.3765442967414856,
0.06039513647556305,
0.06464806199073792,
-0.004596935585141182,
0.05195920914411545,
-0.09581046551465988,
0.1323612481355667,
0.002435901667922735,
0.4012283682823181,
-0.10194648802280426,
0.14961229264736176,
-0.02834097295999527,
-0.230889230966568,
-0.009633544832468033,
0.057564008980989456,
0.08870577067136765,
-0.27137795090675354,
-0.056463465094566345,
0.03645098954439163,
0.23118361830711365,
0.056779369711875916,
-0.09600503742694855,
0.08126579970121384,
-0.2829534411430359,
0.288773775100708,
-0.2617233991622925,
-0.41868436336517334,
-0.2534917891025543,
-0.04708043485879898,
0.5183250308036804,
0.31209036707878113,
0.034418340772390366,
0.30035901069641113,
0.3694731891155243,
0.18910041451454163,
0.2082984745502472,
0.1118103414773941,
0.08357464522123337,
0.2682526707649231,
0.14973653852939606,
-0.4564144015312195,
0.17654703557491302,
-0.10113990306854248,
-0.26377370953559875,
-0.08537095785140991,
-0.2170797437429428,
-0.3709004521369934,
0.4074603319168091,
0.261089950799942,
0.35776349902153015,
-0.3192712962627411,
0.119241863489151,
-0.2749590277671814,
-0.05091661214828491,
0.13380488753318787,
-0.17649902403354645,
-0.22176313400268555,
-0.17024798691272736,
0.4354136288166046,
0.2934332489967346,
-0.01818101853132248,
0.029666842892766,
-0.09089230000972748,
-0.2911549508571625,
-0.22424261271953583,
-0.03034353256225586,
-0.18260954320430756,
-0.19807429611682892,
0.21358604729175568,
-0.11473800987005234,
-0.4787065386772156,
0.2660059630870819,
-0.027209488674998283,
-0.12360039353370667,
0.14763036370277405,
-0.2978358864784241,
-0.07743777334690094,
-0.014673382043838501,
0.18871064484119415,
-0.23310410976409912,
0.2907101809978485,
0.12494882196187973,
0.2994304299354553,
-0.4959586560726166,
-0.1025535985827446,
-0.3377173840999603,
0.11758122593164444,
0.26501351594924927,
0.1987914741039276,
-0.22984834015369415,
-0.03316516801714897,
0.12052825093269348,
0.13735578954219818,
0.24117246270179749,
-0.11459586024284363,
0.1263435184955597,
-0.27348411083221436,
-0.11866947263479233,
0.037212420254945755,
-0.25075605511665344,
-0.03458100184798241,
0.007272469345480204,
-0.2738945782184601,
-0.0899478867650032,
-0.26805010437965393,
0.26917564868927,
0.14891014993190765,
0.2931683659553528,
0.3293848931789398,
0.17499372363090515,
-0.014421295374631882,
0.09825850278139114,
0.19419042766094208,
0.015086792409420013,
-0.007220557890832424,
-0.23085057735443115,
0.599484920501709,
-0.5664893984794617,
0.17512363195419312,
0.3696101903915405,
-0.03184591978788376,
0.059889648109674454,
0.03915882110595703,
0.2206915020942688,
-0.14571121335029602,
-0.29807865619659424,
0.06774395704269409,
0.7393156886100769,
0.3853834271430969,
0.0059450105763971806,
-0.459124356508255,
0.05032297968864441,
0.21886593103408813,
-0.2765026390552521,
-0.321525901556015,
0.1437646597623825,
0.05046217888593674,
0.16644679009914398,
0.25638097524642944,
0.29338908195495605,
-0.05612678825855255,
0.11220383644104004,
0.004250700585544109,
0.45229169726371765,
-0.04742976278066635,
0.45722970366477966,
0.7566207051277161,
0.1642484962940216,
0.05027119442820549,
0.08431655913591385,
0.00046088872477412224,
0.20275437831878662,
0.4660927653312683,
0.18845750391483307,
0.2766056954860687,
0.022137179970741272,
-0.24996104836463928,
0.22664883732795715,
-0.058166954666376114,
0.16235171258449554,
0.0584801509976387,
-0.039506811648607254,
0.0771011933684349,
0.2543695867061615,
0.1928718239068985,
-0.22941024601459503,
-0.09383878111839294,
-0.20376139879226685,
-0.007700249087065458,
-0.15936709940433502,
-0.2073574662208557,
-0.026391446590423584,
-0.04893884062767029,
-0.23396852612495422,
-0.06329385936260223,
-0.1967402696609497,
0.0014985939487814903,
0.3744829297065735,
-0.2712940275669098,
0.2452230304479599,
-0.4001446068286896,
0.14979121088981628,
0.03382755070924759,
0.31933948397636414,
-0.3018178641796112,
0.11349181085824966,
0.07332226634025574,
0.10468976199626923,
0.3007239103317261,
0.09468287974596024,
0.055411480367183685,
-0.14218401908874512,
0.1333714872598648,
-0.4028632938861847,
0.18844623863697052,
-0.17098888754844666,
-0.24128742516040802,
-0.01227417029440403,
-0.11135327070951462,
-0.17521455883979797,
0.3358767330646515,
0.22673563659191132,
-0.1746528446674347,
-0.035608433187007904,
0.33796426653862,
-0.09484267234802246,
0.17006072402000427,
0.006506428122520447,
0.01352645829319954,
-0.05238921567797661,
0.3262048065662384,
-0.14873020350933075,
-0.035871174186468124,
-0.4467630684375763,
0.3254418969154358,
0.008774819783866405,
0.1253841519355774,
0.11517459154129028,
0.11128785461187363,
0.04009038209915161,
0.013901853002607822,
0.12183524668216705,
-0.19860875606536865,
-0.055398762226104736,
-0.40082457661628723,
-0.32279613614082336,
0.17886073887348175,
0.09744381159543991,
-0.2632923722267151,
0.06973868608474731,
0.16618593037128448,
0.11882098019123077,
-0.3476680815219879,
-0.07493457198143005,
-0.40574225783348083,
0.16354866325855255,
-0.09260722994804382,
-0.42091861367225647,
-0.2625727951526642,
-0.10825099796056747,
-0.1919316202402115,
-0.12968075275421143,
-0.2769196033477783,
-0.15727710723876953,
0.31624722480773926,
0.12577594816684723,
0.06118682399392128,
-0.043832045048475266,
0.5121318697929382,
0.11878528445959091,
-0.33094948530197144,
0.18077526986598969,
0.3145056664943695,
-0.3280850946903229,
0.12304773181676865,
-0.06546950340270996,
-0.4049317538738251,
-0.26241981983184814,
0.4697488248348236,
0.05443919822573662,
0.12945598363876343,
-0.0028736123349517584,
0.019670620560646057,
-0.03975477069616318,
-0.09964276850223541,
0.2049575001001358,
0.42005571722984314,
-0.3692929744720459,
0.27285733819007874,
0.030141117051243782,
-0.004758552182465792,
0.0929563120007515,
0.3010424077510834,
-0.05716576799750328,
0.04679977148771286,
0.07879795879125595,
-0.5509779453277588,
0.15668770670890808,
-0.03202130272984505,
-0.2662801146507263,
-0.22113488614559174,
0.5129058361053467,
0.13444849848747253,
-0.0071077789179980755,
-0.31880781054496765,
-0.0824236273765564,
0.3567062020301819,
-0.2873990535736084,
-0.046753186732530594,
0.10751480609178543,
0.3415634334087372,
-0.0003790036716964096,
-0.12694546580314636,
0.017979983240365982,
0.48333829641342163,
-0.5956828594207764,
-0.1673993617296219,
-0.06486520171165466
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
Cool ! Let us know if you have questions or if we can help :)
I guess we'll also have to create the NYU CS Department on the Hub ?
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 30 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
> I guess we'll also have to create the NYU CS Department on the Hub ?
Yes, you're right! Let me add it to my profile first, and then we can transfer. Meanwhile, if it's recommended to loop the dataset author in here, let me know.
Also, the NYU Depth dataset seems big. Any example scripts for creating image datasets that I could refer?
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 64 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
You can check the imagenet-1k one.
PS: If the licenses allows it, it'b be nice to host the dataset as sharded TAR archives (like imagenet-1k) instead of the ZIP format they use:
- it will make streaming much faster
- ZIP compression is not well suited for images
- it will allow parallel processing of the dataset (you can pass a subset of shards to each worker)
> if it's recommended to loop the dataset author in here, let me know.
It's recommended indeed, you can send them an email once you have the dataset ready and invite them to the org on the Hub
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 105 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
> You can check the imagenet-1k one.
Where can I find the script? Are you referring to https://huggingface.co/docs/datasets/image_process ? Or is there anything more specific?
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 25 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
Update: started working on it here: https://huggingface.co/datasets/sayakpaul/nyu_depth_v2.
I am facing an issue and I have detailed it here: https://huggingface.co/datasets/sayakpaul/nyu_depth_v2/discussions/1
Edit: The issue is gone.
However, since the dataset is distributed as a single TAR archive (following the [URL used in TensorFlow Datasets](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/nyu_depth_v2/nyu_depth_v2_dataset_builder.py)) the loading is taking longer. How would suggest to shard the single TAR archive?
@lhoestq
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 57 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
A Colab Notebook demonstrating the dataset loading part:
https://colab.research.google.com/gist/sayakpaul/aa0958c8d4ad8518d52a78f28044d871/scratchpad.ipynb
@osanseviero @lhoestq
I will work on a notebook to work with the dataset including data visualization.
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 25 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
@osanseviero @lhoestq things seem to work fine with the current version of the dataset [here](https://huggingface.co/datasets/sayakpaul/nyu_depth_v2). Here's a notebook I developed to help with visualization: https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing.
@lhoestq I need your help with the following:
> However, since the dataset is distributed as a single TAR archive (following the [URL used in TensorFlow Datasets](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/nyu_depth_v2/nyu_depth_v2_dataset_builder.py)) the loading is taking longer. How would suggest to shard the single TAR archive?
@osanseviero @lhoestq question for you:
Where should we host the dataset? I think hosting it under hf.co/datasets (that is HF is the org) is fine as we have ImageNet-1k hosted similarly. We could then reach out to Diana Wofk (author of [Fast Depth](https://github.com/dwofk/fast-depth) and the owner of the repo on which TFDS NYU Depth V2 is based) for a review. WDYT?
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 127 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
> However, since the dataset is distributed as a single TAR archive (following the [URL used in TensorFlow Datasets](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/nyu_depth_v2/nyu_depth_v2_dataset_builder.py)) the loading is taking longer. How would suggest to shard the single TAR archive?
First you can separate the train data and the validation data.
Then since the dataset is quite big, you can even shard the train split and the validation split in multiple TAR archives. Something around 16 archives for train and 4 for validation would be fine for example.
Also no need to gzip the TAR archives, the images are already compressed in png or jpeg.
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 98 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
> Then since the dataset is quite big, you can even shard the train split and the validation split in multiple TAR archives. Something around 16 archives for train and 4 for validation would be fine for example.
Yes, I got you. But this process seems to be manual and should be tailored for the given dataset. Do you have any script that you used to create the ImageNet-1k shards?
> Also no need to gzip the TAR archives, the images are already compressed in png or jpeg.
I was not going to do that. Not sure what brought it up.
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 101 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
> Yes, I got you. But this process seems to be manual and should be tailored for the given dataset. Do you have any script that you used to create the ImageNet-1k shards?
I don't, but I agree it'd be nice to have a script for that !
> I was not going to do that. Not sure what brought it up.
The original dataset is gzipped for some reason
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 70 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
> Where should we host the dataset? I think hosting it under hf.co/datasets (that is HF is the org) is fine as we have ImageNet-1k hosted similarly.
Maybe you can create an org for NYU Courant (this is the institute of the lab of the main author of the dataset if I'm not mistaken), and invite the authors to join.
We don't add datasets without namespace anymore
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 67 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
Updates: https://huggingface.co/datasets/sayakpaul/nyu_depth_v2/discussions/5
The entire process (preparing multiple archives, preparing data loading script, etc.) was fun and engaging, thanks to the documentation. I believe we could work on a small blog post that would work as a reference for the future contributors following this path. What say?
Cc: @lhoestq @osanseviero
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 49 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
> I believe we could work on a small blog post that would work as a reference for the future contributors following this path. What say?
@polinaeterna already mentioned it would be nice to present this process for audio (it's exactly the same), I believe it can be useful to many people
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 52 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
Cool. Let's work on that after the NYU Depth Dataset is fully in on Hub (under the appropriate org). 🤗
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 20 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
@lhoestq need to discuss something while I am adding the dataset card to https://huggingface.co/datasets/sayakpaul/nyu_depth_v2/.
As per [Papers With Code](https://paperswithcode.com/dataset/nyuv2), NYU Depth v2 is used for many different tasks:
* Monocular depth estimation
* Depth estimation
* Semantic segmentation
* Plane instance segmentation
* ...
So, while writing the supported task part of the dataset card, should we focus on all these? IMO, we could focus on just depth estimation and semantic segmentation for now since we have supported models for these two. WDYT?
Also, I am getting:
```
remote: Your push was accepted, but with warnings:
remote: - Warning: The task_ids "depth-estimation" is not in the official list: acceptability-classification, entity-linking-classification, fact-checking, intent-classification, multi-class-classification, multi-label-classification, multi-input-text-classification, natural-language-inference, semantic-similarity-classification, sentiment-classification, topic-classification, semantic-similarity-scoring, sentiment-scoring, sentiment-analysis, hate-speech-detection, text-scoring, named-entity-recognition, part-of-speech, parsing, lemmatization, word-sense-disambiguation, coreference-resolution, extractive-qa, open-domain-qa, closed-domain-qa, news-articles-summarization, news-articles-headline-generation, dialogue-generation, dialogue-modeling, language-modeling, text-simplification, explanation-generation, abstractive-qa, open-domain-abstractive-qa, closed-domain-qa, open-book-qa, closed-book-qa, slot-filling, masked-language-modeling, keyword-spotting, speaker-identification, audio-intent-classification, audio-emotion-recognition, audio-language-identification, multi-label-image-classification, multi-class-image-classification, face-detection, vehicle-detection, instance-segmentation, semantic-segmentation, panoptic-segmentation, image-captioning, grasping, task-planning, tabular-multi-class-classification, tabular-multi-label-classification, tabular-single-column-regression, rdf-to-text, multiple-choice-qa, multiple-choice-coreference-resolution, document-retrieval, utterance-retrieval, entity-linking-retrieval, fact-checking-retrieval, univariate-time-series-forecasting, multivariate-time-series-forecasting, visual-question-answering, document-question-answering
remote: ----------------------------------------------------------
remote: Please find the documentation at:
remote: https://huggingface.co/docs/hub/model-cards#model-card-metadata
```
What should be the plan of action for this?
Cc: @osanseviero
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 198 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5255
|
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
> What should be the plan of action for this?
When you merged https://github.com/huggingface/hub-docs/pull/488, there is a JS Interfaces GitHub Actions workflow that runs https://github.com/huggingface/hub-docs/actions/workflows/js-interfaces-tests.yml. It has a step called [export-task scripts](https://github.com/huggingface/hub-docs/actions/runs/3622479064/jobs/6107238948) which exports an interface you can use in `dataset`. If you look at the logs, it prints out a map. This map can replace https://github.com/huggingface/datasets/blob/main/src/datasets/utils/resources/tasks.json (tasks.json was generated with this script), which should add depth estimation
|
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
| 68 |
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
|
[
-0.2711981236934662,
-0.28307396173477173,
-0.2534094452857971,
0.029020192101597786,
-0.10012780129909515,
-0.03116486221551895,
0.4067220091819763,
-0.05629651993513107,
-0.482385516166687,
0.44881749153137207,
-0.3099513351917267,
0.13000038266181946,
-0.07594843953847885,
0.2987196743488312,
0.03377300500869751,
-0.29837730526924133,
0.010643300600349903,
0.41849324107170105,
-0.0767533928155899,
-0.34049808979034424,
-0.1950727254152298,
-0.1474960744380951,
-0.10539186000823975,
-0.4144634008407593,
-0.2366909235715866,
0.049590304493904114,
-0.1952628791332245,
0.06468548625707626,
-0.49986526370048523,
-0.6028939485549927,
0.4894227683544159,
0.2004668265581131,
0.2702438235282898,
0.17143389582633972,
-0.00011005313717760146,
0.039173610508441925,
0.0042293984442949295,
-0.25175154209136963,
-0.18302799761295319,
0.3216448128223419,
-0.3979243338108063,
-0.39829176664352417,
0.17576584219932556,
-0.37650376558303833,
-0.2650010585784912,
-0.07891499996185303,
-0.013287609443068504,
-0.3896750807762146,
0.32169094681739807,
0.3311113715171814,
0.21176254749298096,
0.20244765281677246,
-0.18340371549129486,
-0.21804314851760864,
0.21590790152549744,
-0.29270994663238525,
-0.12808209657669067,
-0.20614086091518402,
0.04164764657616615,
0.39333948493003845,
-0.13285376131534576,
0.12770754098892212,
0.1607876718044281,
-0.09556697309017181,
0.3422025144100189,
0.10086139291524887,
0.4760880470275879,
-0.3941309452056885,
-0.04260346293449402,
0.34098806977272034,
0.2840064764022827,
-0.03668969124555588,
-0.2291712909936905,
0.13927830755710602,
-0.138788640499115,
-0.3630582094192505,
-0.34690630435943604,
0.18497100472450256,
-0.20949172973632812,
-0.25532546639442444,
-0.06882297247648239,
-0.232262521982193,
-0.40196284651756287,
0.14596179127693176,
-0.06379196792840958,
0.6067904829978943,
-0.015945611521601677,
-0.04732218012213707,
0.027084780856966972,
0.12007179111242294,
0.11647924035787582,
-0.1919092833995819,
-0.10241737216711044,
0.12576977908611298,
-0.011540195904672146,
-0.2557932734489441,
0.26481011509895325,
-0.037580814212560654,
0.1341274082660675,
0.1040099635720253,
0.20721295475959778,
0.0530172623693943,
-0.18272341787815094,
-0.20733973383903503,
0.08938821405172348,
-0.012420586310327053,
0.277179092168808,
-0.06394024938344955,
-0.012694625183939934,
0.08122239261865616,
0.3068041205406189,
0.02438361570239067,
0.032354049384593964,
0.13139495253562927,
-0.3172973692417145,
-0.0006533784326165915,
-0.004214656073600054,
-0.241935595870018,
0.07512685656547546,
0.05319785326719284,
-0.10691525042057037,
-0.0220909733325243,
-0.06097551807761192,
0.18275126814842224,
0.23735184967517853,
-0.1432948112487793,
-0.17392997443675995,
0.35012438893318176,
0.21550539135932922,
-0.12427975982427597,
-0.26687416434288025,
-0.06727256625890732,
-0.1126808151602745,
-0.08887318521738052,
-0.054192639887332916,
-0.016595924273133278,
0.3040618300437927,
-0.3566773235797882,
0.2294023633003235,
0.2617923319339752,
-0.1314358413219452,
-0.005189424380660057,
0.41114914417266846,
0.05320996418595314,
0.07560436427593231,
-0.38945266604423523,
-0.1108914166688919,
0.004564589820802212,
-0.053505606949329376,
-0.12105727195739746,
0.1708093285560608,
0.12571904063224792,
-0.4676605463027954,
0.1474328339099884,
-0.11841409653425217,
0.2525634169578552,
0.2203756719827652,
0.3117961585521698,
-0.03165232762694359,
-0.22392116487026215,
-0.09896513819694519,
-0.028098804876208305,
-0.3803984522819519,
-0.20509469509124756,
0.5180803537368774,
0.12371044605970383,
-0.08178241550922394,
-0.10405565053224564,
-0.5016933083534241,
-0.13417060673236847,
0.36620673537254333,
-0.0748770460486412,
-0.059671927243471146,
0.21790514886379242,
-0.17249876260757446,
0.27063050866127014,
0.33028727769851685,
-0.06533506512641907,
-0.294765442609787,
-0.04021591320633888,
0.012517480179667473,
-0.29726773500442505,
0.16797739267349243,
0.3382887840270996,
0.34023454785346985,
-0.3097996115684509,
0.18099547922611237,
0.07215779274702072,
-0.24232755601406097,
-0.1842188835144043,
-0.2189604938030243,
-0.35433006286621094,
-0.04290317744016647,
0.1271413266658783,
0.17801573872566223,
-0.018422652035951614,
0.3083692789077759,
0.05132491514086723,
0.18319840729236603,
-0.029937392100691795,
0.19229286909103394,
0.10635774582624435,
0.5579900741577148,
-0.22824089229106903,
-0.0343070887029171,
-0.3021910488605499,
0.07310936599969864,
-0.08533310890197754,
-0.5501729249954224,
0.45841532945632935,
0.10649765282869339,
-0.14078418910503387,
-0.017965467646718025,
-0.003078448586165905,
-0.30230116844177246,
-0.315271258354187,
0.3432082533836365,
0.2794313132762909,
0.08511487394571304,
0.04816451668739319,
0.04499213770031929,
-0.53666752576828,
0.1532331109046936,
-0.07368005812168121,
-0.058212656527757645,
0.5376068353652954,
-0.06786295026540756,
-0.05324113741517067,
-0.08342636376619339,
0.41272082924842834,
-0.07031828910112381,
-0.1879517138004303,
-0.09195749461650848,
-0.011831438168883324,
-0.167810320854187,
-0.29032954573631287,
0.46094244718551636,
0.15090104937553406,
0.06433436274528503,
-0.4646226167678833,
0.42697250843048096,
0.0330510213971138,
0.03808494284749031,
-0.1784629374742508,
0.14467525482177734,
0.30687710642814636,
0.023662831634283066,
0.013390680775046349,
-0.3202230930328369,
0.07077457755804062,
0.37381821870803833,
0.001341855968348682,
-0.07599252462387085,
-0.3704835772514343,
-0.01338815875351429,
0.1330326348543167,
0.021817730739712715,
-0.246941477060318,
0.21874281764030457,
-0.14435625076293945,
0.0013231406919658184,
-0.08535843342542648,
0.14099109172821045,
0.057541344314813614,
-0.19398342072963715,
0.04268135875463486,
0.4220260679721832,
-0.06109542027115822,
0.2417333722114563,
0.44115665555000305,
0.0028321577701717615,
-0.009903986938297749,
0.012222548015415668,
-0.09115365892648697,
0.12554241716861725,
0.3325938284397125,
-0.05550389736890793,
0.15470966696739197,
0.06141792982816696,
-0.0771099254488945,
-0.1705295443534851,
0.096253402531147,
-0.2575351595878601,
0.07491369545459747,
0.15497136116027832,
-0.085691437125206,
-0.00294489786028862,
-0.33889663219451904,
0.375,
-0.15669848024845123,
-0.14118793606758118,
-0.28754913806915283,
0.18150407075881958,
-0.3523814380168915,
-0.13520732522010803,
0.42018526792526245,
-0.12075788527727127,
0.3700708746910095,
0.22011521458625793,
0.07009193301200867,
0.07467521727085114,
-0.15233361721038818,
-0.0337924025952816,
0.17629475891590118,
-0.026124147698283195,
0.03551787510514259,
0.5759801268577576,
0.0714246928691864,
0.23855890333652496,
-0.08196204900741577,
-0.3520742654800415,
0.06630822271108627,
0.1275492161512375,
0.2658725678920746,
0.21461863815784454,
-0.07871679216623306,
0.24790512025356293,
-0.1044778972864151,
0.10228987783193588,
0.1888183206319809,
-0.10874738544225693,
-0.07578954100608826,
-0.2197246104478836,
-0.0852317065000534,
-0.014570441097021103,
-0.07786381989717484,
-0.2299307882785797,
-0.2422550916671753,
0.03453347831964493,
0.25317564606666565,
0.008982944302260876,
-0.27869588136672974,
0.14414002001285553,
0.1062450185418129,
-0.1689774990081787,
0.044846538454294205,
0.0005963838775642216,
0.03863327577710152,
-0.030725322663784027,
-0.20852510631084442,
-0.1873881220817566,
-0.20144879817962646,
-0.5334749221801758,
0.22591325640678406,
0.18230433762073517,
-0.4173831343650818,
-0.04780615493655205,
0.013352064415812492,
0.39079785346984863,
0.18959549069404602,
0.014723824337124825,
0.4464194178581238,
0.2150019407272339,
-0.021239664405584335,
-0.2587428092956543,
0.023547176271677017,
0.30553025007247925,
0.25450944900512695,
0.15918609499931335,
0.04164312779903412,
0.470598429441452,
-0.0133883161470294,
0.16897806525230408,
0.5564323663711548,
-0.4904753863811493,
0.39207541942596436,
-0.10794219374656677,
0.3213214874267578,
-0.2174035757780075,
-0.09078174084424973,
-0.057489193975925446,
0.29054903984069824,
-0.1303965300321579,
0.3629702627658844,
-0.004967192653566599,
-0.42975565791130066,
-0.1101212427020073,
-0.1141437217593193,
0.029859179630875587,
-0.18152651190757751,
-0.21303728222846985,
-0.11943184584379196,
0.17878012359142303,
-0.05511932075023651,
-0.025102073326706886,
-0.1545606255531311,
-0.24012543261051178,
-0.24004299938678741,
-0.20749308168888092,
0.057187873870134354,
-0.12284726649522781,
0.24505677819252014,
-0.03571407496929169,
-0.5358192920684814,
0.10905469208955765,
0.2675406336784363,
0.007043335121124983,
-0.24048957228660583,
0.33544155955314636,
0.0022643241100013256,
0.16694891452789307,
-0.2982577681541443,
-0.675735354423523,
0.16588030755519867,
0.1452832967042923,
0.1369169056415558,
-0.07674697041511536,
0.08909054100513458,
-0.45701077580451965,
0.4834670126438141,
0.1339658945798874,
0.4668138921260834,
-0.29470083117485046,
0.2560788691043854,
0.5701805949211121,
0.11441794782876968,
-0.05401618778705597,
0.2829759120941162,
0.03528972342610359,
-0.17943823337554932,
0.04789024218916893,
-0.07103759795427322,
-0.22425036132335663,
0.1920633465051651,
0.5425296425819397,
-0.10702132433652878,
0.04549095779657364,
0.10487593710422516,
0.07897132635116577,
0.11729201674461365,
0.0663437768816948,
0.25152304768562317,
0.193054661154747,
-0.09251470118761063,
-0.0026836907491087914,
0.4896586239337921,
0.3341197967529297,
-0.11711817979812622,
0.06425773352384567,
-0.14787641167640686,
-0.04498450830578804,
0.3255729079246521,
0.23478704690933228,
0.1927824169397354,
0.07077078521251678,
-0.12354748696088791,
0.31788286566734314,
-0.22754137217998505,
0.24537411332130432,
0.1945374608039856,
0.07888618111610413,
-0.10567653924226761,
-0.2041771411895752,
0.3980463743209839,
-0.5561320185661316,
-0.06890666484832764,
0.3935220539569855,
0.33012285828590393,
-0.41952481865882874,
0.6761193871498108,
0.39500099420547485,
0.8935400247573853,
0.3808600902557373,
0.15130318701267242,
0.1259130984544754,
0.032901786267757416,
-0.07022636383771896,
-0.022265249863266945,
-0.18380174040794373,
-0.11514688283205032,
0.058179136365652084,
-0.024506431072950363,
-0.037550799548625946,
0.011797158978879452,
-0.010192499496042728,
-0.12340313196182251,
-0.0871894508600235,
0.22062674164772034,
-0.15940958261489868,
-0.012872286140918732,
-0.11867665499448776,
0.5821102261543274,
-0.05180801451206207,
0.22758051753044128,
0.21855638921260834,
0.0009777286322787404,
-0.05279642716050148,
-0.11522622406482697,
-0.27348822355270386,
-0.13855299353599548,
0.11307137459516525,
-0.21283520758152008,
-0.1202273741364479,
-0.23280616104602814,
0.37700334191322327,
-0.526282787322998,
-0.1859103888273239,
-0.0580718107521534,
0.26457858085632324,
0.01913732849061489,
-0.00309819751419127,
-0.1410762071609497,
0.010160829871892929,
-0.02181379310786724,
-0.324595183134079,
-0.04007866606116295,
0.203562393784523,
-0.013485288247466087,
-0.2045363485813141,
-0.4665813744068146,
0.13302206993103027,
0.06437765061855316,
-0.49320951104164124,
-0.08657895773649216,
0.03201039135456085,
0.06216420605778694,
-0.16541992127895355,
0.11807785928249359,
0.11113785952329636,
-0.10171755403280258,
-0.07507539540529251,
0.19475165009498596,
0.26130005717277527,
-0.2086668759584427,
0.18926173448562622,
0.2192540019750595,
-0.045263707637786865,
-0.0839219018816948,
0.13076724112033844,
0.21998797357082367,
0.3690849244594574,
0.13053381443023682,
-0.3512170612812042,
-0.2068408876657486,
-0.280909925699234,
0.13813818991184235,
-0.047303181141614914,
0.1949414312839508,
-0.09768757969141006,
-0.024233559146523476,
-0.33054324984550476,
-0.21396763622760773,
-0.04785299301147461,
0.32420408725738525,
-0.011435736902058125,
-0.20192430913448334,
0.066530741751194,
-0.35415661334991455,
0.23539727926254272,
-0.10260622948408127,
0.5928198099136353,
-0.24317577481269836,
-0.04811711981892586,
-0.14591431617736816,
0.20184911787509918,
-0.39935117959976196,
-0.10841558128595352,
-0.013953755609691143,
0.03750808537006378,
-0.2474445253610611,
-0.12099520862102509,
0.25363877415657043,
0.040535058826208115,
0.14573565125465393,
0.029339134693145752,
-0.3296516537666321,
-0.21669873595237732,
0.06522028893232346,
0.06003933027386665,
0.027365047484636307,
-0.20531471073627472,
0.06819415092468262,
-0.13670499622821808,
-0.4248424768447876,
-0.18992432951927185,
0.011760707944631577,
-0.10699369758367538,
0.16247326135635376,
0.2423412948846817,
0.8215832114219666,
-0.07404547929763794,
-0.032198626548051834,
0.2659299969673157,
0.17801862955093384,
0.2045930176973343,
-0.2104821503162384,
0.25531095266342163,
-0.08091381937265396,
-0.28469616174697876,
0.32477903366088867,
0.2991364002227783,
0.05490560084581375,
-0.31686753034591675,
0.19928446412086487,
0.10233244299888611,
0.045498140156269073,
0.18911895155906677,
0.33138853311538696,
-0.26329052448272705,
-0.18571017682552338,
0.20443743467330933,
-0.014148061163723469,
0.24176271259784698,
-0.35303959250450134,
0.06875724345445633,
0.08328954130411148,
0.13009601831436157,
0.3989926278591156,
0.1804170310497284,
-0.06675398349761963,
-0.0680563896894455,
0.04863356053829193,
0.05380380526185036,
-0.08030268549919128,
-0.1542770117521286,
0.20174840092658997,
0.33076211810112,
0.1389518827199936,
0.09191981703042984,
-0.12245296686887741,
-0.02850150130689144,
0.36143866181373596,
0.6325963735580444,
-0.1159045398235321,
0.6028659343719482,
-0.09076870232820511,
-0.2961548864841461,
0.2498335987329483,
0.03978482633829117,
0.08708037436008453,
0.3218313157558441,
0.005589036270976067,
0.21139934659004211,
0.24422472715377808,
0.21664616465568542,
-0.07247073948383331,
-0.0894758403301239,
-0.5694752931594849,
0.11354569345712662,
-0.2891530692577362,
-0.016965705901384354,
-0.37134161591529846,
-0.1431354433298111,
0.09738344699144363,
-0.15222498774528503,
0.18177302181720734,
-0.1447833925485611,
-0.25164106488227844,
-0.06889339536428452,
-0.2127641886472702,
0.6133100986480713,
0.26314371824264526,
0.33075767755508423,
0.09374082833528519,
-0.07977604866027832,
0.2516627013683319,
0.5394435524940491,
-0.03871800750494003,
0.0398963987827301,
0.3009604215621948,
0.16295531392097473,
0.020110618323087692,
-0.05714281648397446,
0.12694013118743896,
0.25479716062545776,
-0.29468095302581787,
-0.22105178236961365,
-0.04301762208342552,
-0.060954973101615906,
0.3558931052684784,
0.28276050090789795,
0.16902916133403778,
-0.2501247525215149,
-0.05654285103082657,
0.22492624819278717,
0.14705707132816315,
0.04743988439440727,
0.24731168150901794,
-0.12045952677726746,
-0.1963483989238739,
0.034842099994421005,
-0.2563124895095825,
-0.218596950173378,
-0.13641752302646637,
0.12790800631046295,
-0.1356576532125473,
0.007807825226336718,
0.062132056802511215,
0.09378229081630707,
-0.41521790623664856,
0.3370388448238373,
0.10989978164434433,
-0.12483451515436172,
-0.0908983126282692,
-0.46446317434310913,
-0.3597789704799652,
-0.056472424417734146,
-0.10377112030982971,
-0.34226855635643005,
0.21332025527954102,
0.15009039640426636,
0.15627709031105042,
0.2804722189903259,
0.18970200419425964,
-0.11952219903469086,
0.27636584639549255,
0.04129772260785103,
-0.5699816942214966,
-0.09611529111862183,
0.07653504610061646,
0.07708404958248138,
0.14068275690078735,
-0.236375093460083,
-0.09465520828962326,
-0.09208906441926956,
0.14024323225021362,
0.29698407649993896,
0.26258713006973267,
0.11275288462638855,
0.1563219279050827,
0.11751585453748703,
-0.180153489112854,
0.5248649716377258,
-0.340656578540802,
0.167450949549675,
0.19695664942264557,
0.015325231477618217,
-0.09914739429950714,
-0.10328682512044907,
0.023337967693805695,
0.40495264530181885,
-0.3070467710494995,
-0.3538729250431061,
0.05378199368715286,
0.11907736957073212,
0.07901469618082047,
-0.10177323967218399,
-0.17548500001430511,
0.35498225688934326,
-0.03652042895555496,
0.0083292992785573,
0.12946061789989471,
-0.14130793511867523,
-0.1300690770149231,
0.014692076481878757,
0.11106044054031372,
-0.4067463278770447,
0.4086643159389496,
-0.0008017004001885653,
0.014756978489458561,
-0.11768617480993271,
-0.03645196184515953,
-0.20918841660022736,
-0.008384098298847675,
-0.475276917219162,
0.031535614281892776,
0.38156387209892273,
0.09415791183710098,
-0.04369959235191345,
0.37710317969322205,
-0.04534177854657173,
-0.2210962176322937,
0.015251929871737957,
-0.05116929113864899,
-0.10106611251831055,
-0.13483810424804688,
-0.18425798416137695,
-0.30968162417411804
] |
https://github.com/huggingface/datasets/issues/5251
|
Docs are not generated after latest release
|
After a discussion with @mishig25:
- He said that this action should be triggered if we call our release branch according to the regex `v*-release`, as transformers does
- I said that our procedure is different: our release branch is *temporary* and it is deleted just after the release PR is merged to main
- Indeed the release tag is not yet created when we make the release PR (not event when this is merged to main), but when we make the Release itself.
I was thinking that maybe we could change the triggering event: use `release` instead of `push`.
What do you think, @huggingface/datasets?
|
After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25
| 105 |
Docs are not generated after latest release
|
[
0.03393100947141647,
-0.06101907044649124,
-0.1524324268102646,
-0.10055718570947647,
0.12098567187786102,
-0.07378916442394257,
0.1017778292298317,
0.3896290957927704,
-0.028164800256490707,
0.23121964931488037,
0.19257545471191406,
0.1979232132434845,
-0.025985687971115112,
-0.20219485461711884,
-0.004101732280105352,
0.2129191905260086,
0.1293845921754837,
0.3121691048145294,
-0.014432243071496487,
-0.24645380675792694,
-0.17971529066562653,
0.06747175008058548,
-0.06085674464702606,
0.0730050578713417,
-0.39443081617355347,
0.01440924871712923,
0.16862791776657104,
0.1377917230129242,
-0.5052226185798645,
-0.21959318220615387,
0.11130335181951523,
0.09492874890565872,
0.05067449435591698,
0.050402820110321045,
-0.00010376008140156046,
-0.06158203259110451,
0.2683996856212616,
0.0441000834107399,
-0.10329563170671463,
0.030218055471777916,
0.12413763254880905,
-0.18264268338680267,
-0.11940313875675201,
-0.12606514990329742,
-0.2724616229534149,
-0.2110985368490219,
-0.048397213220596313,
-0.11257126182317734,
0.09000169485807419,
0.4250655472278595,
0.34414103627204895,
0.10278616845607758,
0.2589883804321289,
-0.15580040216445923,
0.25293558835983276,
-0.08697064220905304,
-0.18861448764801025,
0.051675353199243546,
0.38472312688827515,
-0.22971364855766296,
0.11613577604293823,
0.10803381353616714,
-0.08398523926734924,
-0.2014206200838089,
-0.010921850800514221,
0.11817951500415802,
0.550307035446167,
-0.2809738218784332,
0.40674155950546265,
-0.06599477678537369,
0.573246419429779,
0.03984065726399422,
-0.14926661550998688,
0.2143777757883072,
0.03726625815033913,
0.003091593971475959,
0.26202207803726196,
0.007930200546979904,
0.12290948629379272,
0.0017819287022575736,
0.28994128108024597,
-0.38399338722229004,
-0.19996894896030426,
0.12286094576120377,
0.1019086241722107,
0.042494915425777435,
-0.10245011001825333,
-0.27495622634887695,
0.07173031568527222,
-0.01714407093822956,
0.13498009741306305,
0.05805838480591774,
-0.18228428065776825,
0.15911516547203064,
0.45063042640686035,
0.0060088299214839935,
0.2198328673839569,
-0.18587526679039001,
0.0898352637887001,
-0.11175578832626343,
-0.27800920605659485,
-0.06425898522138596,
0.008329191245138645,
-0.3267791271209717,
-0.17362631857395172,
-0.07640708237886429,
0.19297118484973907,
0.35140955448150635,
0.21547280251979828,
0.4454004168510437,
-0.08837632089853287,
-0.02170720137655735,
-0.22710809111595154,
-0.08432064950466156,
-0.11965864896774292,
-0.12177164852619171,
0.32310426235198975,
-0.14599688351154327,
0.33512264490127563,
0.20218896865844727,
-0.005574534181505442,
0.07269290089607239,
-0.45589572191238403,
-0.05159614607691765,
0.15443894267082214,
0.20758406817913055,
0.37181761860847473,
0.1011044979095459,
-0.40051892399787903,
0.04417775198817253,
-0.18860766291618347,
-0.13751894235610962,
-0.2599145770072937,
0.23253682255744934,
0.05984862148761749,
-0.01170413289219141,
0.17685969173908234,
0.19352704286575317,
-0.3058221936225891,
-0.5388985872268677,
-0.08660241216421127,
0.20624300837516785,
0.2202923595905304,
0.1920660138130188,
0.030264222994446754,
0.13719451427459717,
-0.1740194708108902,
-0.14171381294727325,
0.2548348009586334,
0.2887503504753113,
-0.1569063812494278,
-0.3059394657611847,
-0.36283057928085327,
0.27618205547332764,
0.40917330980300903,
0.16295011341571808,
0.2970629930496216,
-0.09436867386102676,
0.42595961689949036,
-0.01837087608873844,
0.14263658225536346,
-0.10727830976247787,
-0.1417602151632309,
-0.020829444751143456,
-0.03868662938475609,
0.2951488196849823,
0.2408549189567566,
-0.18011446297168732,
0.001676039071753621,
0.09575935453176498,
-0.09306671470403671,
-0.029250111430883408,
0.06069342792034149,
0.24332678318023682,
-0.17087435722351074,
-0.1591140627861023,
0.11083053797483444,
-0.37649449706077576,
-0.34086111187934875,
-0.36129385232925415,
0.05603576824069023,
0.12626884877681732,
0.2197594940662384,
-0.3518219590187073,
0.3398335576057434,
0.0602034255862236,
-0.16208402812480927,
-0.28084075450897217,
0.17442336678504944,
0.045626234263181686,
-0.2813756763935089,
-0.1815415918827057,
-0.5659441351890564,
-0.3284447193145752,
0.7301262021064758,
0.26564183831214905,
0.10329775512218475,
0.33770260214805603,
0.26407966017723083,
-0.12313728034496307,
0.015169712714850903,
0.2915857136249542,
0.3230012059211731,
-0.09317732602357864,
0.23536540567874908,
0.20311374962329865,
-0.24578805267810822,
0.0358613096177578,
0.22876636683940887,
0.2330707609653473,
0.2721351087093353,
0.0760631188750267,
-0.09759944677352905,
-0.3533116281032562,
-0.03722349926829338,
-0.4215589165687561,
0.23379315435886383,
0.5533906817436218,
0.069362573325634,
0.3089245855808258,
0.016974031925201416,
-0.4866397976875305,
-0.5034593343734741,
0.1179949939250946,
-0.20731790363788605,
0.27506569027900696,
-0.12911629676818848,
-0.3325731158256531,
0.04250715672969818,
0.16329382359981537,
-0.16080079972743988,
0.08268146216869354,
0.03997008502483368,
-0.027387967333197594,
0.1464547961950302,
0.3094981908798218,
0.1771095246076584,
0.2673306465148926,
0.006509129889309406,
-0.19396448135375977,
0.08850934356451035,
-0.10892067104578018,
-0.07521608471870422,
0.152380108833313,
0.15963326394557953,
-0.2001633197069168,
0.14024558663368225,
0.024411242455244064,
0.12087502330541611,
0.01379720214754343,
0.010327761992812157,
-0.13223890960216522,
0.15874366462230682,
-0.315700888633728,
-0.0577046275138855,
0.05626596510410309,
0.14651243388652802,
-0.12572081387043,
0.159346342086792,
0.33607813715934753,
0.478100448846817,
-0.04264996200799942,
-0.048852354288101196,
0.07724515348672867,
0.10438989102840424,
-0.030797936022281647,
-0.2779025137424469,
-0.09139899909496307,
-0.17241840064525604,
0.20498248934745789,
0.056497443467378616,
-0.07857844978570938,
0.12819240987300873,
-0.2711392343044281,
0.3175247311592102,
-0.0480722151696682,
-0.08047603070735931,
0.47652244567871094,
0.013072310946881771,
-0.14825741946697235,
-0.43101319670677185,
0.5648577809333801,
-0.04370439052581787,
0.0014914294006302953,
-0.27358177304267883,
-0.1877395510673523,
0.043998733162879944,
0.022993678227066994,
-0.009604278020560741,
-0.06546423584222794,
-0.04930607229471207,
0.06570211797952652,
0.10742733627557755,
0.019038086757063866,
0.11798620223999023,
0.19073538482189178,
0.031163521111011505,
0.2345677614212036,
0.09518791735172272,
0.4613775908946991,
-0.2709454596042633,
0.08994272351264954,
-0.0896553248167038,
0.20399633049964905,
-0.13152478635311127,
-0.299155592918396,
0.2395833283662796,
-0.34320369362831116,
0.01849958300590515,
-0.5979425311088562,
-0.19402126967906952,
0.10856839269399643,
0.19687025249004364,
0.17128227651119232,
-0.08738642930984497,
-0.14186285436153412,
0.2530592381954193,
-0.12215631455183029,
0.04224551469087601,
-0.4413568675518036,
-0.15120984613895416,
-0.33856475353240967,
-0.14003221690654755,
-0.16076567769050598,
-0.06447009742259979,
-0.6780197620391846,
0.36905637383461,
-0.10710915923118591,
-0.09942387789487839,
0.10081928968429565,
0.06768571585416794,
0.16373313963413239,
0.10668477416038513,
-0.12256035953760147,
-0.06718114763498306,
0.17015483975410461,
-0.03360534459352493,
-0.14282412827014923,
0.10885587334632874,
-0.2642453908920288,
-0.3457188010215759,
0.0004982821410521865,
0.012284253723919392,
0.13962893187999725,
0.0678609237074852,
-0.34937411546707153,
0.3357957601547241,
-0.02512676827609539,
0.09429652243852615,
-0.051595017313957214,
0.09269537031650543,
0.4308479130268097,
0.26629340648651123,
-0.209656223654747,
-0.35872599482536316,
0.11519654095172882,
0.1224491074681282,
-0.005287377163767815,
0.1790534406900406,
-0.0404699482023716,
0.11890475451946259,
-0.11773617565631866,
0.5412526726722717,
-0.09550930559635162,
0.16424904763698578,
-0.04910849407315254,
-0.044250644743442535,
0.6068305969238281,
-0.14664806425571442,
-0.2605747878551483,
-0.04462641850113869,
0.18045192956924438,
0.09650149196386337,
0.5532419085502625,
0.15208087861537933,
0.2226753979921341,
0.11795221269130707,
0.06781893223524094,
-0.5233952403068542,
-0.06773486733436584,
-0.27680620551109314,
-0.044163864105939865,
0.4583698511123657,
0.2342926412820816,
0.18922634422779083,
-0.049021366983652115,
-0.12123869359493256,
0.21677979826927185,
0.40529942512512207,
0.33823055028915405,
0.05703771114349365,
0.1071753278374672,
0.4004298150539398,
-0.3009697198867798,
-0.16699126362800598,
0.28456827998161316,
-0.07017765194177628,
-0.15292683243751526,
-0.137904554605484,
0.11224620044231415,
0.0141120171174407,
-0.11720314621925354,
-0.163583442568779,
0.07809849828481674,
0.4444620609283447,
-0.18207208812236786,
0.31490224599838257,
-0.18780633807182312,
-0.2038482278585434,
-0.2750152349472046,
0.2740325331687927,
0.47656217217445374,
0.21716085076332092,
-0.13243432343006134,
0.014540819451212883,
-0.2941327691078186,
0.031327828764915466,
0.2831171751022339,
-0.21270926296710968,
0.006856807507574558,
-0.013243122026324272,
-0.16091346740722656,
-0.396282434463501,
-0.08339609205722809,
-0.4117148220539093,
-0.4363571107387543,
0.20403264462947845,
-0.16492074728012085,
-0.30823567509651184,
0.012356529012322426,
0.2874549627304077,
-0.07111266255378723,
0.19680793583393097,
0.2916921079158783,
0.045849867165088654,
0.7348975539207458,
-0.03058246336877346,
-0.4080493748188019,
0.06328268349170685,
0.02721678838133812,
-0.5055822134017944,
-0.09085384011268616,
0.2575189769268036,
-0.1393202394247055,
-0.10727346688508987,
-0.0534638874232769,
-0.21715132892131805,
-0.0646214634180069,
-0.14893904328346252,
0.5299158096313477,
-0.12702146172523499,
-0.08465685695409775,
-0.20492690801620483,
0.09526670724153519,
0.19361695647239685,
-0.13306695222854614,
0.3104862868785858,
0.3129883110523224,
-0.29848992824554443,
-0.34960857033729553,
0.12805794179439545,
0.4923720061779022,
-0.3014000356197357,
-0.15388867259025574,
0.11367262154817581,
-0.3015501797199249,
0.2705357074737549,
-0.1689653843641281,
0.15719762444496155,
-0.3937988579273224,
-0.027976835146546364,
0.06456179916858673,
0.0018743651453405619,
0.09614168852567673,
0.029374731704592705,
-0.23784172534942627,
-0.18436214327812195,
-0.011021068319678307,
0.20168307423591614,
0.0818549245595932,
0.0024301710072904825,
0.08073219656944275,
0.09877947717905045,
-0.09372453391551971,
0.2008965015411377,
0.04980945214629173,
0.20191073417663574,
-0.16082961857318878,
-0.0716356411576271,
-0.1726158708333969,
-0.2860313653945923,
-0.09029807150363922,
0.13684223592281342,
0.2943413257598877,
0.051565784960985184,
0.17524492740631104,
0.01821858435869217,
-0.20983007550239563,
0.04630698636174202,
0.1422918140888214,
0.23923245072364807,
-0.19684524834156036,
0.17568878829479218,
0.1792909801006317,
-0.42335590720176697,
-0.11717996746301651,
0.06941141188144684,
0.2323659509420395,
0.021216070279479027,
-0.16518929600715637,
-0.20068152248859406,
-0.01935235597193241,
-0.1303173154592514,
-0.36651289463043213,
-0.18853268027305603,
0.16509275138378143,
-0.0558382086455822,
0.2505970597267151,
0.1135946735739708,
-0.24971064925193787,
-0.1737203598022461,
0.28764986991882324,
-0.22454839944839478,
0.18705329298973083,
-0.05495148152112961,
0.16153021156787872,
-0.1465786248445511,
-0.019813990220427513,
0.26031678915023804,
0.26022669672966003,
0.2056441754102707,
0.25020018219947815,
0.126023530960083,
-0.2593320608139038,
-0.40660038590431213,
-0.05370316281914711,
-0.10783546417951584,
-0.08335250616073608,
0.3633926808834076,
0.15765850245952606,
-0.22694435715675354,
0.40342995524406433,
0.4503430724143982,
-0.2795822024345398,
-0.08999373018741608,
-0.10749645531177521,
0.06691204756498337,
0.0478864461183548,
0.1903851479291916,
-0.37056630849838257,
0.09080498665571213,
0.1473548710346222,
-0.16415776312351227,
0.14896133542060852,
-0.05081341788172722,
-0.40367820858955383,
0.06871894747018814,
0.00672281114384532,
0.04813288524746895,
0.07019202411174774,
-0.23563145101070404,
-0.07963098585605621,
-0.08989685028791428,
0.15894033014774323,
-0.17481693625450134,
-0.01581970974802971,
-0.33441564440727234,
-0.28823065757751465,
0.05281095951795578,
-0.01921295002102852,
0.07593804597854614,
0.17400306463241577,
-0.14436142146587372,
-0.26896893978118896,
-0.06704729795455933,
0.11020691692829132,
0.03978317230939865,
0.04284156113862991,
0.08122005313634872,
-0.045555684715509415,
0.1484013944864273,
0.12433192133903503,
0.37103381752967834,
-0.36507096886634827,
0.17245908081531525,
-0.19526158273220062,
0.0003721718967426568,
0.10577155649662018,
-0.05397322028875351,
-0.1264173984527588,
0.17369161546230316,
-0.0919983834028244,
0.34388968348503113,
0.33943983912467957,
-0.2152123749256134,
-0.199861541390419,
-0.002931073773652315,
0.10210500657558441,
0.20007841289043427,
-0.10008730739355087,
-0.2543641924858093,
-0.1260865181684494,
0.3093189597129822,
-0.09951005131006241,
-0.29589420557022095,
-0.3956156075000763,
-0.27844202518463135,
0.09312152117490768,
0.18806931376457214,
0.24200008809566498,
-0.7642654776573181,
0.06550983339548111,
0.25766634941101074,
-0.13936474919319153,
-0.12962606549263,
0.06110281124711037,
0.4214620888233185,
0.23822662234306335,
0.009024476632475853,
-0.21165026724338531,
-0.10524589568376541,
-0.24591343104839325,
-0.11593902111053467,
0.45249372720718384,
0.007523149251937866,
0.2931077778339386,
0.24300481379032135,
0.03070671483874321,
-0.16540324687957764,
0.17686547338962555,
-0.24467827379703522,
-0.08604282885789871,
-0.032796382904052734,
-0.03505334630608559,
-0.14875052869319916,
0.3113259971141815,
-0.023065010085701942,
-0.43179985880851746,
0.0768333375453949,
-0.22760045528411865,
-0.030479857698082924,
0.17498984932899475,
-0.07097900658845901,
0.2296491414308548,
0.08821683377027512,
0.1472039669752121,
0.4137261211872101,
-0.24708329141139984,
-0.012186503037810326,
-0.18712344765663147,
0.19673694670200348,
0.05520074814558029,
-0.14513950049877167,
0.11063255369663239,
-0.1544521301984787,
0.17813703417778015,
-0.30395153164863586,
0.1298481523990631,
-0.1748550981283188,
0.6252230405807495,
0.13008840382099152,
0.16963234543800354,
-0.021537672728300095,
-0.16241087019443512,
0.23841069638729095,
-0.1522332727909088,
0.01399988029152155,
0.5975914001464844,
0.250341534614563,
-0.013849904760718346,
-0.23076970875263214,
0.2193046361207962,
-0.29014405608177185,
-0.19926589727401733,
0.0006852851365692914,
-0.17762048542499542,
0.25623348355293274,
-0.19997821748256683,
0.19859039783477783,
-0.021458659321069717,
-0.2617739140987396,
0.23778218030929565,
-0.2808595597743988,
0.08791399002075195,
0.18472729623317719,
0.1916835606098175,
-0.02194579690694809,
-0.07897017151117325,
0.15355169773101807,
0.03250938281416893,
0.11902268975973129,
0.29424169659614563,
-0.14263975620269775,
0.2691099941730499,
-0.4398190975189209,
0.2022051364183426,
0.2053958922624588,
0.026521233841776848,
-0.06999324262142181,
-0.30226418375968933,
0.027289120480418205,
-0.10283990204334259,
-0.1674267202615738,
0.21743179857730865,
-0.27002763748168945,
-0.16000287234783173,
0.01169583760201931,
-0.26331982016563416,
0.012321439571678638,
0.13659340143203735,
-0.23498518764972687,
-0.20575298368930817,
-0.33290156722068787,
0.1092572882771492,
-0.050053056329488754,
0.22375647723674774,
0.11049408465623856,
0.1627596616744995,
0.036276061087846756,
0.41492727398872375,
0.228931725025177,
0.03292360529303551,
0.1012108102440834,
-0.353450208902359,
-0.2667236626148224,
-0.346912682056427,
-0.10825300961732864,
0.0577922947704792,
0.5023788213729858,
0.09310144931077957,
0.27894213795661926,
-0.14977101981639862,
-0.13860386610031128,
-0.243738055229187,
0.26398447155952454,
0.1827464997768402,
0.3668804466724396,
-0.1903393566608429,
0.0011355049209669232,
-0.16752110421657562,
-0.18092095851898193,
0.20061975717544556,
0.21018964052200317,
-0.18715885281562805,
-0.05514069274067879,
-0.2312483936548233,
-0.2753034234046936,
0.09937498718500137,
-0.0778108611702919,
-0.11866582930088043,
-0.4403458535671234,
0.37051084637641907,
0.2436695098876953,
-0.16932092607021332,
-0.16733163595199585,
0.07576131820678711,
0.3127543032169342,
-0.005239146761596203,
-0.2627050578594208,
0.19321011006832123,
0.09451469779014587,
0.2927229404449463,
0.07103581726551056,
0.29650822281837463,
0.07597510516643524,
-0.025637296959757805,
-0.06875849515199661,
-0.11152884364128113
] |
https://github.com/huggingface/datasets/issues/5251
|
Docs are not generated after latest release
|
He says not; but the branch has no tag yet; does the doc building require the tag? Or just the version number in `__init__.py` or setup.py?
|
After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25
| 26 |
Docs are not generated after latest release
|
[
0.03393100947141647,
-0.06101907044649124,
-0.1524324268102646,
-0.10055718570947647,
0.12098567187786102,
-0.07378916442394257,
0.1017778292298317,
0.3896290957927704,
-0.028164800256490707,
0.23121964931488037,
0.19257545471191406,
0.1979232132434845,
-0.025985687971115112,
-0.20219485461711884,
-0.004101732280105352,
0.2129191905260086,
0.1293845921754837,
0.3121691048145294,
-0.014432243071496487,
-0.24645380675792694,
-0.17971529066562653,
0.06747175008058548,
-0.06085674464702606,
0.0730050578713417,
-0.39443081617355347,
0.01440924871712923,
0.16862791776657104,
0.1377917230129242,
-0.5052226185798645,
-0.21959318220615387,
0.11130335181951523,
0.09492874890565872,
0.05067449435591698,
0.050402820110321045,
-0.00010376008140156046,
-0.06158203259110451,
0.2683996856212616,
0.0441000834107399,
-0.10329563170671463,
0.030218055471777916,
0.12413763254880905,
-0.18264268338680267,
-0.11940313875675201,
-0.12606514990329742,
-0.2724616229534149,
-0.2110985368490219,
-0.048397213220596313,
-0.11257126182317734,
0.09000169485807419,
0.4250655472278595,
0.34414103627204895,
0.10278616845607758,
0.2589883804321289,
-0.15580040216445923,
0.25293558835983276,
-0.08697064220905304,
-0.18861448764801025,
0.051675353199243546,
0.38472312688827515,
-0.22971364855766296,
0.11613577604293823,
0.10803381353616714,
-0.08398523926734924,
-0.2014206200838089,
-0.010921850800514221,
0.11817951500415802,
0.550307035446167,
-0.2809738218784332,
0.40674155950546265,
-0.06599477678537369,
0.573246419429779,
0.03984065726399422,
-0.14926661550998688,
0.2143777757883072,
0.03726625815033913,
0.003091593971475959,
0.26202207803726196,
0.007930200546979904,
0.12290948629379272,
0.0017819287022575736,
0.28994128108024597,
-0.38399338722229004,
-0.19996894896030426,
0.12286094576120377,
0.1019086241722107,
0.042494915425777435,
-0.10245011001825333,
-0.27495622634887695,
0.07173031568527222,
-0.01714407093822956,
0.13498009741306305,
0.05805838480591774,
-0.18228428065776825,
0.15911516547203064,
0.45063042640686035,
0.0060088299214839935,
0.2198328673839569,
-0.18587526679039001,
0.0898352637887001,
-0.11175578832626343,
-0.27800920605659485,
-0.06425898522138596,
0.008329191245138645,
-0.3267791271209717,
-0.17362631857395172,
-0.07640708237886429,
0.19297118484973907,
0.35140955448150635,
0.21547280251979828,
0.4454004168510437,
-0.08837632089853287,
-0.02170720137655735,
-0.22710809111595154,
-0.08432064950466156,
-0.11965864896774292,
-0.12177164852619171,
0.32310426235198975,
-0.14599688351154327,
0.33512264490127563,
0.20218896865844727,
-0.005574534181505442,
0.07269290089607239,
-0.45589572191238403,
-0.05159614607691765,
0.15443894267082214,
0.20758406817913055,
0.37181761860847473,
0.1011044979095459,
-0.40051892399787903,
0.04417775198817253,
-0.18860766291618347,
-0.13751894235610962,
-0.2599145770072937,
0.23253682255744934,
0.05984862148761749,
-0.01170413289219141,
0.17685969173908234,
0.19352704286575317,
-0.3058221936225891,
-0.5388985872268677,
-0.08660241216421127,
0.20624300837516785,
0.2202923595905304,
0.1920660138130188,
0.030264222994446754,
0.13719451427459717,
-0.1740194708108902,
-0.14171381294727325,
0.2548348009586334,
0.2887503504753113,
-0.1569063812494278,
-0.3059394657611847,
-0.36283057928085327,
0.27618205547332764,
0.40917330980300903,
0.16295011341571808,
0.2970629930496216,
-0.09436867386102676,
0.42595961689949036,
-0.01837087608873844,
0.14263658225536346,
-0.10727830976247787,
-0.1417602151632309,
-0.020829444751143456,
-0.03868662938475609,
0.2951488196849823,
0.2408549189567566,
-0.18011446297168732,
0.001676039071753621,
0.09575935453176498,
-0.09306671470403671,
-0.029250111430883408,
0.06069342792034149,
0.24332678318023682,
-0.17087435722351074,
-0.1591140627861023,
0.11083053797483444,
-0.37649449706077576,
-0.34086111187934875,
-0.36129385232925415,
0.05603576824069023,
0.12626884877681732,
0.2197594940662384,
-0.3518219590187073,
0.3398335576057434,
0.0602034255862236,
-0.16208402812480927,
-0.28084075450897217,
0.17442336678504944,
0.045626234263181686,
-0.2813756763935089,
-0.1815415918827057,
-0.5659441351890564,
-0.3284447193145752,
0.7301262021064758,
0.26564183831214905,
0.10329775512218475,
0.33770260214805603,
0.26407966017723083,
-0.12313728034496307,
0.015169712714850903,
0.2915857136249542,
0.3230012059211731,
-0.09317732602357864,
0.23536540567874908,
0.20311374962329865,
-0.24578805267810822,
0.0358613096177578,
0.22876636683940887,
0.2330707609653473,
0.2721351087093353,
0.0760631188750267,
-0.09759944677352905,
-0.3533116281032562,
-0.03722349926829338,
-0.4215589165687561,
0.23379315435886383,
0.5533906817436218,
0.069362573325634,
0.3089245855808258,
0.016974031925201416,
-0.4866397976875305,
-0.5034593343734741,
0.1179949939250946,
-0.20731790363788605,
0.27506569027900696,
-0.12911629676818848,
-0.3325731158256531,
0.04250715672969818,
0.16329382359981537,
-0.16080079972743988,
0.08268146216869354,
0.03997008502483368,
-0.027387967333197594,
0.1464547961950302,
0.3094981908798218,
0.1771095246076584,
0.2673306465148926,
0.006509129889309406,
-0.19396448135375977,
0.08850934356451035,
-0.10892067104578018,
-0.07521608471870422,
0.152380108833313,
0.15963326394557953,
-0.2001633197069168,
0.14024558663368225,
0.024411242455244064,
0.12087502330541611,
0.01379720214754343,
0.010327761992812157,
-0.13223890960216522,
0.15874366462230682,
-0.315700888633728,
-0.0577046275138855,
0.05626596510410309,
0.14651243388652802,
-0.12572081387043,
0.159346342086792,
0.33607813715934753,
0.478100448846817,
-0.04264996200799942,
-0.048852354288101196,
0.07724515348672867,
0.10438989102840424,
-0.030797936022281647,
-0.2779025137424469,
-0.09139899909496307,
-0.17241840064525604,
0.20498248934745789,
0.056497443467378616,
-0.07857844978570938,
0.12819240987300873,
-0.2711392343044281,
0.3175247311592102,
-0.0480722151696682,
-0.08047603070735931,
0.47652244567871094,
0.013072310946881771,
-0.14825741946697235,
-0.43101319670677185,
0.5648577809333801,
-0.04370439052581787,
0.0014914294006302953,
-0.27358177304267883,
-0.1877395510673523,
0.043998733162879944,
0.022993678227066994,
-0.009604278020560741,
-0.06546423584222794,
-0.04930607229471207,
0.06570211797952652,
0.10742733627557755,
0.019038086757063866,
0.11798620223999023,
0.19073538482189178,
0.031163521111011505,
0.2345677614212036,
0.09518791735172272,
0.4613775908946991,
-0.2709454596042633,
0.08994272351264954,
-0.0896553248167038,
0.20399633049964905,
-0.13152478635311127,
-0.299155592918396,
0.2395833283662796,
-0.34320369362831116,
0.01849958300590515,
-0.5979425311088562,
-0.19402126967906952,
0.10856839269399643,
0.19687025249004364,
0.17128227651119232,
-0.08738642930984497,
-0.14186285436153412,
0.2530592381954193,
-0.12215631455183029,
0.04224551469087601,
-0.4413568675518036,
-0.15120984613895416,
-0.33856475353240967,
-0.14003221690654755,
-0.16076567769050598,
-0.06447009742259979,
-0.6780197620391846,
0.36905637383461,
-0.10710915923118591,
-0.09942387789487839,
0.10081928968429565,
0.06768571585416794,
0.16373313963413239,
0.10668477416038513,
-0.12256035953760147,
-0.06718114763498306,
0.17015483975410461,
-0.03360534459352493,
-0.14282412827014923,
0.10885587334632874,
-0.2642453908920288,
-0.3457188010215759,
0.0004982821410521865,
0.012284253723919392,
0.13962893187999725,
0.0678609237074852,
-0.34937411546707153,
0.3357957601547241,
-0.02512676827609539,
0.09429652243852615,
-0.051595017313957214,
0.09269537031650543,
0.4308479130268097,
0.26629340648651123,
-0.209656223654747,
-0.35872599482536316,
0.11519654095172882,
0.1224491074681282,
-0.005287377163767815,
0.1790534406900406,
-0.0404699482023716,
0.11890475451946259,
-0.11773617565631866,
0.5412526726722717,
-0.09550930559635162,
0.16424904763698578,
-0.04910849407315254,
-0.044250644743442535,
0.6068305969238281,
-0.14664806425571442,
-0.2605747878551483,
-0.04462641850113869,
0.18045192956924438,
0.09650149196386337,
0.5532419085502625,
0.15208087861537933,
0.2226753979921341,
0.11795221269130707,
0.06781893223524094,
-0.5233952403068542,
-0.06773486733436584,
-0.27680620551109314,
-0.044163864105939865,
0.4583698511123657,
0.2342926412820816,
0.18922634422779083,
-0.049021366983652115,
-0.12123869359493256,
0.21677979826927185,
0.40529942512512207,
0.33823055028915405,
0.05703771114349365,
0.1071753278374672,
0.4004298150539398,
-0.3009697198867798,
-0.16699126362800598,
0.28456827998161316,
-0.07017765194177628,
-0.15292683243751526,
-0.137904554605484,
0.11224620044231415,
0.0141120171174407,
-0.11720314621925354,
-0.163583442568779,
0.07809849828481674,
0.4444620609283447,
-0.18207208812236786,
0.31490224599838257,
-0.18780633807182312,
-0.2038482278585434,
-0.2750152349472046,
0.2740325331687927,
0.47656217217445374,
0.21716085076332092,
-0.13243432343006134,
0.014540819451212883,
-0.2941327691078186,
0.031327828764915466,
0.2831171751022339,
-0.21270926296710968,
0.006856807507574558,
-0.013243122026324272,
-0.16091346740722656,
-0.396282434463501,
-0.08339609205722809,
-0.4117148220539093,
-0.4363571107387543,
0.20403264462947845,
-0.16492074728012085,
-0.30823567509651184,
0.012356529012322426,
0.2874549627304077,
-0.07111266255378723,
0.19680793583393097,
0.2916921079158783,
0.045849867165088654,
0.7348975539207458,
-0.03058246336877346,
-0.4080493748188019,
0.06328268349170685,
0.02721678838133812,
-0.5055822134017944,
-0.09085384011268616,
0.2575189769268036,
-0.1393202394247055,
-0.10727346688508987,
-0.0534638874232769,
-0.21715132892131805,
-0.0646214634180069,
-0.14893904328346252,
0.5299158096313477,
-0.12702146172523499,
-0.08465685695409775,
-0.20492690801620483,
0.09526670724153519,
0.19361695647239685,
-0.13306695222854614,
0.3104862868785858,
0.3129883110523224,
-0.29848992824554443,
-0.34960857033729553,
0.12805794179439545,
0.4923720061779022,
-0.3014000356197357,
-0.15388867259025574,
0.11367262154817581,
-0.3015501797199249,
0.2705357074737549,
-0.1689653843641281,
0.15719762444496155,
-0.3937988579273224,
-0.027976835146546364,
0.06456179916858673,
0.0018743651453405619,
0.09614168852567673,
0.029374731704592705,
-0.23784172534942627,
-0.18436214327812195,
-0.011021068319678307,
0.20168307423591614,
0.0818549245595932,
0.0024301710072904825,
0.08073219656944275,
0.09877947717905045,
-0.09372453391551971,
0.2008965015411377,
0.04980945214629173,
0.20191073417663574,
-0.16082961857318878,
-0.0716356411576271,
-0.1726158708333969,
-0.2860313653945923,
-0.09029807150363922,
0.13684223592281342,
0.2943413257598877,
0.051565784960985184,
0.17524492740631104,
0.01821858435869217,
-0.20983007550239563,
0.04630698636174202,
0.1422918140888214,
0.23923245072364807,
-0.19684524834156036,
0.17568878829479218,
0.1792909801006317,
-0.42335590720176697,
-0.11717996746301651,
0.06941141188144684,
0.2323659509420395,
0.021216070279479027,
-0.16518929600715637,
-0.20068152248859406,
-0.01935235597193241,
-0.1303173154592514,
-0.36651289463043213,
-0.18853268027305603,
0.16509275138378143,
-0.0558382086455822,
0.2505970597267151,
0.1135946735739708,
-0.24971064925193787,
-0.1737203598022461,
0.28764986991882324,
-0.22454839944839478,
0.18705329298973083,
-0.05495148152112961,
0.16153021156787872,
-0.1465786248445511,
-0.019813990220427513,
0.26031678915023804,
0.26022669672966003,
0.2056441754102707,
0.25020018219947815,
0.126023530960083,
-0.2593320608139038,
-0.40660038590431213,
-0.05370316281914711,
-0.10783546417951584,
-0.08335250616073608,
0.3633926808834076,
0.15765850245952606,
-0.22694435715675354,
0.40342995524406433,
0.4503430724143982,
-0.2795822024345398,
-0.08999373018741608,
-0.10749645531177521,
0.06691204756498337,
0.0478864461183548,
0.1903851479291916,
-0.37056630849838257,
0.09080498665571213,
0.1473548710346222,
-0.16415776312351227,
0.14896133542060852,
-0.05081341788172722,
-0.40367820858955383,
0.06871894747018814,
0.00672281114384532,
0.04813288524746895,
0.07019202411174774,
-0.23563145101070404,
-0.07963098585605621,
-0.08989685028791428,
0.15894033014774323,
-0.17481693625450134,
-0.01581970974802971,
-0.33441564440727234,
-0.28823065757751465,
0.05281095951795578,
-0.01921295002102852,
0.07593804597854614,
0.17400306463241577,
-0.14436142146587372,
-0.26896893978118896,
-0.06704729795455933,
0.11020691692829132,
0.03978317230939865,
0.04284156113862991,
0.08122005313634872,
-0.045555684715509415,
0.1484013944864273,
0.12433192133903503,
0.37103381752967834,
-0.36507096886634827,
0.17245908081531525,
-0.19526158273220062,
0.0003721718967426568,
0.10577155649662018,
-0.05397322028875351,
-0.1264173984527588,
0.17369161546230316,
-0.0919983834028244,
0.34388968348503113,
0.33943983912467957,
-0.2152123749256134,
-0.199861541390419,
-0.002931073773652315,
0.10210500657558441,
0.20007841289043427,
-0.10008730739355087,
-0.2543641924858093,
-0.1260865181684494,
0.3093189597129822,
-0.09951005131006241,
-0.29589420557022095,
-0.3956156075000763,
-0.27844202518463135,
0.09312152117490768,
0.18806931376457214,
0.24200008809566498,
-0.7642654776573181,
0.06550983339548111,
0.25766634941101074,
-0.13936474919319153,
-0.12962606549263,
0.06110281124711037,
0.4214620888233185,
0.23822662234306335,
0.009024476632475853,
-0.21165026724338531,
-0.10524589568376541,
-0.24591343104839325,
-0.11593902111053467,
0.45249372720718384,
0.007523149251937866,
0.2931077778339386,
0.24300481379032135,
0.03070671483874321,
-0.16540324687957764,
0.17686547338962555,
-0.24467827379703522,
-0.08604282885789871,
-0.032796382904052734,
-0.03505334630608559,
-0.14875052869319916,
0.3113259971141815,
-0.023065010085701942,
-0.43179985880851746,
0.0768333375453949,
-0.22760045528411865,
-0.030479857698082924,
0.17498984932899475,
-0.07097900658845901,
0.2296491414308548,
0.08821683377027512,
0.1472039669752121,
0.4137261211872101,
-0.24708329141139984,
-0.012186503037810326,
-0.18712344765663147,
0.19673694670200348,
0.05520074814558029,
-0.14513950049877167,
0.11063255369663239,
-0.1544521301984787,
0.17813703417778015,
-0.30395153164863586,
0.1298481523990631,
-0.1748550981283188,
0.6252230405807495,
0.13008840382099152,
0.16963234543800354,
-0.021537672728300095,
-0.16241087019443512,
0.23841069638729095,
-0.1522332727909088,
0.01399988029152155,
0.5975914001464844,
0.250341534614563,
-0.013849904760718346,
-0.23076970875263214,
0.2193046361207962,
-0.29014405608177185,
-0.19926589727401733,
0.0006852851365692914,
-0.17762048542499542,
0.25623348355293274,
-0.19997821748256683,
0.19859039783477783,
-0.021458659321069717,
-0.2617739140987396,
0.23778218030929565,
-0.2808595597743988,
0.08791399002075195,
0.18472729623317719,
0.1916835606098175,
-0.02194579690694809,
-0.07897017151117325,
0.15355169773101807,
0.03250938281416893,
0.11902268975973129,
0.29424169659614563,
-0.14263975620269775,
0.2691099941730499,
-0.4398190975189209,
0.2022051364183426,
0.2053958922624588,
0.026521233841776848,
-0.06999324262142181,
-0.30226418375968933,
0.027289120480418205,
-0.10283990204334259,
-0.1674267202615738,
0.21743179857730865,
-0.27002763748168945,
-0.16000287234783173,
0.01169583760201931,
-0.26331982016563416,
0.012321439571678638,
0.13659340143203735,
-0.23498518764972687,
-0.20575298368930817,
-0.33290156722068787,
0.1092572882771492,
-0.050053056329488754,
0.22375647723674774,
0.11049408465623856,
0.1627596616744995,
0.036276061087846756,
0.41492727398872375,
0.228931725025177,
0.03292360529303551,
0.1012108102440834,
-0.353450208902359,
-0.2667236626148224,
-0.346912682056427,
-0.10825300961732864,
0.0577922947704792,
0.5023788213729858,
0.09310144931077957,
0.27894213795661926,
-0.14977101981639862,
-0.13860386610031128,
-0.243738055229187,
0.26398447155952454,
0.1827464997768402,
0.3668804466724396,
-0.1903393566608429,
0.0011355049209669232,
-0.16752110421657562,
-0.18092095851898193,
0.20061975717544556,
0.21018964052200317,
-0.18715885281562805,
-0.05514069274067879,
-0.2312483936548233,
-0.2753034234046936,
0.09937498718500137,
-0.0778108611702919,
-0.11866582930088043,
-0.4403458535671234,
0.37051084637641907,
0.2436695098876953,
-0.16932092607021332,
-0.16733163595199585,
0.07576131820678711,
0.3127543032169342,
-0.005239146761596203,
-0.2627050578594208,
0.19321011006832123,
0.09451469779014587,
0.2927229404449463,
0.07103581726551056,
0.29650822281837463,
0.07597510516643524,
-0.025637296959757805,
-0.06875849515199661,
-0.11152884364128113
] |
https://github.com/huggingface/datasets/issues/5251
|
Docs are not generated after latest release
|
It uses `module.__version__` (i.e. the one defined in `__init__.py`) - no need to have a tag
https://github.com/huggingface/doc-builder/blob/81575cf081964c30ea5fd39450f4820db963f18e/src/doc_builder/commands/build.py#L69
|
After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25
| 17 |
Docs are not generated after latest release
|
[
0.03393100947141647,
-0.06101907044649124,
-0.1524324268102646,
-0.10055718570947647,
0.12098567187786102,
-0.07378916442394257,
0.1017778292298317,
0.3896290957927704,
-0.028164800256490707,
0.23121964931488037,
0.19257545471191406,
0.1979232132434845,
-0.025985687971115112,
-0.20219485461711884,
-0.004101732280105352,
0.2129191905260086,
0.1293845921754837,
0.3121691048145294,
-0.014432243071496487,
-0.24645380675792694,
-0.17971529066562653,
0.06747175008058548,
-0.06085674464702606,
0.0730050578713417,
-0.39443081617355347,
0.01440924871712923,
0.16862791776657104,
0.1377917230129242,
-0.5052226185798645,
-0.21959318220615387,
0.11130335181951523,
0.09492874890565872,
0.05067449435591698,
0.050402820110321045,
-0.00010376008140156046,
-0.06158203259110451,
0.2683996856212616,
0.0441000834107399,
-0.10329563170671463,
0.030218055471777916,
0.12413763254880905,
-0.18264268338680267,
-0.11940313875675201,
-0.12606514990329742,
-0.2724616229534149,
-0.2110985368490219,
-0.048397213220596313,
-0.11257126182317734,
0.09000169485807419,
0.4250655472278595,
0.34414103627204895,
0.10278616845607758,
0.2589883804321289,
-0.15580040216445923,
0.25293558835983276,
-0.08697064220905304,
-0.18861448764801025,
0.051675353199243546,
0.38472312688827515,
-0.22971364855766296,
0.11613577604293823,
0.10803381353616714,
-0.08398523926734924,
-0.2014206200838089,
-0.010921850800514221,
0.11817951500415802,
0.550307035446167,
-0.2809738218784332,
0.40674155950546265,
-0.06599477678537369,
0.573246419429779,
0.03984065726399422,
-0.14926661550998688,
0.2143777757883072,
0.03726625815033913,
0.003091593971475959,
0.26202207803726196,
0.007930200546979904,
0.12290948629379272,
0.0017819287022575736,
0.28994128108024597,
-0.38399338722229004,
-0.19996894896030426,
0.12286094576120377,
0.1019086241722107,
0.042494915425777435,
-0.10245011001825333,
-0.27495622634887695,
0.07173031568527222,
-0.01714407093822956,
0.13498009741306305,
0.05805838480591774,
-0.18228428065776825,
0.15911516547203064,
0.45063042640686035,
0.0060088299214839935,
0.2198328673839569,
-0.18587526679039001,
0.0898352637887001,
-0.11175578832626343,
-0.27800920605659485,
-0.06425898522138596,
0.008329191245138645,
-0.3267791271209717,
-0.17362631857395172,
-0.07640708237886429,
0.19297118484973907,
0.35140955448150635,
0.21547280251979828,
0.4454004168510437,
-0.08837632089853287,
-0.02170720137655735,
-0.22710809111595154,
-0.08432064950466156,
-0.11965864896774292,
-0.12177164852619171,
0.32310426235198975,
-0.14599688351154327,
0.33512264490127563,
0.20218896865844727,
-0.005574534181505442,
0.07269290089607239,
-0.45589572191238403,
-0.05159614607691765,
0.15443894267082214,
0.20758406817913055,
0.37181761860847473,
0.1011044979095459,
-0.40051892399787903,
0.04417775198817253,
-0.18860766291618347,
-0.13751894235610962,
-0.2599145770072937,
0.23253682255744934,
0.05984862148761749,
-0.01170413289219141,
0.17685969173908234,
0.19352704286575317,
-0.3058221936225891,
-0.5388985872268677,
-0.08660241216421127,
0.20624300837516785,
0.2202923595905304,
0.1920660138130188,
0.030264222994446754,
0.13719451427459717,
-0.1740194708108902,
-0.14171381294727325,
0.2548348009586334,
0.2887503504753113,
-0.1569063812494278,
-0.3059394657611847,
-0.36283057928085327,
0.27618205547332764,
0.40917330980300903,
0.16295011341571808,
0.2970629930496216,
-0.09436867386102676,
0.42595961689949036,
-0.01837087608873844,
0.14263658225536346,
-0.10727830976247787,
-0.1417602151632309,
-0.020829444751143456,
-0.03868662938475609,
0.2951488196849823,
0.2408549189567566,
-0.18011446297168732,
0.001676039071753621,
0.09575935453176498,
-0.09306671470403671,
-0.029250111430883408,
0.06069342792034149,
0.24332678318023682,
-0.17087435722351074,
-0.1591140627861023,
0.11083053797483444,
-0.37649449706077576,
-0.34086111187934875,
-0.36129385232925415,
0.05603576824069023,
0.12626884877681732,
0.2197594940662384,
-0.3518219590187073,
0.3398335576057434,
0.0602034255862236,
-0.16208402812480927,
-0.28084075450897217,
0.17442336678504944,
0.045626234263181686,
-0.2813756763935089,
-0.1815415918827057,
-0.5659441351890564,
-0.3284447193145752,
0.7301262021064758,
0.26564183831214905,
0.10329775512218475,
0.33770260214805603,
0.26407966017723083,
-0.12313728034496307,
0.015169712714850903,
0.2915857136249542,
0.3230012059211731,
-0.09317732602357864,
0.23536540567874908,
0.20311374962329865,
-0.24578805267810822,
0.0358613096177578,
0.22876636683940887,
0.2330707609653473,
0.2721351087093353,
0.0760631188750267,
-0.09759944677352905,
-0.3533116281032562,
-0.03722349926829338,
-0.4215589165687561,
0.23379315435886383,
0.5533906817436218,
0.069362573325634,
0.3089245855808258,
0.016974031925201416,
-0.4866397976875305,
-0.5034593343734741,
0.1179949939250946,
-0.20731790363788605,
0.27506569027900696,
-0.12911629676818848,
-0.3325731158256531,
0.04250715672969818,
0.16329382359981537,
-0.16080079972743988,
0.08268146216869354,
0.03997008502483368,
-0.027387967333197594,
0.1464547961950302,
0.3094981908798218,
0.1771095246076584,
0.2673306465148926,
0.006509129889309406,
-0.19396448135375977,
0.08850934356451035,
-0.10892067104578018,
-0.07521608471870422,
0.152380108833313,
0.15963326394557953,
-0.2001633197069168,
0.14024558663368225,
0.024411242455244064,
0.12087502330541611,
0.01379720214754343,
0.010327761992812157,
-0.13223890960216522,
0.15874366462230682,
-0.315700888633728,
-0.0577046275138855,
0.05626596510410309,
0.14651243388652802,
-0.12572081387043,
0.159346342086792,
0.33607813715934753,
0.478100448846817,
-0.04264996200799942,
-0.048852354288101196,
0.07724515348672867,
0.10438989102840424,
-0.030797936022281647,
-0.2779025137424469,
-0.09139899909496307,
-0.17241840064525604,
0.20498248934745789,
0.056497443467378616,
-0.07857844978570938,
0.12819240987300873,
-0.2711392343044281,
0.3175247311592102,
-0.0480722151696682,
-0.08047603070735931,
0.47652244567871094,
0.013072310946881771,
-0.14825741946697235,
-0.43101319670677185,
0.5648577809333801,
-0.04370439052581787,
0.0014914294006302953,
-0.27358177304267883,
-0.1877395510673523,
0.043998733162879944,
0.022993678227066994,
-0.009604278020560741,
-0.06546423584222794,
-0.04930607229471207,
0.06570211797952652,
0.10742733627557755,
0.019038086757063866,
0.11798620223999023,
0.19073538482189178,
0.031163521111011505,
0.2345677614212036,
0.09518791735172272,
0.4613775908946991,
-0.2709454596042633,
0.08994272351264954,
-0.0896553248167038,
0.20399633049964905,
-0.13152478635311127,
-0.299155592918396,
0.2395833283662796,
-0.34320369362831116,
0.01849958300590515,
-0.5979425311088562,
-0.19402126967906952,
0.10856839269399643,
0.19687025249004364,
0.17128227651119232,
-0.08738642930984497,
-0.14186285436153412,
0.2530592381954193,
-0.12215631455183029,
0.04224551469087601,
-0.4413568675518036,
-0.15120984613895416,
-0.33856475353240967,
-0.14003221690654755,
-0.16076567769050598,
-0.06447009742259979,
-0.6780197620391846,
0.36905637383461,
-0.10710915923118591,
-0.09942387789487839,
0.10081928968429565,
0.06768571585416794,
0.16373313963413239,
0.10668477416038513,
-0.12256035953760147,
-0.06718114763498306,
0.17015483975410461,
-0.03360534459352493,
-0.14282412827014923,
0.10885587334632874,
-0.2642453908920288,
-0.3457188010215759,
0.0004982821410521865,
0.012284253723919392,
0.13962893187999725,
0.0678609237074852,
-0.34937411546707153,
0.3357957601547241,
-0.02512676827609539,
0.09429652243852615,
-0.051595017313957214,
0.09269537031650543,
0.4308479130268097,
0.26629340648651123,
-0.209656223654747,
-0.35872599482536316,
0.11519654095172882,
0.1224491074681282,
-0.005287377163767815,
0.1790534406900406,
-0.0404699482023716,
0.11890475451946259,
-0.11773617565631866,
0.5412526726722717,
-0.09550930559635162,
0.16424904763698578,
-0.04910849407315254,
-0.044250644743442535,
0.6068305969238281,
-0.14664806425571442,
-0.2605747878551483,
-0.04462641850113869,
0.18045192956924438,
0.09650149196386337,
0.5532419085502625,
0.15208087861537933,
0.2226753979921341,
0.11795221269130707,
0.06781893223524094,
-0.5233952403068542,
-0.06773486733436584,
-0.27680620551109314,
-0.044163864105939865,
0.4583698511123657,
0.2342926412820816,
0.18922634422779083,
-0.049021366983652115,
-0.12123869359493256,
0.21677979826927185,
0.40529942512512207,
0.33823055028915405,
0.05703771114349365,
0.1071753278374672,
0.4004298150539398,
-0.3009697198867798,
-0.16699126362800598,
0.28456827998161316,
-0.07017765194177628,
-0.15292683243751526,
-0.137904554605484,
0.11224620044231415,
0.0141120171174407,
-0.11720314621925354,
-0.163583442568779,
0.07809849828481674,
0.4444620609283447,
-0.18207208812236786,
0.31490224599838257,
-0.18780633807182312,
-0.2038482278585434,
-0.2750152349472046,
0.2740325331687927,
0.47656217217445374,
0.21716085076332092,
-0.13243432343006134,
0.014540819451212883,
-0.2941327691078186,
0.031327828764915466,
0.2831171751022339,
-0.21270926296710968,
0.006856807507574558,
-0.013243122026324272,
-0.16091346740722656,
-0.396282434463501,
-0.08339609205722809,
-0.4117148220539093,
-0.4363571107387543,
0.20403264462947845,
-0.16492074728012085,
-0.30823567509651184,
0.012356529012322426,
0.2874549627304077,
-0.07111266255378723,
0.19680793583393097,
0.2916921079158783,
0.045849867165088654,
0.7348975539207458,
-0.03058246336877346,
-0.4080493748188019,
0.06328268349170685,
0.02721678838133812,
-0.5055822134017944,
-0.09085384011268616,
0.2575189769268036,
-0.1393202394247055,
-0.10727346688508987,
-0.0534638874232769,
-0.21715132892131805,
-0.0646214634180069,
-0.14893904328346252,
0.5299158096313477,
-0.12702146172523499,
-0.08465685695409775,
-0.20492690801620483,
0.09526670724153519,
0.19361695647239685,
-0.13306695222854614,
0.3104862868785858,
0.3129883110523224,
-0.29848992824554443,
-0.34960857033729553,
0.12805794179439545,
0.4923720061779022,
-0.3014000356197357,
-0.15388867259025574,
0.11367262154817581,
-0.3015501797199249,
0.2705357074737549,
-0.1689653843641281,
0.15719762444496155,
-0.3937988579273224,
-0.027976835146546364,
0.06456179916858673,
0.0018743651453405619,
0.09614168852567673,
0.029374731704592705,
-0.23784172534942627,
-0.18436214327812195,
-0.011021068319678307,
0.20168307423591614,
0.0818549245595932,
0.0024301710072904825,
0.08073219656944275,
0.09877947717905045,
-0.09372453391551971,
0.2008965015411377,
0.04980945214629173,
0.20191073417663574,
-0.16082961857318878,
-0.0716356411576271,
-0.1726158708333969,
-0.2860313653945923,
-0.09029807150363922,
0.13684223592281342,
0.2943413257598877,
0.051565784960985184,
0.17524492740631104,
0.01821858435869217,
-0.20983007550239563,
0.04630698636174202,
0.1422918140888214,
0.23923245072364807,
-0.19684524834156036,
0.17568878829479218,
0.1792909801006317,
-0.42335590720176697,
-0.11717996746301651,
0.06941141188144684,
0.2323659509420395,
0.021216070279479027,
-0.16518929600715637,
-0.20068152248859406,
-0.01935235597193241,
-0.1303173154592514,
-0.36651289463043213,
-0.18853268027305603,
0.16509275138378143,
-0.0558382086455822,
0.2505970597267151,
0.1135946735739708,
-0.24971064925193787,
-0.1737203598022461,
0.28764986991882324,
-0.22454839944839478,
0.18705329298973083,
-0.05495148152112961,
0.16153021156787872,
-0.1465786248445511,
-0.019813990220427513,
0.26031678915023804,
0.26022669672966003,
0.2056441754102707,
0.25020018219947815,
0.126023530960083,
-0.2593320608139038,
-0.40660038590431213,
-0.05370316281914711,
-0.10783546417951584,
-0.08335250616073608,
0.3633926808834076,
0.15765850245952606,
-0.22694435715675354,
0.40342995524406433,
0.4503430724143982,
-0.2795822024345398,
-0.08999373018741608,
-0.10749645531177521,
0.06691204756498337,
0.0478864461183548,
0.1903851479291916,
-0.37056630849838257,
0.09080498665571213,
0.1473548710346222,
-0.16415776312351227,
0.14896133542060852,
-0.05081341788172722,
-0.40367820858955383,
0.06871894747018814,
0.00672281114384532,
0.04813288524746895,
0.07019202411174774,
-0.23563145101070404,
-0.07963098585605621,
-0.08989685028791428,
0.15894033014774323,
-0.17481693625450134,
-0.01581970974802971,
-0.33441564440727234,
-0.28823065757751465,
0.05281095951795578,
-0.01921295002102852,
0.07593804597854614,
0.17400306463241577,
-0.14436142146587372,
-0.26896893978118896,
-0.06704729795455933,
0.11020691692829132,
0.03978317230939865,
0.04284156113862991,
0.08122005313634872,
-0.045555684715509415,
0.1484013944864273,
0.12433192133903503,
0.37103381752967834,
-0.36507096886634827,
0.17245908081531525,
-0.19526158273220062,
0.0003721718967426568,
0.10577155649662018,
-0.05397322028875351,
-0.1264173984527588,
0.17369161546230316,
-0.0919983834028244,
0.34388968348503113,
0.33943983912467957,
-0.2152123749256134,
-0.199861541390419,
-0.002931073773652315,
0.10210500657558441,
0.20007841289043427,
-0.10008730739355087,
-0.2543641924858093,
-0.1260865181684494,
0.3093189597129822,
-0.09951005131006241,
-0.29589420557022095,
-0.3956156075000763,
-0.27844202518463135,
0.09312152117490768,
0.18806931376457214,
0.24200008809566498,
-0.7642654776573181,
0.06550983339548111,
0.25766634941101074,
-0.13936474919319153,
-0.12962606549263,
0.06110281124711037,
0.4214620888233185,
0.23822662234306335,
0.009024476632475853,
-0.21165026724338531,
-0.10524589568376541,
-0.24591343104839325,
-0.11593902111053467,
0.45249372720718384,
0.007523149251937866,
0.2931077778339386,
0.24300481379032135,
0.03070671483874321,
-0.16540324687957764,
0.17686547338962555,
-0.24467827379703522,
-0.08604282885789871,
-0.032796382904052734,
-0.03505334630608559,
-0.14875052869319916,
0.3113259971141815,
-0.023065010085701942,
-0.43179985880851746,
0.0768333375453949,
-0.22760045528411865,
-0.030479857698082924,
0.17498984932899475,
-0.07097900658845901,
0.2296491414308548,
0.08821683377027512,
0.1472039669752121,
0.4137261211872101,
-0.24708329141139984,
-0.012186503037810326,
-0.18712344765663147,
0.19673694670200348,
0.05520074814558029,
-0.14513950049877167,
0.11063255369663239,
-0.1544521301984787,
0.17813703417778015,
-0.30395153164863586,
0.1298481523990631,
-0.1748550981283188,
0.6252230405807495,
0.13008840382099152,
0.16963234543800354,
-0.021537672728300095,
-0.16241087019443512,
0.23841069638729095,
-0.1522332727909088,
0.01399988029152155,
0.5975914001464844,
0.250341534614563,
-0.013849904760718346,
-0.23076970875263214,
0.2193046361207962,
-0.29014405608177185,
-0.19926589727401733,
0.0006852851365692914,
-0.17762048542499542,
0.25623348355293274,
-0.19997821748256683,
0.19859039783477783,
-0.021458659321069717,
-0.2617739140987396,
0.23778218030929565,
-0.2808595597743988,
0.08791399002075195,
0.18472729623317719,
0.1916835606098175,
-0.02194579690694809,
-0.07897017151117325,
0.15355169773101807,
0.03250938281416893,
0.11902268975973129,
0.29424169659614563,
-0.14263975620269775,
0.2691099941730499,
-0.4398190975189209,
0.2022051364183426,
0.2053958922624588,
0.026521233841776848,
-0.06999324262142181,
-0.30226418375968933,
0.027289120480418205,
-0.10283990204334259,
-0.1674267202615738,
0.21743179857730865,
-0.27002763748168945,
-0.16000287234783173,
0.01169583760201931,
-0.26331982016563416,
0.012321439571678638,
0.13659340143203735,
-0.23498518764972687,
-0.20575298368930817,
-0.33290156722068787,
0.1092572882771492,
-0.050053056329488754,
0.22375647723674774,
0.11049408465623856,
0.1627596616744995,
0.036276061087846756,
0.41492727398872375,
0.228931725025177,
0.03292360529303551,
0.1012108102440834,
-0.353450208902359,
-0.2667236626148224,
-0.346912682056427,
-0.10825300961732864,
0.0577922947704792,
0.5023788213729858,
0.09310144931077957,
0.27894213795661926,
-0.14977101981639862,
-0.13860386610031128,
-0.243738055229187,
0.26398447155952454,
0.1827464997768402,
0.3668804466724396,
-0.1903393566608429,
0.0011355049209669232,
-0.16752110421657562,
-0.18092095851898193,
0.20061975717544556,
0.21018964052200317,
-0.18715885281562805,
-0.05514069274067879,
-0.2312483936548233,
-0.2753034234046936,
0.09937498718500137,
-0.0778108611702919,
-0.11866582930088043,
-0.4403458535671234,
0.37051084637641907,
0.2436695098876953,
-0.16932092607021332,
-0.16733163595199585,
0.07576131820678711,
0.3127543032169342,
-0.005239146761596203,
-0.2627050578594208,
0.19321011006832123,
0.09451469779014587,
0.2927229404449463,
0.07103581726551056,
0.29650822281837463,
0.07597510516643524,
-0.025637296959757805,
-0.06875849515199661,
-0.11152884364128113
] |
https://github.com/huggingface/datasets/issues/5251
|
Docs are not generated after latest release
|
Thanks, @lhoestq.
@mishig25 has manually forced the generation of the docs, that are live for 2.7.0 version: https://huggingface.co/docs/datasets/v2.7.0/en/index
|
After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25
| 18 |
Docs are not generated after latest release
|
[
0.03393100947141647,
-0.06101907044649124,
-0.1524324268102646,
-0.10055718570947647,
0.12098567187786102,
-0.07378916442394257,
0.1017778292298317,
0.3896290957927704,
-0.028164800256490707,
0.23121964931488037,
0.19257545471191406,
0.1979232132434845,
-0.025985687971115112,
-0.20219485461711884,
-0.004101732280105352,
0.2129191905260086,
0.1293845921754837,
0.3121691048145294,
-0.014432243071496487,
-0.24645380675792694,
-0.17971529066562653,
0.06747175008058548,
-0.06085674464702606,
0.0730050578713417,
-0.39443081617355347,
0.01440924871712923,
0.16862791776657104,
0.1377917230129242,
-0.5052226185798645,
-0.21959318220615387,
0.11130335181951523,
0.09492874890565872,
0.05067449435591698,
0.050402820110321045,
-0.00010376008140156046,
-0.06158203259110451,
0.2683996856212616,
0.0441000834107399,
-0.10329563170671463,
0.030218055471777916,
0.12413763254880905,
-0.18264268338680267,
-0.11940313875675201,
-0.12606514990329742,
-0.2724616229534149,
-0.2110985368490219,
-0.048397213220596313,
-0.11257126182317734,
0.09000169485807419,
0.4250655472278595,
0.34414103627204895,
0.10278616845607758,
0.2589883804321289,
-0.15580040216445923,
0.25293558835983276,
-0.08697064220905304,
-0.18861448764801025,
0.051675353199243546,
0.38472312688827515,
-0.22971364855766296,
0.11613577604293823,
0.10803381353616714,
-0.08398523926734924,
-0.2014206200838089,
-0.010921850800514221,
0.11817951500415802,
0.550307035446167,
-0.2809738218784332,
0.40674155950546265,
-0.06599477678537369,
0.573246419429779,
0.03984065726399422,
-0.14926661550998688,
0.2143777757883072,
0.03726625815033913,
0.003091593971475959,
0.26202207803726196,
0.007930200546979904,
0.12290948629379272,
0.0017819287022575736,
0.28994128108024597,
-0.38399338722229004,
-0.19996894896030426,
0.12286094576120377,
0.1019086241722107,
0.042494915425777435,
-0.10245011001825333,
-0.27495622634887695,
0.07173031568527222,
-0.01714407093822956,
0.13498009741306305,
0.05805838480591774,
-0.18228428065776825,
0.15911516547203064,
0.45063042640686035,
0.0060088299214839935,
0.2198328673839569,
-0.18587526679039001,
0.0898352637887001,
-0.11175578832626343,
-0.27800920605659485,
-0.06425898522138596,
0.008329191245138645,
-0.3267791271209717,
-0.17362631857395172,
-0.07640708237886429,
0.19297118484973907,
0.35140955448150635,
0.21547280251979828,
0.4454004168510437,
-0.08837632089853287,
-0.02170720137655735,
-0.22710809111595154,
-0.08432064950466156,
-0.11965864896774292,
-0.12177164852619171,
0.32310426235198975,
-0.14599688351154327,
0.33512264490127563,
0.20218896865844727,
-0.005574534181505442,
0.07269290089607239,
-0.45589572191238403,
-0.05159614607691765,
0.15443894267082214,
0.20758406817913055,
0.37181761860847473,
0.1011044979095459,
-0.40051892399787903,
0.04417775198817253,
-0.18860766291618347,
-0.13751894235610962,
-0.2599145770072937,
0.23253682255744934,
0.05984862148761749,
-0.01170413289219141,
0.17685969173908234,
0.19352704286575317,
-0.3058221936225891,
-0.5388985872268677,
-0.08660241216421127,
0.20624300837516785,
0.2202923595905304,
0.1920660138130188,
0.030264222994446754,
0.13719451427459717,
-0.1740194708108902,
-0.14171381294727325,
0.2548348009586334,
0.2887503504753113,
-0.1569063812494278,
-0.3059394657611847,
-0.36283057928085327,
0.27618205547332764,
0.40917330980300903,
0.16295011341571808,
0.2970629930496216,
-0.09436867386102676,
0.42595961689949036,
-0.01837087608873844,
0.14263658225536346,
-0.10727830976247787,
-0.1417602151632309,
-0.020829444751143456,
-0.03868662938475609,
0.2951488196849823,
0.2408549189567566,
-0.18011446297168732,
0.001676039071753621,
0.09575935453176498,
-0.09306671470403671,
-0.029250111430883408,
0.06069342792034149,
0.24332678318023682,
-0.17087435722351074,
-0.1591140627861023,
0.11083053797483444,
-0.37649449706077576,
-0.34086111187934875,
-0.36129385232925415,
0.05603576824069023,
0.12626884877681732,
0.2197594940662384,
-0.3518219590187073,
0.3398335576057434,
0.0602034255862236,
-0.16208402812480927,
-0.28084075450897217,
0.17442336678504944,
0.045626234263181686,
-0.2813756763935089,
-0.1815415918827057,
-0.5659441351890564,
-0.3284447193145752,
0.7301262021064758,
0.26564183831214905,
0.10329775512218475,
0.33770260214805603,
0.26407966017723083,
-0.12313728034496307,
0.015169712714850903,
0.2915857136249542,
0.3230012059211731,
-0.09317732602357864,
0.23536540567874908,
0.20311374962329865,
-0.24578805267810822,
0.0358613096177578,
0.22876636683940887,
0.2330707609653473,
0.2721351087093353,
0.0760631188750267,
-0.09759944677352905,
-0.3533116281032562,
-0.03722349926829338,
-0.4215589165687561,
0.23379315435886383,
0.5533906817436218,
0.069362573325634,
0.3089245855808258,
0.016974031925201416,
-0.4866397976875305,
-0.5034593343734741,
0.1179949939250946,
-0.20731790363788605,
0.27506569027900696,
-0.12911629676818848,
-0.3325731158256531,
0.04250715672969818,
0.16329382359981537,
-0.16080079972743988,
0.08268146216869354,
0.03997008502483368,
-0.027387967333197594,
0.1464547961950302,
0.3094981908798218,
0.1771095246076584,
0.2673306465148926,
0.006509129889309406,
-0.19396448135375977,
0.08850934356451035,
-0.10892067104578018,
-0.07521608471870422,
0.152380108833313,
0.15963326394557953,
-0.2001633197069168,
0.14024558663368225,
0.024411242455244064,
0.12087502330541611,
0.01379720214754343,
0.010327761992812157,
-0.13223890960216522,
0.15874366462230682,
-0.315700888633728,
-0.0577046275138855,
0.05626596510410309,
0.14651243388652802,
-0.12572081387043,
0.159346342086792,
0.33607813715934753,
0.478100448846817,
-0.04264996200799942,
-0.048852354288101196,
0.07724515348672867,
0.10438989102840424,
-0.030797936022281647,
-0.2779025137424469,
-0.09139899909496307,
-0.17241840064525604,
0.20498248934745789,
0.056497443467378616,
-0.07857844978570938,
0.12819240987300873,
-0.2711392343044281,
0.3175247311592102,
-0.0480722151696682,
-0.08047603070735931,
0.47652244567871094,
0.013072310946881771,
-0.14825741946697235,
-0.43101319670677185,
0.5648577809333801,
-0.04370439052581787,
0.0014914294006302953,
-0.27358177304267883,
-0.1877395510673523,
0.043998733162879944,
0.022993678227066994,
-0.009604278020560741,
-0.06546423584222794,
-0.04930607229471207,
0.06570211797952652,
0.10742733627557755,
0.019038086757063866,
0.11798620223999023,
0.19073538482189178,
0.031163521111011505,
0.2345677614212036,
0.09518791735172272,
0.4613775908946991,
-0.2709454596042633,
0.08994272351264954,
-0.0896553248167038,
0.20399633049964905,
-0.13152478635311127,
-0.299155592918396,
0.2395833283662796,
-0.34320369362831116,
0.01849958300590515,
-0.5979425311088562,
-0.19402126967906952,
0.10856839269399643,
0.19687025249004364,
0.17128227651119232,
-0.08738642930984497,
-0.14186285436153412,
0.2530592381954193,
-0.12215631455183029,
0.04224551469087601,
-0.4413568675518036,
-0.15120984613895416,
-0.33856475353240967,
-0.14003221690654755,
-0.16076567769050598,
-0.06447009742259979,
-0.6780197620391846,
0.36905637383461,
-0.10710915923118591,
-0.09942387789487839,
0.10081928968429565,
0.06768571585416794,
0.16373313963413239,
0.10668477416038513,
-0.12256035953760147,
-0.06718114763498306,
0.17015483975410461,
-0.03360534459352493,
-0.14282412827014923,
0.10885587334632874,
-0.2642453908920288,
-0.3457188010215759,
0.0004982821410521865,
0.012284253723919392,
0.13962893187999725,
0.0678609237074852,
-0.34937411546707153,
0.3357957601547241,
-0.02512676827609539,
0.09429652243852615,
-0.051595017313957214,
0.09269537031650543,
0.4308479130268097,
0.26629340648651123,
-0.209656223654747,
-0.35872599482536316,
0.11519654095172882,
0.1224491074681282,
-0.005287377163767815,
0.1790534406900406,
-0.0404699482023716,
0.11890475451946259,
-0.11773617565631866,
0.5412526726722717,
-0.09550930559635162,
0.16424904763698578,
-0.04910849407315254,
-0.044250644743442535,
0.6068305969238281,
-0.14664806425571442,
-0.2605747878551483,
-0.04462641850113869,
0.18045192956924438,
0.09650149196386337,
0.5532419085502625,
0.15208087861537933,
0.2226753979921341,
0.11795221269130707,
0.06781893223524094,
-0.5233952403068542,
-0.06773486733436584,
-0.27680620551109314,
-0.044163864105939865,
0.4583698511123657,
0.2342926412820816,
0.18922634422779083,
-0.049021366983652115,
-0.12123869359493256,
0.21677979826927185,
0.40529942512512207,
0.33823055028915405,
0.05703771114349365,
0.1071753278374672,
0.4004298150539398,
-0.3009697198867798,
-0.16699126362800598,
0.28456827998161316,
-0.07017765194177628,
-0.15292683243751526,
-0.137904554605484,
0.11224620044231415,
0.0141120171174407,
-0.11720314621925354,
-0.163583442568779,
0.07809849828481674,
0.4444620609283447,
-0.18207208812236786,
0.31490224599838257,
-0.18780633807182312,
-0.2038482278585434,
-0.2750152349472046,
0.2740325331687927,
0.47656217217445374,
0.21716085076332092,
-0.13243432343006134,
0.014540819451212883,
-0.2941327691078186,
0.031327828764915466,
0.2831171751022339,
-0.21270926296710968,
0.006856807507574558,
-0.013243122026324272,
-0.16091346740722656,
-0.396282434463501,
-0.08339609205722809,
-0.4117148220539093,
-0.4363571107387543,
0.20403264462947845,
-0.16492074728012085,
-0.30823567509651184,
0.012356529012322426,
0.2874549627304077,
-0.07111266255378723,
0.19680793583393097,
0.2916921079158783,
0.045849867165088654,
0.7348975539207458,
-0.03058246336877346,
-0.4080493748188019,
0.06328268349170685,
0.02721678838133812,
-0.5055822134017944,
-0.09085384011268616,
0.2575189769268036,
-0.1393202394247055,
-0.10727346688508987,
-0.0534638874232769,
-0.21715132892131805,
-0.0646214634180069,
-0.14893904328346252,
0.5299158096313477,
-0.12702146172523499,
-0.08465685695409775,
-0.20492690801620483,
0.09526670724153519,
0.19361695647239685,
-0.13306695222854614,
0.3104862868785858,
0.3129883110523224,
-0.29848992824554443,
-0.34960857033729553,
0.12805794179439545,
0.4923720061779022,
-0.3014000356197357,
-0.15388867259025574,
0.11367262154817581,
-0.3015501797199249,
0.2705357074737549,
-0.1689653843641281,
0.15719762444496155,
-0.3937988579273224,
-0.027976835146546364,
0.06456179916858673,
0.0018743651453405619,
0.09614168852567673,
0.029374731704592705,
-0.23784172534942627,
-0.18436214327812195,
-0.011021068319678307,
0.20168307423591614,
0.0818549245595932,
0.0024301710072904825,
0.08073219656944275,
0.09877947717905045,
-0.09372453391551971,
0.2008965015411377,
0.04980945214629173,
0.20191073417663574,
-0.16082961857318878,
-0.0716356411576271,
-0.1726158708333969,
-0.2860313653945923,
-0.09029807150363922,
0.13684223592281342,
0.2943413257598877,
0.051565784960985184,
0.17524492740631104,
0.01821858435869217,
-0.20983007550239563,
0.04630698636174202,
0.1422918140888214,
0.23923245072364807,
-0.19684524834156036,
0.17568878829479218,
0.1792909801006317,
-0.42335590720176697,
-0.11717996746301651,
0.06941141188144684,
0.2323659509420395,
0.021216070279479027,
-0.16518929600715637,
-0.20068152248859406,
-0.01935235597193241,
-0.1303173154592514,
-0.36651289463043213,
-0.18853268027305603,
0.16509275138378143,
-0.0558382086455822,
0.2505970597267151,
0.1135946735739708,
-0.24971064925193787,
-0.1737203598022461,
0.28764986991882324,
-0.22454839944839478,
0.18705329298973083,
-0.05495148152112961,
0.16153021156787872,
-0.1465786248445511,
-0.019813990220427513,
0.26031678915023804,
0.26022669672966003,
0.2056441754102707,
0.25020018219947815,
0.126023530960083,
-0.2593320608139038,
-0.40660038590431213,
-0.05370316281914711,
-0.10783546417951584,
-0.08335250616073608,
0.3633926808834076,
0.15765850245952606,
-0.22694435715675354,
0.40342995524406433,
0.4503430724143982,
-0.2795822024345398,
-0.08999373018741608,
-0.10749645531177521,
0.06691204756498337,
0.0478864461183548,
0.1903851479291916,
-0.37056630849838257,
0.09080498665571213,
0.1473548710346222,
-0.16415776312351227,
0.14896133542060852,
-0.05081341788172722,
-0.40367820858955383,
0.06871894747018814,
0.00672281114384532,
0.04813288524746895,
0.07019202411174774,
-0.23563145101070404,
-0.07963098585605621,
-0.08989685028791428,
0.15894033014774323,
-0.17481693625450134,
-0.01581970974802971,
-0.33441564440727234,
-0.28823065757751465,
0.05281095951795578,
-0.01921295002102852,
0.07593804597854614,
0.17400306463241577,
-0.14436142146587372,
-0.26896893978118896,
-0.06704729795455933,
0.11020691692829132,
0.03978317230939865,
0.04284156113862991,
0.08122005313634872,
-0.045555684715509415,
0.1484013944864273,
0.12433192133903503,
0.37103381752967834,
-0.36507096886634827,
0.17245908081531525,
-0.19526158273220062,
0.0003721718967426568,
0.10577155649662018,
-0.05397322028875351,
-0.1264173984527588,
0.17369161546230316,
-0.0919983834028244,
0.34388968348503113,
0.33943983912467957,
-0.2152123749256134,
-0.199861541390419,
-0.002931073773652315,
0.10210500657558441,
0.20007841289043427,
-0.10008730739355087,
-0.2543641924858093,
-0.1260865181684494,
0.3093189597129822,
-0.09951005131006241,
-0.29589420557022095,
-0.3956156075000763,
-0.27844202518463135,
0.09312152117490768,
0.18806931376457214,
0.24200008809566498,
-0.7642654776573181,
0.06550983339548111,
0.25766634941101074,
-0.13936474919319153,
-0.12962606549263,
0.06110281124711037,
0.4214620888233185,
0.23822662234306335,
0.009024476632475853,
-0.21165026724338531,
-0.10524589568376541,
-0.24591343104839325,
-0.11593902111053467,
0.45249372720718384,
0.007523149251937866,
0.2931077778339386,
0.24300481379032135,
0.03070671483874321,
-0.16540324687957764,
0.17686547338962555,
-0.24467827379703522,
-0.08604282885789871,
-0.032796382904052734,
-0.03505334630608559,
-0.14875052869319916,
0.3113259971141815,
-0.023065010085701942,
-0.43179985880851746,
0.0768333375453949,
-0.22760045528411865,
-0.030479857698082924,
0.17498984932899475,
-0.07097900658845901,
0.2296491414308548,
0.08821683377027512,
0.1472039669752121,
0.4137261211872101,
-0.24708329141139984,
-0.012186503037810326,
-0.18712344765663147,
0.19673694670200348,
0.05520074814558029,
-0.14513950049877167,
0.11063255369663239,
-0.1544521301984787,
0.17813703417778015,
-0.30395153164863586,
0.1298481523990631,
-0.1748550981283188,
0.6252230405807495,
0.13008840382099152,
0.16963234543800354,
-0.021537672728300095,
-0.16241087019443512,
0.23841069638729095,
-0.1522332727909088,
0.01399988029152155,
0.5975914001464844,
0.250341534614563,
-0.013849904760718346,
-0.23076970875263214,
0.2193046361207962,
-0.29014405608177185,
-0.19926589727401733,
0.0006852851365692914,
-0.17762048542499542,
0.25623348355293274,
-0.19997821748256683,
0.19859039783477783,
-0.021458659321069717,
-0.2617739140987396,
0.23778218030929565,
-0.2808595597743988,
0.08791399002075195,
0.18472729623317719,
0.1916835606098175,
-0.02194579690694809,
-0.07897017151117325,
0.15355169773101807,
0.03250938281416893,
0.11902268975973129,
0.29424169659614563,
-0.14263975620269775,
0.2691099941730499,
-0.4398190975189209,
0.2022051364183426,
0.2053958922624588,
0.026521233841776848,
-0.06999324262142181,
-0.30226418375968933,
0.027289120480418205,
-0.10283990204334259,
-0.1674267202615738,
0.21743179857730865,
-0.27002763748168945,
-0.16000287234783173,
0.01169583760201931,
-0.26331982016563416,
0.012321439571678638,
0.13659340143203735,
-0.23498518764972687,
-0.20575298368930817,
-0.33290156722068787,
0.1092572882771492,
-0.050053056329488754,
0.22375647723674774,
0.11049408465623856,
0.1627596616744995,
0.036276061087846756,
0.41492727398872375,
0.228931725025177,
0.03292360529303551,
0.1012108102440834,
-0.353450208902359,
-0.2667236626148224,
-0.346912682056427,
-0.10825300961732864,
0.0577922947704792,
0.5023788213729858,
0.09310144931077957,
0.27894213795661926,
-0.14977101981639862,
-0.13860386610031128,
-0.243738055229187,
0.26398447155952454,
0.1827464997768402,
0.3668804466724396,
-0.1903393566608429,
0.0011355049209669232,
-0.16752110421657562,
-0.18092095851898193,
0.20061975717544556,
0.21018964052200317,
-0.18715885281562805,
-0.05514069274067879,
-0.2312483936548233,
-0.2753034234046936,
0.09937498718500137,
-0.0778108611702919,
-0.11866582930088043,
-0.4403458535671234,
0.37051084637641907,
0.2436695098876953,
-0.16932092607021332,
-0.16733163595199585,
0.07576131820678711,
0.3127543032169342,
-0.005239146761596203,
-0.2627050578594208,
0.19321011006832123,
0.09451469779014587,
0.2927229404449463,
0.07103581726551056,
0.29650822281837463,
0.07597510516643524,
-0.025637296959757805,
-0.06875849515199661,
-0.11152884364128113
] |
https://github.com/huggingface/datasets/issues/5251
|
Docs are not generated after latest release
|
just to confirm, is there anything I need to do from my side ? Or is everything good here ?
|
After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25
| 20 |
Docs are not generated after latest release
|
[
0.03393100947141647,
-0.06101907044649124,
-0.1524324268102646,
-0.10055718570947647,
0.12098567187786102,
-0.07378916442394257,
0.1017778292298317,
0.3896290957927704,
-0.028164800256490707,
0.23121964931488037,
0.19257545471191406,
0.1979232132434845,
-0.025985687971115112,
-0.20219485461711884,
-0.004101732280105352,
0.2129191905260086,
0.1293845921754837,
0.3121691048145294,
-0.014432243071496487,
-0.24645380675792694,
-0.17971529066562653,
0.06747175008058548,
-0.06085674464702606,
0.0730050578713417,
-0.39443081617355347,
0.01440924871712923,
0.16862791776657104,
0.1377917230129242,
-0.5052226185798645,
-0.21959318220615387,
0.11130335181951523,
0.09492874890565872,
0.05067449435591698,
0.050402820110321045,
-0.00010376008140156046,
-0.06158203259110451,
0.2683996856212616,
0.0441000834107399,
-0.10329563170671463,
0.030218055471777916,
0.12413763254880905,
-0.18264268338680267,
-0.11940313875675201,
-0.12606514990329742,
-0.2724616229534149,
-0.2110985368490219,
-0.048397213220596313,
-0.11257126182317734,
0.09000169485807419,
0.4250655472278595,
0.34414103627204895,
0.10278616845607758,
0.2589883804321289,
-0.15580040216445923,
0.25293558835983276,
-0.08697064220905304,
-0.18861448764801025,
0.051675353199243546,
0.38472312688827515,
-0.22971364855766296,
0.11613577604293823,
0.10803381353616714,
-0.08398523926734924,
-0.2014206200838089,
-0.010921850800514221,
0.11817951500415802,
0.550307035446167,
-0.2809738218784332,
0.40674155950546265,
-0.06599477678537369,
0.573246419429779,
0.03984065726399422,
-0.14926661550998688,
0.2143777757883072,
0.03726625815033913,
0.003091593971475959,
0.26202207803726196,
0.007930200546979904,
0.12290948629379272,
0.0017819287022575736,
0.28994128108024597,
-0.38399338722229004,
-0.19996894896030426,
0.12286094576120377,
0.1019086241722107,
0.042494915425777435,
-0.10245011001825333,
-0.27495622634887695,
0.07173031568527222,
-0.01714407093822956,
0.13498009741306305,
0.05805838480591774,
-0.18228428065776825,
0.15911516547203064,
0.45063042640686035,
0.0060088299214839935,
0.2198328673839569,
-0.18587526679039001,
0.0898352637887001,
-0.11175578832626343,
-0.27800920605659485,
-0.06425898522138596,
0.008329191245138645,
-0.3267791271209717,
-0.17362631857395172,
-0.07640708237886429,
0.19297118484973907,
0.35140955448150635,
0.21547280251979828,
0.4454004168510437,
-0.08837632089853287,
-0.02170720137655735,
-0.22710809111595154,
-0.08432064950466156,
-0.11965864896774292,
-0.12177164852619171,
0.32310426235198975,
-0.14599688351154327,
0.33512264490127563,
0.20218896865844727,
-0.005574534181505442,
0.07269290089607239,
-0.45589572191238403,
-0.05159614607691765,
0.15443894267082214,
0.20758406817913055,
0.37181761860847473,
0.1011044979095459,
-0.40051892399787903,
0.04417775198817253,
-0.18860766291618347,
-0.13751894235610962,
-0.2599145770072937,
0.23253682255744934,
0.05984862148761749,
-0.01170413289219141,
0.17685969173908234,
0.19352704286575317,
-0.3058221936225891,
-0.5388985872268677,
-0.08660241216421127,
0.20624300837516785,
0.2202923595905304,
0.1920660138130188,
0.030264222994446754,
0.13719451427459717,
-0.1740194708108902,
-0.14171381294727325,
0.2548348009586334,
0.2887503504753113,
-0.1569063812494278,
-0.3059394657611847,
-0.36283057928085327,
0.27618205547332764,
0.40917330980300903,
0.16295011341571808,
0.2970629930496216,
-0.09436867386102676,
0.42595961689949036,
-0.01837087608873844,
0.14263658225536346,
-0.10727830976247787,
-0.1417602151632309,
-0.020829444751143456,
-0.03868662938475609,
0.2951488196849823,
0.2408549189567566,
-0.18011446297168732,
0.001676039071753621,
0.09575935453176498,
-0.09306671470403671,
-0.029250111430883408,
0.06069342792034149,
0.24332678318023682,
-0.17087435722351074,
-0.1591140627861023,
0.11083053797483444,
-0.37649449706077576,
-0.34086111187934875,
-0.36129385232925415,
0.05603576824069023,
0.12626884877681732,
0.2197594940662384,
-0.3518219590187073,
0.3398335576057434,
0.0602034255862236,
-0.16208402812480927,
-0.28084075450897217,
0.17442336678504944,
0.045626234263181686,
-0.2813756763935089,
-0.1815415918827057,
-0.5659441351890564,
-0.3284447193145752,
0.7301262021064758,
0.26564183831214905,
0.10329775512218475,
0.33770260214805603,
0.26407966017723083,
-0.12313728034496307,
0.015169712714850903,
0.2915857136249542,
0.3230012059211731,
-0.09317732602357864,
0.23536540567874908,
0.20311374962329865,
-0.24578805267810822,
0.0358613096177578,
0.22876636683940887,
0.2330707609653473,
0.2721351087093353,
0.0760631188750267,
-0.09759944677352905,
-0.3533116281032562,
-0.03722349926829338,
-0.4215589165687561,
0.23379315435886383,
0.5533906817436218,
0.069362573325634,
0.3089245855808258,
0.016974031925201416,
-0.4866397976875305,
-0.5034593343734741,
0.1179949939250946,
-0.20731790363788605,
0.27506569027900696,
-0.12911629676818848,
-0.3325731158256531,
0.04250715672969818,
0.16329382359981537,
-0.16080079972743988,
0.08268146216869354,
0.03997008502483368,
-0.027387967333197594,
0.1464547961950302,
0.3094981908798218,
0.1771095246076584,
0.2673306465148926,
0.006509129889309406,
-0.19396448135375977,
0.08850934356451035,
-0.10892067104578018,
-0.07521608471870422,
0.152380108833313,
0.15963326394557953,
-0.2001633197069168,
0.14024558663368225,
0.024411242455244064,
0.12087502330541611,
0.01379720214754343,
0.010327761992812157,
-0.13223890960216522,
0.15874366462230682,
-0.315700888633728,
-0.0577046275138855,
0.05626596510410309,
0.14651243388652802,
-0.12572081387043,
0.159346342086792,
0.33607813715934753,
0.478100448846817,
-0.04264996200799942,
-0.048852354288101196,
0.07724515348672867,
0.10438989102840424,
-0.030797936022281647,
-0.2779025137424469,
-0.09139899909496307,
-0.17241840064525604,
0.20498248934745789,
0.056497443467378616,
-0.07857844978570938,
0.12819240987300873,
-0.2711392343044281,
0.3175247311592102,
-0.0480722151696682,
-0.08047603070735931,
0.47652244567871094,
0.013072310946881771,
-0.14825741946697235,
-0.43101319670677185,
0.5648577809333801,
-0.04370439052581787,
0.0014914294006302953,
-0.27358177304267883,
-0.1877395510673523,
0.043998733162879944,
0.022993678227066994,
-0.009604278020560741,
-0.06546423584222794,
-0.04930607229471207,
0.06570211797952652,
0.10742733627557755,
0.019038086757063866,
0.11798620223999023,
0.19073538482189178,
0.031163521111011505,
0.2345677614212036,
0.09518791735172272,
0.4613775908946991,
-0.2709454596042633,
0.08994272351264954,
-0.0896553248167038,
0.20399633049964905,
-0.13152478635311127,
-0.299155592918396,
0.2395833283662796,
-0.34320369362831116,
0.01849958300590515,
-0.5979425311088562,
-0.19402126967906952,
0.10856839269399643,
0.19687025249004364,
0.17128227651119232,
-0.08738642930984497,
-0.14186285436153412,
0.2530592381954193,
-0.12215631455183029,
0.04224551469087601,
-0.4413568675518036,
-0.15120984613895416,
-0.33856475353240967,
-0.14003221690654755,
-0.16076567769050598,
-0.06447009742259979,
-0.6780197620391846,
0.36905637383461,
-0.10710915923118591,
-0.09942387789487839,
0.10081928968429565,
0.06768571585416794,
0.16373313963413239,
0.10668477416038513,
-0.12256035953760147,
-0.06718114763498306,
0.17015483975410461,
-0.03360534459352493,
-0.14282412827014923,
0.10885587334632874,
-0.2642453908920288,
-0.3457188010215759,
0.0004982821410521865,
0.012284253723919392,
0.13962893187999725,
0.0678609237074852,
-0.34937411546707153,
0.3357957601547241,
-0.02512676827609539,
0.09429652243852615,
-0.051595017313957214,
0.09269537031650543,
0.4308479130268097,
0.26629340648651123,
-0.209656223654747,
-0.35872599482536316,
0.11519654095172882,
0.1224491074681282,
-0.005287377163767815,
0.1790534406900406,
-0.0404699482023716,
0.11890475451946259,
-0.11773617565631866,
0.5412526726722717,
-0.09550930559635162,
0.16424904763698578,
-0.04910849407315254,
-0.044250644743442535,
0.6068305969238281,
-0.14664806425571442,
-0.2605747878551483,
-0.04462641850113869,
0.18045192956924438,
0.09650149196386337,
0.5532419085502625,
0.15208087861537933,
0.2226753979921341,
0.11795221269130707,
0.06781893223524094,
-0.5233952403068542,
-0.06773486733436584,
-0.27680620551109314,
-0.044163864105939865,
0.4583698511123657,
0.2342926412820816,
0.18922634422779083,
-0.049021366983652115,
-0.12123869359493256,
0.21677979826927185,
0.40529942512512207,
0.33823055028915405,
0.05703771114349365,
0.1071753278374672,
0.4004298150539398,
-0.3009697198867798,
-0.16699126362800598,
0.28456827998161316,
-0.07017765194177628,
-0.15292683243751526,
-0.137904554605484,
0.11224620044231415,
0.0141120171174407,
-0.11720314621925354,
-0.163583442568779,
0.07809849828481674,
0.4444620609283447,
-0.18207208812236786,
0.31490224599838257,
-0.18780633807182312,
-0.2038482278585434,
-0.2750152349472046,
0.2740325331687927,
0.47656217217445374,
0.21716085076332092,
-0.13243432343006134,
0.014540819451212883,
-0.2941327691078186,
0.031327828764915466,
0.2831171751022339,
-0.21270926296710968,
0.006856807507574558,
-0.013243122026324272,
-0.16091346740722656,
-0.396282434463501,
-0.08339609205722809,
-0.4117148220539093,
-0.4363571107387543,
0.20403264462947845,
-0.16492074728012085,
-0.30823567509651184,
0.012356529012322426,
0.2874549627304077,
-0.07111266255378723,
0.19680793583393097,
0.2916921079158783,
0.045849867165088654,
0.7348975539207458,
-0.03058246336877346,
-0.4080493748188019,
0.06328268349170685,
0.02721678838133812,
-0.5055822134017944,
-0.09085384011268616,
0.2575189769268036,
-0.1393202394247055,
-0.10727346688508987,
-0.0534638874232769,
-0.21715132892131805,
-0.0646214634180069,
-0.14893904328346252,
0.5299158096313477,
-0.12702146172523499,
-0.08465685695409775,
-0.20492690801620483,
0.09526670724153519,
0.19361695647239685,
-0.13306695222854614,
0.3104862868785858,
0.3129883110523224,
-0.29848992824554443,
-0.34960857033729553,
0.12805794179439545,
0.4923720061779022,
-0.3014000356197357,
-0.15388867259025574,
0.11367262154817581,
-0.3015501797199249,
0.2705357074737549,
-0.1689653843641281,
0.15719762444496155,
-0.3937988579273224,
-0.027976835146546364,
0.06456179916858673,
0.0018743651453405619,
0.09614168852567673,
0.029374731704592705,
-0.23784172534942627,
-0.18436214327812195,
-0.011021068319678307,
0.20168307423591614,
0.0818549245595932,
0.0024301710072904825,
0.08073219656944275,
0.09877947717905045,
-0.09372453391551971,
0.2008965015411377,
0.04980945214629173,
0.20191073417663574,
-0.16082961857318878,
-0.0716356411576271,
-0.1726158708333969,
-0.2860313653945923,
-0.09029807150363922,
0.13684223592281342,
0.2943413257598877,
0.051565784960985184,
0.17524492740631104,
0.01821858435869217,
-0.20983007550239563,
0.04630698636174202,
0.1422918140888214,
0.23923245072364807,
-0.19684524834156036,
0.17568878829479218,
0.1792909801006317,
-0.42335590720176697,
-0.11717996746301651,
0.06941141188144684,
0.2323659509420395,
0.021216070279479027,
-0.16518929600715637,
-0.20068152248859406,
-0.01935235597193241,
-0.1303173154592514,
-0.36651289463043213,
-0.18853268027305603,
0.16509275138378143,
-0.0558382086455822,
0.2505970597267151,
0.1135946735739708,
-0.24971064925193787,
-0.1737203598022461,
0.28764986991882324,
-0.22454839944839478,
0.18705329298973083,
-0.05495148152112961,
0.16153021156787872,
-0.1465786248445511,
-0.019813990220427513,
0.26031678915023804,
0.26022669672966003,
0.2056441754102707,
0.25020018219947815,
0.126023530960083,
-0.2593320608139038,
-0.40660038590431213,
-0.05370316281914711,
-0.10783546417951584,
-0.08335250616073608,
0.3633926808834076,
0.15765850245952606,
-0.22694435715675354,
0.40342995524406433,
0.4503430724143982,
-0.2795822024345398,
-0.08999373018741608,
-0.10749645531177521,
0.06691204756498337,
0.0478864461183548,
0.1903851479291916,
-0.37056630849838257,
0.09080498665571213,
0.1473548710346222,
-0.16415776312351227,
0.14896133542060852,
-0.05081341788172722,
-0.40367820858955383,
0.06871894747018814,
0.00672281114384532,
0.04813288524746895,
0.07019202411174774,
-0.23563145101070404,
-0.07963098585605621,
-0.08989685028791428,
0.15894033014774323,
-0.17481693625450134,
-0.01581970974802971,
-0.33441564440727234,
-0.28823065757751465,
0.05281095951795578,
-0.01921295002102852,
0.07593804597854614,
0.17400306463241577,
-0.14436142146587372,
-0.26896893978118896,
-0.06704729795455933,
0.11020691692829132,
0.03978317230939865,
0.04284156113862991,
0.08122005313634872,
-0.045555684715509415,
0.1484013944864273,
0.12433192133903503,
0.37103381752967834,
-0.36507096886634827,
0.17245908081531525,
-0.19526158273220062,
0.0003721718967426568,
0.10577155649662018,
-0.05397322028875351,
-0.1264173984527588,
0.17369161546230316,
-0.0919983834028244,
0.34388968348503113,
0.33943983912467957,
-0.2152123749256134,
-0.199861541390419,
-0.002931073773652315,
0.10210500657558441,
0.20007841289043427,
-0.10008730739355087,
-0.2543641924858093,
-0.1260865181684494,
0.3093189597129822,
-0.09951005131006241,
-0.29589420557022095,
-0.3956156075000763,
-0.27844202518463135,
0.09312152117490768,
0.18806931376457214,
0.24200008809566498,
-0.7642654776573181,
0.06550983339548111,
0.25766634941101074,
-0.13936474919319153,
-0.12962606549263,
0.06110281124711037,
0.4214620888233185,
0.23822662234306335,
0.009024476632475853,
-0.21165026724338531,
-0.10524589568376541,
-0.24591343104839325,
-0.11593902111053467,
0.45249372720718384,
0.007523149251937866,
0.2931077778339386,
0.24300481379032135,
0.03070671483874321,
-0.16540324687957764,
0.17686547338962555,
-0.24467827379703522,
-0.08604282885789871,
-0.032796382904052734,
-0.03505334630608559,
-0.14875052869319916,
0.3113259971141815,
-0.023065010085701942,
-0.43179985880851746,
0.0768333375453949,
-0.22760045528411865,
-0.030479857698082924,
0.17498984932899475,
-0.07097900658845901,
0.2296491414308548,
0.08821683377027512,
0.1472039669752121,
0.4137261211872101,
-0.24708329141139984,
-0.012186503037810326,
-0.18712344765663147,
0.19673694670200348,
0.05520074814558029,
-0.14513950049877167,
0.11063255369663239,
-0.1544521301984787,
0.17813703417778015,
-0.30395153164863586,
0.1298481523990631,
-0.1748550981283188,
0.6252230405807495,
0.13008840382099152,
0.16963234543800354,
-0.021537672728300095,
-0.16241087019443512,
0.23841069638729095,
-0.1522332727909088,
0.01399988029152155,
0.5975914001464844,
0.250341534614563,
-0.013849904760718346,
-0.23076970875263214,
0.2193046361207962,
-0.29014405608177185,
-0.19926589727401733,
0.0006852851365692914,
-0.17762048542499542,
0.25623348355293274,
-0.19997821748256683,
0.19859039783477783,
-0.021458659321069717,
-0.2617739140987396,
0.23778218030929565,
-0.2808595597743988,
0.08791399002075195,
0.18472729623317719,
0.1916835606098175,
-0.02194579690694809,
-0.07897017151117325,
0.15355169773101807,
0.03250938281416893,
0.11902268975973129,
0.29424169659614563,
-0.14263975620269775,
0.2691099941730499,
-0.4398190975189209,
0.2022051364183426,
0.2053958922624588,
0.026521233841776848,
-0.06999324262142181,
-0.30226418375968933,
0.027289120480418205,
-0.10283990204334259,
-0.1674267202615738,
0.21743179857730865,
-0.27002763748168945,
-0.16000287234783173,
0.01169583760201931,
-0.26331982016563416,
0.012321439571678638,
0.13659340143203735,
-0.23498518764972687,
-0.20575298368930817,
-0.33290156722068787,
0.1092572882771492,
-0.050053056329488754,
0.22375647723674774,
0.11049408465623856,
0.1627596616744995,
0.036276061087846756,
0.41492727398872375,
0.228931725025177,
0.03292360529303551,
0.1012108102440834,
-0.353450208902359,
-0.2667236626148224,
-0.346912682056427,
-0.10825300961732864,
0.0577922947704792,
0.5023788213729858,
0.09310144931077957,
0.27894213795661926,
-0.14977101981639862,
-0.13860386610031128,
-0.243738055229187,
0.26398447155952454,
0.1827464997768402,
0.3668804466724396,
-0.1903393566608429,
0.0011355049209669232,
-0.16752110421657562,
-0.18092095851898193,
0.20061975717544556,
0.21018964052200317,
-0.18715885281562805,
-0.05514069274067879,
-0.2312483936548233,
-0.2753034234046936,
0.09937498718500137,
-0.0778108611702919,
-0.11866582930088043,
-0.4403458535671234,
0.37051084637641907,
0.2436695098876953,
-0.16932092607021332,
-0.16733163595199585,
0.07576131820678711,
0.3127543032169342,
-0.005239146761596203,
-0.2627050578594208,
0.19321011006832123,
0.09451469779014587,
0.2927229404449463,
0.07103581726551056,
0.29650822281837463,
0.07597510516643524,
-0.025637296959757805,
-0.06875849515199661,
-0.11152884364128113
] |
https://github.com/huggingface/datasets/issues/5245
|
Unable to rename columns in streaming dataset
|
Hi @peregilk this bug is directly related to https://github.com/huggingface/datasets/issues/3888, and still not fixed... But I'll try to have a look!
|
### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1
| 20 |
Unable to rename columns in streaming dataset
|
[
-0.05291186273097992,
0.12929363548755646,
-0.17357072234153748,
-0.19321800768375397,
0.5348762273788452,
0.12788330018520355,
0.5244086384773254,
0.02997264824807644,
-0.04588199779391289,
0.17902275919914246,
-0.2105485051870346,
0.12466579675674438,
0.10746739059686661,
0.3022327125072479,
-0.1899797022342682,
-0.3037330210208893,
0.19846384227275848,
0.2961532473564148,
-0.06824074685573578,
0.023311354219913483,
-0.11815961450338364,
-0.1297299563884735,
-0.18556730449199677,
-0.12714850902557373,
0.1425221860408783,
-0.045610956847667694,
0.0664258822798729,
-0.0007890925626270473,
-0.22200514376163483,
-0.07214628159999847,
-0.3414791226387024,
0.44111478328704834,
-0.1847783327102661,
0.4335247874259949,
-0.00010447695240145549,
-0.032682668417692184,
0.15387077629566193,
-0.0579233318567276,
-0.4327091574668884,
0.13178163766860962,
-0.27300935983657837,
0.123903788626194,
-0.17581897974014282,
-0.3113671541213989,
0.05708707496523857,
-0.21929827332496643,
-0.0212367195636034,
-0.41345569491386414,
-0.02026841789484024,
0.19007210433483124,
0.25891727209091187,
0.03090595081448555,
-0.04657546803355217,
-0.02428838424384594,
0.031397733837366104,
-0.10302401334047318,
-0.1494738757610321,
-0.10017109662294388,
-0.006040477659553289,
0.0589301660656929,
-0.07594852149486542,
0.5642314553260803,
-0.0029239666182547808,
0.07448991388082504,
0.1358322948217392,
0.06758670508861542,
-0.28448429703712463,
0.03582514822483063,
0.5365245938301086,
0.07979489117860794,
0.5187551379203796,
-0.2775844931602478,
-0.22813723981380463,
0.01558638270944357,
0.14807596802711487,
-0.4059866964817047,
-0.0874699130654335,
0.0901712030172348,
0.16716265678405762,
-0.02081589214503765,
-0.09254127740859985,
-0.22078579664230347,
-0.09432339668273926,
0.0184518750756979,
0.05231931805610657,
0.07274696975946426,
0.08129321783781052,
0.14525392651557922,
-0.26120126247406006,
-0.21229715645313263,
0.3565700948238373,
-0.013819589279592037,
-0.040036898106336594,
-0.05998970940709114,
-0.4291824698448181,
0.23243354260921478,
0.01836969144642353,
0.06969208270311356,
-0.4227243661880493,
0.0591534785926342,
0.2969726324081421,
0.046040356159210205,
0.41991087794303894,
-0.06934435665607452,
-0.2652764916419983,
0.13384884595870972,
-0.006918424274772406,
0.07250753790140152,
0.3080299496650696,
0.26912933588027954,
-0.0773046612739563,
-0.16626276075839996,
0.008980563841760159,
0.14911408722400665,
-0.06873703002929688,
0.050775010138750076,
0.008035167120397091,
0.07920685410499573,
-0.17038358747959137,
0.04843165725469589,
0.10086497664451599,
-0.09271620213985443,
0.10450456291437149,
0.3349584639072418,
0.14910458028316498,
0.23754726350307465,
-0.03910301253199577,
0.16929736733436584,
0.09375271201133728,
-0.13432517647743225,
-0.22569496929645538,
0.021842733025550842,
-0.19240771234035492,
-0.1177646592259407,
0.16308172047138214,
-0.16531440615653992,
0.008968002162873745,
-0.12121586501598358,
-0.022528333589434624,
0.015369892120361328,
-0.0898444652557373,
-0.019710730761289597,
-0.03747688978910446,
0.1705276072025299,
-0.006080270279198885,
0.00845517497509718,
-0.07295122742652893,
-0.03429742529988289,
0.18006731569766998,
0.025681596249341965,
0.01973005011677742,
-0.08099702000617981,
-0.09845233708620071,
0.25584861636161804,
0.2970941364765167,
-0.04226718097925186,
0.07478342205286026,
0.210969477891922,
0.15124520659446716,
-0.21498741209506989,
0.0729144886136055,
0.09760567545890808,
0.26059451699256897,
0.04198213666677475,
-0.051056869328022,
0.002709195716306567,
-0.2863381803035736,
-0.02137073315680027,
-0.19169974327087402,
0.14774560928344727,
0.5088766813278198,
0.04981344938278198,
0.1877959966659546,
-0.4119115471839905,
0.23090115189552307,
0.23335638642311096,
0.37859591841697693,
-0.1272139847278595,
-0.1715654730796814,
0.009396780282258987,
-0.27423349022865295,
-0.22633762657642365,
0.4675949513912201,
-0.03272899612784386,
0.28082671761512756,
0.035246483981609344,
0.05342811718583107,
-0.059392645955085754,
0.12719009816646576,
0.1198049932718277,
-0.07885728776454926,
-0.073454350233078,
0.009567494504153728,
0.08056072890758514,
-0.07112827897071838,
0.32410866022109985,
0.2068130075931549,
0.08467145264148712,
0.04299067705869675,
-0.264098584651947,
0.2737942337989807,
0.10977042466402054,
0.13763019442558289,
0.2870107889175415,
0.03241302818059921,
-0.04986295476555824,
-0.40360280871391296,
-0.13615886867046356,
0.6104605197906494,
-0.014338831417262554,
0.03904912993311882,
-0.21003086864948273,
-0.3263431787490845,
-0.1357889175415039,
0.10110551863908768,
0.23052693903446198,
0.182017982006073,
0.48346397280693054,
-0.09944632649421692,
-0.32353225350379944,
-0.27116456627845764,
0.24447211623191833,
-0.46608099341392517,
-0.026458971202373505,
-0.21654176712036133,
0.06067000702023506,
0.04938408359885216,
-0.23431678116321564,
-0.058499205857515335,
0.11317289620637894,
0.24098414182662964,
0.12095700949430466,
-0.2082558572292328,
0.4433767795562744,
-0.09905257076025009,
0.361275315284729,
0.010056933388113976,
0.0964258685708046,
-0.23335233330726624,
0.13524313271045685,
0.0683615580201149,
0.005292111542075872,
0.13534514605998993,
0.165705606341362,
-0.3355955481529236,
0.02013246901333332,
-0.25778964161872864,
0.2187139391899109,
0.15346676111221313,
-0.06844533234834671,
0.34618645906448364,
-0.07351354509592056,
-0.0600421242415905,
-0.42826905846595764,
0.08841930329799652,
-0.13673537969589233,
-0.019065123051404953,
-0.14988818764686584,
-0.5772660374641418,
0.07797040790319443,
0.4106452465057373,
0.06561862677335739,
-0.0851372703909874,
0.02640833705663681,
-0.008168534375727177,
-0.10597448796033859,
0.1530177742242813,
0.5167679786682129,
0.2752953767776489,
0.2837967276573181,
0.200938880443573,
0.10190262645483017,
0.17583085596561432,
-0.39775022864341736,
0.17926616966724396,
0.07641537487506866,
-0.09156403690576553,
0.3613468408584595,
0.40903913974761963,
-0.3172943890094757,
-0.5318496227264404,
-0.1017993912100792,
0.46412742137908936,
0.1528581976890564,
-0.2373746931552887,
0.03275304287672043,
-0.27179840207099915,
-0.2771739065647125,
0.01723562739789486,
-0.11818879842758179,
0.15892788767814636,
-0.4318621754646301,
0.1674043834209442,
0.4800211489200592,
-0.2773122489452362,
0.20970602333545685,
-0.015284367837011814,
-0.03677981719374657,
0.01956101693212986,
0.37876608967781067,
-0.5974567532539368,
-0.28446632623672485,
0.16514357924461365,
0.17971833050251007,
-0.18343372642993927,
-0.03350146487355232,
0.2813809812068939,
-0.07063930481672287,
0.07674495130777359,
-0.4488691985607147,
-0.21543151140213013,
-0.05250943452119827,
-0.1916930079460144,
-0.05047445744276047,
0.14003680646419525,
0.32544100284576416,
-0.13288453221321106,
-0.29227906465530396,
0.2632974088191986,
-0.0035884578246623278,
-0.0027157729491591454,
0.11403990536928177,
-0.033431023359298706,
-0.002773449057713151,
-0.17906637489795685,
-0.4577990770339966,
-0.1744547188282013,
-0.35406532883644104,
0.12545982003211975,
-0.28386983275413513,
0.11098872125148773,
-0.03609483316540718,
-0.2389659881591797,
-0.33614251017570496,
0.14095477759838104,
0.07544676214456558,
-0.39692527055740356,
-0.28214049339294434,
0.11706986278295517,
-0.23167292773723602,
-0.12570102512836456,
0.04014670476317406,
0.31496068835258484,
0.174593985080719,
0.3379329442977905,
0.08136186003684998,
0.03868497535586357,
0.03894602134823799,
-0.1813572347164154,
0.0958818569779396,
-0.0996629074215889,
-0.008612888865172863,
0.07454521209001541,
-0.18931259214878082,
-0.23597224056720734,
0.07458926737308502,
-0.09356638789176941,
0.4188387095928192,
0.06471099704504013,
0.07804009318351746,
0.7230544090270996,
-0.18922698497772217,
0.3057195246219635,
-0.11392057687044144,
0.06655145436525345,
0.4283348619937897,
-0.30058300495147705,
0.09556792676448822,
-0.27567583322525024,
-0.17809094488620758,
0.26815199851989746,
0.06595925241708755,
0.07823945581912994,
0.12902981042861938,
-0.15051905810832977,
-0.22373232245445251,
-0.04794645309448242,
0.39723190665245056,
-0.32706522941589355,
-0.04415859654545784,
-0.13649465143680573,
-0.13811156153678894,
0.27960526943206787,
0.31143349409103394,
0.22344595193862915,
-0.19685222208499908,
-0.33514007925987244,
-0.07631335407495499,
0.058342255651950836,
-0.0906086266040802,
-0.15195634961128235,
-0.23354099690914154,
0.009937024675309658,
-0.434883713722229,
0.21410052478313446,
-0.05683824047446251,
0.5167143940925598,
-0.19329920411109924,
-0.24144574999809265,
0.19095344841480255,
0.04557504132390022,
0.3841463029384613,
-0.43404343724250793,
-0.06532153487205505,
0.029513783752918243,
0.28089267015457153,
0.008319266140460968,
-0.034868963062763214,
-0.21379241347312927,
-0.029552772641181946,
-0.06351233273744583,
0.249701589345932,
-0.39443913102149963,
0.03461014851927757,
0.19812792539596558,
-0.01058704312890768,
-0.05829703435301781,
0.09679176658391953,
-0.3246833086013794,
-0.15624868869781494,
-0.36557793617248535,
-0.11609907448291779,
-0.0016206020954996347,
0.39171844720840454,
-0.07532118260860443,
0.12927326560020447,
0.050091031938791275,
0.06310010701417923,
0.1568194180727005,
0.30181968212127686,
0.20262494683265686,
0.32431116700172424,
-0.013156958855688572,
0.07216021418571472,
0.2831901013851166,
0.02561023458838463,
0.22079505026340485,
-0.14619728922843933,
-0.2738591432571411,
0.2612325847148895,
-0.18134909868240356,
0.4160307049751282,
0.22627326846122742,
0.043782006949186325,
0.3852494955062866,
0.24814166128635406,
0.301874041557312,
-0.118220753967762,
0.19121265411376953,
0.1809832602739334,
0.1384355127811432,
-0.17644762992858887,
-0.5916276574134827,
0.18264617025852203,
-0.001579504576511681,
-0.14127077162265778,
0.5324422717094421,
0.15324939787387848,
-0.17528139054775238,
0.14758679270744324,
-0.08015857636928558,
0.7479305863380432,
-0.22922533750534058,
-0.14477676153182983,
0.13463890552520752,
-0.5475711822509766,
0.17607706785202026,
-0.25836944580078125,
0.4103800356388092,
-0.3027965724468231,
-0.42298686504364014,
-0.049276117235422134,
0.15004228055477142,
0.20791859924793243,
0.13270880281925201,
-0.03133236616849899,
0.2694016993045807,
-0.10941451042890549,
0.6317188739776611,
-0.06709014624357224,
-0.10222062468528748,
-0.1784977912902832,
-0.3504387438297272,
-0.35259371995925903,
0.1487869769334793,
-0.15913674235343933,
-0.25543829798698425,
0.08017775416374207,
0.2282804697751999,
0.12101579457521439,
-0.00947900302708149,
0.13440142571926117,
-0.004592303652316332,
0.08380921185016632,
0.026207176968455315,
-0.44128257036209106,
-0.27659088373184204,
-0.35354042053222656,
0.012142962776124477,
-0.02851126715540886,
-0.017435334622859955,
-0.01916571334004402,
0.2909490764141083,
0.24921022355556488,
0.37272927165031433,
-0.19279643893241882,
0.21725104749202728,
0.09230533242225647,
-0.0545281283557415,
-0.18842647969722748,
0.022212039679288864,
0.03416532278060913,
-0.26846909523010254,
-0.23833149671554565,
-0.1408398598432541,
0.3383985757827759,
-0.17271026968955994,
-0.0500941164791584,
-0.07828269898891449,
-0.11555994302034378,
-0.4034649133682251,
0.19037039577960968,
-0.47410547733306885,
-0.1517753303050995,
0.03559447452425957,
0.013447047211229801,
-0.16311347484588623,
-0.17889349162578583,
0.7064644694328308,
0.0210625771433115,
0.3204665184020996,
0.4643809497356415,
0.0334404893219471,
-0.38723039627075195,
-0.2655165195465088,
-0.34447237849235535,
-0.11178211122751236,
-0.23605583608150482,
0.10217448323965073,
0.11979258805513382,
-0.3220475912094116,
0.2585485577583313,
-0.012471983209252357,
-0.35393044352531433,
0.3056658208370209,
-0.3768985867500305,
-0.24690212309360504,
-0.300545334815979,
0.030235638841986656,
0.2860625982284546,
0.05332973226904869,
-0.03682883083820343,
0.13691586256027222,
-0.12299107015132904,
-0.19486135244369507,
-0.4011881351470947,
-0.2069963812828064,
0.08114555478096008,
0.3210965096950531,
0.11699438840150833,
-0.1421424299478531,
0.012026543729007244,
-0.1435254067182541,
0.38174527883529663,
-0.06402641534805298,
0.12048833072185516,
-0.30134597420692444,
-0.11053934693336487,
0.07008601725101471,
0.07277543842792511,
0.06080878525972366,
-0.4344857335090637,
-0.23872920870780945,
-0.40634283423423767,
-0.1456739455461502,
0.2645634412765503,
0.16594655811786652,
-0.07300202548503876,
0.08178866654634476,
0.05145846679806709,
-0.088066965341568,
0.13597270846366882,
-0.14190232753753662,
0.11181937158107758,
-0.039729975163936615,
-0.2456478327512741,
0.010197366587817669,
0.026862652972340584,
0.05944400280714035,
-0.15717141330242157,
-0.04742231220006943,
0.15949878096580505,
-0.011924713850021362,
0.22573189437389374,
-0.11326249688863754,
0.14696308970451355,
-0.03001359850168228,
0.4552222192287445,
0.38797426223754883,
0.18268321454524994,
-0.4459148943424225,
0.15843765437602997,
0.21414104104042053,
-0.32892850041389465,
-0.0269478727132082,
-0.08624986559152603,
-0.08389849215745926,
0.2800433337688446,
-0.08404042571783066,
0.11381246149539948,
-0.2519206702709198,
-0.34932056069374084,
0.04774538427591324,
0.20498040318489075,
-0.23780199885368347,
0.09328446537256241,
0.648227334022522,
0.0644342228770256,
0.27344241738319397,
0.23594003915786743,
0.15591013431549072,
-0.4047485589981079,
0.5919973254203796,
0.26794737577438354,
0.17049211263656616,
0.2565017640590668,
0.08235609531402588,
-0.2634167969226837,
-0.01956568844616413,
-0.10522221028804779,
0.04897131025791168,
-0.07179486751556396,
0.45320308208465576,
0.23198159039020538,
-0.0869821235537529,
0.11618075519800186,
-0.1311454325914383,
-0.1605103462934494,
0.30017781257629395,
-0.05371452495455742,
-0.28765320777893066,
-0.35215964913368225,
-0.08721620589494705,
0.044906094670295715,
0.18085609376430511,
-0.011453282088041306,
0.4032352566719055,
0.5664904117584229,
-0.18379877507686615,
0.27860379219055176,
-0.39946478605270386,
-0.05831199884414673,
0.0732857882976532,
0.41703295707702637,
-0.179387167096138,
0.14944840967655182,
0.3655549883842468,
0.15702174603939056,
0.47662416100502014,
-0.11310559511184692,
-0.21470263600349426,
-0.071574866771698,
0.25215446949005127,
0.03425247222185135,
0.061397816985845566,
-0.35900914669036865,
0.0488201342523098,
0.29460403323173523,
0.25223973393440247,
0.11044944822788239,
0.1041189432144165,
0.23069892823696136,
-0.2290610820055008,
0.14716103672981262,
0.2661655843257904,
0.22396303713321686,
0.09771519899368286,
0.17542466521263123,
0.010407039895653725,
-0.23325680196285248,
-0.1166326254606247,
-0.3429913818836212,
-0.3034931719303131,
0.05960977450013161,
0.30338796973228455,
-0.20497769117355347,
0.06573011726140976,
-0.019933300092816353,
0.14967314898967743,
0.25261127948760986,
0.4171769917011261,
-0.06396128237247467,
-0.29117056727409363,
-0.19802168011665344,
-0.4567641615867615,
-0.5000351071357727,
0.0872899517416954,
0.17801877856254578,
-0.16933219134807587,
0.050265613943338394,
-0.1455538123846054,
0.20222456753253937,
-0.30892708897590637,
0.02720920741558075,
-0.29890063405036926,
-0.251786470413208,
0.3222236931324005,
-0.31377166509628296,
-0.11090188473463058,
0.06410469114780426,
0.2451229691505432,
0.027502572163939476,
-0.19131624698638916,
0.32124629616737366,
0.36004191637039185,
0.18059620261192322,
-0.08365987241268158,
0.1982351839542389,
0.05676807463169098,
-0.11052077263593674,
-0.049283817410469055,
-0.3022259771823883,
0.3310239613056183,
-0.2943383753299713,
0.026679573580622673,
-0.016124987974762917,
-0.27911779284477234,
-0.22542263567447662,
0.2709921598434448,
0.03456613048911095,
0.3055758774280548,
0.3240266442298889,
0.1623477339744568,
0.010238843970000744,
0.2488682121038437,
-0.12387429922819138,
0.08378419280052185,
-0.21690458059310913,
0.3057175278663635,
0.1578177958726883,
0.15206550061702728,
-0.05985860154032707,
0.0712028443813324,
0.11864209175109863,
0.1891176849603653,
-0.2542222738265991,
-0.5591892600059509,
0.6637262105941772,
-0.14816193282604218,
-0.5515402555465698,
0.0363900288939476,
0.03184336796402931,
0.3892325162887573,
0.10625236481428146,
-0.3787274658679962,
0.19067609310150146,
0.07499456405639648,
-0.30092760920524597,
0.03963414207100868,
0.2423074096441269,
-0.11219654232263565,
0.026120811700820923,
0.000035968874726677313,
0.06979836523532867,
0.26646074652671814,
-0.15200315415859222,
-0.2840254604816437,
0.09434971958398819
] |
https://github.com/huggingface/datasets/issues/5245
|
Unable to rename columns in streaming dataset
|
Thanks @alvarobartt. It is great if you are able to fix it, but when reading the explanation it seems like it is possible to work around it.
We also tried keeping the 'info.features' and then adding a modified version back after the remove/rename. Unforutunately that leads to a dataset that is not possible to iterate over.
|
### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1
| 56 |
Unable to rename columns in streaming dataset
|
[
-0.05291186273097992,
0.12929363548755646,
-0.17357072234153748,
-0.19321800768375397,
0.5348762273788452,
0.12788330018520355,
0.5244086384773254,
0.02997264824807644,
-0.04588199779391289,
0.17902275919914246,
-0.2105485051870346,
0.12466579675674438,
0.10746739059686661,
0.3022327125072479,
-0.1899797022342682,
-0.3037330210208893,
0.19846384227275848,
0.2961532473564148,
-0.06824074685573578,
0.023311354219913483,
-0.11815961450338364,
-0.1297299563884735,
-0.18556730449199677,
-0.12714850902557373,
0.1425221860408783,
-0.045610956847667694,
0.0664258822798729,
-0.0007890925626270473,
-0.22200514376163483,
-0.07214628159999847,
-0.3414791226387024,
0.44111478328704834,
-0.1847783327102661,
0.4335247874259949,
-0.00010447695240145549,
-0.032682668417692184,
0.15387077629566193,
-0.0579233318567276,
-0.4327091574668884,
0.13178163766860962,
-0.27300935983657837,
0.123903788626194,
-0.17581897974014282,
-0.3113671541213989,
0.05708707496523857,
-0.21929827332496643,
-0.0212367195636034,
-0.41345569491386414,
-0.02026841789484024,
0.19007210433483124,
0.25891727209091187,
0.03090595081448555,
-0.04657546803355217,
-0.02428838424384594,
0.031397733837366104,
-0.10302401334047318,
-0.1494738757610321,
-0.10017109662294388,
-0.006040477659553289,
0.0589301660656929,
-0.07594852149486542,
0.5642314553260803,
-0.0029239666182547808,
0.07448991388082504,
0.1358322948217392,
0.06758670508861542,
-0.28448429703712463,
0.03582514822483063,
0.5365245938301086,
0.07979489117860794,
0.5187551379203796,
-0.2775844931602478,
-0.22813723981380463,
0.01558638270944357,
0.14807596802711487,
-0.4059866964817047,
-0.0874699130654335,
0.0901712030172348,
0.16716265678405762,
-0.02081589214503765,
-0.09254127740859985,
-0.22078579664230347,
-0.09432339668273926,
0.0184518750756979,
0.05231931805610657,
0.07274696975946426,
0.08129321783781052,
0.14525392651557922,
-0.26120126247406006,
-0.21229715645313263,
0.3565700948238373,
-0.013819589279592037,
-0.040036898106336594,
-0.05998970940709114,
-0.4291824698448181,
0.23243354260921478,
0.01836969144642353,
0.06969208270311356,
-0.4227243661880493,
0.0591534785926342,
0.2969726324081421,
0.046040356159210205,
0.41991087794303894,
-0.06934435665607452,
-0.2652764916419983,
0.13384884595870972,
-0.006918424274772406,
0.07250753790140152,
0.3080299496650696,
0.26912933588027954,
-0.0773046612739563,
-0.16626276075839996,
0.008980563841760159,
0.14911408722400665,
-0.06873703002929688,
0.050775010138750076,
0.008035167120397091,
0.07920685410499573,
-0.17038358747959137,
0.04843165725469589,
0.10086497664451599,
-0.09271620213985443,
0.10450456291437149,
0.3349584639072418,
0.14910458028316498,
0.23754726350307465,
-0.03910301253199577,
0.16929736733436584,
0.09375271201133728,
-0.13432517647743225,
-0.22569496929645538,
0.021842733025550842,
-0.19240771234035492,
-0.1177646592259407,
0.16308172047138214,
-0.16531440615653992,
0.008968002162873745,
-0.12121586501598358,
-0.022528333589434624,
0.015369892120361328,
-0.0898444652557373,
-0.019710730761289597,
-0.03747688978910446,
0.1705276072025299,
-0.006080270279198885,
0.00845517497509718,
-0.07295122742652893,
-0.03429742529988289,
0.18006731569766998,
0.025681596249341965,
0.01973005011677742,
-0.08099702000617981,
-0.09845233708620071,
0.25584861636161804,
0.2970941364765167,
-0.04226718097925186,
0.07478342205286026,
0.210969477891922,
0.15124520659446716,
-0.21498741209506989,
0.0729144886136055,
0.09760567545890808,
0.26059451699256897,
0.04198213666677475,
-0.051056869328022,
0.002709195716306567,
-0.2863381803035736,
-0.02137073315680027,
-0.19169974327087402,
0.14774560928344727,
0.5088766813278198,
0.04981344938278198,
0.1877959966659546,
-0.4119115471839905,
0.23090115189552307,
0.23335638642311096,
0.37859591841697693,
-0.1272139847278595,
-0.1715654730796814,
0.009396780282258987,
-0.27423349022865295,
-0.22633762657642365,
0.4675949513912201,
-0.03272899612784386,
0.28082671761512756,
0.035246483981609344,
0.05342811718583107,
-0.059392645955085754,
0.12719009816646576,
0.1198049932718277,
-0.07885728776454926,
-0.073454350233078,
0.009567494504153728,
0.08056072890758514,
-0.07112827897071838,
0.32410866022109985,
0.2068130075931549,
0.08467145264148712,
0.04299067705869675,
-0.264098584651947,
0.2737942337989807,
0.10977042466402054,
0.13763019442558289,
0.2870107889175415,
0.03241302818059921,
-0.04986295476555824,
-0.40360280871391296,
-0.13615886867046356,
0.6104605197906494,
-0.014338831417262554,
0.03904912993311882,
-0.21003086864948273,
-0.3263431787490845,
-0.1357889175415039,
0.10110551863908768,
0.23052693903446198,
0.182017982006073,
0.48346397280693054,
-0.09944632649421692,
-0.32353225350379944,
-0.27116456627845764,
0.24447211623191833,
-0.46608099341392517,
-0.026458971202373505,
-0.21654176712036133,
0.06067000702023506,
0.04938408359885216,
-0.23431678116321564,
-0.058499205857515335,
0.11317289620637894,
0.24098414182662964,
0.12095700949430466,
-0.2082558572292328,
0.4433767795562744,
-0.09905257076025009,
0.361275315284729,
0.010056933388113976,
0.0964258685708046,
-0.23335233330726624,
0.13524313271045685,
0.0683615580201149,
0.005292111542075872,
0.13534514605998993,
0.165705606341362,
-0.3355955481529236,
0.02013246901333332,
-0.25778964161872864,
0.2187139391899109,
0.15346676111221313,
-0.06844533234834671,
0.34618645906448364,
-0.07351354509592056,
-0.0600421242415905,
-0.42826905846595764,
0.08841930329799652,
-0.13673537969589233,
-0.019065123051404953,
-0.14988818764686584,
-0.5772660374641418,
0.07797040790319443,
0.4106452465057373,
0.06561862677335739,
-0.0851372703909874,
0.02640833705663681,
-0.008168534375727177,
-0.10597448796033859,
0.1530177742242813,
0.5167679786682129,
0.2752953767776489,
0.2837967276573181,
0.200938880443573,
0.10190262645483017,
0.17583085596561432,
-0.39775022864341736,
0.17926616966724396,
0.07641537487506866,
-0.09156403690576553,
0.3613468408584595,
0.40903913974761963,
-0.3172943890094757,
-0.5318496227264404,
-0.1017993912100792,
0.46412742137908936,
0.1528581976890564,
-0.2373746931552887,
0.03275304287672043,
-0.27179840207099915,
-0.2771739065647125,
0.01723562739789486,
-0.11818879842758179,
0.15892788767814636,
-0.4318621754646301,
0.1674043834209442,
0.4800211489200592,
-0.2773122489452362,
0.20970602333545685,
-0.015284367837011814,
-0.03677981719374657,
0.01956101693212986,
0.37876608967781067,
-0.5974567532539368,
-0.28446632623672485,
0.16514357924461365,
0.17971833050251007,
-0.18343372642993927,
-0.03350146487355232,
0.2813809812068939,
-0.07063930481672287,
0.07674495130777359,
-0.4488691985607147,
-0.21543151140213013,
-0.05250943452119827,
-0.1916930079460144,
-0.05047445744276047,
0.14003680646419525,
0.32544100284576416,
-0.13288453221321106,
-0.29227906465530396,
0.2632974088191986,
-0.0035884578246623278,
-0.0027157729491591454,
0.11403990536928177,
-0.033431023359298706,
-0.002773449057713151,
-0.17906637489795685,
-0.4577990770339966,
-0.1744547188282013,
-0.35406532883644104,
0.12545982003211975,
-0.28386983275413513,
0.11098872125148773,
-0.03609483316540718,
-0.2389659881591797,
-0.33614251017570496,
0.14095477759838104,
0.07544676214456558,
-0.39692527055740356,
-0.28214049339294434,
0.11706986278295517,
-0.23167292773723602,
-0.12570102512836456,
0.04014670476317406,
0.31496068835258484,
0.174593985080719,
0.3379329442977905,
0.08136186003684998,
0.03868497535586357,
0.03894602134823799,
-0.1813572347164154,
0.0958818569779396,
-0.0996629074215889,
-0.008612888865172863,
0.07454521209001541,
-0.18931259214878082,
-0.23597224056720734,
0.07458926737308502,
-0.09356638789176941,
0.4188387095928192,
0.06471099704504013,
0.07804009318351746,
0.7230544090270996,
-0.18922698497772217,
0.3057195246219635,
-0.11392057687044144,
0.06655145436525345,
0.4283348619937897,
-0.30058300495147705,
0.09556792676448822,
-0.27567583322525024,
-0.17809094488620758,
0.26815199851989746,
0.06595925241708755,
0.07823945581912994,
0.12902981042861938,
-0.15051905810832977,
-0.22373232245445251,
-0.04794645309448242,
0.39723190665245056,
-0.32706522941589355,
-0.04415859654545784,
-0.13649465143680573,
-0.13811156153678894,
0.27960526943206787,
0.31143349409103394,
0.22344595193862915,
-0.19685222208499908,
-0.33514007925987244,
-0.07631335407495499,
0.058342255651950836,
-0.0906086266040802,
-0.15195634961128235,
-0.23354099690914154,
0.009937024675309658,
-0.434883713722229,
0.21410052478313446,
-0.05683824047446251,
0.5167143940925598,
-0.19329920411109924,
-0.24144574999809265,
0.19095344841480255,
0.04557504132390022,
0.3841463029384613,
-0.43404343724250793,
-0.06532153487205505,
0.029513783752918243,
0.28089267015457153,
0.008319266140460968,
-0.034868963062763214,
-0.21379241347312927,
-0.029552772641181946,
-0.06351233273744583,
0.249701589345932,
-0.39443913102149963,
0.03461014851927757,
0.19812792539596558,
-0.01058704312890768,
-0.05829703435301781,
0.09679176658391953,
-0.3246833086013794,
-0.15624868869781494,
-0.36557793617248535,
-0.11609907448291779,
-0.0016206020954996347,
0.39171844720840454,
-0.07532118260860443,
0.12927326560020447,
0.050091031938791275,
0.06310010701417923,
0.1568194180727005,
0.30181968212127686,
0.20262494683265686,
0.32431116700172424,
-0.013156958855688572,
0.07216021418571472,
0.2831901013851166,
0.02561023458838463,
0.22079505026340485,
-0.14619728922843933,
-0.2738591432571411,
0.2612325847148895,
-0.18134909868240356,
0.4160307049751282,
0.22627326846122742,
0.043782006949186325,
0.3852494955062866,
0.24814166128635406,
0.301874041557312,
-0.118220753967762,
0.19121265411376953,
0.1809832602739334,
0.1384355127811432,
-0.17644762992858887,
-0.5916276574134827,
0.18264617025852203,
-0.001579504576511681,
-0.14127077162265778,
0.5324422717094421,
0.15324939787387848,
-0.17528139054775238,
0.14758679270744324,
-0.08015857636928558,
0.7479305863380432,
-0.22922533750534058,
-0.14477676153182983,
0.13463890552520752,
-0.5475711822509766,
0.17607706785202026,
-0.25836944580078125,
0.4103800356388092,
-0.3027965724468231,
-0.42298686504364014,
-0.049276117235422134,
0.15004228055477142,
0.20791859924793243,
0.13270880281925201,
-0.03133236616849899,
0.2694016993045807,
-0.10941451042890549,
0.6317188739776611,
-0.06709014624357224,
-0.10222062468528748,
-0.1784977912902832,
-0.3504387438297272,
-0.35259371995925903,
0.1487869769334793,
-0.15913674235343933,
-0.25543829798698425,
0.08017775416374207,
0.2282804697751999,
0.12101579457521439,
-0.00947900302708149,
0.13440142571926117,
-0.004592303652316332,
0.08380921185016632,
0.026207176968455315,
-0.44128257036209106,
-0.27659088373184204,
-0.35354042053222656,
0.012142962776124477,
-0.02851126715540886,
-0.017435334622859955,
-0.01916571334004402,
0.2909490764141083,
0.24921022355556488,
0.37272927165031433,
-0.19279643893241882,
0.21725104749202728,
0.09230533242225647,
-0.0545281283557415,
-0.18842647969722748,
0.022212039679288864,
0.03416532278060913,
-0.26846909523010254,
-0.23833149671554565,
-0.1408398598432541,
0.3383985757827759,
-0.17271026968955994,
-0.0500941164791584,
-0.07828269898891449,
-0.11555994302034378,
-0.4034649133682251,
0.19037039577960968,
-0.47410547733306885,
-0.1517753303050995,
0.03559447452425957,
0.013447047211229801,
-0.16311347484588623,
-0.17889349162578583,
0.7064644694328308,
0.0210625771433115,
0.3204665184020996,
0.4643809497356415,
0.0334404893219471,
-0.38723039627075195,
-0.2655165195465088,
-0.34447237849235535,
-0.11178211122751236,
-0.23605583608150482,
0.10217448323965073,
0.11979258805513382,
-0.3220475912094116,
0.2585485577583313,
-0.012471983209252357,
-0.35393044352531433,
0.3056658208370209,
-0.3768985867500305,
-0.24690212309360504,
-0.300545334815979,
0.030235638841986656,
0.2860625982284546,
0.05332973226904869,
-0.03682883083820343,
0.13691586256027222,
-0.12299107015132904,
-0.19486135244369507,
-0.4011881351470947,
-0.2069963812828064,
0.08114555478096008,
0.3210965096950531,
0.11699438840150833,
-0.1421424299478531,
0.012026543729007244,
-0.1435254067182541,
0.38174527883529663,
-0.06402641534805298,
0.12048833072185516,
-0.30134597420692444,
-0.11053934693336487,
0.07008601725101471,
0.07277543842792511,
0.06080878525972366,
-0.4344857335090637,
-0.23872920870780945,
-0.40634283423423767,
-0.1456739455461502,
0.2645634412765503,
0.16594655811786652,
-0.07300202548503876,
0.08178866654634476,
0.05145846679806709,
-0.088066965341568,
0.13597270846366882,
-0.14190232753753662,
0.11181937158107758,
-0.039729975163936615,
-0.2456478327512741,
0.010197366587817669,
0.026862652972340584,
0.05944400280714035,
-0.15717141330242157,
-0.04742231220006943,
0.15949878096580505,
-0.011924713850021362,
0.22573189437389374,
-0.11326249688863754,
0.14696308970451355,
-0.03001359850168228,
0.4552222192287445,
0.38797426223754883,
0.18268321454524994,
-0.4459148943424225,
0.15843765437602997,
0.21414104104042053,
-0.32892850041389465,
-0.0269478727132082,
-0.08624986559152603,
-0.08389849215745926,
0.2800433337688446,
-0.08404042571783066,
0.11381246149539948,
-0.2519206702709198,
-0.34932056069374084,
0.04774538427591324,
0.20498040318489075,
-0.23780199885368347,
0.09328446537256241,
0.648227334022522,
0.0644342228770256,
0.27344241738319397,
0.23594003915786743,
0.15591013431549072,
-0.4047485589981079,
0.5919973254203796,
0.26794737577438354,
0.17049211263656616,
0.2565017640590668,
0.08235609531402588,
-0.2634167969226837,
-0.01956568844616413,
-0.10522221028804779,
0.04897131025791168,
-0.07179486751556396,
0.45320308208465576,
0.23198159039020538,
-0.0869821235537529,
0.11618075519800186,
-0.1311454325914383,
-0.1605103462934494,
0.30017781257629395,
-0.05371452495455742,
-0.28765320777893066,
-0.35215964913368225,
-0.08721620589494705,
0.044906094670295715,
0.18085609376430511,
-0.011453282088041306,
0.4032352566719055,
0.5664904117584229,
-0.18379877507686615,
0.27860379219055176,
-0.39946478605270386,
-0.05831199884414673,
0.0732857882976532,
0.41703295707702637,
-0.179387167096138,
0.14944840967655182,
0.3655549883842468,
0.15702174603939056,
0.47662416100502014,
-0.11310559511184692,
-0.21470263600349426,
-0.071574866771698,
0.25215446949005127,
0.03425247222185135,
0.061397816985845566,
-0.35900914669036865,
0.0488201342523098,
0.29460403323173523,
0.25223973393440247,
0.11044944822788239,
0.1041189432144165,
0.23069892823696136,
-0.2290610820055008,
0.14716103672981262,
0.2661655843257904,
0.22396303713321686,
0.09771519899368286,
0.17542466521263123,
0.010407039895653725,
-0.23325680196285248,
-0.1166326254606247,
-0.3429913818836212,
-0.3034931719303131,
0.05960977450013161,
0.30338796973228455,
-0.20497769117355347,
0.06573011726140976,
-0.019933300092816353,
0.14967314898967743,
0.25261127948760986,
0.4171769917011261,
-0.06396128237247467,
-0.29117056727409363,
-0.19802168011665344,
-0.4567641615867615,
-0.5000351071357727,
0.0872899517416954,
0.17801877856254578,
-0.16933219134807587,
0.050265613943338394,
-0.1455538123846054,
0.20222456753253937,
-0.30892708897590637,
0.02720920741558075,
-0.29890063405036926,
-0.251786470413208,
0.3222236931324005,
-0.31377166509628296,
-0.11090188473463058,
0.06410469114780426,
0.2451229691505432,
0.027502572163939476,
-0.19131624698638916,
0.32124629616737366,
0.36004191637039185,
0.18059620261192322,
-0.08365987241268158,
0.1982351839542389,
0.05676807463169098,
-0.11052077263593674,
-0.049283817410469055,
-0.3022259771823883,
0.3310239613056183,
-0.2943383753299713,
0.026679573580622673,
-0.016124987974762917,
-0.27911779284477234,
-0.22542263567447662,
0.2709921598434448,
0.03456613048911095,
0.3055758774280548,
0.3240266442298889,
0.1623477339744568,
0.010238843970000744,
0.2488682121038437,
-0.12387429922819138,
0.08378419280052185,
-0.21690458059310913,
0.3057175278663635,
0.1578177958726883,
0.15206550061702728,
-0.05985860154032707,
0.0712028443813324,
0.11864209175109863,
0.1891176849603653,
-0.2542222738265991,
-0.5591892600059509,
0.6637262105941772,
-0.14816193282604218,
-0.5515402555465698,
0.0363900288939476,
0.03184336796402931,
0.3892325162887573,
0.10625236481428146,
-0.3787274658679962,
0.19067609310150146,
0.07499456405639648,
-0.30092760920524597,
0.03963414207100868,
0.2423074096441269,
-0.11219654232263565,
0.026120811700820923,
0.000035968874726677313,
0.06979836523532867,
0.26646074652671814,
-0.15200315415859222,
-0.2840254604816437,
0.09434971958398819
] |
https://github.com/huggingface/datasets/issues/5245
|
Unable to rename columns in streaming dataset
|
So if you iterate over the `IterableDataset` as `next(iter(ds))` and then run `rename_columns` when checking that data it will work, but in the end, it's just renaming the column one example/batch at a time, not renaming the column name for all the entries in the dataset, which is the ideal.
|
### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1
| 50 |
Unable to rename columns in streaming dataset
|
[
-0.05291186273097992,
0.12929363548755646,
-0.17357072234153748,
-0.19321800768375397,
0.5348762273788452,
0.12788330018520355,
0.5244086384773254,
0.02997264824807644,
-0.04588199779391289,
0.17902275919914246,
-0.2105485051870346,
0.12466579675674438,
0.10746739059686661,
0.3022327125072479,
-0.1899797022342682,
-0.3037330210208893,
0.19846384227275848,
0.2961532473564148,
-0.06824074685573578,
0.023311354219913483,
-0.11815961450338364,
-0.1297299563884735,
-0.18556730449199677,
-0.12714850902557373,
0.1425221860408783,
-0.045610956847667694,
0.0664258822798729,
-0.0007890925626270473,
-0.22200514376163483,
-0.07214628159999847,
-0.3414791226387024,
0.44111478328704834,
-0.1847783327102661,
0.4335247874259949,
-0.00010447695240145549,
-0.032682668417692184,
0.15387077629566193,
-0.0579233318567276,
-0.4327091574668884,
0.13178163766860962,
-0.27300935983657837,
0.123903788626194,
-0.17581897974014282,
-0.3113671541213989,
0.05708707496523857,
-0.21929827332496643,
-0.0212367195636034,
-0.41345569491386414,
-0.02026841789484024,
0.19007210433483124,
0.25891727209091187,
0.03090595081448555,
-0.04657546803355217,
-0.02428838424384594,
0.031397733837366104,
-0.10302401334047318,
-0.1494738757610321,
-0.10017109662294388,
-0.006040477659553289,
0.0589301660656929,
-0.07594852149486542,
0.5642314553260803,
-0.0029239666182547808,
0.07448991388082504,
0.1358322948217392,
0.06758670508861542,
-0.28448429703712463,
0.03582514822483063,
0.5365245938301086,
0.07979489117860794,
0.5187551379203796,
-0.2775844931602478,
-0.22813723981380463,
0.01558638270944357,
0.14807596802711487,
-0.4059866964817047,
-0.0874699130654335,
0.0901712030172348,
0.16716265678405762,
-0.02081589214503765,
-0.09254127740859985,
-0.22078579664230347,
-0.09432339668273926,
0.0184518750756979,
0.05231931805610657,
0.07274696975946426,
0.08129321783781052,
0.14525392651557922,
-0.26120126247406006,
-0.21229715645313263,
0.3565700948238373,
-0.013819589279592037,
-0.040036898106336594,
-0.05998970940709114,
-0.4291824698448181,
0.23243354260921478,
0.01836969144642353,
0.06969208270311356,
-0.4227243661880493,
0.0591534785926342,
0.2969726324081421,
0.046040356159210205,
0.41991087794303894,
-0.06934435665607452,
-0.2652764916419983,
0.13384884595870972,
-0.006918424274772406,
0.07250753790140152,
0.3080299496650696,
0.26912933588027954,
-0.0773046612739563,
-0.16626276075839996,
0.008980563841760159,
0.14911408722400665,
-0.06873703002929688,
0.050775010138750076,
0.008035167120397091,
0.07920685410499573,
-0.17038358747959137,
0.04843165725469589,
0.10086497664451599,
-0.09271620213985443,
0.10450456291437149,
0.3349584639072418,
0.14910458028316498,
0.23754726350307465,
-0.03910301253199577,
0.16929736733436584,
0.09375271201133728,
-0.13432517647743225,
-0.22569496929645538,
0.021842733025550842,
-0.19240771234035492,
-0.1177646592259407,
0.16308172047138214,
-0.16531440615653992,
0.008968002162873745,
-0.12121586501598358,
-0.022528333589434624,
0.015369892120361328,
-0.0898444652557373,
-0.019710730761289597,
-0.03747688978910446,
0.1705276072025299,
-0.006080270279198885,
0.00845517497509718,
-0.07295122742652893,
-0.03429742529988289,
0.18006731569766998,
0.025681596249341965,
0.01973005011677742,
-0.08099702000617981,
-0.09845233708620071,
0.25584861636161804,
0.2970941364765167,
-0.04226718097925186,
0.07478342205286026,
0.210969477891922,
0.15124520659446716,
-0.21498741209506989,
0.0729144886136055,
0.09760567545890808,
0.26059451699256897,
0.04198213666677475,
-0.051056869328022,
0.002709195716306567,
-0.2863381803035736,
-0.02137073315680027,
-0.19169974327087402,
0.14774560928344727,
0.5088766813278198,
0.04981344938278198,
0.1877959966659546,
-0.4119115471839905,
0.23090115189552307,
0.23335638642311096,
0.37859591841697693,
-0.1272139847278595,
-0.1715654730796814,
0.009396780282258987,
-0.27423349022865295,
-0.22633762657642365,
0.4675949513912201,
-0.03272899612784386,
0.28082671761512756,
0.035246483981609344,
0.05342811718583107,
-0.059392645955085754,
0.12719009816646576,
0.1198049932718277,
-0.07885728776454926,
-0.073454350233078,
0.009567494504153728,
0.08056072890758514,
-0.07112827897071838,
0.32410866022109985,
0.2068130075931549,
0.08467145264148712,
0.04299067705869675,
-0.264098584651947,
0.2737942337989807,
0.10977042466402054,
0.13763019442558289,
0.2870107889175415,
0.03241302818059921,
-0.04986295476555824,
-0.40360280871391296,
-0.13615886867046356,
0.6104605197906494,
-0.014338831417262554,
0.03904912993311882,
-0.21003086864948273,
-0.3263431787490845,
-0.1357889175415039,
0.10110551863908768,
0.23052693903446198,
0.182017982006073,
0.48346397280693054,
-0.09944632649421692,
-0.32353225350379944,
-0.27116456627845764,
0.24447211623191833,
-0.46608099341392517,
-0.026458971202373505,
-0.21654176712036133,
0.06067000702023506,
0.04938408359885216,
-0.23431678116321564,
-0.058499205857515335,
0.11317289620637894,
0.24098414182662964,
0.12095700949430466,
-0.2082558572292328,
0.4433767795562744,
-0.09905257076025009,
0.361275315284729,
0.010056933388113976,
0.0964258685708046,
-0.23335233330726624,
0.13524313271045685,
0.0683615580201149,
0.005292111542075872,
0.13534514605998993,
0.165705606341362,
-0.3355955481529236,
0.02013246901333332,
-0.25778964161872864,
0.2187139391899109,
0.15346676111221313,
-0.06844533234834671,
0.34618645906448364,
-0.07351354509592056,
-0.0600421242415905,
-0.42826905846595764,
0.08841930329799652,
-0.13673537969589233,
-0.019065123051404953,
-0.14988818764686584,
-0.5772660374641418,
0.07797040790319443,
0.4106452465057373,
0.06561862677335739,
-0.0851372703909874,
0.02640833705663681,
-0.008168534375727177,
-0.10597448796033859,
0.1530177742242813,
0.5167679786682129,
0.2752953767776489,
0.2837967276573181,
0.200938880443573,
0.10190262645483017,
0.17583085596561432,
-0.39775022864341736,
0.17926616966724396,
0.07641537487506866,
-0.09156403690576553,
0.3613468408584595,
0.40903913974761963,
-0.3172943890094757,
-0.5318496227264404,
-0.1017993912100792,
0.46412742137908936,
0.1528581976890564,
-0.2373746931552887,
0.03275304287672043,
-0.27179840207099915,
-0.2771739065647125,
0.01723562739789486,
-0.11818879842758179,
0.15892788767814636,
-0.4318621754646301,
0.1674043834209442,
0.4800211489200592,
-0.2773122489452362,
0.20970602333545685,
-0.015284367837011814,
-0.03677981719374657,
0.01956101693212986,
0.37876608967781067,
-0.5974567532539368,
-0.28446632623672485,
0.16514357924461365,
0.17971833050251007,
-0.18343372642993927,
-0.03350146487355232,
0.2813809812068939,
-0.07063930481672287,
0.07674495130777359,
-0.4488691985607147,
-0.21543151140213013,
-0.05250943452119827,
-0.1916930079460144,
-0.05047445744276047,
0.14003680646419525,
0.32544100284576416,
-0.13288453221321106,
-0.29227906465530396,
0.2632974088191986,
-0.0035884578246623278,
-0.0027157729491591454,
0.11403990536928177,
-0.033431023359298706,
-0.002773449057713151,
-0.17906637489795685,
-0.4577990770339966,
-0.1744547188282013,
-0.35406532883644104,
0.12545982003211975,
-0.28386983275413513,
0.11098872125148773,
-0.03609483316540718,
-0.2389659881591797,
-0.33614251017570496,
0.14095477759838104,
0.07544676214456558,
-0.39692527055740356,
-0.28214049339294434,
0.11706986278295517,
-0.23167292773723602,
-0.12570102512836456,
0.04014670476317406,
0.31496068835258484,
0.174593985080719,
0.3379329442977905,
0.08136186003684998,
0.03868497535586357,
0.03894602134823799,
-0.1813572347164154,
0.0958818569779396,
-0.0996629074215889,
-0.008612888865172863,
0.07454521209001541,
-0.18931259214878082,
-0.23597224056720734,
0.07458926737308502,
-0.09356638789176941,
0.4188387095928192,
0.06471099704504013,
0.07804009318351746,
0.7230544090270996,
-0.18922698497772217,
0.3057195246219635,
-0.11392057687044144,
0.06655145436525345,
0.4283348619937897,
-0.30058300495147705,
0.09556792676448822,
-0.27567583322525024,
-0.17809094488620758,
0.26815199851989746,
0.06595925241708755,
0.07823945581912994,
0.12902981042861938,
-0.15051905810832977,
-0.22373232245445251,
-0.04794645309448242,
0.39723190665245056,
-0.32706522941589355,
-0.04415859654545784,
-0.13649465143680573,
-0.13811156153678894,
0.27960526943206787,
0.31143349409103394,
0.22344595193862915,
-0.19685222208499908,
-0.33514007925987244,
-0.07631335407495499,
0.058342255651950836,
-0.0906086266040802,
-0.15195634961128235,
-0.23354099690914154,
0.009937024675309658,
-0.434883713722229,
0.21410052478313446,
-0.05683824047446251,
0.5167143940925598,
-0.19329920411109924,
-0.24144574999809265,
0.19095344841480255,
0.04557504132390022,
0.3841463029384613,
-0.43404343724250793,
-0.06532153487205505,
0.029513783752918243,
0.28089267015457153,
0.008319266140460968,
-0.034868963062763214,
-0.21379241347312927,
-0.029552772641181946,
-0.06351233273744583,
0.249701589345932,
-0.39443913102149963,
0.03461014851927757,
0.19812792539596558,
-0.01058704312890768,
-0.05829703435301781,
0.09679176658391953,
-0.3246833086013794,
-0.15624868869781494,
-0.36557793617248535,
-0.11609907448291779,
-0.0016206020954996347,
0.39171844720840454,
-0.07532118260860443,
0.12927326560020447,
0.050091031938791275,
0.06310010701417923,
0.1568194180727005,
0.30181968212127686,
0.20262494683265686,
0.32431116700172424,
-0.013156958855688572,
0.07216021418571472,
0.2831901013851166,
0.02561023458838463,
0.22079505026340485,
-0.14619728922843933,
-0.2738591432571411,
0.2612325847148895,
-0.18134909868240356,
0.4160307049751282,
0.22627326846122742,
0.043782006949186325,
0.3852494955062866,
0.24814166128635406,
0.301874041557312,
-0.118220753967762,
0.19121265411376953,
0.1809832602739334,
0.1384355127811432,
-0.17644762992858887,
-0.5916276574134827,
0.18264617025852203,
-0.001579504576511681,
-0.14127077162265778,
0.5324422717094421,
0.15324939787387848,
-0.17528139054775238,
0.14758679270744324,
-0.08015857636928558,
0.7479305863380432,
-0.22922533750534058,
-0.14477676153182983,
0.13463890552520752,
-0.5475711822509766,
0.17607706785202026,
-0.25836944580078125,
0.4103800356388092,
-0.3027965724468231,
-0.42298686504364014,
-0.049276117235422134,
0.15004228055477142,
0.20791859924793243,
0.13270880281925201,
-0.03133236616849899,
0.2694016993045807,
-0.10941451042890549,
0.6317188739776611,
-0.06709014624357224,
-0.10222062468528748,
-0.1784977912902832,
-0.3504387438297272,
-0.35259371995925903,
0.1487869769334793,
-0.15913674235343933,
-0.25543829798698425,
0.08017775416374207,
0.2282804697751999,
0.12101579457521439,
-0.00947900302708149,
0.13440142571926117,
-0.004592303652316332,
0.08380921185016632,
0.026207176968455315,
-0.44128257036209106,
-0.27659088373184204,
-0.35354042053222656,
0.012142962776124477,
-0.02851126715540886,
-0.017435334622859955,
-0.01916571334004402,
0.2909490764141083,
0.24921022355556488,
0.37272927165031433,
-0.19279643893241882,
0.21725104749202728,
0.09230533242225647,
-0.0545281283557415,
-0.18842647969722748,
0.022212039679288864,
0.03416532278060913,
-0.26846909523010254,
-0.23833149671554565,
-0.1408398598432541,
0.3383985757827759,
-0.17271026968955994,
-0.0500941164791584,
-0.07828269898891449,
-0.11555994302034378,
-0.4034649133682251,
0.19037039577960968,
-0.47410547733306885,
-0.1517753303050995,
0.03559447452425957,
0.013447047211229801,
-0.16311347484588623,
-0.17889349162578583,
0.7064644694328308,
0.0210625771433115,
0.3204665184020996,
0.4643809497356415,
0.0334404893219471,
-0.38723039627075195,
-0.2655165195465088,
-0.34447237849235535,
-0.11178211122751236,
-0.23605583608150482,
0.10217448323965073,
0.11979258805513382,
-0.3220475912094116,
0.2585485577583313,
-0.012471983209252357,
-0.35393044352531433,
0.3056658208370209,
-0.3768985867500305,
-0.24690212309360504,
-0.300545334815979,
0.030235638841986656,
0.2860625982284546,
0.05332973226904869,
-0.03682883083820343,
0.13691586256027222,
-0.12299107015132904,
-0.19486135244369507,
-0.4011881351470947,
-0.2069963812828064,
0.08114555478096008,
0.3210965096950531,
0.11699438840150833,
-0.1421424299478531,
0.012026543729007244,
-0.1435254067182541,
0.38174527883529663,
-0.06402641534805298,
0.12048833072185516,
-0.30134597420692444,
-0.11053934693336487,
0.07008601725101471,
0.07277543842792511,
0.06080878525972366,
-0.4344857335090637,
-0.23872920870780945,
-0.40634283423423767,
-0.1456739455461502,
0.2645634412765503,
0.16594655811786652,
-0.07300202548503876,
0.08178866654634476,
0.05145846679806709,
-0.088066965341568,
0.13597270846366882,
-0.14190232753753662,
0.11181937158107758,
-0.039729975163936615,
-0.2456478327512741,
0.010197366587817669,
0.026862652972340584,
0.05944400280714035,
-0.15717141330242157,
-0.04742231220006943,
0.15949878096580505,
-0.011924713850021362,
0.22573189437389374,
-0.11326249688863754,
0.14696308970451355,
-0.03001359850168228,
0.4552222192287445,
0.38797426223754883,
0.18268321454524994,
-0.4459148943424225,
0.15843765437602997,
0.21414104104042053,
-0.32892850041389465,
-0.0269478727132082,
-0.08624986559152603,
-0.08389849215745926,
0.2800433337688446,
-0.08404042571783066,
0.11381246149539948,
-0.2519206702709198,
-0.34932056069374084,
0.04774538427591324,
0.20498040318489075,
-0.23780199885368347,
0.09328446537256241,
0.648227334022522,
0.0644342228770256,
0.27344241738319397,
0.23594003915786743,
0.15591013431549072,
-0.4047485589981079,
0.5919973254203796,
0.26794737577438354,
0.17049211263656616,
0.2565017640590668,
0.08235609531402588,
-0.2634167969226837,
-0.01956568844616413,
-0.10522221028804779,
0.04897131025791168,
-0.07179486751556396,
0.45320308208465576,
0.23198159039020538,
-0.0869821235537529,
0.11618075519800186,
-0.1311454325914383,
-0.1605103462934494,
0.30017781257629395,
-0.05371452495455742,
-0.28765320777893066,
-0.35215964913368225,
-0.08721620589494705,
0.044906094670295715,
0.18085609376430511,
-0.011453282088041306,
0.4032352566719055,
0.5664904117584229,
-0.18379877507686615,
0.27860379219055176,
-0.39946478605270386,
-0.05831199884414673,
0.0732857882976532,
0.41703295707702637,
-0.179387167096138,
0.14944840967655182,
0.3655549883842468,
0.15702174603939056,
0.47662416100502014,
-0.11310559511184692,
-0.21470263600349426,
-0.071574866771698,
0.25215446949005127,
0.03425247222185135,
0.061397816985845566,
-0.35900914669036865,
0.0488201342523098,
0.29460403323173523,
0.25223973393440247,
0.11044944822788239,
0.1041189432144165,
0.23069892823696136,
-0.2290610820055008,
0.14716103672981262,
0.2661655843257904,
0.22396303713321686,
0.09771519899368286,
0.17542466521263123,
0.010407039895653725,
-0.23325680196285248,
-0.1166326254606247,
-0.3429913818836212,
-0.3034931719303131,
0.05960977450013161,
0.30338796973228455,
-0.20497769117355347,
0.06573011726140976,
-0.019933300092816353,
0.14967314898967743,
0.25261127948760986,
0.4171769917011261,
-0.06396128237247467,
-0.29117056727409363,
-0.19802168011665344,
-0.4567641615867615,
-0.5000351071357727,
0.0872899517416954,
0.17801877856254578,
-0.16933219134807587,
0.050265613943338394,
-0.1455538123846054,
0.20222456753253937,
-0.30892708897590637,
0.02720920741558075,
-0.29890063405036926,
-0.251786470413208,
0.3222236931324005,
-0.31377166509628296,
-0.11090188473463058,
0.06410469114780426,
0.2451229691505432,
0.027502572163939476,
-0.19131624698638916,
0.32124629616737366,
0.36004191637039185,
0.18059620261192322,
-0.08365987241268158,
0.1982351839542389,
0.05676807463169098,
-0.11052077263593674,
-0.049283817410469055,
-0.3022259771823883,
0.3310239613056183,
-0.2943383753299713,
0.026679573580622673,
-0.016124987974762917,
-0.27911779284477234,
-0.22542263567447662,
0.2709921598434448,
0.03456613048911095,
0.3055758774280548,
0.3240266442298889,
0.1623477339744568,
0.010238843970000744,
0.2488682121038437,
-0.12387429922819138,
0.08378419280052185,
-0.21690458059310913,
0.3057175278663635,
0.1578177958726883,
0.15206550061702728,
-0.05985860154032707,
0.0712028443813324,
0.11864209175109863,
0.1891176849603653,
-0.2542222738265991,
-0.5591892600059509,
0.6637262105941772,
-0.14816193282604218,
-0.5515402555465698,
0.0363900288939476,
0.03184336796402931,
0.3892325162887573,
0.10625236481428146,
-0.3787274658679962,
0.19067609310150146,
0.07499456405639648,
-0.30092760920524597,
0.03963414207100868,
0.2423074096441269,
-0.11219654232263565,
0.026120811700820923,
0.000035968874726677313,
0.06979836523532867,
0.26646074652671814,
-0.15200315415859222,
-0.2840254604816437,
0.09434971958398819
] |
https://github.com/huggingface/datasets/issues/5245
|
Unable to rename columns in streaming dataset
|
@alvarobartt Thanks. My use case was that I wanted to do multiple things, ie removing all unnecessary columns, renaming some valid columns, and then using cast (in my case checking if the audio is not 16K and casting it). It is just convenient to look into the info.features between each of these operations. Alternatively, I will just plan ahead...;) To me it seems like all the operations are working.
Thanks for the advice. It was very useful.
|
### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1
| 77 |
Unable to rename columns in streaming dataset
|
[
-0.05291186273097992,
0.12929363548755646,
-0.17357072234153748,
-0.19321800768375397,
0.5348762273788452,
0.12788330018520355,
0.5244086384773254,
0.02997264824807644,
-0.04588199779391289,
0.17902275919914246,
-0.2105485051870346,
0.12466579675674438,
0.10746739059686661,
0.3022327125072479,
-0.1899797022342682,
-0.3037330210208893,
0.19846384227275848,
0.2961532473564148,
-0.06824074685573578,
0.023311354219913483,
-0.11815961450338364,
-0.1297299563884735,
-0.18556730449199677,
-0.12714850902557373,
0.1425221860408783,
-0.045610956847667694,
0.0664258822798729,
-0.0007890925626270473,
-0.22200514376163483,
-0.07214628159999847,
-0.3414791226387024,
0.44111478328704834,
-0.1847783327102661,
0.4335247874259949,
-0.00010447695240145549,
-0.032682668417692184,
0.15387077629566193,
-0.0579233318567276,
-0.4327091574668884,
0.13178163766860962,
-0.27300935983657837,
0.123903788626194,
-0.17581897974014282,
-0.3113671541213989,
0.05708707496523857,
-0.21929827332496643,
-0.0212367195636034,
-0.41345569491386414,
-0.02026841789484024,
0.19007210433483124,
0.25891727209091187,
0.03090595081448555,
-0.04657546803355217,
-0.02428838424384594,
0.031397733837366104,
-0.10302401334047318,
-0.1494738757610321,
-0.10017109662294388,
-0.006040477659553289,
0.0589301660656929,
-0.07594852149486542,
0.5642314553260803,
-0.0029239666182547808,
0.07448991388082504,
0.1358322948217392,
0.06758670508861542,
-0.28448429703712463,
0.03582514822483063,
0.5365245938301086,
0.07979489117860794,
0.5187551379203796,
-0.2775844931602478,
-0.22813723981380463,
0.01558638270944357,
0.14807596802711487,
-0.4059866964817047,
-0.0874699130654335,
0.0901712030172348,
0.16716265678405762,
-0.02081589214503765,
-0.09254127740859985,
-0.22078579664230347,
-0.09432339668273926,
0.0184518750756979,
0.05231931805610657,
0.07274696975946426,
0.08129321783781052,
0.14525392651557922,
-0.26120126247406006,
-0.21229715645313263,
0.3565700948238373,
-0.013819589279592037,
-0.040036898106336594,
-0.05998970940709114,
-0.4291824698448181,
0.23243354260921478,
0.01836969144642353,
0.06969208270311356,
-0.4227243661880493,
0.0591534785926342,
0.2969726324081421,
0.046040356159210205,
0.41991087794303894,
-0.06934435665607452,
-0.2652764916419983,
0.13384884595870972,
-0.006918424274772406,
0.07250753790140152,
0.3080299496650696,
0.26912933588027954,
-0.0773046612739563,
-0.16626276075839996,
0.008980563841760159,
0.14911408722400665,
-0.06873703002929688,
0.050775010138750076,
0.008035167120397091,
0.07920685410499573,
-0.17038358747959137,
0.04843165725469589,
0.10086497664451599,
-0.09271620213985443,
0.10450456291437149,
0.3349584639072418,
0.14910458028316498,
0.23754726350307465,
-0.03910301253199577,
0.16929736733436584,
0.09375271201133728,
-0.13432517647743225,
-0.22569496929645538,
0.021842733025550842,
-0.19240771234035492,
-0.1177646592259407,
0.16308172047138214,
-0.16531440615653992,
0.008968002162873745,
-0.12121586501598358,
-0.022528333589434624,
0.015369892120361328,
-0.0898444652557373,
-0.019710730761289597,
-0.03747688978910446,
0.1705276072025299,
-0.006080270279198885,
0.00845517497509718,
-0.07295122742652893,
-0.03429742529988289,
0.18006731569766998,
0.025681596249341965,
0.01973005011677742,
-0.08099702000617981,
-0.09845233708620071,
0.25584861636161804,
0.2970941364765167,
-0.04226718097925186,
0.07478342205286026,
0.210969477891922,
0.15124520659446716,
-0.21498741209506989,
0.0729144886136055,
0.09760567545890808,
0.26059451699256897,
0.04198213666677475,
-0.051056869328022,
0.002709195716306567,
-0.2863381803035736,
-0.02137073315680027,
-0.19169974327087402,
0.14774560928344727,
0.5088766813278198,
0.04981344938278198,
0.1877959966659546,
-0.4119115471839905,
0.23090115189552307,
0.23335638642311096,
0.37859591841697693,
-0.1272139847278595,
-0.1715654730796814,
0.009396780282258987,
-0.27423349022865295,
-0.22633762657642365,
0.4675949513912201,
-0.03272899612784386,
0.28082671761512756,
0.035246483981609344,
0.05342811718583107,
-0.059392645955085754,
0.12719009816646576,
0.1198049932718277,
-0.07885728776454926,
-0.073454350233078,
0.009567494504153728,
0.08056072890758514,
-0.07112827897071838,
0.32410866022109985,
0.2068130075931549,
0.08467145264148712,
0.04299067705869675,
-0.264098584651947,
0.2737942337989807,
0.10977042466402054,
0.13763019442558289,
0.2870107889175415,
0.03241302818059921,
-0.04986295476555824,
-0.40360280871391296,
-0.13615886867046356,
0.6104605197906494,
-0.014338831417262554,
0.03904912993311882,
-0.21003086864948273,
-0.3263431787490845,
-0.1357889175415039,
0.10110551863908768,
0.23052693903446198,
0.182017982006073,
0.48346397280693054,
-0.09944632649421692,
-0.32353225350379944,
-0.27116456627845764,
0.24447211623191833,
-0.46608099341392517,
-0.026458971202373505,
-0.21654176712036133,
0.06067000702023506,
0.04938408359885216,
-0.23431678116321564,
-0.058499205857515335,
0.11317289620637894,
0.24098414182662964,
0.12095700949430466,
-0.2082558572292328,
0.4433767795562744,
-0.09905257076025009,
0.361275315284729,
0.010056933388113976,
0.0964258685708046,
-0.23335233330726624,
0.13524313271045685,
0.0683615580201149,
0.005292111542075872,
0.13534514605998993,
0.165705606341362,
-0.3355955481529236,
0.02013246901333332,
-0.25778964161872864,
0.2187139391899109,
0.15346676111221313,
-0.06844533234834671,
0.34618645906448364,
-0.07351354509592056,
-0.0600421242415905,
-0.42826905846595764,
0.08841930329799652,
-0.13673537969589233,
-0.019065123051404953,
-0.14988818764686584,
-0.5772660374641418,
0.07797040790319443,
0.4106452465057373,
0.06561862677335739,
-0.0851372703909874,
0.02640833705663681,
-0.008168534375727177,
-0.10597448796033859,
0.1530177742242813,
0.5167679786682129,
0.2752953767776489,
0.2837967276573181,
0.200938880443573,
0.10190262645483017,
0.17583085596561432,
-0.39775022864341736,
0.17926616966724396,
0.07641537487506866,
-0.09156403690576553,
0.3613468408584595,
0.40903913974761963,
-0.3172943890094757,
-0.5318496227264404,
-0.1017993912100792,
0.46412742137908936,
0.1528581976890564,
-0.2373746931552887,
0.03275304287672043,
-0.27179840207099915,
-0.2771739065647125,
0.01723562739789486,
-0.11818879842758179,
0.15892788767814636,
-0.4318621754646301,
0.1674043834209442,
0.4800211489200592,
-0.2773122489452362,
0.20970602333545685,
-0.015284367837011814,
-0.03677981719374657,
0.01956101693212986,
0.37876608967781067,
-0.5974567532539368,
-0.28446632623672485,
0.16514357924461365,
0.17971833050251007,
-0.18343372642993927,
-0.03350146487355232,
0.2813809812068939,
-0.07063930481672287,
0.07674495130777359,
-0.4488691985607147,
-0.21543151140213013,
-0.05250943452119827,
-0.1916930079460144,
-0.05047445744276047,
0.14003680646419525,
0.32544100284576416,
-0.13288453221321106,
-0.29227906465530396,
0.2632974088191986,
-0.0035884578246623278,
-0.0027157729491591454,
0.11403990536928177,
-0.033431023359298706,
-0.002773449057713151,
-0.17906637489795685,
-0.4577990770339966,
-0.1744547188282013,
-0.35406532883644104,
0.12545982003211975,
-0.28386983275413513,
0.11098872125148773,
-0.03609483316540718,
-0.2389659881591797,
-0.33614251017570496,
0.14095477759838104,
0.07544676214456558,
-0.39692527055740356,
-0.28214049339294434,
0.11706986278295517,
-0.23167292773723602,
-0.12570102512836456,
0.04014670476317406,
0.31496068835258484,
0.174593985080719,
0.3379329442977905,
0.08136186003684998,
0.03868497535586357,
0.03894602134823799,
-0.1813572347164154,
0.0958818569779396,
-0.0996629074215889,
-0.008612888865172863,
0.07454521209001541,
-0.18931259214878082,
-0.23597224056720734,
0.07458926737308502,
-0.09356638789176941,
0.4188387095928192,
0.06471099704504013,
0.07804009318351746,
0.7230544090270996,
-0.18922698497772217,
0.3057195246219635,
-0.11392057687044144,
0.06655145436525345,
0.4283348619937897,
-0.30058300495147705,
0.09556792676448822,
-0.27567583322525024,
-0.17809094488620758,
0.26815199851989746,
0.06595925241708755,
0.07823945581912994,
0.12902981042861938,
-0.15051905810832977,
-0.22373232245445251,
-0.04794645309448242,
0.39723190665245056,
-0.32706522941589355,
-0.04415859654545784,
-0.13649465143680573,
-0.13811156153678894,
0.27960526943206787,
0.31143349409103394,
0.22344595193862915,
-0.19685222208499908,
-0.33514007925987244,
-0.07631335407495499,
0.058342255651950836,
-0.0906086266040802,
-0.15195634961128235,
-0.23354099690914154,
0.009937024675309658,
-0.434883713722229,
0.21410052478313446,
-0.05683824047446251,
0.5167143940925598,
-0.19329920411109924,
-0.24144574999809265,
0.19095344841480255,
0.04557504132390022,
0.3841463029384613,
-0.43404343724250793,
-0.06532153487205505,
0.029513783752918243,
0.28089267015457153,
0.008319266140460968,
-0.034868963062763214,
-0.21379241347312927,
-0.029552772641181946,
-0.06351233273744583,
0.249701589345932,
-0.39443913102149963,
0.03461014851927757,
0.19812792539596558,
-0.01058704312890768,
-0.05829703435301781,
0.09679176658391953,
-0.3246833086013794,
-0.15624868869781494,
-0.36557793617248535,
-0.11609907448291779,
-0.0016206020954996347,
0.39171844720840454,
-0.07532118260860443,
0.12927326560020447,
0.050091031938791275,
0.06310010701417923,
0.1568194180727005,
0.30181968212127686,
0.20262494683265686,
0.32431116700172424,
-0.013156958855688572,
0.07216021418571472,
0.2831901013851166,
0.02561023458838463,
0.22079505026340485,
-0.14619728922843933,
-0.2738591432571411,
0.2612325847148895,
-0.18134909868240356,
0.4160307049751282,
0.22627326846122742,
0.043782006949186325,
0.3852494955062866,
0.24814166128635406,
0.301874041557312,
-0.118220753967762,
0.19121265411376953,
0.1809832602739334,
0.1384355127811432,
-0.17644762992858887,
-0.5916276574134827,
0.18264617025852203,
-0.001579504576511681,
-0.14127077162265778,
0.5324422717094421,
0.15324939787387848,
-0.17528139054775238,
0.14758679270744324,
-0.08015857636928558,
0.7479305863380432,
-0.22922533750534058,
-0.14477676153182983,
0.13463890552520752,
-0.5475711822509766,
0.17607706785202026,
-0.25836944580078125,
0.4103800356388092,
-0.3027965724468231,
-0.42298686504364014,
-0.049276117235422134,
0.15004228055477142,
0.20791859924793243,
0.13270880281925201,
-0.03133236616849899,
0.2694016993045807,
-0.10941451042890549,
0.6317188739776611,
-0.06709014624357224,
-0.10222062468528748,
-0.1784977912902832,
-0.3504387438297272,
-0.35259371995925903,
0.1487869769334793,
-0.15913674235343933,
-0.25543829798698425,
0.08017775416374207,
0.2282804697751999,
0.12101579457521439,
-0.00947900302708149,
0.13440142571926117,
-0.004592303652316332,
0.08380921185016632,
0.026207176968455315,
-0.44128257036209106,
-0.27659088373184204,
-0.35354042053222656,
0.012142962776124477,
-0.02851126715540886,
-0.017435334622859955,
-0.01916571334004402,
0.2909490764141083,
0.24921022355556488,
0.37272927165031433,
-0.19279643893241882,
0.21725104749202728,
0.09230533242225647,
-0.0545281283557415,
-0.18842647969722748,
0.022212039679288864,
0.03416532278060913,
-0.26846909523010254,
-0.23833149671554565,
-0.1408398598432541,
0.3383985757827759,
-0.17271026968955994,
-0.0500941164791584,
-0.07828269898891449,
-0.11555994302034378,
-0.4034649133682251,
0.19037039577960968,
-0.47410547733306885,
-0.1517753303050995,
0.03559447452425957,
0.013447047211229801,
-0.16311347484588623,
-0.17889349162578583,
0.7064644694328308,
0.0210625771433115,
0.3204665184020996,
0.4643809497356415,
0.0334404893219471,
-0.38723039627075195,
-0.2655165195465088,
-0.34447237849235535,
-0.11178211122751236,
-0.23605583608150482,
0.10217448323965073,
0.11979258805513382,
-0.3220475912094116,
0.2585485577583313,
-0.012471983209252357,
-0.35393044352531433,
0.3056658208370209,
-0.3768985867500305,
-0.24690212309360504,
-0.300545334815979,
0.030235638841986656,
0.2860625982284546,
0.05332973226904869,
-0.03682883083820343,
0.13691586256027222,
-0.12299107015132904,
-0.19486135244369507,
-0.4011881351470947,
-0.2069963812828064,
0.08114555478096008,
0.3210965096950531,
0.11699438840150833,
-0.1421424299478531,
0.012026543729007244,
-0.1435254067182541,
0.38174527883529663,
-0.06402641534805298,
0.12048833072185516,
-0.30134597420692444,
-0.11053934693336487,
0.07008601725101471,
0.07277543842792511,
0.06080878525972366,
-0.4344857335090637,
-0.23872920870780945,
-0.40634283423423767,
-0.1456739455461502,
0.2645634412765503,
0.16594655811786652,
-0.07300202548503876,
0.08178866654634476,
0.05145846679806709,
-0.088066965341568,
0.13597270846366882,
-0.14190232753753662,
0.11181937158107758,
-0.039729975163936615,
-0.2456478327512741,
0.010197366587817669,
0.026862652972340584,
0.05944400280714035,
-0.15717141330242157,
-0.04742231220006943,
0.15949878096580505,
-0.011924713850021362,
0.22573189437389374,
-0.11326249688863754,
0.14696308970451355,
-0.03001359850168228,
0.4552222192287445,
0.38797426223754883,
0.18268321454524994,
-0.4459148943424225,
0.15843765437602997,
0.21414104104042053,
-0.32892850041389465,
-0.0269478727132082,
-0.08624986559152603,
-0.08389849215745926,
0.2800433337688446,
-0.08404042571783066,
0.11381246149539948,
-0.2519206702709198,
-0.34932056069374084,
0.04774538427591324,
0.20498040318489075,
-0.23780199885368347,
0.09328446537256241,
0.648227334022522,
0.0644342228770256,
0.27344241738319397,
0.23594003915786743,
0.15591013431549072,
-0.4047485589981079,
0.5919973254203796,
0.26794737577438354,
0.17049211263656616,
0.2565017640590668,
0.08235609531402588,
-0.2634167969226837,
-0.01956568844616413,
-0.10522221028804779,
0.04897131025791168,
-0.07179486751556396,
0.45320308208465576,
0.23198159039020538,
-0.0869821235537529,
0.11618075519800186,
-0.1311454325914383,
-0.1605103462934494,
0.30017781257629395,
-0.05371452495455742,
-0.28765320777893066,
-0.35215964913368225,
-0.08721620589494705,
0.044906094670295715,
0.18085609376430511,
-0.011453282088041306,
0.4032352566719055,
0.5664904117584229,
-0.18379877507686615,
0.27860379219055176,
-0.39946478605270386,
-0.05831199884414673,
0.0732857882976532,
0.41703295707702637,
-0.179387167096138,
0.14944840967655182,
0.3655549883842468,
0.15702174603939056,
0.47662416100502014,
-0.11310559511184692,
-0.21470263600349426,
-0.071574866771698,
0.25215446949005127,
0.03425247222185135,
0.061397816985845566,
-0.35900914669036865,
0.0488201342523098,
0.29460403323173523,
0.25223973393440247,
0.11044944822788239,
0.1041189432144165,
0.23069892823696136,
-0.2290610820055008,
0.14716103672981262,
0.2661655843257904,
0.22396303713321686,
0.09771519899368286,
0.17542466521263123,
0.010407039895653725,
-0.23325680196285248,
-0.1166326254606247,
-0.3429913818836212,
-0.3034931719303131,
0.05960977450013161,
0.30338796973228455,
-0.20497769117355347,
0.06573011726140976,
-0.019933300092816353,
0.14967314898967743,
0.25261127948760986,
0.4171769917011261,
-0.06396128237247467,
-0.29117056727409363,
-0.19802168011665344,
-0.4567641615867615,
-0.5000351071357727,
0.0872899517416954,
0.17801877856254578,
-0.16933219134807587,
0.050265613943338394,
-0.1455538123846054,
0.20222456753253937,
-0.30892708897590637,
0.02720920741558075,
-0.29890063405036926,
-0.251786470413208,
0.3222236931324005,
-0.31377166509628296,
-0.11090188473463058,
0.06410469114780426,
0.2451229691505432,
0.027502572163939476,
-0.19131624698638916,
0.32124629616737366,
0.36004191637039185,
0.18059620261192322,
-0.08365987241268158,
0.1982351839542389,
0.05676807463169098,
-0.11052077263593674,
-0.049283817410469055,
-0.3022259771823883,
0.3310239613056183,
-0.2943383753299713,
0.026679573580622673,
-0.016124987974762917,
-0.27911779284477234,
-0.22542263567447662,
0.2709921598434448,
0.03456613048911095,
0.3055758774280548,
0.3240266442298889,
0.1623477339744568,
0.010238843970000744,
0.2488682121038437,
-0.12387429922819138,
0.08378419280052185,
-0.21690458059310913,
0.3057175278663635,
0.1578177958726883,
0.15206550061702728,
-0.05985860154032707,
0.0712028443813324,
0.11864209175109863,
0.1891176849603653,
-0.2542222738265991,
-0.5591892600059509,
0.6637262105941772,
-0.14816193282604218,
-0.5515402555465698,
0.0363900288939476,
0.03184336796402931,
0.3892325162887573,
0.10625236481428146,
-0.3787274658679962,
0.19067609310150146,
0.07499456405639648,
-0.30092760920524597,
0.03963414207100868,
0.2423074096441269,
-0.11219654232263565,
0.026120811700820923,
0.000035968874726677313,
0.06979836523532867,
0.26646074652671814,
-0.15200315415859222,
-0.2840254604816437,
0.09434971958398819
] |
https://github.com/huggingface/datasets/issues/5245
|
Unable to rename columns in streaming dataset
|
If we know the features before renaming, then we know the features after renaming, so we can pass the new features to the returned dataset in `rename_column` indeed ! If anyone is interested in contributing, feel free to open a PR and I'd be happy to help / give some pointers :)
|
### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1
| 52 |
Unable to rename columns in streaming dataset
|
[
-0.05291186273097992,
0.12929363548755646,
-0.17357072234153748,
-0.19321800768375397,
0.5348762273788452,
0.12788330018520355,
0.5244086384773254,
0.02997264824807644,
-0.04588199779391289,
0.17902275919914246,
-0.2105485051870346,
0.12466579675674438,
0.10746739059686661,
0.3022327125072479,
-0.1899797022342682,
-0.3037330210208893,
0.19846384227275848,
0.2961532473564148,
-0.06824074685573578,
0.023311354219913483,
-0.11815961450338364,
-0.1297299563884735,
-0.18556730449199677,
-0.12714850902557373,
0.1425221860408783,
-0.045610956847667694,
0.0664258822798729,
-0.0007890925626270473,
-0.22200514376163483,
-0.07214628159999847,
-0.3414791226387024,
0.44111478328704834,
-0.1847783327102661,
0.4335247874259949,
-0.00010447695240145549,
-0.032682668417692184,
0.15387077629566193,
-0.0579233318567276,
-0.4327091574668884,
0.13178163766860962,
-0.27300935983657837,
0.123903788626194,
-0.17581897974014282,
-0.3113671541213989,
0.05708707496523857,
-0.21929827332496643,
-0.0212367195636034,
-0.41345569491386414,
-0.02026841789484024,
0.19007210433483124,
0.25891727209091187,
0.03090595081448555,
-0.04657546803355217,
-0.02428838424384594,
0.031397733837366104,
-0.10302401334047318,
-0.1494738757610321,
-0.10017109662294388,
-0.006040477659553289,
0.0589301660656929,
-0.07594852149486542,
0.5642314553260803,
-0.0029239666182547808,
0.07448991388082504,
0.1358322948217392,
0.06758670508861542,
-0.28448429703712463,
0.03582514822483063,
0.5365245938301086,
0.07979489117860794,
0.5187551379203796,
-0.2775844931602478,
-0.22813723981380463,
0.01558638270944357,
0.14807596802711487,
-0.4059866964817047,
-0.0874699130654335,
0.0901712030172348,
0.16716265678405762,
-0.02081589214503765,
-0.09254127740859985,
-0.22078579664230347,
-0.09432339668273926,
0.0184518750756979,
0.05231931805610657,
0.07274696975946426,
0.08129321783781052,
0.14525392651557922,
-0.26120126247406006,
-0.21229715645313263,
0.3565700948238373,
-0.013819589279592037,
-0.040036898106336594,
-0.05998970940709114,
-0.4291824698448181,
0.23243354260921478,
0.01836969144642353,
0.06969208270311356,
-0.4227243661880493,
0.0591534785926342,
0.2969726324081421,
0.046040356159210205,
0.41991087794303894,
-0.06934435665607452,
-0.2652764916419983,
0.13384884595870972,
-0.006918424274772406,
0.07250753790140152,
0.3080299496650696,
0.26912933588027954,
-0.0773046612739563,
-0.16626276075839996,
0.008980563841760159,
0.14911408722400665,
-0.06873703002929688,
0.050775010138750076,
0.008035167120397091,
0.07920685410499573,
-0.17038358747959137,
0.04843165725469589,
0.10086497664451599,
-0.09271620213985443,
0.10450456291437149,
0.3349584639072418,
0.14910458028316498,
0.23754726350307465,
-0.03910301253199577,
0.16929736733436584,
0.09375271201133728,
-0.13432517647743225,
-0.22569496929645538,
0.021842733025550842,
-0.19240771234035492,
-0.1177646592259407,
0.16308172047138214,
-0.16531440615653992,
0.008968002162873745,
-0.12121586501598358,
-0.022528333589434624,
0.015369892120361328,
-0.0898444652557373,
-0.019710730761289597,
-0.03747688978910446,
0.1705276072025299,
-0.006080270279198885,
0.00845517497509718,
-0.07295122742652893,
-0.03429742529988289,
0.18006731569766998,
0.025681596249341965,
0.01973005011677742,
-0.08099702000617981,
-0.09845233708620071,
0.25584861636161804,
0.2970941364765167,
-0.04226718097925186,
0.07478342205286026,
0.210969477891922,
0.15124520659446716,
-0.21498741209506989,
0.0729144886136055,
0.09760567545890808,
0.26059451699256897,
0.04198213666677475,
-0.051056869328022,
0.002709195716306567,
-0.2863381803035736,
-0.02137073315680027,
-0.19169974327087402,
0.14774560928344727,
0.5088766813278198,
0.04981344938278198,
0.1877959966659546,
-0.4119115471839905,
0.23090115189552307,
0.23335638642311096,
0.37859591841697693,
-0.1272139847278595,
-0.1715654730796814,
0.009396780282258987,
-0.27423349022865295,
-0.22633762657642365,
0.4675949513912201,
-0.03272899612784386,
0.28082671761512756,
0.035246483981609344,
0.05342811718583107,
-0.059392645955085754,
0.12719009816646576,
0.1198049932718277,
-0.07885728776454926,
-0.073454350233078,
0.009567494504153728,
0.08056072890758514,
-0.07112827897071838,
0.32410866022109985,
0.2068130075931549,
0.08467145264148712,
0.04299067705869675,
-0.264098584651947,
0.2737942337989807,
0.10977042466402054,
0.13763019442558289,
0.2870107889175415,
0.03241302818059921,
-0.04986295476555824,
-0.40360280871391296,
-0.13615886867046356,
0.6104605197906494,
-0.014338831417262554,
0.03904912993311882,
-0.21003086864948273,
-0.3263431787490845,
-0.1357889175415039,
0.10110551863908768,
0.23052693903446198,
0.182017982006073,
0.48346397280693054,
-0.09944632649421692,
-0.32353225350379944,
-0.27116456627845764,
0.24447211623191833,
-0.46608099341392517,
-0.026458971202373505,
-0.21654176712036133,
0.06067000702023506,
0.04938408359885216,
-0.23431678116321564,
-0.058499205857515335,
0.11317289620637894,
0.24098414182662964,
0.12095700949430466,
-0.2082558572292328,
0.4433767795562744,
-0.09905257076025009,
0.361275315284729,
0.010056933388113976,
0.0964258685708046,
-0.23335233330726624,
0.13524313271045685,
0.0683615580201149,
0.005292111542075872,
0.13534514605998993,
0.165705606341362,
-0.3355955481529236,
0.02013246901333332,
-0.25778964161872864,
0.2187139391899109,
0.15346676111221313,
-0.06844533234834671,
0.34618645906448364,
-0.07351354509592056,
-0.0600421242415905,
-0.42826905846595764,
0.08841930329799652,
-0.13673537969589233,
-0.019065123051404953,
-0.14988818764686584,
-0.5772660374641418,
0.07797040790319443,
0.4106452465057373,
0.06561862677335739,
-0.0851372703909874,
0.02640833705663681,
-0.008168534375727177,
-0.10597448796033859,
0.1530177742242813,
0.5167679786682129,
0.2752953767776489,
0.2837967276573181,
0.200938880443573,
0.10190262645483017,
0.17583085596561432,
-0.39775022864341736,
0.17926616966724396,
0.07641537487506866,
-0.09156403690576553,
0.3613468408584595,
0.40903913974761963,
-0.3172943890094757,
-0.5318496227264404,
-0.1017993912100792,
0.46412742137908936,
0.1528581976890564,
-0.2373746931552887,
0.03275304287672043,
-0.27179840207099915,
-0.2771739065647125,
0.01723562739789486,
-0.11818879842758179,
0.15892788767814636,
-0.4318621754646301,
0.1674043834209442,
0.4800211489200592,
-0.2773122489452362,
0.20970602333545685,
-0.015284367837011814,
-0.03677981719374657,
0.01956101693212986,
0.37876608967781067,
-0.5974567532539368,
-0.28446632623672485,
0.16514357924461365,
0.17971833050251007,
-0.18343372642993927,
-0.03350146487355232,
0.2813809812068939,
-0.07063930481672287,
0.07674495130777359,
-0.4488691985607147,
-0.21543151140213013,
-0.05250943452119827,
-0.1916930079460144,
-0.05047445744276047,
0.14003680646419525,
0.32544100284576416,
-0.13288453221321106,
-0.29227906465530396,
0.2632974088191986,
-0.0035884578246623278,
-0.0027157729491591454,
0.11403990536928177,
-0.033431023359298706,
-0.002773449057713151,
-0.17906637489795685,
-0.4577990770339966,
-0.1744547188282013,
-0.35406532883644104,
0.12545982003211975,
-0.28386983275413513,
0.11098872125148773,
-0.03609483316540718,
-0.2389659881591797,
-0.33614251017570496,
0.14095477759838104,
0.07544676214456558,
-0.39692527055740356,
-0.28214049339294434,
0.11706986278295517,
-0.23167292773723602,
-0.12570102512836456,
0.04014670476317406,
0.31496068835258484,
0.174593985080719,
0.3379329442977905,
0.08136186003684998,
0.03868497535586357,
0.03894602134823799,
-0.1813572347164154,
0.0958818569779396,
-0.0996629074215889,
-0.008612888865172863,
0.07454521209001541,
-0.18931259214878082,
-0.23597224056720734,
0.07458926737308502,
-0.09356638789176941,
0.4188387095928192,
0.06471099704504013,
0.07804009318351746,
0.7230544090270996,
-0.18922698497772217,
0.3057195246219635,
-0.11392057687044144,
0.06655145436525345,
0.4283348619937897,
-0.30058300495147705,
0.09556792676448822,
-0.27567583322525024,
-0.17809094488620758,
0.26815199851989746,
0.06595925241708755,
0.07823945581912994,
0.12902981042861938,
-0.15051905810832977,
-0.22373232245445251,
-0.04794645309448242,
0.39723190665245056,
-0.32706522941589355,
-0.04415859654545784,
-0.13649465143680573,
-0.13811156153678894,
0.27960526943206787,
0.31143349409103394,
0.22344595193862915,
-0.19685222208499908,
-0.33514007925987244,
-0.07631335407495499,
0.058342255651950836,
-0.0906086266040802,
-0.15195634961128235,
-0.23354099690914154,
0.009937024675309658,
-0.434883713722229,
0.21410052478313446,
-0.05683824047446251,
0.5167143940925598,
-0.19329920411109924,
-0.24144574999809265,
0.19095344841480255,
0.04557504132390022,
0.3841463029384613,
-0.43404343724250793,
-0.06532153487205505,
0.029513783752918243,
0.28089267015457153,
0.008319266140460968,
-0.034868963062763214,
-0.21379241347312927,
-0.029552772641181946,
-0.06351233273744583,
0.249701589345932,
-0.39443913102149963,
0.03461014851927757,
0.19812792539596558,
-0.01058704312890768,
-0.05829703435301781,
0.09679176658391953,
-0.3246833086013794,
-0.15624868869781494,
-0.36557793617248535,
-0.11609907448291779,
-0.0016206020954996347,
0.39171844720840454,
-0.07532118260860443,
0.12927326560020447,
0.050091031938791275,
0.06310010701417923,
0.1568194180727005,
0.30181968212127686,
0.20262494683265686,
0.32431116700172424,
-0.013156958855688572,
0.07216021418571472,
0.2831901013851166,
0.02561023458838463,
0.22079505026340485,
-0.14619728922843933,
-0.2738591432571411,
0.2612325847148895,
-0.18134909868240356,
0.4160307049751282,
0.22627326846122742,
0.043782006949186325,
0.3852494955062866,
0.24814166128635406,
0.301874041557312,
-0.118220753967762,
0.19121265411376953,
0.1809832602739334,
0.1384355127811432,
-0.17644762992858887,
-0.5916276574134827,
0.18264617025852203,
-0.001579504576511681,
-0.14127077162265778,
0.5324422717094421,
0.15324939787387848,
-0.17528139054775238,
0.14758679270744324,
-0.08015857636928558,
0.7479305863380432,
-0.22922533750534058,
-0.14477676153182983,
0.13463890552520752,
-0.5475711822509766,
0.17607706785202026,
-0.25836944580078125,
0.4103800356388092,
-0.3027965724468231,
-0.42298686504364014,
-0.049276117235422134,
0.15004228055477142,
0.20791859924793243,
0.13270880281925201,
-0.03133236616849899,
0.2694016993045807,
-0.10941451042890549,
0.6317188739776611,
-0.06709014624357224,
-0.10222062468528748,
-0.1784977912902832,
-0.3504387438297272,
-0.35259371995925903,
0.1487869769334793,
-0.15913674235343933,
-0.25543829798698425,
0.08017775416374207,
0.2282804697751999,
0.12101579457521439,
-0.00947900302708149,
0.13440142571926117,
-0.004592303652316332,
0.08380921185016632,
0.026207176968455315,
-0.44128257036209106,
-0.27659088373184204,
-0.35354042053222656,
0.012142962776124477,
-0.02851126715540886,
-0.017435334622859955,
-0.01916571334004402,
0.2909490764141083,
0.24921022355556488,
0.37272927165031433,
-0.19279643893241882,
0.21725104749202728,
0.09230533242225647,
-0.0545281283557415,
-0.18842647969722748,
0.022212039679288864,
0.03416532278060913,
-0.26846909523010254,
-0.23833149671554565,
-0.1408398598432541,
0.3383985757827759,
-0.17271026968955994,
-0.0500941164791584,
-0.07828269898891449,
-0.11555994302034378,
-0.4034649133682251,
0.19037039577960968,
-0.47410547733306885,
-0.1517753303050995,
0.03559447452425957,
0.013447047211229801,
-0.16311347484588623,
-0.17889349162578583,
0.7064644694328308,
0.0210625771433115,
0.3204665184020996,
0.4643809497356415,
0.0334404893219471,
-0.38723039627075195,
-0.2655165195465088,
-0.34447237849235535,
-0.11178211122751236,
-0.23605583608150482,
0.10217448323965073,
0.11979258805513382,
-0.3220475912094116,
0.2585485577583313,
-0.012471983209252357,
-0.35393044352531433,
0.3056658208370209,
-0.3768985867500305,
-0.24690212309360504,
-0.300545334815979,
0.030235638841986656,
0.2860625982284546,
0.05332973226904869,
-0.03682883083820343,
0.13691586256027222,
-0.12299107015132904,
-0.19486135244369507,
-0.4011881351470947,
-0.2069963812828064,
0.08114555478096008,
0.3210965096950531,
0.11699438840150833,
-0.1421424299478531,
0.012026543729007244,
-0.1435254067182541,
0.38174527883529663,
-0.06402641534805298,
0.12048833072185516,
-0.30134597420692444,
-0.11053934693336487,
0.07008601725101471,
0.07277543842792511,
0.06080878525972366,
-0.4344857335090637,
-0.23872920870780945,
-0.40634283423423767,
-0.1456739455461502,
0.2645634412765503,
0.16594655811786652,
-0.07300202548503876,
0.08178866654634476,
0.05145846679806709,
-0.088066965341568,
0.13597270846366882,
-0.14190232753753662,
0.11181937158107758,
-0.039729975163936615,
-0.2456478327512741,
0.010197366587817669,
0.026862652972340584,
0.05944400280714035,
-0.15717141330242157,
-0.04742231220006943,
0.15949878096580505,
-0.011924713850021362,
0.22573189437389374,
-0.11326249688863754,
0.14696308970451355,
-0.03001359850168228,
0.4552222192287445,
0.38797426223754883,
0.18268321454524994,
-0.4459148943424225,
0.15843765437602997,
0.21414104104042053,
-0.32892850041389465,
-0.0269478727132082,
-0.08624986559152603,
-0.08389849215745926,
0.2800433337688446,
-0.08404042571783066,
0.11381246149539948,
-0.2519206702709198,
-0.34932056069374084,
0.04774538427591324,
0.20498040318489075,
-0.23780199885368347,
0.09328446537256241,
0.648227334022522,
0.0644342228770256,
0.27344241738319397,
0.23594003915786743,
0.15591013431549072,
-0.4047485589981079,
0.5919973254203796,
0.26794737577438354,
0.17049211263656616,
0.2565017640590668,
0.08235609531402588,
-0.2634167969226837,
-0.01956568844616413,
-0.10522221028804779,
0.04897131025791168,
-0.07179486751556396,
0.45320308208465576,
0.23198159039020538,
-0.0869821235537529,
0.11618075519800186,
-0.1311454325914383,
-0.1605103462934494,
0.30017781257629395,
-0.05371452495455742,
-0.28765320777893066,
-0.35215964913368225,
-0.08721620589494705,
0.044906094670295715,
0.18085609376430511,
-0.011453282088041306,
0.4032352566719055,
0.5664904117584229,
-0.18379877507686615,
0.27860379219055176,
-0.39946478605270386,
-0.05831199884414673,
0.0732857882976532,
0.41703295707702637,
-0.179387167096138,
0.14944840967655182,
0.3655549883842468,
0.15702174603939056,
0.47662416100502014,
-0.11310559511184692,
-0.21470263600349426,
-0.071574866771698,
0.25215446949005127,
0.03425247222185135,
0.061397816985845566,
-0.35900914669036865,
0.0488201342523098,
0.29460403323173523,
0.25223973393440247,
0.11044944822788239,
0.1041189432144165,
0.23069892823696136,
-0.2290610820055008,
0.14716103672981262,
0.2661655843257904,
0.22396303713321686,
0.09771519899368286,
0.17542466521263123,
0.010407039895653725,
-0.23325680196285248,
-0.1166326254606247,
-0.3429913818836212,
-0.3034931719303131,
0.05960977450013161,
0.30338796973228455,
-0.20497769117355347,
0.06573011726140976,
-0.019933300092816353,
0.14967314898967743,
0.25261127948760986,
0.4171769917011261,
-0.06396128237247467,
-0.29117056727409363,
-0.19802168011665344,
-0.4567641615867615,
-0.5000351071357727,
0.0872899517416954,
0.17801877856254578,
-0.16933219134807587,
0.050265613943338394,
-0.1455538123846054,
0.20222456753253937,
-0.30892708897590637,
0.02720920741558075,
-0.29890063405036926,
-0.251786470413208,
0.3222236931324005,
-0.31377166509628296,
-0.11090188473463058,
0.06410469114780426,
0.2451229691505432,
0.027502572163939476,
-0.19131624698638916,
0.32124629616737366,
0.36004191637039185,
0.18059620261192322,
-0.08365987241268158,
0.1982351839542389,
0.05676807463169098,
-0.11052077263593674,
-0.049283817410469055,
-0.3022259771823883,
0.3310239613056183,
-0.2943383753299713,
0.026679573580622673,
-0.016124987974762917,
-0.27911779284477234,
-0.22542263567447662,
0.2709921598434448,
0.03456613048911095,
0.3055758774280548,
0.3240266442298889,
0.1623477339744568,
0.010238843970000744,
0.2488682121038437,
-0.12387429922819138,
0.08378419280052185,
-0.21690458059310913,
0.3057175278663635,
0.1578177958726883,
0.15206550061702728,
-0.05985860154032707,
0.0712028443813324,
0.11864209175109863,
0.1891176849603653,
-0.2542222738265991,
-0.5591892600059509,
0.6637262105941772,
-0.14816193282604218,
-0.5515402555465698,
0.0363900288939476,
0.03184336796402931,
0.3892325162887573,
0.10625236481428146,
-0.3787274658679962,
0.19067609310150146,
0.07499456405639648,
-0.30092760920524597,
0.03963414207100868,
0.2423074096441269,
-0.11219654232263565,
0.026120811700820923,
0.000035968874726677313,
0.06979836523532867,
0.26646074652671814,
-0.15200315415859222,
-0.2840254604816437,
0.09434971958398819
] |
https://github.com/huggingface/datasets/issues/5244
|
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
|
Hi ! What kind of private source ? We're exploring adding support for cloud storage and URIs like s3://, gs:// etc. with authentication in the download manager
|
### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration.
| 27 |
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
|
[
-0.6069025993347168,
0.322984904050827,
-0.08651070296764374,
-0.08674126118421555,
-0.06455841660499573,
-0.3669630289077759,
0.6215754151344299,
0.012700540013611317,
0.3533104658126831,
0.09465045481920242,
-0.2507930397987366,
0.09536892175674438,
0.07464221119880676,
0.46357834339141846,
0.2963171899318695,
0.2941385805606842,
-0.0962677076458931,
0.2591113746166229,
-0.3378257751464844,
0.04091276973485947,
-0.029396627098321915,
-0.227788507938385,
0.07865628600120544,
-0.23711125552654266,
0.32879021763801575,
0.009307069703936577,
0.47771844267845154,
0.19493605196475983,
-0.2935549318790436,
-0.18174219131469727,
0.06175597757101059,
0.5916621088981628,
0.150859996676445,
0.26793307065963745,
-0.00010897801985265687,
0.17392531037330627,
0.16551482677459717,
-0.08454423397779465,
-0.38417622447013855,
0.1544560194015503,
-0.7105556726455688,
0.1035749539732933,
0.3279881477355957,
-0.07387948036193848,
-0.30203500390052795,
-0.12175260484218597,
0.12798960506916046,
-0.7221899032592773,
0.40649887919425964,
0.09973716735839844,
0.21448509395122528,
0.40192994475364685,
-0.3429870307445526,
-0.08359673619270325,
0.06105535849928856,
-0.02541772648692131,
0.18009456992149353,
-0.023019777610898018,
-0.03117354027926922,
0.03763752803206444,
-0.4128356873989105,
0.1756494790315628,
-0.1653895527124405,
-0.06827481091022491,
0.43194708228111267,
0.009018643759191036,
-0.34688684344291687,
-0.2257697582244873,
0.0040275901556015015,
0.1563153713941574,
0.8365632891654968,
-0.2909943759441376,
-0.30081745982170105,
-0.18540219962596893,
0.012322813272476196,
-0.2771318852901459,
0.045500244945287704,
0.14399410784244537,
-0.15938381850719452,
0.2682828903198242,
-0.12343189865350723,
-0.23306222259998322,
-0.4423272907733917,
0.11372349411249161,
0.08274893462657928,
0.06603647023439407,
0.05742775648832321,
-0.021300284191966057,
-0.12784218788146973,
0.07381758838891983,
0.48066478967666626,
-0.23263905942440033,
0.23940128087997437,
-0.045768387615680695,
0.048028476536273956,
0.007737402804195881,
0.006592967547476292,
0.010067200288176537,
0.039371442049741745,
0.3771505057811737,
0.2925489544868469,
0.3042573034763336,
-0.21641604602336884,
0.12896619737148285,
0.3068763017654419,
-0.11106627434492111,
-0.1545388102531433,
0.1760091483592987,
0.3733801245689392,
0.32814353704452515,
-0.16031581163406372,
0.09734731912612915,
0.044194385409355164,
-0.020412473008036613,
-0.048343248665332794,
-0.011506730690598488,
0.24901194870471954,
-0.11208569258451462,
-0.16031648218631744,
0.09000573307275772,
0.4107772409915924,
-0.03501879423856735,
0.10489264130592346,
0.465733140707016,
0.2050713151693344,
0.06175236031413078,
0.17863892018795013,
0.05170569196343422,
-0.05472811311483383,
-0.35716065764427185,
-0.19146224856376648,
-0.1491706669330597,
-0.11942586302757263,
0.15667501091957092,
0.3117474615573883,
0.08111733943223953,
0.062325090169906616,
0.20962725579738617,
-0.03775620087981224,
0.055174581706523895,
0.18173837661743164,
0.10491509735584259,
0.3062053918838501,
0.28276464343070984,
0.21040493249893188,
-0.14733809232711792,
0.15645144879817963,
-0.11528581380844116,
0.01272440142929554,
0.025588171556591988,
0.0607018806040287,
-0.2921404540538788,
0.2403782159090042,
0.1989772766828537,
-0.12535881996154785,
0.02979533188045025,
-0.1612190306186676,
0.13228929042816162,
-0.17335864901542664,
-0.5406492948532104,
-0.02820459008216858,
0.012280091643333435,
-0.2696254849433899,
-0.05512991175055504,
0.14895135164260864,
0.577947199344635,
-0.4541294276714325,
0.05808618664741516,
-0.22606511414051056,
-0.3920974135398865,
0.22126616537570953,
-0.19193260371685028,
-0.3621634244918823,
-0.06880929321050644,
-0.1914776712656021,
0.08713966608047485,
0.46546486020088196,
-0.1695096641778946,
-0.47977182269096375,
0.6168544292449951,
-0.49483752250671387,
0.13953617215156555,
0.3924163281917572,
0.39110445976257324,
0.4261016845703125,
-0.053984202444553375,
0.2955661714076996,
0.6335210204124451,
0.1665976345539093,
0.16255085170269012,
0.08637645840644836,
-0.19255179166793823,
0.0026260281447321177,
0.15464988350868225,
0.09421759843826294,
0.3947129249572754,
0.34482821822166443,
0.04273134469985962,
0.3043457269668579,
-0.029594819992780685,
0.107132188975811,
-0.1621575504541397,
0.1595459282398224,
0.03841996192932129,
-0.25229892134666443,
0.034854840487241745,
-0.3511313199996948,
-0.0973137617111206,
0.06656593829393387,
-0.07329137623310089,
-0.041176412254571915,
-0.31283295154571533,
-0.11277268081903458,
0.01538773626089096,
-0.21578022837638855,
0.04743334650993347,
0.1869344562292099,
0.5117520093917847,
-0.35374799370765686,
-0.0836479589343071,
-0.21509890258312225,
0.4215124547481537,
-0.060262925922870636,
0.10061990469694138,
-0.19313712418079376,
0.045917969197034836,
0.26153814792633057,
-0.1608303189277649,
0.22458110749721527,
-0.0018660372588783503,
0.14961384236812592,
0.1670442372560501,
-0.1132134422659874,
0.34602004289627075,
0.13068272173404694,
0.3321983814239502,
0.013622797094285488,
0.17321011424064636,
-0.06852593272924423,
-0.06692829728126526,
0.214858740568161,
0.22406190633773804,
0.09214930981397629,
0.0854683667421341,
-0.03658546879887581,
0.489408016204834,
-0.27974703907966614,
-0.12339000403881073,
0.1405876874923706,
-0.2154741734266281,
0.21973352134227753,
-0.10221975296735764,
-0.33465635776519775,
-0.4874071776866913,
-0.17407338321208954,
-0.08812016993761063,
0.16300451755523682,
0.0008206318598240614,
-0.24533937871456146,
0.2823584973812103,
-0.12787863612174988,
-0.0012547061778604984,
0.2047169804573059,
-0.18159393966197968,
-0.057137586176395416,
-0.09500443935394287,
0.150163933634758,
0.7536982297897339,
0.38680729269981384,
0.32625967264175415,
0.1182200089097023,
0.06513448059558868,
0.08233941346406937,
-0.3109423518180847,
0.18485869467258453,
-0.3025951683521271,
-0.10409539937973022,
0.27215301990509033,
0.04100640490651131,
-0.18007493019104004,
-0.1968040019273758,
0.0929492712020874,
0.0443873293697834,
-0.22031427919864655,
-0.43570154905319214,
-0.033754922449588776,
-0.28793808817863464,
-0.2441302090883255,
-0.1211278960108757,
-0.04461970925331116,
0.26523861289024353,
0.020607871934771538,
0.07590425759553909,
0.4581274092197418,
-0.22046011686325073,
0.06790368258953094,
-0.49254724383354187,
0.2752234935760498,
-0.08794043958187103,
-0.4174765348434448,
0.048378702253103256,
-0.10407963395118713,
0.07606577128171921,
0.11560661345720291,
0.20956838130950928,
0.1128111481666565,
0.37311017513275146,
0.14771442115306854,
-0.0750063806772232,
-0.2747820317745209,
0.04357864707708359,
-0.020088693127036095,
0.07036500424146652,
0.20757099986076355,
-0.0435585081577301,
0.380488783121109,
0.3970622420310974,
-0.2736343741416931,
-0.04595083370804787,
-0.2430938184261322,
0.032110102474689484,
-0.137644425034523,
-0.04365364462137222,
0.110716812312603,
-0.24115397036075592,
-0.25413841009140015,
-0.22482696175575256,
-0.3848802149295807,
-0.11853442341089249,
-0.060575783252716064,
0.008817358873784542,
0.09472633898258209,
0.15749293565750122,
-0.1931159943342209,
0.19118374586105347,
0.07188921421766281,
-0.18304648995399475,
-0.4440860450267792,
0.22322608530521393,
-0.3767169117927551,
-0.10015562921762466,
-0.04962412640452385,
-0.06821300834417343,
0.09817081689834595,
0.4339340627193451,
-0.30718886852264404,
-0.04134334623813629,
0.036986466497182846,
0.24681958556175232,
0.03403571993112564,
-0.15530745685100555,
0.17252936959266663,
0.04083080217242241,
-0.12806913256645203,
-0.3600585162639618,
-0.06471000611782074,
-0.07564391940832138,
-0.42013612389564514,
-0.2949754595756531,
0.06115204840898514,
0.20592625439167023,
-0.2188313603401184,
0.5087913870811462,
-0.07577551901340485,
-0.09796963632106781,
0.23976163566112518,
-0.008676489815115929,
0.5145037174224854,
-0.13058410584926605,
-0.03361764922738075,
-0.19929587841033936,
0.16648827493190765,
-0.143998384475708,
0.325508177280426,
-0.24844807386398315,
-0.1514013558626175,
-0.09768538922071457,
-0.07068604975938797,
-0.5160909295082092,
-0.30011850595474243,
-0.07898082584142685,
0.11745844781398773,
0.0686207264661789,
0.15115733444690704,
0.15471170842647552,
-0.2805814743041992,
-0.10403580218553543,
-0.2885710299015045,
-0.0409897118806839,
0.19108609855175018,
-0.028771672397851944,
-0.022105135023593903,
0.22780656814575195,
-0.27696692943573,
0.1098923608660698,
-0.16602836549282074,
0.19105198979377747,
-0.13542857766151428,
-0.10308393090963364,
0.18365652859210968,
0.13651156425476074,
0.34371140599250793,
-0.23353028297424316,
0.35266566276550293,
-0.13875849545001984,
0.014996142126619816,
-0.1275743544101715,
0.09435109794139862,
0.06571394205093384,
0.05529864877462387,
-0.21935804188251495,
0.1975572556257248,
-0.2739308774471283,
0.18849368393421173,
0.09140568226575851,
-0.12735365331172943,
0.16036279499530792,
-0.26894980669021606,
-0.08898656070232391,
0.013170991092920303,
-0.3052702844142914,
0.0851898193359375,
-0.05162559822201729,
0.11675523221492767,
-0.46076899766921997,
0.06549934297800064,
0.015826040878891945,
0.29838505387306213,
0.18870718777179718,
0.16152521967887878,
0.09257199615240097,
0.29989147186279297,
0.12808145582675934,
0.2864866852760315,
0.19386278092861176,
0.21307508647441864,
0.5344177484512329,
0.08649873733520508,
-0.392578125,
-0.05752880126237869,
0.10156330466270447,
-0.024828370660543442,
0.5949657559394836,
0.04663711413741112,
-0.02564779296517372,
0.555761456489563,
-0.13266262412071228,
-0.015821728855371475,
0.27440130710601807,
-0.2230222225189209,
-0.37379005551338196,
-0.03859984874725342,
-0.774852991104126,
0.2154512256383896,
-0.23310217261314392,
-0.21863079071044922,
0.13257905840873718,
-0.09174445271492004,
-0.3929606080055237,
0.057702239602804184,
-0.05391388759016991,
0.6291313171386719,
-0.046843379735946655,
0.29451730847358704,
0.2882644236087799,
-0.1769281029701233,
-0.0689125582575798,
-0.30645158886909485,
0.05831056460738182,
-0.22855466604232788,
-0.31805387139320374,
-0.06886264681816101,
-0.18699489533901215,
-0.18283510208129883,
-0.021291235461831093,
-0.07290703803300858,
-0.03793865069746971,
-0.09154122322797775,
0.3119586408138275,
-0.00683389650657773,
0.26279327273368835,
-0.1161717101931572,
-0.21642537415027618,
-0.24745938181877136,
0.11901482194662094,
0.02003685012459755,
-0.05335690453648567,
-0.13711930811405182,
-0.2664307951927185,
0.16535454988479614,
-0.09386493265628815,
0.04144595190882683,
0.2887819707393646,
-0.30076882243156433,
-0.0420222133398056,
-0.3588796854019165,
-0.3321494162082672,
0.05563594028353691,
0.5209614038467407,
-0.0049688126891851425,
-0.0068851071409881115,
-0.2202291041612625,
0.09539277851581573,
0.10834591090679169,
0.15012449026107788,
-0.26643991470336914,
-0.004509555175900459,
0.15964587032794952,
-0.010069465264678001,
-0.05707903951406479,
0.1691133975982666,
0.16599543392658234,
-0.4264167845249176,
-0.03343425691127777,
0.08588077127933502,
0.43921905755996704,
-0.4456639587879181,
-0.14437377452850342,
0.03663284331560135,
0.18027155101299286,
-0.15079838037490845,
0.1378503441810608,
-0.10607859492301941,
-0.05177667364478111,
-0.3217291533946991,
0.05000535026192665,
-0.1861559897661209,
-0.06807683408260345,
0.6423168182373047,
0.0061248731799423695,
0.18866181373596191,
0.3370635509490967,
-0.08956079930067062,
-0.09312177449464798,
-0.3612302839756012,
-0.07106335461139679,
0.2568254768848419,
-0.0470072478055954,
0.11820174753665924,
0.2928241193294525,
-0.225226491689682,
0.044197000563144684,
-0.11707060039043427,
-0.32613539695739746,
0.16908586025238037,
0.03360050544142723,
-0.2435181736946106,
-0.23108422756195068,
0.11991001665592194,
-0.3283318877220154,
0.2780848443508148,
0.19790227711200714,
-0.0024974450934678316,
-0.19191667437553406,
-0.30172890424728394,
-0.36455485224723816,
-0.0776551216840744,
0.1741485595703125,
-0.14070333540439606,
0.24710650742053986,
0.10083965212106705,
0.030639853328466415,
-0.023965507745742798,
0.16033725440502167,
-0.01967482827603817,
-0.3164534568786621,
-0.24388819932937622,
-0.01155163161456585,
0.09399571269750595,
0.026064777746796608,
-0.1963682323694229,
-0.16610616445541382,
-0.36402806639671326,
-0.32952216267585754,
-0.19617506861686707,
0.5828258991241455,
0.10605479776859283,
0.025118906050920486,
-0.13952422142028809,
0.2030877023935318,
0.2366361916065216,
-0.28576189279556274,
0.03862357139587402,
-0.10958666354417801,
0.12474288791418076,
-0.19149649143218994,
0.02498721145093441,
-0.35906633734703064,
-0.16560451686382294,
0.030295971781015396,
0.11324136704206467,
0.7655715346336365,
0.6395236849784851,
0.18994392454624176,
-0.36007776856422424,
-0.1204330176115036,
-0.006814084015786648,
0.37166959047317505,
0.07675930112600327,
-0.158126100897789,
-0.0583181194961071,
-0.04041147232055664,
0.2106608748435974,
-0.19267627596855164,
0.03029443323612213,
0.15999695658683777,
-0.07258043438196182,
0.24830572307109833,
0.040970366448163986,
0.13028180599212646,
-0.03193209320306778,
0.018876753747463226,
-0.005365535616874695,
0.18605691194534302,
-0.00290497113019228,
0.23022444546222687,
0.3586811125278473,
-0.12483274191617966,
0.11064763367176056,
-0.1595587283372879,
0.3946664333343506,
-0.13132524490356445,
0.518318772315979,
-0.20404426753520966,
0.35434505343437195,
0.03442887216806412,
-0.047021571546792984,
-0.19944170117378235,
-0.4427708089351654,
0.009806550107896328,
0.18224088847637177,
-0.24454568326473236,
0.19389532506465912,
-0.09527861326932907,
-0.12356138229370117,
-0.01842954009771347,
0.3220762312412262,
-0.13737846910953522,
0.005758872255682945,
0.017358263954520226,
-0.16755779087543488,
-0.46423080563545227,
-0.1995343565940857,
0.20565351843833923,
-0.012620598077774048,
-0.035953838378190994,
0.10886548459529877,
-0.20196112990379333,
0.04280064254999161,
0.07492252439260483,
-0.03761439770460129,
0.18449579179286957,
0.17490461468696594,
-0.28729528188705444,
-0.17720071971416473,
0.21705080568790436,
-0.015859654173254967,
0.2820327579975128,
0.782944917678833,
-0.0533570870757103,
0.18401256203651428,
0.05722128599882126,
0.10474800318479538,
-0.061302077025175095,
0.20709440112113953,
-0.15038634836673737,
-0.35542193055152893,
-0.0235797930508852,
0.25926709175109863,
0.19280049204826355,
0.3341791033744812,
0.23473970592021942,
-0.1528058648109436,
0.10538589209318161,
0.31652718782424927,
-0.027576090767979622,
-0.04865855351090431,
-0.001637294888496399,
0.2861073613166809,
-0.09044018387794495,
-0.09222348034381866,
-0.08274273574352264,
-0.03249861299991608,
-0.03749282285571098,
0.45842674374580383,
0.09027323871850967,
0.17486508190631866,
-0.049451202154159546,
0.08771984279155731,
-0.06922729313373566,
0.3722403645515442,
-0.016654321923851967,
0.08032090216875076,
-0.12565799057483673,
-0.026945218443870544,
-0.5684342384338379,
0.3697901666164398,
0.05591393634676933,
-0.46404895186424255,
-0.23391219973564148,
0.11175587773323059,
0.3646903336048126,
0.13155323266983032,
-0.03882225230336189,
-0.2553672194480896,
0.03764880821108818,
0.1611594706773758,
0.06391217559576035,
-0.14616185426712036,
-0.12485609203577042,
0.21999256312847137,
-0.10219120234251022,
-0.3245633542537689,
0.007576736621558666,
-0.1472795158624649,
0.19502687454223633,
0.3083954155445099,
0.06979361176490784,
-0.011935723014175892,
-0.06599339842796326,
0.4462386667728424,
-0.1347080022096634,
0.5540798306465149,
-0.2477865070104599,
0.06212496757507324,
-0.33692654967308044,
0.003212466137483716,
-0.37175610661506653,
-0.05291106179356575,
0.10591204464435577,
0.34187379479408264,
-0.1066589206457138,
0.2825523912906647,
-0.23178699612617493,
0.22380249202251434,
-0.11786255985498428,
0.1600407063961029,
0.10262694954872131,
0.17234477400779724,
-0.07103313505649567,
0.1694592386484146,
-0.04763445258140564,
0.08217154443264008,
-0.13119608163833618,
0.05819002911448479,
0.08161641657352448,
-0.32320865988731384,
0.39181190729141235,
-0.5240740776062012,
-0.1475045382976532,
-0.13193832337856293,
0.3733910322189331,
-0.10992264747619629,
0.020580805838108063,
-0.05200359597802162,
0.46812549233436584,
-0.0006573034916073084,
-0.24748598039150238,
0.08463721722364426,
0.17368978261947632,
-0.04698898270726204,
0.21505774557590485,
-0.1614273488521576,
-0.03245631605386734,
0.2596482038497925,
-0.1424063742160797,
-0.2847166657447815,
-0.30289068818092346
] |
https://github.com/huggingface/datasets/issues/5244
|
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
|
Hello! It's a google cloud storage, so gs://, but I'm using it with https.
Being able to provide a file system like [here](https://huggingface.co/docs/datasets/main/filesystems#load-serialized-datasets) would be even more practical indeed.
I've found a quite complicated workaround which consists of monkey patching all of the functions in streaming_download_manager.py to use my own _get_authentication_headers_for_url_ .
A support for this use case would be greatly appreciated!
For reference my _get_authentication_headers_for_url_ looks like this:
```
import os
from typing import Optional, Union
from datasets import config
from huggingface_hub import HfFolder
from gcsfs.credentials import GoogleCredentials
DEFAULT_PROJECT = os.environ.get("GCSFS_DEFAULT_PROJECT", "")
access = "full_control"
gcs_token = os.environ.get("GCS_TOKEN")
def get_authentication_headers_for_url(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> dict:
"""Handle the HF authentication"""
headers = {}
if url.startswith(config.HF_ENDPOINT):
if use_auth_token is False:
token = None
elif isinstance(use_auth_token, str):
token = use_auth_token
else:
token = HfFolder.get_token()
elif url.startswith("https://storage.googleapis.com"):
credentials = GoogleCredentials(DEFAULT_PROJECT, access, gcs_token)
credentials.maybe_refresh()
token = credentials.credentials.token
else:
token = None
if token:
headers["authorization"] = f"Bearer {token}"
return headers
```
|
### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration.
| 159 |
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
|
[
-0.6069025993347168,
0.322984904050827,
-0.08651070296764374,
-0.08674126118421555,
-0.06455841660499573,
-0.3669630289077759,
0.6215754151344299,
0.012700540013611317,
0.3533104658126831,
0.09465045481920242,
-0.2507930397987366,
0.09536892175674438,
0.07464221119880676,
0.46357834339141846,
0.2963171899318695,
0.2941385805606842,
-0.0962677076458931,
0.2591113746166229,
-0.3378257751464844,
0.04091276973485947,
-0.029396627098321915,
-0.227788507938385,
0.07865628600120544,
-0.23711125552654266,
0.32879021763801575,
0.009307069703936577,
0.47771844267845154,
0.19493605196475983,
-0.2935549318790436,
-0.18174219131469727,
0.06175597757101059,
0.5916621088981628,
0.150859996676445,
0.26793307065963745,
-0.00010897801985265687,
0.17392531037330627,
0.16551482677459717,
-0.08454423397779465,
-0.38417622447013855,
0.1544560194015503,
-0.7105556726455688,
0.1035749539732933,
0.3279881477355957,
-0.07387948036193848,
-0.30203500390052795,
-0.12175260484218597,
0.12798960506916046,
-0.7221899032592773,
0.40649887919425964,
0.09973716735839844,
0.21448509395122528,
0.40192994475364685,
-0.3429870307445526,
-0.08359673619270325,
0.06105535849928856,
-0.02541772648692131,
0.18009456992149353,
-0.023019777610898018,
-0.03117354027926922,
0.03763752803206444,
-0.4128356873989105,
0.1756494790315628,
-0.1653895527124405,
-0.06827481091022491,
0.43194708228111267,
0.009018643759191036,
-0.34688684344291687,
-0.2257697582244873,
0.0040275901556015015,
0.1563153713941574,
0.8365632891654968,
-0.2909943759441376,
-0.30081745982170105,
-0.18540219962596893,
0.012322813272476196,
-0.2771318852901459,
0.045500244945287704,
0.14399410784244537,
-0.15938381850719452,
0.2682828903198242,
-0.12343189865350723,
-0.23306222259998322,
-0.4423272907733917,
0.11372349411249161,
0.08274893462657928,
0.06603647023439407,
0.05742775648832321,
-0.021300284191966057,
-0.12784218788146973,
0.07381758838891983,
0.48066478967666626,
-0.23263905942440033,
0.23940128087997437,
-0.045768387615680695,
0.048028476536273956,
0.007737402804195881,
0.006592967547476292,
0.010067200288176537,
0.039371442049741745,
0.3771505057811737,
0.2925489544868469,
0.3042573034763336,
-0.21641604602336884,
0.12896619737148285,
0.3068763017654419,
-0.11106627434492111,
-0.1545388102531433,
0.1760091483592987,
0.3733801245689392,
0.32814353704452515,
-0.16031581163406372,
0.09734731912612915,
0.044194385409355164,
-0.020412473008036613,
-0.048343248665332794,
-0.011506730690598488,
0.24901194870471954,
-0.11208569258451462,
-0.16031648218631744,
0.09000573307275772,
0.4107772409915924,
-0.03501879423856735,
0.10489264130592346,
0.465733140707016,
0.2050713151693344,
0.06175236031413078,
0.17863892018795013,
0.05170569196343422,
-0.05472811311483383,
-0.35716065764427185,
-0.19146224856376648,
-0.1491706669330597,
-0.11942586302757263,
0.15667501091957092,
0.3117474615573883,
0.08111733943223953,
0.062325090169906616,
0.20962725579738617,
-0.03775620087981224,
0.055174581706523895,
0.18173837661743164,
0.10491509735584259,
0.3062053918838501,
0.28276464343070984,
0.21040493249893188,
-0.14733809232711792,
0.15645144879817963,
-0.11528581380844116,
0.01272440142929554,
0.025588171556591988,
0.0607018806040287,
-0.2921404540538788,
0.2403782159090042,
0.1989772766828537,
-0.12535881996154785,
0.02979533188045025,
-0.1612190306186676,
0.13228929042816162,
-0.17335864901542664,
-0.5406492948532104,
-0.02820459008216858,
0.012280091643333435,
-0.2696254849433899,
-0.05512991175055504,
0.14895135164260864,
0.577947199344635,
-0.4541294276714325,
0.05808618664741516,
-0.22606511414051056,
-0.3920974135398865,
0.22126616537570953,
-0.19193260371685028,
-0.3621634244918823,
-0.06880929321050644,
-0.1914776712656021,
0.08713966608047485,
0.46546486020088196,
-0.1695096641778946,
-0.47977182269096375,
0.6168544292449951,
-0.49483752250671387,
0.13953617215156555,
0.3924163281917572,
0.39110445976257324,
0.4261016845703125,
-0.053984202444553375,
0.2955661714076996,
0.6335210204124451,
0.1665976345539093,
0.16255085170269012,
0.08637645840644836,
-0.19255179166793823,
0.0026260281447321177,
0.15464988350868225,
0.09421759843826294,
0.3947129249572754,
0.34482821822166443,
0.04273134469985962,
0.3043457269668579,
-0.029594819992780685,
0.107132188975811,
-0.1621575504541397,
0.1595459282398224,
0.03841996192932129,
-0.25229892134666443,
0.034854840487241745,
-0.3511313199996948,
-0.0973137617111206,
0.06656593829393387,
-0.07329137623310089,
-0.041176412254571915,
-0.31283295154571533,
-0.11277268081903458,
0.01538773626089096,
-0.21578022837638855,
0.04743334650993347,
0.1869344562292099,
0.5117520093917847,
-0.35374799370765686,
-0.0836479589343071,
-0.21509890258312225,
0.4215124547481537,
-0.060262925922870636,
0.10061990469694138,
-0.19313712418079376,
0.045917969197034836,
0.26153814792633057,
-0.1608303189277649,
0.22458110749721527,
-0.0018660372588783503,
0.14961384236812592,
0.1670442372560501,
-0.1132134422659874,
0.34602004289627075,
0.13068272173404694,
0.3321983814239502,
0.013622797094285488,
0.17321011424064636,
-0.06852593272924423,
-0.06692829728126526,
0.214858740568161,
0.22406190633773804,
0.09214930981397629,
0.0854683667421341,
-0.03658546879887581,
0.489408016204834,
-0.27974703907966614,
-0.12339000403881073,
0.1405876874923706,
-0.2154741734266281,
0.21973352134227753,
-0.10221975296735764,
-0.33465635776519775,
-0.4874071776866913,
-0.17407338321208954,
-0.08812016993761063,
0.16300451755523682,
0.0008206318598240614,
-0.24533937871456146,
0.2823584973812103,
-0.12787863612174988,
-0.0012547061778604984,
0.2047169804573059,
-0.18159393966197968,
-0.057137586176395416,
-0.09500443935394287,
0.150163933634758,
0.7536982297897339,
0.38680729269981384,
0.32625967264175415,
0.1182200089097023,
0.06513448059558868,
0.08233941346406937,
-0.3109423518180847,
0.18485869467258453,
-0.3025951683521271,
-0.10409539937973022,
0.27215301990509033,
0.04100640490651131,
-0.18007493019104004,
-0.1968040019273758,
0.0929492712020874,
0.0443873293697834,
-0.22031427919864655,
-0.43570154905319214,
-0.033754922449588776,
-0.28793808817863464,
-0.2441302090883255,
-0.1211278960108757,
-0.04461970925331116,
0.26523861289024353,
0.020607871934771538,
0.07590425759553909,
0.4581274092197418,
-0.22046011686325073,
0.06790368258953094,
-0.49254724383354187,
0.2752234935760498,
-0.08794043958187103,
-0.4174765348434448,
0.048378702253103256,
-0.10407963395118713,
0.07606577128171921,
0.11560661345720291,
0.20956838130950928,
0.1128111481666565,
0.37311017513275146,
0.14771442115306854,
-0.0750063806772232,
-0.2747820317745209,
0.04357864707708359,
-0.020088693127036095,
0.07036500424146652,
0.20757099986076355,
-0.0435585081577301,
0.380488783121109,
0.3970622420310974,
-0.2736343741416931,
-0.04595083370804787,
-0.2430938184261322,
0.032110102474689484,
-0.137644425034523,
-0.04365364462137222,
0.110716812312603,
-0.24115397036075592,
-0.25413841009140015,
-0.22482696175575256,
-0.3848802149295807,
-0.11853442341089249,
-0.060575783252716064,
0.008817358873784542,
0.09472633898258209,
0.15749293565750122,
-0.1931159943342209,
0.19118374586105347,
0.07188921421766281,
-0.18304648995399475,
-0.4440860450267792,
0.22322608530521393,
-0.3767169117927551,
-0.10015562921762466,
-0.04962412640452385,
-0.06821300834417343,
0.09817081689834595,
0.4339340627193451,
-0.30718886852264404,
-0.04134334623813629,
0.036986466497182846,
0.24681958556175232,
0.03403571993112564,
-0.15530745685100555,
0.17252936959266663,
0.04083080217242241,
-0.12806913256645203,
-0.3600585162639618,
-0.06471000611782074,
-0.07564391940832138,
-0.42013612389564514,
-0.2949754595756531,
0.06115204840898514,
0.20592625439167023,
-0.2188313603401184,
0.5087913870811462,
-0.07577551901340485,
-0.09796963632106781,
0.23976163566112518,
-0.008676489815115929,
0.5145037174224854,
-0.13058410584926605,
-0.03361764922738075,
-0.19929587841033936,
0.16648827493190765,
-0.143998384475708,
0.325508177280426,
-0.24844807386398315,
-0.1514013558626175,
-0.09768538922071457,
-0.07068604975938797,
-0.5160909295082092,
-0.30011850595474243,
-0.07898082584142685,
0.11745844781398773,
0.0686207264661789,
0.15115733444690704,
0.15471170842647552,
-0.2805814743041992,
-0.10403580218553543,
-0.2885710299015045,
-0.0409897118806839,
0.19108609855175018,
-0.028771672397851944,
-0.022105135023593903,
0.22780656814575195,
-0.27696692943573,
0.1098923608660698,
-0.16602836549282074,
0.19105198979377747,
-0.13542857766151428,
-0.10308393090963364,
0.18365652859210968,
0.13651156425476074,
0.34371140599250793,
-0.23353028297424316,
0.35266566276550293,
-0.13875849545001984,
0.014996142126619816,
-0.1275743544101715,
0.09435109794139862,
0.06571394205093384,
0.05529864877462387,
-0.21935804188251495,
0.1975572556257248,
-0.2739308774471283,
0.18849368393421173,
0.09140568226575851,
-0.12735365331172943,
0.16036279499530792,
-0.26894980669021606,
-0.08898656070232391,
0.013170991092920303,
-0.3052702844142914,
0.0851898193359375,
-0.05162559822201729,
0.11675523221492767,
-0.46076899766921997,
0.06549934297800064,
0.015826040878891945,
0.29838505387306213,
0.18870718777179718,
0.16152521967887878,
0.09257199615240097,
0.29989147186279297,
0.12808145582675934,
0.2864866852760315,
0.19386278092861176,
0.21307508647441864,
0.5344177484512329,
0.08649873733520508,
-0.392578125,
-0.05752880126237869,
0.10156330466270447,
-0.024828370660543442,
0.5949657559394836,
0.04663711413741112,
-0.02564779296517372,
0.555761456489563,
-0.13266262412071228,
-0.015821728855371475,
0.27440130710601807,
-0.2230222225189209,
-0.37379005551338196,
-0.03859984874725342,
-0.774852991104126,
0.2154512256383896,
-0.23310217261314392,
-0.21863079071044922,
0.13257905840873718,
-0.09174445271492004,
-0.3929606080055237,
0.057702239602804184,
-0.05391388759016991,
0.6291313171386719,
-0.046843379735946655,
0.29451730847358704,
0.2882644236087799,
-0.1769281029701233,
-0.0689125582575798,
-0.30645158886909485,
0.05831056460738182,
-0.22855466604232788,
-0.31805387139320374,
-0.06886264681816101,
-0.18699489533901215,
-0.18283510208129883,
-0.021291235461831093,
-0.07290703803300858,
-0.03793865069746971,
-0.09154122322797775,
0.3119586408138275,
-0.00683389650657773,
0.26279327273368835,
-0.1161717101931572,
-0.21642537415027618,
-0.24745938181877136,
0.11901482194662094,
0.02003685012459755,
-0.05335690453648567,
-0.13711930811405182,
-0.2664307951927185,
0.16535454988479614,
-0.09386493265628815,
0.04144595190882683,
0.2887819707393646,
-0.30076882243156433,
-0.0420222133398056,
-0.3588796854019165,
-0.3321494162082672,
0.05563594028353691,
0.5209614038467407,
-0.0049688126891851425,
-0.0068851071409881115,
-0.2202291041612625,
0.09539277851581573,
0.10834591090679169,
0.15012449026107788,
-0.26643991470336914,
-0.004509555175900459,
0.15964587032794952,
-0.010069465264678001,
-0.05707903951406479,
0.1691133975982666,
0.16599543392658234,
-0.4264167845249176,
-0.03343425691127777,
0.08588077127933502,
0.43921905755996704,
-0.4456639587879181,
-0.14437377452850342,
0.03663284331560135,
0.18027155101299286,
-0.15079838037490845,
0.1378503441810608,
-0.10607859492301941,
-0.05177667364478111,
-0.3217291533946991,
0.05000535026192665,
-0.1861559897661209,
-0.06807683408260345,
0.6423168182373047,
0.0061248731799423695,
0.18866181373596191,
0.3370635509490967,
-0.08956079930067062,
-0.09312177449464798,
-0.3612302839756012,
-0.07106335461139679,
0.2568254768848419,
-0.0470072478055954,
0.11820174753665924,
0.2928241193294525,
-0.225226491689682,
0.044197000563144684,
-0.11707060039043427,
-0.32613539695739746,
0.16908586025238037,
0.03360050544142723,
-0.2435181736946106,
-0.23108422756195068,
0.11991001665592194,
-0.3283318877220154,
0.2780848443508148,
0.19790227711200714,
-0.0024974450934678316,
-0.19191667437553406,
-0.30172890424728394,
-0.36455485224723816,
-0.0776551216840744,
0.1741485595703125,
-0.14070333540439606,
0.24710650742053986,
0.10083965212106705,
0.030639853328466415,
-0.023965507745742798,
0.16033725440502167,
-0.01967482827603817,
-0.3164534568786621,
-0.24388819932937622,
-0.01155163161456585,
0.09399571269750595,
0.026064777746796608,
-0.1963682323694229,
-0.16610616445541382,
-0.36402806639671326,
-0.32952216267585754,
-0.19617506861686707,
0.5828258991241455,
0.10605479776859283,
0.025118906050920486,
-0.13952422142028809,
0.2030877023935318,
0.2366361916065216,
-0.28576189279556274,
0.03862357139587402,
-0.10958666354417801,
0.12474288791418076,
-0.19149649143218994,
0.02498721145093441,
-0.35906633734703064,
-0.16560451686382294,
0.030295971781015396,
0.11324136704206467,
0.7655715346336365,
0.6395236849784851,
0.18994392454624176,
-0.36007776856422424,
-0.1204330176115036,
-0.006814084015786648,
0.37166959047317505,
0.07675930112600327,
-0.158126100897789,
-0.0583181194961071,
-0.04041147232055664,
0.2106608748435974,
-0.19267627596855164,
0.03029443323612213,
0.15999695658683777,
-0.07258043438196182,
0.24830572307109833,
0.040970366448163986,
0.13028180599212646,
-0.03193209320306778,
0.018876753747463226,
-0.005365535616874695,
0.18605691194534302,
-0.00290497113019228,
0.23022444546222687,
0.3586811125278473,
-0.12483274191617966,
0.11064763367176056,
-0.1595587283372879,
0.3946664333343506,
-0.13132524490356445,
0.518318772315979,
-0.20404426753520966,
0.35434505343437195,
0.03442887216806412,
-0.047021571546792984,
-0.19944170117378235,
-0.4427708089351654,
0.009806550107896328,
0.18224088847637177,
-0.24454568326473236,
0.19389532506465912,
-0.09527861326932907,
-0.12356138229370117,
-0.01842954009771347,
0.3220762312412262,
-0.13737846910953522,
0.005758872255682945,
0.017358263954520226,
-0.16755779087543488,
-0.46423080563545227,
-0.1995343565940857,
0.20565351843833923,
-0.012620598077774048,
-0.035953838378190994,
0.10886548459529877,
-0.20196112990379333,
0.04280064254999161,
0.07492252439260483,
-0.03761439770460129,
0.18449579179286957,
0.17490461468696594,
-0.28729528188705444,
-0.17720071971416473,
0.21705080568790436,
-0.015859654173254967,
0.2820327579975128,
0.782944917678833,
-0.0533570870757103,
0.18401256203651428,
0.05722128599882126,
0.10474800318479538,
-0.061302077025175095,
0.20709440112113953,
-0.15038634836673737,
-0.35542193055152893,
-0.0235797930508852,
0.25926709175109863,
0.19280049204826355,
0.3341791033744812,
0.23473970592021942,
-0.1528058648109436,
0.10538589209318161,
0.31652718782424927,
-0.027576090767979622,
-0.04865855351090431,
-0.001637294888496399,
0.2861073613166809,
-0.09044018387794495,
-0.09222348034381866,
-0.08274273574352264,
-0.03249861299991608,
-0.03749282285571098,
0.45842674374580383,
0.09027323871850967,
0.17486508190631866,
-0.049451202154159546,
0.08771984279155731,
-0.06922729313373566,
0.3722403645515442,
-0.016654321923851967,
0.08032090216875076,
-0.12565799057483673,
-0.026945218443870544,
-0.5684342384338379,
0.3697901666164398,
0.05591393634676933,
-0.46404895186424255,
-0.23391219973564148,
0.11175587773323059,
0.3646903336048126,
0.13155323266983032,
-0.03882225230336189,
-0.2553672194480896,
0.03764880821108818,
0.1611594706773758,
0.06391217559576035,
-0.14616185426712036,
-0.12485609203577042,
0.21999256312847137,
-0.10219120234251022,
-0.3245633542537689,
0.007576736621558666,
-0.1472795158624649,
0.19502687454223633,
0.3083954155445099,
0.06979361176490784,
-0.011935723014175892,
-0.06599339842796326,
0.4462386667728424,
-0.1347080022096634,
0.5540798306465149,
-0.2477865070104599,
0.06212496757507324,
-0.33692654967308044,
0.003212466137483716,
-0.37175610661506653,
-0.05291106179356575,
0.10591204464435577,
0.34187379479408264,
-0.1066589206457138,
0.2825523912906647,
-0.23178699612617493,
0.22380249202251434,
-0.11786255985498428,
0.1600407063961029,
0.10262694954872131,
0.17234477400779724,
-0.07103313505649567,
0.1694592386484146,
-0.04763445258140564,
0.08217154443264008,
-0.13119608163833618,
0.05819002911448479,
0.08161641657352448,
-0.32320865988731384,
0.39181190729141235,
-0.5240740776062012,
-0.1475045382976532,
-0.13193832337856293,
0.3733910322189331,
-0.10992264747619629,
0.020580805838108063,
-0.05200359597802162,
0.46812549233436584,
-0.0006573034916073084,
-0.24748598039150238,
0.08463721722364426,
0.17368978261947632,
-0.04698898270726204,
0.21505774557590485,
-0.1614273488521576,
-0.03245631605386734,
0.2596482038497925,
-0.1424063742160797,
-0.2847166657447815,
-0.30289068818092346
] |
https://github.com/huggingface/datasets/issues/5244
|
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
|
I would be a big fan of this feature! @Hubert-Bonisseur if this doesn't become a supported feature, would you mind sharing your code? Thanks!
|
### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration.
| 24 |
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
|
[
-0.6069025993347168,
0.322984904050827,
-0.08651070296764374,
-0.08674126118421555,
-0.06455841660499573,
-0.3669630289077759,
0.6215754151344299,
0.012700540013611317,
0.3533104658126831,
0.09465045481920242,
-0.2507930397987366,
0.09536892175674438,
0.07464221119880676,
0.46357834339141846,
0.2963171899318695,
0.2941385805606842,
-0.0962677076458931,
0.2591113746166229,
-0.3378257751464844,
0.04091276973485947,
-0.029396627098321915,
-0.227788507938385,
0.07865628600120544,
-0.23711125552654266,
0.32879021763801575,
0.009307069703936577,
0.47771844267845154,
0.19493605196475983,
-0.2935549318790436,
-0.18174219131469727,
0.06175597757101059,
0.5916621088981628,
0.150859996676445,
0.26793307065963745,
-0.00010897801985265687,
0.17392531037330627,
0.16551482677459717,
-0.08454423397779465,
-0.38417622447013855,
0.1544560194015503,
-0.7105556726455688,
0.1035749539732933,
0.3279881477355957,
-0.07387948036193848,
-0.30203500390052795,
-0.12175260484218597,
0.12798960506916046,
-0.7221899032592773,
0.40649887919425964,
0.09973716735839844,
0.21448509395122528,
0.40192994475364685,
-0.3429870307445526,
-0.08359673619270325,
0.06105535849928856,
-0.02541772648692131,
0.18009456992149353,
-0.023019777610898018,
-0.03117354027926922,
0.03763752803206444,
-0.4128356873989105,
0.1756494790315628,
-0.1653895527124405,
-0.06827481091022491,
0.43194708228111267,
0.009018643759191036,
-0.34688684344291687,
-0.2257697582244873,
0.0040275901556015015,
0.1563153713941574,
0.8365632891654968,
-0.2909943759441376,
-0.30081745982170105,
-0.18540219962596893,
0.012322813272476196,
-0.2771318852901459,
0.045500244945287704,
0.14399410784244537,
-0.15938381850719452,
0.2682828903198242,
-0.12343189865350723,
-0.23306222259998322,
-0.4423272907733917,
0.11372349411249161,
0.08274893462657928,
0.06603647023439407,
0.05742775648832321,
-0.021300284191966057,
-0.12784218788146973,
0.07381758838891983,
0.48066478967666626,
-0.23263905942440033,
0.23940128087997437,
-0.045768387615680695,
0.048028476536273956,
0.007737402804195881,
0.006592967547476292,
0.010067200288176537,
0.039371442049741745,
0.3771505057811737,
0.2925489544868469,
0.3042573034763336,
-0.21641604602336884,
0.12896619737148285,
0.3068763017654419,
-0.11106627434492111,
-0.1545388102531433,
0.1760091483592987,
0.3733801245689392,
0.32814353704452515,
-0.16031581163406372,
0.09734731912612915,
0.044194385409355164,
-0.020412473008036613,
-0.048343248665332794,
-0.011506730690598488,
0.24901194870471954,
-0.11208569258451462,
-0.16031648218631744,
0.09000573307275772,
0.4107772409915924,
-0.03501879423856735,
0.10489264130592346,
0.465733140707016,
0.2050713151693344,
0.06175236031413078,
0.17863892018795013,
0.05170569196343422,
-0.05472811311483383,
-0.35716065764427185,
-0.19146224856376648,
-0.1491706669330597,
-0.11942586302757263,
0.15667501091957092,
0.3117474615573883,
0.08111733943223953,
0.062325090169906616,
0.20962725579738617,
-0.03775620087981224,
0.055174581706523895,
0.18173837661743164,
0.10491509735584259,
0.3062053918838501,
0.28276464343070984,
0.21040493249893188,
-0.14733809232711792,
0.15645144879817963,
-0.11528581380844116,
0.01272440142929554,
0.025588171556591988,
0.0607018806040287,
-0.2921404540538788,
0.2403782159090042,
0.1989772766828537,
-0.12535881996154785,
0.02979533188045025,
-0.1612190306186676,
0.13228929042816162,
-0.17335864901542664,
-0.5406492948532104,
-0.02820459008216858,
0.012280091643333435,
-0.2696254849433899,
-0.05512991175055504,
0.14895135164260864,
0.577947199344635,
-0.4541294276714325,
0.05808618664741516,
-0.22606511414051056,
-0.3920974135398865,
0.22126616537570953,
-0.19193260371685028,
-0.3621634244918823,
-0.06880929321050644,
-0.1914776712656021,
0.08713966608047485,
0.46546486020088196,
-0.1695096641778946,
-0.47977182269096375,
0.6168544292449951,
-0.49483752250671387,
0.13953617215156555,
0.3924163281917572,
0.39110445976257324,
0.4261016845703125,
-0.053984202444553375,
0.2955661714076996,
0.6335210204124451,
0.1665976345539093,
0.16255085170269012,
0.08637645840644836,
-0.19255179166793823,
0.0026260281447321177,
0.15464988350868225,
0.09421759843826294,
0.3947129249572754,
0.34482821822166443,
0.04273134469985962,
0.3043457269668579,
-0.029594819992780685,
0.107132188975811,
-0.1621575504541397,
0.1595459282398224,
0.03841996192932129,
-0.25229892134666443,
0.034854840487241745,
-0.3511313199996948,
-0.0973137617111206,
0.06656593829393387,
-0.07329137623310089,
-0.041176412254571915,
-0.31283295154571533,
-0.11277268081903458,
0.01538773626089096,
-0.21578022837638855,
0.04743334650993347,
0.1869344562292099,
0.5117520093917847,
-0.35374799370765686,
-0.0836479589343071,
-0.21509890258312225,
0.4215124547481537,
-0.060262925922870636,
0.10061990469694138,
-0.19313712418079376,
0.045917969197034836,
0.26153814792633057,
-0.1608303189277649,
0.22458110749721527,
-0.0018660372588783503,
0.14961384236812592,
0.1670442372560501,
-0.1132134422659874,
0.34602004289627075,
0.13068272173404694,
0.3321983814239502,
0.013622797094285488,
0.17321011424064636,
-0.06852593272924423,
-0.06692829728126526,
0.214858740568161,
0.22406190633773804,
0.09214930981397629,
0.0854683667421341,
-0.03658546879887581,
0.489408016204834,
-0.27974703907966614,
-0.12339000403881073,
0.1405876874923706,
-0.2154741734266281,
0.21973352134227753,
-0.10221975296735764,
-0.33465635776519775,
-0.4874071776866913,
-0.17407338321208954,
-0.08812016993761063,
0.16300451755523682,
0.0008206318598240614,
-0.24533937871456146,
0.2823584973812103,
-0.12787863612174988,
-0.0012547061778604984,
0.2047169804573059,
-0.18159393966197968,
-0.057137586176395416,
-0.09500443935394287,
0.150163933634758,
0.7536982297897339,
0.38680729269981384,
0.32625967264175415,
0.1182200089097023,
0.06513448059558868,
0.08233941346406937,
-0.3109423518180847,
0.18485869467258453,
-0.3025951683521271,
-0.10409539937973022,
0.27215301990509033,
0.04100640490651131,
-0.18007493019104004,
-0.1968040019273758,
0.0929492712020874,
0.0443873293697834,
-0.22031427919864655,
-0.43570154905319214,
-0.033754922449588776,
-0.28793808817863464,
-0.2441302090883255,
-0.1211278960108757,
-0.04461970925331116,
0.26523861289024353,
0.020607871934771538,
0.07590425759553909,
0.4581274092197418,
-0.22046011686325073,
0.06790368258953094,
-0.49254724383354187,
0.2752234935760498,
-0.08794043958187103,
-0.4174765348434448,
0.048378702253103256,
-0.10407963395118713,
0.07606577128171921,
0.11560661345720291,
0.20956838130950928,
0.1128111481666565,
0.37311017513275146,
0.14771442115306854,
-0.0750063806772232,
-0.2747820317745209,
0.04357864707708359,
-0.020088693127036095,
0.07036500424146652,
0.20757099986076355,
-0.0435585081577301,
0.380488783121109,
0.3970622420310974,
-0.2736343741416931,
-0.04595083370804787,
-0.2430938184261322,
0.032110102474689484,
-0.137644425034523,
-0.04365364462137222,
0.110716812312603,
-0.24115397036075592,
-0.25413841009140015,
-0.22482696175575256,
-0.3848802149295807,
-0.11853442341089249,
-0.060575783252716064,
0.008817358873784542,
0.09472633898258209,
0.15749293565750122,
-0.1931159943342209,
0.19118374586105347,
0.07188921421766281,
-0.18304648995399475,
-0.4440860450267792,
0.22322608530521393,
-0.3767169117927551,
-0.10015562921762466,
-0.04962412640452385,
-0.06821300834417343,
0.09817081689834595,
0.4339340627193451,
-0.30718886852264404,
-0.04134334623813629,
0.036986466497182846,
0.24681958556175232,
0.03403571993112564,
-0.15530745685100555,
0.17252936959266663,
0.04083080217242241,
-0.12806913256645203,
-0.3600585162639618,
-0.06471000611782074,
-0.07564391940832138,
-0.42013612389564514,
-0.2949754595756531,
0.06115204840898514,
0.20592625439167023,
-0.2188313603401184,
0.5087913870811462,
-0.07577551901340485,
-0.09796963632106781,
0.23976163566112518,
-0.008676489815115929,
0.5145037174224854,
-0.13058410584926605,
-0.03361764922738075,
-0.19929587841033936,
0.16648827493190765,
-0.143998384475708,
0.325508177280426,
-0.24844807386398315,
-0.1514013558626175,
-0.09768538922071457,
-0.07068604975938797,
-0.5160909295082092,
-0.30011850595474243,
-0.07898082584142685,
0.11745844781398773,
0.0686207264661789,
0.15115733444690704,
0.15471170842647552,
-0.2805814743041992,
-0.10403580218553543,
-0.2885710299015045,
-0.0409897118806839,
0.19108609855175018,
-0.028771672397851944,
-0.022105135023593903,
0.22780656814575195,
-0.27696692943573,
0.1098923608660698,
-0.16602836549282074,
0.19105198979377747,
-0.13542857766151428,
-0.10308393090963364,
0.18365652859210968,
0.13651156425476074,
0.34371140599250793,
-0.23353028297424316,
0.35266566276550293,
-0.13875849545001984,
0.014996142126619816,
-0.1275743544101715,
0.09435109794139862,
0.06571394205093384,
0.05529864877462387,
-0.21935804188251495,
0.1975572556257248,
-0.2739308774471283,
0.18849368393421173,
0.09140568226575851,
-0.12735365331172943,
0.16036279499530792,
-0.26894980669021606,
-0.08898656070232391,
0.013170991092920303,
-0.3052702844142914,
0.0851898193359375,
-0.05162559822201729,
0.11675523221492767,
-0.46076899766921997,
0.06549934297800064,
0.015826040878891945,
0.29838505387306213,
0.18870718777179718,
0.16152521967887878,
0.09257199615240097,
0.29989147186279297,
0.12808145582675934,
0.2864866852760315,
0.19386278092861176,
0.21307508647441864,
0.5344177484512329,
0.08649873733520508,
-0.392578125,
-0.05752880126237869,
0.10156330466270447,
-0.024828370660543442,
0.5949657559394836,
0.04663711413741112,
-0.02564779296517372,
0.555761456489563,
-0.13266262412071228,
-0.015821728855371475,
0.27440130710601807,
-0.2230222225189209,
-0.37379005551338196,
-0.03859984874725342,
-0.774852991104126,
0.2154512256383896,
-0.23310217261314392,
-0.21863079071044922,
0.13257905840873718,
-0.09174445271492004,
-0.3929606080055237,
0.057702239602804184,
-0.05391388759016991,
0.6291313171386719,
-0.046843379735946655,
0.29451730847358704,
0.2882644236087799,
-0.1769281029701233,
-0.0689125582575798,
-0.30645158886909485,
0.05831056460738182,
-0.22855466604232788,
-0.31805387139320374,
-0.06886264681816101,
-0.18699489533901215,
-0.18283510208129883,
-0.021291235461831093,
-0.07290703803300858,
-0.03793865069746971,
-0.09154122322797775,
0.3119586408138275,
-0.00683389650657773,
0.26279327273368835,
-0.1161717101931572,
-0.21642537415027618,
-0.24745938181877136,
0.11901482194662094,
0.02003685012459755,
-0.05335690453648567,
-0.13711930811405182,
-0.2664307951927185,
0.16535454988479614,
-0.09386493265628815,
0.04144595190882683,
0.2887819707393646,
-0.30076882243156433,
-0.0420222133398056,
-0.3588796854019165,
-0.3321494162082672,
0.05563594028353691,
0.5209614038467407,
-0.0049688126891851425,
-0.0068851071409881115,
-0.2202291041612625,
0.09539277851581573,
0.10834591090679169,
0.15012449026107788,
-0.26643991470336914,
-0.004509555175900459,
0.15964587032794952,
-0.010069465264678001,
-0.05707903951406479,
0.1691133975982666,
0.16599543392658234,
-0.4264167845249176,
-0.03343425691127777,
0.08588077127933502,
0.43921905755996704,
-0.4456639587879181,
-0.14437377452850342,
0.03663284331560135,
0.18027155101299286,
-0.15079838037490845,
0.1378503441810608,
-0.10607859492301941,
-0.05177667364478111,
-0.3217291533946991,
0.05000535026192665,
-0.1861559897661209,
-0.06807683408260345,
0.6423168182373047,
0.0061248731799423695,
0.18866181373596191,
0.3370635509490967,
-0.08956079930067062,
-0.09312177449464798,
-0.3612302839756012,
-0.07106335461139679,
0.2568254768848419,
-0.0470072478055954,
0.11820174753665924,
0.2928241193294525,
-0.225226491689682,
0.044197000563144684,
-0.11707060039043427,
-0.32613539695739746,
0.16908586025238037,
0.03360050544142723,
-0.2435181736946106,
-0.23108422756195068,
0.11991001665592194,
-0.3283318877220154,
0.2780848443508148,
0.19790227711200714,
-0.0024974450934678316,
-0.19191667437553406,
-0.30172890424728394,
-0.36455485224723816,
-0.0776551216840744,
0.1741485595703125,
-0.14070333540439606,
0.24710650742053986,
0.10083965212106705,
0.030639853328466415,
-0.023965507745742798,
0.16033725440502167,
-0.01967482827603817,
-0.3164534568786621,
-0.24388819932937622,
-0.01155163161456585,
0.09399571269750595,
0.026064777746796608,
-0.1963682323694229,
-0.16610616445541382,
-0.36402806639671326,
-0.32952216267585754,
-0.19617506861686707,
0.5828258991241455,
0.10605479776859283,
0.025118906050920486,
-0.13952422142028809,
0.2030877023935318,
0.2366361916065216,
-0.28576189279556274,
0.03862357139587402,
-0.10958666354417801,
0.12474288791418076,
-0.19149649143218994,
0.02498721145093441,
-0.35906633734703064,
-0.16560451686382294,
0.030295971781015396,
0.11324136704206467,
0.7655715346336365,
0.6395236849784851,
0.18994392454624176,
-0.36007776856422424,
-0.1204330176115036,
-0.006814084015786648,
0.37166959047317505,
0.07675930112600327,
-0.158126100897789,
-0.0583181194961071,
-0.04041147232055664,
0.2106608748435974,
-0.19267627596855164,
0.03029443323612213,
0.15999695658683777,
-0.07258043438196182,
0.24830572307109833,
0.040970366448163986,
0.13028180599212646,
-0.03193209320306778,
0.018876753747463226,
-0.005365535616874695,
0.18605691194534302,
-0.00290497113019228,
0.23022444546222687,
0.3586811125278473,
-0.12483274191617966,
0.11064763367176056,
-0.1595587283372879,
0.3946664333343506,
-0.13132524490356445,
0.518318772315979,
-0.20404426753520966,
0.35434505343437195,
0.03442887216806412,
-0.047021571546792984,
-0.19944170117378235,
-0.4427708089351654,
0.009806550107896328,
0.18224088847637177,
-0.24454568326473236,
0.19389532506465912,
-0.09527861326932907,
-0.12356138229370117,
-0.01842954009771347,
0.3220762312412262,
-0.13737846910953522,
0.005758872255682945,
0.017358263954520226,
-0.16755779087543488,
-0.46423080563545227,
-0.1995343565940857,
0.20565351843833923,
-0.012620598077774048,
-0.035953838378190994,
0.10886548459529877,
-0.20196112990379333,
0.04280064254999161,
0.07492252439260483,
-0.03761439770460129,
0.18449579179286957,
0.17490461468696594,
-0.28729528188705444,
-0.17720071971416473,
0.21705080568790436,
-0.015859654173254967,
0.2820327579975128,
0.782944917678833,
-0.0533570870757103,
0.18401256203651428,
0.05722128599882126,
0.10474800318479538,
-0.061302077025175095,
0.20709440112113953,
-0.15038634836673737,
-0.35542193055152893,
-0.0235797930508852,
0.25926709175109863,
0.19280049204826355,
0.3341791033744812,
0.23473970592021942,
-0.1528058648109436,
0.10538589209318161,
0.31652718782424927,
-0.027576090767979622,
-0.04865855351090431,
-0.001637294888496399,
0.2861073613166809,
-0.09044018387794495,
-0.09222348034381866,
-0.08274273574352264,
-0.03249861299991608,
-0.03749282285571098,
0.45842674374580383,
0.09027323871850967,
0.17486508190631866,
-0.049451202154159546,
0.08771984279155731,
-0.06922729313373566,
0.3722403645515442,
-0.016654321923851967,
0.08032090216875076,
-0.12565799057483673,
-0.026945218443870544,
-0.5684342384338379,
0.3697901666164398,
0.05591393634676933,
-0.46404895186424255,
-0.23391219973564148,
0.11175587773323059,
0.3646903336048126,
0.13155323266983032,
-0.03882225230336189,
-0.2553672194480896,
0.03764880821108818,
0.1611594706773758,
0.06391217559576035,
-0.14616185426712036,
-0.12485609203577042,
0.21999256312847137,
-0.10219120234251022,
-0.3245633542537689,
0.007576736621558666,
-0.1472795158624649,
0.19502687454223633,
0.3083954155445099,
0.06979361176490784,
-0.011935723014175892,
-0.06599339842796326,
0.4462386667728424,
-0.1347080022096634,
0.5540798306465149,
-0.2477865070104599,
0.06212496757507324,
-0.33692654967308044,
0.003212466137483716,
-0.37175610661506653,
-0.05291106179356575,
0.10591204464435577,
0.34187379479408264,
-0.1066589206457138,
0.2825523912906647,
-0.23178699612617493,
0.22380249202251434,
-0.11786255985498428,
0.1600407063961029,
0.10262694954872131,
0.17234477400779724,
-0.07103313505649567,
0.1694592386484146,
-0.04763445258140564,
0.08217154443264008,
-0.13119608163833618,
0.05819002911448479,
0.08161641657352448,
-0.32320865988731384,
0.39181190729141235,
-0.5240740776062012,
-0.1475045382976532,
-0.13193832337856293,
0.3733910322189331,
-0.10992264747619629,
0.020580805838108063,
-0.05200359597802162,
0.46812549233436584,
-0.0006573034916073084,
-0.24748598039150238,
0.08463721722364426,
0.17368978261947632,
-0.04698898270726204,
0.21505774557590485,
-0.1614273488521576,
-0.03245631605386734,
0.2596482038497925,
-0.1424063742160797,
-0.2847166657447815,
-0.30289068818092346
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.