html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
βŒ€
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/5481
Load a cached dataset as iterable
>And since it can be tricky to manually find the "initial" version of a dataset in the cache, maybe load_dataset could return an iterable dataset streamed from the cache if streaming=True and the cache is up-to-date. This is exactly the need on JeanZay (HPC) - I have the dataset cache ready, but the compute node is offline, so making streaming work off a local cache would address that need. If you will have a working POC I can be the tester.
The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True
81
Load a cached dataset as iterable The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True >And since it can be tricky to manually find the "initial" version of a dataset in the cache, maybe load_dataset could return an iterable dataset streamed from the cache if streaming=True and the cache is up-to-date. This is exactly the need on JeanZay (HPC) - I have the dataset cache ready, but the compute node is offline, so making streaming work off a local cache would address that need. If you will have a working POC I can be the tester.
[ -0.5014036297798157, 0.05432736873626709, -0.10125631093978882, -0.07900725305080414, 0.12147931754589081, 0.1819654405117035, 0.25633504986763, 0.42223820090293884, 0.23714986443519592, 0.052170537412166595, 0.12539048492908478, 0.15139029920101166, -0.3170555531978607, 0.2229762226343155, 0.08654886484146118, -0.08318062126636505, -0.03172745555639267, 0.3788348138332367, -0.37935635447502136, -0.004979018121957779, -0.08308371901512146, -0.08899819105863571, 0.09918747842311859, -0.030033811926841736, -0.040928468108177185, -0.26316457986831665, 0.022728020325303078, 0.13693195581436157, 0.04090472310781479, -0.4894179701805115, 0.26960018277168274, 0.06900466233491898, 0.3606097102165222, 0.09931893646717072, -0.00009938247967511415, 0.07745982706546783, 0.033574752509593964, -0.1333371102809906, -0.32632526755332947, 0.10026708245277405, -0.08235353231430054, -0.05082125961780548, 0.22764454782009125, -0.3228301703929901, -0.3029509484767914, -0.08014985173940659, 0.12651513516902924, -0.5668078660964966, 0.5319095849990845, 0.1609475016593933, 0.30356666445732117, 0.22070585191249847, -0.24874922633171082, -0.015171421691775322, -0.10196617990732193, -0.27605384588241577, -0.21211020648479462, 0.1806013435125351, 0.3067534565925598, -0.0029236115515232086, -0.004260145127773285, 0.4173866808414459, 0.058263860642910004, 0.12147213518619537, 0.20600387454032898, -0.04608483240008354, 0.37155237793922424, -0.04657529294490814, -0.1080242469906807, 0.16156601905822754, 0.403646320104599, -0.3302428424358368, -0.3504358232021332, -0.32116538286209106, 0.04978832229971886, -0.5787559747695923, -0.15595945715904236, 0.11378563940525055, -0.05622652918100357, 0.3097670376300812, 0.09072549641132355, -0.08180351555347443, -0.14557531476020813, -0.08192887902259827, 0.09244778752326965, 0.18429547548294067, 0.03339671343564987, -0.07117455452680588, 0.08412641286849976, 0.06316710263490677, 0.37477079033851624, 0.22612620890140533, 0.009012121707201004, 0.24459576606750488, -0.29118725657463074, -0.14647699892520905, -0.07255455106496811, 0.07072240114212036, 0.07201159000396729, 0.1262572854757309, 0.5776557922363281, 0.16546055674552917, 0.07885554432868958, 0.14424633979797363, 0.12007632851600647, 0.07166512310504913, -0.12464817613363266, -0.014603016898036003, -0.02265240252017975, 0.006477862596511841, -0.3005576729774475, -0.19101205468177795, -0.17196911573410034, -0.17912743985652924, 0.26796379685401917, 0.10833629220724106, -0.059519145637750626, -0.055377665907144547, 0.026107484474778175, -0.07562222331762314, -0.051302358508110046, 0.08652341365814209, 0.12690305709838867, 0.2987104654312134, -0.03256870433688164, 0.4174870550632477, -0.054698362946510315, 0.06998372822999954, -0.038902997970581055, -0.23744821548461914, -0.1845857948064804, -0.10370311141014099, -0.20545770227909088, 0.18235307931900024, 0.15622848272323608, -0.021901145577430725, 0.19457991421222687, -0.18209156394004822, 0.08749479055404663, 0.1348831057548523, 0.4814787209033966, -0.025427570566534996, 0.33320409059524536, 0.06031716614961624, -0.15636558830738068, -0.13426154851913452, 0.2300453782081604, -0.06198997050523758, -0.30683088302612305, -0.10852537304162979, -0.13561367988586426, -0.31279152631759644, 0.1844148188829422, 0.2733825743198395, 0.028212469071149826, -0.1057693213224411, -0.1619294285774231, 0.34051406383514404, 0.14669017493724823, -0.16409197449684143, 0.12898017466068268, -0.04617498815059662, 0.0017092525959014893, -0.08654792606830597, 0.16647213697433472, 0.3627856969833374, -0.23137058317661285, -0.16239845752716064, 0.10099554806947708, 0.1583164930343628, -0.14718103408813477, 0.17085127532482147, -0.35123753547668457, -0.004299640655517578, -0.11302321404218674, -0.024335697293281555, 0.4508972465991974, -0.1936214715242386, -0.22531364858150482, 0.14454692602157593, 0.009925737977027893, 0.12473004311323166, 0.1838587075471878, 0.2009156197309494, 0.027596240863204002, 0.013066692277789116, -0.18062329292297363, 0.38029932975769043, -0.19235968589782715, -0.05125235766172409, -0.29923132061958313, -0.19071340560913086, 0.05608062073588371, 0.186866894364357, 0.19667933881282806, 0.09876008331775665, 0.0034584850072860718, -0.17695318162441254, 0.48266133666038513, -0.38352128863334656, 0.1206178143620491, 0.05216597765684128, 0.020527338609099388, -0.10732728242874146, 0.030528254806995392, -0.162151038646698, -0.23152822256088257, 0.2365664541721344, -0.12085223942995071, -0.3885717988014221, -0.008640788495540619, -0.30598413944244385, -0.03644338622689247, 0.1756606549024582, -0.15923668444156647, -0.010437790304422379, 0.22488215565681458, 0.09378869831562042, 0.13869555294513702, -0.0621287003159523, -0.46783772110939026, 0.30640995502471924, -0.23043420910835266, -0.15428327023983002, -0.33367329835891724, 0.08152173459529877, 0.16531063616275787, 0.02430582046508789, -0.14380580186843872, 0.0841306671500206, -0.022294439375400543, -0.1063377857208252, -0.008267795667052269, 0.2780979871749878, -0.15019862353801727, 0.22892706096172333, 0.13789284229278564, 0.48494696617126465, 0.08415575325489044, -0.15731029212474823, 0.08536118268966675, 0.2707965075969696, 0.020023923367261887, -0.017169062048196793, 0.0018926523625850677, 0.6015613675117493, -0.12850098311901093, 0.17303407192230225, 0.2343754917383194, -0.0015239249914884567, 0.33961477875709534, -0.03497439995408058, -0.42457878589630127, -0.1669733226299286, 0.0384284108877182, -0.17616987228393555, 0.3987014889717102, -0.1252899020910263, -0.3195880651473999, 0.2505105435848236, 0.3012219965457916, 0.2209884524345398, 0.09371370822191238, -0.15659970045089722, -0.22462821006774902, -0.07651959359645844, 0.28814736008644104, 0.12967203557491302, -0.0031806379556655884, 0.2589205205440521, 0.21663109958171844, -0.025942595675587654, -0.09747954457998276, -0.016997942700982094, 0.15993022918701172, -0.08537314832210541, 0.36990121006965637, 0.13905364274978638, 0.1471967250108719, -0.1993686705827713, -0.31277763843536377, -0.09246325492858887, 0.03670976310968399, -0.1398414820432663, 0.052533108741045, 0.37023410201072693, -0.2774783670902252, -0.03176647797226906, -0.2601117491722107, -0.16278107464313507, 0.1336887627840042, -0.039121028035879135, 0.10194940865039825, 0.25652769207954407, -0.14282169938087463, 0.17714275419712067, -0.5592631101608276, 0.40405383706092834, 0.0652475655078888, -0.21170948445796967, -0.15353736281394958, -0.39983516931533813, -0.023714300245046616, 0.16067276895046234, 0.14331850409507751, -0.22604402899742126, 0.3325761556625366, 0.03580428659915924, -0.1096782460808754, -0.07331307977437973, -0.08741399645805359, 0.16620010137557983, 0.2988262176513672, -0.0961262583732605, -0.06344686448574066, 0.029075756669044495, -0.0865616649389267, -0.1483771950006485, 0.061044320464134216, -0.35929766297340393, 0.09290672838687897, 0.028450805693864822, -0.03864654526114464, 0.2035490721464157, 0.06908650696277618, -0.2337632179260254, -0.3817867338657379, -0.3726039230823517, 0.30305227637290955, 0.1860043853521347, 0.08868034929037094, 0.16786441206932068, 0.11618946492671967, -0.07094565778970718, 0.21620778739452362, -0.12416066229343414, -0.12303278595209122, -0.3120303153991699, 0.3515183925628662, -0.33166390657424927, -0.15691529214382172, -0.15247274935245514, -0.39183878898620605, 0.18348215520381927, 0.27241718769073486, -0.2997654378414154, 0.03356199711561203, 0.06071384996175766, 0.21131426095962524, -0.06834980100393295, -0.30175143480300903, 0.42800000309944153, 0.09875764697790146, -0.11636072397232056, -0.16722401976585388, 0.30906355381011963, 0.20816266536712646, -0.12044792622327805, 0.045396897941827774, 0.009139837697148323, 0.20271024107933044, 0.11818006634712219, 0.7760046124458313, -0.04420735687017441, -0.12988817691802979, 0.3631648123264313, 0.0027693379670381546, 0.048387739807367325, -0.13131725788116455, -0.06398536264896393, -0.19018243253231049, -0.24817967414855957, -0.3486707806587219, 0.22016148269176483, 0.004563545808196068, -0.44379088282585144, -0.15341870486736298, 0.32873305678367615, 0.05264505743980408, -0.23560959100723267, 0.25908127427101135, -0.38590696454048157, 0.3809792399406433, 0.09854854643344879, 0.1920333206653595, -0.26086121797561646, -0.04211718589067459, 0.17623019218444824, -0.14726366102695465, 0.20797710120677948, 0.007534828968346119, -0.027125177904963493, 0.18168702721595764, -0.4985809326171875, 0.20496781170368195, 0.1401078850030899, 0.04091756418347359, 0.3147260546684265, -0.5240637063980103, -0.03451642394065857, -0.26840394735336304, 0.3437761664390564, -0.09629221260547638, -0.08795465528964996, 0.24273908138275146, -0.1747308075428009, -0.17786920070648193, 0.0010362714529037476, 0.007466036826372147, 0.17235422134399414, -0.014854911714792252, 0.3194129467010498, -0.09895121306180954, -0.07541394233703613, -0.20191799104213715, 0.1397794932126999, -0.2742040753364563, 0.18699346482753754, -0.09068696200847626, 0.12789538502693176, -0.029825542122125626, 0.16725100576877594, -0.043753817677497864, -0.06893087178468704, -0.021733686327934265, 0.017213810235261917, -0.46488070487976074, 0.1403253674507141, -0.11117663979530334, 0.31589701771736145, 0.28514760732650757, -0.08659046143293381, 0.23286089301109314, 0.1744430959224701, 0.33269521594047546, 0.19297099113464355, 0.440041184425354, -0.016988642513751984, -0.09788957238197327, -0.13044071197509766, 0.08534229546785355, 0.09504000097513199, 0.2591944932937622, 0.0313289500772953, 0.11001116782426834, 0.27670907974243164, -0.06612278521060944, -0.2454788088798523, 0.047630250453948975, -0.13345207273960114, -0.01659276708960533, -0.2279994934797287, -0.5342440009117126, 0.4602404236793518, -0.138777494430542, -0.15038564801216125, 0.38995352387428284, -0.29077208042144775, -0.18851591646671295, 0.38074177503585815, 0.30948513746261597, 0.7896156907081604, -0.17552262544631958, 0.3067498505115509, 0.19784733653068542, -0.0856015682220459, 0.10235421359539032, -0.3881874084472656, 0.16820453107357025, -0.3589993715286255, -0.2339285910129547, -0.11260903626680374, 0.014639679342508316, -0.14145946502685547, 0.35293030738830566, -0.1926637589931488, 0.24633094668388367, 0.0728718638420105, -0.025400932878255844, 0.01884005032479763, 0.00964226946234703, -0.09991972148418427, -0.33550480008125305, -0.5364370942115784, 0.23639652132987976, 0.08269602805376053, -0.24612972140312195, -0.28878703713417053, -0.22857870161533356, 0.4771811068058014, 0.06743088364601135, 0.07510589063167572, 0.10929740220308304, -0.5703583359718323, 0.13499313592910767, -0.21561318635940552, -0.490642249584198, -0.2401750683784485, 0.15298137068748474, 0.19120880961418152, -0.07607950270175934, -0.1831221580505371, 0.2270226925611496, 0.303824782371521, -0.09920963644981384, -0.3145551085472107, 0.02486559748649597, 0.39740249514579773, -0.059342160820961, 0.11777899414300919, 0.19917109608650208, -0.06355071812868118, -0.6506361365318298, 0.16116410493850708, -0.01671479642391205, 0.1657552421092987, 0.14979462325572968, -0.01232418417930603, 0.306130588054657, -0.16181893646717072, -0.2762126326560974, 0.22567319869995117, 0.012676980346441269, -0.1865663379430771, -0.070180244743824, 0.16960258781909943, -0.148121640086174, -0.0196993425488472, 0.21330443024635315, -0.001258116215467453, 0.08650680631399155, 0.4323079586029053, 0.04864281788468361, -0.11015047132968903, -0.4098544418811798, -0.16619740426540375, 0.32123610377311707, -0.2829025983810425, 0.14819695055484772, -0.0025853158440440893, -0.11508354544639587, -0.0023834926541894674, 0.08576082438230515, 0.32961559295654297, 0.06640839576721191, -0.18839389085769653, -0.0704774558544159, -0.40255841612815857, 0.15469253063201904, 0.06211433559656143, 0.19186727702617645, 0.08071961998939514, -0.166484534740448, -0.28003811836242676, 0.07838407903909683, -0.458078533411026, -0.10861991345882416, -0.09793246537446976, 0.03713461756706238, -0.1271703690290451, -0.010448012501001358, 0.1838853806257248, 0.11988851428031921, 0.2166576087474823, 0.06091360002756119, -0.2762297987937927, -0.3789461553096771, -0.17159909009933472, 0.08136377483606339, -0.04389174282550812, -0.040699489414691925, 0.03212849050760269, -0.05737517401576042, -0.1360083371400833, -0.3998027741909027, 0.007078683003783226, 0.055379755795001984, -0.03099588304758072, -0.01454647071659565, 0.3832002878189087, 0.002047494053840637, -0.40404075384140015, -0.10861513018608093, 0.13346780836582184, -0.049334973096847534, -0.23109202086925507, 0.19712871313095093, -0.12619353830814362, -0.06804651021957397, 0.20697931945323944, 0.15831232070922852, 0.14849518239498138, 0.04488573968410492, 0.3026175796985626, -0.24537800252437592, -0.06882378458976746, 0.14152447879314423, 0.4834729731082916, 0.2142069935798645, 0.02430960163474083, 0.13296625018119812, 0.22454282641410828, 0.3657478988170624, -0.3928855061531067, 0.0019698860123753548, -0.07867492735385895, -0.15989388525485992, 0.18677332997322083, 0.23552921414375305, 0.2389194667339325, -0.10441909730434418, 0.22759422659873962, 0.043058499693870544, -0.14122329652309418, -0.41526150703430176, 0.13613830506801605, 0.21229025721549988, 0.21465249359607697, -0.12505760788917542, 0.11089649051427841, 0.20525327324867249, 0.36442476511001587, 0.2513333559036255, -0.25923386216163635, 0.14312221109867096, 0.44588494300842285, -0.09423330426216125, -0.32949298620224, -0.16801095008850098, -0.22065778076648712, -0.13152262568473816, 0.009410873055458069, 0.5100334286689758, 0.15051506459712982, 0.240913987159729, 0.14348016679286957, -0.3181910216808319, -0.3099604547023773, -0.06755630671977997, 0.08236987143754959, -0.27915939688682556, -0.04759930074214935, -0.14321865141391754, -0.09768194705247879, 0.03390684351325035, 0.010660972446203232, 0.09748057276010513, 0.30629318952560425, 0.22553487122058868, 0.3600172996520996, -0.3229029178619385, 0.2838239371776581, 0.22748953104019165, 0.48118531703948975, -0.26820388436317444, 0.185591459274292, 0.11836804449558258, 0.061655495315790176, -0.005468789488077164, 0.048528142273426056, 0.04595475643873215, 0.1487695276737213, -0.29690080881118774, 0.3193686306476593, -0.040440529584884644, -0.08755415678024292, -0.28032901883125305, -0.01433006301522255, 0.23482900857925415, -0.11731870472431183, 0.428788959980011, 0.2052760124206543, -0.20228268206119537, 0.4783971905708313, -0.26048609614372253, 0.08802671730518341, -0.42321956157684326, -0.11359318345785141, 0.3055029809474945, -0.07268482446670532, -0.0952678918838501, 0.18042266368865967, -0.19896110892295837, 0.14164693653583527, 0.3403133451938629, -0.3207465708255768, 0.12427114695310593, 0.15370440483093262, 0.1412949115037918, -0.11346252262592316, 0.5728718042373657, 0.1385711133480072, 0.3208465576171875, -0.16976739466190338, -0.04178387671709061, -0.4669964611530304, 0.021602511405944824, -0.2380354404449463, 0.07585100084543228, -0.10574791580438614, 0.3165730834007263, 0.3035617172718048, 0.14108802378177643, 0.14846524596214294, -0.17563731968402863, 0.020750999450683594, 0.45923754572868347, -0.25301921367645264, -0.15512515604496002, 0.018658872693777084, 0.1856101155281067, 0.09599154442548752, -0.5739982724189758, -0.22485722601413727, -0.05041637644171715, 0.1945837140083313, 0.2076817899942398, -0.23993435502052307, 0.1449681967496872, 0.017196934670209885, 0.6103308796882629, -0.045125171542167664, 0.10787519067525864, -0.18490564823150635, 0.00540555827319622, -0.43242764472961426, -0.4463261663913727, -0.26900622248649597, -0.065194271504879, -0.05948584899306297, 0.24744844436645508, -0.21297875046730042, -0.27168726921081543, -0.19278202950954437, 0.03721203655004501, 0.34203678369522095, -0.17671655118465424, -0.1917552351951599, 0.09557964652776718, -0.11347183585166931, 0.18436315655708313, -0.13323087990283966, 0.5510249137878418, -0.06029461324214935, 0.04033152759075165, 0.05619917809963226, -0.15662558376789093, 0.40321630239486694, -0.45441576838493347, -0.14876949787139893, 0.04926139861345291, 0.21716400980949402, 0.49405673146247864, -0.07956010848283768, -0.33108794689178467, 0.10079913586378098, 0.2007855325937271, -0.0822054073214531, -0.1944476217031479, 0.05653458088636398, 0.17417211830615997, 0.05917884781956673, -0.22448848187923431, 0.5681531429290771, 0.0033769048750400543, -0.1512138843536377, -0.3377756178379059, -0.5449734330177307 ]
https://github.com/huggingface/datasets/issues/5481
Load a cached dataset as iterable
> Yes, I see how this can be useful. Still, I think Dataset.to_iterable + IterableDataset.from_file would be much cleaner in terms of the API design (and more flexible since load_dataset can only access the "initial" (unprocessed) version of a dataset). I like `IterableDataset.from_file` as well. On the other hand `Dataset.to_iterable` first requires to load a Dataset object, which can take time depending on your hardware and your dataset size (sometimes 1h+). > And since it can be tricky to manually find the "initial" version of a dataset in the cache, maybe load_dataset could return an iterable dataset streamed from the cache if streaming=True and the cache is up-to-date. That would definitely do the job. I was suggesting a different parameter just to make explicit the difference between - streaming from the raw data - streaming from the local cache But I'd be fine with streaming from cache is the cache is up-to-date since it's always faster. We could log a message as usual to make it explicit that the cache is used
The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True
172
Load a cached dataset as iterable The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True > Yes, I see how this can be useful. Still, I think Dataset.to_iterable + IterableDataset.from_file would be much cleaner in terms of the API design (and more flexible since load_dataset can only access the "initial" (unprocessed) version of a dataset). I like `IterableDataset.from_file` as well. On the other hand `Dataset.to_iterable` first requires to load a Dataset object, which can take time depending on your hardware and your dataset size (sometimes 1h+). > And since it can be tricky to manually find the "initial" version of a dataset in the cache, maybe load_dataset could return an iterable dataset streamed from the cache if streaming=True and the cache is up-to-date. That would definitely do the job. I was suggesting a different parameter just to make explicit the difference between - streaming from the raw data - streaming from the local cache But I'd be fine with streaming from cache is the cache is up-to-date since it's always faster. We could log a message as usual to make it explicit that the cache is used
[ -0.4431470036506653, 0.028156116604804993, -0.1120666116476059, -0.12623277306556702, -0.005113355815410614, 0.19356068968772888, 0.2638630270957947, 0.4547281861305237, 0.3845585286617279, -0.14230044186115265, 0.2101089060306549, 0.16356997191905975, -0.3739076554775238, 0.12729084491729736, 0.019476398825645447, -0.08440536260604858, -0.04255030304193497, 0.18339982628822327, -0.09516105055809021, 0.043227024376392365, -0.08746390044689178, -0.11890211701393127, 0.16998714208602905, -0.05529282987117767, 0.04583122581243515, -0.19373206794261932, 0.11999042332172394, 0.1302085965871811, 0.028751317411661148, -0.6029784083366394, 0.268056184053421, 0.2092096507549286, 0.4508143663406372, 0.03922615945339203, -0.0001019576593535021, 0.1131848394870758, 0.18395790457725525, -0.10510429739952087, -0.45384737849235535, 0.010488837957382202, -0.11778642982244492, -0.057722292840480804, 0.3324953317642212, -0.279375284910202, -0.2747470438480377, -0.26094549894332886, 0.09313884377479553, -0.6909911632537842, 0.5384103059768677, 0.12402699142694473, 0.2620936334133148, -0.013425251469016075, -0.3865179717540741, 0.056025344878435135, -0.26935648918151855, -0.20573101937770844, -0.1988229602575302, 0.1843186616897583, 0.2716049253940582, 0.07706378400325775, -0.1021609976887703, 0.381902277469635, -0.10128498077392578, 0.1383659988641739, 0.296665757894516, -0.05883865803480148, 0.041664548218250275, -0.10994797945022583, -0.09761626273393631, 0.14396169781684875, 0.5131844282150269, -0.2928089201450348, -0.4104108512401581, -0.4375704824924469, -0.13321422040462494, -0.6261915564537048, -0.1778276264667511, 0.12084023654460907, -0.06199676916003227, 0.3416062593460083, -0.11774756014347076, -0.15696954727172852, -0.14965398609638214, -0.06605783104896545, 0.21546036005020142, 0.06282247602939606, 0.05324238911271095, 0.0014579221606254578, 0.13963867723941803, 0.08788637071847916, 0.37826985120773315, 0.0033328458666801453, 0.05237353965640068, 0.21733982861042023, -0.3061017692089081, -0.043889425694942474, 0.0559515580534935, 0.1247563362121582, 0.04847061634063721, 0.3528320789337158, 0.5305052995681763, 0.24629133939743042, 0.000784609466791153, 0.08964860439300537, 0.1356012225151062, 0.13524232804775238, 0.07306088507175446, -0.04053111746907234, -0.008534371852874756, 0.13897563517093658, -0.19335584342479706, -0.2050136923789978, -0.12459805607795715, -0.11291629821062088, 0.3509286046028137, 0.10742976516485214, 0.00502079539000988, -0.0809679925441742, 0.004451403394341469, -0.1083279699087143, -0.09186141192913055, -0.08060861378908157, 0.15011754631996155, 0.33445659279823303, -0.12946006655693054, 0.42912933230400085, -0.05330440402030945, 0.09732522070407867, 0.11931013315916061, -0.20206362009048462, -0.15006239712238312, -0.13720214366912842, -0.1516660898923874, 0.27550262212753296, 0.11882872879505157, -0.1822883039712906, 0.19171404838562012, -0.19316402077674866, 0.0035396143794059753, 0.15144522488117218, 0.5051819086074829, -0.019740909337997437, 0.46728816628456116, 0.06553270667791367, -0.1511985808610916, -0.0310446098446846, 0.26870977878570557, -0.14277976751327515, -0.40360891819000244, 0.0026083849370479584, -0.08480819314718246, -0.3815401494503021, 0.21967323124408722, 0.2508184611797333, -0.10151545703411102, -0.09519229829311371, -0.2134208381175995, 0.48782286047935486, 0.17307189106941223, -0.038676902651786804, 0.18140912055969238, 0.0413174107670784, -0.1253422647714615, -0.16115933656692505, 0.14015533030033112, 0.4329060912132263, -0.22576265037059784, -0.1675417423248291, -0.03701291233301163, 0.028175177052617073, -0.0984136238694191, 0.15226106345653534, -0.38849323987960815, 0.1242423802614212, -0.09216678887605667, -0.025700978934764862, 0.4818129539489746, -0.27242138981819153, -0.24182474613189697, 0.28048619627952576, 0.1146538257598877, 0.31373319029808044, 0.20985755324363708, 0.16619685292243958, 0.05022316053509712, -0.0459444634616375, 0.11189866065979004, 0.39766210317611694, -0.16091729700565338, -0.008467825129628181, -0.2815362513065338, -0.3019709885120392, 0.150597482919693, 0.2830968499183655, 0.028290778398513794, 0.11733271926641464, -0.08151561766862869, -0.2518956959247589, 0.3735409677028656, -0.23360276222229004, 0.0720304623246193, -0.08868381381034851, 0.03873831406235695, -0.1816006749868393, 0.047755565494298935, -0.10533265024423599, -0.4046787619590759, 0.28045305609703064, 0.07671040296554565, -0.3300119638442993, -0.04584847390651703, -0.2704312801361084, 0.030740082263946533, 0.12028800696134567, -0.2980148494243622, -0.09455634653568268, 0.21215976774692535, 0.04731200635433197, 0.20464903116226196, -0.02437145635485649, -0.5254145860671997, 0.3387303054332733, -0.28381016850471497, -0.12205720692873001, -0.25326889753341675, -0.10561784356832504, 0.3084091246128082, 0.09149961918592453, -0.2322799116373062, -0.016480326652526855, -0.03881211578845978, -0.05608425289392471, -0.015159204602241516, 0.24221324920654297, -0.07787621766328812, 0.29320070147514343, 0.0671117976307869, 0.5932334661483765, 0.11186615377664566, 0.02910992130637169, 0.07932611554861069, 0.18717443943023682, -0.031138483434915543, -0.017336957156658173, -0.0077841803431510925, 0.4742671251296997, 0.03540278971195221, 0.26763251423835754, 0.18507421016693115, -0.10852164030075073, 0.23707684874534607, 0.011517483741044998, -0.45327332615852356, -0.10398532450199127, -0.04631471261382103, -0.2136225402355194, 0.42771008610725403, -0.10286663472652435, -0.22337155044078827, 0.29646992683410645, 0.3406853675842285, 0.1679668128490448, -0.049890920519828796, -0.028077803552150726, -0.1804453730583191, -0.15096735954284668, 0.3053686320781708, 0.27904072403907776, 0.14421366155147552, 0.22225035727024078, 0.20878611505031586, -0.017990203574299812, 0.025786496698856354, 0.021632883697748184, 0.15643742680549622, -0.048391371965408325, 0.24436768889427185, -0.007010243833065033, -0.005661603529006243, -0.13208475708961487, -0.29119712114334106, -0.19903552532196045, 0.01263248547911644, -0.04858853667974472, 0.07956881821155548, 0.28706106543540955, -0.21177662909030914, -0.024931728839874268, -0.15044111013412476, -0.34866780042648315, 0.14167170226573944, -0.11086183041334152, 0.08647175133228302, 0.3102162480354309, -0.24796321988105774, 0.12163521349430084, -0.47024762630462646, 0.3599473834037781, -0.02967657893896103, -0.3520723879337311, -0.1966678649187088, -0.36872315406799316, 0.06394728273153305, 0.14031817018985748, 0.22947289049625397, -0.3774525821208954, 0.38158077001571655, -0.005995367653667927, -0.05480490252375603, -0.09001073986291885, -0.0016422271728515625, 0.09498345851898193, 0.3491591215133667, -0.07463539391756058, -0.05959366261959076, 0.04041631147265434, 0.01114986464381218, -0.20489147305488586, 0.07191784679889679, -0.2838400900363922, 0.11363102495670319, -0.12603610754013062, -0.05810484290122986, 0.16347865760326385, -0.0021086595952510834, -0.20966032147407532, -0.37733954191207886, -0.45468470454216003, 0.2657720446586609, 0.11510561406612396, 0.09847243130207062, 0.3058200478553772, 0.015820030122995377, -0.013872259296476841, 0.25599831342697144, -0.027266191318631172, -0.17891138792037964, -0.31934067606925964, 0.22690248489379883, -0.2670643925666809, -0.10765191912651062, -0.08405795693397522, -0.29597020149230957, 0.18430601060390472, 0.33659112453460693, -0.2806050777435303, -0.06537052243947983, 0.02011626586318016, 0.15866969525814056, -0.005069255828857422, -0.40350744128227234, 0.3792788088321686, 0.18171392381191254, -0.09436988830566406, -0.07721766829490662, 0.2357286512851715, 0.1920168101787567, -0.10118972510099411, -0.06895845383405685, 0.19138622283935547, 0.19259491562843323, 0.16722828149795532, 0.9246257543563843, 0.13867391645908356, -0.23467151820659637, 0.32382434606552124, 0.11448526382446289, 0.0660858005285263, -0.13875475525856018, -0.10215932875871658, -0.24402105808258057, -0.21530422568321228, -0.34453994035720825, 0.1613432765007019, -0.028951425105333328, -0.5275862812995911, -0.20839980244636536, 0.2919413149356842, -0.020934145897626877, -0.2213660031557083, 0.3076774775981903, -0.4103023409843445, 0.23614928126335144, 0.09810429811477661, 0.14390692114830017, -0.2181655913591385, 0.020100627094507217, 0.23008547723293304, 0.0030959025025367737, 0.3537420928478241, 0.030752917751669884, -0.19239374995231628, 0.10604075342416763, -0.6101340055465698, 0.19454091787338257, 0.13425175845623016, 0.04297729954123497, 0.15644556283950806, -0.5119407176971436, -0.02928350120782852, -0.17349250614643097, 0.3498622179031372, -0.16395671665668488, -0.2519923448562622, 0.11229400336742401, -0.14785781502723694, -0.13839814066886902, 0.012143835425376892, 0.1720738559961319, 0.2878395915031433, -0.10965529084205627, 0.3427184224128723, -0.16122740507125854, -0.11922627687454224, -0.2990356385707855, 0.18925559520721436, -0.18625745177268982, 0.09496162831783295, -0.1357734054327011, 0.10373779386281967, -0.18472886085510254, 0.12436725199222565, 0.04223271459341049, -0.11954035609960556, -0.14508241415023804, -0.038261909037828445, -0.32336345314979553, 0.2783718705177307, -0.0412420928478241, 0.32710912823677063, 0.31290510296821594, -0.04892508313059807, 0.22361305356025696, 0.2504500150680542, 0.29826968908309937, 0.135498046875, 0.45505470037460327, 0.0011834204196929932, -0.07074971497058868, -0.1514665186405182, 0.2674543857574463, 0.00911083072423935, 0.2665663957595825, -0.030162334442138672, 0.16397780179977417, 0.3236502408981323, -0.00579342246055603, -0.27650687098503113, 0.033382534980773926, -0.19224832952022552, -0.05150658264756203, -0.33726951479911804, -0.7998651266098022, 0.5312198400497437, 0.021631687879562378, -0.1861308515071869, 0.5451921224594116, -0.3872262239456177, -0.15648077428340912, 0.3893566131591797, 0.21068498492240906, 0.7147363424301147, -0.20504002273082733, 0.2303275763988495, 0.10923837870359421, 0.0007265545427799225, 0.1875438690185547, -0.35747021436691284, 0.11633677035570145, -0.26399680972099304, -0.2017316222190857, -0.11913221329450607, -0.02159206196665764, -0.10174044221639633, 0.3148115873336792, -0.19309264421463013, 0.259121835231781, 0.14997737109661102, 0.10407140105962753, 0.0011818548664450645, 0.10169750452041626, -0.15157786011695862, -0.34506556391716003, -0.5075255036354065, 0.2301025390625, -0.0014202259480953217, -0.13584116101264954, -0.22681760787963867, -0.2401280254125595, 0.35040298104286194, 0.02893190085887909, 0.07547545433044434, 0.04500334709882736, -0.48472967743873596, 0.10711473971605301, -0.2640799880027771, -0.5100051164627075, -0.261600524187088, 0.2555410861968994, 0.09102853387594223, -0.2376917153596878, -0.19599676132202148, 0.16469533741474152, 0.22707810997962952, -0.0548546239733696, -0.28586339950561523, -0.1379978358745575, 0.4302257001399994, -0.061350829899311066, 0.09921253472566605, 0.20087426900863647, -0.11281192302703857, -0.6650698781013489, 0.21868744492530823, 0.08080898970365524, 0.3316364288330078, 0.044438641518354416, -0.30711695551872253, 0.3110758662223816, -0.15234747529029846, -0.07535886764526367, 0.18768993020057678, 0.07668168097734451, -0.05359836295247078, -0.08848323673009872, 0.060753852128982544, -0.14325065910816193, -0.05219056084752083, 0.19302520155906677, -0.026008859276771545, -0.012164561077952385, 0.3512206971645355, -0.13104937970638275, -0.10811444371938705, -0.24431538581848145, -0.29800716042518616, 0.35036662220954895, -0.2954128682613373, 0.07410665601491928, 0.09301910549402237, -0.048240505158901215, -0.05784248188138008, -0.06544627249240875, 0.21273910999298096, 0.08363974094390869, -0.1456296294927597, -0.11860409379005432, -0.4205080568790436, 0.23113657534122467, -0.10987162590026855, 0.24514618515968323, -0.026724014431238174, -0.3231317400932312, -0.16043530404567719, -0.05343847721815109, -0.4216252565383911, -0.1522769033908844, -0.025599868968129158, -0.01184193417429924, -0.0437159538269043, 0.01973206363618374, 0.2383383959531784, 0.04338601604104042, 0.11521126329898834, 0.011598002165555954, -0.3158959448337555, -0.3728145360946655, -0.09057021141052246, 0.11054278165102005, 0.04666777700185776, -0.1560964286327362, -0.03714340552687645, -0.1463490128517151, -0.07728368043899536, -0.34608927369117737, 0.10889294743537903, 0.04184100776910782, -0.06482255458831787, 0.05405876412987709, 0.42903563380241394, 0.10380533337593079, -0.4236779808998108, -0.060759611427783966, 0.01652524620294571, 0.06146813556551933, -0.1839233636856079, 0.13106060028076172, -0.22284652292728424, -0.024721607565879822, 0.23647841811180115, 0.11265575885772705, 0.2593209147453308, 0.14837874472141266, 0.27069494128227234, -0.1405973583459854, -0.05816388502717018, 0.2058354765176773, 0.436367928981781, 0.2343706339597702, -0.030540157109498978, 0.15552537143230438, 0.1611800193786621, 0.350152850151062, -0.23627214133739471, 0.01404181681573391, -0.09701970219612122, -0.11797172576189041, 0.13335424661636353, 0.14602605998516083, 0.3057275116443634, -0.06571890413761139, 0.3603464961051941, 0.026254259049892426, 0.14477577805519104, -0.42366868257522583, 0.20665013790130615, 0.1576039344072342, 0.20498432219028473, -0.06301809847354889, 0.07500619441270828, 0.18789350986480713, 0.3407374918460846, 0.19862617552280426, -0.1787615716457367, 0.23627905547618866, 0.5365408658981323, -0.05311226472258568, -0.2970412075519562, -0.2970770597457886, -0.08148805797100067, -0.00008168816566467285, -0.009551368653774261, 0.47833186388015747, 0.19074402749538422, 0.16270320117473602, 0.20121866464614868, -0.26255953311920166, -0.13109594583511353, -0.04184925928711891, 0.16786909103393555, -0.2596181631088257, 0.0637863278388977, -0.08639883995056152, -0.0719003900885582, 0.046761464327573776, -0.022250469774007797, 0.05333400517702103, 0.2147451937198639, 0.10933306068181992, 0.31086060404777527, -0.12757927179336548, 0.09812252223491669, 0.23860573768615723, 0.5209932923316956, -0.2828478515148163, 0.03502681478857994, 0.20505395531654358, -0.06464613974094391, 0.07097327709197998, 0.0737597718834877, 0.059793900698423386, 0.20359840989112854, -0.28571176528930664, 0.37899014353752136, 0.05361868441104889, -0.01878095418214798, -0.2969421148300171, 0.099702849984169, 0.18227645754814148, -0.18812164664268494, 0.3009890615940094, 0.2180824875831604, -0.1982688158750534, 0.49823814630508423, -0.3661016523838043, 0.11778822541236877, -0.40323707461357117, -0.011709250509738922, 0.3642936050891876, -0.11254316568374634, -0.057597748935222626, 0.18117183446884155, -0.16487997770309448, 0.08244327455759048, 0.3714735805988312, -0.26280948519706726, 0.11766725033521652, -0.049604203552007675, 0.12951019406318665, -0.050502289086580276, 0.45991823077201843, 0.13575293123722076, 0.43054962158203125, -0.23539473116397858, -0.03920675069093704, -0.4603397250175476, -0.06717545539140701, -0.11511464416980743, 0.2352016568183899, -0.00016807392239570618, 0.24951742589473724, 0.24546006321907043, 0.2666696012020111, -0.01438400149345398, -0.15351615846157074, 0.0001134481281042099, 0.3286122679710388, -0.21367253363132477, -0.17348158359527588, 0.06298671662807465, 0.17056263983249664, 0.11399209499359131, -0.5609009861946106, -0.14932893216609955, -0.11607959866523743, 0.12344277650117874, 0.0833888053894043, -0.26142361760139465, 0.27065789699554443, 0.11471357941627502, 0.620179295539856, 0.026523174718022346, 0.05942513421177864, -0.06495435535907745, -0.05468368157744408, -0.31947290897369385, -0.2510727047920227, -0.3202406167984009, -0.04740579426288605, -0.13727790117263794, 0.2699001431465149, -0.15940766036510468, -0.2304847091436386, -0.26462119817733765, 0.13286735117435455, 0.3220824599266052, -0.2240411937236786, -0.2054203599691391, 0.0345119833946228, -0.17579180002212524, 0.16489426791667938, -0.06967232376337051, 0.533873975276947, -0.05172911286354065, 0.05993838608264923, 0.019503720104694366, -0.13711659610271454, 0.40057632327079773, -0.508415162563324, -0.015036589466035366, 0.19781644642353058, 0.15907838940620422, 0.3802400827407837, -0.12200731784105301, -0.3398838937282562, 0.07936800271272659, 0.24592185020446777, -0.15925806760787964, -0.12758326530456543, 0.18041136860847473, 0.15644307434558868, 0.06788986921310425, -0.21225719153881073, 0.603209376335144, -0.0731659084558487, -0.18927045166492462, -0.3105098307132721, -0.5466877818107605 ]
https://github.com/huggingface/datasets/issues/5481
Load a cached dataset as iterable
> I was suggesting a different parameter just to make explicit the difference between MosaicML's `streaming` library does the same (tries to stream from the local cache if possible), so logging a message should be explicit enough :).
The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True
38
Load a cached dataset as iterable The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True > I was suggesting a different parameter just to make explicit the difference between MosaicML's `streaming` library does the same (tries to stream from the local cache if possible), so logging a message should be explicit enough :).
[ -0.509040355682373, -0.038904234766960144, -0.043141212314367294, -0.06490296125411987, 0.20460791885852814, 0.16297170519828796, 0.3031209707260132, 0.41245412826538086, 0.3925513029098511, -0.018862947821617126, 0.16024895012378693, 0.10355988144874573, -0.34594812989234924, 0.14252980053424835, 0.11503414064645767, -0.11755852401256561, -0.04255048185586929, 0.2225218266248703, -0.309143602848053, -0.025776363909244537, -0.06504309922456741, -0.08442632853984833, 0.18393801152706146, -0.1148286759853363, -0.038569752126932144, -0.013177460059523582, 0.12406691908836365, 0.21729809045791626, 0.003610583022236824, -0.5516343116760254, 0.3109869956970215, 0.16928181052207947, 0.2795119881629944, 0.07250510156154633, -0.00010481897334102541, 0.11337679624557495, 0.14643311500549316, -0.24460861086845398, -0.21187138557434082, 0.18722686171531677, -0.16808989644050598, -0.09080848097801208, 0.27741095423698425, -0.28941673040390015, -0.32052451372146606, 0.15969635546207428, 0.10256315022706985, -0.5939130187034607, 0.31788772344589233, 0.177377387881279, 0.2625660002231598, -0.03996924310922623, -0.2800750732421875, 0.029273008927702904, 0.11440196633338928, -0.26431578397750854, -0.23980538547039032, 0.30188998579978943, 0.19298440217971802, 0.07220380753278732, 0.02774573117494583, 0.6009648442268372, -0.0720871165394783, 0.07066765427589417, 0.21179091930389404, -0.005636866204440594, 0.4766906499862671, -0.05738668888807297, -0.15182051062583923, 0.13407117128372192, 0.500301718711853, -0.3707242012023926, -0.2833660840988159, -0.3686577379703522, -0.03829532489180565, -0.5584582090377808, -0.05728407949209213, 0.23251032829284668, -0.14634205400943756, 0.2948664426803589, -0.12536022067070007, -0.2125825136899948, -0.1290731281042099, -0.09406210482120514, 0.09683841466903687, 0.08826430141925812, 0.10129784047603607, -0.06883037835359573, 0.18779277801513672, 0.04703320935368538, 0.2610415518283844, 0.1893906593322754, -0.12091052532196045, 0.17706261575222015, -0.30079710483551025, -0.06504839658737183, -0.10399150103330612, 0.15182514488697052, 0.01617613434791565, 0.22648611664772034, 0.6848617196083069, 0.22249945998191833, 0.1434662938117981, 0.20468834042549133, -0.006073746830224991, -0.07498429715633392, -0.0914616510272026, -0.05205848813056946, -0.05916646867990494, 0.1627308875322342, -0.3706485629081726, -0.21851754188537598, -0.10695939511060715, -0.11890310794115067, 0.1313237100839615, 0.12630727887153625, 0.05177154392004013, -0.14499405026435852, -0.05606529861688614, -0.05932266265153885, -0.2630097568035126, -0.003671901999041438, 0.14859892427921295, 0.443362295627594, -0.12106426805257797, 0.3842654228210449, -0.03336005657911301, 0.07158580422401428, -0.05973321944475174, -0.13767066597938538, -0.09179119020700455, 0.0537412092089653, -0.28237202763557434, 0.15349093079566956, 0.11894886195659637, -0.14821183681488037, 0.17182783782482147, -0.20561817288398743, 0.029391326010227203, 0.09558504819869995, 0.43676885962486267, -0.0268740002065897, 0.39230358600616455, 0.14775192737579346, -0.16778996586799622, -0.06584984064102173, 0.198332279920578, -0.15917539596557617, -0.33792227506637573, -0.18144887685775757, -0.0740213468670845, -0.32442060112953186, 0.29975423216819763, 0.2472880333662033, 0.024347521364688873, -0.16287922859191895, 0.04589186981320381, 0.4105229079723358, 0.029837265610694885, -0.06600441783666611, 0.18812233209609985, 0.050100959837436676, -0.07604020833969116, -0.11045806109905243, 0.23472824692726135, 0.4577820897102356, -0.3893636167049408, -0.2369619905948639, 0.14091721177101135, 0.1098862737417221, -0.05976829677820206, 0.1975635588169098, -0.3651731014251709, -0.0986735001206398, -0.031530171632766724, -0.010988645255565643, 0.5218237042427063, -0.30054640769958496, -0.3191763758659363, -0.0027300063520669937, 0.1307547241449356, 0.29178035259246826, 0.24551525712013245, 0.19316990673542023, 0.1629892736673355, -0.0012523668119683862, -0.16645510494709015, 0.5175814032554626, -0.15301749110221863, 0.015484312549233437, -0.3035684823989868, -0.1486114263534546, 0.16513670980930328, 0.2255738228559494, 0.07763734459877014, -0.05414072424173355, 0.08728885650634766, -0.019583795219659805, 0.377363383769989, -0.3740817606449127, 0.08770334720611572, 0.006841748952865601, 0.022724078968167305, 0.007080018520355225, 0.08394213765859604, -0.1504480391740799, -0.2538430392742157, 0.21806436777114868, 0.1521851122379303, -0.3699696362018585, -0.023685738444328308, -0.21675778925418854, -0.01441891584545374, 0.13174812495708466, -0.2636953890323639, -0.17318348586559296, 0.20245160162448883, 0.20644713938236237, 0.11669547855854034, -0.04928721860051155, -0.46514078974723816, 0.41900157928466797, -0.1785745769739151, -0.10297194868326187, -0.2646738290786743, 0.13257063925266266, 0.17788951098918915, -0.13308613002300262, -0.17718751728534698, 0.09862354397773743, -0.07423532754182816, -0.06429746747016907, 0.023871881887316704, 0.2829427123069763, -0.14366421103477478, 0.2003088891506195, 0.1667613983154297, 0.43715423345565796, 0.03738195449113846, -0.3214196562767029, 0.1621791571378708, 0.24017049372196198, 0.03652091324329376, 0.07348138839006424, -0.06269584596157074, 0.4003393054008484, 0.1851344257593155, 0.1803680658340454, 0.2230682224035263, -0.03822248801589012, 0.31329965591430664, -0.052315302193164825, -0.43564486503601074, -0.18262627720832825, 0.05794657766819, -0.2237776815891266, 0.17337283492088318, -0.08856655657291412, -0.22564707696437836, 0.18990740180015564, 0.5674498081207275, 0.2177252620458603, 0.07652030140161514, -0.10513388365507126, -0.27369552850723267, 0.0013027172535657883, 0.17209090292453766, 0.17710496485233307, 0.0288328155875206, 0.1923602670431137, 0.16373729705810547, 0.06602851301431656, -0.18613861501216888, -0.02686038240790367, 0.2553621232509613, -0.04655294865369797, 0.21169868111610413, 0.07130877673625946, 0.06419629603624344, -0.24290408194065094, -0.516818642616272, -0.11580051481723785, 0.04996335506439209, -0.17023973166942596, 0.03760993853211403, 0.3171823024749756, -0.2313157320022583, 0.02599199116230011, -0.2008473426103592, -0.33857905864715576, -0.0503389798104763, -0.04240664839744568, 0.09750474989414215, 0.34088271856307983, -0.168491393327713, 0.1826389580965042, -0.5455322861671448, 0.28014513850212097, 0.044113874435424805, -0.1848134547472, -0.10266879200935364, -0.46427273750305176, 0.041633330285549164, 0.1120322197675705, 0.1561412364244461, -0.27106842398643494, 0.31800901889801025, -0.04597702994942665, 0.010514505207538605, -0.0973721593618393, -0.02588912844657898, 0.17097975313663483, 0.25318431854248047, -0.16229476034641266, -0.057903632521629333, 0.04795771837234497, -0.11567852646112442, -0.24010474979877472, 0.22658671438694, -0.26707571744918823, 0.12605810165405273, -0.023477155715227127, 0.01037471741437912, 0.27507367730140686, 0.04002321884036064, -0.15606459975242615, -0.3361685872077942, -0.5069355964660645, 0.11765045672655106, 0.26527488231658936, 0.0964837521314621, 0.2801916301250458, 0.10583837330341339, -0.05403895676136017, -0.0242492463439703, 0.09099193662405014, -0.09103073179721832, -0.3537583351135254, 0.3601805865764618, -0.2352769821882248, -0.12990213930606842, 0.08154578506946564, -0.34509021043777466, 0.02779758907854557, 0.39925694465637207, -0.299746036529541, 0.08406370133161545, -0.01656178943812847, -0.02846641093492508, 0.057357192039489746, -0.23158665001392365, 0.37562116980552673, 0.16360124945640564, -0.07497692108154297, -0.18445280194282532, 0.18675538897514343, 0.1416439414024353, -0.006540253758430481, -0.005119778215885162, -0.0441761314868927, 0.3190072178840637, 0.07983799278736115, 0.7889178395271301, -0.010757934302091599, -0.051605839282274246, 0.4921365976333618, 0.14354903995990753, 0.13114869594573975, -0.08872220665216446, -0.07101695984601974, -0.18327361345291138, -0.14516136050224304, -0.2058769315481186, 0.21047993004322052, 0.0807848870754242, -0.44870468974113464, -0.18064036965370178, 0.25579285621643066, 0.04921727627515793, -0.3710682690143585, 0.32500019669532776, -0.505635678768158, 0.2922602593898773, 0.04760225489735603, 0.24155780673027039, -0.14938664436340332, 0.030270669609308243, 0.35763463377952576, 0.06864544749259949, 0.12607485055923462, 0.02283906377851963, -0.11881549656391144, -0.04967382550239563, -0.5115301012992859, 0.14882612228393555, 0.1795736700296402, 0.09828881174325943, 0.17659221589565277, -0.5871305465698242, 0.10399231314659119, -0.28812676668167114, 0.45154106616973877, -0.34729310870170593, -0.2147207409143448, 0.24000459909439087, -0.10848971456289291, -0.1970553994178772, -0.09242786467075348, -0.008352857083082199, 0.04277081415057182, -0.20121866464614868, 0.1517803817987442, -0.17960374057292938, -0.06172393262386322, -0.1015794575214386, 0.10568789392709732, -0.2461925745010376, 0.23975592851638794, -0.22046613693237305, 0.06732039898633957, -0.22063888609409332, 0.11724508553743362, -0.10726567357778549, -0.09941551089286804, 0.0593930259346962, -0.03084579110145569, -0.4097330570220947, 0.10290215164422989, -0.03814496099948883, 0.36535942554473877, 0.3988704979419708, 0.0007654442451894283, 0.1951877921819687, 0.21943597495555878, 0.37511709332466125, 0.06307230144739151, 0.5374464392662048, 0.05902247875928879, -0.002267025411128998, -0.16835692524909973, 0.13157808780670166, 0.131045401096344, 0.29894518852233887, 0.02599092200398445, 0.19094118475914001, 0.1274127960205078, -0.16391228139400482, -0.20215903222560883, 0.06332474946975708, 0.021520838141441345, 0.014757676981389523, -0.2147497981786728, -0.6360302567481995, 0.36495622992515564, -0.1263720989227295, -0.10612231492996216, 0.19364449381828308, -0.4597558379173279, -0.20498602092266083, 0.3625327944755554, 0.24626654386520386, 0.8564323782920837, -0.21306763589382172, 0.32500576972961426, 0.1490848958492279, 0.043878018856048584, -0.0025634283665567636, -0.3148006796836853, 0.2318509966135025, -0.26566120982170105, -0.2784918546676636, -0.13174454867839813, -0.05046071484684944, -0.05074158310890198, 0.13216441869735718, -0.3327103555202484, 0.12800724804401398, 0.10710664093494415, 0.16927191615104675, -0.02335415594279766, -0.11937607079744339, -0.12888608872890472, -0.34529760479927063, -0.7398877739906311, 0.1926301121711731, 0.11687874794006348, -0.21273379027843475, -0.24589082598686218, -0.22460567951202393, 0.44551149010658264, 0.024625539779663086, 0.08477422595024109, 0.23223763704299927, -0.3608434200286865, 0.03310668095946312, -0.2797200679779053, -0.5084880590438843, -0.2360507845878601, -0.028310861438512802, -0.02600131183862686, -0.09077136218547821, -0.16426286101341248, 0.2848148047924042, 0.38231170177459717, -0.13962481915950775, -0.27858319878578186, -0.007840307429432869, 0.31388863921165466, -0.06056046485900879, 0.1291009485721588, 0.3258828818798065, -0.07502514123916626, -0.633793830871582, 0.20191150903701782, 0.0032170042395591736, 0.5773802399635315, 0.20977525413036346, -0.1613275706768036, 0.21345452964305878, -0.11665304005146027, -0.1810426414012909, 0.19393233954906464, -0.11580011248588562, -0.21460561454296112, -0.005268216133117676, 0.08247534930706024, -0.194568932056427, -0.015170563012361526, 0.1897541880607605, 0.0063921790570020676, 0.10854992270469666, 0.4135998785495758, -0.0013625770807266235, -0.1921975314617157, -0.29876455664634705, -0.27397528290748596, 0.35365810990333557, -0.39188051223754883, 0.15617211163043976, 0.12760858237743378, -0.18459340929985046, 0.0287251565605402, 0.004705548286437988, 0.23809894919395447, -0.023702554404735565, -0.38598695397377014, -0.17927822470664978, -0.24916689097881317, 0.22602050006389618, -0.0038561560213565826, 0.2055974006652832, 0.005949798971414566, -0.21238160133361816, -0.21321991086006165, -0.04003501683473587, -0.4195210933685303, -0.13461869955062866, -0.08131282031536102, 0.16621537506580353, -0.056027546525001526, -0.03367441147565842, 0.1872662901878357, 0.16070787608623505, 0.1608586609363556, 0.011750038713216782, -0.37567469477653503, -0.33262568712234497, -0.1495893895626068, 0.09634103626012802, 0.028442956507205963, 0.007256487384438515, -0.029422063380479813, -0.12016603350639343, -0.06299881637096405, -0.41664502024650574, 0.06482291221618652, -0.012608036398887634, -0.08877114951610565, -0.06222746521234512, 0.6740093231201172, -0.027050428092479706, -0.35626208782196045, -0.12331056594848633, -0.03966183215379715, 0.027920976281166077, -0.18256403505802155, 0.02962605655193329, -0.3218343257904053, -0.0838330090045929, 0.2358432561159134, 0.23537009954452515, 0.17527958750724792, 0.1857573390007019, 0.26918643712997437, -0.1449495106935501, 0.008250173181295395, 0.1900104135274887, 0.4546339213848114, 0.2636909782886505, -0.024980969727039337, 0.07844135910272598, 0.23064741492271423, 0.33152443170547485, -0.28480684757232666, -0.12816713750362396, 0.06395986676216125, -0.2934902608394623, 0.23353633284568787, 0.19238224625587463, 0.22385147213935852, -0.0802643671631813, 0.271239697933197, 0.08322783559560776, -0.02800445631146431, -0.14703640341758728, 0.106295645236969, 0.37843000888824463, 0.2749859690666199, -0.09209604561328888, 0.05397678166627884, 0.14264924824237823, 0.37789931893348694, 0.3787350058555603, -0.21891704201698303, 0.10917383432388306, 0.5726680755615234, -0.12574270367622375, -0.4002930223941803, -0.22394783794879913, -0.07760927081108093, -0.10867384076118469, 0.14182159304618835, 0.5311068296432495, 0.20039793848991394, 0.08726382255554199, 0.33690905570983887, -0.30072134733200073, -0.23506085574626923, 0.081658735871315, 0.1805717945098877, -0.32101649045944214, -0.016573293134570122, -0.10247398167848587, -0.19313228130340576, 0.12134569883346558, -0.044710878282785416, 0.19903388619422913, 0.32671189308166504, 0.2011660486459732, 0.4347209930419922, -0.191466823220253, 0.2697243392467499, 0.17743051052093506, 0.4531308114528656, -0.3614512085914612, 0.20877185463905334, 0.05559803918004036, 0.07677505165338516, 0.08459091186523438, -0.037508703768253326, -0.033408377319574356, 0.24950702488422394, -0.2525622248649597, 0.29446396231651306, 0.06773768365383148, -0.04341445863246918, -0.3074704706668854, -0.029423434287309647, 0.21699808537960052, -0.07800361514091492, 0.3319823443889618, 0.1980862319469452, -0.2517907917499542, 0.2525034248828888, -0.38710924983024597, 0.09917713701725006, -0.3820294737815857, -0.1928398311138153, 0.2744842767715454, 0.009285129606723785, -0.14047861099243164, 0.15916937589645386, -0.36737534403800964, -0.05035872012376785, 0.3896101117134094, -0.2480270266532898, 0.12146925181150436, 0.02214011549949646, 0.11611597239971161, -0.009051568806171417, 0.6179839968681335, -0.033440832048654556, 0.2749052345752716, -0.15594933927059174, -0.06670640408992767, -0.46701064705848694, 0.10267609357833862, -0.318827748298645, 0.03981519490480423, 0.03084876388311386, 0.3472168743610382, 0.30872634053230286, 0.3077409267425537, 0.26901376247406006, 0.10666189342737198, 0.03498151898384094, 0.3233065903186798, -0.21266910433769226, -0.2390396147966385, 0.25030258297920227, 0.10803765803575516, 0.019525829702615738, -0.5830944180488586, -0.1041678786277771, -0.15004828572273254, 0.16643285751342773, 0.20064151287078857, -0.4125729203224182, 0.07849101722240448, 0.03658676892518997, 0.4839957058429718, -0.13628429174423218, 0.1312262862920761, -0.16941681504249573, -0.052458472549915314, -0.4339420795440674, -0.4470171630382538, -0.212113618850708, -0.1298620104789734, -0.1313716173171997, 0.42684611678123474, -0.1889268159866333, -0.09080624580383301, -0.215997576713562, 0.18292008340358734, 0.350715696811676, -0.12451951950788498, -0.02788437157869339, 0.07330221682786942, 0.014049150049686432, 0.23221376538276672, -0.22097206115722656, 0.40406182408332825, -0.06886494159698486, 0.043467506766319275, 0.06728143990039825, -0.28535014390945435, 0.5412159562110901, -0.3322196900844574, -0.23719924688339233, 0.09144394844770432, 0.16459354758262634, 0.33066028356552124, -0.08881956338882446, -0.3165765404701233, 0.12121985107660294, 0.10615745931863785, -0.03788056969642639, -0.3005586564540863, 0.14412978291511536, 0.23905713856220245, 0.07306747138500214, -0.22528031468391418, 0.3439874053001404, -0.004860591143369675, -0.05830118805170059, -0.33263447880744934, -0.5081043839454651 ]
https://github.com/huggingface/datasets/issues/5481
Load a cached dataset as iterable
Hi Both! It has been a while since my first issue so I am gonna go for this one ! #self-assign
The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True
21
Load a cached dataset as iterable The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True Hi Both! It has been a while since my first issue so I am gonna go for this one ! #self-assign
[ -0.3727438151836395, -0.02964494377374649, -0.10232023894786835, 0.03645436838269234, 0.28294306993484497, 0.22140997648239136, 0.36110273003578186, 0.39190366864204407, 0.26572364568710327, -0.050482288002967834, 0.027521824464201927, 0.2198246270418167, -0.3287927210330963, 0.10471632331609726, 0.07879277318716049, -0.06030037999153137, -0.07517199963331223, 0.17417103052139282, -0.289020836353302, -0.06583743542432785, -0.12089818716049194, -0.05985312908887863, 0.11108614504337311, -0.14738033711910248, -0.1345221996307373, -0.16550402343273163, 0.17527304589748383, 0.1015203669667244, -0.00040812790393829346, -0.49777236580848694, 0.2049291729927063, 0.14293235540390015, 0.27673211693763733, 0.1175394356250763, -0.00010105308319907635, 0.095939502120018, 0.08094260841608047, -0.19693347811698914, -0.4514208436012268, 0.0803924947977066, -0.13544471561908722, 0.012467624619603157, 0.3259449899196625, -0.24469110369682312, -0.2929634153842926, -0.12424420565366745, 0.13898593187332153, -0.5169466137886047, 0.49630922079086304, 0.23750078678131104, 0.33143866062164307, 0.09227332472801208, -0.24021132290363312, -0.11287147551774979, -0.11237654834985733, -0.22916428744792938, -0.14984720945358276, 0.32171252369880676, 0.1456972062587738, -0.008753674104809761, -0.07378477603197098, 0.480373352766037, 0.05306535214185715, 0.09750358760356903, 0.24732208251953125, -0.03597169741988182, 0.2869367301464081, -0.11601917445659637, -0.13634347915649414, 0.06682953238487244, 0.3128565847873688, -0.29586219787597656, -0.34513697028160095, -0.3923988938331604, 0.02570219337940216, -0.501550018787384, -0.14113369584083557, 0.21434874832630157, -0.05892353877425194, 0.2727111577987671, 0.044456109404563904, -0.11168190836906433, -0.18779778480529785, -0.07050077617168427, 0.07898761332035065, 0.17794176936149597, 0.010629355907440186, -0.047649092972278595, 0.22015786170959473, 0.06615984439849854, 0.24967531859874725, 0.11956228315830231, -0.06483034789562225, 0.15369722247123718, -0.35671481490135193, 0.011179447174072266, -0.015624888241291046, -0.025247901678085327, 0.04219065606594086, 0.2653980553150177, 0.5628600120544434, 0.20701715350151062, 0.003272845409810543, 0.06569156795740128, 0.07806548476219177, 0.168273463845253, -0.10668794065713882, 0.12119390815496445, -0.005550947040319443, 0.16376027464866638, -0.3393266797065735, -0.2000209391117096, -0.202177956700325, -0.2040887027978897, 0.2528402805328369, 0.12457983940839767, 0.03309952840209007, 0.022055651992559433, -0.10026974231004715, -0.012079735286533833, -0.055065616965293884, 0.04050692543387413, 0.1183692142367363, 0.39680689573287964, -0.05388884246349335, 0.2869461476802826, 0.016117841005325317, 0.1968894600868225, -0.04621267318725586, -0.13687384128570557, -0.20227763056755066, -0.10266351699829102, -0.2871905565261841, 0.038048192858695984, 0.07787324488162994, -0.051311735063791275, 0.23490583896636963, -0.18165017664432526, 0.03273465484380722, 0.012751929461956024, 0.4023331105709076, 0.02401573210954666, 0.3933325707912445, 0.027483580633997917, -0.18589036166667938, -0.02963513322174549, 0.30927330255508423, -0.20192810893058777, -0.22176691889762878, -0.09245888143777847, -0.03690037876367569, -0.25388410687446594, 0.1527542769908905, 0.30300331115722656, 0.02213193103671074, -0.1548284888267517, -0.06409808248281479, 0.3551338016986847, 0.17588797211647034, -0.025569267570972443, 0.20449939370155334, -0.04233478009700775, 0.012943457812070847, -0.12142272293567657, 0.16356982290744781, 0.4240758419036865, -0.2734706699848175, -0.11391544342041016, 0.10697288066148758, 0.04356467351317406, -0.0019252151250839233, 0.1916225403547287, -0.3315281569957733, -0.010105498135089874, -0.08108817040920258, 0.08300834894180298, 0.5125308632850647, -0.1338825523853302, -0.3586537539958954, 0.06833666563034058, -0.07230281829833984, 0.2189108431339264, 0.12990199029445648, 0.2690289616584778, 0.002821591217070818, 0.08547859638929367, 0.05488182604312897, 0.42028361558914185, -0.06107486039400101, -0.1032935380935669, -0.3260529041290283, -0.1615019291639328, 0.11704564094543457, 0.17673932015895844, 0.1496681272983551, 0.055184006690979004, -0.016893863677978516, -0.27138105034828186, 0.39723607897758484, -0.3484596610069275, 0.07029324024915695, 0.024224381893873215, 0.10118110477924347, -0.01734159141778946, 0.03323119878768921, -0.0876409113407135, -0.38781625032424927, 0.23643729090690613, 0.029485728591680527, -0.2610662579536438, -0.07066932320594788, -0.24157023429870605, -0.05026385560631752, 0.1751275658607483, -0.2810838520526886, -0.11662828922271729, 0.25943249464035034, 0.12724144756793976, 0.03164403513073921, -0.0036555659025907516, -0.43860673904418945, 0.2635359764099121, -0.24708148837089539, -0.07078060507774353, -0.26746127009391785, -0.005746091715991497, 0.15503132343292236, -0.034071121364831924, -0.189720019698143, 0.06415393948554993, -0.032184526324272156, -0.028972012922167778, -0.03683736175298691, 0.2609619200229645, -0.10520204901695251, 0.1500687301158905, 0.052105799317359924, 0.330112099647522, 0.052506621927022934, -0.24193479120731354, -0.053841233253479004, 0.3558501601219177, 0.03651164472103119, -0.060855522751808167, -0.0312349796295166, 0.46364933252334595, -0.041164081543684006, 0.26931506395339966, 0.18733148276805878, 0.029667874798178673, 0.2485591471195221, 0.04216251149773598, -0.36721184849739075, -0.15936438739299774, -0.007185429334640503, -0.29455941915512085, 0.36992886662483215, -0.05251707881689072, -0.28233540058135986, 0.2454744279384613, 0.30299583077430725, 0.26201778650283813, 0.061163559556007385, -0.08624937385320663, -0.26240473985671997, 0.020364239811897278, 0.14066006243228912, 0.2518784701824188, 0.06561441719532013, 0.24199698865413666, 0.27649593353271484, 0.0014848150312900543, -0.13771367073059082, -0.12268783152103424, 0.20084251463413239, -0.06502825021743774, 0.2472834587097168, 0.16671475768089294, 0.08010699599981308, -0.2341606318950653, -0.4444061815738678, -0.01952526345849037, 0.05191703140735626, -0.007967429235577583, -0.059091996401548386, 0.2712567150592804, -0.24562041461467743, 0.03626016527414322, -0.18629570305347443, -0.27415868639945984, 0.03801901265978813, -0.07737158238887787, 0.09283468872308731, 0.2483767867088318, -0.1806463897228241, 0.21402567625045776, -0.5226672291755676, 0.2773341238498688, 0.06861765682697296, -0.24256114661693573, -0.05507354438304901, -0.48912668228149414, 0.041830774396657944, 0.16019120812416077, 0.24509496986865997, -0.4159475564956665, 0.3392626643180847, 0.08665905147790909, -0.057407163083553314, -0.03852895647287369, -0.06994746625423431, 0.007689148187637329, 0.2543109059333801, -0.05345187336206436, 0.024000532925128937, 0.13851825892925262, -0.04695594310760498, -0.2034584879875183, 0.1829318404197693, -0.2447342574596405, 0.06313479691743851, -0.046576112508773804, -0.009049956686794758, 0.17710784077644348, -0.06603419780731201, -0.27016404271125793, -0.2522936463356018, -0.4577109217643738, 0.384346604347229, 0.22807933390140533, 0.08188484609127045, 0.4066903591156006, 0.14919982850551605, 0.02652384340763092, 0.22551484405994415, -0.0027728425338864326, -0.1394435465335846, -0.2247437983751297, 0.3907645046710968, -0.278921514749527, -0.1946253776550293, -0.10033224523067474, -0.328532874584198, 0.17505700886249542, 0.2187553346157074, -0.32631832361221313, 0.05046108737587929, -0.03241780400276184, 0.09494757652282715, -0.04579879343509674, -0.2247052937746048, 0.28964751958847046, 0.2267472743988037, -0.16738255321979523, -0.1706055849790573, 0.22788318991661072, 0.3496772348880768, -0.11160818487405777, -0.00321110337972641, -0.06586580723524094, 0.2343067228794098, 0.0875803530216217, 0.8326441049575806, 0.04309428110718727, -0.122557133436203, 0.441494882106781, -0.010692769661545753, 0.09583967924118042, -0.14625337719917297, -0.2159588485956192, -0.26325660943984985, -0.18479371070861816, -0.25807255506515503, 0.20637193322181702, -0.04128439724445343, -0.42384278774261475, -0.11468616873025894, 0.2918407917022705, 0.023477904498577118, -0.33140507340431213, 0.33134427666664124, -0.42422232031822205, 0.18126720190048218, 0.0718749612569809, 0.20204421877861023, -0.17056113481521606, -0.0022222581319510937, 0.22349420189857483, -0.1626836210489273, 0.13533928990364075, -0.08412808924913406, -0.1795763522386551, 0.08438936620950699, -0.44727975130081177, 0.21646976470947266, 0.06305049359798431, 0.07846195995807648, 0.2346019297838211, -0.5852071046829224, 0.06243047118186951, -0.217489555478096, 0.4115918278694153, -0.09832921624183655, -0.18473666906356812, 0.17012400925159454, -0.06832671165466309, -0.2638615071773529, -0.013137642294168472, 0.07315602898597717, 0.15435712039470673, -0.1032974123954773, 0.2019449919462204, -0.18754728138446808, -0.044043734669685364, -0.12373705208301544, 0.07106365263462067, -0.2672919034957886, 0.17349548637866974, -0.20225989818572998, 0.09679024666547775, -0.17348575592041016, 0.18460771441459656, 0.07451891899108887, -0.07640483230352402, -0.0042004091665148735, -0.009473882615566254, -0.4359472990036011, 0.106170155107975, 0.05410546064376831, 0.24021433293819427, 0.32522258162498474, 0.05918101221323013, 0.15787670016288757, 0.26183950901031494, 0.31163766980171204, 0.12277699261903763, 0.5496185421943665, -0.12553611397743225, -0.08210569620132446, -0.19549229741096497, 0.15767093002796173, 0.22225885093212128, 0.3401992619037628, 0.002979055978357792, 0.13432541489601135, 0.25484827160835266, -0.07365943491458893, -0.22509707510471344, 0.10809982568025589, -0.016291547566652298, -0.1159246563911438, -0.22539430856704712, -0.5919792652130127, 0.4113483726978302, -0.21842169761657715, -0.07410669326782227, 0.4587584137916565, -0.30102312564849854, -0.18432481586933136, 0.3589280843734741, 0.2186794877052307, 0.862880527973175, -0.12912751734256744, 0.36770641803741455, 0.14160659909248352, -0.07641614973545074, 0.11731170117855072, -0.35728955268859863, 0.221884623169899, -0.36582961678504944, -0.1925736516714096, -0.0531904436647892, -0.048627354204654694, -0.15570613741874695, 0.2894224524497986, -0.14478616416454315, 0.08718413859605789, -0.04503878951072693, 0.002799011766910553, -0.01781424880027771, -0.10119351744651794, -0.0667504370212555, -0.32156243920326233, -0.46799978613853455, 0.24949103593826294, 0.0759044736623764, -0.1935318559408188, -0.29330697655677795, -0.24130727350711823, 0.28555870056152344, 0.0017553865909576416, 0.09852771461009979, 0.25428834557533264, -0.5594053268432617, 0.1449681967496872, -0.22131511569023132, -0.4784214496612549, -0.2731362581253052, 0.16031469404697418, 0.10492382943630219, -0.1404123604297638, -0.12209752202033997, 0.2818154990673065, 0.33259156346321106, -0.01024193037301302, -0.2685314118862152, -0.0025175046175718307, 0.3838409185409546, -0.010909508913755417, 0.016176380217075348, 0.21883124113082886, -0.05282372236251831, -0.5502349138259888, 0.07984299957752228, 0.05053391307592392, 0.2785933017730713, 0.036288559436798096, -0.2674727737903595, 0.18610695004463196, -0.11744096875190735, -0.2518426179885864, 0.24431970715522766, -0.055059224367141724, -0.2379511147737503, 0.02030511200428009, 0.19051668047904968, -0.17710834741592407, 0.014703278429806232, 0.3363035023212433, -0.04763159155845642, 0.21366986632347107, 0.5018561482429504, 0.0009202733635902405, -0.17889004945755005, -0.37909603118896484, -0.2699736952781677, 0.34200626611709595, -0.4121371805667877, 0.2398633062839508, -0.0068549951538443565, -0.151077002286911, -0.09047173708677292, 0.08453330397605896, 0.267935574054718, 0.05708301067352295, -0.1528521627187729, -0.06157706677913666, -0.4557335078716278, 0.10435357689857483, -0.04744001850485802, 0.29650285840034485, -0.05931251868605614, -0.2201603502035141, -0.13870398700237274, 0.10720080137252808, -0.46470364928245544, -0.0902179554104805, -0.16057135164737701, 0.11566589027643204, -0.123028963804245, -0.11009203642606735, 0.20245817303657532, 0.09158770740032196, 0.24942225217819214, 0.05299026519060135, -0.25971606373786926, -0.40554457902908325, -0.2258792221546173, 0.0824408307671547, 0.02632215991616249, 0.0006097438745200634, -0.02514444664120674, -0.15283699333667755, -0.13286656141281128, -0.31674885749816895, 0.06265637278556824, 0.01682470366358757, -0.03598978370428085, 0.12439653277397156, 0.45686978101730347, 0.027957532554864883, -0.29104477167129517, -0.1413564234972, 0.054133981466293335, 0.01680496335029602, -0.08110351115465164, -0.0644228607416153, -0.21225330233573914, -0.07644723355770111, 0.1279173642396927, 0.13409185409545898, 0.2927410900592804, 0.16356974840164185, 0.1649346947669983, -0.29136335849761963, -0.06437312066555023, 0.1333182156085968, 0.4557332396507263, 0.32955342531204224, -0.035634562373161316, 0.13190217316150665, 0.202316552400589, 0.3733178973197937, -0.36716631054878235, 0.055841851979494095, 0.044549670070409775, -0.24837444722652435, 0.1731853187084198, 0.20661312341690063, 0.14360283315181732, -0.07682473957538605, 0.1553964912891388, 0.09885318577289581, -0.1675848811864853, -0.301802396774292, 0.2103334218263626, 0.20089401304721832, 0.20706762373447418, -0.1375013291835785, 0.14522428810596466, 0.1670185774564743, 0.3868050277233124, 0.2117491513490677, -0.21321433782577515, 0.1336786150932312, 0.3556021749973297, -0.09036014974117279, -0.26259008049964905, -0.22233273088932037, -0.09693028032779694, -0.11756870150566101, 0.08896598219871521, 0.44717007875442505, 0.1665497124195099, 0.2317785620689392, 0.13716968894004822, -0.3482559025287628, -0.16244512796401978, 0.020994197577238083, -0.0034072063863277435, -0.3459230661392212, -0.01590581238269806, -0.18760497868061066, -0.14544852077960968, 0.025911051779985428, -0.01857476308941841, 0.1463085114955902, 0.26290878653526306, 0.20864948630332947, 0.3728829622268677, -0.3220571279525757, 0.17297756671905518, 0.21670952439308167, 0.5155582427978516, -0.32060208916664124, 0.17853599786758423, 0.19695597887039185, 0.07694002985954285, 0.06464284658432007, 0.09956032782793045, 0.012142803519964218, 0.23554161190986633, -0.24808388948440552, 0.23392826318740845, -0.011370541527867317, -0.082340307533741, -0.33449286222457886, 0.050363145768642426, 0.3146306872367859, -0.14739181101322174, 0.4457491636276245, 0.2147071361541748, -0.2738207280635834, 0.37501034140586853, -0.1797153502702713, 0.029994137585163116, -0.3625456690788269, -0.011226370930671692, 0.2177230417728424, -0.18946674466133118, -0.1522950828075409, 0.044001881033182144, -0.31412455439567566, 0.04209648817777634, 0.4262506365776062, -0.3014881908893585, 0.13345718383789062, -0.04687078669667244, 0.14820533990859985, -0.009199514985084534, 0.6398299336433411, -0.03511514887213707, 0.2849756181240082, -0.2074708640575409, -0.008716218173503876, -0.5269558429718018, 0.09636760503053665, -0.14381077885627747, 0.12982317805290222, -0.06147868186235428, 0.34065601229667664, 0.2208777368068695, 0.10217208415269852, 0.19426250457763672, -0.1413094848394394, 0.050218477845191956, 0.45791348814964294, -0.28263381123542786, -0.09760761260986328, 0.041573964059352875, 0.10093164443969727, 0.13971875607967377, -0.46690627932548523, -0.2154378443956375, -0.09846328943967819, 0.18266010284423828, 0.19179832935333252, -0.2896643877029419, 0.08913908898830414, 0.1451549232006073, 0.6949524879455566, -0.14266914129257202, 0.18882057070732117, -0.11550475656986237, -0.02664695307612419, -0.415046751499176, -0.4359533190727234, -0.2385476678609848, -0.03963366150856018, -0.0003569088876247406, 0.40232062339782715, -0.1980735957622528, -0.23446069657802582, -0.21629837155342102, 0.033215876668691635, 0.3287879228591919, -0.2024984359741211, -0.2726735770702362, 0.12402500957250595, -0.08755061775445938, 0.1918029934167862, -0.12442803382873535, 0.5183934569358826, -0.05214937776327133, 0.10382934659719467, -0.008653253316879272, -0.2675417363643646, 0.5332763195037842, -0.3383759558200836, -0.27145132422447205, 0.2913421392440796, 0.1853582113981247, 0.4736047089099884, -0.13237132132053375, -0.43921902775764465, 0.14067435264587402, 0.21525773406028748, -0.11627907305955887, -0.22246083617210388, 0.1437312364578247, 0.08448024094104767, 0.1046828180551529, -0.19852563738822937, 0.5328601598739624, -0.024276405572891235, -0.035033222287893295, -0.2499491423368454, -0.47766321897506714 ]
https://github.com/huggingface/datasets/issues/5481
Load a cached dataset as iterable
https://github.com/huggingface/datasets/pull/5821 should be helpful to implement `IterableDataset.from_file`, since it defines a new ArrowExamplesIterable that takes an Arrow tables generator function (e.g. from a file) and can be used in an IterableDataset
The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True
31
Load a cached dataset as iterable The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True https://github.com/huggingface/datasets/pull/5821 should be helpful to implement `IterableDataset.from_file`, since it defines a new ArrowExamplesIterable that takes an Arrow tables generator function (e.g. from a file) and can be used in an IterableDataset
[ -0.4893515706062317, -0.0905025452375412, -0.06809571385383606, 0.06541875004768372, 0.15620291233062744, 0.22862479090690613, 0.2631444036960602, 0.38900116086006165, 0.2009519785642624, -0.09936954081058502, -0.04562366008758545, 0.23635233938694, -0.3497917056083679, 0.14715413749217987, 0.1863013356924057, -0.1302466094493866, -0.046595893800258636, 0.3055950999259949, -0.3412330746650696, 0.04837626963853836, -0.07954153418540955, -0.06391676515340805, 0.03684978187084198, -0.08749105036258698, -0.12403718382120132, -0.07501588761806488, 0.14185088872909546, 0.06075577437877655, -0.05205758661031723, -0.49537357687950134, 0.2213452160358429, 0.23027420043945312, 0.2902067005634308, 0.054747190326452255, -0.00010175992792937905, 0.15106640756130219, 0.018345076590776443, -0.2163560837507248, -0.37228405475616455, 0.14190234243869781, -0.0354379341006279, 0.004289168864488602, 0.250655859708786, -0.22680681943893433, -0.35368436574935913, -0.24241818487644196, 0.07182951271533966, -0.4653540253639221, 0.49811679124832153, 0.1682090014219284, 0.3106006681919098, 0.16365736722946167, -0.1736479103565216, 0.005071575753390789, -0.06749209016561508, -0.19740717113018036, -0.2031126320362091, 0.27051568031311035, 0.1909199059009552, 0.015941746532917023, -0.07346155494451523, 0.5353689789772034, 0.12655027210712433, 0.09776203334331512, 0.2752780616283417, -0.010636004619300365, 0.03862154483795166, -0.0195954367518425, -0.1039416566491127, 0.15216052532196045, 0.3224300146102905, -0.36064550280570984, -0.40021583437919617, -0.4879242181777954, 0.06726113706827164, -0.5286396741867065, -0.11221320182085037, 0.11890587210655212, -0.08012011647224426, 0.29516902565956116, -0.07492425292730331, -0.18668068945407867, -0.12255056947469711, -0.19531120359897614, 0.1757761836051941, 0.09137281775474548, -0.0918906033039093, -0.04508177936077118, 0.21833086013793945, 0.038362056016922, 0.11887473613023758, 0.16568054258823395, -0.10714952647686005, 0.2319217324256897, -0.3199532926082611, -0.053573429584503174, 0.03577873855829239, 0.03551294282078743, 0.18493306636810303, 0.32883554697036743, 0.5348935127258301, 0.24203291535377502, -0.06032653525471687, 0.05355556681752205, 0.10169202089309692, 0.10646694898605347, -0.03672941029071808, 0.04922608286142349, 0.08849765360355377, 0.22360025346279144, -0.26384079456329346, -0.2397548258304596, -0.12032116204500198, -0.15429501235485077, 0.24596868455410004, 0.01368565671145916, 0.040572069585323334, -0.04389466717839241, -0.002368336543440819, -0.06877678632736206, -0.004283662885427475, 0.011373363435268402, 0.1981305629014969, 0.3644843101501465, -0.081703782081604, 0.28979912400245667, -0.015009550377726555, 0.13586309552192688, 0.04918023198843002, -0.22383911907672882, -0.17562344670295715, -0.21677298843860626, -0.20272113382816315, 0.19568990170955658, 0.14924506843090057, -0.18154862523078918, 0.2867848575115204, -0.1786826103925705, -0.01980537176132202, 0.09877265989780426, 0.4137784540653229, -0.0029178597033023834, 0.43751034140586853, 0.0960119217634201, -0.14912064373493195, -0.15717795491218567, 0.2415049970149994, -0.09946247935295105, -0.2900444567203522, -0.19555741548538208, -0.02211209386587143, -0.28022560477256775, 0.18449841439723969, 0.2503553032875061, -0.06553187966346741, -0.16602426767349243, -0.29283973574638367, 0.45003530383110046, 0.09393683820962906, -0.07791419327259064, 0.27237433195114136, 0.02119823358952999, -0.07530021667480469, -0.0836591050028801, 0.20890918374061584, 0.4075210690498352, -0.23913827538490295, -0.19155031442642212, 0.2344772219657898, -0.02801472321152687, -0.161760151386261, 0.208879753947258, -0.37807443737983704, 0.06477861851453781, -0.11238168179988861, 0.0675998330116272, 0.46806398034095764, -0.04594190791249275, -0.3193451166152954, 0.03666410595178604, 0.07076025009155273, 0.2741532623767853, 0.1660286784172058, 0.13219748437404633, 0.04318971931934357, 0.031657494604587555, 0.0005955770611763, 0.3938007950782776, -0.16467370092868805, -0.057883623987436295, -0.14487656950950623, -0.16831077635288239, 0.059237610548734665, 0.19848203659057617, 0.08867622911930084, 0.03454994782805443, -0.05100748687982559, -0.2458334118127823, 0.40753373503685, -0.3712182939052582, 0.1271059364080429, 0.07716953009366989, 0.01650000363588333, -0.04030846804380417, 0.07232829928398132, -0.21599838137626648, -0.3908293843269348, 0.28350189328193665, 0.004476960748434067, -0.2553100883960724, -0.1321418136358261, -0.3248242735862732, 0.06019201874732971, 0.21889780461788177, -0.2757672667503357, -0.1062052845954895, 0.23505112528800964, 0.07644105702638626, 0.19119462370872498, -0.01473822072148323, -0.5544878840446472, 0.2224627435207367, -0.2526686191558838, -0.02775341272354126, -0.3661985993385315, 0.1044667437672615, 0.26719027757644653, -0.03489939123392105, -0.1484474092721939, 0.08221141248941422, -0.1690717339515686, -0.08519752323627472, 0.03148287162184715, 0.27823254466056824, -0.1753024160861969, 0.1817139983177185, 0.117413230240345, 0.4677743911743164, 0.08727394044399261, -0.2601704001426697, -0.0073245856910943985, 0.16845878958702087, 0.020109258592128754, 0.015248589217662811, -0.03215593099594116, 0.505073070526123, 0.027046803385019302, 0.24201565980911255, 0.23216454684734344, -0.03839246183633804, 0.32230857014656067, 0.04231521859765053, -0.39372360706329346, -0.16670402884483337, -0.055694591253995895, -0.23293070495128632, 0.3471111059188843, -0.06579944491386414, -0.27959662675857544, 0.26577067375183105, 0.38965922594070435, 0.19651101529598236, 0.09479168057441711, -0.07312039285898209, -0.29362189769744873, -0.10519541054964066, 0.2202416956424713, 0.09295617043972015, 0.08432342112064362, 0.22084940969944, 0.2673967480659485, 0.03446051478385925, -0.1747390180826187, -0.014132309705018997, 0.2265772819519043, -0.05427488684654236, 0.23114661872386932, 0.12525877356529236, 0.07078824937343597, -0.2566322684288025, -0.509263813495636, -0.08802711963653564, -0.0175895094871521, -0.007399102672934532, -0.03035520203411579, 0.35932043194770813, -0.23959191143512726, -0.045893874019384384, -0.2203916609287262, -0.20324192941188812, -0.009535461664199829, -0.0058293333277106285, 0.11535459011793137, 0.2789566218852997, -0.14496058225631714, 0.15132705867290497, -0.4425017535686493, 0.35386186838150024, 0.12024830281734467, -0.231232687830925, -0.2157314568758011, -0.4018278419971466, 0.07262076437473297, 0.14862653613090515, 0.24577824771404266, -0.3187829554080963, 0.3641187846660614, -0.040761567652225494, -0.0802384540438652, -0.279703289270401, -0.03414211794734001, 0.14186151325702667, 0.10438255220651627, -0.07724899053573608, 0.12452016770839691, 0.09757012873888016, -0.04545237123966217, -0.09541507065296173, 0.19529616832733154, -0.35758790373802185, 0.008492976427078247, 0.0023977048695087433, -0.07836070656776428, 0.2441914826631546, 0.058718521147966385, -0.19060584902763367, -0.12164723128080368, -0.3662973642349243, 0.4258107542991638, 0.2237689346075058, 0.04027374088764191, 0.3772818148136139, 0.128794863820076, 0.11201398819684982, 0.06980130076408386, 0.010524130426347256, -0.16392061114311218, -0.24161724746227264, 0.31493809819221497, -0.2777233123779297, -0.14264078438282013, -0.0864352434873581, -0.30862361192703247, 0.17345236241817474, 0.24123245477676392, -0.3274954557418823, -0.03531988337635994, -0.04767082631587982, 0.12790369987487793, -0.007060293108224869, -0.12150229513645172, 0.35321885347366333, 0.0996474027633667, -0.1047748550772667, -0.15534788370132446, 0.21604490280151367, 0.34374451637268066, -0.16319644451141357, -0.03295256942510605, 0.042906321585178375, 0.27909520268440247, 0.052765537053346634, 0.8264710307121277, 0.06588815152645111, -0.12069287896156311, 0.4249494969844818, -0.03849415481090546, 0.2023480236530304, -0.15661129355430603, -0.05500934273004532, -0.3015442192554474, -0.2008068859577179, -0.1283215582370758, 0.24156782031059265, 0.06758947670459747, -0.28656911849975586, -0.16310006380081177, 0.19919829070568085, 0.06751140207052231, -0.30301621556282043, 0.34177732467651367, -0.3406175971031189, 0.25398534536361694, 0.08144554495811462, 0.14627856016159058, -0.148024782538414, 0.03458505868911743, 0.23773236572742462, -0.13503707945346832, 0.2866094410419464, -0.08714517205953598, -0.2516622245311737, 0.010153491981327534, -0.523726224899292, 0.20908010005950928, 0.18063455820083618, 0.119292251765728, 0.28223422169685364, -0.552564263343811, 0.07352761924266815, -0.240989089012146, 0.2749077081680298, -0.13130652904510498, -0.22557033598423004, 0.12994195520877838, -0.14179706573486328, -0.21833887696266174, 0.07985644042491913, 0.021003466099500656, 0.11065233498811722, -0.16360774636268616, 0.31518054008483887, -0.28423118591308594, -0.17247141897678375, -0.025136493146419525, 0.18201574683189392, -0.29136329889297485, 0.20886576175689697, -0.24596787989139557, 0.07471811026334763, -0.13068431615829468, 0.12332181632518768, 0.07336710393428802, -0.1340414434671402, 0.06231824308633804, -0.0071075670421123505, -0.48212137818336487, 0.055234603583812714, -0.07742166519165039, 0.3778555691242218, 0.3541843593120575, 0.03686404600739479, 0.1986141800880432, 0.27728211879730225, 0.2532406449317932, 0.12205935269594193, 0.6224461793899536, -0.04844729229807854, -0.15998584032058716, -0.21743178367614746, 0.2338334321975708, 0.1156897097826004, 0.2775830626487732, -0.015275496989488602, 0.23903632164001465, 0.25695472955703735, -0.06918151676654816, -0.27820059657096863, 0.04384911060333252, -0.041575148701667786, 0.009467595256865025, -0.19522500038146973, -0.5668789744377136, 0.5462080240249634, -0.07350927591323853, -0.05253902077674866, 0.44921860098838806, -0.11542552709579468, -0.21793004870414734, 0.3059539794921875, 0.24026575684547424, 0.7165126204490662, -0.2009621411561966, 0.34025728702545166, 0.23810246586799622, -0.029105937108397484, 0.04989627003669739, -0.3323725461959839, 0.17738310992717743, -0.3276115655899048, -0.30032607913017273, -0.07857217639684677, -0.0013089030981063843, -0.12595927715301514, 0.18442349135875702, -0.14706628024578094, 0.1830112189054489, 0.08717496693134308, 0.08902330696582794, -0.008191054686903954, -0.04146018624305725, -0.19815313816070557, -0.347988098859787, -0.6514232754707336, 0.21638865768909454, 0.10150270164012909, -0.2560219466686249, -0.2822176218032837, -0.20716597139835358, 0.37571635842323303, -0.009868454188108444, 0.04935392737388611, 0.07647708803415298, -0.5400403738021851, 0.06049083173274994, -0.06816555559635162, -0.4429798722267151, -0.2660655677318573, 0.18938176333904266, 0.13693106174468994, -0.1580015867948532, -0.19203218817710876, 0.21770112216472626, 0.18999318778514862, -0.09052126109600067, -0.273697167634964, -0.012960483320057392, 0.421453058719635, -0.026484712958335876, 0.08390330523252487, 0.2485467791557312, -0.012947563081979752, -0.6478833556175232, 0.21191853284835815, -0.034319035708904266, 0.1793624460697174, 0.06855659931898117, -0.10470247268676758, 0.22354534268379211, -0.12476298213005066, -0.2600610852241516, 0.20528006553649902, 0.05639275535941124, -0.19462838768959045, -0.059536583721637726, 0.20022152364253998, -0.15228813886642456, -0.014974281191825867, 0.2618943154811859, -0.08631058782339096, 0.10369789600372314, 0.444796085357666, 0.05988764390349388, -0.154712975025177, -0.3462357819080353, -0.22506746649742126, 0.4582325518131256, -0.5723195672035217, 0.20994116365909576, 0.03243192657828331, -0.08323155343532562, -0.06286883354187012, 0.17671357095241547, 0.21941955387592316, -0.05182252824306488, -0.23372416198253632, -0.07186948508024216, -0.4278898239135742, 0.25962093472480774, -0.011999189853668213, 0.2300654649734497, 0.05293674021959305, -0.29938602447509766, -0.17355863749980927, 0.06524303555488586, -0.43017104268074036, -0.09203965961933136, -0.068924680352211, 0.04171905666589737, -0.10179348289966583, -0.06434094160795212, 0.28347134590148926, 0.1131405234336853, 0.21883423626422882, 0.11708912253379822, -0.30391210317611694, -0.3725625276565552, -0.17092028260231018, 0.08294082432985306, -0.027785755693912506, -0.09802383929491043, -0.1009993925690651, -0.1135922521352768, -0.2301047146320343, -0.41712212562561035, 0.11180484294891357, -0.05409115552902222, 0.022192779928445816, -0.030621983110904694, 0.43488138914108276, -0.0519435852766037, -0.3337366580963135, -0.1466427594423294, 0.056481510400772095, -0.038785725831985474, -0.1638508290052414, -0.010188955813646317, -0.2725558280944824, -0.13863623142242432, 0.10179570317268372, 0.2665748596191406, 0.2672994136810303, 0.06606174260377884, 0.298137903213501, -0.24396930634975433, -0.056987933814525604, 0.20852209627628326, 0.519842267036438, 0.3650352656841278, 0.017443688586354256, 0.14604748785495758, 0.24078702926635742, 0.34256941080093384, -0.370737761259079, -0.03770909085869789, -0.04811887815594673, -0.2096228450536728, 0.19083143770694733, 0.24466198682785034, 0.20329955220222473, -0.020106814801692963, 0.24399437010288239, 0.061074256896972656, -0.21739502251148224, -0.20494017004966736, 0.06610091775655746, 0.25081178545951843, 0.23450838029384613, -0.14379245042800903, 0.1908739060163498, 0.25036048889160156, 0.4570346772670746, 0.13028432428836823, -0.30752789974212646, 0.17186205089092255, 0.24892261624336243, -0.09254953265190125, -0.19566896557807922, -0.19174432754516602, -0.21497507393360138, -0.15137383341789246, 0.031700827181339264, 0.41561359167099, 0.10612019896507263, 0.35028472542762756, 0.18659763038158417, -0.3063323497772217, -0.2666108310222626, 0.10773307085037231, 0.09250584244728088, -0.3044823408126831, 0.04511731117963791, -0.12107782065868378, -0.10917121917009354, 0.03523479774594307, -0.046601708978414536, 0.09564661979675293, 0.20743675529956818, 0.11553383618593216, 0.41170066595077515, -0.3431050181388855, 0.24926385283470154, 0.25831905007362366, 0.5066120624542236, -0.25777125358581543, 0.1962360292673111, 0.15490034222602844, 0.12934428453445435, 0.06593532860279083, 0.17054443061351776, -0.03791354224085808, 0.06659671664237976, -0.18352672457695007, 0.2904716432094574, -0.011893752962350845, -0.04134327918291092, -0.30932924151420593, 0.12079618871212006, 0.1914566159248352, -0.11150088906288147, 0.4175155758857727, 0.19997230172157288, -0.22827239334583282, 0.27683761715888977, -0.3332825005054474, 0.048016324639320374, -0.39052653312683105, -0.020955584943294525, 0.19301198422908783, -0.05722654238343239, -0.14763522148132324, 0.05067331716418266, -0.2200038731098175, 0.02968888357281685, 0.35779038071632385, -0.33127495646476746, 0.09388552606105804, -0.02695416286587715, 0.12894953787326813, -0.021487992256879807, 0.5960993766784668, 0.12147997319698334, 0.30838602781295776, -0.1296635866165161, -0.08180920779705048, -0.5228660106658936, -0.019263841211795807, -0.07707463204860687, 0.0969199687242508, 0.004163757897913456, 0.3250346779823303, 0.2710920572280884, 0.2284175008535385, 0.2197606861591339, -0.19374409317970276, 0.09224840253591537, 0.3879587650299072, -0.2252221554517746, -0.16360153257846832, -0.020294740796089172, 0.16377957165241241, 0.06405695527791977, -0.5316618084907532, -0.14777642488479614, -0.08422839641571045, 0.13931214809417725, 0.14059877395629883, -0.12301164120435715, 0.00883520022034645, 0.0010217167437076569, 0.6227900385856628, -0.1141463965177536, 0.12444450706243515, -0.09888400882482529, 0.0021995585411787033, -0.43890511989593506, -0.37221765518188477, -0.27315273880958557, -0.05869913846254349, -0.06987424194812775, 0.35750311613082886, -0.15916414558887482, -0.220322385430336, -0.20979347825050354, 0.025828877463936806, 0.4158707857131958, -0.08778303116559982, -0.30785709619522095, 0.21938201785087585, -0.15861181914806366, 0.18872800469398499, -0.08891583979129791, 0.4914095103740692, -0.05841020494699478, 0.016728917136788368, 0.045681387186050415, -0.22145037353038788, 0.5152785778045654, -0.392471581697464, -0.17279072105884552, 0.21538659930229187, 0.16394856572151184, 0.5657245516777039, -0.28675857186317444, -0.5377219319343567, 0.15704068541526794, 0.20891550183296204, -0.04732918739318848, -0.2269454151391983, 0.172616109251976, 0.15019457042217255, 0.14528709650039673, -0.24190780520439148, 0.5980442762374878, -0.08056640625, -0.10877025872468948, -0.2843891680240631, -0.48785901069641113 ]
https://github.com/huggingface/datasets/issues/5481
Load a cached dataset as iterable
So what's recommanded usage of `IterableDataset.from_file` and `load_dataset`? How about I have multiple arrow files and `load_dataset` is often convenient to handle that.
The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True
23
Load a cached dataset as iterable The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True So what's recommanded usage of `IterableDataset.from_file` and `load_dataset`? How about I have multiple arrow files and `load_dataset` is often convenient to handle that.
[ -0.4074677526950836, -0.1346953958272934, -0.09110566973686218, -0.034676164388656616, 0.04325374960899353, 0.3230104446411133, 0.3097509741783142, 0.37859582901000977, 0.21656808257102966, -0.17597125470638275, 0.13465768098831177, 0.1623390167951584, -0.29547572135925293, 0.001956922933459282, 0.16807974874973297, -0.11134932935237885, 0.07887803018093109, 0.19264572858810425, -0.23609709739685059, 0.05286392569541931, -0.11997059732675552, -0.12052902579307556, 0.03297334164381027, -0.09715664386749268, -0.13562220335006714, -0.12413998693227768, 0.14339102804660797, 0.10280319303274155, 0.004418964497745037, -0.5909590125083923, 0.28027108311653137, 0.1647380143404007, 0.36064574122428894, 0.05693273991346359, -0.0001088240896933712, 0.10350221395492554, 0.07963859289884567, -0.15353964269161224, -0.48680102825164795, 0.1051802933216095, -0.14522653818130493, -0.010568629018962383, 0.3065492808818817, -0.21759772300720215, -0.09100133180618286, -0.2945053279399872, 0.17495116591453552, -0.6487370729446411, 0.41337698698043823, 0.15588121116161346, 0.21880169212818146, -0.0663769394159317, -0.3487851321697235, -0.036841508001089096, -0.17873632907867432, -0.2729349136352539, -0.16219083964824677, 0.33731111884117126, 0.29462283849716187, 0.09591629356145859, 0.09366672486066818, 0.22448328137397766, -0.07332699745893478, 0.04554515331983566, 0.3893435597419739, -0.07475612312555313, 0.11869700998067856, -0.18499208986759186, -0.15449804067611694, 0.09816080331802368, 0.600130558013916, -0.27821114659309387, -0.2525496184825897, -0.47803354263305664, -0.006875516846776009, -0.45448821783065796, -0.20198273658752441, 0.13373017311096191, -0.02485395222902298, 0.33926424384117126, -0.03899392485618591, -0.20570003986358643, -0.20512095093727112, -0.101630300283432, 0.26371708512306213, 0.12409213185310364, -0.0862761065363884, 0.13293522596359253, 0.2608228027820587, 0.155225470662117, 0.34313371777534485, 0.04847024753689766, -0.03778437152504921, 0.2640369236469269, -0.3300599157810211, 0.0476236566901207, -0.10452353209257126, 0.06921100616455078, 0.1066557988524437, 0.36253154277801514, 0.6136301755905151, 0.14471730589866638, -0.007360461167991161, 0.1834229826927185, 0.16114789247512817, 0.11675798892974854, -0.0997508093714714, -0.01255355030298233, -0.0956919938325882, 0.0925712138414383, -0.24383129179477692, -0.23576420545578003, -0.3035202920436859, -0.2467089295387268, 0.3578958213329315, -0.08298289775848389, 0.005650129169225693, 0.037915464490652084, -0.08244014531373978, -0.19856512546539307, -0.125154048204422, -0.14672642946243286, 0.1585773527622223, 0.28503507375717163, 0.038604021072387695, 0.33250775933265686, -0.1330055594444275, 0.1467510461807251, 0.14529697597026825, -0.21999232470989227, -0.07630879431962967, -0.16272713243961334, -0.21837741136550903, 0.10428700596094131, 0.1109345406293869, -0.24394866824150085, 0.23208625614643097, -0.15711715817451477, 0.026261061429977417, 0.04876319319009781, 0.5041134357452393, 0.040584124624729156, 0.4755507707595825, 0.12886138260364532, -0.22668510675430298, -0.034331537783145905, 0.3463117182254791, -0.09071967005729675, -0.35538557171821594, 0.04772397130727768, -0.20852330327033997, -0.3508620858192444, 0.20900729298591614, 0.19600678980350494, -0.03629749268293381, -0.17260394990444183, -0.22379520535469055, 0.43024012446403503, 0.12015066295862198, -0.14340412616729736, 0.3860674202442169, -0.05787824094295502, -0.043926216661930084, -0.15095674991607666, 0.08676646649837494, 0.4553781747817993, -0.3395647406578064, -0.07335307449102402, -0.007497088052332401, -0.023331422358751297, -0.11109953373670578, 0.17980684340000153, -0.41020363569259644, 0.1806372106075287, -0.17909865081310272, 0.007963813841342926, 0.5560933351516724, -0.12345533072948456, -0.3183937668800354, 0.21482515335083008, 0.14569345116615295, 0.3785194754600525, 0.22470572590827942, 0.230571448802948, -0.02588248997926712, -0.008979085832834244, 0.020109709352254868, 0.3972342610359192, -0.14355844259262085, -0.2623768448829651, -0.12045525014400482, -0.09785252064466476, 0.216110959649086, 0.24020807445049286, -0.04000825807452202, 0.21445468068122864, 0.050374776124954224, -0.14206452667713165, 0.32529425621032715, -0.28883054852485657, 0.06636827439069748, -0.08504848182201385, -0.1317843496799469, -0.0780743658542633, 0.16611067950725555, -0.1211608350276947, -0.4955468773841858, 0.2652543783187866, 0.05264866352081299, -0.45836031436920166, -0.004420220851898193, -0.19649647176265717, -0.003320089541375637, 0.13101977109909058, -0.3904559314250946, -0.152084618806839, 0.129728302359581, 0.04849289357662201, 0.12356133759021759, -0.10748006403446198, -0.6740086078643799, 0.37440255284309387, -0.28852784633636475, -0.1589154750108719, -0.2593136429786682, -0.02333162911236286, 0.3487946689128876, 0.12554004788398743, -0.3268812596797943, 0.06049200892448425, -0.2137230932712555, -0.17801299691200256, -0.011567981913685799, 0.32797449827194214, -0.11739906668663025, 0.18917319178581238, 0.08751542121171951, 0.5505192875862122, 0.06942380219697952, -0.23169560730457306, 0.11259329319000244, 0.2162221223115921, 0.020136643201112747, -0.11148098856210709, -0.0032684728503227234, 0.3744294047355652, -0.200609490275383, 0.3103397488594055, 0.16924263536930084, -0.017178546637296677, 0.26046907901763916, 0.11090892553329468, -0.5006123185157776, -0.03948374465107918, -0.044296953827142715, -0.17078769207000732, 0.42081978917121887, -0.022075766697525978, -0.1719277799129486, 0.21535541117191315, 0.3658175766468048, 0.11673741042613983, 0.009733058512210846, -0.04851918667554855, -0.2080116868019104, -0.15354159474372864, 0.15786395967006683, 0.23099158704280853, 0.22257119417190552, 0.09671422839164734, 0.22530248761177063, 0.024379873648285866, -0.010522670112550259, -0.04100588336586952, 0.2649278938770294, -0.0702299177646637, 0.3262096643447876, 0.11188499629497528, -0.13087359070777893, -0.1696787178516388, -0.299148291349411, -0.253785640001297, 0.10732439905405045, -0.053114719688892365, 0.06985263526439667, 0.46743595600128174, -0.13814674317836761, -0.0015618130564689636, -0.22036905586719513, -0.20138682425022125, 0.04605724662542343, -0.059564776718616486, -0.0738019272685051, 0.3164912462234497, 0.03351648524403572, 0.054910995066165924, -0.6004103422164917, 0.5059654116630554, 0.08742319047451019, -0.34407493472099304, -0.23653559386730194, -0.3473476767539978, 0.051990266889333725, 0.05783696100115776, 0.2266756147146225, -0.5137561559677124, 0.3120945990085602, 0.02383134327828884, -0.00520560797303915, -0.19372639060020447, 0.13245746493339539, 0.08372148126363754, 0.1688828319311142, -0.09730660915374756, 0.05183100700378418, 0.052856847643852234, -0.06712591648101807, -0.1334974616765976, 0.08143755793571472, -0.14142374694347382, 0.17637072503566742, -0.03675859048962593, -0.079260915517807, 0.16458657383918762, 0.048725780099630356, -0.1472989022731781, -0.2851588726043701, -0.3587416708469391, 0.4103272557258606, 0.193539097905159, 0.04552110657095909, 0.4153943657875061, 0.13759729266166687, 0.20410321652889252, 0.2907463312149048, -0.09652194380760193, -0.1119551956653595, -0.26703500747680664, 0.297826886177063, -0.2238621711730957, -0.06381137669086456, 0.01909365877509117, -0.2286931723356247, 0.1727096140384674, 0.291970431804657, -0.3278388977050781, 0.08162851631641388, 0.05033485218882561, 0.1000618040561676, -0.05138472467660904, -0.23248670995235443, 0.1753045916557312, 0.12978604435920715, -0.01041971705853939, -0.2150854468345642, 0.34747567772865295, 0.1543957144021988, -0.2573480010032654, -0.06452750414609909, 0.20599091053009033, 0.19703617691993713, 0.14477136731147766, 0.8627414107322693, 0.22160068154335022, -0.0218220017850399, 0.41244763135910034, 0.11900290101766586, 0.13400843739509583, -0.2669455409049988, -0.19613532721996307, -0.24779389798641205, -0.28200089931488037, -0.3407464623451233, 0.17981112003326416, -0.050443120300769806, -0.39201056957244873, -0.11645231395959854, 0.26348358392715454, 0.25034427642822266, -0.11248955130577087, 0.280291348695755, -0.5816289186477661, 0.2773306667804718, 0.05562200769782066, 0.03643164783716202, -0.034263256937265396, 0.03215300664305687, 0.20785588026046753, -0.049333781003952026, 0.37494519352912903, 0.03438176214694977, -0.19899584352970123, 0.046764131635427475, -0.48522764444351196, 0.22952446341514587, 0.16040286421775818, 0.12418226152658463, 0.15744873881340027, -0.48006120324134827, 0.13844303786754608, -0.08502741158008575, 0.455852210521698, -0.14606690406799316, -0.22041471302509308, 0.24479317665100098, -0.08204033970832825, -0.1719166487455368, 0.0250031016767025, 0.10058194398880005, 0.3641774356365204, -0.17520815134048462, 0.26739925146102905, -0.09396003186702728, -0.13332107663154602, -0.11554466187953949, 0.16709551215171814, -0.23704147338867188, 0.1326892077922821, -0.1531747579574585, 0.1310303509235382, -0.17454010248184204, -0.0706307515501976, 0.1068563237786293, -0.11180753260850906, -0.06273727118968964, 0.06468987464904785, -0.4705184996128082, 0.21874505281448364, -0.030623555183410645, 0.31648337841033936, 0.2241905927658081, 0.025982173159718513, 0.13618586957454681, 0.43154996633529663, 0.2372123897075653, 0.12235932052135468, 0.5843379497528076, -0.10025964677333832, -0.21824216842651367, -0.06232944130897522, 0.2100985050201416, 0.2596420347690582, 0.17002585530281067, -0.06337915360927582, 0.1808977723121643, 0.3575921356678009, -0.1834748238325119, -0.22605067491531372, -0.0027183229103684425, -0.010773301124572754, -0.011558346450328827, -0.43558821082115173, -0.8520273566246033, 0.5754444003105164, -0.05791740491986275, -0.12625686824321747, 0.592108964920044, -0.3461989164352417, -0.14901047945022583, 0.3417758345603943, 0.166379913687706, 0.8121034502983093, -0.23662011325359344, 0.38744056224823, 0.10545723140239716, 0.14782577753067017, 0.04409882798790932, -0.4287903308868408, 0.15075692534446716, -0.23342804610729218, -0.1787278950214386, -0.10899236053228378, -0.0530548095703125, -0.08080128580331802, 0.3246402144432068, -0.30490532517433167, 0.16681018471717834, -0.010266922414302826, -0.008681796491146088, 0.10701946169137955, -0.03415410965681076, -0.18580228090286255, -0.2838030755519867, -0.40617579221725464, 0.15382634103298187, 0.11681069433689117, -0.22173362970352173, -0.303540974855423, -0.1715543568134308, 0.42356961965560913, 0.14524203538894653, 0.06869526207447052, 0.04839189350605011, -0.41028106212615967, 0.14057958126068115, -0.19452252984046936, -0.5334463715553284, -0.10970187187194824, 0.2659431993961334, 0.05213673412799835, -0.2406599074602127, -0.16602493822574615, 0.19356703758239746, 0.2942259907722473, -0.17932778596878052, -0.32614272832870483, -0.029579125344753265, 0.46248483657836914, 0.003499932587146759, 0.10855009406805038, 0.31078580021858215, -0.2059846967458725, -0.7680204510688782, 0.17329072952270508, 0.13882678747177124, 0.347900390625, 0.025003720074892044, -0.31774604320526123, 0.243353009223938, -0.16636748611927032, -0.1142055094242096, 0.12562723457813263, 0.0064245834946632385, -0.13527831435203552, -0.15035131573677063, 0.0889124795794487, -0.3128078877925873, 0.07622749358415604, 0.11651796847581863, -0.11989481002092361, -0.0005495958030223846, 0.533208966255188, -0.09375297278165817, -0.09888565540313721, -0.2345331609249115, -0.16974389553070068, 0.3783319294452667, -0.4045334458351135, 0.24369607865810394, -0.00621925201267004, 0.0907808244228363, -0.16771657764911652, 0.05728779733181, 0.3141886591911316, 0.05061228200793266, -0.2955454885959625, -0.2729005813598633, -0.37466081976890564, 0.12211328744888306, -0.06635937094688416, 0.22002871334552765, -0.017917772755026817, -0.471179723739624, -0.07104940712451935, -0.07368648797273636, -0.3106503486633301, -0.02034616470336914, -0.020783212035894394, 0.01628154143691063, 0.105226531624794, -0.0001798383891582489, 0.16981959342956543, 0.24623461067676544, 0.09033741056919098, 0.03501209244132042, -0.29053688049316406, -0.29038193821907043, -0.15865837037563324, 0.1623498648405075, 0.12200038135051727, -0.3079253137111664, -0.05469813197851181, -0.26132190227508545, -0.22803980112075806, -0.3699704706668854, 0.06134965643286705, 0.03262828290462494, 0.015538353472948074, 0.006397767923772335, 0.48644760251045227, 0.007206834852695465, -0.4503142833709717, -0.16917860507965088, 0.15263834595680237, -0.03913135826587677, -0.13204915821552277, 0.07976861298084259, -0.2754782438278198, -0.11622108519077301, 0.011119114235043526, 0.30280801653862, 0.42295974493026733, 0.07553832978010178, 0.3334876000881195, -0.2129969745874405, 0.15263879299163818, 0.03658096492290497, 0.4516637623310089, 0.45706161856651306, -0.12210188060998917, 0.19889406859874725, 0.15851491689682007, 0.20101124048233032, -0.20672692358493805, -0.06245441734790802, -0.022640977054834366, -0.06732087582349777, 0.03706720843911171, 0.17362678050994873, 0.2780877351760864, -0.010854877531528473, 0.3392295241355896, -0.04082754626870155, -0.04775751754641533, -0.33683228492736816, 0.1657434105873108, 0.3057706654071808, 0.24159230291843414, -0.13087734580039978, 0.21925128996372223, 0.1916947215795517, 0.3918922245502472, 0.31142258644104004, -0.3246862590312958, 0.17170575261116028, 0.43539345264434814, -0.14763809740543365, -0.23434993624687195, -0.2903432250022888, -0.10527929663658142, -0.08955752849578857, -0.008434444665908813, 0.4403758645057678, 0.12285053730010986, 0.21234068274497986, 0.18623962998390198, -0.12599147856235504, -0.1406363844871521, -0.0794399231672287, 0.17387956380844116, -0.3842657208442688, 0.06538252532482147, -0.20070593059062958, -0.07835942506790161, 0.051159780472517014, -0.08139170706272125, 0.06485473364591599, 0.2538696229457855, 0.19985397160053253, 0.4099188446998596, -0.2248184084892273, 0.4519731402397156, 0.2302522361278534, 0.401577889919281, -0.2954687178134918, 0.04640953987836838, 0.10867874324321747, 0.08014009892940521, 0.186811625957489, 0.0531560443341732, 0.08120659738779068, 0.24123810231685638, -0.19123755395412445, 0.2702573537826538, -0.0850062221288681, 0.010299352928996086, -0.25555741786956787, 0.1838391125202179, 0.22631235420703888, -0.15547160804271698, 0.32306766510009766, 0.11301440000534058, -0.14288687705993652, 0.36999186873435974, -0.2094462364912033, 0.025156650692224503, -0.5876898169517517, -0.13641822338104248, 0.22798077762126923, -0.12565752863883972, -0.033495381474494934, 0.31773892045021057, -0.18012574315071106, -0.005363604985177517, 0.5220415592193604, -0.269988477230072, 0.0615285187959671, 0.04782196134328842, 0.07900705933570862, -0.0855567455291748, 0.6053004264831543, 0.05810776725411415, 0.3956926167011261, -0.0943225622177124, -0.009391672909259796, -0.48755571246147156, -0.056608133018016815, 0.00125967338681221, 0.18683169782161713, 0.09421007335186005, 0.32006093859672546, 0.14254046976566315, 0.20125256478786469, 0.26009830832481384, -0.22802668809890747, 0.08557896316051483, 0.518828272819519, -0.010762402787804604, -0.2592146694660187, 0.14139896631240845, 0.2914761006832123, -0.028416622430086136, -0.5781848430633545, -0.17685215175151825, -0.15789949893951416, 0.0320599228143692, 0.07845603674650192, -0.3309684693813324, 0.24809983372688293, 0.1537752002477646, 0.6728180050849915, -0.042144857347011566, 0.19013163447380066, 0.026321984827518463, -0.00905054621398449, -0.4907042384147644, -0.3336440622806549, -0.16189932823181152, 0.031903401017189026, -0.0702536553144455, 0.13570921123027802, -0.387035071849823, -0.23730160295963287, -0.2405167669057846, 0.07036253064870834, 0.3206515312194824, -0.2680547833442688, -0.3914172649383545, -0.025465261191129684, -0.3271453082561493, 0.2398248016834259, -0.0542372465133667, 0.43553826212882996, -0.09102247655391693, 0.08734817802906036, -0.01713770627975464, 0.040600232779979706, 0.3842865824699402, -0.4109991490840912, -0.24007882177829742, 0.2763305604457855, 0.023316845297813416, 0.4597190022468567, -0.1925049126148224, -0.32073116302490234, 0.04049741476774216, 0.35526227951049805, -0.1067114993929863, -0.19116075336933136, 0.12925678491592407, 0.11166703701019287, 0.08773623406887054, -0.21881400048732758, 0.5990288257598877, -0.14101561903953552, -0.1319170743227005, -0.24375370144844055, -0.5608076453208923 ]
https://github.com/huggingface/datasets/issues/5481
Load a cached dataset as iterable
If you have multiple Arrow files you can load them using ```python from datasets import load_dataset data_files = {"train": ["path/to/0.arrow", "path/to/1.arrow", ..., "path/to/n.arrow"]} ds = load_dataset("arrow", data_files=data_files, streaming=True) ``` This is equivalent to calling `IterableDataset.from_file` and `concatenate_datasets`.
The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True
37
Load a cached dataset as iterable The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True If you have multiple Arrow files you can load them using ```python from datasets import load_dataset data_files = {"train": ["path/to/0.arrow", "path/to/1.arrow", ..., "path/to/n.arrow"]} ds = load_dataset("arrow", data_files=data_files, streaming=True) ``` This is equivalent to calling `IterableDataset.from_file` and `concatenate_datasets`.
[ -0.4865192472934723, -0.03874516487121582, -0.11956483125686646, 0.04586103558540344, 0.1613302081823349, 0.21264562010765076, 0.31407198309898376, 0.38246873021125793, 0.14566461741924286, -0.06635110080242157, 0.014336969703435898, 0.19016361236572266, -0.33218806982040405, 0.026416169479489326, 0.036438725888729095, -0.09371870756149292, -0.06434644013643265, 0.29505157470703125, -0.30172374844551086, -0.03232693672180176, -0.05287943780422211, -0.08934766799211502, 0.07651850581169128, -0.1708918958902359, -0.12612304091453552, -0.07307859510183334, 0.1207197904586792, 0.0653238371014595, 0.08700618892908096, -0.5150035619735718, 0.1784379631280899, 0.16341063380241394, 0.2989181578159332, 0.20610268414020538, -0.00009973060514312238, 0.07974593341350555, 0.025479424744844437, -0.15960200130939484, -0.35459044575691223, 0.13231147825717926, -0.07577691972255707, -0.06333649158477783, 0.277526319026947, -0.26391732692718506, -0.3155389726161957, -0.2834948003292084, 0.06700824201107025, -0.539523184299469, 0.5018293857574463, 0.22805088758468628, 0.31595513224601746, 0.05243023484945297, -0.2266097515821457, -0.0002482540439814329, -0.09191025048494339, -0.3031671643257141, -0.0980304479598999, 0.22642919421195984, 0.1466226428747177, 0.043463967740535736, 0.03958744555711746, 0.4906664490699768, 0.021281173452734947, 0.12160879373550415, 0.25863611698150635, 0.019458163529634476, 0.13751865923404694, -0.07549965381622314, -0.14341971278190613, 0.06089551001787186, 0.32460901141166687, -0.28453952074050903, -0.36928874254226685, -0.38742512464523315, 0.03038409724831581, -0.5534350275993347, -0.18726202845573425, 0.10565964877605438, -0.018070422112941742, 0.23517931997776031, 0.03067951463162899, -0.1273304522037506, -0.1336633563041687, -0.0753568708896637, 0.11761923134326935, 0.15754488110542297, 0.024595852941274643, -0.03375372290611267, 0.16000883281230927, -0.012428056448698044, 0.28521665930747986, 0.05630286782979965, -0.07133109867572784, 0.20626285672187805, -0.3029453456401825, -0.007773593068122864, -0.040393322706222534, -0.05243685096502304, 0.0885365828871727, 0.25690358877182007, 0.512083888053894, 0.20336401462554932, 0.02538512647151947, 0.06661322712898254, 0.07490696012973785, 0.07222530245780945, -0.09529539197683334, 0.12638019025325775, 0.07347588241100311, 0.16081708669662476, -0.361168771982193, -0.2332899272441864, -0.19177038967609406, -0.29594966769218445, 0.2743779420852661, 0.11530569195747375, 0.026994459331035614, 0.002621810883283615, -0.024489695206284523, -0.14868012070655823, -0.10945680737495422, -0.022587493062019348, 0.1137830913066864, 0.35734549164772034, -0.10704254359006882, 0.3663187623023987, 0.016405373811721802, 0.08172677457332611, -0.00473589263856411, -0.13829150795936584, -0.21102537214756012, -0.1589401662349701, -0.19356025755405426, 0.06972945481538773, 0.09313666820526123, -0.1590266078710556, 0.24758967757225037, -0.2105845957994461, 0.07110404968261719, 0.10321027040481567, 0.4287574887275696, -0.034542396664619446, 0.3490891754627228, 0.06939271092414856, -0.07798514515161514, -0.06989450752735138, 0.20030730962753296, -0.07081469148397446, -0.23178648948669434, -0.1179099753499031, -0.08497502654790878, -0.2946610152721405, 0.19301216304302216, 0.2857799828052521, -0.028738152235746384, -0.14488069713115692, -0.18277263641357422, 0.3062809705734253, 0.1294119507074356, -0.04320194944739342, 0.13083405792713165, 0.002674756571650505, 0.02962080016732216, -0.12588688731193542, 0.23535743355751038, 0.41137808561325073, -0.19025734066963196, -0.13486143946647644, 0.09381312876939774, 0.07064905762672424, -0.03733838349580765, 0.24656562507152557, -0.4092361629009247, -0.014221251010894775, -0.12344522774219513, 0.022395692765712738, 0.5041821002960205, -0.16423475742340088, -0.307146817445755, 0.07592644542455673, 0.04345947504043579, 0.2775745391845703, 0.16163437068462372, 0.14814980328083038, -0.01875227317214012, 0.054726846516132355, 0.04669065773487091, 0.43360936641693115, -0.08044379949569702, -0.056201472878456116, -0.1560317724943161, -0.15417137742042542, 0.1586984097957611, 0.1650284379720688, 0.0662190169095993, 0.005179151892662048, -0.10193239897489548, -0.2271357774734497, 0.41011664271354675, -0.3505260944366455, 0.08864495158195496, 0.0807695984840393, 0.0749891847372055, -0.00884254276752472, 0.09664875268936157, -0.11395687609910965, -0.33467453718185425, 0.2415218949317932, 0.038673579692840576, -0.2990308701992035, -0.12485173344612122, -0.2900348901748657, 0.007873425260186195, 0.0960586667060852, -0.24089758098125458, -0.12354439496994019, 0.26217159628868103, 0.16969092190265656, 0.10530252754688263, -0.07004570960998535, -0.49357807636260986, 0.2815542221069336, -0.23899129033088684, -0.1006622165441513, -0.16002553701400757, 0.11591251194477081, 0.1572137475013733, -0.057114653289318085, -0.14128482341766357, 0.032143011689186096, -0.07830124348402023, -0.05552291497588158, 0.009277058765292168, 0.3515724837779999, -0.10719615966081619, 0.23243004083633423, 0.14089448750019073, 0.41580963134765625, 0.10828471183776855, -0.2227276861667633, -0.021090691909193993, 0.3249273896217346, 0.03249053284525871, 0.019875138998031616, 0.0017693452537059784, 0.43800097703933716, 0.026616845279932022, 0.32072553038597107, 0.26026564836502075, -0.019503755494952202, 0.3262450695037842, 0.0013144947588443756, -0.38933953642845154, -0.12717598676681519, -0.03593992069363594, -0.23975829780101776, 0.3668685555458069, -0.07441935688257217, -0.27507296204566956, 0.2056884914636612, 0.384524941444397, 0.2816353440284729, -0.010437287390232086, -0.1395803689956665, -0.34810498356819153, 0.0007592774927616119, 0.16113361716270447, 0.22761665284633636, 0.0968344658613205, 0.25814616680145264, 0.24566872417926788, 0.00652938149869442, -0.08801966160535812, -0.012965959496796131, 0.22616222500801086, -0.0013113915920257568, 0.2877729535102844, 0.17905749380588531, 0.08096764981746674, -0.22637763619422913, -0.36385077238082886, -0.21162346005439758, 0.005324309691786766, -0.046922169625759125, -0.01926109939813614, 0.3224833905696869, -0.1848774552345276, -0.05759100615978241, -0.240506112575531, -0.2916279137134552, 0.08311641961336136, -0.04147837311029434, 0.01010163500905037, 0.22577650845050812, -0.14598840475082397, 0.17492260038852692, -0.45118793845176697, 0.24605725705623627, 0.15008452534675598, -0.2771013379096985, -0.06417879462242126, -0.3337685763835907, 0.08641701936721802, 0.17380103468894958, 0.20435085892677307, -0.27208593487739563, 0.25789058208465576, 0.04180295765399933, -0.07087474316358566, -0.1372746378183365, 0.02252017706632614, 0.03623557090759277, 0.20357125997543335, -0.14770476520061493, 0.01608268916606903, 0.09839311987161636, 0.0012587495148181915, -0.21946823596954346, 0.1776716113090515, -0.232492133975029, 0.0827142521739006, -0.06435640156269073, -0.036815714091062546, 0.20695725083351135, 0.02692629024386406, -0.3164995610713959, -0.2556648850440979, -0.42924290895462036, 0.24867868423461914, 0.23905996978282928, 0.09737421572208405, 0.3171375095844269, 0.2104211300611496, 0.07521262019872665, 0.16249509155750275, -0.0203400868922472, -0.0291703213006258, -0.1796272099018097, 0.41490671038627625, -0.31665438413619995, -0.1166737973690033, -0.04518096521496773, -0.3308771848678589, 0.16639018058776855, 0.25443562865257263, -0.3081361651420593, 0.05655420944094658, -0.0783095583319664, 0.09431907534599304, -0.09336742758750916, -0.2058097869157791, 0.3384885787963867, 0.15943704545497894, -0.17986053228378296, -0.1620301604270935, 0.3098708987236023, 0.29151538014411926, -0.10884175449609756, 0.0545300617814064, -0.013495799154043198, 0.20022690296173096, 0.06428171694278717, 0.7979331612586975, 0.13732275366783142, -0.1540435403585434, 0.3493705093860626, -0.040332213044166565, 0.08481000363826752, -0.10687833279371262, -0.12571991980075836, -0.3236714005470276, -0.22931063175201416, -0.2178315371274948, 0.1670682430267334, 0.04578453302383423, -0.33424898982048035, -0.16938884556293488, 0.20383979380130768, 0.06979677826166153, -0.29548609256744385, 0.316097617149353, -0.4221116900444031, 0.286359965801239, 0.03344407677650452, 0.08811294287443161, -0.14722289144992828, 0.10315785557031631, 0.19828549027442932, -0.12456366419792175, 0.23114293813705444, -0.08152449131011963, -0.18587832152843475, 0.06865070760250092, -0.4323911666870117, 0.20912404358386993, 0.15512073040008545, 0.04511399194598198, 0.34439295530319214, -0.49925631284713745, -0.04082179069519043, -0.2983919382095337, 0.30496838688850403, -0.11618999391794205, -0.2092771977186203, 0.21871426701545715, -0.07222460210323334, -0.2588839828968048, 0.03840475156903267, 0.034155119210481644, 0.07377297431230545, -0.05817800387740135, 0.2161596566438675, -0.2550097107887268, -0.11090821772813797, -0.10993249714374542, 0.22423316538333893, -0.27219948172569275, 0.23137232661247253, -0.19899044930934906, 0.14680731296539307, -0.1802288144826889, 0.04124055057764053, 0.03772546350955963, -0.057798679918050766, 0.003453378099948168, -0.06631837040185928, -0.42836132645606995, 0.017709903419017792, -0.026588425040245056, 0.25175708532333374, 0.4444923996925354, 0.027647672221064568, 0.192764014005661, 0.25175386667251587, 0.2562849521636963, 0.2406667321920395, 0.5398286581039429, -0.055128779262304306, -0.15075521171092987, -0.26941239833831787, 0.17741738259792328, 0.2399013340473175, 0.2649470865726471, -0.022438447922468185, 0.2044515609741211, 0.25635114312171936, -0.029951266944408417, -0.17999951541423798, 0.12588460743427277, 0.01286159735172987, 0.012908427976071835, -0.15453673899173737, -0.6913058757781982, 0.3938275873661041, -0.0852871686220169, -0.019568786025047302, 0.47309795022010803, -0.27198272943496704, -0.2268635779619217, 0.33887720108032227, 0.18031980097293854, 0.7858514785766602, -0.034322552382946014, 0.369678795337677, 0.13633325695991516, -0.028494440019130707, -0.012768696062266827, -0.2621382474899292, 0.1828499585390091, -0.23220230638980865, -0.22493243217468262, -0.05370420217514038, -0.020712479948997498, -0.10698436945676804, 0.21689890325069427, -0.17472006380558014, 0.16299213469028473, -0.08828851580619812, 0.03480431064963341, -0.09310486167669296, -0.031024444848299026, -0.15191379189491272, -0.34195125102996826, -0.48430806398391724, 0.2463071346282959, 0.061768073588609695, -0.24337121844291687, -0.21526113152503967, -0.23504742980003357, 0.2703595757484436, 0.017674367874860764, 0.09568621218204498, 0.16811996698379517, -0.5134398937225342, 0.13093417882919312, -0.31439638137817383, -0.45788687467575073, -0.3438054621219635, 0.20329967141151428, 0.0967482253909111, -0.11012540757656097, -0.13005143404006958, 0.2536017894744873, 0.2514626681804657, -0.1334383487701416, -0.34515562653541565, -0.049520812928676605, 0.3213137090206146, -0.05071527138352394, 0.011978305876255035, 0.2534376084804535, -0.03914214298129082, -0.6657668948173523, 0.24547219276428223, 0.009316667914390564, 0.2754284739494324, 0.11708029359579086, -0.18450240790843964, 0.34980887174606323, -0.20388838648796082, -0.2484866827726364, 0.25224149227142334, 0.016939647495746613, -0.21897095441818237, -0.0009618699550628662, 0.11943213641643524, -0.10217686742544174, -0.019250061362981796, 0.25072968006134033, -0.013436824083328247, 0.06002132594585419, 0.5177847743034363, -0.003153011202812195, -0.145069420337677, -0.34376367926597595, -0.23304831981658936, 0.31302088499069214, -0.35785749554634094, 0.23518484830856323, -0.023463940247893333, 0.0022925585508346558, -0.09604471176862717, 0.14108222723007202, 0.20024777948856354, 0.11098253726959229, -0.2276727855205536, -0.08433911204338074, -0.4470597207546234, 0.1749286651611328, 0.008497435599565506, 0.27651888132095337, -0.06029672920703888, -0.20952929556369781, -0.20567646622657776, 0.03506644070148468, -0.46648067235946655, -0.04423811286687851, -0.051928721368312836, 0.09952501207590103, -0.1261136382818222, -0.12277833372354507, 0.24571985006332397, 0.1370583176612854, 0.2659274637699127, 0.09412956237792969, -0.23098406195640564, -0.420133113861084, -0.16806098818778992, 0.055518537759780884, 0.05908769741654396, -0.10455843806266785, -0.02930576354265213, -0.17163056135177612, -0.12405255436897278, -0.3663997948169708, 0.022346872836351395, -0.02619011700153351, -0.019645534455776215, -0.014192860573530197, 0.42857247591018677, -0.0021233931183815002, -0.3080412745475769, -0.1537342518568039, 0.009879812598228455, -0.015770159661769867, -0.11067461967468262, 0.01376674510538578, -0.2044370174407959, -0.12719786167144775, 0.14484599232673645, 0.08886304497718811, 0.20780876278877258, 0.17113688588142395, 0.24003106355667114, -0.2050163596868515, -0.09811394661664963, 0.1347784847021103, 0.4973718225955963, 0.39031359553337097, -0.014322919771075249, 0.1689700484275818, 0.1921258270740509, 0.37503090500831604, -0.3594757914543152, -0.031773634254932404, -0.11278031766414642, -0.21673086285591125, 0.19766338169574738, 0.18745917081832886, 0.175840362906456, -0.065790556371212, 0.1712118685245514, 0.09948845207691193, -0.1563691347837448, -0.2760407328605652, 0.1770077347755432, 0.18933606147766113, 0.24715830385684967, -0.19091233611106873, 0.06569086015224457, 0.220698282122612, 0.4240880310535431, 0.23285141587257385, -0.2879262864589691, 0.17447802424430847, 0.411848783493042, -0.21217942237854004, -0.25564926862716675, -0.16864396631717682, -0.20107461512088776, -0.10516658425331116, 0.04846020042896271, 0.4186541438102722, 0.1371288150548935, 0.22435539960861206, 0.22559960186481476, -0.3068268895149231, -0.13445299863815308, 0.0714307650923729, 0.11446721106767654, -0.31787753105163574, 0.01005183532834053, -0.059911273419857025, -0.1348322480916977, 0.0006181970238685608, 0.06405236572027206, 0.07245097309350967, 0.21197935938835144, 0.17669519782066345, 0.34723836183547974, -0.3193226754665375, 0.2569127082824707, 0.2427743375301361, 0.4778664708137512, -0.2970762848854065, 0.057318247854709625, 0.30098167061805725, 0.052622921764850616, -0.001300368458032608, 0.10947570949792862, 0.04012586921453476, 0.16045531630516052, -0.1905013620853424, 0.3447318971157074, 0.013176968321204185, -0.058718763291835785, -0.2600117623806, -0.028700530529022217, 0.21824371814727783, -0.14466708898544312, 0.402734637260437, 0.242761492729187, -0.282458633184433, 0.34564638137817383, -0.290319561958313, 0.06161121279001236, -0.37733030319213867, -0.027054645121097565, 0.2726578712463379, -0.09022830426692963, -0.16375790536403656, 0.09814977645874023, -0.24827167391777039, -0.01881084218621254, 0.42176082730293274, -0.3218652307987213, 0.08776520192623138, -0.024888165295124054, 0.13927027583122253, -0.08776712417602539, 0.5870752334594727, -0.013472694903612137, 0.4077305197715759, -0.1840781569480896, -0.14173929393291473, -0.5312656760215759, -0.04594706743955612, -0.15652823448181152, 0.14221832156181335, -0.12082180380821228, 0.3545408248901367, 0.16146674752235413, 0.12078086286783218, 0.23326987028121948, -0.1118488535284996, 0.07197683304548264, 0.4201270341873169, -0.2968231439590454, -0.1503903865814209, 0.03075607866048813, 0.2222772091627121, 0.1237533688545227, -0.49963709712028503, -0.18278878927230835, -0.1257081776857376, 0.23409464955329895, 0.24157197773456573, -0.2910081744194031, 0.178291454911232, 0.09804047644138336, 0.6474383473396301, -0.15087996423244476, 0.17650067806243896, -0.1519148051738739, -0.020493723452091217, -0.4076305329799652, -0.3818341791629791, -0.24374660849571228, -0.08807865530252457, 0.02357909083366394, 0.3495665490627289, -0.2361602485179901, -0.1588013917207718, -0.21487951278686523, 0.022595733404159546, 0.35589104890823364, -0.2424870878458023, -0.1442466527223587, 0.1292615681886673, -0.018137924373149872, 0.19556038081645966, -0.18526172637939453, 0.49666479229927063, -0.10570359230041504, -0.019469574093818665, -0.0020390674471855164, -0.21754325926303864, 0.5207674503326416, -0.3525235652923584, -0.21610736846923828, 0.1767284870147705, 0.1956731379032135, 0.5188765525817871, -0.05061778426170349, -0.36827436089515686, 0.12771862745285034, 0.2446836233139038, -0.04820897430181503, -0.2750140130519867, 0.13429750502109528, 0.23618850111961365, 0.11155229806900024, -0.17859651148319244, 0.5289617776870728, -0.06800080835819244, -0.11569549143314362, -0.3326813876628876, -0.5072173476219177 ]
https://github.com/huggingface/datasets/issues/5477
Unpin sqlalchemy once issue is fixed
@albertvillanova It looks like that issue has been fixed so I made a PR to unpin sqlalchemy!
Once the source issue is fixed: - pandas-dev/pandas#51015 we should revert the pin introduced in: - #5476
17
Unpin sqlalchemy once issue is fixed Once the source issue is fixed: - pandas-dev/pandas#51015 we should revert the pin introduced in: - #5476 @albertvillanova It looks like that issue has been fixed so I made a PR to unpin sqlalchemy!
[ -0.04986342787742615, -0.038087815046310425, -0.14326031506061554, -0.14374929666519165, 0.40600132942199707, -0.25235873460769653, 0.42657625675201416, 0.4297688603401184, -0.04614992439746857, 0.2177066206932068, -0.03994052857160568, 0.32142406702041626, 0.13579295575618744, 0.2498813420534134, -0.16596904397010803, 0.11901109665632248, -0.04577571898698807, 0.15049214661121368, -0.24249625205993652, -0.11169363558292389, -0.18838666379451752, 0.14318929612636566, -0.0937669575214386, 0.12848785519599915, -0.37056753039360046, 0.03302600607275963, 0.14683417975902557, 0.22516608238220215, -0.04725278913974762, -0.21839752793312073, 0.1594131886959076, -0.1594032645225525, -0.2835623025894165, 0.36416277289390564, -0.00009578575554769486, -0.05120132490992546, 0.3260642886161804, 0.08137594163417816, -0.14798910915851593, 0.13829228281974792, -0.2309839427471161, -0.20443397760391235, 0.10864952206611633, -0.0036982446908950806, -0.10137183964252472, -0.10470160841941833, -0.03137621283531189, -0.010834239423274994, 0.24351324141025543, 0.21494513750076294, 0.45690715312957764, 0.16113802790641785, 0.05872490629553795, -0.17517076432704926, -0.30935734510421753, -0.25070804357528687, -0.0017612017691135406, 0.32300829887390137, 0.048638101667165756, -0.24258257448673248, -0.1278846561908722, 0.31786230206489563, 0.2721020579338074, -0.07102303206920624, -0.31782087683677673, -0.04226360097527504, 0.4247140884399414, -0.1892637312412262, 0.37806570529937744, -0.016239576041698456, 0.026795223355293274, -0.16474416851997375, -0.18954479694366455, -0.04523997753858566, 0.09612981230020523, -0.17271654307842255, 0.17369580268859863, 0.1525547355413437, 0.23076753318309784, 0.07376091182231903, 0.3797224164009094, 0.03786928579211235, 0.030461154878139496, -0.02133055031299591, -0.2685924768447876, 0.17718246579170227, -0.16359907388687134, -0.13152644038200378, 0.18027926981449127, -0.2268899828195572, 0.2486560046672821, 0.23317989706993103, -0.05663519725203514, 0.0023781806230545044, -0.11647899448871613, 0.1053324043750763, 0.13148896396160126, 0.20111879706382751, -0.04799407720565796, -0.11675369739532471, -0.2038934975862503, 0.43465012311935425, 0.03955470025539398, 0.1403486430644989, 0.1689821034669876, 0.027417108416557312, -0.03339509665966034, 0.3215182423591614, 0.5625258088111877, 0.12198600172996521, -0.1466546654701233, -0.0011178888380527496, 0.171503946185112, -0.4324415326118469, 0.07673428952693939, -0.0060103777796030045, 0.2405717819929123, -0.2737797498703003, -0.3128945827484131, 0.1824539750814438, 0.006688043475151062, 0.07868316024541855, -0.014313754625618458, 0.3423750400543213, -0.16961997747421265, 0.1694117784500122, 0.13778966665267944, 0.0887795090675354, -0.2550032138824463, -0.08292526751756668, -0.3977609872817993, -0.055815692991018295, -0.13436199724674225, -0.09689589589834213, 0.17012622952461243, -0.042127810418605804, 0.3043804168701172, 0.22218459844589233, -0.033432044088840485, -0.08882838487625122, -0.05843576788902283, 0.07521478831768036, -0.10976394265890121, 0.396119087934494, 0.10008162260055542, 0.10693172365427017, 0.16811542212963104, -0.03682030737400055, 0.1541542410850525, 0.006588298827409744, 0.088963583111763, -0.09945372492074966, -0.2532072961330414, 0.3711145222187042, 0.08395051956176758, 0.09932159632444382, 0.15017229318618774, -0.04451823607087135, 0.20944705605506897, 0.21019020676612854, 0.08596067130565643, -0.08330395072698593, 0.16057497262954712, -0.03525954484939575, 0.0368303507566452, 0.06652718037366867, -0.16101455688476562, 0.0006913766264915466, 0.22500377893447876, -0.03588904067873955, 0.32076746225357056, 0.2761281132698059, -0.16393420100212097, -0.1878824532032013, -0.081679567694664, -0.14151306450366974, 0.1072092279791832, -0.17434906959533691, -0.38964807987213135, 0.04086209088563919, -0.013765476644039154, -0.026325972750782967, -0.2188478410243988, -0.08023201674222946, -0.17578114569187164, 0.13454245030879974, 0.07839401066303253, -0.014379508793354034, 0.15362879633903503, 0.13556300103664398, -0.5977055430412292, -0.1169392541050911, 0.041157085448503494, 0.012957163155078888, 0.3847063481807709, 0.20844519138336182, 0.002591177821159363, -0.3604723811149597, 0.2573535144329071, 0.0021735429763793945, -0.03453528881072998, 0.053953200578689575, 0.32900333404541016, 0.16321854293346405, 0.1592392772436142, -0.14115126430988312, 0.07142159342765808, 0.11102882772684097, -0.261936217546463, 0.32359543442726135, -0.15417630970478058, -0.31102198362350464, -0.14707505702972412, -0.03778087720274925, -0.1090579628944397, -0.13227476179599762, 0.3475579619407654, -0.14227677881717682, 0.028719976544380188, 0.2553676664829254, -0.12101280689239502, 0.271756112575531, -0.01962261274456978, 0.10735134780406952, -0.1255025416612625, 0.00559333898127079, -0.20670193433761597, -0.1215866357088089, 0.10149727761745453, 0.10695867240428925, 0.136057049036026, 0.11346711963415146, -0.10576175898313522, 0.26260483264923096, -0.10138687491416931, -0.0908648818731308, -0.07898908108472824, 0.2631276845932007, -0.00678308866918087, -0.021274253726005554, -0.08112037181854248, 0.040629785507917404, 0.08740907162427902, -0.048523806035518646, 0.2369842529296875, 0.3823833465576172, -0.05167381837964058, -0.10393934696912766, 0.06510015577077866, 0.18475086987018585, 0.6118748784065247, -0.13968691229820251, -0.06778604537248611, -0.27965599298477173, -0.0409223772585392, -0.2045329362154007, -0.04452592879533768, -0.013554392382502556, -0.4139676094055176, 0.02035479247570038, 0.27499130368232727, 0.13983847200870514, 0.28381451964378357, -0.08266105502843857, -0.09726544469594955, -0.009225508198142052, -0.11088643968105316, 0.3065076172351837, 0.16391029953956604, 0.13103818893432617, -0.02000315859913826, 0.09241588413715363, -0.2030983567237854, -0.1960488110780716, 0.06264655292034149, 0.06341849267482758, 0.017780940979719162, 0.10456191003322601, 0.12025854736566544, -0.22897976636886597, -0.44030633568763733, 0.2305009961128235, -0.05395190417766571, 0.31823793053627014, -0.2650297284126282, 0.006734907627105713, -0.24754898250102997, -0.014131797477602959, 0.23659364879131317, -0.39863038063049316, 0.04715680330991745, -0.44496840238571167, 0.1045868769288063, 0.24985484778881073, -0.2278628647327423, 0.34688255190849304, -0.33530789613723755, 0.1611187756061554, 0.0234255138784647, 0.28176477551460266, -0.09732131659984589, -0.20801162719726562, 0.01300911046564579, 0.22949951887130737, 0.08714045584201813, 0.07414144277572632, 0.23269206285476685, -0.029509712010622025, -0.04074249044060707, -0.30715253949165344, -0.3399862051010132, -0.12685033679008484, -0.034948937594890594, 0.2386888712644577, 0.26274752616882324, 0.21130868792533875, -0.24305380880832672, -0.12482599914073944, 0.24857842922210693, -0.18258704245090485, -0.025281958281993866, 0.03791259229183197, -0.09180913865566254, 0.036827560514211655, -0.31406015157699585, 0.0716741681098938, -0.04607979208230972, -0.3762418031692505, 0.2892070412635803, 0.02244938537478447, 0.0010430701076984406, 0.07394711673259735, -0.12099892646074295, -0.045676298439502716, 0.05550621077418327, 0.04706908017396927, -0.40380337834358215, -0.07101523131132126, 0.3516453504562378, -0.34652018547058105, -0.47784659266471863, 0.06639109551906586, -0.027136225253343582, 0.3323623239994049, -0.34706634283065796, -0.15565413236618042, -0.2750941216945648, -0.38837653398513794, 0.16722193360328674, 0.05931137874722481, 0.05498504638671875, 0.14512453973293304, 0.059633538126945496, -0.27893880009651184, -0.16920262575149536, -0.2696949541568756, 0.2508803606033325, 0.10109115391969681, -0.16739517450332642, -0.15480312705039978, 0.20208001136779785, -0.008490685373544693, 0.12481138110160828, -0.10311664640903473, -0.06743139028549194, 0.08991748094558716, 0.03230724856257439, 0.3263762891292572, -0.046166904270648956, -0.20446130633354187, -0.5250607132911682, 0.05440375953912735, 0.32411032915115356, 0.14175723493099213, -0.10876382142305374, 0.04408065229654312, -0.07302530109882355, 0.041619498282670975, -0.234879732131958, -0.35427165031433105, -0.09910295903682709, -0.2651920020580292, 0.009559765458106995, 0.32141438126564026, 0.16679543256759644, -0.1459801197052002, 0.10722210258245468, 0.270356148481369, -0.04337795078754425, -0.13771378993988037, -0.2415887713432312, -0.31008729338645935, -0.08445892482995987, -0.26093819737434387, 0.1594085544347763, -0.14507420361042023, 0.39632266759872437, 0.045862581580877304, -0.22188147902488708, 0.20645278692245483, -0.028424572199583054, 0.5412192940711975, 0.013879992067813873, -0.10714979469776154, 0.06116407737135887, -0.2964927852153778, -0.21153804659843445, -0.08416253328323364, -0.06928501278162003, 0.1526154726743698, 0.15126284956932068, -0.016252823173999786, -0.17237038910388947, -0.03689761832356453, 0.1302507221698761, -0.16949397325515747, -0.16512902081012726, -0.05722345411777496, -0.29433050751686096, -0.30608296394348145, 0.03039061836898327, -0.05812422186136246, 0.20966655015945435, 0.14485329389572144, -0.11743036657571793, -0.13040271401405334, -0.24530358612537384, -0.3410867154598236, 0.08513443171977997, 0.18642276525497437, 0.2096535861492157, -0.1759079396724701, 0.2590303122997284, -0.016199670732021332, -0.011534430086612701, 0.14846844971179962, 0.3960598409175873, -0.40111133456230164, -0.17072570323944092, 0.04221352934837341, -0.22581565380096436, 0.048894573003053665, 0.19090187549591064, -0.07584486156702042, 0.10887139290571213, -0.02095690369606018, 0.17423105239868164, 0.1259792596101761, -0.08259936422109604, 0.11937827616930008, 0.18610359728336334, 0.015599653124809265, -0.13708706200122833, 0.04376818239688873, -0.01503150537610054, -0.11579038947820663, 0.20959533751010895, 0.12245491147041321, -0.11426923424005508, 0.03966771438717842, -0.1320941150188446, 0.7171049118041992, -0.0674496740102768, -0.07689327001571655, 0.07072022557258606, -0.13595399260520935, 0.18543991446495056, 0.16014179587364197, 0.1465834379196167, -0.5085956454277039, -0.4079231023788452, 0.1198635846376419, 0.052100662142038345, 0.05790776014328003, -0.2744781970977783, 0.04886375740170479, 0.0020773725118488073, -0.27858301997184753, 0.010031793266534805, -0.08575174957513809, -0.004011970013380051, -0.12287584692239761, -0.00971616804599762, -0.45371806621551514, 0.3308217227458954, 0.16852405667304993, 0.01940700225532055, -0.08087646216154099, -0.11858561635017395, -0.10353696346282959, -0.01988666132092476, -0.0403730534017086, 0.10576077550649643, -0.20114609599113464, 0.385312557220459, 0.11783473193645477, 0.2596428394317627, -0.2533554434776306, 0.10590805113315582, 0.39667004346847534, 0.03814423084259033, -0.10187992453575134, 0.31397902965545654, 0.34255677461624146, 0.024372387677431107, 0.0882830023765564, 0.3148195147514343, 0.08079388737678528, -0.13311418890953064, -0.10427067428827286, 0.20827597379684448, 0.008556553162634373, -0.04292638227343559, -0.29383277893066406, 0.253824919462204, -0.16962935030460358, -0.1166168749332428, -0.1375131458044052, -0.06586773693561554, 0.05975605919957161, -0.3359836935997009, 0.3518039584159851, 0.09552855789661407, 0.02819870598614216, 0.35486307740211487, 0.03768625482916832, -0.2373543232679367, -0.13923192024230957, 0.5003513693809509, -0.15051424503326416, -0.00047412142157554626, 0.07432668656110764, 0.08817367255687714, -0.4336928725242615, -0.2511064112186432, -0.2955816984176636, 0.03418567031621933, -0.39787209033966064, 0.25425490736961365, 0.06639138609170914, -0.22446420788764954, 0.23755255341529846, -0.05211814120411873, 0.0387556292116642, 0.052893951535224915, -0.12230964004993439, 0.030073367059230804, -0.25734925270080566, -0.045446038246154785, -0.02917351946234703, 0.21227170526981354, -0.1711578369140625, 0.22621667385101318, -0.13221241533756256, -0.050947681069374084, -0.49866193532943726, 0.10508379340171814, -0.19459733366966248, 0.003285767510533333, 0.012768344953656197, -0.14055368304252625, 0.24665383994579315, -0.01675061509013176, 0.34601619839668274, 0.32616931200027466, 0.019741402938961983, -0.42275941371917725, -0.0047589875757694244, 0.006482928991317749, 0.04635559022426605, -0.06364208459854126, 0.05188782513141632, 0.021793067455291748, -0.22555068135261536, 0.094432033598423, 0.03850841894745827, 0.2818278670310974, -0.017095841467380524, 0.1320745348930359, 0.09484941512346268, 0.07702255994081497, 0.39222317934036255, 0.05194374918937683, -0.15950408577919006, 0.023208297789096832, -0.037618305534124374, -0.09105637669563293, -0.15647174417972565, 0.020155005156993866, 0.2266341596841812, -0.015500180423259735, -0.3136267066001892, 0.06266041100025177, 0.23389363288879395, -0.24862991273403168, -0.10228800028562546, 0.22037158906459808, 0.2649930715560913, 0.21904930472373962, -0.2589781880378723, -0.1941075474023819, 0.2972509562969208, 0.477446585893631, -0.36973997950553894, -0.10007388889789581, -0.17031893134117126, -0.09654775261878967, 0.2648819088935852, 0.20180019736289978, 0.18401668965816498, -0.47392114996910095, 0.08498817682266235, 0.35649532079696655, 0.010858824476599693, -0.5248602032661438, 0.032359227538108826, 0.3626774251461029, -0.25899115204811096, -0.13925465941429138, 0.35276296734809875, 0.17143699526786804, -0.10602787882089615, 0.4131373167037964, -0.021100886166095734, 0.00895356573164463, 0.026066144928336143, -0.023949962109327316, -0.04913788288831711, -0.04074826464056969, 0.024200929328799248, 0.33742496371269226, -0.3444422781467438, -0.08711525052785873, 0.12177993357181549, 0.09295111894607544, -0.09858835488557816, 0.0673602744936943, -0.0171939916908741, 0.18080654740333557, -0.3381919860839844, -0.01957555115222931, 0.22603824734687805, -0.05905183404684067, 0.045584842562675476, -0.07942251861095428, 0.13806910812854767, 0.2566288709640503, 0.3067437410354614, -0.001203678548336029, -0.11011479794979095, -0.23283816874027252, -0.08073722571134567, -0.01533845067024231, 0.4246866703033447, -0.1058344617486, -0.08202395588159561, 0.14221280813217163, -0.07732546329498291, -0.05057283118367195, 0.1612616926431656, 0.2554034888744354, 0.30653297901153564, -0.12244351208209991, 0.031306881457567215, -0.01988321542739868, -0.08552463352680206, -0.07843778282403946, 0.2536107897758484, 0.13044951856136322, 0.09769515693187714, 0.13445648550987244, 0.3088955581188202, -0.33527934551239014, -0.02981368824839592, -0.016277562826871872, 0.46598029136657715, 0.22028601169586182, 0.15549372136592865, 0.07695658504962921, -0.26720577478408813, 0.040111005306243896, -0.04411750286817551, -0.2233378291130066, -0.5097609162330627, -0.11363045871257782, -0.32180389761924744, 0.10276946425437927, -0.4777405560016632, 0.2065519243478775, 0.028656747192144394, 0.3271850347518921, 0.09488512575626373, 0.03723923861980438, 0.03210972249507904, -0.06893661618232727, -0.2208051085472107, 0.05366778373718262, -0.10880780220031738, -0.06693807244300842, -0.23093101382255554, 0.06790339946746826, -0.07291578501462936, -0.24083901941776276, 0.16791680455207825, -0.012200815603137016, 0.024931717664003372, -0.020982861518859863, -0.2398943156003952, 0.23143766820430756, -0.08268414437770844, -0.10998018085956573, 0.15725594758987427, -0.21782156825065613, 0.14651642739772797, -0.22560593485832214, 0.3469139039516449, 0.026760436594486237, 0.012076139450073242, -0.2454807460308075, 0.526753306388855, 0.18410718441009521, 0.3317667245864868, 0.2625894844532013, -0.0774177759885788, -0.17724262177944183, -0.13513274490833282, -0.3847683370113373, -0.12625934183597565, 0.21426066756248474, 0.13982942700386047, 0.013091135770082474, 0.21190577745437622, -0.41593989729881287, -0.08011115342378616, 0.34031251072883606, 0.0893201231956482, 0.330318421125412, -0.1980062872171402, 0.24736160039901733, 0.2639632523059845, 0.005567570216953754, -0.03197387233376503, 0.10552918910980225, 0.055086176842451096, 0.16534332931041718, -0.11207368969917297, -0.4843749701976776, 0.3379266858100891, -0.0921974778175354, -0.3850482106208801, -0.12410043925046921, 0.452183336019516, 0.14850017428398132, -0.219615176320076, -0.2536580264568329, -0.041128430515527725, 0.07825266569852829, 0.0270830225199461, -0.19231253862380981, 0.25766026973724365, -0.19992004334926605, 0.08907586336135864, -0.08677709102630615, -0.09850442409515381, 0.26469820737838745, -0.04971654713153839, 0.10013929009437561, -0.1549488604068756 ]
https://github.com/huggingface/datasets/issues/5477
Unpin sqlalchemy once issue is fixed
The source issue: - https://github.com/pandas-dev/pandas/issues/40686 has been fixed: - https://github.com/pandas-dev/pandas/pull/48576 The fix was released yesterday (2023-04-03) only in `pandas-2.0.0`: - https://github.com/pandas-dev/pandas/releases/tag/v2.0.0 but it will not be back-ported to `pandas-1`: - https://github.com/pandas-dev/pandas/pull/48576#issuecomment-1466467159 Also note that `pandas-2.0.0` dropped support for Python 3.7: - https://github.com/pandas-dev/pandas/issues/41678 - https://github.com/pandas-dev/pandas/pull/41989 Therefore, we cannot unpin `sqlalchemy` until we drop support for Python 3.7 (these Python users cannot use `pandas-2`).
Once the source issue is fixed: - pandas-dev/pandas#51015 we should revert the pin introduced in: - #5476
62
Unpin sqlalchemy once issue is fixed Once the source issue is fixed: - pandas-dev/pandas#51015 we should revert the pin introduced in: - #5476 The source issue: - https://github.com/pandas-dev/pandas/issues/40686 has been fixed: - https://github.com/pandas-dev/pandas/pull/48576 The fix was released yesterday (2023-04-03) only in `pandas-2.0.0`: - https://github.com/pandas-dev/pandas/releases/tag/v2.0.0 but it will not be back-ported to `pandas-1`: - https://github.com/pandas-dev/pandas/pull/48576#issuecomment-1466467159 Also note that `pandas-2.0.0` dropped support for Python 3.7: - https://github.com/pandas-dev/pandas/issues/41678 - https://github.com/pandas-dev/pandas/pull/41989 Therefore, we cannot unpin `sqlalchemy` until we drop support for Python 3.7 (these Python users cannot use `pandas-2`).
[ -0.007535271346569061, -0.0412362739443779, -0.14490503072738647, -0.17465969920158386, 0.3113883137702942, -0.21231690049171448, 0.3386843204498291, 0.4317508935928345, -0.1172046959400177, 0.21164295077323914, -0.11504389345645905, 0.37399494647979736, 0.03244774416089058, 0.23929931223392487, -0.1292552947998047, -0.02697768807411194, -0.021772071719169617, 0.08770819008350372, -0.09733174741268158, -0.002386588603258133, -0.21216048300266266, 0.11334799975156784, -0.1317702829837799, 0.14529815316200256, -0.24742519855499268, -0.09511800110340118, 0.15422402322292328, 0.21826112270355225, -0.06227819621562958, -0.26022982597351074, 0.22123990952968597, -0.09885300695896149, -0.2319188416004181, 0.33827221393585205, -0.00009675096225691959, -0.12684248387813568, 0.28107166290283203, 0.15348778665065765, -0.005094897001981735, 0.13212497532367706, -0.188340961933136, -0.3301143944263458, 0.1278095543384552, 0.022374331951141357, 0.02625611424446106, -0.053352005779743195, -0.03667110204696655, 0.09760040044784546, 0.21435010433197021, 0.11465249210596085, 0.42002585530281067, 0.21693743765354156, 0.18264715373516083, -0.09505877643823624, -0.28911513090133667, -0.27991294860839844, -0.05566944181919098, 0.3920855224132538, 0.0038761794567108154, -0.2603921592235565, -0.20750242471694946, 0.2859588861465454, 0.15522794425487518, -0.01401464268565178, -0.26594477891921997, -0.07016348093748093, 0.3539554476737976, -0.2776409983634949, 0.29970842599868774, 0.09737691283226013, -0.023756548762321472, -0.16743651032447815, -0.322010338306427, -0.08251208066940308, 0.05052695423364639, -0.3406546413898468, 0.21096724271774292, 0.13430045545101166, 0.2826133072376251, 0.022735824808478355, 0.3720134198665619, 0.07800919562578201, 0.08407175540924072, 0.04345376789569855, -0.28450724482536316, 0.12227136641740799, -0.19159016013145447, -0.09507737308740616, 0.22128576040267944, -0.27014440298080444, 0.15112416446208954, 0.2856130599975586, -0.07407207787036896, 0.028292369097471237, -0.08839789032936096, 0.01793748140335083, 0.15653273463249207, 0.2143232226371765, 0.050179123878479004, -0.07143034040927887, -0.3282613158226013, 0.47119057178497314, -0.03403099253773689, 0.1828646957874298, 0.12842775881290436, 0.0508897490799427, -0.09591894596815109, 0.37879037857055664, 0.6506980657577515, 0.18903134763240814, -0.013346504420042038, 0.1514149308204651, 0.27851244807243347, -0.41403815150260925, 0.15284200012683868, -0.0174114927649498, 0.36219698190689087, -0.3167758285999298, -0.35184457898139954, 0.08919760584831238, -0.02523314207792282, 0.09221036732196808, 0.042275168001651764, 0.2931576669216156, -0.16968075931072235, 0.32270553708076477, 0.09530998766422272, 0.10502929985523224, -0.19395209848880768, -0.00015567708760499954, -0.3370019495487213, -0.02776666358113289, -0.09866821765899658, -0.046773962676525116, 0.1425161361694336, -0.016656409949064255, 0.2651071548461914, 0.17209404706954956, -0.0412018746137619, 0.015259742736816406, -0.13605310022830963, -0.02727409265935421, -0.2516927123069763, 0.4447539448738098, 0.05595472827553749, 0.02134520374238491, 0.21613997220993042, 0.03542861342430115, 0.01245444267988205, -0.0590948760509491, 0.10899597406387329, -0.13570967316627502, -0.18838076293468475, 0.3393612802028656, 0.054057128727436066, 0.0843045562505722, 0.10959136486053467, -0.04577876254916191, 0.24096855521202087, 0.22942879796028137, 0.18354976177215576, -0.09714655578136444, 0.03102293238043785, -0.11389226466417313, 0.0021828096359968185, 0.009097665548324585, -0.1482643038034439, 0.06578300893306732, 0.24340975284576416, -0.011775899678468704, 0.3020603656768799, 0.3192026615142822, -0.1716112494468689, -0.18077397346496582, -0.0700511708855629, -0.258410781621933, 0.14512033760547638, -0.1955324411392212, -0.3875873386859894, -0.09338643401861191, 0.05320924520492554, 0.08577839285135269, -0.19448664784431458, -0.08089883625507355, -0.2704996168613434, 0.06482590734958649, 0.07518249750137329, 0.025106312707066536, 0.12776389718055725, 0.13206365704536438, -0.5447280406951904, -0.19968478381633759, 0.0581771582365036, 0.02684774622321129, 0.3586570620536804, 0.17172269523143768, 0.00522739440202713, -0.30795809626579285, 0.18168553709983826, 0.07158848643302917, -0.007489181123673916, 0.03247366100549698, 0.38090285658836365, 0.2301480621099472, 0.11565358191728592, -0.20678198337554932, 0.11991000175476074, 0.1936536431312561, -0.24708561599254608, 0.20393992960453033, -0.22113926708698273, -0.3923438787460327, -0.1100146472454071, -0.017292940989136696, -0.07739035785198212, -0.15739113092422485, 0.2775484621524811, -0.11036093533039093, 0.21271772682666779, 0.3154931962490082, -0.26461172103881836, 0.34888169169425964, 0.033472850918769836, 0.05007435008883476, -0.18006937205791473, -0.041249193251132965, -0.13570912182331085, -0.06682854145765305, 0.12791432440280914, 0.11769004911184311, 0.06523554772138596, 0.13257502019405365, -0.03365268558263779, 0.3278830945491791, -0.07250591367483139, -0.1275825947523117, -0.18320560455322266, 0.3745584189891815, 0.04593997821211815, 0.007100466638803482, -0.06911348551511765, -0.015135187655687332, 0.06414675712585449, -0.048518650233745575, 0.3213041126728058, 0.4627068042755127, -0.004508625715970993, -0.17035901546478271, 0.06308063864707947, 0.16933397948741913, 0.6198152899742126, -0.13875634968280792, -0.1724425107240677, -0.2576354146003723, -0.14438581466674805, -0.2969515323638916, 0.01688988506793976, -0.07561670243740082, -0.4069136679172516, 0.0407438650727272, 0.31766876578330994, 0.13626912236213684, 0.2876434922218323, -0.08357123285531998, 0.06343846768140793, 0.021467190235853195, -0.13214921951293945, 0.3401331901550293, 0.1861400157213211, 0.14019855856895447, -0.010343540459871292, 0.1273365169763565, -0.22908440232276917, -0.14877353608608246, -0.013830460608005524, 0.12299162149429321, 0.06321483105421066, 0.0016653761267662048, 0.09538167715072632, -0.18081128597259521, -0.3097764551639557, 0.17795269191265106, -0.1085595190525055, 0.4124007225036621, -0.22212809324264526, -0.0047440845519304276, -0.22973154485225677, -0.007720906287431717, 0.375252902507782, -0.470347136259079, -0.06950017809867859, -0.45977696776390076, 0.11648271977901459, 0.329232782125473, -0.2626357674598694, 0.2971915602684021, -0.4529660642147064, 0.07648177444934845, 0.0543547123670578, 0.2486829161643982, -0.04636687412858009, -0.05207658186554909, -0.031057141721248627, 0.23209837079048157, 0.11087606847286224, 0.03943824768066406, 0.3389149308204651, -0.036102473735809326, -0.08767635375261307, -0.2618825435638428, -0.27088090777397156, -0.11000664532184601, -0.09406310319900513, 0.17495329678058624, 0.3719266951084137, 0.0973837673664093, -0.36307430267333984, -0.14740537106990814, 0.2625890076160431, -0.24502794444561005, -0.05867309123277664, 0.07966829091310501, -0.07073869556188583, 0.07713263481855392, -0.20612496137619019, 0.18536055088043213, -0.10905259102582932, -0.47422561049461365, 0.3910014033317566, 0.0023368969559669495, 0.0449465848505497, 0.1726713925600052, -0.17661786079406738, 0.13829073309898376, 0.026241961866617203, 0.05479704588651657, -0.35847458243370056, -0.10425913333892822, 0.29720455408096313, -0.24594438076019287, -0.4301745593547821, 0.09568832814693451, -0.041713543236255646, 0.23549792170524597, -0.3654608130455017, -0.13553065061569214, -0.3433913290500641, -0.42846837639808655, 0.29956549406051636, 0.10014774650335312, 0.054307758808135986, 0.1251336932182312, 0.10072692483663559, -0.30381813645362854, -0.056433092802762985, -0.19562433660030365, 0.11897110193967819, 0.16895073652267456, -0.10354840010404587, -0.0335194431245327, 0.15066120028495789, 0.02850588783621788, 0.1738649606704712, 0.026226989924907684, 0.015754075720906258, 0.03614173084497452, 0.10894063115119934, 0.3088906705379486, -0.0015546828508377075, -0.27540844678878784, -0.673324704170227, 0.03094160556793213, 0.29205864667892456, 0.11106055229902267, -0.09020239114761353, 0.039241090416908264, -0.1348753720521927, -0.03254520520567894, -0.16792523860931396, -0.2907792329788208, -0.10501967370510101, -0.3808023929595947, 0.04733731225132942, 0.176260843873024, 0.028225384652614594, -0.05074605718255043, 0.10881736874580383, 0.271325945854187, 0.0643203854560852, -0.14329573512077332, -0.19783137738704681, -0.30319491028785706, -0.08985228836536407, -0.24042260646820068, 0.17380347847938538, -0.11259335279464722, 0.43773120641708374, 0.0999162346124649, -0.23702722787857056, 0.13776375353336334, -0.01502661406993866, 0.5233505368232727, -0.020793458446860313, -0.07288412004709244, 0.14291037619113922, -0.3713018596172333, -0.21098630130290985, -0.04103317856788635, -0.09310077875852585, 0.10075321048498154, 0.12993456423282623, -0.1391994208097458, -0.15109626948833466, -0.028782904148101807, 0.1746295690536499, -0.12365877628326416, -0.15662004053592682, -0.02057379111647606, -0.3601662516593933, -0.318949818611145, 0.06604386866092682, 0.0285726860165596, 0.18594366312026978, 0.08552350848913193, -0.1284477710723877, -0.030068080872297287, -0.23205821216106415, -0.3757406175136566, 0.083012156188488, 0.14227813482284546, 0.15584468841552734, -0.16887351870536804, 0.22626936435699463, -0.07009396702051163, -0.16490399837493896, 0.1473296582698822, 0.3614491820335388, -0.38494130969047546, -0.20180082321166992, -0.024680472910404205, 0.04762468859553337, 0.01946144551038742, 0.1664413958787918, -0.12557920813560486, 0.16701388359069824, -0.04778371751308441, 0.17737090587615967, 0.1797056347131729, -0.20635287463665009, 0.10360796004533768, 0.16129212081432343, 0.07506372034549713, -0.1810399293899536, 0.01933877170085907, -0.017552316188812256, -0.05596638843417168, 0.11798176914453506, 0.20633649826049805, -0.10997753590345383, -0.00906657800078392, -0.20357975363731384, 0.6916519403457642, -0.06206773966550827, -0.035137806087732315, 0.17639616131782532, -0.13389693200588226, 0.2542230784893036, 0.17455224692821503, 0.16232869029045105, -0.36572179198265076, -0.2821047306060791, 0.16655278205871582, 0.09462150931358337, 0.15320813655853271, -0.4255126714706421, -0.02784261666238308, 0.07839922606945038, -0.2782914340496063, 0.02869916893541813, -0.11180400848388672, 0.023204930126667023, -0.23175048828125, -0.05195597931742668, -0.6142322421073914, 0.312195748090744, 0.10040214657783508, 0.03923981264233589, -0.0806683674454689, -0.14227639138698578, -0.038803666830062866, -0.025293126702308655, -0.027643263339996338, 0.0956355482339859, -0.2350134700536728, 0.480796217918396, 0.09449959546327591, 0.3789746165275574, -0.3810079097747803, 0.11442473530769348, 0.26732438802719116, 0.0070166997611522675, -0.05253604054450989, 0.1928890496492386, 0.4064006507396698, -0.0181110929697752, 0.09924279898405075, 0.2600592374801636, 0.23517842590808868, -0.1689991056919098, -0.02089618146419525, 0.2843270003795624, -0.049791447818279266, -0.05414014309644699, -0.1776919811964035, 0.2393103390932083, -0.13974529504776, -0.07461995631456375, -0.1695549190044403, -0.15142984688282013, 0.04208969697356224, -0.27840983867645264, 0.32976630330085754, 0.19237056374549866, -0.05948884040117264, 0.2750703692436218, -0.050442349165678024, -0.2647404372692108, -0.11492542922496796, 0.5231705904006958, -0.13286703824996948, -0.030153397470712662, 0.027856577187776566, 0.047057587653398514, -0.41775184869766235, -0.19247916340827942, -0.18274405598640442, 0.0742705836892128, -0.3468528389930725, 0.2834436595439911, 0.02814352884888649, -0.07142344117164612, 0.23776446282863617, -0.12120376527309418, 0.16498151421546936, -0.021283581852912903, -0.1791117787361145, 0.009590961039066315, -0.4117312729358673, 0.05515533313155174, 0.10608967393636703, 0.1603880524635315, -0.22761544585227966, 0.16858935356140137, -0.1604970544576645, -0.02477947436273098, -0.4858708679676056, 0.024728812277317047, -0.1995270699262619, -0.051520511507987976, -0.0198076069355011, -0.11033519357442856, 0.2847023010253906, 0.02900056168437004, 0.32711052894592285, 0.26779961585998535, -0.12245011329650879, -0.37579357624053955, -0.037909552454948425, -0.007506757974624634, -0.007819440215826035, -0.10909292101860046, 0.10824371129274368, -0.09994157403707504, -0.17954392731189728, 0.16957177221775055, 0.08304241299629211, 0.3357675075531006, -0.01355019211769104, 0.15499436855316162, 0.05617714673280716, 0.1607726365327835, 0.42271947860717773, 0.019600970670580864, -0.2741674482822418, -0.11180983483791351, 0.036089878529310226, -0.02036895602941513, -0.1985127180814743, 0.029030777513980865, 0.2841068506240845, -0.04962129145860672, -0.29163658618927, -0.04704692214727402, 0.16086459159851074, -0.20256130397319794, -0.15906913578510284, 0.1220746785402298, 0.2854245901107788, 0.220698282122612, -0.2264540195465088, -0.18979568779468536, 0.31825608015060425, 0.42590561509132385, -0.3184654414653778, 0.01988489367067814, -0.2617427706718445, -0.052858516573905945, 0.272013396024704, 0.2602579891681671, 0.2031441032886505, -0.4952063262462616, 0.14142881333827972, 0.36388272047042847, 0.021572716534137726, -0.5375756621360779, 0.11252187192440033, 0.4991111159324646, -0.3317932188510895, -0.1368582397699356, 0.3649716079235077, 0.17597422003746033, -0.016766667366027832, 0.230331152677536, -0.047953881323337555, 0.13762594759464264, -0.09345190972089767, 0.10032249987125397, -0.005312308669090271, -0.04096897691488266, 0.023076968267560005, 0.33065444231033325, -0.30836954712867737, -0.06866966933012009, 0.06167885661125183, 0.1531815230846405, -0.1622515171766281, 0.025500040501356125, 0.018989278003573418, 0.26760926842689514, -0.2615329921245575, -0.04824035242199898, 0.390746533870697, -0.11449460685253143, -0.002061218023300171, -0.14316047728061676, 0.14811550080776215, 0.20201951265335083, 0.26674914360046387, -0.046847015619277954, -0.09139642119407654, -0.23236551880836487, -0.08980187028646469, -0.030835002660751343, 0.5079861283302307, -0.07340988516807556, -0.12032575160264969, 0.1293567717075348, -0.18912729620933533, -0.19172200560569763, 0.191057950258255, 0.2702437937259674, 0.2686575651168823, -0.11490090191364288, 0.05179019644856453, -0.02062811702489853, -0.06825919449329376, -0.03264360502362251, 0.29505684971809387, 0.07345238327980042, 0.12416468560695648, 0.12844298779964447, 0.2729347348213196, -0.29059043526649475, -0.02266070619225502, -0.15371736884117126, 0.5067973732948303, 0.14589852094650269, 0.2896554470062256, 0.09107004851102829, -0.23726186156272888, 0.10641764849424362, 0.11917416751384735, -0.16138754785060883, -0.5834312438964844, -0.09159056842327118, -0.2887611985206604, 0.11586286872625351, -0.4680718779563904, 0.20183968544006348, 0.10187102854251862, 0.19651000201702118, 0.10578856617212296, -0.022728629410266876, 0.08952794224023819, 0.06659390032291412, -0.19880756735801697, -0.0013510212302207947, -0.17053700983524323, -0.07194921374320984, -0.16335783898830414, 0.055955372750759125, -0.12971237301826477, -0.07331988215446472, 0.05790846049785614, 0.004104568623006344, 0.014354017563164234, -0.0527135506272316, -0.2081364095211029, 0.274428129196167, -0.146937295794487, -0.061015255749225616, 0.1292092651128769, -0.2431439757347107, 0.10397463291883469, -0.21406160295009613, 0.2901420295238495, 0.02916155941784382, -0.020351704210042953, -0.10311020910739899, 0.5383719205856323, 0.17064952850341797, 0.36496222019195557, 0.132936030626297, -0.08651652932167053, -0.21173185110092163, -0.23669719696044922, -0.3499917984008789, -0.11951003223657608, 0.18026907742023468, 0.008978301659226418, 0.0018391162157058716, 0.10413727164268494, -0.497354120016098, -0.12148883193731308, 0.36475494503974915, 0.04064909368753433, 0.22560147941112518, -0.06079218536615372, 0.15638576447963715, 0.32828864455223083, 0.09560278803110123, -0.02973219007253647, 0.06430700421333313, 0.07861405611038208, 0.18217197060585022, -0.16789087653160095, -0.39971351623535156, 0.3737680912017822, -0.12115057557821274, -0.31897658109664917, -0.10204033553600311, 0.49881744384765625, 0.18259885907173157, -0.29957643151283264, -0.34367260336875916, -0.08982665836811066, 0.06666219979524612, 0.0437324121594429, -0.17035920917987823, 0.3136281371116638, -0.22498269379138947, -0.007039591670036316, -0.11547435820102692, -0.12196364998817444, 0.12460403144359589, -0.015911316499114037, 0.12068960070610046, -0.12985166907310486 ]
https://github.com/huggingface/datasets/issues/5475
Dataset scan time is much slower than using native arrow
Hi ! In your code you only iterate on the Arrow buffers - you don't actually load the data as python objects. For a fair comparison, you can modify your code using: ```diff - for _ in range(0, len(table), bsz): - _ = {k:table[k][_ : _ + bsz] for k in cols} + for _ in range(0, len(table), bsz): + _ = {k:table[k][_ : _ + bsz].to_pylist() for k in cols} ``` I re-ran your code and got a speed ratio of 1.00x and 1.02x
### Describe the bug I'm basically running the same scanning experiment from the tutorials https://huggingface.co/course/chapter5/4?fw=pt except now I'm comparing to a native pyarrow version. I'm finding that the native pyarrow approach is much faster (2 orders of magnitude). Is there something I'm missing that explains this phenomenon? ### Steps to reproduce the bug https://colab.research.google.com/drive/11EtHDaGAf1DKCpvYnAPJUW-LFfAcDzHY?usp=sharing ### Expected behavior I expect scan times to be on par with using pyarrow directly. ### Environment info standard colab environment
85
Dataset scan time is much slower than using native arrow ### Describe the bug I'm basically running the same scanning experiment from the tutorials https://huggingface.co/course/chapter5/4?fw=pt except now I'm comparing to a native pyarrow version. I'm finding that the native pyarrow approach is much faster (2 orders of magnitude). Is there something I'm missing that explains this phenomenon? ### Steps to reproduce the bug https://colab.research.google.com/drive/11EtHDaGAf1DKCpvYnAPJUW-LFfAcDzHY?usp=sharing ### Expected behavior I expect scan times to be on par with using pyarrow directly. ### Environment info standard colab environment Hi ! In your code you only iterate on the Arrow buffers - you don't actually load the data as python objects. For a fair comparison, you can modify your code using: ```diff - for _ in range(0, len(table), bsz): - _ = {k:table[k][_ : _ + bsz] for k in cols} + for _ in range(0, len(table), bsz): + _ = {k:table[k][_ : _ + bsz].to_pylist() for k in cols} ``` I re-ran your code and got a speed ratio of 1.00x and 1.02x
[ -0.35617172718048096, -0.2545665502548218, 0.03432583808898926, 0.18321429193019867, -0.312744140625, -0.22625666856765747, 0.24134215712547302, 0.27072635293006897, -0.25663360953330994, 0.2540118098258972, -0.2461501955986023, 0.6351576447486877, -0.0695861279964447, 0.03369786590337753, -0.04374909773468971, 0.06313153356313705, 0.25655922293663025, 0.26229578256607056, 0.21302756667137146, -0.08008261024951935, -0.13526080548763275, -0.07046937942504883, -0.48097068071365356, -0.13427583873271942, -0.24939386546611786, 0.157144695520401, -0.20933561027050018, 0.1780686378479004, -0.2466060370206833, -0.2776147723197937, 0.4636784493923187, -0.07967579364776611, -0.05485640466213226, 0.49012812972068787, -0.0001270456559723243, -0.08648940175771713, 0.2560199499130249, 0.1678110957145691, 0.0722225159406662, 0.2967565059661865, 0.18900534510612488, 0.03233983367681503, 0.3412853479385376, -0.07885269075632095, -0.03318743035197258, -0.2863944172859192, -0.14180710911750793, 0.11330030858516693, -0.090985506772995, 0.0868295282125473, 0.1016836017370224, 0.16283951699733734, -0.19321446120738983, 0.08057861030101776, 0.39995214343070984, 0.15521955490112305, -0.3974784016609192, 0.4790450632572174, 0.38708752393722534, -0.014485768042504787, -0.22369268536567688, 0.24140305817127228, 0.0002563111484050751, 0.12680888175964355, 0.33014732599258423, 0.40215355157852173, -0.07851783186197281, 0.004854224622249603, 0.19572505354881287, 0.35692137479782104, 0.13310152292251587, -0.24803417921066284, -0.025523371994495392, -0.33224889636039734, -0.17299164831638336, -0.27644675970077515, 0.23497095704078674, 0.02062436379492283, -0.4401918947696686, -0.043588507920503616, -0.03066808544099331, 0.39924871921539307, 0.0013893172144889832, -0.15182405710220337, -0.06890204548835754, 0.2896098792552948, 0.13880929350852966, 0.0774589329957962, 0.4423786997795105, 0.027706816792488098, 0.7736119031906128, -0.062282495200634, 0.04289218410849571, 0.21943795680999756, -0.4038873612880707, 0.04071210324764252, 0.054909273982048035, 0.29348117113113403, 0.10074698179960251, 0.06894338130950928, 0.09409555047750473, 0.1419188678264618, 0.054018836468458176, -0.09429255872964859, -0.0986926257610321, 0.19191907346248627, -0.2276114523410797, 0.32782912254333496, -0.08936375379562378, 0.2282533496618271, -0.021166732534766197, 0.17404314875602722, 0.13184411823749542, -0.22543679177761078, 0.278756320476532, -0.30058443546295166, 0.14107674360275269, -0.31299903988838196, -0.0004508495330810547, -0.2049219012260437, -0.4681951701641083, -0.10204232484102249, 0.011979111470282078, 0.3325156271457672, -0.0782049298286438, -0.18684333562850952, -0.09079277515411377, -0.12286677956581116, -0.4081287384033203, 0.060414183884859085, -0.07844771444797516, -0.056991253048181534, -0.27596038579940796, 0.009277990087866783, -0.05535225570201874, -0.2524366080760956, 0.11750835925340652, 0.022266097366809845, 0.19922268390655518, 0.11975343525409698, -0.36639708280563354, -0.32578593492507935, 0.33043307065963745, 0.0263974666595459, -0.24857617914676666, 0.011582026258111, -0.21627895534038544, -0.14857374131679535, -0.22614550590515137, 0.37494388222694397, -0.07056102901697159, -0.30141696333885193, -0.1558026224374771, -0.04075472429394722, -0.23613719642162323, -0.08655719459056854, -0.14124926924705505, 0.16218233108520508, -0.1939944624900818, -0.05003688111901283, 0.08756615966558456, -0.1159406304359436, -0.46966099739074707, -0.24535556137561798, 0.1745261549949646, 0.2640998959541321, -0.616550862789154, 0.34025174379348755, 0.14621926844120026, 0.29148563742637634, 0.8235902190208435, 0.6433753371238708, -0.12584470212459564, -0.05362305790185928, -0.2953178286552429, 0.20524512231349945, 0.054396048188209534, -0.07145700603723526, -0.49214252829551697, -0.06930350512266159, -0.03351612761616707, 0.3615685701370239, 0.18903280794620514, 0.0451587438583374, 0.1256924569606781, -0.2859095335006714, 0.13617612421512604, 0.30226629972457886, 0.028871819376945496, 0.24805381894111633, -0.6485267877578735, -0.19078633189201355, 0.3513118028640747, 0.1662350744009018, -0.32251057028770447, -0.1892084777355194, -0.09170503169298172, -0.787236213684082, 0.32356786727905273, -0.11802543699741364, -0.262818843126297, -0.10224848985671997, 0.41221821308135986, -0.06750956177711487, 0.3332613408565521, 0.2711069881916046, -0.17220690846443176, 0.30154985189437866, -0.1323031783103943, 0.21636654436588287, -0.06784515082836151, -0.07931916415691376, -0.25225549936294556, 0.2611727714538574, -0.24211962521076202, -0.15027634799480438, -0.07929569482803345, -0.09985807538032532, 0.27070197463035583, 0.2004174441099167, 0.11975164711475372, 0.11251796036958694, -0.1387385129928589, 0.20025406777858734, 0.08041273057460785, 0.3246474266052246, -0.03127705305814743, -0.28695738315582275, -0.16711178421974182, 0.055313967168331146, -0.012881472706794739, -0.030545489862561226, -0.2588888704776764, 0.17844074964523315, 0.10510014742612839, 0.1765206754207611, -0.09379342943429947, 0.002036735415458679, 0.21157103776931763, -0.37987056374549866, 0.19180957973003387, 0.12155608832836151, 0.24252229928970337, 0.01198599487543106, -0.06328484416007996, 0.38487446308135986, 0.1617012768983841, 0.4103497564792633, -0.22669245302677155, -0.2545863091945648, -0.06466224789619446, 0.004494849592447281, 0.21640364825725555, 0.3559400737285614, 0.24616463482379913, 0.19999708235263824, 0.1585279107093811, 0.2760045826435089, -0.15149012207984924, 0.3556409180164337, 0.6582716107368469, 0.0063071176409721375, -0.29884469509124756, 0.2164592444896698, -0.13358080387115479, -0.3072648048400879, 0.34785330295562744, 0.20154668390750885, 0.3365417718887329, 0.2018512338399887, 0.16752158105373383, 0.1444472372531891, -0.2785312533378601, -0.13180120289325714, 0.26143524050712585, 0.1334543228149414, 0.5423713326454163, -0.12948021292686462, 0.3212713301181793, 0.07784133404493332, -0.37709394097328186, -0.2601330876350403, -0.26027652621269226, 0.21466071903705597, -0.042102694511413574, 0.24639450013637543, -0.27164581418037415, -0.24607497453689575, -0.13433082401752472, -0.20467916131019592, 0.16531650722026825, -0.2609337568283081, 0.011951843276619911, -0.10851223766803741, -0.10016840696334839, -0.050867192447185516, 0.008565377444028854, 0.15896931290626526, -0.13460856676101685, -0.2923974394798279, -0.6294253468513489, -0.1939164698123932, -0.43645215034484863, -0.04621299356222153, 0.24124778807163239, 0.1261737048625946, 0.006585564464330673, -0.2758179306983948, 0.09231914579868317, 0.11194911599159241, -0.4248439371585846, 0.08416987955570221, -0.13840025663375854, 0.0950540155172348, -0.13128350675106049, -0.21697945892810822, -0.4586644172668457, -0.18958139419555664, 0.3302426338195801, -0.3016224801540375, -0.37568557262420654, 0.018072761595249176, -0.16782066226005554, 0.04362643510103226, 0.08377385139465332, 0.08433782309293747, -0.16942383348941803, -0.013305079191923141, 0.19613079726696014, 0.018129922449588776, 0.33297836780548096, 0.12123176455497742, 0.2048499435186386, 0.18707118928432465, -0.21473848819732666, 0.129294753074646, -0.04178069159388542, -0.08751354366540909, 0.3660479784011841, 0.0993727296590805, -0.18080396950244904, -0.21979181468486786, -0.23462694883346558, 0.00861334428191185, 0.1538373976945877, -0.39611947536468506, -0.1034165546298027, -0.5371541976928711, 0.46339845657348633, -0.00031010061502456665, -0.09965246915817261, 0.20640110969543457, 0.08696671575307846, -0.013729818165302277, 0.06428169459104538, -0.17309381067752838, -0.19189950823783875, -0.195718914270401, 0.20083029568195343, 0.17827168107032776, 0.04239828139543533, -0.0011675059795379639, 0.5910432934761047, -0.01759122870862484, -0.09070828557014465, -0.0030415207147598267, -0.3721131682395935, 0.03953158110380173, -0.47438207268714905, -0.22485066950321198, 0.23626172542572021, -0.049836963415145874, -0.16114288568496704, 0.208403080701828, -0.0416068471968174, -0.42794257402420044, -0.013422319665551186, 0.021386798471212387, -0.20855653285980225, -0.3215215802192688, 0.19955912232398987, 0.3768608272075653, -0.16810360550880432, 0.07814539968967438, 0.21055731177330017, 0.04075739160180092, -0.2577454745769501, 0.14174090325832367, -0.08149775862693787, -0.2972142994403839, -0.2545115351676941, 0.11037604510784149, -0.11557943373918533, -0.7343783378601074, 0.35776132345199585, 0.3551238775253296, 0.2042381763458252, 0.30175668001174927, -0.3506913185119629, 0.4907952547073364, -0.07260007411241531, 0.5378023386001587, 0.34879714250564575, -0.018015287816524506, -0.005803482607007027, -0.23142753541469574, -0.36086684465408325, -0.10982221364974976, -0.16783826053142548, -0.11398645490407944, 0.09195032715797424, -0.1898415982723236, -0.053912341594696045, -0.074227474629879, 0.31316131353378296, 0.28460827469825745, 0.16907526552677155, -0.03252458572387695, -0.32764697074890137, -0.38813382387161255, 0.1441284865140915, 0.07808145880699158, -0.05827770382165909, 0.35310015082359314, 0.06275179237127304, -0.10440918803215027, -0.1442616879940033, -0.12018261849880219, -0.09985929727554321, 0.34092405438423157, 0.3418203294277191, -0.012142232619225979, 0.43637019395828247, 0.10107554495334625, 0.039294447749853134, 0.3082495927810669, 0.437972754240036, -0.04757014289498329, -0.5880794525146484, -0.27653393149375916, 0.07668440043926239, 0.1512831151485443, 0.4061845541000366, -0.1502050757408142, 0.09457740932703018, -0.4394072890281677, 0.0405217707157135, 0.15341247618198395, -0.196040540933609, 0.05825899541378021, 0.24844121932983398, 0.1283075511455536, 0.061970315873622894, 0.30428946018218994, 0.3828178942203522, -0.16673405468463898, 0.3979054093360901, 0.11629736423492432, 0.04504901170730591, 0.4509909749031067, 0.07106774300336838, 0.8446282744407654, -0.1648937463760376, 0.057762306183576584, 0.5283048152923584, -0.4061429500579834, 0.0656161829829216, 0.33440297842025757, 0.08847703784704208, -0.28842970728874207, -0.4050683081150055, 0.18190330266952515, -0.20395086705684662, -0.21006622910499573, -0.5052019953727722, -0.03013787418603897, -0.018945887684822083, 0.1545688956975937, -0.04037443920969963, 0.061518192291259766, -0.27047234773635864, 0.13585323095321655, -0.2428048849105835, -0.05083359777927399, -0.06336536258459091, 0.09516295045614243, 0.24198536574840546, 0.05198618769645691, 0.03907007351517677, -0.5240035653114319, -0.1452939659357071, -0.29829835891723633, 0.16119974851608276, -0.43023762106895447, -0.21926647424697876, 0.40983471274375916, -0.540848970413208, 0.07971403002738953, 0.06443365663290024, -0.17534928023815155, -0.10002690553665161, -0.15145517885684967, 0.07288099825382233, 0.505476176738739, 0.3465965986251831, 0.35359564423561096, -0.5179829597473145, 0.12928162515163422, 0.09173014014959335, 0.004114188253879547, -0.06175322085618973, -0.28322190046310425, -0.24006372690200806, 0.07420262694358826, 0.3933272957801819, 0.23163266479969025, 0.21953220665454865, 0.19157877564430237, 0.0761890634894371, 0.17416435480117798, -0.26784077286720276, 0.021298518404364586, 0.15421196818351746, 0.12222523242235184, 0.4115437865257263, 0.008738413453102112, -0.5740431547164917, 0.0922556221485138, 0.18364334106445312, 0.3425450026988983, 0.10739439725875854, 0.3403552770614624, 0.008139926940202713, -0.22785189747810364, 0.05886206775903702, 0.23464077711105347, 0.17793379724025726, -0.7379002571105957, 0.14604493975639343, -0.2263822853565216, 0.10241016745567322, 0.12235075235366821, 0.555465817451477, 0.2248956561088562, -0.13284435868263245, -0.40224748849868774, -0.13038426637649536, -0.06939289718866348, 0.09466303884983063, 0.000880025327205658, 0.04560856893658638, -0.20236077904701233, 0.2454790323972702, 0.0931665301322937, -0.17573755979537964, -0.17548856139183044, 0.17438089847564697, 0.00967436470091343, 0.03596298024058342, -0.456952840089798, -0.04365658760070801, 0.2685714066028595, 0.06325796246528625, -0.056029416620731354, 0.416640043258667, 0.032504819333553314, -0.09890042990446091, 0.10571599006652832, 0.13009127974510193, -0.13444769382476807, -0.29351258277893066, -0.2546960413455963, -0.0028285272419452667, -0.041387517005205154, -0.1985899657011032, -0.02960272692143917, 0.03319663554430008, 0.03408360481262207, -0.24925558269023895, 0.5228838324546814, -0.05954349786043167, -0.12037351727485657, 0.2456589639186859, -0.19966289401054382, 0.33638548851013184, -0.016736067831516266, 0.03208106383681297, -0.1589973270893097, -0.14195328950881958, 0.7191084623336792, 0.030784819275140762, -0.08246913552284241, 0.022845622152090073, 0.08197414129972458, -0.25115448236465454, 0.018093813210725784, -0.21955512464046478, 0.2472131848335266, 0.39571934938430786, 0.005283009260892868, -0.43156713247299194, 0.40690910816192627, 0.026829252019524574, -0.2592054605484009, -0.11354397982358932, 0.109855055809021, 0.37447160482406616, 0.15958574414253235, 0.24266774952411652, 0.060114528983831406, 0.2479083240032196, 0.0050533488392829895, -0.15529006719589233, 0.240568146109581, 0.2917448878288269, -0.29404956102371216, 0.2771255671977997, -0.06956891715526581, 0.21654775738716125, 0.3764767050743103, 0.01891569048166275, 0.075710728764534, 0.35697007179260254, -0.20740091800689697, 0.43092960119247437, -0.11589068919420242, 0.2515504062175751, -0.1021566167473793, -0.2625945806503296, 0.0052223652601242065, 0.348432332277298, 0.017738796770572662, -0.09947506338357925, 0.1586533784866333, 0.657228410243988, 0.32379215955734253, -0.22955124080181122, -0.04898311197757721, 0.1345064789056778, 0.020421575754880905, -0.05796871334314346, -0.157108873128891, -0.06300870329141617, -0.26266032457351685, 0.0772746354341507, -0.21060791611671448, 0.042984090745449066, 0.4013570249080658, 0.05208982154726982, 0.03074614703655243, -0.032991260290145874, -0.14146235585212708, -0.05362289398908615, 0.30142122507095337, -0.08823266625404358, 0.23128008842468262, -0.11744803190231323, 0.050007835030555725, -0.030736904591321945, 0.2463957667350769, 0.24071596562862396, 0.1916353702545166, -0.15765303373336792, -0.2920280694961548, -0.21499311923980713, 0.11880512535572052, -0.039461493492126465, 0.1169319748878479, 0.2410968840122223, -0.08116543292999268, 0.3646996021270752, -0.13327181339263916, -0.14381228387355804, 0.014023205265402794, 0.10449841618537903, 0.19483013451099396, -0.2549605369567871, -0.18998271226882935, -0.275348961353302, -0.1966482698917389, -0.20465485751628876, 0.10912337899208069, -0.07150898873806, -0.09446458518505096, -0.1352783739566803, -0.43557554483413696, -0.1141364648938179, 0.15559707581996918, 0.0098356232047081, 0.06365944445133209, 0.655610978603363, 0.5003145933151245, 0.6485811471939087, -0.18121398985385895, -0.4327893853187561, -0.17985795438289642, 0.1299997866153717, -0.3334103226661682, -0.028228076174855232, 0.14870227873325348, 0.29960569739341736, 0.09902621805667877, 0.41451191902160645, 0.4680543541908264, 0.29835620522499084, -0.04330962151288986, 0.2685416340827942, -0.41111135482788086, -0.1479124128818512, 0.012816891074180603, -0.5091550350189209, -0.09544157981872559, -0.43368542194366455, 0.35657432675361633, -0.49732106924057007, -0.04686925187706947, 0.11284806579351425, -0.15668265521526337, 0.07217977941036224, 0.10972103476524353, 0.4603593349456787, 0.07665268331766129, 0.010580018162727356, 0.16573166847229004, 0.0510101243853569, 0.10689684003591537, 0.09200356155633926, -0.006961763836443424, 0.3109683096408844, 0.0612705796957016, -0.04209918528795242, -0.016872981563210487, -0.023401837795972824, 0.19035322964191437, 0.3201255798339844, 0.24498803913593292, -0.017696408554911613, -0.11362652480602264, 0.07479771226644516, -0.1393158733844757, 0.09438986331224442, -0.2597430944442749, 0.11098765581846237, -0.010197483003139496, 0.04784982651472092, -0.3184419572353363, -0.3425327241420746, 0.6963624954223633, -0.21008379757404327, 0.018818877637386322, -0.15020102262496948, -0.07215762138366699, 0.2608705759048462, -0.09124892204999924, -0.1843993067741394, -0.3107520043849945, 0.04915647208690643, 0.1176447719335556, -0.09211578965187073, 0.14818479120731354, -0.05052065849304199, 0.12748412787914276, -0.14942453801631927, 0.4501800835132599, -0.05251810699701309, -0.0017348267138004303, -0.24988119304180145, -0.08835573494434357 ]
https://github.com/huggingface/datasets/issues/5475
Dataset scan time is much slower than using native arrow
Ah I see, datasets is implicitly making this conversion. Thanks for pointing that out! If it's not too much, I would also suggest updating some of your docs with the same `.to_pylist()` conversion in the code snippet that follows [here](https://huggingface.co/course/chapter5/4?fw=pt#:~:text=let%E2%80%99s%20run%20a%20little%20speed%20test%20by%20iterating%20over%20all%20the%20elements%20in%20the%20PubMed%20Abstracts%20dataset%3A).
### Describe the bug I'm basically running the same scanning experiment from the tutorials https://huggingface.co/course/chapter5/4?fw=pt except now I'm comparing to a native pyarrow version. I'm finding that the native pyarrow approach is much faster (2 orders of magnitude). Is there something I'm missing that explains this phenomenon? ### Steps to reproduce the bug https://colab.research.google.com/drive/11EtHDaGAf1DKCpvYnAPJUW-LFfAcDzHY?usp=sharing ### Expected behavior I expect scan times to be on par with using pyarrow directly. ### Environment info standard colab environment
40
Dataset scan time is much slower than using native arrow ### Describe the bug I'm basically running the same scanning experiment from the tutorials https://huggingface.co/course/chapter5/4?fw=pt except now I'm comparing to a native pyarrow version. I'm finding that the native pyarrow approach is much faster (2 orders of magnitude). Is there something I'm missing that explains this phenomenon? ### Steps to reproduce the bug https://colab.research.google.com/drive/11EtHDaGAf1DKCpvYnAPJUW-LFfAcDzHY?usp=sharing ### Expected behavior I expect scan times to be on par with using pyarrow directly. ### Environment info standard colab environment Ah I see, datasets is implicitly making this conversion. Thanks for pointing that out! If it's not too much, I would also suggest updating some of your docs with the same `.to_pylist()` conversion in the code snippet that follows [here](https://huggingface.co/course/chapter5/4?fw=pt#:~:text=let%E2%80%99s%20run%20a%20little%20speed%20test%20by%20iterating%20over%20all%20the%20elements%20in%20the%20PubMed%20Abstracts%20dataset%3A).
[ -0.3877435624599457, -0.08761433511972427, 0.04365236684679985, 0.1389235109090805, -0.13225595653057098, -0.21326205134391785, 0.3500566780567169, 0.17366288602352142, -0.45768284797668457, 0.22467568516731262, -0.21866348385810852, 0.7415615320205688, -0.041470348834991455, 0.036499738693237305, -0.07581740617752075, 0.08606000244617462, 0.2991129457950592, 0.2182157039642334, 0.1361258178949356, -0.08321792632341385, -0.14521151781082153, 0.002123367041349411, -0.42376530170440674, -0.054898351430892944, -0.3556847870349884, 0.11248061805963516, -0.263210266828537, 0.08550552278757095, -0.3196304440498352, -0.26193827390670776, 0.3170468807220459, -0.1263483464717865, -0.14397218823432922, 0.593128502368927, -0.00013024166401010007, -0.10803309082984924, 0.37558817863464355, 0.2580598294734955, -0.01883232779800892, 0.27122893929481506, 0.010658476501703262, 0.04978562891483307, 0.3500215709209442, -0.058189522475004196, 0.07723071426153183, -0.2832697629928589, -0.06705643981695175, 0.06544481962919235, -0.19666142761707306, 0.09187915176153183, 0.08827021718025208, 0.26826414465904236, -0.3009335994720459, 0.012061801739037037, 0.23619404435157776, 0.24880345165729523, -0.38841965794563293, 0.4268094301223755, 0.332979291677475, 0.10799677670001984, -0.2738385498523712, 0.1437000036239624, 0.06915576010942459, 0.03251759335398674, 0.3363838195800781, 0.3284303545951843, -0.20640575885772705, -0.053514137864112854, 0.23879015445709229, 0.2907277047634125, 0.2654663026332855, -0.2037932574748993, -0.09530778974294662, -0.4299341142177582, -0.060017768293619156, -0.13646911084651947, 0.2660791277885437, 0.06923126429319382, -0.3381116986274719, -0.03543950244784355, -0.2544593811035156, 0.36089611053466797, -0.040242139250040054, -0.13716870546340942, -0.08620280027389526, 0.23838940262794495, 0.05103649944067001, 0.0974309965968132, 0.4098975360393524, 0.013837728649377823, 0.7262344360351562, -0.13611407577991486, 0.1186344176530838, 0.1882125735282898, -0.2977132201194763, 0.08790834248065948, -0.11858787387609482, 0.5013244152069092, 0.14612510800361633, 0.10090170055627823, -0.08849284797906876, 0.14376595616340637, -0.049695421010255814, -0.02247241884469986, -0.04145701602101326, 0.09265632927417755, -0.18166583776474, 0.2602716386318207, -0.017368458211421967, 0.1124921590089798, 0.03779071941971779, 0.16008469462394714, 0.10744258761405945, -0.3511107563972473, 0.20310364663600922, -0.2857896685600281, 0.1149175763130188, -0.37667328119277954, 0.08597663044929504, -0.38000941276550293, -0.5219102501869202, -0.04286070913076401, -0.0033317701891064644, 0.27557438611984253, -0.06778659671545029, -0.13876569271087646, -0.035390302538871765, 0.006839536130428314, -0.42870408296585083, 0.08444785326719284, -0.03340250626206398, -0.08622457087039948, -0.2929503321647644, 0.07775384932756424, -0.13199187815189362, -0.3409883677959442, 0.1141664981842041, 0.0707249790430069, 0.1638273000717163, 0.09919564425945282, -0.38609108328819275, -0.17338550090789795, 0.24497583508491516, -0.015679683536291122, -0.1742708683013916, 0.12196999043226242, -0.21186433732509613, -0.1269935667514801, -0.22513505816459656, 0.3356427550315857, -0.10710565000772476, -0.25888773798942566, -0.11047928035259247, -0.06420237571001053, -0.30048537254333496, -0.20350010693073273, -0.20958882570266724, 0.12395001947879791, -0.06487492471933365, 0.028573203831911087, 0.08803527057170868, -0.24735881388187408, -0.46988025307655334, -0.1577855795621872, 0.05249883979558945, 0.29831093549728394, -0.6411359310150146, 0.1878296136856079, 0.09660646319389343, 0.12506301701068878, 0.7104572057723999, 0.6967789530754089, -0.16712366044521332, -0.03262898325920105, -0.3879942297935486, 0.28469324111938477, 0.14673511683940887, 0.007663622498512268, -0.38773810863494873, -0.024548228830099106, -0.17620642483234406, 0.23248226940631866, 0.02293519675731659, 0.022380955517292023, 0.018865853548049927, -0.2826923131942749, 0.06571878492832184, 0.28817832469940186, 0.02688100002706051, 0.26693299412727356, -0.576174259185791, -0.23646967113018036, 0.29216402769088745, 0.0913086086511612, -0.26252448558807373, -0.12019114941358566, 0.0161573588848114, -0.7469809055328369, 0.25544026494026184, -0.18025024235248566, -0.14606498181819916, -0.06591671705245972, 0.3345068693161011, -0.033171720802783966, 0.24377956986427307, 0.3279740810394287, -0.1855703890323639, 0.17636340856552124, -0.06219981983304024, 0.24936111271381378, -0.15207909047603607, -0.1441018134355545, -0.2665313482284546, 0.2358061820268631, -0.2443416565656662, -0.014377005398273468, -0.1278165578842163, 0.08333595097064972, 0.16371670365333557, 0.18320688605308533, 0.20131362974643707, 0.1832103580236435, -0.1371384710073471, 0.2775964140892029, -0.11412206292152405, 0.18307697772979736, -0.030765259638428688, -0.1974237710237503, -0.10268639028072357, 0.0016342401504516602, 0.030746452510356903, -0.061158183962106705, -0.2594418227672577, 0.19029948115348816, 0.003972790203988552, 0.3527718782424927, -0.10194971412420273, 0.04644829034805298, 0.2505791485309601, -0.32303160429000854, 0.18540410697460175, 0.0743035227060318, 0.20305757224559784, 0.005135476589202881, -0.2225072681903839, 0.3833765983581543, 0.21189779043197632, 0.4105006754398346, -0.18810930848121643, -0.22188089787960052, -0.08236978203058243, 0.06265810132026672, 0.08975512534379959, 0.2874106168746948, 0.11723054945468903, 0.22796162962913513, 0.23327650129795074, 0.36865007877349854, -0.19250452518463135, 0.39281806349754333, 0.7306654453277588, -0.0817205160856247, -0.3410884737968445, 0.3278631269931793, -0.17702028155326843, -0.31883782148361206, 0.3257721960544586, 0.29056304693222046, 0.3723825216293335, 0.19686056673526764, 0.3376907706260681, 0.1938045620918274, -0.2662433683872223, -0.23689152300357819, 0.2245527058839798, 0.16634219884872437, 0.6033501029014587, -0.18122243881225586, 0.3956061899662018, 0.06756641715765, -0.4160597622394562, -0.2668680250644684, -0.16140033304691315, 0.21942439675331116, -0.1931931972503662, 0.29948341846466064, -0.4403805136680603, -0.28318876028060913, -0.24141156673431396, -0.013803833164274693, 0.15730762481689453, -0.37803950905799866, -0.04401184618473053, -0.0741303563117981, -0.04398166760802269, -0.03862805664539337, -0.03580324351787567, 0.08731050789356232, -0.11164304614067078, -0.27461227774620056, -0.5815805196762085, -0.12691858410835266, -0.4503917098045349, -0.07791264355182648, 0.29578152298927307, 0.15641433000564575, 0.0006976928561925888, -0.1825234442949295, 0.13091276586055756, -0.08622656017541885, -0.45210111141204834, 0.1109309047460556, -0.08293557167053223, 0.17693425714969635, -0.08966369926929474, -0.3244631886482239, -0.40945184230804443, -0.15053564310073853, 0.3300827741622925, -0.14428868889808655, -0.3430241048336029, -0.0812082588672638, -0.2552875578403473, -0.01770324446260929, 0.03430640324950218, 0.13438846170902252, -0.15575097501277924, 0.03325134888291359, 0.29198047518730164, -0.06931222975254059, 0.2659760117530823, 0.25145435333251953, 0.20260967314243317, 0.20982855558395386, -0.2430732399225235, -0.013480853289365768, -0.0591951422393322, -0.2215975821018219, 0.48489782214164734, 0.04365743696689606, -0.1837342530488968, -0.27377939224243164, -0.13550832867622375, -0.022871222347021103, 0.2779339551925659, -0.36851710081100464, -0.07887832820415497, -0.5749785304069519, 0.5164797902107239, 0.09885335713624954, -0.14602993428707123, 0.34380871057510376, 0.06741359084844589, -0.0016231406480073929, 0.0582955926656723, -0.22922563552856445, -0.15491533279418945, -0.23222258687019348, 0.18654096126556396, 0.153741717338562, 0.0912007987499237, 0.07410159707069397, 0.5885471701622009, -0.003637496381998062, -0.2420424073934555, -0.055045463144779205, -0.45405644178390503, 0.0797143206000328, -0.4828236401081085, -0.16672389209270477, 0.35539373755455017, -0.18622753024101257, -0.0923284962773323, 0.24733403325080872, 0.06792552769184113, -0.424822062253952, 0.12685300409793854, 0.028037965297698975, -0.2962314188480377, -0.365832656621933, 0.21305632591247559, 0.4547147750854492, -0.15272870659828186, 0.14218837022781372, 0.22806671261787415, 0.04550161585211754, -0.2396920919418335, 0.19502969086170197, 0.05617093667387962, -0.19187727570533752, -0.19107240438461304, -0.06819543242454529, 0.02211049385368824, -0.625324547290802, 0.3202587366104126, 0.36009839177131653, 0.2158554345369339, 0.21190796792507172, -0.2547032833099365, 0.523555338382721, -0.12294077128171921, 0.5664094090461731, 0.29042765498161316, 0.016358664259314537, 0.0259002186357975, -0.14317825436592102, -0.3146696388721466, -0.000225849449634552, -0.1824687123298645, -0.02359485626220703, 0.1862676739692688, 0.03910943493247032, -0.03617619723081589, -0.1835370659828186, 0.18161433935165405, 0.3459884226322174, 0.21307668089866638, 0.0199473537504673, -0.20836244523525238, -0.4170951545238495, 0.16164882481098175, 0.10723717510700226, -0.08843685686588287, 0.2202518731355667, 0.01718926429748535, -0.23283639550209045, -0.17590513825416565, -0.14695405960083008, -0.1038060337305069, 0.29971927404403687, 0.2693363130092621, -0.044369831681251526, 0.3674578368663788, 0.11964234709739685, 0.05682048946619034, 0.32304590940475464, 0.40327325463294983, 0.012518735602498055, -0.562789797782898, -0.15536659955978394, -0.015236019156873226, 0.2950616776943207, 0.4421974718570709, -0.18160198628902435, 0.003972359001636505, -0.333849161863327, 0.03668881207704544, 0.12467408180236816, -0.1437063217163086, 0.08869878947734833, 0.3012335002422333, 0.10357850044965744, 0.06650334596633911, 0.42716243863105774, 0.4373154938220978, -0.16150954365730286, 0.3648993968963623, 0.25213780999183655, -0.05354131758213043, 0.32086116075515747, 0.1469838172197342, 0.8835139274597168, -0.18800483644008636, -0.007957424968481064, 0.5682093501091003, -0.4157874584197998, 0.21413421630859375, 0.32714909315109253, 0.10510221123695374, -0.3600025177001953, -0.24336139857769012, 0.200921893119812, -0.21633905172348022, -0.10492242127656937, -0.38351619243621826, -0.0225296001881361, -0.04563039168715477, 0.13212935626506805, -0.015738528221845627, 0.15790511667728424, -0.09908749163150787, 0.04485848546028137, -0.37873971462249756, -0.09166741371154785, -0.03576013445854187, 0.0882311761379242, 0.22972732782363892, 0.02655768021941185, 0.03965957462787628, -0.5005596280097961, -0.07107949256896973, -0.1675146073102951, 0.25544098019599915, -0.441488116979599, -0.2230973243713379, 0.4169318675994873, -0.5458143949508667, 0.29289132356643677, 0.17184223234653473, -0.0947251170873642, -0.13150563836097717, -0.17815527319908142, 0.17857126891613007, 0.43909627199172974, 0.3832249045372009, 0.4225921034812927, -0.5454451441764832, 0.059189245104789734, 0.11398879438638687, 0.1133410856127739, -0.2779323160648346, -0.28031206130981445, -0.28266963362693787, 0.09978939592838287, 0.27171146869659424, 0.12475931644439697, 0.12742726504802704, 0.10074654221534729, 0.03642375022172928, 0.17813877761363983, -0.19271576404571533, -0.02225939929485321, 0.08679770678281784, 0.18455840647220612, 0.37753188610076904, 0.11363206803798676, -0.5359734892845154, 0.13270315527915955, 0.2442350685596466, 0.13886435329914093, 0.10577446222305298, 0.3812943994998932, 0.05353836342692375, -0.28199654817581177, 0.0544719398021698, 0.2885899543762207, 0.2042783796787262, -0.7464233040809631, 0.08188586682081223, -0.26200175285339355, 0.12842153012752533, 0.1385614573955536, 0.40255510807037354, 0.0006640888750553131, -0.15604844689369202, -0.41731634736061096, -0.19150622189044952, -0.045262470841407776, 0.035939160734415054, -0.08644375205039978, -0.023745890706777573, -0.17954301834106445, 0.30209165811538696, 0.13182315230369568, -0.2719608247280121, -0.1381029486656189, 0.1812504529953003, 0.06363195180892944, 0.14174523949623108, -0.24243545532226562, -0.08079937845468521, 0.25545841455459595, 0.03810853138566017, -0.09941999614238739, 0.45224815607070923, 0.07513366639614105, -0.05536135286092758, 0.04010377451777458, 0.14433984458446503, -0.026302948594093323, -0.30224090814590454, -0.039811767637729645, 0.11369143426418304, -0.09518404304981232, -0.2791147232055664, 0.04628639295697212, 0.11467064172029495, -0.03135066479444504, -0.24847227334976196, 0.4306114912033081, -0.0736515000462532, -0.03466268256306648, 0.15677933394908905, -0.16897723078727722, 0.3673287034034729, -0.06744719296693802, 0.0844169557094574, -0.1361532211303711, -0.08207844942808151, 0.6328789591789246, 0.08161985874176025, 0.07765386253595352, 0.20395058393478394, 0.0653575137257576, -0.2838011384010315, 0.0559452585875988, -0.14203540980815887, 0.2377515733242035, 0.3343789577484131, -0.01349218562245369, -0.38588693737983704, 0.44057899713516235, -0.04992230236530304, -0.19563131034374237, -0.13506904244422913, 0.07585431635379791, 0.31254100799560547, 0.07649126648902893, 0.18469548225402832, 0.04163062945008278, 0.24000370502471924, 0.02419302985072136, -0.23273497819900513, 0.3231563866138458, 0.16026689112186432, -0.23121806979179382, 0.2877924144268036, -0.11832673847675323, 0.19164662063121796, 0.4817469120025635, -0.020112350583076477, 0.033849067986011505, 0.37885451316833496, -0.13899224996566772, 0.40413740277290344, 0.035414502024650574, 0.30740880966186523, -0.06801962107419968, -0.2548859715461731, -0.05608220025897026, 0.3819606304168701, 0.12918482720851898, -0.082330621778965, 0.2214478999376297, 0.7042402029037476, 0.21834403276443481, -0.29396283626556396, 0.014725791290402412, 0.23144540190696716, -0.014222335070371628, -0.16509383916854858, -0.2417539805173874, -0.019988663494586945, -0.26605165004730225, 0.1351529359817505, -0.33124664425849915, 0.0051648616790771484, 0.4407864511013031, 0.027612555772066116, 0.09789476543664932, -0.1813487410545349, -0.1750999093055725, -0.07029957324266434, 0.31406331062316895, -0.16234835982322693, 0.28664541244506836, -0.2489510327577591, 0.04666393995285034, -0.03031780943274498, 0.29282933473587036, 0.30904620885849, 0.1948784738779068, -0.06119156256318092, -0.1979176253080368, -0.30940863490104675, 0.10267481207847595, 0.1459638625383377, 0.04885755479335785, 0.20939111709594727, -0.18804675340652466, 0.421415776014328, -0.13007114827632904, -0.0892137810587883, 0.050235405564308167, 0.11912401020526886, 0.17761056125164032, -0.24882309138774872, -0.18315556645393372, -0.2531052827835083, -0.18130722641944885, -0.2151688188314438, 0.017539970576763153, -0.03690345212817192, -0.05513022094964981, 0.039363399147987366, -0.4487747550010681, -0.0882534459233284, 0.15406867861747742, -0.004454625770449638, 0.19244234263896942, 0.6533884406089783, 0.4547715187072754, 0.5476544499397278, -0.1000361368060112, -0.385627806186676, -0.29149967432022095, 0.06689784675836563, -0.28981488943099976, 0.03568190336227417, 0.008771387860178947, 0.22350281476974487, 0.05926487222313881, 0.3678390383720398, 0.3675462007522583, 0.2934195101261139, 0.17376405000686646, 0.16801853477954865, -0.26820698380470276, -0.15933464467525482, 0.05829206481575966, -0.5280165672302246, -0.12020604312419891, -0.4238576292991638, 0.37726470828056335, -0.48956331610679626, -0.0882675051689148, 0.12498658150434494, -0.10774437338113785, -0.041744060814380646, -0.07465364038944244, 0.4900476634502411, 0.17400811612606049, 0.06765641272068024, 0.1742265224456787, 0.03431866317987442, -0.022010963410139084, 0.07949866354465485, -0.026597995311021805, 0.4106352925300598, 0.00675402395427227, 0.07637816667556763, 0.015744931995868683, 0.09981091320514679, 0.04469833895564079, 0.21505579352378845, 0.22661404311656952, -0.016883986070752144, -0.15915246307849884, 0.18623478710651398, -0.27350422739982605, 0.10660866647958755, -0.19334061443805695, 0.15046535432338715, 0.042087189853191376, 0.05776723474264145, -0.32841038703918457, -0.33302998542785645, 0.6971243619918823, -0.36791741847991943, -0.07547509670257568, -0.12061689794063568, -0.11618328094482422, 0.3330647349357605, -0.19745026528835297, -0.16070759296417236, -0.3774951696395874, 0.050726693123579025, 0.06016015633940697, -0.05741087347269058, 0.11712324619293213, 0.014104542322456837, 0.0028438642621040344, -0.20848560333251953, 0.5350767374038696, 0.015048936009407043, -0.028437156230211258, -0.18159852921962738, -0.142146036028862 ]
https://github.com/huggingface/datasets/issues/5475
Dataset scan time is much slower than using native arrow
This code snippet shows `datasets` code that reads the Arrow data as python objects already, there is no need to add to_pylist. Or were you thinking about something else ?
### Describe the bug I'm basically running the same scanning experiment from the tutorials https://huggingface.co/course/chapter5/4?fw=pt except now I'm comparing to a native pyarrow version. I'm finding that the native pyarrow approach is much faster (2 orders of magnitude). Is there something I'm missing that explains this phenomenon? ### Steps to reproduce the bug https://colab.research.google.com/drive/11EtHDaGAf1DKCpvYnAPJUW-LFfAcDzHY?usp=sharing ### Expected behavior I expect scan times to be on par with using pyarrow directly. ### Environment info standard colab environment
30
Dataset scan time is much slower than using native arrow ### Describe the bug I'm basically running the same scanning experiment from the tutorials https://huggingface.co/course/chapter5/4?fw=pt except now I'm comparing to a native pyarrow version. I'm finding that the native pyarrow approach is much faster (2 orders of magnitude). Is there something I'm missing that explains this phenomenon? ### Steps to reproduce the bug https://colab.research.google.com/drive/11EtHDaGAf1DKCpvYnAPJUW-LFfAcDzHY?usp=sharing ### Expected behavior I expect scan times to be on par with using pyarrow directly. ### Environment info standard colab environment This code snippet shows `datasets` code that reads the Arrow data as python objects already, there is no need to add to_pylist. Or were you thinking about something else ?
[ -0.38163304328918457, -0.0933663621544838, 0.008570600301027298, 0.21819207072257996, -0.28830546140670776, -0.22848907113075256, 0.31598421931266785, 0.20896384119987488, -0.38744136691093445, 0.24748244881629944, -0.169625386595726, 0.6856090426445007, -0.14588171243667603, 0.0061418358236551285, -0.022581227123737335, 0.04605131596326828, 0.23807615041732788, 0.21835839748382568, 0.19299930334091187, -0.10446472465991974, -0.11307745426893234, -0.04172859340906143, -0.47185903787612915, -0.11123283207416534, -0.34593328833580017, 0.1304413229227066, -0.20097960531711578, 0.1088118851184845, -0.3037683665752411, -0.27690738439559937, 0.38326773047447205, -0.13585105538368225, -0.09872560948133469, 0.5588250160217285, -0.00012667915143538266, -0.07899466902017593, 0.33479803800582886, 0.21895954012870789, 0.06550756096839905, 0.30383262038230896, 0.00980570912361145, -0.05650965869426727, 0.31606152653694153, -0.08969908952713013, 0.04417310655117035, -0.30722057819366455, -0.018755679950118065, 0.11536362767219543, -0.17491145431995392, 0.12515310943126678, 0.1016576737165451, 0.307035893201828, -0.2082747370004654, 0.0865156427025795, 0.3041987121105194, 0.15557536482810974, -0.40301331877708435, 0.4978427588939667, 0.3435896635055542, 0.09929010272026062, -0.2735263705253601, 0.16586732864379883, 0.1000032126903534, 0.13328999280929565, 0.31973251700401306, 0.3762279450893402, -0.24769097566604614, -0.057290203869342804, 0.2006944715976715, 0.27334871888160706, 0.2670964300632477, -0.19351384043693542, -0.029651867225766182, -0.3685033917427063, -0.11436954885721207, -0.16281576454639435, 0.3284203112125397, 0.14258751273155212, -0.3439828157424927, -0.04009132459759712, -0.14687038958072662, 0.4084749221801758, -0.07775969803333282, -0.127471461892128, -0.035770483314991, 0.2995698153972626, 0.1104162186384201, 0.09632666409015656, 0.3737606704235077, 0.06189084053039551, 0.80344158411026, -0.06172069162130356, 0.06951867043972015, 0.24284322559833527, -0.34796056151390076, 0.06091047823429108, -0.06410077959299088, 0.42720547318458557, 0.11971109360456467, 0.1186857521533966, 0.026837099343538284, 0.19795730710029602, 0.03321696072816849, -0.028481237590312958, -0.05796600505709648, 0.10286621749401093, -0.21740958094596863, 0.2948330342769623, -0.0037939883768558502, 0.11210232973098755, -0.07490295171737671, 0.16572830080986023, 0.09155117720365524, -0.24810993671417236, 0.30016982555389404, -0.31289008259773254, 0.1477229744195938, -0.35141757130622864, 0.18553714454174042, -0.3236449360847473, -0.5487513542175293, -0.15407593548297882, 0.006922350265085697, 0.336019366979599, -0.11187436431646347, -0.13928577303886414, -0.12083803117275238, -0.1341826319694519, -0.3699716627597809, 0.0169786736369133, -0.05911076441407204, -0.08094602823257446, -0.21728022396564484, 0.04123794287443161, -0.05402461439371109, -0.300006240606308, 0.20195232331752777, -0.07735539227724075, 0.16559505462646484, 0.0958481878042221, -0.26483187079429626, -0.2552121877670288, 0.2548297643661499, 0.006021279841661453, -0.15990862250328064, 0.08341456949710846, -0.32333865761756897, -0.04093163087964058, -0.19277895987033844, 0.32924556732177734, -0.14541074633598328, -0.4013298451900482, -0.18162797391414642, -0.03949716314673424, -0.2868414521217346, -0.12156203389167786, -0.1001448854804039, 0.09850870072841644, -0.14812391996383667, -0.021481603384017944, 0.07129204273223877, -0.11154954135417938, -0.4487510323524475, -0.2465149462223053, 0.08981358259916306, 0.19243454933166504, -0.597312331199646, 0.299493670463562, 0.11541492491960526, 0.20590713620185852, 0.7074379920959473, 0.6749352216720581, -0.17465034127235413, 0.0023691728711128235, -0.32537606358528137, 0.30493175983428955, 0.11787477135658264, -0.06097479164600372, -0.5193807482719421, -0.08922739326953888, -0.06245730444788933, 0.22335954010486603, 0.13443759083747864, 0.07548625022172928, 0.04333830624818802, -0.2676986753940582, 0.05141786113381386, 0.3004761338233948, 0.05423629283905029, 0.22308829426765442, -0.5910385251045227, -0.2687489986419678, 0.25143587589263916, 0.14643554389476776, -0.25068798661231995, -0.23161688446998596, -0.00959903746843338, -0.7523368000984192, 0.28133276104927063, -0.11401441693305969, -0.20697011053562164, -0.021727770566940308, 0.4057593047618866, -0.11224812269210815, 0.3157102167606354, 0.2945360541343689, -0.23391324281692505, 0.2334616780281067, -0.124301016330719, 0.21695569157600403, -0.13312773406505585, -0.10531817376613617, -0.2467179000377655, 0.2145068347454071, -0.2321862429380417, -0.055499982088804245, -0.09077954292297363, 0.015277683734893799, 0.21529842913150787, 0.23905469477176666, 0.13327763974666595, 0.1777847558259964, -0.11483815312385559, 0.2005893737077713, -0.020830031484365463, 0.3015629053115845, -0.0998910591006279, -0.27580738067626953, -0.15319743752479553, -0.033520542085170746, -0.007573574781417847, -0.07749642431735992, -0.22312623262405396, 0.15432819724082947, -0.0340818427503109, 0.22640778124332428, -0.12826141715049744, 0.05476498603820801, 0.24374279379844666, -0.4176178276538849, 0.1326090693473816, 0.10698497295379639, 0.253095418214798, 0.016141675412654877, -0.14851415157318115, 0.3436993956565857, 0.21397720277309418, 0.33033230900764465, -0.14006417989730835, -0.2733968496322632, -0.08248836547136307, 0.0017620846629142761, 0.12964893877506256, 0.3224925398826599, 0.2140687108039856, 0.18081046640872955, 0.19546984136104584, 0.3325606882572174, -0.2163640260696411, 0.34130048751831055, 0.7995511293411255, -0.0023481175303459167, -0.26162266731262207, 0.2256176769733429, -0.1510252058506012, -0.27133697271347046, 0.39319324493408203, 0.29157519340515137, 0.2930329442024231, 0.18901363015174866, 0.22758108377456665, 0.12891052663326263, -0.2402162253856659, -0.17396005988121033, 0.20721858739852905, 0.15706196427345276, 0.5829975605010986, -0.09873054176568985, 0.38764840364456177, 0.06775999069213867, -0.4116091728210449, -0.3227465748786926, -0.17005766928195953, 0.19829531013965607, -0.08056560158729553, 0.24597103893756866, -0.3019249141216278, -0.2269013524055481, -0.18263354897499084, -0.15236033499240875, 0.14315365254878998, -0.27914339303970337, 0.0035623200237751007, -0.11560171842575073, -0.06896838545799255, -0.024545757099986076, -0.07420562952756882, 0.1492328941822052, -0.1140986755490303, -0.22915323078632355, -0.5352949500083923, -0.08088930696249008, -0.4062647521495819, -0.050432488322257996, 0.24778546392917633, 0.16772031784057617, 0.0015031136572360992, -0.16511699557304382, 0.12551796436309814, 0.011370090767741203, -0.4163266122341156, 0.15148331224918365, -0.07219497859477997, 0.1949315369129181, -0.14259697496891022, -0.3437157869338989, -0.49409836530685425, -0.24159763753414154, 0.3031576871871948, -0.23905886709690094, -0.351685106754303, -0.10764309018850327, -0.19756914675235748, 0.003947388846427202, 0.0013155415654182434, 0.05612778663635254, -0.22193865478038788, -0.021326608955860138, 0.23281380534172058, 0.0399274043738842, 0.320045530796051, 0.20370745658874512, 0.1670875996351242, 0.24435460567474365, -0.2248462736606598, 0.026987135410308838, -0.0006917170248925686, -0.18079671263694763, 0.48708289861679077, 0.0123995840549469, -0.1921321302652359, -0.20834778249263763, -0.22768360376358032, 0.003200128674507141, 0.21114765107631683, -0.3621586561203003, -0.13759669661521912, -0.5523408651351929, 0.510392427444458, 0.052641093730926514, -0.14414654672145844, 0.26486313343048096, 0.06204120069742203, 0.0022129323333501816, 0.011596407741308212, -0.16707809269428253, -0.17293351888656616, -0.19495153427124023, 0.20702701807022095, 0.19260114431381226, 0.026689447462558746, 0.046058233827352524, 0.6752299666404724, -0.06521531194448471, -0.11936625838279724, -0.03490552306175232, -0.4321763515472412, 0.022521186619997025, -0.4297700822353363, -0.1650809496641159, 0.3045031428337097, -0.10295674204826355, -0.13917753100395203, 0.19943729043006897, 0.086331807076931, -0.42314115166664124, 0.11211173236370087, 0.010755743831396103, -0.271942675113678, -0.3240267038345337, 0.20129939913749695, 0.5250962972640991, -0.09701605886220932, 0.11490240693092346, 0.18104922771453857, 0.05752694234251976, -0.2587739825248718, 0.18785135447978973, -0.024889573454856873, -0.23653969168663025, -0.26499316096305847, -0.025981934741139412, -0.041384730488061905, -0.7179378271102905, 0.2927440404891968, 0.38132938742637634, 0.1996522694826126, 0.2830188274383545, -0.2713545858860016, 0.4946324825286865, -0.17425000667572021, 0.49176275730133057, 0.2284260243177414, 0.054053157567977905, -0.005961203947663307, -0.12645351886749268, -0.2937154471874237, -0.023533768951892853, -0.18694084882736206, -0.04344069957733154, 0.11487475037574768, -0.18699926137924194, -0.02375715970993042, -0.1297743320465088, 0.28883910179138184, 0.3335248827934265, 0.1765679568052292, 0.016796071082353592, -0.2787010669708252, -0.42742976546287537, 0.13414645195007324, 0.020048335194587708, -0.058547236025333405, 0.2097221314907074, 0.1190817728638649, -0.1267552375793457, -0.18249164521694183, -0.16224145889282227, -0.15693049132823944, 0.2999931275844574, 0.3453785479068756, -0.041284408420324326, 0.4329257607460022, 0.11563730984926224, 0.07027120143175125, 0.27159789204597473, 0.44555091857910156, 0.027862003073096275, -0.6085302233695984, -0.21772366762161255, 0.0026661548763513565, 0.27332207560539246, 0.3821679353713989, -0.2001495659351349, 0.10657467693090439, -0.3135625123977661, 0.004876479506492615, 0.18800698220729828, -0.15629327297210693, 0.0585235133767128, 0.24550163745880127, 0.09306614845991135, 0.05771414935588837, 0.3697661757469177, 0.42914697527885437, -0.1770121157169342, 0.3988434076309204, 0.14614689350128174, -0.007104761898517609, 0.33655881881713867, 0.08141856640577316, 0.8222092986106873, -0.12671956419944763, -0.026379060000181198, 0.5626416802406311, -0.4291382431983948, 0.10197792202234268, 0.30131494998931885, 0.12215016782283783, -0.331506609916687, -0.30260175466537476, 0.17535410821437836, -0.1969059407711029, -0.18344444036483765, -0.43083035945892334, -0.05293966457247734, -0.05456003546714783, 0.21571023762226105, -0.030801285058259964, 0.04123635217547417, -0.10242633521556854, 0.0902818962931633, -0.2848041355609894, -0.06267058849334717, -0.04590591788291931, 0.0911681056022644, 0.20493122935295105, 0.03358596935868263, 0.04368738457560539, -0.4428573548793793, -0.17456133663654327, -0.23761631548404694, 0.16786900162696838, -0.43488818407058716, -0.17703299224376678, 0.44740620255470276, -0.5864554643630981, 0.207522913813591, 0.08724420517683029, -0.2188248485326767, -0.09838710725307465, -0.17846016585826874, 0.19901345670223236, 0.44623246788978577, 0.27551940083503723, 0.3596782386302948, -0.4752054214477539, 0.11430124938488007, 0.05007492005825043, 0.05756934732198715, -0.14533725380897522, -0.3378552496433258, -0.3486022353172302, 0.11790138483047485, 0.4275399446487427, 0.16489249467849731, 0.21152573823928833, 0.12452751398086548, 0.06383810937404633, 0.08791191875934601, -0.21961672604084015, 0.01083811093121767, 0.11624142527580261, 0.1751335859298706, 0.34112074971199036, 0.12649890780448914, -0.5429446697235107, 0.08230659365653992, 0.19523325562477112, 0.28925183415412903, 0.14707402884960175, 0.39500707387924194, 0.03627324476838112, -0.1886662393808365, 0.0024385452270507812, 0.2858593463897705, 0.2159363180398941, -0.7847983837127686, 0.06038759648799896, -0.23801741003990173, 0.11682243645191193, 0.1545097678899765, 0.48711684346199036, 0.09769046306610107, -0.15358448028564453, -0.4668563902378082, -0.18211449682712555, -0.11671638488769531, 0.12219282984733582, -0.03284663334488869, -0.01880631223320961, -0.2720930874347687, 0.2154533565044403, 0.11191815137863159, -0.24324288964271545, -0.16986249387264252, 0.1825084090232849, -0.010658890008926392, 0.08826471865177155, -0.35809651017189026, -0.021592378616333008, 0.3160555064678192, 0.06614713370800018, -0.06898453831672668, 0.4174119234085083, 0.008369927294552326, -0.08421118557453156, 0.10904265940189362, 0.1354827582836151, -0.0726330354809761, -0.30206796526908875, -0.15669478476047516, 0.05397966504096985, -0.12118856608867645, -0.20562197268009186, -0.012048655189573765, 0.029698967933654785, 0.03716312721371651, -0.2273188680410385, 0.4404509961605072, -0.04769541323184967, -0.10809788107872009, 0.1961977183818817, -0.18396300077438354, 0.39386993646621704, 0.006423428189009428, 0.05470163747668266, -0.11268638074398041, -0.07643218338489532, 0.6922709941864014, -0.018696121871471405, -0.0024387985467910767, 0.15250885486602783, 0.09744514524936676, -0.3182627558708191, 0.04340217635035515, -0.15552356839179993, 0.23659959435462952, 0.36091214418411255, -0.018030956387519836, -0.3715507686138153, 0.4303560256958008, 0.013053187169134617, -0.22721444070339203, -0.12651877105236053, 0.10326078534126282, 0.32401517033576965, 0.18863815069198608, 0.18340028822422028, 0.09971266984939575, 0.25472763180732727, -0.02010340988636017, -0.15526211261749268, 0.3198184669017792, 0.22997629642486572, -0.22693566977977753, 0.24158607423305511, -0.10205458104610443, 0.17934639751911163, 0.3937055170536041, -0.011659923940896988, 0.09670320898294449, 0.40620237588882446, -0.14208897948265076, 0.41764920949935913, 0.05171159654855728, 0.28639981150627136, -0.06880710273981094, -0.2326856553554535, -0.04861697927117348, 0.31990599632263184, 0.10217496007680893, -0.06128690391778946, 0.19218231737613678, 0.631417989730835, 0.2814020812511444, -0.2589067816734314, -0.01287924312055111, 0.14051826298236847, 0.031680744141340256, -0.07407745718955994, -0.17169341444969177, -0.04971254989504814, -0.19725114107131958, 0.13976286351680756, -0.2248058021068573, 0.029408853501081467, 0.454365611076355, 0.04247256740927696, 0.026757068932056427, -0.09443065524101257, -0.028736576437950134, -0.004436768591403961, 0.3429250419139862, -0.11819170415401459, 0.307915598154068, -0.22326453030109406, 0.046692922711372375, -0.051103148609399796, 0.25874289870262146, 0.2645484209060669, 0.19285251200199127, -0.11343163251876831, -0.2192668914794922, -0.3334099352359772, 0.10903288424015045, 0.005463490262627602, 0.11654052138328552, 0.2506713271141052, -0.21134909987449646, 0.3898572027683258, -0.12021876871585846, -0.13656620681285858, 0.11249813437461853, 0.14386989176273346, 0.1311340034008026, -0.24684423208236694, -0.24559727311134338, -0.30194294452667236, -0.214784175157547, -0.20795966684818268, 0.04552163928747177, -0.060997191816568375, -0.12747067213058472, 0.003232065588235855, -0.4218383729457855, -0.11379653215408325, 0.13790501654148102, 0.005503382533788681, 0.05157480388879776, 0.7105335593223572, 0.4507654011249542, 0.6636115312576294, -0.09852451086044312, -0.42132848501205444, -0.26671427488327026, 0.11918486654758453, -0.3710261285305023, -0.00015229545533657074, 0.05795188993215561, 0.28656813502311707, 0.057214513421058655, 0.3696538209915161, 0.4303378462791443, 0.34845978021621704, 0.10008630901575089, 0.16106310486793518, -0.4237138330936432, -0.17361225187778473, 0.07053949683904648, -0.48929232358932495, -0.10875429213047028, -0.44677579402923584, 0.3232249617576599, -0.5464211106300354, -0.07599372416734695, 0.12273620069026947, -0.23414163291454315, -0.02806399203836918, 0.01072770357131958, 0.5841579437255859, 0.10080903023481369, 0.08464167267084122, 0.15268632769584656, 0.047025054693222046, -0.01877497509121895, 0.04020218923687935, -0.01961943507194519, 0.3495626151561737, 0.0833355188369751, 0.023041941225528717, 0.009188413619995117, 0.12121210992336273, 0.10706876963376999, 0.24346274137496948, 0.21220780909061432, 0.0964721143245697, -0.07056557387113571, 0.15314623713493347, -0.2012060582637787, 0.12033776193857193, -0.22162586450576782, 0.09386244416236877, -0.02747321128845215, -0.027709798887372017, -0.31815096735954285, -0.3187279999256134, 0.7216064929962158, -0.31323909759521484, -0.005916837602853775, -0.20543375611305237, -0.1276441365480423, 0.2494955062866211, -0.10061315447092056, -0.23094001412391663, -0.3746918737888336, 0.0956636369228363, 0.11236049234867096, -0.10787667334079742, 0.07088077813386917, 0.06852947175502777, 0.06942501664161682, -0.16277195513248444, 0.5642715692520142, -0.05622678995132446, -0.0500791110098362, -0.20377801358699799, -0.05539758503437042 ]
https://github.com/huggingface/datasets/issues/5474
Column project operation on `datasets.Dataset`
Hi ! This would be a nice addition indeed :) This sounds like a duplicate of https://github.com/huggingface/datasets/issues/5468 > Not sure. Some of my PRs are still open and some do not have any discussions. Sorry to hear that, feel free to ping me on those PRs
### Feature request There is no operation to select a subset of columns of original dataset. Expected API follows. ```python a = Dataset.from_dict({ 'int': [0, 1, 2] 'char': ['a', 'b', 'c'], 'none': [None] * 3, }) b = a.project('int', 'char') # usually, .select() print(a.column_names) # stdout: ['int', 'char', 'none'] print(b.column_names) # stdout: ['int', 'char'] ``` Method project can easily accept not only column names (as a `str)` but univariant function applied to corresponding column as an example. Or keyword arguments can be used in order to rename columns in advance (see `pandas`, `pyspark`, `pyarrow`, and SQL).. ### Motivation Projection is a typical operation in every data processing library. And it is a basic block of a well-known data manipulation language like SQL. Without this operation `datasets.Dataset` interface is not complete. ### Your contribution Not sure. Some of my PRs are still open and some do not have any discussions.
46
Column project operation on `datasets.Dataset` ### Feature request There is no operation to select a subset of columns of original dataset. Expected API follows. ```python a = Dataset.from_dict({ 'int': [0, 1, 2] 'char': ['a', 'b', 'c'], 'none': [None] * 3, }) b = a.project('int', 'char') # usually, .select() print(a.column_names) # stdout: ['int', 'char', 'none'] print(b.column_names) # stdout: ['int', 'char'] ``` Method project can easily accept not only column names (as a `str)` but univariant function applied to corresponding column as an example. Or keyword arguments can be used in order to rename columns in advance (see `pandas`, `pyspark`, `pyarrow`, and SQL).. ### Motivation Projection is a typical operation in every data processing library. And it is a basic block of a well-known data manipulation language like SQL. Without this operation `datasets.Dataset` interface is not complete. ### Your contribution Not sure. Some of my PRs are still open and some do not have any discussions. Hi ! This would be a nice addition indeed :) This sounds like a duplicate of https://github.com/huggingface/datasets/issues/5468 > Not sure. Some of my PRs are still open and some do not have any discussions. Sorry to hear that, feel free to ping me on those PRs
[ -0.2232561856508255, 0.2531569004058838, -0.09896500408649445, -0.031019136309623718, 0.10474677383899689, -0.004755973815917969, 0.34300631284713745, 0.24483834207057953, -0.17446894943714142, 0.5412556529045105, -0.05183619260787964, 0.5907323360443115, 0.08229909092187881, 0.4840683341026306, 0.12149380892515182, -0.3607788681983948, -0.10447189956903458, 0.12158815562725067, -0.4821881949901581, 0.006140276789665222, -0.5064398050308228, 0.06578756123781204, -0.2800448536872864, 0.273867666721344, 0.04399140179157257, -0.03477043658494949, 0.00827031023800373, 0.012719575315713882, -0.2654089629650116, -0.09560958296060562, 0.2654138505458832, 0.03172147646546364, -0.08556505292654037, 0.33725690841674805, -0.00010249047772958875, -0.2894147038459778, 0.11409242451190948, 0.026480870321393013, -0.32291850447654724, -0.05475406348705292, 0.12460850924253464, -0.08028193563222885, 0.07617034763097763, -0.5250798463821411, -0.09929057210683823, -0.2007533758878708, -0.12080781161785126, -0.16022354364395142, 0.0687747374176979, 0.04454103112220764, 0.3347945809364319, 0.520241379737854, -0.16215942800045013, -0.16419260203838348, -0.02096528559923172, 0.11499713361263275, -0.2323439121246338, -0.1013832688331604, 0.23553049564361572, -0.08127924054861069, 0.2713196575641632, 0.310120165348053, -0.22936229407787323, -0.11570282280445099, 0.09790842235088348, 0.010664194822311401, -0.11139870434999466, -0.3516707420349121, 0.18499907851219177, 0.20316460728645325, 0.6744453310966492, -0.45111092925071716, -0.38034725189208984, -0.1883992850780487, 0.10482602566480637, -0.443621963262558, -0.13273733854293823, 0.14777643978595734, -0.1161460280418396, 0.1406656950712204, -0.1281912475824356, 0.0354434996843338, -0.07629771530628204, -0.1220729798078537, -0.09032003581523895, -0.005542002618312836, -0.10970162600278854, 0.1723305583000183, -0.1713004857301712, -0.04167409986257553, -0.10689865052700043, -0.24994924664497375, 0.2061149775981903, 0.2558981478214264, -0.5745444893836975, -0.27392181754112244, 0.08198155462741852, 0.04025619477033615, 0.0649566650390625, 0.15690290927886963, -0.07281486690044403, 0.20975062251091003, -0.019388779997825623, 0.11371976137161255, 0.339038223028183, 0.2330213487148285, 0.026647742837667465, 0.3074948191642761, 0.07405898720026016, 0.027108434587717056, 0.15714989602565765, 0.031766872853040695, 0.020619332790374756, 0.11510510742664337, -0.08808889985084534, -0.05381204932928085, 0.07540105283260345, -0.017344467341899872, -0.3509308397769928, 0.06973898410797119, 0.20649400353431702, -0.2098095417022705, -0.07894445955753326, 0.31258314847946167, 0.13100986182689667, 0.2028668224811554, -0.012086620554327965, -0.026680711656808853, -0.1503652036190033, -0.07771188020706177, -0.28536948561668396, 0.2162228375673294, -0.05158640816807747, -0.1393379420042038, -0.07471755146980286, 0.09352749586105347, 0.05035204440355301, -0.17111101746559143, 0.0018303394317626953, 0.293587863445282, 0.11301878094673157, -0.08895789086818695, 0.10682937502861023, 0.32492566108703613, -0.17164966464042664, 0.05664082616567612, 0.12269407510757446, 0.005303382873535156, -0.22431248426437378, 0.2409723699092865, 0.11286278069019318, -0.2786964476108551, -0.3507004976272583, 0.2580224275588989, -0.04078998416662216, 0.04280649125576019, -0.5374898910522461, 0.28725382685661316, -0.125714510679245, 0.0886961817741394, 0.18793714046478271, 0.02219231426715851, 0.002189803868532181, -0.19361992180347443, 0.24440529942512512, 0.1689579337835312, -0.3700554668903351, 0.029289737343788147, 0.1744067668914795, -0.27850010991096497, 0.013771481812000275, 0.12571802735328674, -0.12906557321548462, -0.010468319058418274, 0.06559944897890091, -0.18005917966365814, 0.27940139174461365, -0.09092161059379578, -0.19219297170639038, 0.11779621243476868, -0.2116047888994217, 0.007254233583807945, 0.13423137366771698, 0.0732075497508049, 0.19372200965881348, -0.13722603023052216, -0.15934734046459198, 0.22402459383010864, -0.026246914640069008, 0.08553024381399155, 0.026209045201539993, -0.363288938999176, 0.09380392730236053, 0.10579761862754822, 0.1840881109237671, 0.2709755003452301, -0.0012478083372116089, -0.34690985083580017, 0.30725792050361633, -0.24404841661453247, 0.21889625489711761, 0.14015179872512817, 0.27210700511932373, 0.033609673380851746, 0.1143188402056694, -0.6871902942657471, -0.33289068937301636, 0.16630655527114868, 0.07099871337413788, -0.051814235746860504, 0.08481328189373016, -0.355964720249176, -0.2715085446834564, 0.1820937693119049, 0.038837455213069916, -0.03856509551405907, 0.14793577790260315, -0.06913149356842041, 0.17615032196044922, -0.12822189927101135, -0.5379865169525146, 0.27395111322402954, -0.3802272081375122, -0.10345375537872314, -0.5156000852584839, 0.22855882346630096, 0.02536613494157791, -0.022753771394491196, -0.030522897839546204, 0.2412145435810089, 0.09195131063461304, -0.02913898415863514, 0.0949312373995781, 0.11047854274511337, 0.003669554367661476, -0.07662543654441833, 0.09866615384817123, 0.2406015396118164, 0.04278049245476723, 0.01642904058098793, 0.12097726762294769, -0.31663066148757935, 0.23920473456382751, 0.2918141782283783, -0.17261415719985962, 0.22417348623275757, -0.21691040694713593, 0.17911696434020996, 0.20494048297405243, 0.07649955153465271, 0.10213352739810944, -0.2120862603187561, -0.09388469159603119, -0.17204920947551727, -0.07140091061592102, 0.30518269538879395, -0.191916361451149, 0.15926218032836914, -0.5654960870742798, 0.19129061698913574, 0.3685719668865204, -0.27855706214904785, -0.04966527968645096, 0.1215805932879448, 0.07633005827665329, 0.20687583088874817, 0.003513539209961891, 0.22223304212093353, 0.2759695053100586, 0.25390389561653137, 0.14831987023353577, -0.042087264358997345, 0.07331414520740509, 0.09318970143795013, 0.22968615591526031, 0.20728182792663574, -0.08549624681472778, -0.0856938436627388, 0.0492299385368824, 0.18280118703842163, -0.1749831736087799, -0.04410840943455696, 0.10278185456991196, 0.06981772929430008, -0.07165679335594177, 0.05624343454837799, -0.19846615195274353, -0.20202979445457458, 0.011364591307938099, -0.17768160998821259, 0.23712186515331268, -0.3625383675098419, -0.048995308578014374, 0.17390194535255432, -0.3573586344718933, 0.31165626645088196, -0.1624390035867691, 0.06005173921585083, -0.1218547597527504, -0.16178905963897705, -0.1411849409341812, -0.23456738889217377, 0.09451398253440857, 0.2202519327402115, -0.023886654525995255, 0.3328137695789337, 0.3423827588558197, -0.017634570598602295, -0.06097650155425072, -0.6106204390525818, -0.2805134952068329, 0.1603470742702484, -0.3639671802520752, 0.3254246413707733, 0.3109140694141388, 0.0466788187623024, -0.04226935654878616, -0.10446248948574066, 0.02630736120045185, 0.0012265536934137344, -0.23741482198238373, -0.09712035953998566, 0.13578754663467407, -0.13192009925842285, -0.1574794203042984, -0.3206906020641327, -0.2634582221508026, -0.33909979462623596, 0.4767313003540039, -0.011819535866379738, 0.24953025579452515, -0.2530095875263214, -0.2588736414909363, 0.01947001740336418, 0.14771218597888947, -0.0015755929052829742, -0.34947559237480164, -0.023146528750658035, 0.08317805826663971, -0.08892044425010681, -0.2527139484882355, -0.19320234656333923, -0.21225453913211823, -0.10677263140678406, -0.042542267590761185, -0.1887740194797516, -0.25565409660339355, -0.2661941647529602, 0.36176183819770813, 0.035868026316165924, 0.33828476071357727, 0.42315977811813354, 0.18914104998111725, -0.2020311951637268, -0.0373472198843956, -0.40780743956565857, -0.22250571846961975, 0.2222820222377777, -0.20137649774551392, 0.24631595611572266, 0.16944852471351624, -0.13120076060295105, 0.2318212389945984, 0.1831289529800415, -0.11376726627349854, 0.3498704731464386, -0.06605790555477142, 0.39134642481803894, -0.25265511870384216, -0.28915688395500183, 0.005643852055072784, 0.0994502454996109, -0.038942065089941025, 0.05136729031801224, -0.11322776228189468, 0.07256162911653519, -0.08440475165843964, -0.0731935054063797, -0.24916455149650574, -0.11290493607521057, -0.04596729576587677, -0.10801343619823456, 0.23215314745903015, 0.17251239717006683, -0.022115472704172134, -0.3476592004299164, 0.19557350873947144, -0.058404937386512756, 0.11995603144168854, 0.2428348958492279, -0.35695621371269226, -0.4048118591308594, 0.08461086452007294, -0.48746591806411743, 0.36262184381484985, -0.10347501933574677, -0.01602359116077423, -0.06923909485340118, -0.23204028606414795, -0.008670531213283539, 0.05858567729592323, 0.5623838901519775, -0.39344802498817444, -0.22158487141132355, 0.2298310399055481, -0.23682548105716705, -0.23292075097560883, 0.22110308706760406, -0.04696466028690338, -0.0690232515335083, -0.1387697011232376, 0.502442479133606, -0.2893711030483246, -0.3765101730823517, 0.8169435262680054, 0.462243914604187, -0.17232748866081238, -0.12067846208810806, -0.20291553437709808, -0.4163670837879181, -0.05787816643714905, 0.030502624809741974, 0.19974961876869202, 0.05998700484633446, -0.08802929520606995, 0.015080966055393219, -0.13064534962177277, 0.11760567873716354, 0.18789324164390564, 0.1418755203485489, 0.03662949055433273, 0.0922304317355156, 0.3841085731983185, -0.11139030754566193, 0.1124580055475235, 0.26650410890579224, 0.3858988583087921, -0.22409552335739136, -0.21086683869361877, 0.26039934158325195, -0.1503220945596695, 0.6364564299583435, 0.24815528094768524, -0.011562017723917961, 0.30432066321372986, -0.34073272347450256, 0.20755505561828613, -0.24515026807785034, -0.5266624689102173, 0.3275562524795532, 0.14795809984207153, -0.08242875337600708, -0.4869216978549957, 0.35630616545677185, 0.004237782210111618, -0.34067535400390625, 0.25373575091362, 0.29141026735305786, -0.10118472576141357, 0.2884145975112915, 0.20501261949539185, 0.8865652680397034, -0.2968035340309143, -0.08000484108924866, 0.1293606460094452, -0.3904862403869629, 0.4729917347431183, 0.23903928697109222, -0.011697813868522644, -0.490753173828125, -0.3601461350917816, -0.017164621502161026, -0.06668151170015335, 0.3344680666923523, -0.02419295161962509, 0.01665360853075981, 0.2945865988731384, -0.20601074397563934, 0.14419347047805786, 0.28773584961891174, 0.1487383395433426, -0.08559346199035645, -0.37112104892730713, -0.3331005275249481, 0.15560127794742584, 0.15276551246643066, -0.16747920215129852, 0.09778906404972076, 0.02073584496974945, -0.10941384732723236, -0.09718398749828339, -0.12815946340560913, -0.04857257008552551, 0.016754670068621635, -0.1331218183040619, 0.04469180852174759, -0.21734245121479034, 0.25058791041374207, 0.562103271484375, 0.19065912067890167, 0.14438624680042267, 0.06659826636314392, 0.14430204033851624, -0.038042061030864716, 0.3668499290943146, 0.039655786007642746, 0.023728124797344208, 0.30345967411994934, 0.059477075934410095, -0.24598389863967896, 0.14710400998592377, -0.06969276815652847, 0.11502589285373688, -0.028806306421756744, 0.22956512868404388, 0.5504525899887085, -0.36397430300712585, -0.22021150588989258, -0.14750933647155762, 0.06573103368282318, -0.3468921184539795, 0.18640294671058655, -0.08656886219978333, -0.162240669131279, 0.38216057419776917, -0.236052468419075, -0.1344316005706787, -0.09261958301067352, 0.17119218409061432, 0.14269734919071198, -0.075145423412323, 0.31927716732025146, -0.008543122559785843, -0.2222020924091339, -0.3081229031085968, -0.03294310346245766, 0.23324522376060486, -0.11156076937913895, 0.07865483313798904, 0.10729562491178513, -0.11469587683677673, 0.1451844424009323, 0.3510582447052002, -0.09088249504566193, -0.07077368348836899, -0.45133352279663086, -0.21155999600887299, -0.10374903678894043, 0.2435559630393982, 0.13039575517177582, 0.24794410169124603, -0.0721830427646637, 0.11122247576713562, -0.2536581754684448, -0.027822064235806465, -0.4434036612510681, 0.11897019296884537, -0.37424159049987793, 0.30863168835639954, 0.47005757689476013, 0.04621231555938721, 0.008929976262152195, -0.2181769460439682, 0.3187553882598877, 0.08584476262331009, -0.09374003112316132, -0.3871728181838989, -0.3708862364292145, 0.09620751440525055, -0.25395938754081726, 0.06779439747333527, 0.12373606115579605, 0.026047885417938232, -0.35980749130249023, -0.2494794726371765, 0.27619418501853943, 0.30727869272232056, -0.04258265346288681, 0.2372399866580963, 0.22016267478466034, 0.033872976899147034, -0.2304854393005371, 0.22408527135849, -0.06931795179843903, 0.1720362901687622, -0.11829402297735214, 0.15118995308876038, -0.06331692636013031, 0.057315483689308167, -0.15103648602962494, 0.02541496232151985, 0.04132847860455513, -0.005253903567790985, 0.2171526551246643, 0.034653160721063614, -0.1678832322359085, 0.11163856834173203, 0.5332834720611572, 0.20651133358478546, 0.08255982398986816, -0.1682271808385849, 0.22904762625694275, 0.31250280141830444, -0.36748892068862915, -0.036844898015260696, 0.3291415274143219, -0.21076160669326782, 0.25737133622169495, 0.3471420705318451, 0.1844761073589325, 0.31353867053985596, -0.01265774667263031, -0.26739808917045593, 0.44127899408340454, -0.02007421851158142, 0.19950318336486816, 0.42273610830307007, 0.1852472573518753, -0.06154102459549904, 0.40803515911102295, 0.3293011486530304, 0.05400099605321884, 0.26956355571746826, 0.05135034769773483, 0.1431005895137787, 0.06221649423241615, 0.15419352054595947, 0.12865301966667175, -0.25741633772850037, 0.5814307332038879, -0.11092236638069153, -0.045656874775886536, 0.08550223708152771, -0.039527520537376404, 0.25382572412490845, -0.22243602573871613, 0.20156578719615936, -0.046108901500701904, 0.36321908235549927, -0.11816785484552383, -0.13227957487106323, -0.3068164587020874, -0.28404688835144043, 0.2247542142868042, -0.3053519129753113, 0.09431551396846771, -0.26220792531967163, 0.6989459991455078, -0.11016769707202911, 0.2399096041917801, -0.2954239249229431, 0.009228207170963287, -0.15689843893051147, 0.22486424446105957, -0.11682702600955963, 0.07065974920988083, 0.13530518114566803, 0.24286679923534393, -0.029478076845407486, 0.23377302289009094, 0.24294936656951904, -0.01683986932039261, -0.039069727063179016, -0.010120359249413013, -0.18827073276042938, -0.18346112966537476, 0.011195527389645576, 0.17068533599376678, -0.19250941276550293, 0.22037076950073242, 0.3347669541835785, 0.25487247109413147, -0.2397121787071228, -0.2624876797199249, 0.1845863312482834, 0.289071649312973, -0.489899605512619, 0.3185562789440155, -0.019734084606170654, -0.4035390615463257, -0.03244511038064957, 0.018694013357162476, -0.14748990535736084, -0.044849563390016556, 0.13122287392616272, -0.05129515752196312, 0.0188644640147686, 0.007268908433616161, 0.1513647437095642, -0.040363263338804245, 0.24168990552425385, 0.11008651554584503, 0.12122047692537308, -0.230709508061409, -0.0752517357468605, -0.48957914113998413, -0.05507936328649521, 0.0672312080860138, -0.5625576972961426, 0.3312557339668274, 0.09493299573659897, 0.3208939731121063, 0.03769468888640404, 0.09991151839494705, 0.09680384397506714, 0.032172419130802155, 0.49955126643180847, -0.3948233127593994, -0.2770884037017822, 0.12622541189193726, 0.04478790983557701, 0.06132401525974274, -0.40049195289611816, -0.006855618208646774, 0.2189108282327652, 0.10278856009244919, -0.23635955154895782, 0.12474305927753448, 0.3387463688850403, -0.05232790857553482, 0.16873791813850403, 0.10030244290828705, 0.36026421189308167, -0.09347915649414062, -0.1339588761329651, 0.2739120125770569, -0.13536983728408813, -0.14743861556053162, 0.17619788646697998, 0.046999938786029816, 0.14317281544208527, 0.02445192076265812, -0.10039407014846802, -0.1950431913137436, 0.1435573697090149, 0.03657006472349167, 0.10144923627376556, -0.17231160402297974, 0.14980261027812958, 0.22555285692214966, -0.03372204676270485, 0.09146995097398758, 0.30350160598754883, 0.12358739972114563, 0.35404759645462036, -0.10252021998167038, -0.22809894382953644, 0.4901244044303894, -0.2927130460739136, -0.511085033416748, -0.14074772596359253, 0.16200010478496552, 0.02877839282155037, -0.30031198263168335, -0.24056094884872437, 0.1623396873474121, 0.31447556614875793, -0.17815831303596497, -0.025485316291451454, 0.28066256642341614, -0.3643956184387207, 0.048603516072034836, -0.09314028918743134, 0.20761917531490326, -0.12572163343429565, -0.050031259655952454, -0.1652349829673767, -0.13914525508880615 ]
https://github.com/huggingface/datasets/issues/5468
Allow opposite of remove_columns on Dataset and DatasetDict
Hi! I agree it would be nice to have a method like that. Instead of `keep_columns`, we can name it `select_columns` to be more aligned with PyArrow's naming convention (`pa.Table.select`).
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution -
30
Allow opposite of remove_columns on Dataset and DatasetDict ### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution - Hi! I agree it would be nice to have a method like that. Instead of `keep_columns`, we can name it `select_columns` to be more aligned with PyArrow's naming convention (`pa.Table.select`).
[ 0.012716762721538544, 0.4021453857421875, -0.0841732919216156, -0.08924159407615662, 0.2792767286300659, 0.11144912987947464, 0.3214445412158966, 0.2497977465391159, -0.086512491106987, 0.41520029306411743, -0.3178647458553314, 0.38741418719291687, -0.261292427778244, 0.2276330441236496, 0.07832605391740799, -0.17713771760463715, 0.0503663532435894, 0.31862175464630127, -0.012251198291778564, 0.10574936866760254, -0.21377818286418915, -0.19738654792308807, -0.35875993967056274, 0.22772081196308136, 0.22097305953502655, -0.12559959292411804, -0.04979877173900604, -0.2537906765937805, -0.19962257146835327, -0.16583256423473358, 0.09505161643028259, 0.40476590394973755, -0.1403430998325348, 0.13227730989456177, -0.00011878652730956674, -0.13721950352191925, -0.0802435427904129, 0.12499670684337616, -0.33459120988845825, -0.056028395891189575, -0.1711260825395584, -0.030540630221366882, 0.07361366599798203, -0.2237139642238617, 0.11333111673593521, -0.41655585169792175, -0.3178016245365143, -0.06848227232694626, -0.11584675312042236, 0.15763700008392334, 0.17429502308368683, 0.14614638686180115, -0.13891053199768066, 0.2011759728193283, 0.25403034687042236, 0.18985317647457123, -0.34559643268585205, -0.003725772723555565, 0.12227430939674377, -0.23325493931770325, 0.29405641555786133, 0.18680021166801453, -0.5516700148582458, -0.13968776166439056, 0.0663396567106247, 0.16809837520122528, -0.11547396332025528, -0.28525510430336, 0.06813148409128189, 0.30878469347953796, 0.6726143956184387, -0.8485062122344971, -0.22997191548347473, -0.28750237822532654, 0.2081587314605713, -0.5036885142326355, -0.045688554644584656, 0.14905135333538055, -0.09123711287975311, 0.2838934659957886, -0.33112847805023193, -0.2934037446975708, -0.08070376515388489, 0.016678307205438614, 0.22735124826431274, -0.13666462898254395, 0.28149551153182983, 0.0769902914762497, 0.2109191119670868, 0.05895131453871727, 0.36866143345832825, -0.19861912727355957, 0.16360652446746826, 0.324203759431839, -0.4613955020904541, -0.34731757640838623, -0.04460559040307999, 0.037366800010204315, 0.10596298426389694, 0.2584564983844757, -0.08313300460577011, -0.004157129675149918, 0.07163461297750473, 0.359052449464798, 0.2080085575580597, 0.26633620262145996, 0.18197451531887054, 0.3507238030433655, 0.32832467555999756, 0.07982750982046127, 0.278067409992218, 0.08363986760377884, 0.30030757188796997, 0.04441135749220848, 0.3532507121562958, -0.011121176183223724, 0.20525577664375305, -0.12502421438694, -0.6157038807868958, 0.12325562536716461, -0.2910998463630676, -0.11168935894966125, 0.16741496324539185, 0.08363558351993561, 0.4691958427429199, 0.16323259472846985, -0.14238612353801727, 0.18871749937534332, -0.054681241512298584, 0.055914100259542465, -0.10915591567754745, 0.27304479479789734, -0.0620356947183609, 0.09419383108615875, 0.3416973650455475, 0.23217162489891052, -0.05599229782819748, 0.321382611989975, 0.016469072550535202, 0.19341444969177246, -0.10478036105632782, -0.20151324570178986, 0.02389007806777954, 0.30916476249694824, -0.15154597163200378, -0.12982745468616486, -0.21722041070461273, -0.18089506030082703, -0.30161914229393005, 0.41218510270118713, 0.14489933848381042, -0.20199961960315704, -0.046848662197589874, 0.15015791356563568, 0.010292533785104752, -0.060713768005371094, -0.29551243782043457, 0.19292810559272766, -0.041148342192173004, 0.06024165078997612, 0.4304196536540985, -0.19272921979427338, -0.10218189656734467, -0.10767024755477905, 0.1300085335969925, 0.11037780344486237, -0.5546445846557617, -0.05249932408332825, 0.1681302785873413, -0.41116586327552795, 0.0347922146320343, 0.21290448307991028, 0.0483548641204834, 0.10116691887378693, -0.048503413796424866, -0.16217729449272156, 0.22362306714057922, -0.1295662820339203, -0.23465904593467712, -0.07025519013404846, -0.007278949022293091, 0.21514829993247986, 0.10500846803188324, 0.09686397761106491, -0.013138644397258759, 0.061247892677783966, 0.137520432472229, 0.1339382827281952, 0.10215970873832703, 0.10510540753602982, 0.12715713679790497, -0.4371241629123688, 0.26645272970199585, 0.14354915916919708, -0.2811973989009857, -0.030736669898033142, 0.10927672684192657, -0.4395671784877777, 0.4337998032569885, -0.22077322006225586, 0.021468859165906906, 0.11467956751585007, 0.5489034652709961, 0.1297122985124588, -0.17939482629299164, -0.43828585743904114, -0.5139234662055969, 0.08598267287015915, 0.3116574287414551, 0.006938260048627853, -0.18468953669071198, -0.4215702414512634, 0.02574687823653221, 0.03178195655345917, -0.11952640116214752, 0.19521783292293549, -0.01673235557973385, -0.4542293846607208, 0.10487735271453857, 0.030906032770872116, -0.417873352766037, 0.1814637929201126, -0.359711229801178, 0.2977164685726166, -0.09169387817382812, 0.06928586214780807, 0.19832688570022583, -0.0056687043979763985, -0.047283899039030075, 0.4444522261619568, 0.17460569739341736, 0.15290284156799316, 0.0833209678530693, 0.46895936131477356, 0.19048942625522614, -0.048224955797195435, -0.33243510127067566, 0.3928913474082947, 0.09152400493621826, 0.24452626705169678, 0.08986904472112656, -0.10823535919189453, 0.12669433653354645, 0.04749872535467148, -0.22040414810180664, 0.2534183859825134, -0.189041405916214, 0.31040245294570923, -0.05262381210923195, -0.21856486797332764, -0.0495726577937603, 0.009779993444681168, -0.2911062240600586, -0.22314339876174927, 0.04408768564462662, 0.15384790301322937, 0.04959286376833916, 0.09192826598882675, -0.43762916326522827, -0.16968008875846863, 0.4870973825454712, -0.0551464706659317, 0.0580289363861084, 0.15858720242977142, 0.0701882466673851, -0.014227951876819134, 0.11412739008665085, 0.1505972295999527, 0.44238168001174927, 0.11747556179761887, -0.16316726803779602, 0.4186576306819916, 0.011187462136149406, -0.11843371391296387, 0.26857659220695496, 0.3288305401802063, -0.13620063662528992, 0.048621438443660736, 0.4358138144016266, 0.02785623073577881, -0.5774678587913513, -0.11025337874889374, -0.027029970660805702, 0.2255040407180786, -0.1901981681585312, -0.10386405885219574, -0.303461492061615, -0.25745266675949097, -0.02369234338402748, -0.3011544346809387, -0.21853773295879364, -0.10718323290348053, 0.23981121182441711, 0.14729465544223785, -0.3303212821483612, 0.3299328088760376, -0.4657477140426636, 0.20445972681045532, -0.27920711040496826, -0.3158506453037262, -0.1008094772696495, -0.06157367303967476, 0.31261491775512695, 0.07874570786952972, -0.02853068709373474, -0.052483126521110535, 0.20914112031459808, 0.3576595187187195, -0.3024898171424866, -0.23327234387397766, -0.11121019721031189, 0.17615476250648499, -0.3686976432800293, 0.054504312574863434, 0.3498064875602722, -0.15713529288768768, 0.159526988863945, -0.2728694677352905, 0.051813073456287384, -0.07981237769126892, -0.07106881588697433, 0.10534004122018814, 0.41971510648727417, 0.17228300869464874, -0.1890944540500641, -0.11441636830568314, -0.13663586974143982, -0.32725104689598083, 0.3751104474067688, -0.2712180018424988, 0.22982394695281982, 0.12597425282001495, -0.16373850405216217, -0.18293288350105286, 0.03959864750504494, 0.016035214066505432, -0.1304522007703781, -0.1502077579498291, 0.07664590328931808, 0.20872317254543304, 0.1676294058561325, -0.13180537521839142, 0.1186673641204834, 0.10827258229255676, 0.08122606575489044, -0.07648517936468124, -0.16767260432243347, -0.3363074064254761, 0.1985110491514206, 0.12823687493801117, 0.1050073653459549, 0.26542922854423523, 0.21708230674266815, 0.0674629881978035, 0.17796501517295837, -0.17200008034706116, -0.1275801658630371, 0.29395437240600586, -0.23939403891563416, 0.13430435955524445, 0.29361146688461304, -0.058462053537368774, 0.2697426676750183, -0.2736293375492096, 0.16088855266571045, 0.13884830474853516, -0.0053628068417310715, 0.2915731370449066, -0.16234102845191956, -0.38494789600372314, 0.0030592854600399733, -0.0720750093460083, -0.21604959666728973, 0.08776793628931046, -0.15059638023376465, -0.27037522196769714, -0.0940123200416565, 0.1614656001329422, 0.10165106505155563, -0.30725207924842834, 0.06377224624156952, -0.228639155626297, 0.05377143621444702, 0.25948387384414673, 0.23405131697654724, 0.10085740685462952, -0.11397545784711838, 0.08323059976100922, -0.1240825206041336, 0.1444079577922821, -0.3529539704322815, -0.6913766860961914, -0.18598495423793793, -0.44923824071884155, 0.39177632331848145, 0.017722107470035553, 0.16636136174201965, 0.19085027277469635, -0.1775711178779602, 0.27412164211273193, 0.2991078794002533, 0.42667263746261597, -0.07030399143695831, -0.272876501083374, 0.08482685685157776, 0.11650867760181427, -0.2163739800453186, -0.20065009593963623, -0.22829927504062653, -0.22692038118839264, -0.38128960132598877, 0.3290298283100128, -0.285424143075943, -0.183731809258461, 0.3559820055961609, 0.41370877623558044, -0.0329228937625885, -0.037289269268512726, -0.11716508865356445, -0.29344919323921204, -0.07773839682340622, 0.2002696990966797, 0.1659052073955536, 0.2999751567840576, -0.39411476254463196, 0.15405143797397614, 0.19245529174804688, 0.021620050072669983, 0.26010721921920776, -0.04393443465232849, 0.12706276774406433, -0.1961403340101242, 0.24878209829330444, 0.050107575953006744, -0.1603223830461502, 0.2415829449892044, 0.12823933362960815, -0.39294710755348206, -0.3322640359401703, -0.13070765137672424, -0.23730309307575226, 0.8458530902862549, 0.04062642157077789, 0.06403882056474686, 0.4035957455635071, -0.22714297473430634, 0.03643769770860672, -0.1631179004907608, -0.5350008010864258, 0.28656890988349915, -0.05267297849059105, -0.13062626123428345, -0.7808091640472412, 0.36608290672302246, 0.44030535221099854, -0.2833431363105774, 0.3391624391078949, 0.4032767415046692, -0.39511629939079285, 0.3686481714248657, -0.13052555918693542, 0.9194967746734619, 0.03226799890398979, 0.2834136188030243, 0.05256708711385727, -0.3556244373321533, 0.3878876864910126, -0.3162211775779724, 0.38133013248443604, -0.27972355484962463, -0.26219725608825684, -0.04115137457847595, -0.05254523828625679, 0.34966951608657837, 0.1510353684425354, 0.05613410845398903, 0.3702550232410431, -0.21229328215122223, 0.44029271602630615, -0.0016268221661448479, -0.10106809437274933, -0.2416706085205078, -0.28275325894355774, -0.2176867127418518, -0.02394871972501278, -0.11318285763263702, -0.340492844581604, -0.03518093377351761, 0.3703477382659912, 0.19276197254657745, -0.08918915688991547, -0.049259357154369354, -0.030395979061722755, -0.09989426285028458, 0.21697095036506653, -0.12306028604507446, -0.522733211517334, 0.2604202628135681, 0.11969146132469177, 0.10904930531978607, 0.03955640643835068, 0.16581271588802338, 0.15523065626621246, 0.46466848254203796, 0.5177411437034607, -0.10122350603342056, 0.020454756915569305, 0.03440241515636444, 0.15768328309059143, -0.328652948141098, 0.06602858006954193, 0.054557137191295624, -0.4088246822357178, -0.5414838194847107, -0.03901556134223938, 0.4214048385620117, -0.403277188539505, -0.060828886926174164, -0.07522904872894287, 0.4707767963409424, -0.38115110993385315, 0.07311703264713287, -0.007047273218631744, -0.20174656808376312, 0.40381574630737305, -0.2569481432437897, -0.21333006024360657, -0.07987067103385925, 0.2823287844657898, 0.13225799798965454, 0.2274346649646759, 0.4463868737220764, -0.13321766257286072, -0.3291670083999634, -0.15143024921417236, -0.07302527874708176, -0.03707593306899071, -0.03279654309153557, 0.08085174858570099, 0.0999421626329422, -0.0266881063580513, -0.021184246987104416, 0.11833414435386658, -0.526922345161438, -0.14357680082321167, -0.15688824653625488, -0.09423047304153442, -0.24145843088626862, 0.33952081203460693, 0.5072066783905029, 0.4902007281780243, 0.09289801865816116, -0.02661632001399994, -0.2933333218097687, -0.3500714600086212, -0.23167823255062103, -0.08138255774974823, 0.09302925318479538, 0.20324310660362244, 0.3985452651977539, 0.14899761974811554, -0.2650993764400482, -0.36770007014274597, 0.11301861703395844, -0.0014973357319831848, 0.2905724346637726, -0.18659359216690063, -0.20355136692523956, 0.21363911032676697, -0.04654029756784439, 0.10426776111125946, -0.18755240738391876, -0.05457651987671852, -0.1939542293548584, -0.1832093894481659, 0.2791329324245453, 0.45729300379753113, 0.17944565415382385, 0.46644705533981323, -0.047543708235025406, -0.011680737137794495, -0.08694630861282349, 0.21295200288295746, -0.1892845332622528, -0.08105197548866272, 0.36310285329818726, 0.10768808424472809, -0.3085215985774994, 0.11220455169677734, 0.08157248049974442, 0.1928490400314331, 0.09717519581317902, 0.21548941731452942, -0.05115164816379547, 0.113198421895504, -0.16344255208969116, -0.11539572477340698, 0.5013259649276733, 0.313595175743103, -0.10933169722557068, -0.48410797119140625, 0.3755762577056885, 0.14977003633975983, -0.4242558479309082, -0.1808447390794754, 0.18380483984947205, 0.011268065311014652, 0.1826271265745163, 0.30795928835868835, 0.09141698479652405, 0.07477453351020813, -0.215293750166893, -0.11059679836034775, 0.6286011934280396, 0.003548869863152504, -0.039031557738780975, 0.7621296644210815, -0.06296002119779587, -0.1619468480348587, 0.2757571339607239, 0.11864422261714935, 0.046270012855529785, 0.3770715594291687, -0.10207206755876541, 0.17510858178138733, 0.2874061167240143, -0.007072161883115768, 0.05745216831564903, -0.10367381572723389, -0.029510226100683212, 0.04371793568134308, -0.19362053275108337, -0.13631927967071533, 0.0774620771408081, 0.15357151627540588, 0.2146616131067276, -0.09386003017425537, 0.11663105338811874, 0.23089882731437683, 0.016285967081785202, -0.053378134965896606, -0.24967552721500397, -0.20264413952827454, 0.15131285786628723, -0.01709585078060627, -0.1318986415863037, -0.2643698453903198, 0.6439557075500488, -0.20813359320163727, 0.13029223680496216, -0.13394121825695038, 0.4434031546115875, -0.00358741357922554, 0.26315930485725403, -0.0959416925907135, -0.37578096985816956, 0.06935887038707733, 0.03220757842063904, -0.03346126899123192, 0.09134649485349655, 0.03892914950847626, -0.1694374978542328, -0.03937162086367607, 0.04084126278758049, -0.36550822854042053, 0.009992891922593117, -0.02331986464560032, 0.22060033679008484, -0.07733015716075897, 0.1921233981847763, 0.12838338315486908, 0.10613015294075012, -0.02167576737701893, -0.09578019380569458, 0.37732768058776855, 0.26838183403015137, -0.6698943972587585, 0.44816291332244873, 0.410934716463089, -0.4688841998577118, 0.22619342803955078, -0.16609278321266174, 0.16385576128959656, -0.16307178139686584, 0.19992923736572266, 0.08804251998662949, 0.06438983976840973, -0.02076205238699913, 0.03409811109304428, 0.06973117589950562, 0.016389433294534683, 0.3382631540298462, -0.14490419626235962, -0.19781756401062012, -0.03362787142395973, -0.5962719321250916, -0.2939693331718445, -0.1257592737674713, -0.23215748369693756, 0.185913547873497, -0.1474323868751526, 0.3389613926410675, -0.02467847615480423, 0.0005404800176620483, 0.4646226465702057, -0.3933570384979248, 0.03230058029294014, -0.2679866850376129, 0.05793121084570885, -0.017744898796081543, -0.09761073440313339, -0.06264802813529968, -0.42819616198539734, 0.04482030123472214, 0.3107258379459381, -0.07925914227962494, -0.2349686175584793, 0.3242129385471344, 0.15665394067764282, 0.1561640501022339, 0.2961607277393341, 0.019419720396399498, 0.06806392967700958, 0.05917742848396301, -0.03474153205752373, 0.03901384398341179, -0.005869180429726839, -0.3044377267360687, 0.1264951229095459, -0.22266897559165955, -0.029756639152765274, -0.0672176331281662, -0.07262736558914185, -0.09024345874786377, 0.5577565431594849, 0.06348494440317154, -0.04010656476020813, -0.30655476450920105, 0.03741881996393204, 0.17998579144477844, 0.06995700299739838, -0.29959139227867126, -0.10850385576486588, 0.024769660085439682, 0.29622551798820496, -0.28435274958610535, -0.1363392174243927, 0.4778836667537689, -0.05537087842822075, -0.43315789103507996, -0.15268024802207947, 0.3504333794116974, 0.10517939925193787, -0.23156028985977173, -0.4417220950126648, 0.010230287909507751, 0.2696404755115509, -0.389801025390625, -0.09653665125370026, 0.5186123251914978, -0.3112938106060028, 0.03335639461874962, 0.03304259106516838, 0.22824953496456146, 0.08255908638238907, 0.013143876567482948, -0.13141809403896332, -0.28213071823120117 ]
https://github.com/huggingface/datasets/issues/5468
Allow opposite of remove_columns on Dataset and DatasetDict
Hi, I am a newbie to open source and would like to contribute. @mariosasko can I take up this issue ?
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution -
21
Allow opposite of remove_columns on Dataset and DatasetDict ### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution - Hi, I am a newbie to open source and would like to contribute. @mariosasko can I take up this issue ?
[ 0.06664426624774933, 0.2528359889984131, -0.0989631861448288, 0.033473189920186996, 0.24726536870002747, 0.05422414094209671, 0.36674487590789795, 0.1442459374666214, 0.09209363162517548, 0.39788198471069336, -0.34325677156448364, 0.1846706122159958, -0.29425641894340515, 0.32242435216903687, -0.10036632418632507, -0.10116414725780487, 0.047994889318943024, 0.28734642267227173, -0.22819164395332336, 0.001748252660036087, -0.20366060733795166, -0.14379489421844482, -0.41594862937927246, 0.18172258138656616, 0.2618553638458252, -0.16766048967838287, -0.03466109186410904, -0.2922041118144989, -0.2933557331562042, -0.038712192326784134, 0.1044970452785492, 0.33816900849342346, -0.18820278346538544, 0.2647157311439514, -0.00011746278323698789, -0.155040442943573, -0.14714781939983368, 0.21016721427440643, -0.2884145975112915, -0.040837571024894714, -0.20838800072669983, -0.05496465414762497, -0.014000839553773403, -0.20902252197265625, 0.1543937623500824, -0.3085581660270691, -0.3490544557571411, -0.36806774139404297, -0.013984009623527527, 0.19907577335834503, 0.1669405996799469, 0.03335808217525482, -0.10165975987911224, 0.27736297249794006, 0.15972059965133667, 0.23642459511756897, -0.32170718908309937, -0.09780167043209076, 0.0999440997838974, -0.07081902772188187, 0.32609787583351135, 0.3140881061553955, -0.59443199634552, -0.1563318520784378, 0.1688244789838791, 0.047824926674366, -0.18430951237678528, -0.3666772246360779, 0.13638801872730255, 0.2923819124698639, 0.7639951109886169, -0.6959022283554077, -0.20164689421653748, -0.24802693724632263, 0.15098775923252106, -0.4741746187210083, 0.018457729369401932, 0.18782103061676025, -0.005901633761823177, 0.31135693192481995, -0.36791473627090454, -0.4188461899757385, -0.08048287779092789, 0.05317804217338562, 0.15884709358215332, -0.13411813974380493, 0.132410928606987, 0.07381322979927063, 0.11665110290050507, 0.003927590325474739, 0.28522151708602905, -0.2905946969985962, 0.11468707025051117, 0.387087345123291, -0.457912802696228, -0.3403938412666321, -0.08366686850786209, -0.05602123588323593, 0.05195866525173187, 0.2934955358505249, -0.0976594015955925, -0.028873387724161148, -0.08046136051416397, 0.3236096203327179, 0.21605105698108673, 0.34754684567451477, 0.18723785877227783, 0.4486682415008545, 0.38428807258605957, 0.09090312570333481, 0.31144458055496216, 0.06575781852006912, 0.3809696137905121, 0.0998329371213913, 0.19759155809879303, 0.04116671532392502, 0.31644773483276367, -0.15580447018146515, -0.611346960067749, 0.1260378509759903, -0.27781423926353455, -0.11482951790094376, 0.23477067053318024, -0.06753557175397873, 0.4804115891456604, 0.20205768942832947, -0.06871207058429718, 0.19714730978012085, 0.0004497487097978592, 0.023015622049570084, -0.11696328222751617, 0.26204174757003784, -0.09475825726985931, 0.05235224962234497, 0.268341064453125, 0.18603290617465973, 0.03622642159461975, 0.36885759234428406, -0.0018373355269432068, 0.07809093594551086, -0.06089811027050018, -0.3030153512954712, 0.03382615000009537, 0.11528152227401733, -0.29170629382133484, -0.04142463207244873, -0.062369782477617264, -0.13027343153953552, -0.2636891007423401, 0.2991856038570404, 0.09457387030124664, -0.14656700193881989, -0.08996670693159103, 0.14516767859458923, -0.057153452187776566, -0.005612708628177643, -0.23145005106925964, 0.14256730675697327, -0.11712779849767685, 0.08639368414878845, 0.5294065475463867, -0.14339371025562286, -0.19008868932724, -0.052208539098501205, 0.11763804405927658, 0.2118321657180786, -0.25794556736946106, -0.022203478962183, 0.17120902240276337, -0.31448987126350403, 0.15258654952049255, 0.27282020449638367, 0.010915747843682766, 0.05999065935611725, -0.18610085546970367, -0.34812790155410767, 0.2765592932701111, -0.30243054032325745, -0.17322733998298645, 0.03162731975317001, -0.03789840266108513, 0.27969393134117126, 0.12584713101387024, 0.11173337697982788, 0.009862791746854782, 0.0036630728282034397, 0.14717239141464233, 0.18358713388442993, 0.24574846029281616, 0.0720716267824173, 0.08029398322105408, -0.4082450270652771, 0.16539818048477173, -0.019611820578575134, -0.23063819110393524, 0.10674967616796494, 0.11561556160449982, -0.3998473584651947, 0.38063472509384155, -0.22145715355873108, 0.08037343621253967, 0.12269320338964462, 0.4650755226612091, 0.15466046333312988, -0.19386209547519684, -0.43448489904403687, -0.45184940099716187, 0.07997872680425644, 0.4335966408252716, 0.01658337190747261, 0.04653250426054001, -0.37533801794052124, -0.003913788124918938, -0.023609396070241928, -0.024035673588514328, 0.19018493592739105, -0.010251052677631378, -0.3589412271976471, -0.017322150990366936, 0.007774408906698227, -0.44804540276527405, 0.469433456659317, -0.48226675391197205, 0.32382917404174805, -0.14031535387039185, -0.10046215355396271, 0.24707534909248352, 0.1780627965927124, -0.016443179920315742, 0.4754362404346466, 0.13116508722305298, 0.17753183841705322, 0.04708414152264595, 0.4657183587551117, 0.040644317865371704, 0.040033139288425446, -0.24424877762794495, 0.44416677951812744, 0.08429029583930969, 0.2397116720676422, 0.19176511466503143, -0.03585623949766159, 0.1753753274679184, -0.005703356117010117, -0.225157231092453, 0.15347304940223694, -0.2358720749616623, 0.30330073833465576, -0.06853554397821426, -0.18030841648578644, -0.07993349432945251, 0.04197729751467705, -0.4461071491241455, -0.27801012992858887, 0.10262390971183777, 0.07046010345220566, -0.030027762055397034, 0.0855456069111824, -0.44489848613739014, -0.24186038970947266, 0.4720120429992676, -0.0226595476269722, 0.11230674386024475, 0.12696599960327148, 0.04694142937660217, -0.013584110885858536, 0.13989228010177612, 0.34520572423934937, 0.453818142414093, 0.10903988778591156, -0.0702558159828186, 0.4261236786842346, 0.09904126822948456, -0.06337980180978775, 0.34393659234046936, 0.3526689410209656, -0.20129843056201935, 0.018251456320285797, 0.42051634192466736, 0.06555728614330292, -0.49711576104164124, -0.19366897642612457, -0.11943109333515167, 0.25439244508743286, -0.20813657343387604, -0.11671630293130875, -0.2770472466945648, -0.17888420820236206, -0.07477676123380661, -0.23971502482891083, -0.21205411851406097, -0.08088379353284836, 0.11147558689117432, 0.08539848029613495, -0.23380428552627563, 0.20544028282165527, -0.45031848549842834, 0.3055274784564972, -0.39961543679237366, -0.21500708162784576, -0.014708425849676132, 0.04157973453402519, 0.3390444219112396, 0.06886395812034607, 0.0007285838946700096, -0.04553347826004028, 0.26939353346824646, 0.34062013030052185, -0.2797433137893677, -0.22489802539348602, -0.08422785252332687, 0.13221079111099243, -0.353435218334198, 0.008835419081151485, 0.3928513824939728, -0.17214839160442352, 0.12506411969661713, -0.1783786416053772, -0.0137570109218359, -0.08888459950685501, 0.011648589745163918, 0.010902328416705132, 0.41036340594291687, 0.21138441562652588, -0.2894188463687897, -0.02752416580915451, -0.03511936962604523, -0.40459582209587097, 0.4369543194770813, -0.28314799070358276, 0.2644093632698059, 0.23118065297603607, -0.1548839807510376, -0.13134099543094635, 0.23552006483078003, 0.12469565123319626, -0.17437726259231567, -0.3751053512096405, 0.0738050788640976, 0.20940068364143372, 0.21745936572551727, -0.08469513803720474, 0.2456519454717636, 0.15302319824695587, 0.13375312089920044, -0.24683456122875214, -0.11914850771427155, -0.39907708764076233, 0.07585868239402771, 0.008717130869626999, 0.20429696142673492, 0.20893526077270508, 0.21385779976844788, 0.049541547894477844, 0.15177950263023376, -0.15799447894096375, -0.1822173297405243, 0.1848321259021759, -0.2329186201095581, 0.18968823552131653, 0.3273797631263733, -0.12953528761863708, 0.25705617666244507, -0.19005437195301056, 0.1896122545003891, 0.08941295742988586, 0.16608047485351562, 0.36611104011535645, -0.19536134600639343, -0.5177844762802124, 0.047866664826869965, -0.047226399183273315, -0.2406211942434311, 0.05766225606203079, -0.06477024406194687, -0.13310889899730682, -0.12151659280061722, 0.10200564563274384, 0.0857107862830162, -0.2678700089454651, 0.01745244301855564, -0.2947385609149933, 0.12877044081687927, 0.19908180832862854, 0.19170236587524414, -0.008867422118782997, -0.1329110860824585, 0.043404240161180496, -0.032102301716804504, 0.22464534640312195, -0.3258952796459198, -0.7246905565261841, -0.09468794614076614, -0.48249441385269165, 0.39395880699157715, -0.08271000534296036, 0.15335975587368011, 0.11170336604118347, -0.09609562158584595, 0.28809571266174316, 0.30227917432785034, 0.27161046862602234, -0.04120809584856033, -0.2634239196777344, 0.02732967957854271, 0.15102560818195343, -0.19351306557655334, -0.1597972959280014, -0.14821238815784454, -0.23626826703548431, -0.21660096943378448, 0.4082788825035095, -0.18469160795211792, -0.3217218220233917, 0.4096512198448181, 0.29786163568496704, -0.011376883834600449, 0.007947866804897785, -0.045215290039777756, -0.3255017399787903, -0.10412232577800751, 0.04982476681470871, 0.2551295757293701, 0.28399819135665894, -0.34999212622642517, 0.10699297487735748, 0.10728137195110321, 0.022051453590393066, 0.3876902461051941, -0.22157621383666992, 0.11611663550138474, -0.1296817660331726, 0.18537884950637817, 0.0057824403047561646, -0.07984909415245056, 0.08394456654787064, 0.1168546974658966, -0.31254029273986816, -0.2929062843322754, -0.10244161635637283, -0.28814175724983215, 0.7447174191474915, 0.10936727374792099, 0.07642434537410736, 0.379209041595459, -0.27967017889022827, 0.06292201578617096, -0.26561814546585083, -0.4524499773979187, 0.3280114531517029, 0.09763983637094498, -0.1504354029893875, -0.8421244621276855, 0.3497830927371979, 0.40621495246887207, -0.3090614080429077, 0.4722379148006439, 0.4607316851615906, -0.47716161608695984, 0.31234103441238403, -0.09910284727811813, 0.9516655206680298, 0.08640727400779724, 0.2283114343881607, 0.013244382105767727, -0.5316858887672424, 0.5022185444831848, -0.262426495552063, 0.39618372917175293, -0.12457253038883209, -0.15573015809059143, -0.0686802864074707, -0.03479202836751938, 0.39763110876083374, 0.03353215008974075, 0.059210795909166336, 0.333817720413208, -0.2004823535680771, 0.41135185956954956, -0.07922935485839844, -0.024791952222585678, -0.25032368302345276, -0.2604582607746124, -0.17452716827392578, 0.034485265612602234, -0.07060766220092773, -0.19993309676647186, -0.04882115498185158, 0.3356969952583313, 0.13524232804775238, -0.0670747235417366, -0.08507273346185684, -0.11581144481897354, 0.008424613624811172, 0.2469978779554367, -0.16135376691818237, -0.4681125283241272, 0.4249531924724579, 0.179470494389534, 0.39062684774398804, 0.0929298847913742, 0.1674492508172989, 0.026537153869867325, 0.4191649556159973, 0.40186384320259094, -0.15590348839759827, 0.13857480883598328, -0.07587951421737671, 0.10742685943841934, -0.30506908893585205, 0.03567085415124893, 0.03534279391169548, -0.45859771966934204, -0.5713551044464111, -0.06470780074596405, 0.4085683822631836, -0.416519433259964, -0.02448515221476555, 0.07908079028129578, 0.4924030900001526, -0.33451148867607117, 0.08317376673221588, 0.0750214010477066, -0.17546211183071136, 0.28583618998527527, -0.2105475217103958, -0.25060510635375977, -0.057845186442136765, 0.2339567244052887, 0.2377518117427826, 0.14229799807071686, 0.5507568120956421, -0.2063746303319931, -0.33549410104751587, -0.19275477528572083, -0.040471792221069336, -0.1042962446808815, 0.001522168517112732, 0.12964892387390137, 0.040328171104192734, -0.12092994153499603, -0.02441948838531971, 0.17473924160003662, -0.5278060436248779, -0.07356288284063339, -0.09295232594013214, -0.18927247822284698, -0.27324244379997253, 0.22394652664661407, 0.2658802568912506, 0.5594626069068909, -0.040809791535139084, -0.13669507205486298, -0.37333914637565613, -0.2890707552433014, -0.26082679629325867, -0.03732813149690628, 0.06504817306995392, 0.10637383908033371, 0.6698963642120361, 0.07634575664997101, -0.29883649945259094, -0.3009093403816223, 0.06397493183612823, -0.08803535997867584, 0.20376211404800415, -0.1601819097995758, -0.1757076233625412, 0.24318942427635193, -0.16316524147987366, -0.04752233624458313, -0.1382291465997696, -0.08134663105010986, -0.2382817268371582, -0.15042106807231903, 0.26058101654052734, 0.5381369590759277, 0.20346570014953613, 0.47784894704818726, -0.30079784989356995, 0.1697971224784851, -0.09757787734270096, 0.20071305334568024, -0.0576905757188797, -0.15195609629154205, 0.3104398548603058, 0.0774412453174591, -0.19040358066558838, 0.041074201464653015, -0.0028306858148425817, 0.21702340245246887, 0.04270359128713608, 0.3202585279941559, 0.06395065784454346, 0.06936866044998169, -0.07697956264019012, 0.05230524018406868, 0.41342365741729736, 0.16088411211967468, -0.14215752482414246, -0.449631929397583, 0.2856893539428711, 0.1303279846906662, -0.33451810479164124, -0.10129059106111526, 0.16053588688373566, 0.01420733705163002, 0.21139296889305115, 0.3133372664451599, 0.09748205542564392, -0.005323179066181183, -0.27590733766555786, -0.12819284200668335, 0.6455199718475342, -0.06426069885492325, 0.040992479771375656, 0.6062200665473938, -0.1532827615737915, -0.19870732724666595, 0.18809181451797485, 0.11720423400402069, 0.09793461859226227, 0.34974807500839233, -0.04685134440660477, 0.15801213681697845, 0.38799768686294556, 0.11167009174823761, 0.01988700032234192, -0.14576801657676697, 0.10115400701761246, 0.14504706859588623, -0.2256462574005127, -0.02369023859500885, 0.06379953771829605, -0.03206893056631088, 0.06935042142868042, -0.04813079535961151, 0.13027425110340118, 0.2540806829929352, -0.02428542822599411, -0.07860609889030457, -0.3141269385814667, -0.1945212483406067, 0.11453765630722046, -0.03838753327727318, -0.11930152773857117, -0.17085765302181244, 0.5702352523803711, -0.23666982352733612, -0.022697143256664276, 0.06125843524932861, 0.3001728057861328, 0.005881797522306442, 0.31550344824790955, -0.11338570713996887, -0.4117898941040039, 0.05261298269033432, 0.12943238019943237, -0.009725302457809448, 0.31397131085395813, 0.0340714193880558, -0.1259433478116989, 0.09267349541187286, 0.1758946180343628, -0.2805301249027252, -0.008751152083277702, 0.025830693542957306, 0.26308125257492065, -0.10254880785942078, 0.15959066152572632, 0.06505312025547028, 0.08842494338750839, -0.00576820457354188, 0.005555309355258942, 0.2553309202194214, 0.25038525462150574, -0.7411247491836548, 0.4685186743736267, 0.3752901554107666, -0.37312692403793335, 0.16236484050750732, -0.2001800239086151, 0.17828133702278137, -0.23721837997436523, 0.241842120885849, -0.007058578543365002, 0.10012399405241013, -0.06079776585102081, 0.03922911733388901, -0.01989065483212471, -0.051764633506536484, 0.38985034823417664, -0.28268003463745117, -0.18859988451004028, -0.13389357924461365, -0.5899370908737183, -0.32779744267463684, -0.043194349855184555, -0.26246389746665955, 0.10144160687923431, -0.13648417592048645, 0.3645414710044861, -0.11169418692588806, 0.01047874242067337, 0.3622472882270813, -0.4522514045238495, -0.10521744191646576, -0.2024209201335907, 0.09411762654781342, -0.04464685916900635, -0.12616005539894104, 0.001406107097864151, -0.413079172372818, 0.09397640824317932, 0.3343406915664673, -0.059932153671979904, -0.04755324870347977, 0.4872458577156067, 0.006744649261236191, -0.06940850615501404, 0.2598748207092285, 0.11607982218265533, -0.0431562215089798, 0.08331170678138733, -0.18700583279132843, -0.033975888043642044, 0.06475194543600082, -0.2814200818538666, 0.20158255100250244, -0.19739346206188202, 0.08400781452655792, -0.18857240676879883, -0.050225336104631424, -0.09047514945268631, 0.6211517453193665, 0.10148316621780396, -0.11197136342525482, -0.3253534138202667, 0.015302836894989014, 0.08453185111284256, -0.00430184556171298, -0.16542837023735046, -0.08733648806810379, 0.08675801753997803, 0.18627917766571045, -0.2946028709411621, -0.07661201059818268, 0.5097774267196655, -0.07580836117267609, -0.431588739156723, -0.17141108214855194, 0.45502954721450806, 0.18141435086727142, -0.22731423377990723, -0.6395255327224731, 0.03639466315507889, 0.3131554126739502, -0.38488292694091797, -0.042189210653305054, 0.5394198894500732, -0.2789456844329834, -0.019119687378406525, 0.1054566353559494, 0.1448066234588623, 0.024328336119651794, 0.02692359872162342, 0.0033911466598510742, -0.23733089864253998 ]
https://github.com/huggingface/datasets/issues/5468
Allow opposite of remove_columns on Dataset and DatasetDict
Hey, I also want to work on this issue I am a newbie to open source.
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution -
16
Allow opposite of remove_columns on Dataset and DatasetDict ### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution - Hey, I also want to work on this issue I am a newbie to open source.
[ 0.03763004019856453, 0.2596346139907837, -0.0837274044752121, 0.017997555434703827, 0.2795129418373108, 0.04990818351507187, 0.3346914052963257, 0.14242658019065857, 0.11139383912086487, 0.4311474561691284, -0.3709099292755127, 0.21859394013881683, -0.33139386773109436, 0.33000004291534424, -0.1099061667919159, -0.10269589722156525, 0.037294596433639526, 0.2717666029930115, -0.2328244149684906, 0.0316774845123291, -0.20916754007339478, -0.1352544128894806, -0.3967999219894409, 0.17699483036994934, 0.2827242910861969, -0.16132526099681854, -0.021356800571084023, -0.3094906210899353, -0.27525967359542847, -0.07175178080797195, 0.1077822595834732, 0.33326494693756104, -0.16057653725147247, 0.26397255063056946, -0.00011759359767893329, -0.15994879603385925, -0.14724314212799072, 0.22083882987499237, -0.285026490688324, -0.05246499180793762, -0.22450169920921326, -0.06468218564987183, 0.01379777118563652, -0.2197919487953186, 0.13420158624649048, -0.319065123796463, -0.3455405831336975, -0.3617337644100189, 0.01042235642671585, 0.1987958550453186, 0.1606741100549698, 0.029122743755578995, -0.1188066303730011, 0.29381805658340454, 0.1515408754348755, 0.202564999461174, -0.32316097617149353, -0.11112938821315765, 0.0862935334444046, -0.06483735889196396, 0.3183963894844055, 0.29002127051353455, -0.5932285189628601, -0.14168128371238708, 0.15642701089382172, 0.040722500532865524, -0.2081601619720459, -0.4008253812789917, 0.09638078510761261, 0.34044596552848816, 0.7605297565460205, -0.7166983485221863, -0.2190840244293213, -0.2513175904750824, 0.16813205182552338, -0.4844394624233246, 0.018301673233509064, 0.22517558932304382, -0.010836672969162464, 0.3185846507549286, -0.3846563696861267, -0.3953630328178406, -0.08005163073539734, 0.061949729919433594, 0.1872454732656479, -0.1376391500234604, 0.16295626759529114, 0.062286943197250366, 0.16837623715400696, -0.0009526126086711884, 0.2984920144081116, -0.2579461634159088, 0.09428566694259644, 0.39187440276145935, -0.4977031350135803, -0.3408675789833069, -0.12954473495483398, -0.04731694608926773, 0.05211706459522247, 0.2782018780708313, -0.10498129576444626, -0.01307593658566475, -0.09740916639566422, 0.38580799102783203, 0.20155711472034454, 0.34041813015937805, 0.18705984950065613, 0.45340946316719055, 0.4059455394744873, 0.08120720088481903, 0.3008350431919098, 0.06985322386026382, 0.37957751750946045, 0.09245014935731888, 0.23149548470973969, 0.02910395711660385, 0.2901095747947693, -0.13433611392974854, -0.6114102005958557, 0.12295036762952805, -0.2941654622554779, -0.0643215924501419, 0.2262457311153412, -0.048676930367946625, 0.47563400864601135, 0.19476395845413208, -0.05689443275332451, 0.19591984152793884, 0.014436943456530571, 0.0004398738965392113, -0.09891261160373688, 0.2852209508419037, -0.0745294839143753, 0.06449361890554428, 0.28391698002815247, 0.19172532856464386, 0.055383749306201935, 0.3846859633922577, -0.025315865874290466, 0.04049044847488403, -0.032474201172590256, -0.26580798625946045, 0.026053354144096375, 0.13583526015281677, -0.25778642296791077, -0.06545401364564896, -0.10306976735591888, -0.12176226079463959, -0.25305649638175964, 0.2594054937362671, 0.08515487611293793, -0.1426762193441391, -0.10380908846855164, 0.14809352159500122, -0.04598911106586456, 0.014928409829735756, -0.25007712841033936, 0.15671999752521515, -0.11679587513208389, 0.10388705134391785, 0.5290193557739258, -0.16348139941692352, -0.19324113428592682, -0.02222944237291813, 0.12262129038572311, 0.2127947211265564, -0.2571803033351898, -0.01929789036512375, 0.16886061429977417, -0.32607221603393555, 0.10182569175958633, 0.26069962978363037, 0.012621795758605003, 0.05470908433198929, -0.17861275374889374, -0.3529357314109802, 0.2704150080680847, -0.28568100929260254, -0.16924956440925598, 0.0183853916823864, -0.004567354917526245, 0.2812272310256958, 0.10837382823228836, 0.14101187884807587, 0.0020120032131671906, 0.015934687107801437, 0.12915457785129547, 0.20376764237880707, 0.2551674246788025, 0.08322735875844955, 0.1164432168006897, -0.42274320125579834, 0.14449287950992584, -0.006443638354539871, -0.23860524594783783, 0.10311512649059296, 0.12228300422430038, -0.4006439447402954, 0.364141047000885, -0.24566560983657837, 0.08567790687084198, 0.15630888938903809, 0.45116111636161804, 0.13751420378684998, -0.19815726578235626, -0.4750613570213318, -0.4364222288131714, 0.08529172092676163, 0.39368823170661926, 0.005282610654830933, 0.008878350257873535, -0.3986591100692749, 0.04148387536406517, -0.022299742326140404, -0.0450097881257534, 0.18010075390338898, -0.019853003323078156, -0.37158605456352234, -0.03297634795308113, -0.002700159326195717, -0.4230421483516693, 0.4523236155509949, -0.4430185556411743, 0.33041882514953613, -0.14181312918663025, -0.13444013893604279, 0.2794649600982666, 0.1716013252735138, 0.01736321672797203, 0.4674481153488159, 0.13677623867988586, 0.17968851327896118, 0.04867181181907654, 0.5096290707588196, 0.09304556250572205, 0.04751252010464668, -0.2475546896457672, 0.439519464969635, 0.09888603538274765, 0.25689923763275146, 0.16795209050178528, -0.00043900497257709503, 0.15949933230876923, 0.01821734756231308, -0.20382454991340637, 0.19820936024188995, -0.19914475083351135, 0.29426226019859314, -0.07578033208847046, -0.15685270726680756, -0.05623749643564224, 0.027871135622262955, -0.43272924423217773, -0.2824205756187439, 0.06687647849321365, 0.05276016518473625, -0.022647785022854805, 0.08098132163286209, -0.45220109820365906, -0.261036217212677, 0.469818651676178, 0.0013766605406999588, 0.1334664523601532, 0.12484564632177353, 0.029972732067108154, 0.002065002918243408, 0.12308115512132645, 0.3653888404369354, 0.40851008892059326, 0.11755131930112839, -0.09117215871810913, 0.4462100863456726, 0.09228900074958801, -0.06803633272647858, 0.33315348625183105, 0.3432621955871582, -0.18808430433273315, 0.01614408567547798, 0.4266933500766754, 0.03961113467812538, -0.5142707824707031, -0.20211702585220337, -0.12625037133693695, 0.255217045545578, -0.2049156278371811, -0.11619146168231964, -0.3169339895248413, -0.19019317626953125, -0.10237491130828857, -0.21580350399017334, -0.2230723798274994, -0.07422014325857162, 0.12572777271270752, 0.12134943902492523, -0.2561874985694885, 0.21484801173210144, -0.4654284119606018, 0.2681037187576294, -0.3819340765476227, -0.2430342584848404, -0.0017797090113162994, 0.022532222792506218, 0.3377382755279541, 0.06648601591587067, 0.021819349378347397, -0.05661510303616524, 0.2548770010471344, 0.35971781611442566, -0.2794643044471741, -0.22053822875022888, -0.08068334311246872, 0.12876859307289124, -0.3121442198753357, 0.020484160631895065, 0.39162951707839966, -0.18767724931240082, 0.11760295927524567, -0.1921727955341339, -0.025885237380862236, -0.0763912945985794, 0.003245582804083824, 0.033678535372018814, 0.4173433780670166, 0.21163545548915863, -0.2858041822910309, -0.027316518127918243, -0.05587383359670639, -0.41503915190696716, 0.39629656076431274, -0.3092499375343323, 0.25719913840293884, 0.21927113831043243, -0.16371876001358032, -0.15406206250190735, 0.20395374298095703, 0.1287434697151184, -0.1523253619670868, -0.3677033483982086, 0.09216567128896713, 0.19536319375038147, 0.2149839550256729, -0.08933919668197632, 0.2199287861585617, 0.16233116388320923, 0.14279411733150482, -0.24162890017032623, -0.11610546708106995, -0.41250547766685486, 0.06074952706694603, 0.0037978701293468475, 0.1774183064699173, 0.2153894007205963, 0.2220512330532074, 0.05439811199903488, 0.14611968398094177, -0.123748779296875, -0.16903170943260193, 0.16881051659584045, -0.22387254238128662, 0.1928301751613617, 0.3349742591381073, -0.13060465455055237, 0.2176000028848648, -0.18535985052585602, 0.1737164855003357, 0.0840764045715332, 0.13950848579406738, 0.3544083535671234, -0.19468721747398376, -0.4947589635848999, 0.03731722757220268, -0.041706383228302, -0.19996827840805054, 0.060903165489435196, -0.06272461265325546, -0.1441749632358551, -0.12194549292325974, 0.09210753440856934, 0.08563759177923203, -0.2743242383003235, -0.01083417423069477, -0.32921892404556274, 0.11573447287082672, 0.19880761206150055, 0.2003495991230011, 0.042533647269010544, -0.13869664072990417, 0.06702697277069092, -0.04612267017364502, 0.2068282961845398, -0.3019593060016632, -0.7073432207107544, -0.10277093946933746, -0.45825761556625366, 0.3856716752052307, -0.0808454379439354, 0.1636212319135666, 0.1192842572927475, -0.05742214620113373, 0.2578241229057312, 0.3273451626300812, 0.28797098994255066, -0.06199876219034195, -0.2503436207771301, -0.012343067675828934, 0.12543398141860962, -0.2093362957239151, -0.17246009409427643, -0.15103648602962494, -0.25464963912963867, -0.2376820296049118, 0.4309419095516205, -0.1812962293624878, -0.3063022792339325, 0.37853386998176575, 0.31651461124420166, -0.010379958897829056, 0.008412233553826809, -0.06074628233909607, -0.3003734052181244, -0.10092304646968842, 0.0793110653758049, 0.23450632393360138, 0.26947179436683655, -0.36000069975852966, 0.07789866626262665, 0.11082931607961655, 0.02738303691148758, 0.3728821873664856, -0.18186208605766296, 0.1410723328590393, -0.14568102359771729, 0.18836665153503418, 0.0169201772660017, -0.10145027935504913, 0.08282694220542908, 0.11527442187070847, -0.302925169467926, -0.3172038197517395, -0.12574517726898193, -0.2742517590522766, 0.7406108975410461, 0.029344089329242706, 0.07713086158037186, 0.39432471990585327, -0.2960737645626068, 0.03948182240128517, -0.2344331294298172, -0.44371727108955383, 0.3285388648509979, 0.10701941698789597, -0.1703667938709259, -0.8400729298591614, 0.3549153506755829, 0.4214024841785431, -0.29778656363487244, 0.4789591431617737, 0.4084780812263489, -0.48606446385383606, 0.3151020407676697, -0.08530821651220322, 0.9014065265655518, 0.06776196509599686, 0.20481158792972565, 0.0012646634131669998, -0.5177589058876038, 0.5229038000106812, -0.2684178948402405, 0.3959416151046753, -0.12756992876529694, -0.14231599867343903, -0.07870938628911972, -0.03156019747257233, 0.3640035092830658, 0.029326055198907852, 0.039977628737688065, 0.3610321879386902, -0.19261935353279114, 0.4049505591392517, -0.07965655624866486, 0.004093922674655914, -0.2653209865093231, -0.2859902083873749, -0.18623696267604828, 0.030857544392347336, -0.11634370684623718, -0.21672594547271729, -0.03937220573425293, 0.3406316637992859, 0.1753837913274765, -0.043363168835639954, -0.09056568145751953, -0.07430046051740646, 0.010989638045430183, 0.26793020963668823, -0.15994732081890106, -0.4566585421562195, 0.4118436276912689, 0.19084663689136505, 0.3755302429199219, 0.12356950342655182, 0.15927857160568237, 0.050439782440662384, 0.41069191694259644, 0.4322751760482788, -0.14492975175380707, 0.13634498417377472, -0.06058282405138016, 0.11766230314970016, -0.31539756059646606, 0.03027181699872017, 0.0415428951382637, -0.45160621404647827, -0.5057239532470703, -0.0861043930053711, 0.3880167603492737, -0.4045643210411072, -0.01334991492331028, 0.06096440181136131, 0.47459685802459717, -0.35257747769355774, 0.07343944907188416, 0.04212013632059097, -0.20976069569587708, 0.28702661395072937, -0.20110081136226654, -0.2535737156867981, -0.05050985887646675, 0.2483830451965332, 0.23708796501159668, 0.17329393327236176, 0.5402865409851074, -0.19920885562896729, -0.3257717490196228, -0.1931951642036438, -0.020026497542858124, -0.0856681615114212, 0.03119169920682907, 0.14732803404331207, 0.04145149141550064, -0.1265367865562439, -0.0060920100659132, 0.1471521407365799, -0.5584945678710938, -0.07305314391851425, -0.09237051010131836, -0.2051866203546524, -0.2912702262401581, 0.22169135510921478, 0.26596224308013916, 0.5821661353111267, -0.025871431455016136, -0.13693666458129883, -0.3763197362422943, -0.30030006170272827, -0.24717549979686737, -0.055507779121398926, 0.06796379387378693, 0.11370081454515457, 0.6237738132476807, 0.10287737846374512, -0.29519322514533997, -0.29423436522483826, 0.05349140614271164, -0.06887316703796387, 0.22089239954948425, -0.14992192387580872, -0.21652379631996155, 0.23474907875061035, -0.17102578282356262, -0.01106327399611473, -0.1505713015794754, -0.09262076020240784, -0.2390100061893463, -0.18690000474452972, 0.258257120847702, 0.5365440845489502, 0.18979984521865845, 0.5015963912010193, -0.27165383100509644, 0.1334134042263031, -0.07528257369995117, 0.18842877447605133, -0.08111554384231567, -0.19695980846881866, 0.31081709265708923, 0.08547290414571762, -0.18671387434005737, 0.027640894055366516, 0.014245394617319107, 0.20595607161521912, 0.04690052941441536, 0.2947925627231598, 0.04164048284292221, 0.09642520546913147, -0.09036518633365631, 0.04660557955503464, 0.4294593632221222, 0.17279751598834991, -0.13465680181980133, -0.43652087450027466, 0.2955179810523987, 0.12612813711166382, -0.3533729612827301, -0.1318557858467102, 0.1632034331560135, 0.034010712057352066, 0.20941713452339172, 0.2887136936187744, 0.06454150378704071, -0.01796071231365204, -0.25285202264785767, -0.11709138005971909, 0.6275485157966614, -0.09871667623519897, 0.06788010895252228, 0.6037500500679016, -0.12996259331703186, -0.21804319322109222, 0.19634972512722015, 0.07899567484855652, 0.12643210589885712, 0.37315094470977783, -0.05056043714284897, 0.13794289529323578, 0.3711840510368347, 0.09867542237043381, 0.041667044162750244, -0.12560440599918365, 0.06076940894126892, 0.12873893976211548, -0.24522480368614197, -0.017449140548706055, 0.07292206585407257, -0.01975848525762558, 0.06653701514005661, -0.07549497485160828, 0.12832297384738922, 0.28312233090400696, -0.010534007102251053, -0.08014577627182007, -0.30736517906188965, -0.17510294914245605, 0.14775694906711578, -0.029578998684883118, -0.09005717933177948, -0.17317427694797516, 0.5682558417320251, -0.21301151812076569, -0.0018847137689590454, 0.039389245212078094, 0.31818532943725586, 0.04166904091835022, 0.3047710657119751, -0.1264718621969223, -0.4172804653644562, 0.08035404235124588, 0.11329790949821472, -0.02311856672167778, 0.2962919771671295, 0.01907164230942726, -0.1389140784740448, 0.07377327233552933, 0.17596328258514404, -0.2832142114639282, 0.0031541138887405396, 0.023148957639932632, 0.24962186813354492, -0.09420706331729889, 0.13395939767360687, 0.08310151100158691, 0.08427082002162933, 0.0005483292043209076, 0.0035872720181941986, 0.2457427978515625, 0.2615443468093872, -0.7141713500022888, 0.4742809236049652, 0.4296167194843292, -0.3733656108379364, 0.157250314950943, -0.1845962107181549, 0.17510473728179932, -0.23401355743408203, 0.2503328025341034, 0.00035367649979889393, 0.0919610857963562, -0.059990350157022476, 0.03794632479548454, -0.0070246439427137375, -0.04589320346713066, 0.38736608624458313, -0.2856511175632477, -0.17024528980255127, -0.11834258586168289, -0.5804789066314697, -0.3364903926849365, -0.06976009905338287, -0.27336299419403076, 0.11188607662916183, -0.15158797800540924, 0.3415895998477936, -0.10670885443687439, 0.011979803442955017, 0.4114633798599243, -0.45274263620376587, -0.11793772876262665, -0.21226611733436584, 0.07875582575798035, -0.05166521668434143, -0.1108294427394867, 0.009462997317314148, -0.4027273654937744, 0.08391669392585754, 0.3043949007987976, -0.06956150382757187, -0.04065598547458649, 0.47565609216690063, 0.025009073317050934, -0.07157708704471588, 0.2583079934120178, 0.1284189075231552, -0.03884154558181763, 0.06320490688085556, -0.14155283570289612, -0.031002026051282883, 0.04084969684481621, -0.288882851600647, 0.16942906379699707, -0.17567433416843414, 0.11806681752204895, -0.1824474185705185, -0.03914223983883858, -0.10947997123003006, 0.6309816241264343, 0.08761616051197052, -0.13813327252864838, -0.3112175166606903, 0.0232741367071867, 0.11173111945390701, 0.022491712123155594, -0.19595378637313843, -0.10123177617788315, 0.058746106922626495, 0.19404518604278564, -0.26454776525497437, -0.10589385032653809, 0.5045344829559326, -0.07712769508361816, -0.40716832876205444, -0.16989149153232574, 0.4576951861381531, 0.16354987025260925, -0.2425927221775055, -0.6258459687232971, 0.052951835095882416, 0.3003046214580536, -0.3701474368572235, -0.03150782734155655, 0.5309561491012573, -0.2757243514060974, 0.027766864746809006, 0.08598148822784424, 0.14769890904426575, 0.07438276708126068, 0.028389757499098778, 0.0202900730073452, -0.2404981404542923 ]
https://github.com/huggingface/datasets/issues/5468
Allow opposite of remove_columns on Dataset and DatasetDict
This sounds related to https://github.com/huggingface/datasets/issues/5474 I'm fine with `select_columns`, or we could also override `select` to also accept a list of columns maybe ?
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution -
24
Allow opposite of remove_columns on Dataset and DatasetDict ### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution - This sounds related to https://github.com/huggingface/datasets/issues/5474 I'm fine with `select_columns`, or we could also override `select` to also accept a list of columns maybe ?
[ 0.05046708509325981, 0.11157144606113434, -0.08281193673610687, 0.02393627166748047, 0.3661220073699951, 0.15828946232795715, 0.27888646721839905, 0.18231338262557983, 0.22172625362873077, 0.39142513275146484, -0.4084475636482239, 0.21928197145462036, -0.3540952205657959, 0.2896232604980469, -0.07614713162183762, -0.16945509612560272, 0.008280269801616669, 0.20021413266658783, -0.2146764099597931, 0.06084372103214264, -0.25787949562072754, -0.018706561997532845, -0.2899872362613678, 0.08474059402942657, 0.16672779619693756, -0.13143481314182281, 0.006816064938902855, -0.21595847606658936, -0.22126881778240204, -0.10544895380735397, 0.12240798771381378, 0.3110522925853729, -0.1530771404504776, 0.20497307181358337, -0.0001144456400652416, -0.11017048358917236, -0.17169567942619324, 0.16880205273628235, -0.366727352142334, -0.14804716408252716, -0.19745108485221863, -0.025083579123020172, 0.06733167916536331, -0.1775279939174652, 0.04898998141288757, -0.27113738656044006, -0.3711322844028473, -0.25580674409866333, 0.02485010027885437, 0.2201351523399353, 0.20507462322711945, 0.2205064743757248, -0.14744670689105988, 0.16314472258090973, 0.09709876775741577, 0.22096315026283264, -0.3377343714237213, 0.0321689248085022, 0.10457688570022583, -0.026887474581599236, 0.31235283613204956, 0.2605322599411011, -0.5110653042793274, -0.09136845171451569, 0.12946632504463196, 0.09980001300573349, -0.2364518642425537, -0.36169490218162537, 0.16993340849876404, 0.39353635907173157, 0.606927752494812, -0.6721658110618591, -0.28056174516677856, -0.3569279909133911, 0.17865344882011414, -0.5159915089607239, 0.0035479068756103516, 0.18682456016540527, -0.003017660230398178, 0.30342021584510803, -0.37877097725868225, -0.3115518093109131, 0.016611695289611816, 0.0042035579681396484, 0.17907029390335083, -0.1621459722518921, 0.03678782284259796, 0.04611939936876297, 0.2898065447807312, 0.03477378562092781, 0.06087527424097061, -0.18457823991775513, 0.11858680844306946, 0.3723721206188202, -0.5130573511123657, -0.3354586064815521, -0.09392554312944412, 0.08383537083864212, 0.1261155903339386, 0.3108316659927368, -0.12820589542388916, -0.01476786658167839, -0.060158684849739075, 0.3340572118759155, 0.26825398206710815, 0.3111485540866852, 0.23901966214179993, 0.24992679059505463, 0.33651667833328247, 0.21032944321632385, 0.32924172282218933, 0.049306221306324005, 0.3436647951602936, 0.09528922289609909, 0.13855589926242828, -0.054967574775218964, 0.30579042434692383, -0.14022287726402283, -0.616858720779419, 0.15475451946258545, -0.1528833955526352, -0.04808126017451286, 0.27055326104164124, 0.10732295364141464, 0.39350640773773193, 0.13821446895599365, -0.08676434308290482, 0.241325244307518, 0.03988095372915268, 0.021950606256723404, -0.19788366556167603, 0.2717873454093933, 0.00041807815432548523, 0.03734944015741348, 0.26140984892845154, 0.05058936029672623, 0.08878564834594727, 0.3238550126552582, 0.058413177728652954, 0.08094009757041931, -0.1619163602590561, -0.2803613841533661, 0.018270403146743774, 0.25987353920936584, -0.17101158201694489, 0.03293914347887039, -0.032906848937273026, -0.18185210227966309, -0.2592199444770813, 0.2568843960762024, 0.12292077392339706, -0.20061157643795013, -0.1026144027709961, 0.15263649821281433, -0.10016270726919174, -0.04481637477874756, -0.31446534395217896, 0.2518642544746399, -0.11983393877744675, 0.19557537138462067, 0.4309461712837219, -0.08070290088653564, -0.20882807672023773, -0.06730280816555023, 0.17865093052387238, 0.19380497932434082, -0.32431653141975403, -0.060570865869522095, 0.19384963810443878, -0.3936004340648651, 0.0008109956979751587, 0.29833635687828064, 0.033478058874607086, 0.0015485882759094238, -0.13665871322155, -0.2892093062400818, 0.15384620428085327, -0.16668325662612915, -0.13933438062667847, 0.022099414840340614, 0.025945313274860382, 0.3437550663948059, 0.0560232549905777, 0.09697374701499939, -0.0374976322054863, -0.008630773983895779, 0.15080687403678894, 0.10421425104141235, 0.19568270444869995, 0.07212315499782562, 0.15408827364444733, -0.4421823024749756, 0.13344410061836243, 0.053468506783246994, -0.2652602195739746, 0.1383955031633377, 0.003128848969936371, -0.307181715965271, 0.4078536927700043, -0.18471363186836243, 0.023615196347236633, 0.25724416971206665, 0.43607181310653687, 0.1818091869354248, -0.21678929030895233, -0.5204150080680847, -0.5933797359466553, 0.14666742086410522, 0.4414832592010498, 0.03033052757382393, -0.03409112989902496, -0.4258960485458374, -0.0034350287169218063, 0.007543131709098816, -0.04816485568881035, 0.18649634718894958, 0.015420559793710709, -0.39472123980522156, 0.11673206090927124, 0.011951912194490433, -0.5153084993362427, 0.38687166571617126, -0.43398091197013855, 0.2868075966835022, -0.2834663689136505, -0.07536208629608154, 0.2345181703567505, 0.13291721045970917, -0.0079570971429348, 0.4643758237361908, 0.1439577341079712, 0.12954455614089966, 0.10858908295631409, 0.44959530234336853, 0.09634692966938019, 0.026771120727062225, -0.2834126949310303, 0.4033815860748291, 0.11217285692691803, 0.32771268486976624, 0.03214613348245621, -0.07718309760093689, 0.142940491437912, 0.07801412791013718, -0.2545646131038666, 0.18926267325878143, -0.24882711470127106, 0.3184473216533661, -0.027453241869807243, -0.09427735954523087, -0.0025432631373405457, 0.03412279859185219, -0.41794049739837646, -0.33120959997177124, 0.08702230453491211, -0.005454817786812782, -0.013322843238711357, 0.05457125976681709, -0.5930219292640686, -0.21173062920570374, 0.41334664821624756, 0.010598871856927872, 0.04183684661984444, 0.1098707914352417, 0.005652241408824921, 0.05496513843536377, 0.16457097232341766, 0.26085400581359863, 0.4295843839645386, 0.12246572971343994, -0.05918489024043083, 0.3604239225387573, 0.06346072256565094, -0.06341336667537689, 0.334651380777359, 0.3692604899406433, -0.21415063738822937, 0.03429831564426422, 0.38120806217193604, -0.006975510157644749, -0.6183626055717468, -0.02150883898139, -0.1544611155986786, 0.2530311346054077, -0.2664587199687958, -0.127945676445961, -0.31806498765945435, -0.25879770517349243, -0.0330970399081707, -0.20811985433101654, -0.2331828474998474, -0.13790501654148102, 0.13435274362564087, 0.22687755525112152, -0.32370373606681824, 0.18880757689476013, -0.45512819290161133, 0.22015434503555298, -0.358976274728775, -0.1762027144432068, -0.08658429235219955, 0.057192858308553696, 0.3413165807723999, 0.10070571303367615, -0.002504190430045128, -0.05071435123682022, 0.25754624605178833, 0.3486763834953308, -0.3729182481765747, -0.26457810401916504, -0.08146364241838455, 0.16923941671848297, -0.4107394218444824, 0.1257319152355194, 0.3672005236148834, -0.015802189707756042, 0.02840740978717804, -0.22323870658874512, 0.10406448692083359, -0.007810533046722412, -0.009625260718166828, 0.05266232043504715, 0.45476284623146057, 0.22971130907535553, -0.21074619889259338, -0.03677105903625488, -0.019767777994275093, -0.4274514615535736, 0.483150839805603, -0.2384999543428421, 0.1817992925643921, 0.25242477655410767, -0.18559934198856354, -0.09376451373100281, 0.016814280301332474, 0.08295220136642456, -0.2792990207672119, -0.35890519618988037, 0.13751761615276337, 0.1783258318901062, 0.08479906618595123, -0.0714091956615448, 0.19334501028060913, 0.08789235353469849, 0.05546501651406288, -0.16380265355110168, -0.24454616010189056, -0.41526806354522705, 0.01149912178516388, 0.09979520738124847, 0.15794327855110168, 0.240906223654747, 0.120480015873909, 0.05503315478563309, 0.12595930695533752, -0.1533260941505432, -0.09631336480379105, 0.2103937566280365, -0.22650209069252014, 0.13700570166110992, 0.3682440221309662, -0.05594031512737274, 0.22401124238967896, -0.03266835957765579, 0.2425433099269867, 0.1363714039325714, 0.030124008655548096, 0.4265879690647125, -0.2521373927593231, -0.5095855593681335, 0.021567927673459053, -0.03932756185531616, -0.14051176607608795, 0.09458118677139282, -0.023080438375473022, 0.03772304579615593, -0.13977062702178955, 0.2346518635749817, 0.09718143194913864, -0.3151788115501404, 0.03865223005414009, -0.2106407880783081, 0.07183098793029785, 0.18607616424560547, 0.20417219400405884, 0.10180893540382385, -0.10012245923280716, 0.044991567730903625, 0.008179940283298492, 0.2560432553291321, -0.2668844759464264, -0.7161021828651428, -0.06960348039865494, -0.574906051158905, 0.4099358320236206, -0.0607035793364048, 0.14278969168663025, 0.05879605934023857, -0.17075133323669434, 0.2692773640155792, 0.3192608952522278, 0.3702346086502075, -0.06117144972085953, -0.313626229763031, 0.017615776509046555, -0.036404646933078766, -0.31899046897888184, -0.09382081031799316, -0.17836038768291473, -0.20794151723384857, -0.25270500779151917, 0.4359952509403229, -0.2837054431438446, -0.3421599864959717, 0.36770743131637573, 0.35900455713272095, -0.04158902168273926, 0.02486753836274147, -0.12642836570739746, -0.3132097125053406, -0.12653827667236328, 0.08363354206085205, 0.23024339973926544, 0.23475311696529388, -0.26558756828308105, 0.11675910651683807, 0.10786138474941254, -0.08108632266521454, 0.3457227945327759, -0.13542713224887848, 0.1664552390575409, -0.09203588217496872, 0.27298471331596375, 0.11314500868320465, -0.07991008460521698, 0.03090512566268444, 0.2865922749042511, -0.3747931122779846, -0.3765035569667816, -0.13126254081726074, -0.22450509667396545, 0.7349722981452942, 0.12828251719474792, 0.027031004428863525, 0.416486918926239, -0.16573870182037354, 0.058593183755874634, -0.2967606782913208, -0.41464194655418396, 0.4021901786327362, 0.03706611692905426, -0.13341771066188812, -0.6954067945480347, 0.4094020128250122, 0.37248796224594116, -0.24882160127162933, 0.35640549659729004, 0.5295102000236511, -0.42356905341148376, 0.23362238705158234, -0.12349686771631241, 0.913112223148346, 0.03694706782698631, 0.19070833921432495, 0.08760145306587219, -0.37969571352005005, 0.5617026686668396, -0.12973132729530334, 0.3447737693786621, -0.19470638036727905, -0.21434563398361206, -0.07039898633956909, -0.020388595759868622, 0.34387025237083435, 0.024908455088734627, 0.10692982375621796, 0.3511328101158142, -0.2374267876148224, 0.4085085093975067, -0.11851443350315094, -0.04588752239942551, -0.3719066381454468, -0.3077755570411682, -0.2980825901031494, 0.0624726265668869, -0.12248902022838593, -0.17051072418689728, 0.0013216007500886917, 0.3718256950378418, 0.21943363547325134, -0.17732080817222595, -0.13255923986434937, -0.15979847311973572, -0.04840981587767601, 0.16825763881206512, -0.052156608551740646, -0.48652130365371704, 0.33762219548225403, 0.1685805469751358, 0.29021239280700684, 0.07488754391670227, 0.10976821184158325, 0.0968412309885025, 0.24746865034103394, 0.4100610017776489, -0.17999880015850067, 0.09108822047710419, 0.009516827762126923, 0.14775237441062927, -0.21496132016181946, -0.007377825677394867, 0.05246977508068085, -0.38537120819091797, -0.5348098278045654, 0.006562814116477966, 0.21925057470798492, -0.444629043340683, -0.20545276999473572, -0.02443493902683258, 0.4906560182571411, -0.36165642738342285, 0.09419183433055878, 0.02584407851099968, -0.19610394537448883, 0.26531174778938293, -0.17234328389167786, -0.13422146439552307, -0.08619445562362671, 0.4018543064594269, 0.11747196316719055, 0.08993780612945557, 0.47714799642562866, -0.07281994819641113, -0.3466761112213135, -0.19229063391685486, -0.09734876453876495, 0.01824253425002098, -0.05787289887666702, 0.21105585992336273, 0.08825511485338211, -0.08679945766925812, -0.05392200127243996, 0.2166052907705307, -0.48611897230148315, -0.20034006237983704, -0.0772106871008873, -0.14306047558784485, -0.2758435904979706, 0.3471798896789551, 0.3296842575073242, 0.5235734581947327, 0.002973359078168869, -0.12894631922245026, -0.3600245714187622, -0.3120783567428589, -0.27259698510169983, -0.06653787940740585, -0.014422116801142693, 0.02749481238424778, 0.6300430297851562, 0.08177723735570908, -0.10549493134021759, -0.3266686499118805, 0.11763611435890198, 0.020335882902145386, 0.19611649215221405, -0.2062283754348755, -0.26656374335289, 0.20252449810504913, -0.09103333204984665, -0.013250306248664856, -0.13980357348918915, -0.013754567131400108, -0.22342589497566223, -0.22975501418113708, 0.3255075514316559, 0.566748321056366, 0.19873090088367462, 0.40501755475997925, -0.20754416286945343, 0.10094645619392395, 0.01204712688922882, 0.15405184030532837, -0.09640449285507202, -0.1529863029718399, 0.3827672302722931, -0.0016959719359874725, -0.23581548035144806, 0.06279037892818451, 0.042775776237249374, 0.2697148621082306, 0.08247879147529602, 0.17843061685562134, 0.01734885200858116, 0.09776602685451508, -0.09363579750061035, 0.050878576934337616, 0.513662576675415, 0.1953725963830948, -0.10176386684179306, -0.356290340423584, 0.29251542687416077, 0.15890444815158844, -0.37322548031806946, -0.16952379047870636, 0.13215108215808868, 0.06700815260410309, 0.2747077941894531, 0.32025837898254395, 0.06577882170677185, 0.05244925618171692, -0.1460363268852234, -0.14356935024261475, 0.6078899502754211, -0.0946706235408783, 0.0523015595972538, 0.6429073214530945, -0.08960048854351044, -0.20604701340198517, 0.21090729534626007, 0.1441177874803543, 0.19205865263938904, 0.3452529311180115, -0.12619531154632568, 0.16896122694015503, 0.21014979481697083, 0.060716111212968826, 0.14522475004196167, -0.25544992089271545, 0.07784240692853928, 0.07615096122026443, -0.26014479994773865, -0.09999125450849533, -0.001258663833141327, 0.17924222350120544, -0.00874426867812872, -0.05502241477370262, 0.05519753694534302, 0.28864872455596924, -0.05980990082025528, -0.1370304822921753, -0.1844095140695572, -0.1911463439464569, 0.12611612677574158, -0.011220268905162811, -0.09836725890636444, -0.31186312437057495, 0.563165545463562, -0.286138653755188, 0.07199227064847946, -0.11904841661453247, 0.20626887679100037, -0.026410631835460663, 0.264794260263443, -0.049759916961193085, -0.30361267924308777, 0.12446840107440948, 0.10338373482227325, 0.0024896301329135895, 0.2054693102836609, 0.009748715907335281, -0.24616900086402893, 0.17461372911930084, 0.16899597644805908, -0.34502631425857544, -0.0041964855045080185, -0.0035630548372864723, 0.29385942220687866, -0.12586764991283417, 0.19213572144508362, 0.16348609328269958, 0.12472940981388092, -0.04590455815196037, -0.041357334703207016, 0.1641473025083542, 0.2952830493450165, -0.7476555705070496, 0.529441773891449, 0.2906785309314728, -0.32715317606925964, 0.15404251217842102, -0.25525254011154175, 0.13185319304466248, -0.1708892285823822, 0.1800617277622223, 0.0674411728978157, 0.12652868032455444, -0.01443298440426588, 0.06038833409547806, 0.06993728876113892, 0.005569286644458771, 0.2865053713321686, -0.28558337688446045, -0.0967811793088913, -0.0651833787560463, -0.6108815670013428, -0.38951990008354187, -0.0359845869243145, -0.15904003381729126, 0.10735490173101425, -0.12400245666503906, 0.34202516078948975, -0.02669420838356018, -0.014729827642440796, 0.34441834688186646, -0.3522320091724396, -0.14674408733844757, -0.13116589188575745, 0.037456415593624115, -0.026146970689296722, -0.11056356132030487, 0.024786800146102905, -0.32029521465301514, 0.11299770325422287, 0.3583933711051941, -0.07081402093172073, -0.1780647188425064, 0.46830999851226807, -0.08569513261318207, -0.09804540872573853, 0.17560330033302307, 0.154147669672966, -0.017747491598129272, 0.04886440932750702, -0.11106326431035995, -0.08734849095344543, -0.017288116738200188, -0.2511064112186432, 0.13343468308448792, -0.17292474210262299, 0.20233052968978882, -0.1273324191570282, -0.12028950452804565, -0.10520178079605103, 0.5314516425132751, 0.10434256494045258, -0.11463799327611923, -0.3314746022224426, 0.09765731543302536, 0.09154065698385239, 0.10216284543275833, -0.12186134606599808, 0.003282308578491211, 0.05029992386698723, 0.23648174107074738, -0.257948100566864, -0.2088073194026947, 0.5767045617103577, -0.07636447995901108, -0.4125042259693146, -0.11396317183971405, 0.3854020833969116, 0.1970895379781723, -0.3491275906562805, -0.6205137968063354, 0.01692935824394226, 0.23398847877979279, -0.4150804281234741, -0.03770867735147476, 0.5333112478256226, -0.31138381361961365, -0.03312305733561516, 0.05488794669508934, 0.21946130692958832, 0.1625199317932129, 0.009810274466872215, 0.0746651291847229, -0.27080076932907104 ]
https://github.com/huggingface/datasets/issues/5468
Allow opposite of remove_columns on Dataset and DatasetDict
@lhoestq, I am planning to add a member function to the dataset class to perform the selection operation. Do you think its the right way to proceed? or there is a better option ?
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution -
34
Allow opposite of remove_columns on Dataset and DatasetDict ### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution - @lhoestq, I am planning to add a member function to the dataset class to perform the selection operation. Do you think its the right way to proceed? or there is a better option ?
[ 0.052459683269262314, 0.3182418942451477, -0.07823818922042847, 0.009625442326068878, 0.16037358343601227, 0.07437034696340561, 0.2912677228450775, 0.1360299438238144, 0.11689557135105133, 0.47716212272644043, -0.31609871983528137, 0.23639073967933655, -0.3058529198169708, 0.2343320995569229, -0.059541791677474976, -0.09228464961051941, -0.02313423901796341, 0.34123265743255615, -0.21281802654266357, -0.02465348318219185, -0.306327223777771, -0.21112698316574097, -0.3941400647163391, 0.17089128494262695, 0.24301336705684662, -0.17132851481437683, 0.05120095610618591, -0.1860603392124176, -0.22710980474948883, 0.0031148502603173256, 0.1609710305929184, 0.3257805407047272, -0.17932723462581635, 0.1976175308227539, -0.00011635103146545589, -0.20390918850898743, -0.14831966161727905, 0.21087205410003662, -0.358335942029953, -0.0016257315874099731, -0.24917510151863098, -0.022997792810201645, 0.02258656919002533, -0.29789239168167114, 0.17289045453071594, -0.19195960462093353, -0.35869452357292175, -0.3378629684448242, -0.06520754098892212, 0.2592911124229431, 0.18950507044792175, 0.08091934025287628, -0.2660301923751831, 0.2116342931985855, 0.08792392909526825, 0.29511234164237976, -0.29696714878082275, -0.13639187812805176, 0.10562165081501007, -0.10885611921548843, 0.32074010372161865, 0.24672158062458038, -0.5265244245529175, -0.2361721247434616, 0.25834283232688904, 0.04866938665509224, -0.22596636414527893, -0.4049152433872223, 0.07509712874889374, 0.2144809067249298, 0.805489182472229, -0.6813516616821289, -0.15171091258525848, -0.28213152289390564, 0.21252141892910004, -0.42596885561943054, 0.02119649574160576, 0.06970932334661484, -0.06713221967220306, 0.2549886107444763, -0.3495497405529022, -0.415351539850235, -0.032382700592279434, 0.05002903193235397, 0.2782325744628906, -0.122685506939888, 0.16669440269470215, 0.1405937671661377, 0.13672815263271332, 0.0645318478345871, 0.2895086109638214, -0.3010631501674652, 0.14991332590579987, 0.37043777108192444, -0.46097975969314575, -0.3634812533855438, -0.129006028175354, 0.0681082010269165, -0.011147154495120049, 0.28132879734039307, -0.11941090226173401, 0.009833412244915962, 0.012525779195129871, 0.3459867238998413, 0.30845963954925537, 0.3071083128452301, 0.248975932598114, 0.4397875666618347, 0.2480446696281433, 0.10723619908094406, 0.24957165122032166, 0.0998065322637558, 0.4384523630142212, 0.07747446000576019, 0.4107183516025543, 0.06666738539934158, 0.17198915779590607, -0.15635447204113007, -0.6442652940750122, 0.22587919235229492, -0.23900297284126282, -0.083866648375988, 0.23286627233028412, 0.05772445350885391, 0.45902395248413086, 0.1607486605644226, -0.053865525871515274, 0.1489594578742981, -0.03163345158100128, 0.07092636078596115, -0.09920229762792587, 0.3699936270713806, 0.0007304251194000244, 0.033314298838377, 0.20056036114692688, 0.2836647927761078, -0.02884655073285103, 0.2825404107570648, 0.197127565741539, 0.1288319230079651, -0.09848600625991821, -0.3667016327381134, 0.05153702571988106, 0.2072262465953827, -0.19852900505065918, 0.0072240568697452545, -0.1001119464635849, -0.1665952205657959, -0.24326080083847046, 0.37967535853385925, 0.20119211077690125, -0.1977788209915161, -0.01514706201851368, 0.12916171550750732, -0.03307235985994339, -0.013488911092281342, -0.33583322167396545, 0.25156354904174805, -0.13911211490631104, 0.07474967837333679, 0.4984881579875946, -0.27009284496307373, -0.29509976506233215, -0.08909658342599869, 0.09319135546684265, 0.23311573266983032, -0.40842828154563904, -0.06768245249986649, 0.13008788228034973, -0.3550969660282135, 0.09606998413801193, 0.15111935138702393, -0.0684477835893631, 0.08309421688318253, -0.17145204544067383, -0.23983457684516907, 0.35706645250320435, -0.2208143174648285, -0.27219080924987793, 0.029116766527295113, -0.07028795778751373, 0.34431034326553345, 0.055809009820222855, 0.15954312682151794, -0.06452178210020065, -0.07053285092115402, 0.06756172329187393, 0.22522138059139252, 0.17224568128585815, 0.09645480662584305, 0.13943630456924438, -0.3704703748226166, 0.24299612641334534, 0.028596829622983932, -0.14419421553611755, 0.1427849680185318, 0.07077831029891968, -0.3512464463710785, 0.4296850562095642, -0.21809452772140503, 0.12158647924661636, 0.19251757860183716, 0.5464165806770325, 0.12072955071926117, -0.2061752825975418, -0.5199713706970215, -0.5476607084274292, 0.15112847089767456, 0.4509332776069641, 0.03484246879816055, 0.07147828489542007, -0.37008577585220337, -0.01545973401516676, -0.016158495098352432, -0.1297473907470703, 0.26711973547935486, -0.01615419052541256, -0.35615164041519165, 0.03857475891709328, -0.08753012865781784, -0.4135412573814392, 0.42590105533599854, -0.5071057081222534, 0.29370906949043274, -0.09471540153026581, -0.074003666639328, 0.2819300591945648, 0.1341879516839981, -0.10019554197788239, 0.3182632327079773, 0.1334148347377777, 0.15769991278648376, -0.04037219285964966, 0.4207305908203125, 0.10645006597042084, -0.08135077357292175, -0.3164239823818207, 0.3155920207500458, 0.05892482399940491, 0.29961371421813965, 0.05888781696557999, -0.0186903178691864, 0.19121792912483215, 0.04285961389541626, -0.20462796092033386, 0.20572976768016815, -0.2195931226015091, 0.3552664816379547, -0.06678083539009094, -0.1468995064496994, -0.1606891006231308, 0.11283132433891296, -0.3730071783065796, -0.21686425805091858, -0.026249077171087265, 0.13238994777202606, -0.0027217306196689606, 0.09356291592121124, -0.5230522155761719, -0.21006923913955688, 0.38461029529571533, 0.025401320308446884, 0.08512021601200104, 0.14241811633110046, 0.11876951158046722, 0.07594052702188492, 0.10790746659040451, 0.42036619782447815, 0.5483326315879822, 0.021664340049028397, -0.03436629846692085, 0.367170512676239, 0.11676737666130066, 0.010800918564200401, 0.32051125168800354, 0.4110364317893982, -0.036472219973802567, 0.006757449358701706, 0.3183806240558624, 0.007106807082891464, -0.49418869614601135, -0.12425622344017029, -0.08492601662874222, 0.16377171874046326, -0.21260058879852295, -0.0873434841632843, -0.1604323536157608, -0.19935256242752075, -0.03450533747673035, -0.24287067353725433, -0.15840484201908112, -0.12479473650455475, 0.10373026132583618, 0.07347139716148376, -0.29012632369995117, 0.17779196798801422, -0.4524880647659302, 0.2948229908943176, -0.4069928824901581, -0.3075806498527527, 0.08118648827075958, 0.18352597951889038, 0.25839632749557495, 0.07436597347259521, -0.009744726121425629, 0.11151885986328125, 0.17341205477714539, 0.4309788644313812, -0.293968141078949, -0.22980903089046478, 0.017074890434741974, 0.1485869586467743, -0.36282026767730713, 0.16223487257957458, 0.39930039644241333, -0.19346989691257477, 0.02403479814529419, -0.2097245305776596, -0.004829430487006903, -0.05192699283361435, 0.057558268308639526, -0.11255818605422974, 0.43008509278297424, 0.22279343008995056, -0.19266386330127716, -0.05234067887067795, -0.21535219252109528, -0.3275160491466522, 0.3715478777885437, -0.16153977811336517, 0.2793298363685608, 0.12411506474018097, -0.20554591715335846, -0.22748494148254395, 0.2556301951408386, 0.14440692961215973, -0.21753519773483276, -0.3627384603023529, 0.028687044978141785, 0.20814499258995056, 0.12905989587306976, -0.10958702862262726, 0.21439425647258759, 0.10699816048145294, 0.11483750492334366, -0.1393762230873108, -0.2286502867937088, -0.3707331120967865, 0.0034732818603515625, -0.024438731372356415, 0.12534472346305847, 0.2233879417181015, 0.1328689604997635, 0.0817868709564209, 0.17880713939666748, -0.11418819427490234, -0.08049473911523819, 0.23071905970573425, -0.21729642152786255, 0.20412299036979675, 0.335423082113266, -0.1387036293745041, 0.21305426955223083, -0.11526027321815491, 0.20930355787277222, 0.020597856491804123, 0.10625962167978287, 0.2618325650691986, -0.14916899800300598, -0.49244821071624756, 0.05622551962733269, -0.07689754664897919, -0.28921186923980713, 0.03551139682531357, -0.16066303849220276, -0.18101170659065247, -0.11527896672487259, 0.1680147647857666, 0.053986527025699615, -0.3417593240737915, 0.11535676568746567, -0.21312546730041504, 0.0838787630200386, 0.2177620232105255, 0.17645865678787231, 0.020949985831975937, 0.0027773743495345116, 0.03970761597156525, 0.005714237689971924, 0.23101240396499634, -0.3164747953414917, -0.7296189069747925, -0.10898993164300919, -0.39451658725738525, 0.3907815217971802, -0.00372677156701684, 0.1958441585302353, 0.11182127892971039, -0.20073255896568298, 0.22505764663219452, 0.3088012635707855, 0.26065903902053833, -0.13821224868297577, -0.19914107024669647, 0.05524350330233574, -0.013747543096542358, -0.12973284721374512, -0.09400661289691925, -0.15151356160640717, -0.15630286931991577, -0.31995388865470886, 0.25306984782218933, -0.18329399824142456, -0.28555095195770264, 0.364396870136261, 0.3280494511127472, -0.0869058221578598, -0.015692617744207382, -0.008822456002235413, -0.20494192838668823, -0.08142299950122833, 0.16427969932556152, 0.23698543012142181, 0.29526302218437195, -0.2742631733417511, 0.20066338777542114, 0.07219728827476501, -0.013435731641948223, 0.41048938035964966, -0.24900440871715546, 0.05896259844303131, -0.09178757667541504, 0.19392496347427368, 0.03391490504145622, -0.16050633788108826, 0.0525929257273674, 0.15664833784103394, -0.2910787761211395, -0.39020946621894836, -0.12947306036949158, -0.20692312717437744, 0.8771989941596985, 0.15991485118865967, 0.03736748918890953, 0.3781646490097046, -0.22191396355628967, -0.008590318262577057, -0.20245417952537537, -0.5092113614082336, 0.24621246755123138, 0.0522443987429142, -0.0872797816991806, -0.8231731057167053, 0.3294067978858948, 0.4641064405441284, -0.30132919549942017, 0.3049059808254242, 0.41015321016311646, -0.48650118708610535, 0.1849566102027893, 0.011687353253364563, 0.9026262760162354, 0.1345270574092865, 0.1443990021944046, -0.0203220434486866, -0.4359945058822632, 0.4779863953590393, -0.17553666234016418, 0.24606207013130188, -0.19363583624362946, -0.2583421468734741, -0.09738944470882416, -0.009023353457450867, 0.3417714834213257, 0.09346383064985275, 0.10903634130954742, 0.3630126714706421, -0.17505918443202972, 0.44810745120048523, -0.03732031583786011, -0.056869324296712875, -0.2921402156352997, -0.33495619893074036, -0.11000443994998932, 0.01812681183218956, -0.11390794813632965, -0.22658145427703857, -0.0003208732232451439, 0.3261505365371704, 0.08494330942630768, -0.10499753057956696, -0.0339345745742321, -0.11631349474191666, -0.10063032060861588, 0.2183556705713272, -0.1090034693479538, -0.577976644039154, 0.5060316324234009, 0.1982366144657135, 0.18813085556030273, 0.08885051310062408, 0.22106139361858368, 0.07548221945762634, 0.3813399076461792, 0.581763505935669, -0.2026107907295227, 0.046344954520463943, 0.029269713908433914, 0.12978899478912354, -0.223249152302742, 0.10320484638214111, -0.03019510954618454, -0.46223384141921997, -0.4578357934951782, -0.07017455995082855, 0.37011557817459106, -0.44268059730529785, -0.20709797739982605, 0.01909298449754715, 0.4083297848701477, -0.3609687387943268, 0.0688953697681427, 0.006138153374195099, -0.22142039239406586, 0.32001906633377075, -0.17769451439380646, -0.17301279306411743, -0.07210046052932739, 0.21621376276016235, 0.22231829166412354, 0.15946289896965027, 0.5804492235183716, -0.2261841595172882, -0.2925845980644226, -0.2010548710823059, -0.05779171362519264, -0.013117398135364056, 0.05937526375055313, 0.15885844826698303, 0.00818629376590252, -0.05440204590559006, -0.022497503086924553, 0.15475088357925415, -0.49208784103393555, -0.05548631399869919, -0.23372378945350647, -0.17217640578746796, -0.3032362163066864, 0.22124212980270386, 0.345400869846344, 0.5270963311195374, -0.07223939895629883, -0.15480560064315796, -0.30360960960388184, -0.28779128193855286, -0.24434125423431396, -0.1551649123430252, 0.03566693514585495, 0.09672451764345169, 0.6506620645523071, 0.17530056834220886, -0.35517773032188416, -0.24297262728214264, 0.03870145231485367, 0.05968645215034485, 0.2508566677570343, -0.1565767228603363, -0.18264977633953094, 0.2295251041650772, -0.036755576729774475, 0.0663604661822319, -0.15478377044200897, -0.05978139862418175, -0.23278552293777466, -0.14703279733657837, 0.20569610595703125, 0.3207133114337921, 0.14855872094631195, 0.4681377708911896, -0.11108115315437317, -0.0389326736330986, -0.1139075830578804, 0.21898551285266876, -0.06853429973125458, -0.1306498497724533, 0.2855052649974823, 0.08157312870025635, -0.11333834379911423, 0.03765399754047394, 0.03884212300181389, 0.2375195324420929, 0.06093402951955795, 0.34034377336502075, -0.09356492012739182, 0.032847676426172256, 0.0150890052318573, 0.07526006549596786, 0.41343116760253906, 0.30879390239715576, -0.10880199074745178, -0.4447929263114929, 0.23327592015266418, 0.13301058113574982, -0.3261364996433258, -0.13309305906295776, 0.12396672368049622, -0.03069622814655304, 0.24843263626098633, 0.39162686467170715, 0.0736379474401474, 0.0804465264081955, -0.18716411292552948, -0.1504354178905487, 0.5496769547462463, -0.05726166069507599, 0.09450529515743256, 0.7358114719390869, -0.06729531288146973, -0.19643937051296234, 0.2682817578315735, 0.14831748604774475, 0.060956962406635284, 0.49671703577041626, -0.060969240963459015, 0.24341464042663574, 0.3960022032260895, 0.09121439605951309, 0.08301486074924469, -0.19170066714286804, 0.1531996876001358, 0.14826874434947968, -0.23072174191474915, -0.10411220043897629, 0.1388590931892395, 0.033688388764858246, -0.04946977645158768, -0.0969846174120903, 0.14458921551704407, 0.23798830807209015, -0.060691557824611664, -0.017225859686732292, -0.3676948845386505, -0.1856052279472351, 0.11563628911972046, -0.007123978808522224, -0.1729494035243988, -0.2446708232164383, 0.5520732402801514, -0.3286052942276001, 0.10015655308961868, 0.0885414108633995, 0.28150540590286255, -0.08517570048570633, 0.23929214477539062, -0.13670729100704193, -0.5556519031524658, 0.010193370282649994, 0.15133513510227203, -0.04016171768307686, 0.16804790496826172, -0.08917535841464996, -0.15664172172546387, -0.004632864147424698, 0.0996173843741417, -0.3091079592704773, -0.013224774040281773, 0.006070246919989586, 0.1918703317642212, -0.09545524418354034, 0.09298024326562881, 0.17840613424777985, 0.08519869297742844, -0.05132026970386505, -0.04864507541060448, 0.33641502261161804, 0.31025251746177673, -0.7674028277397156, 0.4336824119091034, 0.3996267318725586, -0.37378180027008057, 0.13049228489398956, -0.15134406089782715, 0.19728046655654907, -0.26355382800102234, 0.25524279475212097, 0.024816814810037613, 0.12166427820920944, 0.013180526904761791, 0.045572489500045776, -0.008427949622273445, 0.055325742810964584, 0.22123555839061737, -0.29040977358818054, -0.21089093387126923, -0.1061505675315857, -0.6604738831520081, -0.36018234491348267, 0.05893496051430702, -0.31348955631256104, 0.21093405783176422, -0.14733900129795074, 0.3391454517841339, -0.09108218550682068, -0.011214971542358398, 0.5191778540611267, -0.32832106947898865, -0.05744234472513199, -0.21121850609779358, 0.0030274055898189545, 0.025878887623548508, -0.07960484176874161, 0.042006537318229675, -0.43721169233322144, 0.044140420854091644, 0.34594231843948364, -0.053135305643081665, -0.15166951715946198, 0.300293505191803, 0.0010449886322021484, 0.06963944435119629, 0.24177628755569458, 0.06026538461446762, 0.030833840370178223, 0.036311760544776917, -0.07770786434412003, 0.12535430490970612, 0.13051144778728485, -0.27864256501197815, 0.188073992729187, -0.2623142898082733, 0.17806702852249146, -0.05390769988298416, 0.2197820395231247, -0.11298519372940063, 0.3953896164894104, 0.0916813462972641, -0.15309485793113708, -0.40677741169929504, 0.02184913121163845, 0.07003871351480484, 0.10766270011663437, -0.25308677554130554, -0.04141552001237869, 0.07785540074110031, 0.22696124017238617, -0.28537312150001526, -0.08094203472137451, 0.45045313239097595, 0.05169690400362015, -0.471132755279541, -0.24728766083717346, 0.3450183868408203, 0.11241887509822845, -0.2919687032699585, -0.5255439281463623, -0.04147602990269661, 0.27555862069129944, -0.4315674304962158, -0.05513913184404373, 0.5130080580711365, -0.2963314652442932, -0.034492127597332, 0.12109436094760895, 0.1706090122461319, 0.020282816141843796, 0.13265834748744965, -0.0605570450425148, -0.22706523537635803 ]
https://github.com/huggingface/datasets/issues/5468
Allow opposite of remove_columns on Dataset and DatasetDict
Unless @mariosasko thinks otherwise, I think it can go in `Dataset.select()` :) Though some parameters like keep_in_memory, indices_cache_file_name or writer_batch_size wouldn't when selecting columns, so we would need to update the docstring as well
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution -
34
Allow opposite of remove_columns on Dataset and DatasetDict ### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution - Unless @mariosasko thinks otherwise, I think it can go in `Dataset.select()` :) Though some parameters like keep_in_memory, indices_cache_file_name or writer_batch_size wouldn't when selecting columns, so we would need to update the docstring as well
[ -0.07380013912916183, 0.3319534957408905, -0.1016116589307785, -0.03201451897621155, 0.31756943464279175, 0.09239640086889267, 0.3140403926372528, 0.22060765326023102, 0.14622141420841217, 0.42897146940231323, -0.3228541314601898, 0.27183184027671814, -0.3324100077152252, 0.20282770693302155, -0.06926437467336655, -0.14091768860816956, 0.023583509027957916, 0.26151737570762634, -0.19587448239326477, 0.028011992573738098, -0.2762651741504669, -0.11363494396209717, -0.36573678255081177, 0.09843848645687103, 0.19442954659461975, -0.18609818816184998, 0.03905979543924332, -0.19562232494354248, -0.19267529249191284, -0.10204015672206879, 0.054284609854221344, 0.33287039399147034, -0.099504254758358, 0.2441437840461731, -0.00010911958815995604, -0.149032324552536, -0.12259469926357269, 0.13467732071876526, -0.3646780252456665, -0.04034486413002014, -0.2720630466938019, 0.016107015311717987, -0.07642243802547455, -0.23204442858695984, 0.02526310458779335, -0.32214459776878357, -0.32018837332725525, -0.36351898312568665, -0.060095250606536865, 0.294352263212204, 0.2356555461883545, 0.08374542742967606, -0.1863410472869873, 0.1907094568014145, 0.10211317241191864, 0.13344016671180725, -0.29665976762771606, -0.052685949951410294, 0.07771489769220352, -0.07074907422065735, 0.2111101746559143, 0.3103300631046295, -0.4653896689414978, -0.0992199033498764, 0.07094389945268631, 0.08627033233642578, -0.15477359294891357, -0.36083248257637024, 0.14152534306049347, 0.3327576220035553, 0.7239660620689392, -0.750089168548584, -0.2501941919326782, -0.24456647038459778, 0.24627535045146942, -0.5273743271827698, -0.005108468234539032, 0.20001478493213654, -0.05478295683860779, 0.27619850635528564, -0.3536629378795624, -0.31838712096214294, -0.003288254141807556, -0.012481428682804108, 0.22398146986961365, -0.11779847741127014, 0.1506248414516449, 0.03303392976522446, 0.2247232049703598, 0.018285386264324188, 0.19836477935314178, -0.25926241278648376, 0.07333813607692719, 0.3484092950820923, -0.503290593624115, -0.32562747597694397, -0.16337701678276062, -0.024384960532188416, 0.032316409051418304, 0.22950628399848938, -0.050241902470588684, -0.011566724628210068, -0.009265715256333351, 0.3951083719730377, 0.29158005118370056, 0.3121911585330963, 0.17232397198677063, 0.3477519452571869, 0.35636013746261597, 0.12750740349292755, 0.2493845820426941, 0.009342685341835022, 0.32452112436294556, 0.034185267984867096, 0.31208786368370056, -0.011668842285871506, 0.21542613208293915, -0.0942748486995697, -0.6185258626937866, 0.1091267317533493, -0.14397937059402466, -0.024361668154597282, 0.21821074187755585, 0.09438934922218323, 0.40513089299201965, 0.18043479323387146, -0.0804649144411087, 0.19172315299510956, -0.03695937991142273, 0.054294053465127945, -0.1796814501285553, 0.34825220704078674, -0.0010997578501701355, 0.03638198971748352, 0.31962743401527405, 0.21033012866973877, 0.0419817715883255, 0.2843245267868042, -0.022169366478919983, 0.12720879912376404, -0.04256752133369446, -0.27249282598495483, 0.03672544285655022, 0.25356096029281616, -0.17634153366088867, 0.01791849173605442, -0.1190672218799591, -0.12651370465755463, -0.23424825072288513, 0.33373239636421204, 0.1438927948474884, -0.09413440525531769, -0.10948844254016876, 0.22503674030303955, -0.02652069367468357, -0.03215431421995163, -0.2861367464065552, 0.19921524822711945, -0.05745282024145126, 0.10645952820777893, 0.4816037714481354, -0.21718396246433258, -0.22258710861206055, -0.0225614532828331, 0.1601131409406662, 0.1541605144739151, -0.37566909193992615, -0.04634380713105202, 0.10466200858354568, -0.37168335914611816, 0.04225929081439972, 0.19429254531860352, 0.030515672639012337, 0.05988430604338646, -0.11398350447416306, -0.22946283221244812, 0.2624695599079132, -0.218367338180542, -0.18268011510372162, 0.010776962153613567, 0.004207797348499298, 0.28198397159576416, 0.04394197836518288, 0.1506674885749817, 0.05234362557530403, 0.021510694175958633, 0.15625688433647156, 0.21708957850933075, 0.19267761707305908, 0.11348345130681992, 0.10586518049240112, -0.3927823603153229, 0.17148850858211517, 0.08217301964759827, -0.21482591331005096, 0.07086949795484543, 0.01581510901451111, -0.311317503452301, 0.34119921922683716, -0.18090011179447174, 0.1264003962278366, 0.26486948132514954, 0.459087997674942, 0.06832438707351685, -0.1959293931722641, -0.49691590666770935, -0.4508014917373657, 0.13720014691352844, 0.44000232219696045, -0.010219022631645203, -0.007848314940929413, -0.4058537483215332, 0.061363302171230316, -0.08344942331314087, -0.0929156094789505, 0.14251990616321564, 0.07016588747501373, -0.34810248017311096, 0.03302885964512825, 0.04402976855635643, -0.419146865606308, 0.40322020649909973, -0.3895430266857147, 0.21369709074497223, -0.19404147565364838, -0.1328713595867157, 0.1912364363670349, 0.11019236594438553, 0.04140147566795349, 0.3919523060321808, 0.13029742240905762, 0.20266833901405334, 0.04395020380616188, 0.5211153626441956, 0.14687278866767883, -0.0013687610626220703, -0.3123570382595062, 0.34275028109550476, 0.06056561321020126, 0.34801334142684937, 0.12339714914560318, 0.0025173835456371307, 0.15375882387161255, 0.08288659900426865, -0.27569282054901123, 0.20471492409706116, -0.17396850883960724, 0.286751925945282, 0.013986915349960327, -0.1372978538274765, 0.058080196380615234, 0.02308822050690651, -0.3347729742527008, -0.30808812379837036, -0.04632100835442543, 0.0030994489789009094, -0.009896732866764069, 0.06373055279254913, -0.529033362865448, -0.17388984560966492, 0.4486551582813263, 0.025540359318256378, 0.10425131022930145, 0.0922076627612114, -0.021303482353687286, 0.008745718747377396, 0.14062827825546265, 0.3580233156681061, 0.43981248140335083, 0.1595357358455658, 0.0028263404965400696, 0.3442115783691406, 0.04726894199848175, -0.10165411978960037, 0.2615169882774353, 0.32791128754615784, -0.15840034186840057, 0.08527269959449768, 0.3392893075942993, -0.036416128277778625, -0.5522359013557434, -0.09230974316596985, -0.12043061852455139, 0.2573682367801666, -0.22311583161354065, -0.11386111378669739, -0.26167941093444824, -0.24642989039421082, -0.07190700620412827, -0.17685577273368835, -0.13284967839717865, -0.07181267440319061, 0.20978152751922607, 0.19375671446323395, -0.31733256578445435, 0.24926769733428955, -0.5028494000434875, 0.2321605235338211, -0.27949759364128113, -0.21711869537830353, 0.02535887062549591, 0.024088885635137558, 0.30010318756103516, 0.16439668834209442, 0.05533165484666824, 0.04773378744721413, 0.22864407300949097, 0.43267664313316345, -0.3240046501159668, -0.2213296890258789, 0.031731508672237396, 0.09581103920936584, -0.31063657999038696, 0.09565375000238419, 0.28394442796707153, -0.07902830839157104, 0.1009017825126648, -0.23811252415180206, 0.004304907284677029, -0.04949807748198509, 0.01616908423602581, 0.030659452080726624, 0.43292367458343506, 0.19892430305480957, -0.2530621290206909, -0.1641276776790619, -0.10288478434085846, -0.4118685722351074, 0.2986868619918823, -0.20846253633499146, 0.21107546985149384, 0.16274061799049377, -0.1089363545179367, -0.16525642573833466, 0.17254997789859772, 0.09779743105173111, -0.2050056755542755, -0.3373112976551056, 0.12065810710191727, 0.13003432750701904, 0.10554058849811554, -0.11358898878097534, 0.159809872508049, 0.1577308177947998, 0.1233530342578888, -0.12531840801239014, -0.12215028703212738, -0.39962124824523926, -0.020779503509402275, 0.0187354926019907, 0.1260758936405182, 0.24709747731685638, 0.14850561320781708, -0.001502135768532753, 0.10915052145719528, -0.054722949862480164, -0.10737486928701401, 0.20912891626358032, -0.2042241394519806, 0.11741197109222412, 0.378752738237381, -0.10759848356246948, 0.16318464279174805, -0.162573903799057, 0.13781341910362244, 0.07152540981769562, 0.05035145953297615, 0.3690405488014221, -0.20408150553703308, -0.4176402986049652, 0.10170166194438934, -0.016738295555114746, -0.2063571661710739, 0.08283623307943344, -0.06973762810230255, -0.12024175375699997, -0.06825585663318634, 0.17637595534324646, 0.03245294839143753, -0.3097628355026245, 0.07347583770751953, -0.2650618553161621, 0.0804772898554802, 0.1605175882577896, 0.20856231451034546, 0.06476566195487976, -0.1080150306224823, 0.012712286785244942, -0.042713940143585205, 0.19095870852470398, -0.2882577180862427, -0.6695848703384399, -0.03727472946047783, -0.4778127670288086, 0.3495103418827057, -0.04463602229952812, 0.20233933627605438, 0.09322735667228699, -0.1791471242904663, 0.18281207978725433, 0.26140522956848145, 0.28700023889541626, -0.15992240607738495, -0.2345198541879654, 0.11314992606639862, 0.11087054014205933, -0.2630000710487366, -0.15705837309360504, -0.24652042984962463, -0.18694347143173218, -0.3188440203666687, 0.38215377926826477, -0.1976168155670166, -0.29291316866874695, 0.3378690779209137, 0.33949369192123413, -0.0865907222032547, 0.0325879342854023, -0.13744835555553436, -0.22501921653747559, -0.12373942136764526, 0.18165719509124756, 0.235617533326149, 0.2719173729419708, -0.344615638256073, 0.1093130111694336, 0.13821572065353394, -0.014148116111755371, 0.349372535943985, -0.11115515232086182, 0.15439635515213013, -0.13794894516468048, 0.24766498804092407, 0.06816814094781876, -0.18548044562339783, 0.12765878438949585, 0.10533055663108826, -0.36262959241867065, -0.2743295133113861, -0.09022420644760132, -0.23235991597175598, 0.7380040884017944, 0.00859522819519043, 0.004446531645953655, 0.35945796966552734, -0.2415868639945984, 0.032105617225170135, -0.2541467249393463, -0.36772841215133667, 0.3292533755302429, 0.017517518252134323, -0.15936802327632904, -0.8012715578079224, 0.37353765964508057, 0.41271287202835083, -0.26304197311401367, 0.4066658914089203, 0.2853945791721344, -0.4901919960975647, 0.27992773056030273, -0.06912579387426376, 0.7646244168281555, 0.04378899931907654, 0.20294690132141113, -0.01662285253405571, -0.38431018590927124, 0.4220520257949829, -0.27554288506507874, 0.40194958448410034, -0.18412838876247406, -0.1763923168182373, -0.04925766587257385, 0.03519907966256142, 0.34000855684280396, 0.10215164721012115, 0.020304258912801743, 0.3307759761810303, -0.18587297201156616, 0.3947731554508209, -0.0961713045835495, 0.04146019369363785, -0.3336005210876465, -0.35100317001342773, -0.15634270012378693, 0.10291333496570587, -0.1508282721042633, -0.32138580083847046, 0.0076300762593746185, 0.3295822739601135, 0.2140001654624939, -0.07649258524179459, -0.06021451950073242, -0.060845691710710526, -0.08867494761943817, 0.25457775592803955, -0.20787037909030914, -0.46745145320892334, 0.30984726548194885, 0.180481418967247, 0.21574942767620087, 0.11188653111457825, 0.13696026802062988, 0.16702508926391602, 0.33156225085258484, 0.4909217953681946, -0.14523547887802124, 0.11738596856594086, 0.01605861820280552, 0.11940184980630875, -0.2756558656692505, 0.02373654395341873, 0.087542325258255, -0.40063798427581787, -0.4021289348602295, -0.07301962375640869, 0.3684347867965698, -0.38371145725250244, -0.15414994955062866, -0.011686399579048157, 0.3973694443702698, -0.3579581379890442, 0.14856013655662537, -0.03152081370353699, -0.24699760973453522, 0.3462512791156769, -0.18231043219566345, -0.13924935460090637, -0.06752672791481018, 0.3874053359031677, 0.19128984212875366, 0.1624886393547058, 0.48200568556785583, -0.15197572112083435, -0.3420614004135132, -0.2512342631816864, -0.07517679035663605, -0.04737444221973419, 0.0794215127825737, 0.1752646118402481, 0.0942082479596138, -0.09905517101287842, -0.030797744169831276, 0.11872322857379913, -0.589148223400116, -0.16273397207260132, -0.140929713845253, -0.13689783215522766, -0.32537686824798584, 0.30725032091140747, 0.3513796627521515, 0.5688483715057373, -0.03968588635325432, -0.15525175631046295, -0.3279038965702057, -0.3055249750614166, -0.330976665019989, -0.10436621308326721, 0.02882218174636364, 0.12906798720359802, 0.5746487379074097, 0.13975012302398682, -0.21938519179821014, -0.29687047004699707, 0.15892739593982697, -0.030406292527914047, 0.22722730040550232, -0.24707087874412537, -0.2068517804145813, 0.15734077990055084, -0.10975625365972519, 0.02804204449057579, -0.1194455623626709, -0.07818696647882462, -0.25996628403663635, -0.2081054002046585, 0.29894059896469116, 0.4887816309928894, 0.11855427920818329, 0.46846356987953186, -0.20615915954113007, 0.039847999811172485, 0.023219197988510132, 0.14572641253471375, -0.1275002807378769, -0.23244021832942963, 0.3267141580581665, 0.08184930682182312, -0.17160943150520325, 0.0613308846950531, 0.019018780440092087, 0.21216270327568054, 0.03553784638643265, 0.258703351020813, -0.061095088720321655, 0.09161286056041718, -0.07505267858505249, 0.06295204907655716, 0.4499986171722412, 0.213525652885437, -0.15136824548244476, -0.4396275579929352, 0.2734414339065552, 0.2280818372964859, -0.41291892528533936, -0.15879328548908234, 0.1067124456167221, -0.02690892666578293, 0.2757713794708252, 0.2551482319831848, 0.04666287079453468, 0.013637781143188477, -0.21387122571468353, -0.08069829642772675, 0.6125168204307556, -0.150247260928154, 0.0916772186756134, 0.6567795872688293, -0.059275079518556595, -0.23288245499134064, 0.2080315351486206, 0.08474099636077881, 0.15529119968414307, 0.5024435520172119, -0.06888989359140396, 0.20983083546161652, 0.3592083156108856, 0.04564107581973076, -0.007858552038669586, -0.22622163593769073, 0.0745530053973198, 0.09604012221097946, -0.2847992777824402, -0.05937882512807846, 0.0905589759349823, 0.0606004074215889, 0.044879358261823654, -0.08781514316797256, 0.078096903860569, 0.21428115665912628, -0.06700409948825836, -0.059933967888355255, -0.24240665137767792, -0.1623389571905136, 0.15810652077198029, 0.005578815937042236, -0.10424730181694031, -0.17496448755264282, 0.5061429738998413, -0.2765694856643677, 0.042645398527383804, -0.009755969047546387, 0.30736467242240906, -0.028064116835594177, 0.18389546871185303, -0.12444637715816498, -0.3598027229309082, 0.14252908527851105, 0.12104719877243042, 0.002220630645751953, 0.18680360913276672, 0.010494429618120193, -0.18798071146011353, 0.06503233313560486, 0.13404861092567444, -0.2999690771102905, -0.004903899505734444, 0.012248033657670021, 0.2451591193675995, -0.06923337280750275, 0.12416903674602509, 0.16232943534851074, 0.17930831015110016, -0.07069838047027588, -0.004638981074094772, 0.3153619170188904, 0.23532694578170776, -0.6094714999198914, 0.43937161564826965, 0.3914334774017334, -0.36985674500465393, 0.12875276803970337, -0.22522050142288208, 0.13603171706199646, -0.248655304312706, 0.224571093916893, 0.02293899655342102, 0.11822979897260666, -0.04413658380508423, 0.09643051773309708, 0.04379994422197342, 0.050410617142915726, 0.22388924658298492, -0.33267882466316223, -0.16498683393001556, -0.09903331845998764, -0.6691562533378601, -0.3593409061431885, -0.1326487511396408, -0.18622161448001862, 0.07392292469739914, -0.07527551054954529, 0.33591631054878235, -0.08862773329019547, -0.013654783368110657, 0.4851759076118469, -0.42565596103668213, -0.07467813789844513, -0.25735601782798767, 0.037414103746414185, -0.060723960399627686, -0.07081593573093414, 0.052582912147045135, -0.45829805731773376, 0.05718088522553444, 0.24999162554740906, 0.018664509057998657, -0.06757380813360214, 0.37334659695625305, 0.04848456755280495, -0.02220478653907776, 0.2575571537017822, 0.042442262172698975, 0.034405045211315155, -0.00436173751950264, -0.07248137891292572, -0.023575562983751297, 0.032113153487443924, -0.3169087767601013, 0.032141994684934616, -0.13209500908851624, 0.26402491331100464, -0.07781142741441727, -0.01503850519657135, -0.13082657754421234, 0.5318282842636108, 0.07500236481428146, -0.13770566880702972, -0.31257274746894836, 0.03937472403049469, 0.1795506775379181, 0.13077154755592346, -0.20737414062023163, -0.12138532847166061, -0.023222997784614563, 0.23676516115665436, -0.3169481158256531, -0.197300523519516, 0.49862736463546753, -0.029356978833675385, -0.45222851634025574, -0.2247113287448883, 0.4261895716190338, 0.1325693428516388, -0.23225358128547668, -0.5737731456756592, 0.09406860917806625, 0.24443131685256958, -0.38138994574546814, -0.05155743658542633, 0.4986957907676697, -0.3136645257472992, 0.03780871257185936, 0.11036227643489838, 0.16026407480239868, 0.10698864609003067, 0.020890122279524803, -0.07664395123720169, -0.2841850519180298 ]
https://github.com/huggingface/datasets/issues/5468
Allow opposite of remove_columns on Dataset and DatasetDict
If someone wants to give it a shot, feel free to comment `#self-assign` and it will assign the issue to you. Feel free to ping us here if you have questions or if we can help :)
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution -
37
Allow opposite of remove_columns on Dataset and DatasetDict ### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution - If someone wants to give it a shot, feel free to comment `#self-assign` and it will assign the issue to you. Feel free to ping us here if you have questions or if we can help :)
[ 0.025135602802038193, 0.26631906628608704, -0.09592512249946594, -0.008970245718955994, 0.34666651487350464, 0.09045293182134628, 0.37154582142829895, 0.22561588883399963, 0.11660023033618927, 0.4302627444267273, -0.31851449608802795, 0.24153397977352142, -0.33587080240249634, 0.2463359385728836, -0.06436338275671005, -0.09353278577327728, 0.03628574311733246, 0.26785874366760254, -0.1983269453048706, 0.02424643188714981, -0.21937090158462524, -0.11132030189037323, -0.35355210304260254, 0.18249747157096863, 0.15489830076694489, -0.18011850118637085, 0.035863831639289856, -0.20591497421264648, -0.19581493735313416, -0.1212945282459259, 0.05754335969686508, 0.29375535249710083, -0.17394770681858063, 0.2744709849357605, -0.00010983219544868916, -0.15015006065368652, -0.08581012487411499, 0.16983650624752045, -0.3241710066795349, -0.028200224041938782, -0.24318674206733704, 0.004544073715806007, -0.014207584783434868, -0.23109501600265503, 0.05312059819698334, -0.32098686695098877, -0.3672361373901367, -0.30416369438171387, 0.026238761842250824, 0.2706979215145111, 0.2334672510623932, 0.037114907056093216, -0.15268324315547943, 0.21571265161037445, 0.15251635015010834, 0.1245984211564064, -0.279740571975708, -0.025863148272037506, 0.07710949331521988, -0.09744273871183395, 0.22851210832595825, 0.3273233473300934, -0.5064018368721008, -0.07723021507263184, 0.0652240514755249, 0.039393238723278046, -0.16840732097625732, -0.3814191222190857, 0.12455473840236664, 0.3363114297389984, 0.675903856754303, -0.7236710786819458, -0.17721666395664215, -0.2424061894416809, 0.21351265907287598, -0.5242791771888733, 0.0352000929415226, 0.1615351438522339, -0.0533965639770031, 0.2802114188671112, -0.34484609961509705, -0.29498186707496643, 0.004668742418289185, 0.0017978399991989136, 0.21828022599220276, -0.1457616239786148, 0.13576863706111908, 0.03624847158789635, 0.15534071624279022, -0.011671308428049088, 0.21222004294395447, -0.23215511441230774, 0.07723039388656616, 0.3487216532230377, -0.48602908849716187, -0.3088913857936859, -0.11541087180376053, -0.022454097867012024, 0.02241029217839241, 0.2291744500398636, -0.0890536904335022, 0.014583239331841469, -0.003137324471026659, 0.3662724196910858, 0.21597295999526978, 0.3482477366924286, 0.18105994164943695, 0.2927359342575073, 0.401719868183136, 0.1536371260881424, 0.2314470112323761, 0.026736721396446228, 0.33943355083465576, 0.06513487547636032, 0.25865399837493896, 0.0067529818043112755, 0.2657734155654907, -0.12128075957298279, -0.6419610977172852, 0.1328296661376953, -0.2214912474155426, -0.01984267868101597, 0.22469760477542877, 0.0037188082933425903, 0.46624359488487244, 0.19177863001823425, -0.06136908382177353, 0.2110714614391327, -0.018135245889425278, 0.05984221026301384, -0.1684715449810028, 0.29662269353866577, -0.08025763928890228, 0.041993096470832825, 0.2939874231815338, 0.22196772694587708, 0.04096309095621109, 0.34687331318855286, -0.02742554247379303, 0.039249785244464874, -0.06644751876592636, -0.2389836609363556, -0.00007061660289764404, 0.18971575796604156, -0.2202216386795044, 0.01587294228374958, -0.09415490925312042, -0.14354181289672852, -0.19120341539382935, 0.26338157057762146, 0.10159528255462646, -0.10742804408073425, -0.10273756086826324, 0.2318420261144638, -0.04332497715950012, -0.005231555551290512, -0.24084463715553284, 0.19036659598350525, -0.05860983580350876, 0.08575853705406189, 0.4946482479572296, -0.15411165356636047, -0.1864866316318512, -0.009083183482289314, 0.13237792253494263, 0.14936619997024536, -0.30913427472114563, -0.041257329285144806, 0.10004252940416336, -0.3382611572742462, 0.07964155077934265, 0.25170624256134033, 0.008318744599819183, 0.10142774879932404, -0.1733429729938507, -0.27552008628845215, 0.2516433298587799, -0.20022714138031006, -0.18218994140625, 0.003431889694184065, -0.05794551968574524, 0.3114003539085388, 0.03650650382041931, 0.0881832018494606, 0.003902062773704529, 0.009929133579134941, 0.1906018853187561, 0.17963042855262756, 0.23512046039104462, 0.09527557343244553, 0.06376439332962036, -0.37701377272605896, 0.16337808966636658, 0.036514025181531906, -0.26136818528175354, 0.09024681895971298, 0.056445423513650894, -0.335414856672287, 0.36573413014411926, -0.20967084169387817, 0.11702190339565277, 0.20661938190460205, 0.45691826939582825, 0.13732464611530304, -0.16226184368133545, -0.4703068435192108, -0.43116071820259094, 0.10656357556581497, 0.412712424993515, 0.03820396214723587, -0.025881245732307434, -0.3963266611099243, 0.01878194510936737, -0.055110327899456024, -0.1209249347448349, 0.1276472508907318, 0.08362007886171341, -0.3343941271305084, -0.038883812725543976, 0.01767857000231743, -0.4048820436000824, 0.416376531124115, -0.42184433341026306, 0.2337849885225296, -0.17792202532291412, -0.11133359372615814, 0.2095801681280136, 0.1449170559644699, 0.009771265089511871, 0.47490423917770386, 0.15021753311157227, 0.20516763627529144, 0.022871050983667374, 0.48528391122817993, 0.12539038062095642, 0.010243743658065796, -0.2868255376815796, 0.3464548587799072, 0.08573539555072784, 0.2756836712360382, 0.12156084179878235, 0.04492012411355972, 0.1923973560333252, 0.0363498255610466, -0.24095982313156128, 0.1858196258544922, -0.12225718796253204, 0.2807854413986206, -0.05220015347003937, -0.13282646238803864, 0.04168816655874252, 0.0009037740528583527, -0.35841208696365356, -0.3141824007034302, 0.010781887918710709, 0.017611058428883553, -0.01672050915658474, 0.06239887326955795, -0.48031601309776306, -0.20239320397377014, 0.44441527128219604, 0.019336141645908356, 0.10381484031677246, 0.11040762066841125, -0.011886455118656158, -0.02720259316265583, 0.12362793833017349, 0.3507651388645172, 0.4181130528450012, 0.15339745581150055, -0.02529168501496315, 0.39902591705322266, 0.0498599037528038, -0.13269947469234467, 0.2993762195110321, 0.3351646065711975, -0.1759634166955948, 0.0606468990445137, 0.40426433086395264, -0.01124576199799776, -0.5918510556221008, -0.1556975394487381, -0.10820123553276062, 0.2715190052986145, -0.28814372420310974, -0.12990370392799377, -0.29526254534721375, -0.24760299921035767, -0.12017504870891571, -0.23946067690849304, -0.1632256805896759, -0.11355847120285034, 0.1994473785161972, 0.14519262313842773, -0.3292120099067688, 0.2502833306789398, -0.4234565794467926, 0.2218984067440033, -0.2955584228038788, -0.1590810865163803, 0.012802429497241974, -0.014974121004343033, 0.2628519535064697, 0.14179381728172302, 0.03741627186536789, -0.009391019120812416, 0.22475579380989075, 0.36848217248916626, -0.30252981185913086, -0.20841701328754425, -0.09222929179668427, 0.10848534107208252, -0.31403887271881104, 0.05886867642402649, 0.29394495487213135, -0.11637714505195618, 0.1318061202764511, -0.26890143752098083, -0.003104221075773239, -0.08608122169971466, 0.00666959211230278, 0.10827647149562836, 0.3989436626434326, 0.2099490910768509, -0.28516697883605957, -0.1282760202884674, -0.0750047042965889, -0.4161957800388336, 0.3299481272697449, -0.2746446430683136, 0.22812919318675995, 0.19491684436798096, -0.12739890813827515, -0.12119366973638535, 0.15399427711963654, 0.10756205767393112, -0.2272930145263672, -0.35890790820121765, 0.10029621422290802, 0.1257660984992981, 0.11273132264614105, -0.10164801776409149, 0.17286989092826843, 0.15874628722667694, 0.10257799178361893, -0.19372870028018951, -0.1726837158203125, -0.4103984534740448, 0.02339271828532219, 0.04219226911664009, 0.1178545355796814, 0.17445284128189087, 0.20459933578968048, -0.023537103086709976, 0.13104507327079773, -0.0717269629240036, -0.11849095672369003, 0.16279259324073792, -0.18607455492019653, 0.1246800497174263, 0.38755330443382263, -0.11848700046539307, 0.14897599816322327, -0.1389796882867813, 0.15487265586853027, 0.11749342083930969, 0.0650394931435585, 0.3745083510875702, -0.2554445266723633, -0.45567622780799866, 0.08492293953895569, -0.03977319598197937, -0.2126322239637375, 0.10041866451501846, -0.08700118213891983, -0.13997411727905273, -0.08701938390731812, 0.12471224367618561, 0.0741109549999237, -0.29643183946609497, 0.03263811394572258, -0.2983696758747101, 0.07206657528877258, 0.21013939380645752, 0.21479016542434692, 0.09608614444732666, -0.13151895999908447, 0.02009238675236702, -0.06106401979923248, 0.14455699920654297, -0.3146677315235138, -0.6999220252037048, -0.0948626771569252, -0.4341506361961365, 0.3648703694343567, -0.039974719285964966, 0.2307119071483612, 0.09237226843833923, -0.15082836151123047, 0.2173679918050766, 0.3029646873474121, 0.2826770842075348, -0.11594786494970322, -0.24191875755786896, 0.06654728949069977, 0.17687462270259857, -0.2573254108428955, -0.1937456727027893, -0.2487829625606537, -0.23139509558677673, -0.23735083639621735, 0.4156941771507263, -0.16680152714252472, -0.2523308992385864, 0.346150279045105, 0.3079168200492859, -0.04594167694449425, 0.035468295216560364, -0.13710901141166687, -0.27531322836875916, -0.1391056478023529, 0.15379154682159424, 0.26142317056655884, 0.26473018527030945, -0.36030834913253784, 0.03808918222784996, 0.16779832541942596, -0.004667976871132851, 0.35521751642227173, -0.09196670353412628, 0.16961681842803955, -0.11413732171058655, 0.2246330976486206, 0.05245189741253853, -0.13511598110198975, 0.08300061523914337, 0.1496662199497223, -0.3511814475059509, -0.289752334356308, -0.10669722408056259, -0.27538594603538513, 0.7186894416809082, 0.06287746876478195, 0.04029142111539841, 0.3353210985660553, -0.27859562635421753, 0.0809139832854271, -0.25295183062553406, -0.3894992768764496, 0.3516741991043091, 0.07223531603813171, -0.13742224872112274, -0.7880460023880005, 0.3574124276638031, 0.39676418900489807, -0.28175997734069824, 0.4056857228279114, 0.32883894443511963, -0.4776170551776886, 0.3117729425430298, -0.12566301226615906, 0.8593118786811829, 0.10803214460611343, 0.22354991734027863, 0.040921248495578766, -0.4360392689704895, 0.4716385304927826, -0.2792123556137085, 0.4020647406578064, -0.14115580916404724, -0.1388942003250122, -0.04486488550901413, 0.021431412547826767, 0.33248353004455566, 0.0888475775718689, 0.013815153390169144, 0.3376322388648987, -0.2089710384607315, 0.45875880122184753, -0.07386089116334915, -0.003303695470094681, -0.2930525541305542, -0.3110150992870331, -0.22211986780166626, 0.10317569971084595, -0.10654374957084656, -0.29037466645240784, -0.03673402965068817, 0.31484776735305786, 0.1960059404373169, -0.08143217116594315, -0.0543755404651165, -0.04239017143845558, -0.04380440339446068, 0.24587517976760864, -0.20343351364135742, -0.4174966812133789, 0.3151089549064636, 0.10795286297798157, 0.27598562836647034, 0.14224350452423096, 0.1204952672123909, 0.13320140540599823, 0.38071125745773315, 0.49129530787467957, -0.16163410246372223, 0.13984978199005127, -0.013940943405032158, 0.13811925053596497, -0.31583744287490845, -0.021100729703903198, 0.09507157653570175, -0.3773114085197449, -0.4727219045162201, -0.06097596883773804, 0.31193166971206665, -0.4236697256565094, -0.05001462996006012, 0.032389067113399506, 0.44412994384765625, -0.40514761209487915, 0.15662743151187897, -0.047766588628292084, -0.2753085196018219, 0.31919431686401367, -0.19867484271526337, -0.21227097511291504, -0.0460553877055645, 0.34729722142219543, 0.23082181811332703, 0.19548331201076508, 0.5365133285522461, -0.12904149293899536, -0.34708166122436523, -0.262256920337677, -0.060883332043886185, -0.011436308734118938, 0.03628744184970856, 0.19569338858127594, 0.07660921663045883, -0.14575259387493134, -0.048313774168491364, 0.12724468111991882, -0.5695560574531555, -0.12485895305871964, -0.10230317711830139, -0.18032504618167877, -0.3535119295120239, 0.26611649990081787, 0.3351466953754425, 0.5525161027908325, -0.028548337519168854, -0.11219853162765503, -0.2987992465496063, -0.2936097979545593, -0.33526724576950073, -0.07130339741706848, 0.0034745018929243088, 0.13636691868305206, 0.5986911058425903, 0.05310730263590813, -0.20801271498203278, -0.25525397062301636, 0.15885721147060394, -0.006310135126113892, 0.22503060102462769, -0.25322425365448, -0.1845521330833435, 0.1701551079750061, -0.13363692164421082, -0.02164348028600216, -0.1347171813249588, -0.06052574887871742, -0.2564840316772461, -0.19163727760314941, 0.31307587027549744, 0.5176296234130859, 0.14498329162597656, 0.49097830057144165, -0.2527982294559479, 0.049361005425453186, 0.037039414048194885, 0.13917164504528046, -0.11744473874568939, -0.20565812289714813, 0.31847497820854187, 0.019305020570755005, -0.19597932696342468, 0.055702537298202515, 0.03702523931860924, 0.2084473967552185, 0.017504587769508362, 0.26677700877189636, -0.04193549603223801, 0.08519485592842102, -0.09026896953582764, 0.07269058376550674, 0.44856518507003784, 0.23214712738990784, -0.1605047732591629, -0.4679872989654541, 0.2862494885921478, 0.22512027621269226, -0.39815250039100647, -0.15097691118717194, 0.10612733662128448, -0.016899537295103073, 0.24362915754318237, 0.23911619186401367, 0.06756164133548737, -0.041821595281362534, -0.2492028921842575, -0.09641365706920624, 0.6188747882843018, -0.17503902316093445, 0.05231162905693054, 0.5838099718093872, -0.10880069434642792, -0.2564549446105957, 0.1944924294948578, 0.04128445312380791, 0.11903661489486694, 0.5128605961799622, -0.008023150265216827, 0.18934772908687592, 0.35505232214927673, 0.05563743785023689, 0.031716302037239075, -0.15930737555027008, 0.07240013778209686, 0.1346830576658249, -0.27943745255470276, -0.04729115962982178, 0.12307055294513702, 0.06216339021921158, 0.08823110908269882, -0.06791192293167114, 0.10052642971277237, 0.21129707992076874, -0.07835149019956589, -0.055904243141412735, -0.2576436400413513, -0.17441406846046448, 0.11313168704509735, -0.031042538583278656, -0.09791804850101471, -0.12732060253620148, 0.5558127164840698, -0.23313520848751068, -0.02413644641637802, -0.045705512166023254, 0.2590000331401825, 0.02710513025522232, 0.26489052176475525, -0.12549461424350739, -0.3416377305984497, 0.1866706907749176, 0.08202842622995377, 0.007441867142915726, 0.22163081169128418, 0.05960803106427193, -0.16170714795589447, 0.07157259434461594, 0.16492967307567596, -0.27404817938804626, -0.04578327387571335, 0.00567392073571682, 0.2959069609642029, -0.04821057617664337, 0.14276735484600067, 0.14943791925907135, 0.17358969151973724, -0.08773085474967957, -0.010747525840997696, 0.30884864926338196, 0.23175287246704102, -0.6015881299972534, 0.48330941796302795, 0.3662635087966919, -0.3536266088485718, 0.09123961627483368, -0.22861772775650024, 0.10388994961977005, -0.23049229383468628, 0.2738710045814514, 0.0019256530795246363, 0.13253384828567505, -0.11108431220054626, 0.08671870082616806, 0.026073405519127846, 0.05226335674524307, 0.28627270460128784, -0.32509657740592957, -0.1563768833875656, -0.10663191229104996, -0.6826021671295166, -0.28295430541038513, -0.12652340531349182, -0.1817125827074051, 0.07556804269552231, -0.149896040558815, 0.3144507110118866, -0.09902477264404297, 0.0013694614171981812, 0.4327560365200043, -0.44496843218803406, -0.1598188579082489, -0.26970174908638, 0.09908761084079742, -0.03968540579080582, -0.09723800420761108, 0.06241115927696228, -0.43821656703948975, 0.11952663958072662, 0.28945955634117126, 0.018203601241111755, -0.032657112926244736, 0.4034648835659027, -0.034813910722732544, -0.05230499058961868, 0.28122425079345703, 0.11530349403619766, 0.015870295464992523, -0.005551572889089584, -0.08239112049341202, -0.08062605559825897, 0.0137161985039711, -0.284562885761261, 0.11819981038570404, -0.12744414806365967, 0.20478685200214386, -0.11006543040275574, -0.029232200235128403, -0.08938731998205185, 0.5392369031906128, 0.09779909253120422, -0.13137415051460266, -0.34674307703971863, 0.06169074773788452, 0.13669201731681824, 0.1104973554611206, -0.22528061270713806, -0.08213526755571365, 0.00739414244890213, 0.21015878021717072, -0.2858755588531494, -0.215609610080719, 0.5256459712982178, -0.027316071093082428, -0.5001235008239746, -0.18066918849945068, 0.4601821303367615, 0.15952378511428833, -0.2541387677192688, -0.6165408492088318, 0.053336553275585175, 0.2608460485935211, -0.3774894177913666, -0.07892462611198425, 0.5662927031517029, -0.2962237000465393, 0.004888638854026794, 0.10247229039669037, 0.13619215786457062, 0.12054654955863953, 0.039768196642398834, -0.006239581853151321, -0.2911604642868042 ]
https://github.com/huggingface/datasets/issues/5468
Allow opposite of remove_columns on Dataset and DatasetDict
I would rather have this functionality as a separate method. IMO it's always better to be explicit than to have an API where a single method can do different/uncorrelated things (somewhat reminds me of Pandas, and there is probably a good reason why PyArrow is more rigid in this aspect).
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution -
50
Allow opposite of remove_columns on Dataset and DatasetDict ### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution - I would rather have this functionality as a separate method. IMO it's always better to be explicit than to have an API where a single method can do different/uncorrelated things (somewhat reminds me of Pandas, and there is probably a good reason why PyArrow is more rigid in this aspect).
[ 0.020111914724111557, 0.39976435899734497, -0.0942910760641098, -0.08801013231277466, 0.27503466606140137, 0.06968855112791061, 0.40621548891067505, 0.23664866387844086, -0.02431889809668064, 0.41292381286621094, -0.34117618203163147, 0.3137819468975067, -0.34520667791366577, 0.18966731429100037, -0.046305350959300995, -0.13440075516700745, 0.04621780291199684, 0.3355283737182617, -0.13628950715065002, 0.04492112249135971, -0.1748465597629547, -0.1269223690032959, -0.33621031045913696, 0.1335856020450592, 0.17905950546264648, -0.1933949738740921, -0.08029180020093918, -0.2720867991447449, -0.177923321723938, -0.12554657459259033, 0.10375204682350159, 0.38480931520462036, -0.0955968052148819, 0.22855031490325928, -0.00011461120448075235, -0.1724143624305725, -0.12780217826366425, 0.1382329910993576, -0.28990811109542847, -0.06652823090553284, -0.17466071248054504, -0.007097084075212479, 0.08973553031682968, -0.2267405390739441, 0.09964437037706375, -0.4282281994819641, -0.30450770258903503, -0.19102169573307037, 0.11291678994894028, 0.2561129927635193, 0.1816081553697586, 0.10977600514888763, -0.17841564118862152, 0.2763959765434265, 0.1835862100124359, 0.11724917590618134, -0.2579955756664276, 0.004902828484773636, 0.07185955345630646, -0.18149179220199585, 0.18417708575725555, 0.18468987941741943, -0.522218644618988, -0.03983260318636894, 0.0815090537071228, 0.10156324505805969, -0.2387818694114685, -0.45658186078071594, 0.08446119725704193, 0.3894914984703064, 0.6904956698417664, -0.8148401379585266, -0.2759860157966614, -0.26348787546157837, 0.20546114444732666, -0.587268590927124, -0.030773863196372986, 0.24803714454174042, -0.09187157452106476, 0.32470473647117615, -0.3711223304271698, -0.22120122611522675, -0.09146199375391006, 0.09104613959789276, 0.1880931705236435, -0.14720377326011658, 0.21240071952342987, 0.04882378131151199, 0.14846733212471008, 0.11028417199850082, 0.26108643412590027, -0.2467319369316101, 0.11276035010814667, 0.4477866291999817, -0.49529874324798584, -0.31894543766975403, -0.04864215850830078, -0.016680128872394562, 0.12331465631723404, 0.2559983730316162, -0.050175026059150696, 0.02635449543595314, 0.004440994933247566, 0.3786466419696808, 0.25701770186424255, 0.3133492171764374, 0.1303604245185852, 0.21795761585235596, 0.4021799564361572, 0.07873308658599854, 0.22171244025230408, 0.04892037808895111, 0.35397234559059143, 0.08425915986299515, 0.3603157103061676, -0.03296498581767082, 0.27101290225982666, -0.1039232388138771, -0.6102644801139832, 0.07265102118253708, -0.3313351273536682, -0.09786565601825714, 0.1278098076581955, -0.03589171916246414, 0.42290449142456055, 0.19027966260910034, -0.16031290590763092, 0.2723231911659241, 0.03974480926990509, 0.07583290338516235, -0.12272815406322479, 0.3191372752189636, -0.005896329879760742, 0.11133197695016861, 0.3342316150665283, 0.18237298727035522, 0.010992782190442085, 0.3851737082004547, 0.02912844717502594, 0.12980176508426666, -0.06443249434232712, -0.23357856273651123, 0.055817630141973495, 0.18931801617145538, -0.1616157591342926, -0.032219141721725464, -0.19412054121494293, -0.14330027997493744, -0.31613433361053467, 0.29185160994529724, 0.11081818491220474, -0.1386161595582962, -0.06880583614110947, 0.16668753325939178, -0.08242125064134598, -0.004639443010091782, -0.25964614748954773, 0.29478776454925537, -0.12610605359077454, 0.1092246025800705, 0.44632795453071594, -0.1337260901927948, -0.165803000330925, -0.1182679757475853, 0.1132001057267189, 0.035495415329933167, -0.3865376114845276, -0.07286512106657028, 0.137767493724823, -0.36082568764686584, -0.02540554851293564, 0.2925060987472534, -0.03236878290772438, 0.11847967654466629, -0.09528522193431854, -0.16772428154945374, 0.28137218952178955, -0.18260404467582703, -0.24082809686660767, -0.02585037611424923, 0.07994005084037781, 0.3088965117931366, 0.02029821276664734, 0.11200971156358719, 0.0629449188709259, -0.00971395242959261, 0.1633855700492859, 0.23678961396217346, 0.1751686930656433, 0.04308924823999405, 0.11380346119403839, -0.4610697329044342, 0.16180911660194397, 0.08253045380115509, -0.2442045658826828, 0.019966043531894684, 0.07564645260572433, -0.4540137052536011, 0.42471206188201904, -0.2442924678325653, 0.09766293317079544, 0.14892855286598206, 0.509793758392334, 0.07071938365697861, -0.18905691802501678, -0.4789464473724365, -0.4785667657852173, 0.09960871189832687, 0.3381626009941101, 0.10432520508766174, -0.09858928620815277, -0.44370973110198975, 0.15839222073554993, -0.004991430789232254, -0.08415134251117706, 0.16164451837539673, 0.03627365827560425, -0.38078707456588745, 0.06860494613647461, 0.08938165009021759, -0.4597959816455841, 0.23912747204303741, -0.31310319900512695, 0.24293386936187744, -0.06572337448596954, -0.07314734905958176, 0.25570210814476013, 0.017771760001778603, 0.029872074723243713, 0.4258069097995758, 0.07952538877725601, 0.1822720617055893, 0.1046677902340889, 0.44703567028045654, 0.11924482136964798, 0.023626945912837982, -0.3918353021144867, 0.457042396068573, 0.10553540289402008, 0.28504881262779236, 0.06736838072538376, 0.004918612539768219, 0.14379362761974335, 0.07132142037153244, -0.22646227478981018, 0.2673017084598541, -0.09674856066703796, 0.25062406063079834, -0.0438937284052372, -0.20520716905593872, 0.006239878013730049, -0.01291835680603981, -0.35400259494781494, -0.20068375766277313, -0.005175299942493439, 0.03347610682249069, 0.004933837801218033, 0.10043717175722122, -0.45063140988349915, -0.17590117454528809, 0.48308321833610535, -0.0486997552216053, 0.1188560277223587, 0.1272319257259369, -0.027329877018928528, -0.07376782596111298, 0.09924392402172089, 0.2317371517419815, 0.3992602229118347, 0.15170860290527344, -0.05497690662741661, 0.39963534474372864, 0.06929191201925278, -0.05926770344376564, 0.26715800166130066, 0.3545495867729187, -0.09375666081905365, 0.04984768480062485, 0.5020117163658142, 0.08541572093963623, -0.5406273007392883, -0.13265499472618103, -0.1149417906999588, 0.24723494052886963, -0.17954157292842865, -0.108429916203022, -0.32502609491348267, -0.21680179238319397, -0.0889170691370964, -0.3658948838710785, -0.2529366910457611, -0.039349742233753204, 0.25129038095474243, 0.15570387244224548, -0.33884045481681824, 0.3323027193546295, -0.4132947027683258, 0.24116621911525726, -0.33162978291511536, -0.271433025598526, -0.04917410388588905, -0.0868009626865387, 0.30662262439727783, 0.11626230180263519, 0.08034905046224594, -0.08431760221719742, 0.2230232059955597, 0.37537881731987, -0.3513106107711792, -0.19120155274868011, -0.10806912183761597, 0.1353849172592163, -0.2976836562156677, 0.10104425251483917, 0.27489209175109863, -0.12503954768180847, 0.10222454369068146, -0.2778494954109192, 0.021326446905732155, -0.14125746488571167, -0.05235869437456131, 0.04455295950174332, 0.39509788155555725, 0.23369088768959045, -0.2510014474391937, -0.058990396559238434, -0.09020582586526871, -0.3839303255081177, 0.37963902950286865, -0.25250205397605896, 0.2043071687221527, 0.10275087505578995, -0.1131574884057045, -0.1589786410331726, 0.10593273490667343, 0.06477326899766922, -0.1282356083393097, -0.29250457882881165, 0.16149695217609406, 0.20146159827709198, 0.08515255153179169, -0.09778933227062225, 0.10740834474563599, 0.16049903631210327, 0.2004738599061966, -0.15928345918655396, -0.23822104930877686, -0.3452555239200592, 0.21116992831230164, 0.039443325251340866, 0.05571478232741356, 0.24485565721988678, 0.18354113399982452, 0.022797705605626106, 0.1413070559501648, -0.09897440671920776, -0.10515602678060532, 0.21059206128120422, -0.296998530626297, 0.13472643494606018, 0.3569920063018799, -0.09223474562168121, 0.2931160628795624, -0.24124711751937866, 0.10412055253982544, 0.15353187918663025, 0.005502048879861832, 0.29378268122673035, -0.16691944003105164, -0.39808017015457153, 0.051553115248680115, -0.052219197154045105, -0.21178662776947021, 0.15388144552707672, -0.09870980679988861, -0.2605323791503906, -0.11954040080308914, 0.049000855535268784, 0.0260847806930542, -0.33902445435523987, 0.11552679538726807, -0.19745846092700958, 0.09140797704458237, 0.21563248336315155, 0.1807842254638672, 0.1141347736120224, -0.16634634137153625, 0.06475764513015747, -0.1213914006948471, 0.14498160779476166, -0.3063446283340454, -0.6323857307434082, -0.14697855710983276, -0.5100545287132263, 0.37492161989212036, 0.010519670322537422, 0.12744294106960297, 0.18316036462783813, -0.16086164116859436, 0.1976848542690277, 0.1984187215566635, 0.2679491937160492, -0.006752999499440193, -0.2994111180305481, 0.017846662551164627, 0.13554425537586212, -0.3005121052265167, -0.18123304843902588, -0.24920965731143951, -0.23205506801605225, -0.30177178978919983, 0.38620513677597046, -0.23799458146095276, -0.22553470730781555, 0.3002082109451294, 0.40449243783950806, -0.023435192182660103, -0.0019130632281303406, -0.15317726135253906, -0.3410930037498474, -0.1445428729057312, 0.12812426686286926, 0.19538460671901703, 0.2699626088142395, -0.3458927571773529, 0.08984443545341492, 0.19599951803684235, 0.012106772512197495, 0.33444976806640625, -0.10713349282741547, 0.1255568265914917, -0.20671704411506653, 0.1978706270456314, -0.041556015610694885, -0.1438300907611847, 0.17514869570732117, 0.08795837312936783, -0.3010063171386719, -0.3237431049346924, -0.18895938992500305, -0.23620834946632385, 0.7472814321517944, 0.0030516088008880615, 0.03987376019358635, 0.4258127212524414, -0.2365441918373108, 0.045173585414886475, -0.23102562129497528, -0.40998974442481995, 0.34632134437561035, 0.009047779254615307, -0.15237341821193695, -0.722626805305481, 0.4357067346572876, 0.40792116522789, -0.28908950090408325, 0.46214526891708374, 0.3625797629356384, -0.42848122119903564, 0.3689195513725281, -0.08154992014169693, 0.8853303790092468, 0.11248445510864258, 0.29734501242637634, 0.0983293205499649, -0.4425632953643799, 0.5367462635040283, -0.23615117371082306, 0.4481465220451355, -0.20354624092578888, -0.09197656810283661, -0.07854253798723221, 0.01146666333079338, 0.3018612861633301, 0.13967008888721466, 0.0708504468202591, 0.3429502844810486, -0.18022534251213074, 0.4949115514755249, -0.03412332385778427, -0.042287979274988174, -0.34683164954185486, -0.24877575039863586, -0.28994911909103394, 0.04111363738775253, -0.08994327485561371, -0.317602276802063, -0.057945169508457184, 0.2954827547073364, 0.15741486847400665, -0.06401855498552322, -0.041409943252801895, -0.07609213888645172, -0.06814533472061157, 0.26125311851501465, -0.16889290511608124, -0.5075466632843018, 0.2433774471282959, 0.10341832041740417, 0.15406744182109833, -0.020102079957723618, 0.11030597239732742, 0.143599733710289, 0.28609129786491394, 0.4726932942867279, -0.13063858449459076, 0.04894870147109032, 0.013404814526438713, 0.10679958015680313, -0.3475968539714813, 0.0423976331949234, 0.07901304215192795, -0.3748348355293274, -0.46748852729797363, -0.030684247612953186, 0.3487643599510193, -0.3767346739768982, -0.07228051126003265, -0.00020675361156463623, 0.4357178807258606, -0.3668413460254669, 0.11116762459278107, -0.011785559356212616, -0.19286775588989258, 0.3928116261959076, -0.3191339373588562, -0.17479237914085388, -0.09489759802818298, 0.2784309685230255, 0.21266889572143555, 0.23138868808746338, 0.5427441596984863, -0.14000491797924042, -0.28075090050697327, -0.20458650588989258, -0.1269795000553131, -0.004270606674253941, -0.025676708668470383, 0.12397095561027527, 0.09658589214086533, -0.018445312976837158, -0.0706852599978447, 0.10876069962978363, -0.5687028169631958, -0.11802790313959122, -0.08151397109031677, -0.20565401017665863, -0.2868848741054535, 0.32267892360687256, 0.4128197431564331, 0.5259299874305725, 0.005219303071498871, -0.05351315066218376, -0.2665154039859772, -0.2639635503292084, -0.2837100327014923, -0.05010371655225754, 0.09878925234079361, 0.13885705173015594, 0.46573102474212646, 0.17496779561042786, -0.17723901569843292, -0.26338252425193787, 0.10446800291538239, -0.04296448826789856, 0.22946839034557343, -0.22506392002105713, -0.22989246249198914, 0.20453625917434692, -0.10390108078718185, 0.056236669421195984, -0.05692577734589577, -0.04282030463218689, -0.2201409935951233, -0.22438982129096985, 0.294749915599823, 0.45731788873672485, 0.14183424413204193, 0.5040795803070068, -0.09442324936389923, 0.04361017420887947, -0.10876898467540741, 0.13544347882270813, -0.15374264121055603, -0.17012344300746918, 0.3337147533893585, 0.10093294829130173, -0.19649817049503326, 0.10945567488670349, 0.11759578436613083, 0.16670191287994385, 0.04998333007097244, 0.11591208726167679, -0.08341778069734573, 0.11506687849760056, -0.14584890007972717, -0.03738319128751755, 0.5413209199905396, 0.21491853892803192, -0.15364985167980194, -0.4238055646419525, 0.3243961036205292, 0.18165384232997894, -0.4463898241519928, -0.07178863137960434, 0.20590634644031525, -0.051906563341617584, 0.2140643298625946, 0.23820367455482483, 0.04061169549822807, -0.012644194066524506, -0.26063960790634155, -0.1384275257587433, 0.6676388382911682, -0.13666990399360657, -0.027598373591899872, 0.6290706992149353, -0.10333869606256485, -0.2174568921327591, 0.2569056749343872, 0.0609213188290596, 0.15188175439834595, 0.34503060579299927, -0.12199903279542923, 0.15658709406852722, 0.2788214087486267, -0.02994561567902565, 0.09214269369840622, -0.1294209212064743, -0.008310526609420776, 0.14675214886665344, -0.13755421340465546, -0.09726569801568985, 0.15615367889404297, 0.16358616948127747, 0.2158859223127365, -0.06899186223745346, 0.12103482335805893, 0.3447302579879761, -0.00734507292509079, -0.030392421409487724, -0.2391795963048935, -0.22754448652267456, 0.20780467987060547, -0.002896934747695923, -0.05309019610285759, -0.21603097021579742, 0.6234338283538818, -0.1360187530517578, 0.026047013700008392, -0.06901530921459198, 0.33471664786338806, 0.01639414392411709, 0.28013449907302856, -0.07055704295635223, -0.38257139921188354, 0.20161008834838867, 0.008356645703315735, -0.02768547460436821, 0.20798540115356445, 0.08152151107788086, -0.20560017228126526, 0.018355555832386017, 0.19497118890285492, -0.35624080896377563, 0.010500682517886162, -0.014437315985560417, 0.2651016414165497, -0.03563612699508667, 0.16235658526420593, 0.11896641552448273, 0.14819762110710144, -0.047598302364349365, -0.011093802750110626, 0.28171512484550476, 0.21690136194229126, -0.6868804097175598, 0.49540090560913086, 0.3854421079158783, -0.4438914358615875, 0.18814413249492645, -0.19124171137809753, 0.19987967610359192, -0.21628262102603912, 0.21884013712406158, 0.08001478016376495, 0.07580900192260742, -0.08950931578874588, 0.05555205047130585, 0.0014996081590652466, 0.018529806286096573, 0.3377740681171417, -0.13207793235778809, -0.1026247963309288, -0.08856531977653503, -0.7005959749221802, -0.28331848978996277, -0.17317184805870056, -0.22481690347194672, 0.08832476288080215, -0.0953281968832016, 0.3600201904773712, -0.023879993706941605, 0.014290690422058105, 0.44797438383102417, -0.40473416447639465, -0.08347970247268677, -0.34672173857688904, 0.14218378067016602, -0.121085986495018, -0.08371827751398087, -0.018665846437215805, -0.39277154207229614, 0.08477222174406052, 0.20134024322032928, -0.026370763778686523, -0.11200165748596191, 0.3961524963378906, 0.09628589451313019, -0.02068708837032318, 0.3328104615211487, 0.12452642619609833, 0.020282581448554993, 0.030638039112091064, -0.10213557630777359, 0.002619214355945587, 0.08114273846149445, -0.34590259194374084, 0.102445587515831, -0.17354726791381836, 0.11719618737697601, -0.12374266237020493, -0.08000046014785767, -0.0819787085056305, 0.5887466669082642, 0.0628121942281723, -0.1670350283384323, -0.2507934868335724, 0.046094708144664764, 0.15787655115127563, 0.09089455008506775, -0.20439907908439636, -0.04287738353013992, -0.002844754606485367, 0.18682870268821716, -0.32318025827407837, -0.12761607766151428, 0.5167140364646912, -0.2285565584897995, -0.460936963558197, -0.2021750956773758, 0.3777126371860504, 0.10972800850868225, -0.21347276866436005, -0.5965154767036438, 0.07200395315885544, 0.2796327769756317, -0.3220444619655609, -0.08890877664089203, 0.5643777847290039, -0.2675975263118744, 0.04162183031439781, 0.07542291283607483, 0.111556276679039, 0.09469356387853622, -0.009464958682656288, -0.06516875326633453, -0.34346121549606323 ]
https://github.com/huggingface/datasets/issues/5468
Allow opposite of remove_columns on Dataset and DatasetDict
In the end I also think it would be nice to have it as a separate method, this way we can also have it for `IterableDataset` (which can't have `select` for indices)
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution -
32
Allow opposite of remove_columns on Dataset and DatasetDict ### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(columns_to_remove) ``` This kind of thing happens a lot when you don't need to keep all columns from the dataset. It would be more convenient (and less error prone) if you could just write: ```python gigaspeech = gigaspeech.keep_columns(["text", "audio"]) ``` Internally, `keep_columns` could still call `remove_columns`, but it expresses more clearly what the user's intent is. ### Motivation Less code to write for the user of the dataset. ### Your contribution - In the end I also think it would be nice to have it as a separate method, this way we can also have it for `IterableDataset` (which can't have `select` for indices)
[ -0.05954696983098984, 0.2965109050273895, -0.11649022996425629, -0.020905494689941406, 0.266926646232605, 0.12014489620923996, 0.39920538663864136, 0.221605122089386, 0.12385514378547668, 0.43253225088119507, -0.3550332188606262, 0.2529556155204773, -0.3704719543457031, 0.2411772757768631, -0.09178038686513901, -0.09360209107398987, 0.006725318729877472, 0.27484726905822754, -0.2014431655406952, 0.05780094861984253, -0.2227931022644043, -0.07949875295162201, -0.40409600734710693, 0.09058421850204468, 0.21661679446697235, -0.202854186296463, -0.001356879249215126, -0.2289665937423706, -0.15922385454177856, -0.13598932325839996, 0.14376695454120636, 0.3468777537345886, -0.09990610927343369, 0.2726399004459381, -0.00011019850353477523, -0.16006843745708466, -0.12862379848957062, 0.1343979835510254, -0.35145634412765503, -0.04996594786643982, -0.2950136959552765, 0.037924423813819885, -0.038084886968135834, -0.23332548141479492, 0.04387141019105911, -0.3718045651912689, -0.3685636818408966, -0.3377036154270172, 0.018614985048770905, 0.2627955973148346, 0.211991548538208, 0.02102740854024887, -0.19707942008972168, 0.1900940090417862, 0.07950857281684875, 0.140375554561615, -0.2756369113922119, -0.06449706852436066, 0.09500488638877869, -0.04379726201295853, 0.2325984537601471, 0.307132363319397, -0.4742433726787567, -0.09899196028709412, 0.03546375781297684, 0.050781525671482086, -0.14127150177955627, -0.3782515525817871, 0.12290413677692413, 0.32085147500038147, 0.7345508337020874, -0.7035719752311707, -0.25539636611938477, -0.26203519105911255, 0.21358893811702728, -0.5589945912361145, -0.013577662408351898, 0.16332663595676422, -0.04355330020189285, 0.30247628688812256, -0.36339467763900757, -0.2649807929992676, -0.0579269640147686, -0.03444994240999222, 0.2562235891819, -0.11246265470981598, 0.14323244988918304, 0.03610553592443466, 0.20582634210586548, -0.00682111456990242, 0.2954291105270386, -0.22783082723617554, 0.08091922104358673, 0.4145907163619995, -0.46069270372390747, -0.38675621151924133, -0.0755716934800148, -0.059270940721035004, 0.050605885684490204, 0.23641008138656616, -0.06730228662490845, 0.016472317278385162, -0.02632913365960121, 0.3401671051979065, 0.2915092408657074, 0.345255583524704, 0.16484996676445007, 0.348055899143219, 0.38265734910964966, 0.15045645833015442, 0.25140294432640076, 0.019671322777867317, 0.3616708815097809, 0.06060194969177246, 0.33279791474342346, 0.03137610852718353, 0.18964315950870514, -0.12213003635406494, -0.6521872878074646, 0.09568746387958527, -0.23290884494781494, -0.06555119901895523, 0.24414093792438507, -0.03375914692878723, 0.47285282611846924, 0.17662012577056885, -0.14789751172065735, 0.18017783761024475, 0.014016656205058098, 0.14852973818778992, -0.16511744260787964, 0.2898712754249573, 0.016786333173513412, 0.09403526782989502, 0.3364409804344177, 0.17355486750602722, 0.023924656212329865, 0.3212568163871765, -0.055107831954956055, 0.12150634825229645, -0.03777647763490677, -0.27005505561828613, 0.113641157746315, 0.18489542603492737, -0.19303877651691437, -0.04399408400058746, -0.1405598670244217, -0.17668801546096802, -0.26936018466949463, 0.2942916750907898, 0.11677195131778717, -0.16274763643741608, -0.06767194718122482, 0.2016916573047638, -0.03455187380313873, -0.030057862401008606, -0.21400058269500732, 0.2936962842941284, -0.11140953749418259, 0.101978600025177, 0.4582177698612213, -0.16800299286842346, -0.2459261119365692, -0.011935189366340637, 0.1390138417482376, 0.1545921266078949, -0.3591245412826538, -0.04695270210504532, 0.09559319913387299, -0.36989668011665344, 0.009208418428897858, 0.24323540925979614, 0.020932486280798912, 0.10744035989046097, -0.17635409533977509, -0.24962297081947327, 0.19874802231788635, -0.17561142146587372, -0.21852543950080872, 0.03586897253990173, 0.03597250580787659, 0.33725666999816895, 0.028018660843372345, 0.13244596123695374, 0.0452590249478817, -0.03229773789644241, 0.22357314825057983, 0.18555811047554016, 0.12139572948217392, 0.06562553346157074, 0.13590125739574432, -0.3841968774795532, 0.15036416053771973, 0.06980392336845398, -0.22273845970630646, 0.07470166683197021, 0.03843436390161514, -0.38312995433807373, 0.3819209337234497, -0.22819361090660095, 0.12037579715251923, 0.1877409815788269, 0.4672374129295349, 0.08333694189786911, -0.13329239189624786, -0.5032379031181335, -0.4591792821884155, 0.1250481903553009, 0.4416671693325043, 0.004605408757925034, -0.05481871962547302, -0.38176554441452026, 0.030925024300813675, -0.060512371361255646, -0.11972750723361969, 0.1545465886592865, 0.061988890171051025, -0.37115469574928284, 0.03383928909897804, 0.028628528118133545, -0.4754754602909088, 0.3516952395439148, -0.36100849509239197, 0.1634189486503601, -0.17132483422756195, -0.11883155256509781, 0.2529604732990265, 0.0900542289018631, 0.041425853967666626, 0.46939384937286377, 0.1416807472705841, 0.1375749409198761, 0.02748088538646698, 0.46226248145103455, 0.14862549304962158, 0.00413406640291214, -0.2641702890396118, 0.43142837285995483, 0.12822625041007996, 0.3042786121368408, 0.08097011595964432, 0.02753947675228119, 0.1638578176498413, 0.04244598001241684, -0.24754419922828674, 0.2585026025772095, -0.2685701251029968, 0.31521034240722656, -0.03657515347003937, -0.16543129086494446, 0.07771243900060654, 0.03344663605093956, -0.3920176029205322, -0.3092878460884094, -0.09063167870044708, -0.02895435318350792, -0.03283588960766792, 0.02139533869922161, -0.4366176128387451, -0.17219895124435425, 0.38552966713905334, 0.04734591022133827, 0.11333891749382019, 0.11758534610271454, -0.0011140629649162292, -0.014804700389504433, 0.12204069644212723, 0.320164293050766, 0.4203169345855713, 0.11600308120250702, -0.0061124153435230255, 0.3570123314857483, 0.12246722728013992, -0.08295629173517227, 0.2874296009540558, 0.33039772510528564, -0.13124819099903107, 0.12267011404037476, 0.3527413308620453, -0.001157534308731556, -0.5902969837188721, -0.14965209364891052, -0.13955196738243103, 0.26130175590515137, -0.180533304810524, -0.11662477999925613, -0.26274874806404114, -0.2660926878452301, -0.04016869142651558, -0.2533034682273865, -0.08660058677196503, -0.08319241553544998, 0.18213847279548645, 0.21376599371433258, -0.3122168183326721, 0.26402387022972107, -0.4598279595375061, 0.25073593854904175, -0.23520155251026154, -0.18076899647712708, -0.012541722506284714, -0.043746694922447205, 0.3245505690574646, 0.14893989264965057, 0.04402201995253563, -0.057239972054958344, 0.24299781024456024, 0.39132821559906006, -0.3290170431137085, -0.21656650304794312, -0.032165538519620895, 0.12961047887802124, -0.3273574113845825, 0.040937088429927826, 0.3389483094215393, -0.14729870855808258, 0.09613293409347534, -0.22983010113239288, -0.016115820035338402, -0.051066502928733826, 0.040103472769260406, 0.07032177597284317, 0.3823935389518738, 0.1945764124393463, -0.20694762468338013, -0.12703800201416016, -0.10090088099241257, -0.40036311745643616, 0.36834800243377686, -0.2545715272426605, 0.2408282458782196, 0.21402619779109955, -0.16991287469863892, -0.10929925739765167, 0.2406357228755951, 0.09082779288291931, -0.19188600778579712, -0.3125244379043579, 0.10947123169898987, 0.11512018740177155, 0.12745703756809235, -0.11004152148962021, 0.10716550052165985, 0.13989901542663574, 0.1498219519853592, -0.15961235761642456, -0.15962190926074982, -0.38743630051612854, 0.0032760202884674072, 0.031144773587584496, 0.10769503563642502, 0.2292785346508026, 0.16599231958389282, 0.0038728956133127213, 0.1363980770111084, -0.10411347448825836, -0.09859343618154526, 0.2350667119026184, -0.258000910282135, 0.20044469833374023, 0.4436493515968323, -0.053111590445041656, 0.17096486687660217, -0.07528473436832428, 0.19134563207626343, 0.128954216837883, 0.05561333894729614, 0.3520262539386749, -0.2572675347328186, -0.4491753876209259, 0.05801524221897125, -0.00046521425247192383, -0.2564164400100708, 0.09407983720302582, -0.11274374276399612, -0.19412441551685333, -0.09028024971485138, 0.1324623078107834, 0.09999179095029831, -0.3200535476207733, 0.059932999312877655, -0.30221402645111084, 0.13456547260284424, 0.16292603313922882, 0.20656231045722961, 0.09126567840576172, -0.08692257106304169, 0.06868702173233032, -0.13251127302646637, 0.23833885788917542, -0.32386431097984314, -0.6430709958076477, -0.1213739663362503, -0.5133333206176758, 0.3601464629173279, 0.028388841077685356, 0.26669198274612427, 0.11473877727985382, -0.17263707518577576, 0.16352377831935883, 0.27235856652259827, 0.30459824204444885, -0.13781769573688507, -0.29293549060821533, 0.11645153164863586, 0.08080044388771057, -0.2822090983390808, -0.15595078468322754, -0.20600222051143646, -0.09065667539834976, -0.3124041259288788, 0.4723365306854248, -0.20461806654930115, -0.25219300389289856, 0.3409920334815979, 0.34276366233825684, -0.03292004019021988, 0.04489845409989357, -0.07554584741592407, -0.2813582420349121, -0.10292097926139832, 0.20772111415863037, 0.23528043925762177, 0.28236809372901917, -0.30478569865226746, 0.04875688627362251, 0.11295776814222336, -0.06353785842657089, 0.2995995581150055, -0.07751919329166412, 0.15407896041870117, -0.11125656962394714, 0.3070814907550812, 0.08649777621030807, -0.2006841003894806, 0.07106263935565948, 0.12599006295204163, -0.3418762981891632, -0.2396601438522339, -0.10825110226869583, -0.2833855152130127, 0.7113034725189209, 0.027157358825206757, 0.021952688694000244, 0.32095199823379517, -0.27192527055740356, 0.04422547668218613, -0.2857300639152527, -0.46276259422302246, 0.3111182451248169, 0.03740428015589714, -0.18132413923740387, -0.7739814519882202, 0.3707748353481293, 0.37803515791893005, -0.27761000394821167, 0.4625849723815918, 0.36753273010253906, -0.48274463415145874, 0.33190488815307617, -0.09971088916063309, 0.7309207320213318, 0.13044416904449463, 0.15509168803691864, 0.032977938652038574, -0.34181690216064453, 0.3946072459220886, -0.1672428697347641, 0.4002254605293274, -0.16495078802108765, -0.235219806432724, -0.05870780348777771, 0.025384102016687393, 0.2905932664871216, 0.12519383430480957, 0.009329762309789658, 0.3700405955314636, -0.16247886419296265, 0.3479337990283966, -0.10481337457895279, -0.04185657948255539, -0.3736536502838135, -0.32657819986343384, -0.17574796080589294, 0.08766959607601166, -0.07822416722774506, -0.31271299719810486, -0.012393406592309475, 0.36209702491760254, 0.27161210775375366, -0.04309539124369621, -0.09371144324541092, -0.06635763496160507, -0.0675283819437027, 0.3144381046295166, -0.1958206295967102, -0.49124807119369507, 0.2942863404750824, 0.0951797366142273, 0.2866553068161011, 0.043568696826696396, 0.1310228556394577, 0.12306921184062958, 0.34857818484306335, 0.5014164447784424, -0.1684008091688156, 0.12122561037540436, 0.04911138489842415, 0.12559545040130615, -0.24426493048667908, -0.014799989759922028, 0.11653339862823486, -0.4065876007080078, -0.4460158348083496, -0.09632566571235657, 0.33417195081710815, -0.3841189444065094, -0.11146669089794159, 0.052597079426050186, 0.4007941484451294, -0.35563910007476807, 0.12570179998874664, -0.01383703202009201, -0.23638007044792175, 0.41061773896217346, -0.2597462236881256, -0.1538929045200348, -0.03502945974469185, 0.33370155096054077, 0.19995814561843872, 0.19200599193572998, 0.5336334705352783, -0.15289753675460815, -0.32170188426971436, -0.2531265616416931, -0.10984005033969879, -0.026762163266539574, 0.11518090218305588, 0.21897061169147491, 0.019535155966877937, -0.055924490094184875, -0.02223948948085308, 0.12791335582733154, -0.5813283324241638, -0.16606003046035767, -0.14372533559799194, -0.14919157326221466, -0.33704715967178345, 0.2977595925331116, 0.39411723613739014, 0.6016862392425537, -0.0660410076379776, -0.2088528871536255, -0.3456895053386688, -0.31744185090065, -0.30969077348709106, -0.0826226994395256, 0.03863673657178879, 0.1367167830467224, 0.5479604005813599, 0.12902668118476868, -0.17882978916168213, -0.24904471635818481, 0.13612718880176544, 0.00444469228386879, 0.2283722460269928, -0.23979756236076355, -0.21421194076538086, 0.16236282885074615, -0.07857027649879456, 0.0012028058990836143, -0.13764213025569916, -0.10342374444007874, -0.31534069776535034, -0.21701349318027496, 0.3045760691165924, 0.48151665925979614, 0.13749343156814575, 0.4933662414550781, -0.17705830931663513, -0.006551295518875122, -0.0018911324441432953, 0.15339341759681702, -0.09161750972270966, -0.22138704359531403, 0.3145332634449005, 0.09502874314785004, -0.20476949214935303, 0.04019986093044281, 0.041324712336063385, 0.240237295627594, 0.1239485889673233, 0.16483548283576965, -0.028737172484397888, 0.08951915800571442, -0.09115049242973328, 0.12251001596450806, 0.4728679656982422, 0.23856981098651886, -0.13726173341274261, -0.41823098063468933, 0.26272159814834595, 0.2170407474040985, -0.39379629492759705, -0.12157315760850906, 0.07672148942947388, -0.0060399239882826805, 0.2444075047969818, 0.26089024543762207, 0.04125962778925896, 0.002925373613834381, -0.19400982558727264, -0.08047419786453247, 0.6028454899787903, -0.21471047401428223, 0.03223509341478348, 0.5962673425674438, -0.0709695965051651, -0.2712932825088501, 0.19325491786003113, 0.030849676579236984, 0.16817311942577362, 0.4682964086532593, -0.10536343604326248, 0.19086970388889313, 0.3735387325286865, 0.05274318531155586, 0.07524457573890686, -0.1662682443857193, 0.04930363968014717, 0.07302622497081757, -0.2259787619113922, -0.06954414397478104, 0.16167059540748596, 0.06122605502605438, 0.06938714534044266, -0.08295641094446182, 0.06670781224966049, 0.22313331067562103, -0.04487551748752594, -0.050667691975831985, -0.2009686380624771, -0.18941447138786316, 0.1465916484594345, -0.008850816637277603, -0.10041898488998413, -0.12941370904445648, 0.4981934130191803, -0.22384200990200043, 0.06569979339838028, -0.09255558997392654, 0.263780802488327, 0.02266763709485531, 0.2983587682247162, -0.11873374879360199, -0.3887351453304291, 0.1800159066915512, 0.09447625279426575, -0.051255594938993454, 0.2402845174074173, -0.015129949897527695, -0.1984771192073822, 0.009930252097547054, 0.1602250039577484, -0.30239251255989075, -0.03562653064727783, -0.0013056304305791855, 0.2607763409614563, -0.16084052622318268, 0.08437328785657883, 0.14014612138271332, 0.14688600599765778, -0.05304066464304924, 0.011455565690994263, 0.310549259185791, 0.2512730360031128, -0.647986650466919, 0.4637225866317749, 0.4020889699459076, -0.35129356384277344, 0.17543187737464905, -0.2157612144947052, 0.23600587248802185, -0.26059430837631226, 0.21231579780578613, -0.03306328132748604, 0.11969473212957382, -0.04214689880609512, 0.08202904462814331, -0.018246229737997055, 0.0009266696870326996, 0.26460590958595276, -0.3322284519672394, -0.15002410113811493, -0.08711136877536774, -0.6555178761482239, -0.3902062475681305, -0.05796399340033531, -0.13102243840694427, 0.13588730990886688, -0.0312056802213192, 0.3123828172683716, -0.07498151808977127, 0.005000703036785126, 0.3903762698173523, -0.3750306963920593, -0.06115681678056717, -0.2640663683414459, 0.03268047422170639, -0.06254757940769196, -0.0896371379494667, 0.007472816854715347, -0.4382641911506653, 0.035899028182029724, 0.2287326604127884, 0.006989620625972748, -0.06415331363677979, 0.3641485869884491, 0.02506484091281891, -0.04441265016794205, 0.2913956940174103, 0.1135120838880539, -0.055442482233047485, 0.009561218321323395, -0.049676187336444855, -0.043133076280355453, -0.0025510615669190884, -0.3182990849018097, 0.07555556297302246, -0.15349820256233215, 0.19054757058620453, -0.1439051628112793, -0.018363457173109055, -0.11531908810138702, 0.5141112208366394, 0.08727681636810303, -0.1343904435634613, -0.3459707498550415, 0.09903952479362488, 0.10693996399641037, 0.15846975147724152, -0.24051406979560852, -0.043077170848846436, 0.01378784328699112, 0.26520198583602905, -0.2785451412200928, -0.16962315142154694, 0.44938376545906067, -0.07239600270986557, -0.47412702441215515, -0.14947885274887085, 0.3849151134490967, 0.15893186628818512, -0.26627907156944275, -0.5045179724693298, 0.06324546784162521, 0.26783472299575806, -0.3912360370159149, -0.07854627072811127, 0.5404162406921387, -0.22030994296073914, 0.05198017880320549, 0.08371587097644806, 0.13074392080307007, 0.17832350730895996, 0.020278574898838997, -0.03913122043013573, -0.27274417877197266 ]
https://github.com/huggingface/datasets/issues/5464
NonMatchingChecksumError for hendrycks_test
Thanks for reporting, @sarahwie. Please note this issue was already fixed in `datasets` 2.6.0 version: - #5040 If you update your `datasets` version, you will be able to load the dataset: ``` pip install -U datasets ```
### Describe the bug The checksum of the file has likely changed on the remote host. ### Steps to reproduce the bug `dataset = nlp.load_dataset("hendrycks_test", "anatomy")` ### Expected behavior no error thrown ### Environment info - `datasets` version: 2.2.1 - Platform: macOS-13.1-arm64-arm-64bit - Python version: 3.9.13 - PyArrow version: 9.0.0 - Pandas version: 1.5.1
37
NonMatchingChecksumError for hendrycks_test ### Describe the bug The checksum of the file has likely changed on the remote host. ### Steps to reproduce the bug `dataset = nlp.load_dataset("hendrycks_test", "anatomy")` ### Expected behavior no error thrown ### Environment info - `datasets` version: 2.2.1 - Platform: macOS-13.1-arm64-arm-64bit - Python version: 3.9.13 - PyArrow version: 9.0.0 - Pandas version: 1.5.1 Thanks for reporting, @sarahwie. Please note this issue was already fixed in `datasets` 2.6.0 version: - #5040 If you update your `datasets` version, you will be able to load the dataset: ``` pip install -U datasets ```
[ -0.00027365610003471375, 0.07948149740695953, -0.06093323975801468, 0.08092423528432846, 0.07030531764030457, -0.024456463754177094, 0.05884627625346184, 0.620568573474884, 0.195085346698761, 0.07972130179405212, -0.08397620916366577, 0.2846687436103821, 0.13756658136844635, -0.3946753740310669, 0.11108396202325821, 0.3356315493583679, 0.10795488953590393, 0.36585119366645813, -0.15008008480072021, -0.24351389706134796, -0.17214098572731018, 0.17886459827423096, -0.13165292143821716, -0.10045051574707031, 0.054515767842531204, 0.09079586714506149, 0.03845295310020447, 0.184758722782135, -0.09231583774089813, -0.3549209535121918, 0.2840501666069031, 0.11033064126968384, -0.022625599056482315, 0.20931872725486755, -0.00011164154420839623, 0.07971319556236267, 0.29741761088371277, -0.027041561901569366, -0.25823456048965454, -0.07992133498191833, -0.32581737637519836, -0.6731693148612976, 0.14825712144374847, -0.3534838855266571, 0.015662189573049545, 0.0035498477518558502, 0.15400458872318268, 0.26821190118789673, 0.08250834792852402, 0.2684284448623657, 0.24269649386405945, 0.5654658079147339, 0.10888820886611938, 0.06531792134046555, 0.30328822135925293, -0.19931362569332123, -0.0025730524212121964, 0.40004611015319824, 0.08077341318130493, -0.20602290332317352, -0.3402237594127655, 0.09108592569828033, -0.12137579172849655, 0.19512364268302917, -0.10545595735311508, -0.04622030258178711, 0.4137093424797058, -0.02329292893409729, 0.08573031425476074, 0.24967601895332336, 0.13392561674118042, -0.17485389113426208, -0.1465023010969162, -0.15162691473960876, -0.12343817204236984, -0.06015760451555252, 0.34231483936309814, 0.248196080327034, -0.24357183277606964, -0.0936800092458725, -0.1398812234401703, 0.1330438107252121, 0.007750675082206726, 0.2900264263153076, 0.0676080733537674, 0.17071276903152466, 0.09931943565607071, -0.04510613530874252, -0.08035038411617279, -0.07159724831581116, 0.360689252614975, -0.1432356834411621, -0.23532652854919434, 0.21636919677257538, -0.4402637481689453, -0.20156534016132355, 0.19276058673858643, 0.27859798073768616, 0.3187828063964844, 0.34490638971328735, 0.075161412358284, 0.0720343142747879, -0.35663241147994995, 0.2386251986026764, 0.1358526349067688, 0.08657345175743103, 0.05019412189722061, 0.027798570692539215, 0.20449623465538025, 0.32566413283348083, -0.22885876893997192, 0.11736369132995605, 0.05410132557153702, -0.43334513902664185, 0.647802472114563, -0.023419540375471115, 0.14405527710914612, -0.47305843234062195, -0.1914881020784378, 0.3631080389022827, -0.023535242304205894, -0.0802178904414177, 0.1924523115158081, 0.45402613282203674, -0.2709328830242157, 0.09882910549640656, -0.11731923371553421, 0.03498053923249245, -0.30018317699432373, -0.07839509844779968, -0.2994544804096222, 0.06074987351894379, -0.09923353791236877, -0.25785985589027405, 0.1178828775882721, 0.059966862201690674, 0.3830168843269348, 0.04608967527747154, 0.28989458084106445, 0.007945504039525986, 0.09860696643590927, -0.034558333456516266, 0.061028800904750824, 0.44145941734313965, -0.021272847428917885, 0.0035888534039258957, 0.2362988442182541, -0.2075141817331314, -0.16084709763526917, 0.08654513955116272, -0.19242677092552185, -0.24983017146587372, 0.0005775820463895798, 0.20342887938022614, -0.43250489234924316, -0.11665685474872589, 0.19090089201927185, -0.3327161967754364, 0.11079099774360657, -0.46992093324661255, 0.14306294918060303, -0.2860065698623657, -0.032748594880104065, -0.30484244227409363, -0.05898634344339371, 0.16293741762638092, 0.02229054644703865, 0.07641609013080597, 0.19513583183288574, -0.04162589833140373, 0.3723408877849579, 0.2825731635093689, -0.16238129138946533, -0.19098737835884094, -0.2273837774991989, 0.05984397232532501, 0.528876006603241, -0.18605747818946838, -0.5142242908477783, 0.2501559257507324, -0.00040603429079055786, 0.29756200313568115, -0.0013060271739959717, 0.07771033048629761, -0.33673858642578125, -0.05329424515366554, 0.12704092264175415, 0.006909637711942196, 0.23618049919605255, 0.17951232194900513, -0.3727359473705292, -0.16711115837097168, 0.2617373466491699, 0.047401126474142075, -0.04679303988814354, 0.03408396244049072, 0.2370920181274414, -0.20137567818164825, 0.4527813792228699, -0.13756707310676575, -0.020306792110204697, 0.29396331310272217, 0.5031349658966064, 0.09372740983963013, 0.07976289093494415, -0.191041499376297, -0.23291665315628052, 0.2719198167324066, -0.23872101306915283, 0.13639631867408752, -0.15463308990001678, -0.12884299457073212, -0.10105431824922562, -0.09380383044481277, -0.20839755237102509, -0.031216401606798172, 0.14819033443927765, 0.33264583349227905, 0.3293050229549408, 0.08615969121456146, -0.0924530029296875, 0.22254715859889984, -0.17193646728992462, -0.03677599877119064, -0.36055922508239746, 0.2939210832118988, -0.05955897271633148, -0.13110662996768951, 0.13635770976543427, 0.13249540328979492, 0.12395399063825607, 0.006953807547688484, -0.20098727941513062, 0.33970826864242554, 0.10738160461187363, 0.023847483098506927, 0.09741539508104324, -0.07226960361003876, -0.16156353056430817, 0.018707480281591415, 0.0014474131166934967, 0.5926066637039185, 0.07927118241786957, 0.0771857276558876, -0.2701425552368164, 0.418948769569397, -0.17486809194087982, 0.009419843554496765, 0.04650451987981796, 0.043025389313697815, 0.4456125497817993, -0.0855511948466301, -0.24857403337955475, -0.08315226435661316, 0.40300437808036804, -0.1470681130886078, -0.025351008400321007, 0.09943979978561401, -0.5161429643630981, -0.1530580222606659, 0.3431105613708496, -0.07785774767398834, 0.10378719866275787, 0.1511831283569336, 0.24749210476875305, -0.09490828216075897, 0.2528233826160431, 0.4644698202610016, 0.4558703303337097, 0.22112345695495605, 0.033837445080280304, 0.0713946744799614, -0.32797473669052124, -0.12184879183769226, 0.06757064908742905, -0.08270499110221863, 0.20794931054115295, 0.38901713490486145, 0.3785056173801422, -0.19635437428951263, -0.5377557277679443, -0.006362646818161011, -0.057759448885917664, 0.36433592438697815, -0.28111448884010315, 0.029486922547221184, -0.3321508765220642, -0.17932218313217163, -0.3637823462486267, -0.05682108923792839, -0.4669027030467987, -0.31546467542648315, 0.062198903411626816, 0.2536450922489166, -0.03220498189330101, 0.2596205770969391, -0.5540109276771545, -0.13520856201648712, -0.020059112459421158, -0.28518185019493103, -0.13545699417591095, -0.021571822464466095, -0.21020039916038513, 0.041692886501550674, 0.19663913547992706, 0.21798324584960938, 0.4370960295200348, -0.1493156999349594, -0.11089280992746353, -0.41760143637657166, -0.31642457842826843, -0.14681529998779297, -0.09085901081562042, 0.2795940339565277, 0.3324667811393738, 0.22964541614055634, -0.35491448640823364, -0.054930344223976135, 0.4623805582523346, -0.29911866784095764, -0.3003661632537842, 0.20982763171195984, -0.03134841099381447, -0.06359359622001648, -0.005534421652555466, -0.2362728714942932, -0.12381654232740402, -0.28428372740745544, 0.22695179283618927, 0.23146070539951324, 0.2620123624801636, 0.31195420026779175, -0.012181567028164864, -0.022998973727226257, -0.15149344503879547, 0.3804643452167511, -0.20830611884593964, -0.6566221117973328, 0.4612859785556793, -0.03163564205169678, -0.41940924525260925, -0.06225881353020668, -0.16025501489639282, 0.2534497380256653, -0.009557412937283516, -0.5507937073707581, -0.30209264159202576, -0.39086148142814636, 0.09880977869033813, 0.1350613236427307, 0.04906204342842102, 0.30554890632629395, 0.028268270194530487, -0.11997942626476288, -0.21152716875076294, -0.05916730687022209, 0.022679805755615234, 0.17443102598190308, 0.26635050773620605, -0.16588574647903442, 0.29810839891433716, -0.03157072514295578, 0.15666040778160095, 0.2772779166698456, 0.2713400423526764, 0.2896818220615387, -0.1913510411977768, 0.36705324053764343, -0.10396186262369156, -0.34021180868148804, -0.13378025591373444, -0.0662878155708313, -0.08755356073379517, 0.07003603875637054, -0.04872587323188782, -0.13488680124282837, -0.16100753843784332, -0.2426282912492752, -0.39601126313209534, -0.2703816890716553, 0.07886293530464172, 0.006074767559766769, 0.1663661152124405, 0.32241928577423096, -0.07562429457902908, -0.26822227239608765, -0.3378340005874634, -0.06016893684864044, 0.27259188890457153, -0.18383902311325073, 0.010689815506339073, -0.37222179770469666, -0.06760646402835846, -0.2630435824394226, 0.1626271903514862, 0.13123035430908203, 0.531616747379303, 0.061379533261060715, -0.17461976408958435, 0.13755805790424347, -0.3758206069469452, 0.39372795820236206, -0.22914379835128784, 0.3432677984237671, 0.1158638596534729, -0.004896234720945358, -0.34512922167778015, -0.11938560009002686, -0.0848342701792717, 0.12438613921403885, 0.2555011212825775, 0.15781888365745544, -0.2618330419063568, -0.022440075874328613, 0.1976466327905655, 0.3110741078853607, -0.19265131652355194, -0.43557992577552795, -0.6335421204566956, -0.04510889947414398, -0.39591237902641296, 0.0000867694616317749, -0.10049904882907867, 0.3402312397956848, -0.023641368374228477, 0.0910784900188446, 0.0806189477443695, 0.17054370045661926, 0.2952389121055603, 0.20524993538856506, 0.18184638023376465, -0.06731631606817245, 0.2920750081539154, -0.15883590281009674, 0.1996925324201584, -0.01087656058371067, 0.6537156701087952, -0.10795989632606506, -0.2706102430820465, -0.23073405027389526, -0.0018424103036522865, 0.1559767872095108, 0.1473352015018463, 0.00362573703750968, -0.0749962255358696, 0.2131042331457138, -0.09632739424705505, 0.0007282430306077003, -0.05810295790433884, 0.21818947792053223, 0.12064024060964584, -0.23064292967319489, -0.30856969952583313, 0.2674112617969513, 0.001176660880446434, 0.0006863102316856384, 0.04328114911913872, 0.002355024218559265, -0.0007578982040286064, 0.26061469316482544, 0.10801724344491959, 0.8935982584953308, 0.05158089101314545, 0.28946346044540405, 0.3433484733104706, -0.17416030168533325, 0.3241753578186035, -0.41336095333099365, 0.20191289484500885, -0.5469448566436768, -0.1869596391916275, 0.05329030752182007, -0.25000694394111633, 0.143917977809906, 0.03969826176762581, 0.06094920262694359, 0.41978132724761963, 0.3274156451225281, 0.07597333192825317, -0.05924996733665466, 0.05289264768362045, -0.19880011677742004, 0.03324265033006668, -0.4005199074745178, 0.18622225522994995, -0.03202228993177414, 0.2305905967950821, -0.13098549842834473, -0.10478626191616058, -0.24783799052238464, -0.22796045243740082, 0.037387385964393616, 0.22500964999198914, 0.3016531467437744, 0.15135376155376434, 0.4536852240562439, -0.20354066789150238, -0.3728654086589813, 0.04519680142402649, -0.05374288558959961, 0.17726360261440277, -0.2047901153564453, 0.1619984656572342, 0.4175504446029663, 0.052230507135391235, 0.15293407440185547, 0.09044551104307175, 0.33521634340286255, -0.12158095091581345, -0.2852417826652527, -0.029248639941215515, -0.14979669451713562, -0.42438840866088867, 0.09389129281044006, 0.0814039334654808, -0.3279185891151428, -0.28378450870513916, -0.40582704544067383, -0.1502012312412262, 0.1098882406949997, -0.20434154570102692, 0.20221303403377533, 0.2702125310897827, -0.30174535512924194, 0.2012355923652649, 0.04974351450800896, -0.33279967308044434, -0.024468660354614258, 0.5014974474906921, 0.04836405813694, 0.05310017615556717, 0.5374913215637207, -0.03762513026595116, -0.21208354830741882, -0.26273295283317566, -0.08413556218147278, -0.12226038426160812, -0.44104936718940735, 0.07057181000709534, -0.027252139523625374, 0.23165751993656158, -0.03941776603460312, 0.26766282320022583, 0.16694307327270508, 0.12325667589902878, 0.07795874774456024, -0.5813321471214294, -0.23211948573589325, -0.05265370011329651, 0.11108189821243286, 0.3087621331214905, 0.1909838616847992, 0.06718263030052185, -0.07400239259004593, -0.16438736021518707, -0.3630722463130951, -0.057449422776699066, -0.32793161273002625, 0.11568064242601395, -0.29988548159599304, 0.10145571827888489, -0.049092743545770645, 0.05577122047543526, 0.23448070883750916, 0.048886142671108246, -0.0394439771771431, -0.2873061001300812, -0.08579136431217194, 0.08551405370235443, 0.13072717189788818, 0.012357920408248901, 0.06909303367137909, -0.17665980756282806, -0.05407368019223213, -0.160235196352005, -0.19478560984134674, 0.027370132505893707, -0.09296715259552002, 0.31561675667762756, 0.15382333099842072, -0.14473006129264832, 0.05112793296575546, 0.07577256113290787, -0.22825047373771667, -0.14638012647628784, -0.1621631532907486, 0.06298156082630157, -0.2453477680683136, 0.05730131268501282, 0.18622182309627533, 0.11103066802024841, -0.13428178429603577, 0.004223287105560303, 0.23295339941978455, -0.22801406681537628, -0.13276153802871704, 0.1526297777891159, 0.4249917268753052, 0.3401455283164978, -0.22085317969322205, 0.03799670934677124, 0.2801213562488556, 0.2624366581439972, -0.5582832098007202, -0.016555912792682648, 0.3309294283390045, 0.11982624977827072, 0.13060498237609863, 0.058919355273246765, 0.0245690755546093, -0.5019878149032593, 0.4904954433441162, 0.11916740983724594, -0.1158871203660965, -0.43916165828704834, -0.11569514870643616, 0.5794382691383362, 0.10677056014537811, -0.03024628385901451, 0.259489506483078, -0.016096755862236023, 0.03885582834482193, 0.3595752716064453, 0.1172693520784378, -0.051312074065208435, -0.13826173543930054, 0.07265029102563858, -0.3372768759727478, -0.31138601899147034, 0.207178995013237, 0.11597353219985962, 0.13873927295207977, -0.03123345971107483, 0.22571153938770294, 0.4243496358394623, 0.1156681627035141, 0.2782006859779358, -0.40453675389289856, 0.18435974419116974, -0.227480947971344, -0.13575901091098785, -0.09809285402297974, -0.11599263548851013, -0.056244511157274246, 0.23821941018104553, -0.05416615679860115, 0.1111697107553482, -0.041594237089157104, 0.191818967461586, 0.026827044785022736, -0.4348604381084442, -0.006848972290754318, 0.00462857261300087, 0.00822708010673523, -0.18033868074417114, 0.12858402729034424, 0.2804660201072693, -0.18725144863128662, -0.01930978149175644, 0.27019256353378296, 0.4766356647014618, 0.25900915265083313, 0.13467039167881012, 0.010468093678355217, -0.20972326397895813, -0.06531146913766861, -0.18296444416046143, 0.6703110933303833, 0.10528214275836945, 0.21994048357009888, 0.506759524345398, 0.17048710584640503, -0.2146710455417633, 0.12764954566955566, -0.07245397567749023, -0.23506638407707214, -0.129530668258667, 0.5044376850128174, 0.16389034688472748, -0.11498380452394485, -0.24312534928321838, 0.026263803243637085, -0.40040361881256104, -0.08570412546396255, 0.1776425689458847, 0.26770874857902527, 0.1898283064365387, -0.2654877007007599, 0.10841020941734314, -0.16291303932666779, 0.301657497882843, 0.13041289150714874, 0.07857587933540344, -0.11409331113100052, -0.30441173911094666, -0.8587315678596497, 0.3486492931842804, -0.3534758985042572, -0.19227854907512665, -0.03932012990117073, 0.027910469099879265, -0.1213153675198555, 0.06212356686592102, 0.061414603143930435, 0.022556502372026443, -0.20132498443126678, 0.1031385064125061, -0.03551289811730385, -0.11777620017528534, -0.006984420120716095, -0.14129208028316498, -0.03137601166963577, -0.23033323884010315, 0.11162470281124115, -0.05217822268605232, 0.1248696818947792, -0.08688394725322723, -0.05138804018497467, -0.15122956037521362, 0.30832889676094055, 0.14730070531368256, 0.19521468877792358, 0.4960571825504303, -0.06716068089008331, -0.04967023432254791, -0.1690232753753662, -0.14894744753837585, -0.10830071568489075, 0.39649584889411926, -0.035019394010305405, 0.40828031301498413, 0.04818980395793915, 0.04709416627883911, -0.17415939271450043, 0.33860477805137634, 0.0010473839938640594, -0.28371530771255493, 0.15499478578567505, 0.013495255261659622, -0.08606772869825363, 0.09421060234308243, -0.13612665235996246, 0.1691773682832718, 0.1264297068119049, 0.3254193365573883, -0.2887450158596039, -0.3776973783969879, 0.5412871241569519, -0.4231938421726227, -0.33766740560531616, -0.08006801456212997, 0.18323582410812378, -0.19967439770698547, -0.31813478469848633, -0.6143640279769897, 0.0931534394621849, 0.30429166555404663, 0.17192485928535461, -0.1135173887014389, 0.14171971380710602, -0.22945953905582428, 0.19639065861701965, -0.0235458817332983, 0.44949957728385925, 0.09510044008493423, -0.14371569454669952, 0.07053853571414948, -0.1871170550584793 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Ccing @dwofk (the author of `fast-depth`). Thanks, @awsaf49 for reporting this. I believe this is because the NYU Depth V2 shipped from `fast-depth` is already preprocessed. If you think it might be better to have the NYU Depth V2 dataset from BTS [here](https://huggingface.co/datasets/sayakpaul/nyu_depth_v2) feel free to open a PR, I am happy to provide guidance :)
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
56
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Ccing @dwofk (the author of `fast-depth`). Thanks, @awsaf49 for reporting this. I believe this is because the NYU Depth V2 shipped from `fast-depth` is already preprocessed. If you think it might be better to have the NYU Depth V2 dataset from BTS [here](https://huggingface.co/datasets/sayakpaul/nyu_depth_v2) feel free to open a PR, I am happy to provide guidance :)
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Good catch ! Ideally it would be nice to have the datasets in the raw form, this way users can choose whatever processing they want to apply
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
27
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Good catch ! Ideally it would be nice to have the datasets in the raw form, this way users can choose whatever processing they want to apply
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
> Ccing @dwofk (the author of `fast-depth`). > > Thanks, @awsaf49 for reporting this. I believe this is because the NYU Depth V2 shipped from `fast-depth` is already preprocessed. > > If you think it might be better to have the NYU Depth V2 dataset from BTS [here](https://huggingface.co/datasets/sayakpaul/nyu_depth_v2) feel free to open a PR, I am happy to provide guidance :) @sayakpaul I would love to create a PR on this. As this will be my first PR here, some guidance would be helpful. Need a bit of advice on the dataset, there are three publicly available datasets. Which one should I consider for PR? 1. [BTS](https://github.com/cleinc/bts): Containst train/test: 36K/654 data, dtype = `uint16` hence more precise 2. [DenseDepth](https://github.com/ialhashim/DenseDepth) It contains train/test: 50K/654 data, dtype = `uint8` hence less precise 3. [Official](https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html#raw_parts): Size is big 400GB+, requires **MatLab** code for fixing **projection** and **sync**, DataType: `pgm` and `dump` hence can't be used directly. cc: @lhoestq
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
155
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 > Ccing @dwofk (the author of `fast-depth`). > > Thanks, @awsaf49 for reporting this. I believe this is because the NYU Depth V2 shipped from `fast-depth` is already preprocessed. > > If you think it might be better to have the NYU Depth V2 dataset from BTS [here](https://huggingface.co/datasets/sayakpaul/nyu_depth_v2) feel free to open a PR, I am happy to provide guidance :) @sayakpaul I would love to create a PR on this. As this will be my first PR here, some guidance would be helpful. Need a bit of advice on the dataset, there are three publicly available datasets. Which one should I consider for PR? 1. [BTS](https://github.com/cleinc/bts): Containst train/test: 36K/654 data, dtype = `uint16` hence more precise 2. [DenseDepth](https://github.com/ialhashim/DenseDepth) It contains train/test: 50K/654 data, dtype = `uint8` hence less precise 3. [Official](https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html#raw_parts): Size is big 400GB+, requires **MatLab** code for fixing **projection** and **sync**, DataType: `pgm` and `dump` hence can't be used directly. cc: @lhoestq
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
I think BTS. Repositories like https://github.com/vinvino02/GLPDepth usually use BTS. Also, just for clarity, the PR will be to https://huggingface.co/datasets/sayakpaul/nyu_depth_v2. Once we have worked it out, we can update the following things: * https://github.com/huggingface/blog/pull/718 * https://huggingface.co/docs/datasets/main/en/depth_estimation Don't worry about it if it seems overwhelming. We will work it out together :) @lhoestq what do you think?
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
55
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 I think BTS. Repositories like https://github.com/vinvino02/GLPDepth usually use BTS. Also, just for clarity, the PR will be to https://huggingface.co/datasets/sayakpaul/nyu_depth_v2. Once we have worked it out, we can update the following things: * https://github.com/huggingface/blog/pull/718 * https://huggingface.co/docs/datasets/main/en/depth_estimation Don't worry about it if it seems overwhelming. We will work it out together :) @lhoestq what do you think?
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
@sayakpaul If I get this right I have to, 1. Create a PR on https://huggingface.co/datasets/sayakpaul/nyu_depth_v2 2. Create a PR on https://github.com/huggingface/blog 3. Create a PR on https://github.com/huggingface/datasets to update https://github.com/huggingface/datasets/blob/main/docs/source/depth_estimation.mdx
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
30
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 @sayakpaul If I get this right I have to, 1. Create a PR on https://huggingface.co/datasets/sayakpaul/nyu_depth_v2 2. Create a PR on https://github.com/huggingface/blog 3. Create a PR on https://github.com/huggingface/datasets to update https://github.com/huggingface/datasets/blob/main/docs/source/depth_estimation.mdx
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Yup opening a PR to use BTS on https://huggingface.co/datasets/sayakpaul/nyu_depth_v2 sounds good :) Thanks for the help !
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
17
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Yup opening a PR to use BTS on https://huggingface.co/datasets/sayakpaul/nyu_depth_v2 sounds good :) Thanks for the help !
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Finally, I have found the origin of the **discretized depth map**. When I first loaded the datasets from HF I noticed it was 30GB but in DenseDepth data is only 4GB with dtype=uint8. This means data from fast-depth (before loading to HF) must have high precision. So when I tried to dig deeper by directly loading depth_map from `h5py`, I found depth_map from `h5py` came with `float32`. But when the data is processed in HF with `datasets.Image()` it was directly converted to `uint8` from `float32` hence the **discretized** depth map. https://github.com/huggingface/datasets/blob/c78559cacbb0ca6e0bc8bfc313cc0359f8c23ead/src/datasets/features/image.py#L91-L93 ## Solutions: #### 1. Array2D Use `Array2D` feature with `float32` for depth_map * Code: ```py Features({'depth_map': Array2D(shape=(480, 640), dtype='float32')}) ``` * Pros: No precision loss. * Cons: As depth_map is saved as Array I think it can't be visuzlied in [hf.co/dataset](https://huggingface.co/datasets/sayakpaul/nyu_depth_v2) page like segmentation mask. #### 2. Uint16 Use `uint16` as dtype for Image in `_h5_loader` for saving depth maps and accept `uint16` dtype in `datasets.Image()` feature. * Code ```py depth = np.array(h5f["depth"]) depth /= 10.0 # [0, max_depth] -> [0, 1] depth *= (2**16 -1) # transform from [0, 1] -> [0, 2^16 - 1] depth = depth.astype('uint16') ``` * Pros: * We can visualize depth map in hf.co/datasets page like segmentation mask. * No need for post-processing. * Cons: * We need to make two change * Modify `_h5_loader` in https://huggingface.co/datasets/sayakpaul/nyu_depth_v2 to convert depth_map from `float32` to `uint16`. * Make sure `datasets.Image()` converts `np.ndarray` to `uint16` checking max value * Precision loss due to `float32` to `uint16` * Post-processing required for depth_map to transform from `[0, 2^16 - 1]` to `[0, max_depth]` before feeding them to model.
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
270
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Finally, I have found the origin of the **discretized depth map**. When I first loaded the datasets from HF I noticed it was 30GB but in DenseDepth data is only 4GB with dtype=uint8. This means data from fast-depth (before loading to HF) must have high precision. So when I tried to dig deeper by directly loading depth_map from `h5py`, I found depth_map from `h5py` came with `float32`. But when the data is processed in HF with `datasets.Image()` it was directly converted to `uint8` from `float32` hence the **discretized** depth map. https://github.com/huggingface/datasets/blob/c78559cacbb0ca6e0bc8bfc313cc0359f8c23ead/src/datasets/features/image.py#L91-L93 ## Solutions: #### 1. Array2D Use `Array2D` feature with `float32` for depth_map * Code: ```py Features({'depth_map': Array2D(shape=(480, 640), dtype='float32')}) ``` * Pros: No precision loss. * Cons: As depth_map is saved as Array I think it can't be visuzlied in [hf.co/dataset](https://huggingface.co/datasets/sayakpaul/nyu_depth_v2) page like segmentation mask. #### 2. Uint16 Use `uint16` as dtype for Image in `_h5_loader` for saving depth maps and accept `uint16` dtype in `datasets.Image()` feature. * Code ```py depth = np.array(h5f["depth"]) depth /= 10.0 # [0, max_depth] -> [0, 1] depth *= (2**16 -1) # transform from [0, 1] -> [0, 2^16 - 1] depth = depth.astype('uint16') ``` * Pros: * We can visualize depth map in hf.co/datasets page like segmentation mask. * No need for post-processing. * Cons: * We need to make two change * Modify `_h5_loader` in https://huggingface.co/datasets/sayakpaul/nyu_depth_v2 to convert depth_map from `float32` to `uint16`. * Make sure `datasets.Image()` converts `np.ndarray` to `uint16` checking max value * Precision loss due to `float32` to `uint16` * Post-processing required for depth_map to transform from `[0, 2^16 - 1]` to `[0, max_depth]` before feeding them to model.
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Thanks so much for digging into this. Since the second solution entails changes to core datatypes in `datasets`, I think it's better to go with the first solution. @lhoestq WDYT?
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
30
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Thanks so much for digging into this. Since the second solution entails changes to core datatypes in `datasets`, I think it's better to go with the first solution. @lhoestq WDYT?
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
@sayakpaul Yes, Solution 1 requires minimal change and provides no precision loss. But I think support for `uint16` image would be a great addition as many datasets come with `uint16` image. For example [UW-Madison GI Tract Image Segmentation](https://www.kaggle.com/competitions/uw-madison-gi-tract-image-segmentation) dataset, here the image itself comes with `uint16` dtype rather than mask. So, saving `uint16` image with `uint8` will result in precision loss. Perhaps we can adapt solution 1 for this issue and Add support for `uint16` image separately?
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
77
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 @sayakpaul Yes, Solution 1 requires minimal change and provides no precision loss. But I think support for `uint16` image would be a great addition as many datasets come with `uint16` image. For example [UW-Madison GI Tract Image Segmentation](https://www.kaggle.com/competitions/uw-madison-gi-tract-image-segmentation) dataset, here the image itself comes with `uint16` dtype rather than mask. So, saving `uint16` image with `uint8` will result in precision loss. Perhaps we can adapt solution 1 for this issue and Add support for `uint16` image separately?
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Using Array2D makes it not practical to use to train a model - in `transformers` we expect an image type. There is a pull request to support more precision than uint8 in Image() here: https://github.com/huggingface/datasets/pull/5365/files we can probably merge it today and do a release right away
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
47
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Using Array2D makes it not practical to use to train a model - in `transformers` we expect an image type. There is a pull request to support more precision than uint8 in Image() here: https://github.com/huggingface/datasets/pull/5365/files we can probably merge it today and do a release right away
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Fantastic, @lhoestq! @awsaf49 then let's wait for the PR to get merged and then take the next steps?
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
18
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Fantastic, @lhoestq! @awsaf49 then let's wait for the PR to get merged and then take the next steps?
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
The PR adds support for uint16 which is ok for BTS if I understand correctly, would it be ok for you ?
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
22
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 The PR adds support for uint16 which is ok for BTS if I understand correctly, would it be ok for you ?
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
If the main issue with the current version of NYU we have on the Hub is related to the precision loss stemming from `Image()`, I'd prefer if `Image()` supported float32 as well.
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
32
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 If the main issue with the current version of NYU we have on the Hub is related to the precision loss stemming from `Image()`, I'd prefer if `Image()` supported float32 as well.
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
I also prefer `float32` as it offers more precision. But I'm not sure if we'll be able to visualize image with `float32` precision.
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
23
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 I also prefer `float32` as it offers more precision. But I'm not sure if we'll be able to visualize image with `float32` precision.
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
We could have a separate loading for the float32 one using Array2D, but I feel like it's less convenient to use due to the amount of disk space and because it's not an Image() type. That's why I think uint16 is a better solution for users
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
46
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 We could have a separate loading for the float32 one using Array2D, but I feel like it's less convenient to use due to the amount of disk space and because it's not an Image() type. That's why I think uint16 is a better solution for users
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Yep. I just tested from the PR and it works: ```python >>> train_dataset = load_dataset("sayakpaul/nyu_depth_v2", split="train", streaming=True) Downloading readme: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 8.71k/8.71k [00:00<00:00, 3.60MB/s] >>> next(iter(train_dataset)) {'image': <PIL.PngImagePlugin.PngImageFile image mode=RGB size=640x480 at 0x1382ED7F0>, 'depth_map': <PIL.TiffImagePlugin.TiffImageFile image mode=F size=640x480 at 0x1382EDF28>} >>> x = next(iter(train_dataset)) >>> np.asarray(x["depth_map"]) array([[0. , 0. , 0. , ..., 0. , 0. , 0. ], [0. , 0. , 0. , ..., 0. , 0. , 0. ], [0. , 0. , 0. , ..., 0. , 0. , 0. ], ..., [0. , 2.2861192, 2.2861192, ..., 2.234162 , 2.234162 , 0. ], [0. , 2.2861192, 2.2861192, ..., 2.234162 , 2.234162 , 0. ], [0. , 2.2861192, 2.2861192, ..., 2.234162 , 2.234162 , 0. ]], dtype=float32) ```
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
120
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Yep. I just tested from the PR and it works: ```python >>> train_dataset = load_dataset("sayakpaul/nyu_depth_v2", split="train", streaming=True) Downloading readme: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 8.71k/8.71k [00:00<00:00, 3.60MB/s] >>> next(iter(train_dataset)) {'image': <PIL.PngImagePlugin.PngImageFile image mode=RGB size=640x480 at 0x1382ED7F0>, 'depth_map': <PIL.TiffImagePlugin.TiffImageFile image mode=F size=640x480 at 0x1382EDF28>} >>> x = next(iter(train_dataset)) >>> np.asarray(x["depth_map"]) array([[0. , 0. , 0. , ..., 0. , 0. , 0. ], [0. , 0. , 0. , ..., 0. , 0. , 0. ], [0. , 0. , 0. , ..., 0. , 0. , 0. ], ..., [0. , 2.2861192, 2.2861192, ..., 2.234162 , 2.234162 , 0. ], [0. , 2.2861192, 2.2861192, ..., 2.234162 , 2.234162 , 0. ], [0. , 2.2861192, 2.2861192, ..., 2.234162 , 2.234162 , 0. ]], dtype=float32) ```
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Great! the case is closed! This issue has been solved and I have to say, it was quite the thrill ride. I felt like Sherlock Holmes, solving a mystery and finding the bugπŸ•΅οΈβ€β™‚οΈ. But in all seriousness, it was a pleasure working on this issue and I'm glad we could get to the bottom of it. On another note, should I consider closing the issue? I think we still need to make updates on https://github.com/huggingface/blog and https://github.com/huggingface/datasets/blob/main/docs/source/depth_estimation.mdx
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
77
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Great! the case is closed! This issue has been solved and I have to say, it was quite the thrill ride. I felt like Sherlock Holmes, solving a mystery and finding the bugπŸ•΅οΈβ€β™‚οΈ. But in all seriousness, it was a pleasure working on this issue and I'm glad we could get to the bottom of it. On another note, should I consider closing the issue? I think we still need to make updates on https://github.com/huggingface/blog and https://github.com/huggingface/datasets/blob/main/docs/source/depth_estimation.mdx
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Haha thanks Mr Holmes :p maybe let's close this issue when we're done updating the blog post and the documentation
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
20
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Haha thanks Mr Holmes :p maybe let's close this issue when we're done updating the blog post and the documentation
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
@awsaf49 thank you for your hard work! I am a little unsure why the other links need to be updated, though. They all rely on datasets internally.
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
27
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 @awsaf49 thank you for your hard work! I am a little unsure why the other links need to be updated, though. They all rely on datasets internally.
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
I think depth_map still shows discretized version. It would be nice to have corrected one. <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/datasets/depth_est_target_viz.png" width = 300>
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
20
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 I think depth_map still shows discretized version. It would be nice to have corrected one. <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/datasets/depth_est_target_viz.png" width = 300>
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Also, I think we need to make some changes in the code to visualize depth_map as it is `float32` . `plot.imshow()` supports either [0, 1] + float32 or [0. 255] + uint8
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
32
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Also, I think we need to make some changes in the code to visualize depth_map as it is `float32` . `plot.imshow()` supports either [0, 1] + float32 or [0. 255] + uint8
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5461
Discrepancy in `nyu_depth_v2` dataset
Oh yes! Do you want to start with the fixes? Please feel free to say no but I wanted to make sure your contributions are reflected properly in our doc and the blog :)
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
34
Discrepancy in `nyu_depth_v2` dataset ### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-side comparison, ![image](https://user-images.githubusercontent.com/36858976/214381162-1d9582c2-6750-4114-a01a-61ca1cd5f872.png) I tried to find the origin of this issue but sadly as I mentioned in tensorflow/datasets/issues/4674, the download link from `fast-depth` doesn't work anymore hence couldn't verify if the error originated there or during porting data from there to HF. Hi @sayakpaul, as you worked on huggingface/datasets/issues/5255, if you still have access to that data could you please share the data or perhaps checkout this issue? ### Steps to reproduce the bug This [notebook](https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing#scrollTo=UEW7QSh0jf0i) from @sayakpaul could be used to generate depth maps and actual ground truths could be checked from this [dataset](https://www.kaggle.com/datasets/awsaf49/nyuv2-bts-dataset) from BTS repo. > Note: BTS dataset has only 36K data compared to the train-test 50K. They sampled the data as adjacent frames look quite the same ### Expected behavior Expected depth maps should be smooth rather than discrete/clipped. ### Environment info - `datasets` version: 2.8.1.dev0 - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Oh yes! Do you want to start with the fixes? Please feel free to say no but I wanted to make sure your contributions are reflected properly in our doc and the blog :)
[ 0.23812700808048248, -0.6135581731796265, -0.004315514117479324, 0.4543875455856323, -0.08939257264137268, -0.0826701894402504, -0.0820554792881012, 0.21562272310256958, -0.41769683361053467, 0.32503992319107056, -0.31374332308769226, 0.16545580327510834, 0.2596942186355591, -0.1997043490409851, -0.1578044593334198, -0.3221314251422882, 0.38678503036499023, 0.015073128044605255, -0.23415565490722656, -0.21685625612735748, -0.14284372329711914, 0.389538437128067, -0.31670159101486206, -0.06930439174175262, -0.056765180081129074, 0.23049204051494598, 0.20480117201805115, -0.0479850172996521, 0.03859483450651169, -0.06638721376657486, 0.5432305932044983, -0.10622505843639374, 0.037732239812612534, 0.5320311188697815, -0.00011645417544059455, -0.013762135058641434, -0.08770290017127991, -0.08983894437551498, -0.07953454554080963, -0.14132602512836456, -0.10443468391895294, 0.009996308013796806, -0.07709748297929764, 0.0267174169421196, -0.32679855823516846, 0.039679352194070816, -0.3772701323032379, -0.035148750990629196, 0.6187644004821777, 0.15352602303028107, 0.1703856885433197, 0.40845391154289246, -0.09045390784740448, -0.15333296358585358, 0.30675897002220154, -0.13430015742778778, -0.07235905528068542, -0.03170089051127434, -0.10897839069366455, 0.1046271100640297, -0.005243375897407532, 0.3331938683986664, 0.07851091027259827, 0.025622926652431488, 0.2183787226676941, 0.1859496533870697, 0.07398217916488647, -0.30294761061668396, 0.11876459419727325, 0.5240110754966736, -0.1786383092403412, -0.005006164312362671, -0.36839917302131653, -0.1358877569437027, -0.18955861032009125, -0.14667126536369324, 0.12367506325244904, 0.10502777993679047, 0.017769426107406616, 0.02903175912797451, -0.18955883383750916, 0.07369264960289001, 0.011404931545257568, 0.2483324408531189, 0.031237848103046417, -0.014002390205860138, -0.18669529259204865, 0.12593777477741241, -0.05478854104876518, -0.08051107823848724, 0.1291244477033615, -0.254376620054245, 0.002827610820531845, 0.3276961147785187, -0.31826052069664, -0.09923461079597473, -0.013460114598274231, -0.0872819796204567, 0.11328970640897751, -0.14966705441474915, 0.04544546827673912, 0.11816291511058807, -0.3431108295917511, -0.030351340770721436, 0.13802526891231537, 0.02868983894586563, -0.11719409376382828, 0.2056184709072113, 0.07196074724197388, 0.3682560324668884, 0.27091965079307556, 0.09596800804138184, 0.2630842328071594, -0.22296826541423798, -0.28866079449653625, -0.06664629280567169, 0.03642718866467476, -0.45557525753974915, -0.27610230445861816, 0.21711258590221405, -0.4698304235935211, 0.25103071331977844, 0.07327666878700256, 0.0552629679441452, -0.06510032713413239, 0.13103851675987244, 0.12767332792282104, 0.23283420503139496, -0.22098888456821442, -0.22021469473838806, -0.4067820608615875, -0.13959990441799164, 0.06968753039836884, 0.03441391885280609, -0.0702127069234848, -0.10077157616615295, 0.22984986007213593, 0.2407478243112564, 0.10066995024681091, -0.12556740641593933, -0.3112974464893341, -0.03125171363353729, 0.4118103086948395, 0.12336352467536926, -0.2593333423137665, 0.19450442492961884, 0.08186827600002289, 0.10493381321430206, 0.03244352340698242, 0.11855314671993256, -0.626287043094635, 0.17098364233970642, -0.22131578624248505, 0.08093275129795074, -0.0587247796356678, 0.40682798624038696, -0.03406553715467453, 0.21104522049427032, 0.10048466920852661, -0.1171765923500061, 0.15527456998825073, -0.25537508726119995, -0.6458802819252014, -0.2573695182800293, 0.42880845069885254, 0.11874024569988251, -0.2736165523529053, -0.21773360669612885, -0.13120362162590027, 0.04322110861539841, 0.4176269769668579, 0.58722323179245, -0.27215149998664856, -0.11248192936182022, -0.3107084631919861, 0.3904990553855896, -0.06755542010068893, -0.025926904752850533, -0.4562966525554657, -0.10367687791585922, 0.07567998766899109, 0.2551492750644684, -0.2897011935710907, -0.07936087250709534, 0.031010111793875694, -0.30820390582084656, 0.22369851171970367, -0.20632214844226837, 0.05115780979394913, -0.008141186088323593, -0.4571211040019989, -0.1050974577665329, 0.4348753094673157, -0.20518933236598969, 0.07782527059316635, -0.010610140860080719, -0.020712964236736298, 0.10336700081825256, 0.5126298666000366, 0.23161377012729645, 0.041754066944122314, 0.2964918613433838, 0.13507278263568878, 0.005080714821815491, 0.13831646740436554, -0.07440463453531265, -0.06760724633932114, 0.17176586389541626, -0.5864647626876831, 0.32124942541122437, 0.24012671411037445, -0.03432104364037514, -0.13982051610946655, -0.0007859375327825546, 0.13373775780200958, -0.473877876996994, 0.16701826453208923, -0.06401608884334564, 0.11507272720336914, 0.07785062491893768, 0.13747760653495789, -0.2215658277273178, -0.19348077476024628, 0.14444148540496826, -0.28370052576065063, 0.5419139862060547, 0.18983441591262817, 0.10651358217000961, -0.23957206308841705, 0.30337318778038025, 0.053227003663778305, -0.21591660380363464, -0.39347347617149353, 0.5292984843254089, -0.06617783010005951, 0.035558223724365234, -0.02301102876663208, 0.19128023087978363, 0.28111734986305237, -0.23185385763645172, 0.11349208652973175, 0.151703342795372, 0.05541377142071724, 0.040638335049152374, 0.12817630171775818, 0.28728389739990234, -0.005841098725795746, -0.08758143335580826, -0.1580411195755005, -0.16049246490001678, 0.04826084524393082, -0.1509348452091217, 0.0663149282336235, -0.1601218581199646, 0.047541290521621704, 0.10551406443119049, 0.067909374833107, -0.05345983803272247, 0.07121583819389343, 0.24699437618255615, 0.20906966924667358, -0.139780655503273, -0.05783189833164215, 0.2833452820777893, -0.23886388540267944, -0.15639322996139526, 0.06762755662202835, 0.2809648811817169, 0.3946921229362488, 0.12734511494636536, 0.0945688858628273, 0.0914941355586052, -0.02469133958220482, 0.009814292192459106, 0.15644270181655884, 0.20513276755809784, -0.05060631036758423, 0.1340644657611847, 0.2183467298746109, 0.32349178194999695, -0.1304081678390503, 0.5715480446815491, -0.23170575499534607, 0.1525474339723587, -0.10902475565671921, 0.060570456087589264, -0.47873371839523315, -0.24282747507095337, -0.25556862354278564, -0.1443079113960266, -0.5019239187240601, -0.030579442158341408, 0.07616928219795227, -0.14096949994564056, -0.08623849600553513, 0.2359725385904312, 0.24502640962600708, 0.30673879384994507, 0.039709217846393585, 0.2641299366950989, -0.02205526828765869, 0.22540488839149475, -0.40371108055114746, 0.023792587220668793, -0.04451991617679596, -0.0330788791179657, 0.012976231053471565, 0.10594203323125839, -0.37025582790374756, -0.1144690290093422, -0.658082902431488, 0.13584762811660767, 0.04836179316043854, 0.3424396514892578, 0.06480967998504639, -0.07852084934711456, 0.2172757238149643, -0.003815476782619953, 0.09899003803730011, -0.06491785496473312, -0.2580720782279968, 0.06668482720851898, -0.1292296200990677, -0.19228270649909973, -0.06543762981891632, -0.14544382691383362, -0.021651988849043846, -0.13091087341308594, 0.15508484840393066, -0.11068479716777802, 0.004803955554962158, 0.06997011601924896, -0.17827986180782318, -0.11239971965551376, 0.00045397737994790077, 0.03268197923898697, -0.40578708052635193, -0.35646340250968933, -0.039213452488183975, 0.09406932443380356, -0.32825979590415955, -0.18471451103687286, -0.14206460118293762, -0.020988594740629196, 0.09844601154327393, -0.48433226346969604, 0.20446746051311493, -0.1680113673210144, 0.10483142733573914, 0.0698649138212204, -0.26150432229042053, 0.35356080532073975, -0.18951520323753357, 0.12442314624786377, -0.22332102060317993, -0.3546993136405945, 0.29876017570495605, 0.4236736595630646, 0.3454131782054901, -0.027420099824666977, 0.21566450595855713, 0.24262142181396484, -0.02542814612388611, 0.5439135432243347, -0.03220508620142937, 0.14219848811626434, 0.04884323105216026, 0.20328035950660706, -0.2712870240211487, -0.08439894020557404, -0.06387874484062195, 0.04244604706764221, -0.3251573443412781, 0.40312284231185913, 0.04353265464305878, -0.1724270135164261, 0.05511966347694397, -0.33806875348091125, -0.1671466827392578, -0.3450084924697876, -0.04171215742826462, 0.20953978598117828, -0.04707042872905731, 0.09549835324287415, -0.04559201002120972, -0.054527007043361664, -0.2736063003540039, 0.0875677615404129, -0.1282358020544052, 0.24958276748657227, 0.14604532718658447, 0.05921763554215431, 0.18910086154937744, -0.308651328086853, 0.2537907660007477, 0.2505301833152771, 0.2958679795265198, -0.14828887581825256, -0.05925571918487549, 0.04754335805773735, 0.2646397054195404, 0.2941797077655792, -0.21204356849193573, 0.3688817620277405, -0.060941681265830994, -0.10099828243255615, -0.23709742724895477, -0.4238160252571106, -0.1416790932416916, -0.040959540754556656, 0.16013996303081512, 0.6567142009735107, -0.09182514995336533, -0.2029225081205368, 0.35386067628860474, 0.02944556623697281, -0.09614694118499756, 0.21086028218269348, 0.08630584180355072, 0.21778640151023865, 0.20946815609931946, -0.4376515746116638, -0.07492571324110031, 0.09346276521682739, 0.17233878374099731, -0.23199181258678436, 0.37068551778793335, 0.058595217764377594, -0.13319925963878632, 0.07652269303798676, 0.22577041387557983, 0.134498730301857, 0.22409000992774963, 0.1523512601852417, -0.024704374372959137, 0.27268141508102417, 0.5069414377212524, -0.2203204333782196, -0.4088748097419739, -0.05036856234073639, 0.18348146975040436, -0.013139419257640839, 0.4087551534175873, -0.025171097368001938, 0.3110645115375519, 0.031378213316202164, 0.5568580627441406, -0.47529107332229614, 0.13796275854110718, 0.4583538770675659, 0.23030655086040497, -0.12594573199748993, -0.009854348376393318, 0.28669843077659607, -0.19458235800266266, -0.16523729264736176, 0.4026007056236267, 0.06001155823469162, -0.17863821983337402, 0.5391949415206909, 0.06250715255737305, 0.8060088753700256, 0.40882962942123413, 0.000333394855260849, 0.2467728853225708, -0.07026434689760208, 0.3264171779155731, -0.3028743863105774, 0.010990001261234283, -0.15756121277809143, -0.18026313185691833, -0.2055075764656067, 0.019557658582925797, -0.3157493770122528, -0.07221315801143646, 0.16391541063785553, 0.172748863697052, 0.042601995170116425, 0.24324972927570343, -0.11257602274417877, -0.5222163796424866, 0.4907020628452301, -0.051983412355184555, 0.17056633532047272, 0.17619739472866058, 0.005324847996234894, 0.34580114483833313, -0.10589195787906647, -0.1270054429769516, -0.46775662899017334, -0.06767057627439499, -0.2418266087770462, 0.06327761709690094, -0.49068108201026917, 0.21677856147289276, 0.34082937240600586, -0.05977308377623558, -0.10172295570373535, 0.11813391745090485, 0.21568052470684052, -0.1925681084394455, -0.2316981852054596, 0.038568660616874695, -0.09012825042009354, 0.13420988619327545, 0.21552962064743042, 0.06330671906471252, 0.2925734519958496, 0.07059960067272186, -0.11272920668125153, -0.406280517578125, -0.16963252425193787, 0.05790518969297409, -0.20712462067604065, -0.12239298224449158, -0.08421643078327179, -0.19446562230587006, 0.20345433056354523, 0.06623702496290207, 0.09902964532375336, -0.11069716513156891, 0.15026937425136566, -0.1689470112323761, -0.20737607777118683, -0.1441703736782074, 0.15497776865959167, -0.2990085482597351, -0.13047759234905243, 0.5488479137420654, -0.0024962909519672394, 0.22862234711647034, 0.16763167083263397, -0.06482218950986862, -0.07556236535310745, -0.0752447098493576, -0.06745043396949768, 0.06522151082754135, -0.1985524594783783, 0.1246725469827652, -0.5157895684242249, -0.16675475239753723, -0.1026000827550888, 0.12657387554645538, 0.549656867980957, -0.08412400633096695, -0.15380816161632538, -0.35739752650260925, -0.008911632001399994, 0.06923457980155945, -0.03434089198708534, 0.1545805186033249, -0.4261609613895416, 0.22157453000545502, -0.171405628323555, -0.09195701777935028, -0.24376748502254486, 0.31693035364151, 0.10105965286493301, 0.01621444709599018, -0.3524632751941681, -0.0721583291888237, 0.4407159388065338, -0.14980058372020721, 0.0413450226187706, 0.31496667861938477, -0.2884584367275238, -0.10331305861473083, -0.26034486293792725, 0.07031706720590591, -0.04711521416902542, -0.4205120801925659, -0.04304596036672592, 0.05741824954748154, -0.009526137262582779, -0.22906993329524994, 0.22206991910934448, 0.18523386120796204, 0.32805877923965454, 0.1966850459575653, 0.28895053267478943, -0.017998509109020233, -0.07559451460838318, 0.20762060582637787, 0.08966657519340515, 0.2854936718940735, -0.06639586389064789, -0.08362606167793274, -0.4096871316432953, -0.26167309284210205, -0.25279200077056885, -0.005258612334728241, -0.30804502964019775, -0.24395275115966797, 0.40287303924560547, 0.03162436932325363, 0.08280844986438751, -0.027496976777911186, 0.4221217632293701, -0.06310173869132996, -0.2525767385959625, -0.07209458202123642, -0.11862220615148544, 0.10446064174175262, -0.17644454538822174, 0.03550693020224571, 0.2761784493923187, 0.3257966935634613, -0.047902774065732956, 0.030816398561000824, 0.053037453442811966, 0.002316512167453766, -0.09485454857349396, -0.018969880416989326, 0.2687532603740692, -0.35682421922683716, 0.3268219530582428, 0.5520750284194946, -0.041175663471221924, 0.3548794686794281, -0.008415566757321358, -0.30233049392700195, 0.2643125355243683, 0.27984732389450073, 0.10406297445297241, 0.37046095728874207, -0.13706985116004944, 0.007656801491975784, 0.34114691615104675, -0.32732218503952026, -0.12358605861663818, 0.6289278268814087, -0.16886994242668152, 0.04874721169471741, -0.09399062395095825, 0.23616236448287964, 0.020482655614614487, -0.4390617609024048, -0.533919095993042, 0.26523587107658386, -0.3990159332752228, -0.07824826240539551, 0.01394353061914444, -0.14184771478176117, -0.1569746434688568, 0.041475798934698105, -0.04296695813536644, -0.10023331642150879, 0.1069980189204216, 0.22224357724189758, -0.3167346119880676, 0.24614253640174866, -0.5642374753952026, -0.08839154988527298, 0.23351895809173584, -0.12127123773097992, 0.1629628688097, 0.34505727887153625, -0.3053130805492401, 0.03165551275014877, 0.10689985752105713, 0.2187977135181427, 0.19801564514636993, 0.018002303317189217, 0.015424125827848911, 0.4281109869480133, 0.14203661680221558, 0.20536759495735168, 0.31166958808898926, -0.05217590928077698, 0.15758702158927917, 0.18334566056728363, 0.05748511105775833, -0.12050119787454605, 0.16999836266040802, -0.05178692564368248, 0.5554969906806946, -0.3510943055152893, 0.02684081345796585, -0.5027220249176025, 0.18462717533111572, -0.222625732421875, -0.2511756122112274, 0.0981781855225563, 0.06150663644075394, 0.05589105188846588, -0.25540846586227417, 0.3592011332511902, 0.27032458782196045, 0.07960651069879532, -0.16702795028686523, 0.2715640962123871, 0.09309063851833344, -0.25502505898475647, -0.0938791036605835, -0.3192514181137085, -0.1680862009525299, 0.12612877786159515, 0.11609503626823425, 0.3507823348045349, 0.12422528117895126, 0.14143283665180206, 0.05729887634515762, 0.09110933542251587, 0.25204217433929443, -0.47448256611824036, 0.0844544917345047, -0.01689673215150833, -0.3785800337791443, -0.1729310154914856, -0.07038271427154541, -0.32602331042289734, 0.28764259815216064, -0.15717890858650208, 0.17093278467655182, 0.06465154141187668, -0.076737180352211, 0.2402167022228241, 0.26840171217918396, 0.10431268811225891, 0.2547059655189514, 0.27047473192214966, 0.29081034660339355, 0.0007673874497413635, -0.14582347869873047, -0.02819821983575821, 0.1201820820569992, -0.1965937614440918, -0.3014271855354309, 0.17180736362934113, -0.577755868434906, 0.4509556293487549, 0.09840679913759232, -0.5021243691444397, -0.12482143938541412, -0.13209432363510132, 0.17108018696308136, -0.1759876161813736, -0.8296982049942017, 0.34146004915237427, -0.14735332131385803, 0.0946938768029213, 0.42712610960006714, 0.19048777222633362, 0.0646861344575882, 0.2623005509376526, 0.09855671226978302, -0.4161141812801361, 0.6694720983505249, -0.3736031949520111, 0.36027956008911133, 0.004876394756138325, 0.10991740226745605, 0.044588446617126465, -0.5538775324821472, -0.645016610622406, -0.11785541474819183, 0.3058464527130127, 0.07888275384902954, -0.05142246559262276, 0.2559962272644043, -0.2653009295463562, 0.006871439516544342, 0.20661573112010956, 0.694878339767456, 0.2091194987297058, -0.35153573751449585, 0.6068984270095825, -0.1882987767457962 ]
https://github.com/huggingface/datasets/issues/5458
slice split while streaming
Hi! Yes, that's correct. When `streaming` is `True`, only split names can be specified as `split`, and for slicing, you have to use `.skip`/`.take` instead. E.g. `load_dataset("lhoestq/demo1",revision=None, streaming=True, split="train[:3]")` rewritten with `.skip`/`.take`: `load_dataset("lhoestq/demo1",revision=None, streaming=True, split="train").take(3)`
### Describe the bug When using the `load_dataset` function with streaming set to True, slicing splits is apparently not supported. Did I miss this in the documentation? ### Steps to reproduce the bug `load_dataset("lhoestq/demo1",revision=None, streaming=True, split="train[:3]")` causes ValueError: Bad split: train[:3]. Available splits: ['train', 'test'] in builder.py, line 1213, in as_streaming_dataset ### Expected behavior The first 3 entries of the dataset as a stream ### Environment info - `datasets` version: 2.8.0 - Platform: Windows-10-10.0.19045-SP0 - Python version: 3.10.9 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
35
slice split while streaming ### Describe the bug When using the `load_dataset` function with streaming set to True, slicing splits is apparently not supported. Did I miss this in the documentation? ### Steps to reproduce the bug `load_dataset("lhoestq/demo1",revision=None, streaming=True, split="train[:3]")` causes ValueError: Bad split: train[:3]. Available splits: ['train', 'test'] in builder.py, line 1213, in as_streaming_dataset ### Expected behavior The first 3 entries of the dataset as a stream ### Environment info - `datasets` version: 2.8.0 - Platform: Windows-10-10.0.19045-SP0 - Python version: 3.10.9 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 Hi! Yes, that's correct. When `streaming` is `True`, only split names can be specified as `split`, and for slicing, you have to use `.skip`/`.take` instead. E.g. `load_dataset("lhoestq/demo1",revision=None, streaming=True, split="train[:3]")` rewritten with `.skip`/`.take`: `load_dataset("lhoestq/demo1",revision=None, streaming=True, split="train").take(3)`
[ -0.5406305193901062, 0.2308039665222168, -0.012679360806941986, 0.05592242628335953, 0.21875785291194916, -0.009210050106048584, 0.49410852789878845, 0.2683308720588684, -0.26596638560295105, 0.1708059012889862, -0.13953159749507904, 0.3741288483142853, -0.13417577743530273, 0.31187596917152405, 0.1088276132941246, -0.5538897514343262, 0.13395296037197113, 0.14957350492477417, -0.013129167258739471, 0.029639489948749542, -0.08961866796016693, -0.043647341430187225, -0.41721928119659424, -0.054097071290016174, -0.1111147329211235, -0.24804499745368958, 0.008255688473582268, 0.031175056472420692, -0.062074147164821625, -0.21183009445667267, -0.015706613659858704, 0.0814688503742218, 0.09884047508239746, 0.5089744329452515, -0.00010984159598592669, 0.0743948221206665, 0.3545628786087036, -0.03281755745410919, -0.24752362072467804, -0.11347797513008118, -0.16447100043296814, -0.07550941407680511, 0.04660957306623459, -0.16933003067970276, -0.11265257000923157, -0.11051757633686066, -0.07830049097537994, -0.07082240283489227, 0.4918188452720642, 0.35685843229293823, 0.23505131900310516, 0.16715265810489655, -0.19958218932151794, 0.031095024198293686, 0.2232690453529358, 0.08647644519805908, -0.12402153760194778, -0.1206771582365036, 0.04439401626586914, 0.2099417895078659, -0.18726828694343567, 0.20298561453819275, -0.09182944893836975, -0.08029106259346008, 0.06652095168828964, 0.12160674482584, -0.2083057463169098, -0.2749551236629486, -0.07780053466558456, 0.33835846185684204, 0.31790971755981445, -0.052227236330509186, -0.45453351736068726, -0.42114901542663574, -0.07370029389858246, -0.5485371947288513, 0.04729948192834854, 0.28637832403182983, -0.28950536251068115, -0.030245784670114517, -0.3094889521598816, -0.26904791593551636, -0.15541744232177734, 0.08652575314044952, 0.07925614714622498, 0.36001986265182495, 0.018363293260335922, 0.14906413853168488, 0.09167107939720154, 0.18950340151786804, 0.4871179163455963, -0.1268249750137329, -0.09377840161323547, 0.0710177794098854, -0.34538504481315613, 0.0366012305021286, -0.07803576439619064, 0.22746923565864563, 0.04415528476238251, 0.0015698298811912537, -0.01413343008607626, 0.056354716420173645, 0.1800485998392105, 0.17821653187274933, 0.5216110348701477, 0.09600131213665009, -0.18107035756111145, 0.18570108711719513, 0.22454793751239777, 0.19625915586948395, -0.056601252406835556, -0.1539686620235443, 0.12822310626506805, -0.16993601620197296, -0.12527631223201752, -0.0074645522981882095, 0.24696828424930573, 0.025210019201040268, -0.3447708487510681, -0.17501863837242126, -0.2926042973995209, -0.21266768872737885, 0.2522510588169098, 0.4166300594806671, -0.18192420899868011, 0.06787310540676117, -0.18432961404323578, 0.3184084892272949, -0.33389607071876526, -0.27271586656570435, -0.2951449155807495, 0.0051082223653793335, -0.10771690309047699, -0.178529754281044, -0.057392485439777374, -0.6294164657592773, 0.12259840220212936, 0.10658933967351913, 0.19174490869045258, 0.09773533046245575, -0.23398956656455994, -0.016770455986261368, 0.011296741664409637, 0.3381127119064331, 0.1440165787935257, -0.05606095492839813, -0.004337027668952942, -0.2098882496356964, -0.06699000298976898, 0.449795126914978, -0.022072449326515198, -0.4295327663421631, -0.023983413353562355, 0.19401925802230835, -0.016262196004390717, 0.13867372274398804, -0.06664826720952988, 0.3543626368045807, 0.2772444486618042, -0.24588754773139954, -0.12050830572843552, -0.16550037264823914, -0.11267583072185516, -0.24808917939662933, 0.44496676325798035, 0.06121663749217987, -0.42508792877197266, -0.18181148171424866, -0.2824406027793884, -0.17944473028182983, 0.4461754858493805, 0.2887490391731262, -0.22522059082984924, 0.02477492392063141, -0.0117383673787117, 0.09131909906864166, 0.7246569991111755, 0.14287856221199036, -0.362085223197937, 0.3301739990711212, -0.04354472458362579, 0.25158220529556274, 0.04090851917862892, -0.07365109771490097, 0.38344597816467285, -0.01929168589413166, -0.036944977939128876, 0.4349423050880432, -0.46652209758758545, 0.02891003154218197, -0.22766315937042236, -0.3057135045528412, 0.41389769315719604, 0.20164741575717926, 0.2995588481426239, 0.027264490723609924, -0.009105809032917023, 0.1285010725259781, 0.4645807445049286, 0.1837897002696991, 0.05027587711811066, -0.1947757452726364, 0.2172161042690277, 0.09887072443962097, 0.04656718298792839, -0.24855372309684753, -0.3370218873023987, 0.11588505655527115, 0.1009562760591507, -0.15979647636413574, 0.12960633635520935, -0.15444567799568176, -0.03831630200147629, 0.003685038536787033, -0.19245962798595428, -0.23069876432418823, 0.12934866547584534, 0.09743238240480423, 0.06743963062763214, 0.014334309846162796, -0.3515520393848419, 0.07471857219934464, -0.0780082494020462, 0.0732203871011734, -0.2947617173194885, 0.28753137588500977, -0.14017340540885925, -0.33143287897109985, -0.0758141428232193, 0.12046130746603012, 0.22166132926940918, 0.0033570495434105396, -0.15646442770957947, 0.6422422528266907, 0.023553617298603058, 0.32104337215423584, -0.5466333627700806, -0.19569294154644012, 0.15291595458984375, -0.16675236821174622, -0.06199666112661362, 0.2753998637199402, -0.04013478383421898, -0.04648430272936821, -0.2849034070968628, 0.14160940051078796, -0.3726199269294739, 0.15263564884662628, 0.014728114008903503, 0.17811763286590576, 0.09225942194461823, 0.011173557490110397, -0.11097483336925507, -0.19878637790679932, 0.10456447303295135, -0.24087165296077728, 0.1671149730682373, -0.23799161612987518, -0.3232821524143219, 0.17791089415550232, 0.4102337062358856, -0.11925771832466125, -0.07661288231611252, 0.007915414869785309, 0.044421982020139694, -0.0343647338449955, 0.26204100251197815, 0.22060321271419525, 0.27896934747695923, 0.19939982891082764, 0.20343202352523804, 0.04256993532180786, 0.028821904212236404, -0.220559224486351, 0.3518059551715851, 0.460415244102478, -0.015187609009444714, 0.12073463201522827, 0.10410356521606445, -0.1273670792579651, -0.32295888662338257, 0.2590275704860687, 0.11462395638227463, 0.18542738258838654, -0.29911550879478455, 0.09528106451034546, -0.29830071330070496, 0.032807618379592896, -0.2438945174217224, -0.5703129172325134, -0.15983200073242188, -0.43295642733573914, 0.21770478785037994, 0.37112465500831604, -0.35776621103286743, 0.4353775382041931, 0.02600960060954094, 0.21017155051231384, -0.04406748712062836, 0.2364175170660019, -0.1486397087574005, 0.00006310828030109406, -0.13257530331611633, 0.15441380441188812, 0.20404045283794403, 0.12412217259407043, 0.15123185515403748, 0.1271982043981552, -0.17895624041557312, 0.0023492397740483284, -0.21220511198043823, 0.0806078165769577, -0.272139310836792, 0.5538064241409302, 0.22075437009334564, -0.038070544600486755, 0.11721454560756683, -0.4310520887374878, 0.16747821867465973, -0.2227523773908615, 0.04202466458082199, 0.0027518607676029205, 0.22138336300849915, 0.12268828600645065, -0.20457036793231964, -0.23518550395965576, -0.344637006521225, -0.442730188369751, 0.09206283092498779, -0.028110772371292114, 0.10681770741939545, -0.027288157492876053, 0.043925799429416656, -0.1074587032198906, 0.29906630516052246, -0.028032278642058372, -0.2591111958026886, -0.38458022475242615, 0.161382257938385, -0.3776826858520508, -0.23649798333644867, -0.02637740597128868, -0.041742462664842606, -0.00208359956741333, 0.0068228100426495075, -0.20167845487594604, 0.4980051517486572, -0.046916618943214417, 0.12229283154010773, -0.0971081554889679, -0.050632305443286896, 0.1281425654888153, 0.02776046097278595, 0.0352151021361351, -0.2984246611595154, 0.12094604969024658, -0.016883835196495056, 0.057918764650821686, 0.2482084333896637, 0.19791767001152039, 0.5538476705551147, 0.1341562420129776, 0.938054621219635, 0.33988314867019653, 0.23176303505897522, 0.09409313648939133, -0.10976339131593704, 0.24213582277297974, -0.184920072555542, -0.2822003960609436, 0.22982728481292725, -0.12630429863929749, -0.3936718702316284, 0.07834430783987045, 0.013125786557793617, -0.20185315608978271, -0.16671150922775269, 0.005532212555408478, -0.1624772846698761, -0.3270435333251953, 0.1374574601650238, -0.348697692155838, -0.06652193516492844, -0.012819801457226276, 0.2616778314113617, 0.06314048171043396, -0.13923674821853638, -0.15784336626529694, -0.07830584049224854, 0.5238993763923645, -0.20345717668533325, 0.032848309725522995, -0.22411438822746277, -0.5756535530090332, 0.02531582862138748, 0.22919002175331116, 0.1323706954717636, -0.1595679074525833, -0.18975397944450378, 0.15049538016319275, 0.0638931542634964, 0.8419178128242493, -0.2741222679615021, -0.26681429147720337, 0.1824672818183899, 0.012474104762077332, -0.15633518993854523, -0.041440680623054504, -0.16441728174686432, 0.27180036902427673, 0.07741925120353699, -0.1489562839269638, -0.3058893382549286, -0.05937428027391434, 0.4562338888645172, -0.06923091411590576, -0.20591814815998077, -0.177505224943161, -0.19938932359218597, 0.08018594235181808, -0.06366833299398422, 0.17139187455177307, 0.06784731149673462, 0.17681311070919037, -0.5051762461662292, -0.1492956429719925, 0.10010408610105515, -0.08134140819311142, -0.06808412075042725, 0.07891261577606201, 0.3340000510215759, -0.004136961419135332, 0.08145003020763397, 0.23995353281497955, 0.13262760639190674, 0.12472661584615707, 0.47447845339775085, -0.016624607145786285, -0.19395318627357483, -0.008831124752759933, 0.07734731584787369, 0.4427068531513214, 0.26738858222961426, -0.30542442202568054, 0.01732712984085083, 0.2687530517578125, 0.2178429663181305, -0.17280250787734985, -0.08593665808439255, 0.27902376651763916, -0.25359687209129333, -0.16268771886825562, -0.4708634912967682, 0.5110083818435669, -0.08649443089962006, -0.06670789420604706, 0.35457462072372437, -0.15990333259105682, -0.2284090369939804, 0.3143157362937927, 0.1129966601729393, 0.9269405007362366, 0.23220087587833405, -0.020582888275384903, 0.4999004304409027, -0.24369215965270996, 0.4091731905937195, -0.27329105138778687, 0.15428820252418518, -0.3056943118572235, -0.3402963876724243, -0.060021791607141495, -0.05926760658621788, 0.034782618284225464, -0.08741272985935211, -0.45366355776786804, 0.2296341508626938, -0.37968939542770386, 0.4937610328197479, -0.16766470670700073, -0.14386744797229767, -0.20999333262443542, -0.1192636638879776, -0.34574952721595764, 0.10088752210140228, 0.04023754596710205, -0.08182178437709808, -0.024094458669424057, -0.12156981229782104, 0.2093365490436554, -0.15475180745124817, -0.16335482895374298, 0.031157568097114563, -0.1320224553346634, 0.07402525842189789, -0.14099588990211487, -0.5156922340393066, 0.051909271627664566, 0.38546493649482727, -0.15791738033294678, -0.19496725499629974, -0.13112325966358185, 0.468158096075058, 0.18068301677703857, 0.3201814293861389, 0.012570767663419247, 0.008138489909470081, 0.38091880083084106, 0.0679280236363411, -0.1944257915019989, 0.2430214285850525, -0.21045134961605072, -0.2942737936973572, -0.10529796779155731, -0.022275350987911224, 0.371105432510376, -0.4796866178512573, 0.050668299198150635, -0.2085641622543335, 0.17431640625, -0.4076833724975586, 0.156328484416008, -0.06919360160827637, -0.3164868652820587, 0.25692102313041687, -0.21262158453464508, 0.1171702891588211, -0.28292298316955566, 0.3916339874267578, 0.18849143385887146, 0.3211542069911957, 0.401362806558609, 0.18193747103214264, -0.32423073053359985, -0.14882543683052063, 0.10260003060102463, 0.15759721398353577, -0.07663726061582565, 0.1005745530128479, -0.2588001787662506, 0.03928259015083313, -0.03963063657283783, 0.2283536195755005, -0.15467800199985504, 0.30794307589530945, -0.3950826823711395, -0.2609853148460388, -0.17397671937942505, 0.2202175259590149, 0.09027019143104553, 0.21515175700187683, 0.04665627330541611, 0.29898175597190857, 0.04026973992586136, 0.3495675325393677, -0.341564416885376, -0.020867275074124336, 0.04575677961111069, 0.2403874695301056, -0.38973233103752136, 0.14793166518211365, 0.26310351490974426, -0.030487075448036194, 0.08841501176357269, 0.24402539432048798, 0.010091526433825493, -0.17506879568099976, -0.1520971804857254, 0.12896603345870972, 0.16421890258789062, -0.13873836398124695, -0.19599772989749908, 0.03269580006599426, -0.3629058301448822, -0.020471375435590744, 0.37028995156288147, -0.010317651554942131, 0.04803420603275299, 0.2076081782579422, 0.8200960159301758, 0.02657981961965561, -0.1911683976650238, -0.013687141239643097, -0.20945057272911072, 0.263902485370636, 0.03345226123929024, 0.22885684669017792, -0.06282899528741837, -0.027761656790971756, -0.017978999763727188, -0.026679575443267822, 0.06317192316055298, 0.15239961445331573, 0.32246121764183044, -0.24730859696865082, -0.03359901160001755, -0.1814422309398651, 0.6276335716247559, 0.5521419644355774, 0.04239834472537041, 0.02484571374952793, 0.17463502287864685, 0.23887421190738678, -0.17864003777503967, -0.17562362551689148, -0.005285346880555153, 0.0021305372938513756, 0.14372405409812927, 0.18902958929538727, -0.1845039278268814, 0.030926555395126343, 0.04099854826927185, 0.0918644368648529, 0.30397722125053406, -0.14679844677448273, 0.4292430281639099, 0.8116286396980286, -0.31042391061782837, 0.13082490861415863, 0.03496786952018738, -0.12483468651771545, -0.011788144707679749, 0.4301595091819763, -0.3630921244621277, 0.2629062533378601, 0.027793489396572113, 0.04805917292833328, 0.10734644532203674, -0.3293006420135498, -0.15435220301151276, 0.11156388372182846, -0.3151296079158783, 0.11955367028713226, 0.02452927827835083, 0.42991432547569275, -0.2415858656167984, -0.22485315799713135, -0.2783070206642151, 0.3611651659011841, -0.06505071371793747, -0.03583556413650513, -0.33110034465789795, -0.20419234037399292, -0.10572412610054016, 0.08144330978393555, 0.11103631556034088, 0.0023326724767684937, 0.29681533575057983, 0.14834782481193542, 0.07936643809080124, -0.15065211057662964, 0.033289775252342224, -0.09320641309022903, 0.09119927138090134, -0.30949896574020386, 0.1938561350107193, 0.10782993584871292, 0.10071088373661041, 0.24094757437705994, -0.010307611897587776, 0.33667469024658203, 0.10743830353021622, -0.1325661540031433, -0.3053964078426361, 0.06316229701042175, -0.11589615046977997, 0.0846036821603775, 0.33992063999176025, 0.14861883223056793, 0.2738201320171356, 0.36428841948509216, 0.16637837886810303, -0.16272546350955963, 0.2812587320804596, 0.2732226848602295, 0.2991741895675659, -0.5945551991462708, 0.3524428904056549, 0.007337743416428566, -0.06413865834474564, -0.24032852053642273, -0.3604371249675751, -0.20105049014091492, 0.018532322719693184, -0.02778320014476776, -0.34082502126693726, 0.1115364208817482, -0.027606621384620667, 0.09024181216955185, 0.09532758593559265, 0.5611231327056885, 0.030910875648260117, 0.04101681709289551, -0.3054983913898468, -0.17056360840797424, -0.37410250306129456, -0.056171588599681854, 0.05140828713774681, 0.2796745002269745, 0.21781161427497864, 0.16174492239952087, -0.03858686238527298, 0.3774404525756836, -0.006518244743347168, 0.15155938267707825, -0.03481690585613251, 0.33605337142944336, -0.21709145605564117, -0.2024676352739334, -0.11999301612377167, 0.08165130019187927, -0.1844838708639145, -0.19876545667648315, 0.32990762591362, -0.0919964388012886, -0.04296824708580971, 0.11550696194171906, -0.19128042459487915, 0.30189064145088196, -0.028791196644306183, 0.1682405173778534, 0.2762349843978882, -0.01162911206483841, -0.06420388072729111, 0.019678054377436638, -0.20375904440879822, -0.30138441920280457, -0.5579342842102051, 0.0034107714891433716, -0.20697534084320068, 0.5180020332336426, -0.040301427245140076, -0.20449215173721313, -0.49100202322006226, 0.23372288048267365, 0.08220352232456207, -0.009061950258910656, -0.19449147582054138, 0.11280546337366104, -0.05297304689884186, 0.3405929505825043, 0.262727290391922, 0.29956328868865967, -0.23837321996688843, 0.06556516140699387, -0.25181007385253906, -0.4015587568283081, 0.5642216205596924, -0.5018328428268433, -0.15766941010951996, -0.2850334048271179, -0.004379212856292725, 0.4536135196685791, -0.11293750256299973, -0.35562747716903687, -0.14648057520389557, 0.2255660891532898, -0.29203638434410095, 0.21312230825424194, 0.08323448896408081, 0.3237059712409973, 0.10195954144001007, -0.07314662635326385, 0.0924757570028305, 0.26080653071403503, -0.19566331803798676, 0.19064448773860931, -0.2638731002807617 ]
https://github.com/huggingface/datasets/issues/5457
prebuilt dataset relies on `downloads/extracted`
Hi! This issue is due to our audio/image datasets not being self-contained. This allows us to save disk space (files are written only once) but also leads to the issues like this one. We plan to make all our datasets self-contained in Datasets 3.0. In the meantime, you can run the following map to ensure your dataset is self-contained: ```python from datasets.table import embed_table_storage # load_dataset ... dset = dset.with_format("arrow") dset.map(embed_table_storage, batched=True) dset = dset.with_format("python") ```
### Describe the bug I pre-built the dataset: ``` python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing ``` and it can be used just fine. now I wipe out `downloads/extracted` and it no longer works. ``` rm -r ~/.cache/huggingface/datasets/downloads ``` That is I can still load it: ``` python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing No config specified, defaulting to: general-pmd-synthetic-testing/100.unique Found cached dataset general-pmd-synthetic-testing (/home/stas/.cache/huggingface/datasets/HuggingFaceM4___general-pmd-synthetic-testing/100.unique/1.1.1/86bc445e3e48cb5ef79de109eb4e54ff85b318cd55c3835c4ee8f86eae33d9d2) ``` but if I try to use it: ``` E stderr: Traceback (most recent call last): E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/main.py", line 116, in <module> E stderr: train_loader, val_loader = get_dataloaders( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 170, in get_dataloaders E stderr: train_loader = get_dataloader_from_config( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 443, in get_dataloader_from_config E stderr: dataloader = get_dataloader( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 264, in get_dataloader E stderr: is_pmd = "meta" in hf_dataset[0] and "source" in hf_dataset[0] E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/arrow_dataset.py", line 2601, in __getitem__ E stderr: return self._getitem( E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/arrow_dataset.py", line 2586, in _getitem E stderr: formatted_output = format_table( E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 634, in format_table E stderr: return formatter(pa_table, query_type=query_type) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 406, in __call__ E stderr: return self.format_row(pa_table) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 442, in format_row E stderr: row = self.python_features_decoder.decode_row(row) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 225, in decode_row E stderr: return self.features.decode_example(row) if self.features else row E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1846, in decode_example E stderr: return { E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1847, in <dictcomp> E stderr: column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1304, in decode_nested_example E stderr: return decode_nested_example([schema.feature], obj) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1296, in decode_nested_example E stderr: if decode_nested_example(sub_schema, first_elmt) != first_elmt: E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1309, in decode_nested_example E stderr: return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/image.py", line 144, in decode_example E stderr: image = PIL.Image.open(path) E stderr: File "/home/stas/anaconda3/envs/py38-pt113/lib/python3.8/site-packages/PIL/Image.py", line 3092, in open E stderr: fp = builtins.open(filename, "rb") E stderr: FileNotFoundError: [Errno 2] No such file or directory: '/mnt/nvme0/code/data/cache/huggingface/datasets/downloads/extracted/134227b9b94c4eccf19b205bf3021d4492d0227b9be6c2ddb6bf517d8d55a8cb/data/101/images_01.jpg' ``` Only if I wipe out the cached dir and rebuild then it starts working as `download/extracted` is back again with extracted files. ``` rm -r ~/.cache/huggingface/datasets/HuggingFaceM4___general-pmd-synthetic-testing python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing ``` I think there are 2 issues here: 1. why does it still rely on extracted files after `arrow` files were printed - did I do something incorrectly when creating this dataset? 2. why doesn't the dataset know that it has been gutted and loads just fine? If it has a dependency on `download/extracted` then `load_dataset` should check if it's there and fail or force rebuilding. I am sure this could be a very expensive operation, so probably really solving #1 will not require this check. and this second item is probably an overkill. Other than perhaps if it had an optional `check_consistency` flag to do that. ### Environment info datasets@main
76
prebuilt dataset relies on `downloads/extracted` ### Describe the bug I pre-built the dataset: ``` python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing ``` and it can be used just fine. now I wipe out `downloads/extracted` and it no longer works. ``` rm -r ~/.cache/huggingface/datasets/downloads ``` That is I can still load it: ``` python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing No config specified, defaulting to: general-pmd-synthetic-testing/100.unique Found cached dataset general-pmd-synthetic-testing (/home/stas/.cache/huggingface/datasets/HuggingFaceM4___general-pmd-synthetic-testing/100.unique/1.1.1/86bc445e3e48cb5ef79de109eb4e54ff85b318cd55c3835c4ee8f86eae33d9d2) ``` but if I try to use it: ``` E stderr: Traceback (most recent call last): E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/main.py", line 116, in <module> E stderr: train_loader, val_loader = get_dataloaders( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 170, in get_dataloaders E stderr: train_loader = get_dataloader_from_config( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 443, in get_dataloader_from_config E stderr: dataloader = get_dataloader( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 264, in get_dataloader E stderr: is_pmd = "meta" in hf_dataset[0] and "source" in hf_dataset[0] E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/arrow_dataset.py", line 2601, in __getitem__ E stderr: return self._getitem( E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/arrow_dataset.py", line 2586, in _getitem E stderr: formatted_output = format_table( E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 634, in format_table E stderr: return formatter(pa_table, query_type=query_type) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 406, in __call__ E stderr: return self.format_row(pa_table) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 442, in format_row E stderr: row = self.python_features_decoder.decode_row(row) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 225, in decode_row E stderr: return self.features.decode_example(row) if self.features else row E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1846, in decode_example E stderr: return { E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1847, in <dictcomp> E stderr: column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1304, in decode_nested_example E stderr: return decode_nested_example([schema.feature], obj) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1296, in decode_nested_example E stderr: if decode_nested_example(sub_schema, first_elmt) != first_elmt: E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1309, in decode_nested_example E stderr: return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/image.py", line 144, in decode_example E stderr: image = PIL.Image.open(path) E stderr: File "/home/stas/anaconda3/envs/py38-pt113/lib/python3.8/site-packages/PIL/Image.py", line 3092, in open E stderr: fp = builtins.open(filename, "rb") E stderr: FileNotFoundError: [Errno 2] No such file or directory: '/mnt/nvme0/code/data/cache/huggingface/datasets/downloads/extracted/134227b9b94c4eccf19b205bf3021d4492d0227b9be6c2ddb6bf517d8d55a8cb/data/101/images_01.jpg' ``` Only if I wipe out the cached dir and rebuild then it starts working as `download/extracted` is back again with extracted files. ``` rm -r ~/.cache/huggingface/datasets/HuggingFaceM4___general-pmd-synthetic-testing python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing ``` I think there are 2 issues here: 1. why does it still rely on extracted files after `arrow` files were printed - did I do something incorrectly when creating this dataset? 2. why doesn't the dataset know that it has been gutted and loads just fine? If it has a dependency on `download/extracted` then `load_dataset` should check if it's there and fail or force rebuilding. I am sure this could be a very expensive operation, so probably really solving #1 will not require this check. and this second item is probably an overkill. Other than perhaps if it had an optional `check_consistency` flag to do that. ### Environment info datasets@main Hi! This issue is due to our audio/image datasets not being self-contained. This allows us to save disk space (files are written only once) but also leads to the issues like this one. We plan to make all our datasets self-contained in Datasets 3.0. In the meantime, you can run the following map to ensure your dataset is self-contained: ```python from datasets.table import embed_table_storage # load_dataset ... dset = dset.with_format("arrow") dset.map(embed_table_storage, batched=True) dset = dset.with_format("python") ```
[ -0.23342011868953705, -0.3251979351043701, -0.017481131479144096, 0.39176517724990845, 0.29942941665649414, 0.0018673017621040344, 0.04591747000813484, -0.0035278350114822388, -0.07234817743301392, 0.12349669635295868, -0.19353342056274414, -0.02383505180478096, -0.14854159951210022, 0.12159507721662521, 0.2945840656757355, 0.2712782621383667, -0.10535966604948044, 0.06820692121982574, -0.23580071330070496, 0.21605713665485382, -0.1524035930633545, 0.18172544240951538, 0.032227449119091034, -0.076851487159729, -0.23811671137809753, 0.09580227732658386, 0.09693194925785065, 0.29006919264793396, -0.021883463487029076, -0.4738315939903259, 0.36252379417419434, 0.1331714242696762, 0.2477286159992218, 0.3824382722377777, -0.0001268694322789088, 0.12996447086334229, 0.20209012925624847, -0.21972548961639404, -0.507878303527832, -0.050411686301231384, -0.13052335381507874, 0.20230478048324585, 0.21832890808582306, -0.09540638327598572, -0.08722095936536789, -0.16106969118118286, -0.14160186052322388, -0.6720856428146362, 0.4110484719276428, 0.3768000900745392, 0.146026149392128, 0.4952106773853302, -0.07107379287481308, -0.16178403794765472, 0.09953058511018753, 0.09831292182207108, -0.13528552651405334, 0.3219833970069885, 0.25780045986175537, 0.21182094514369965, 0.29075726866722107, 0.15454192459583282, -0.07702647894620895, 0.1364194005727768, 0.3148921728134155, 0.12197133153676987, -0.01934870332479477, -0.18882246315479279, 0.25042763352394104, 0.3855638802051544, 0.2553831934928894, -0.2710188627243042, -0.2412593513727188, -0.48319920897483826, -0.05881766229867935, -0.5993407368659973, 0.17522451281547546, 0.014484657905995846, -0.16974078118801117, 0.2888728082180023, -0.2850365936756134, -0.30613258481025696, 0.041208140552043915, -0.012158781290054321, 0.008698493242263794, -0.09987317025661469, -0.1818946897983551, 0.06908519566059113, 0.2937246263027191, 0.17067480087280273, -0.09142959862947464, -0.020733743906021118, 0.018562888726592064, -0.007967584766447544, 0.10193827748298645, 0.13963550329208374, 0.049911849200725555, 0.12874579429626465, -0.05419512465596199, 0.28636932373046875, -0.03642783313989639, 0.11720120161771774, 0.0017400262877345085, -0.14135658740997314, -0.02517933025956154, 0.36153602600097656, 0.028018921613693237, -0.05013039708137512, 0.21824730932712555, 0.4199238717556, -0.05827628821134567, -0.16187921166419983, 0.2005286067724228, 0.05317128449678421, 0.06808023154735565, -0.24944230914115906, 0.14615565538406372, -0.22478076815605164, -0.29329735040664673, -0.08274233341217041, -0.08627896010875702, -0.18647269904613495, 0.022949477657675743, 0.3400924801826477, -0.0700734481215477, 0.07917571067810059, 0.09934359788894653, 0.10391443967819214, -0.16229791939258575, -0.17190949618816376, -0.30291515588760376, -0.07138463854789734, -0.4054718315601349, 0.08125469833612442, 0.3207022249698639, -0.4222565293312073, 0.42555952072143555, -0.08988603949546814, -0.013562709093093872, -0.08087725937366486, 0.04511871933937073, 0.14066258072853088, 0.2208612859249115, 0.26097118854522705, -0.13499760627746582, 0.12649653851985931, 0.3562185764312744, -0.042204394936561584, -0.04213186353445053, -0.05457008630037308, -0.19667866826057434, -0.46102505922317505, 0.0700131431221962, 0.15144385397434235, -0.5206201672554016, 0.21083346009254456, -0.11922451108694077, -0.12913869321346283, 0.21915236115455627, -0.008771341294050217, -0.09229814261198044, -0.16039735078811646, -0.11478239297866821, -0.06501106917858124, 0.31541764736175537, 0.5141691565513611, -0.1513119339942932, -0.3249448239803314, -0.3193366825580597, -0.46489888429641724, 0.12532144784927368, 0.0903715193271637, -0.22270433604717255, 0.3021344244480133, -0.4329906404018402, -0.2245457023382187, 0.169193297624588, 0.023051779717206955, -0.6245355010032654, 0.09388844668865204, 0.03623872250318527, 0.44397079944610596, 0.18443335592746735, -0.13453349471092224, 0.02439095638692379, 0.02077500708401203, 0.06949549913406372, 0.08994384855031967, 0.10664717108011246, -0.41316738724708557, -0.11075511574745178, -0.4275611340999603, 0.09254562109708786, -0.03419118747115135, 0.35993674397468567, 0.3903181254863739, 0.20165005326271057, 0.08931542187929153, 0.21455731987953186, 0.026849854737520218, 0.19829948246479034, 0.25261926651000977, 0.08295997977256775, 0.043249402195215225, 0.042041610926389694, -0.323152631521225, -0.6474989056587219, 0.47172030806541443, -0.4200010299682617, -0.08533494174480438, -0.2854434847831726, -0.04834964871406555, -0.21658697724342346, -0.12751056253910065, -0.2777881920337677, -0.5161871910095215, -0.08348516374826431, 0.3234512209892273, 0.10971063375473022, -0.04321417212486267, -0.3407459855079651, 0.4355245530605316, -0.057075537741184235, 0.19629773497581482, -0.5050894618034363, 0.08098462969064713, 0.01633371412754059, -0.3067207634449005, -0.30304619669914246, 0.25579917430877686, 0.01453351229429245, -0.17473424971103668, -0.06093776971101761, 0.46107614040374756, -0.03808389976620674, 0.14854849874973297, -0.28120484948158264, 0.20529024302959442, 0.1651540845632553, -0.2495894581079483, -0.10460016876459122, 0.1686759740114212, -0.01001433189958334, -0.029577113687992096, -0.02084679901599884, 0.23224082589149475, -0.10600531101226807, 0.2617897391319275, 0.19133125245571136, -0.08263418078422546, 0.20980136096477509, -0.11884093284606934, -0.012043451890349388, -0.47733986377716064, 0.2418074905872345, -0.09100452065467834, 0.5252287983894348, 0.16556976735591888, -0.042150527238845825, -0.02888665348291397, 0.060636624693870544, 0.07469411194324493, -0.0381203219294548, -0.06494418531656265, -0.28447651863098145, -0.15992116928100586, 0.09378798305988312, 0.11298646032810211, 0.7552416920661926, 0.07894683629274368, 0.24222394824028015, 0.20579272508621216, 0.04233231022953987, -0.24752618372440338, 0.2247801572084427, -0.08269794285297394, -0.20384512841701508, 0.17405825853347778, -0.025924576446413994, 0.0991208404302597, -0.33109575510025024, 0.22216245532035828, -0.07459527999162674, 0.2970941364765167, -0.4338788390159607, 0.10407065600156784, -0.7214329838752747, 0.08758021146059036, -0.23910027742385864, -0.0246838741004467, -0.36933574080467224, -0.13017109036445618, -0.2108629196882248, 0.20899201929569244, 0.11393196880817413, 0.1485755443572998, -0.1009390652179718, 0.056709110736846924, -0.2979748547077179, -0.4413433074951172, -0.15633276104927063, 0.054763685911893845, -0.17490065097808838, 0.0056802742183208466, 0.09171564877033234, -0.2198447436094284, 0.26853811740875244, -0.039270274341106415, -0.31741398572921753, -0.2370625138282776, -0.12718400359153748, 0.22486913204193115, 0.1538844257593155, 0.44590094685554504, 0.3485892117023468, 0.06718633323907852, 0.18242338299751282, -0.1785830706357956, 0.1770601123571396, -0.3259330093860626, -0.20473285019397736, -0.11896679550409317, -0.09758778661489487, 0.17993512749671936, -0.31032365560531616, -0.2635098993778229, -0.06851185858249664, -0.17670093476772308, 0.053120288997888565, 0.1336192786693573, -0.09953244030475616, 0.31463783979415894, -0.031175803393125534, 0.11781051009893417, -0.12819212675094604, 0.12298040837049484, -0.437033474445343, -0.5053049325942993, 0.08470147103071213, -0.0017928520683199167, -0.08213326334953308, 0.06296248733997345, -0.1337144672870636, 0.2622167468070984, 0.4922357201576233, -0.42487531900405884, 0.28242120146751404, -0.18104936182498932, 0.21116870641708374, -0.04027464985847473, 0.1474449336528778, 0.47934967279434204, -0.05066778510808945, 0.09709806740283966, -0.15263110399246216, -0.09105482697486877, 0.18110468983650208, -0.1667490303516388, 0.6108959317207336, 0.09417873620986938, 0.10479767620563507, 0.025774981826543808, 0.870868980884552, -0.012114925310015678, -0.17531590163707733, 0.4765681028366089, -0.0728769302368164, 0.8364327549934387, -0.20123037695884705, -0.36139529943466187, -0.006317630410194397, -0.01125653088092804, 0.10821297764778137, 0.24298176169395447, -0.003757709637284279, 0.18708740174770355, -0.2198590338230133, 0.13995477557182312, -0.14543157815933228, -0.21358539164066315, -0.01405383087694645, -0.11914154887199402, 0.32045337557792664, 0.2935107350349426, 0.09644701331853867, 0.05812425538897514, -0.0362248457968235, -0.0005746092647314072, 0.15503373742103577, 0.27383914589881897, 0.05022168904542923, -0.6028777360916138, 0.08905790746212006, -0.455650269985199, 0.24216178059577942, -0.043695878237485886, 0.07039373368024826, 0.07450635731220245, -0.09978704154491425, 0.15754854679107666, 0.010074332356452942, 0.6013377904891968, -0.0075668711215257645, 0.1396709531545639, 0.2047293335199356, -0.2554071545600891, -0.3140198886394501, -0.09449474513530731, 0.060271572321653366, -0.3349269926548004, 0.3041425943374634, 0.37198957800865173, -0.3000409007072449, -0.16524478793144226, 0.18366368114948273, 0.17018459737300873, -0.2557220757007599, -0.11218985915184021, -0.44285446405410767, -0.25296908617019653, -0.24403560161590576, -0.11848238855600357, -0.08434543758630753, 0.10046310722827911, 0.05555346608161926, 0.33460748195648193, -0.15812698006629944, -0.14794987440109253, 0.19312971830368042, 0.03072579950094223, 0.3901568651199341, -0.007133526261895895, 0.18763157725334167, 0.411443829536438, 0.21041540801525116, 0.24980628490447998, 0.6218353509902954, -0.502740740776062, -0.14695872366428375, 0.0798468142747879, 0.20577369630336761, 0.10452257841825485, 0.4365263879299164, -0.13872703909873962, 0.15883609652519226, -0.03607751056551933, 0.11189740151166916, -0.2392425537109375, 0.3494151532649994, 0.25185447931289673, -0.34288719296455383, -0.03309629485011101, -0.5503084659576416, 0.20850157737731934, -0.04229447990655899, -0.07348175346851349, 0.34366464614868164, 0.05983121693134308, -0.425094336271286, -0.10377644747495651, -0.08537567406892776, 1.020830512046814, -0.003065533936023712, 0.33163461089134216, 0.2692853510379791, 0.1389671266078949, 0.5088064074516296, 0.09817944467067719, -0.05790384113788605, -0.046172864735126495, -0.15462781488895416, 0.03125559538602829, -0.23482029139995575, 0.4024156630039215, -0.094448983669281, 0.13692744076251984, 0.33732786774635315, -0.11495387554168701, 0.5158619284629822, 0.23544728755950928, 0.17214779555797577, 0.05297132581472397, -0.17809785902500153, -0.17365628480911255, 0.034017063677310944, -0.0804871916770935, 0.19450078904628754, -0.12761448323726654, 0.17660941183567047, 0.009579714387655258, -0.07126486301422119, -0.13157129287719727, 0.01817992702126503, -0.23686696588993073, 0.08011799305677414, 0.21418708562850952, -0.34520673751831055, 0.09189210832118988, 0.28934556245803833, 0.3016151785850525, 0.24458973109722137, -0.21999207139015198, 0.25060683488845825, -0.11395233124494553, 0.00678348820656538, 0.038857024163007736, -0.025382887572050095, 0.16647782921791077, -0.09426955878734589, -0.1637887954711914, 0.13294479250907898, -0.1418919563293457, -0.281382292509079, -0.10383692383766174, 0.0007890388369560242, 0.13625022768974304, -0.30345669388771057, -0.2448681890964508, 0.02673749253153801, 0.5215818285942078, -0.2450980246067047, 0.022580811753869057, 0.24621638655662537, -0.2537461221218109, 0.14715580642223358, -0.47740820050239563, -0.3244478404521942, -0.3643747568130493, 0.5792986154556274, 0.03802737593650818, -0.27975523471832275, 0.4144563376903534, -0.2851402163505554, -0.039503827691078186, -0.12482130527496338, 0.11273670941591263, 0.14515626430511475, -0.29205286502838135, 0.13711051642894745, 0.0679960623383522, -0.1762426793575287, -0.08176400512456894, 0.14602510631084442, 0.2312946617603302, -0.05743414908647537, 0.018405836075544357, -0.2052084356546402, -0.4602888822555542, 0.037074629217386246, -0.19669906795024872, 0.18678897619247437, 0.16144821047782898, 0.21464966237545013, -0.1414235383272171, 0.19385747611522675, -0.2416045218706131, 0.2751702070236206, 0.26557204127311707, 0.11456703394651413, 0.21658916771411896, -0.16233986616134644, 0.29783520102500916, -0.22001659870147705, 0.038892023265361786, 0.20801018178462982, -0.4677981436252594, -0.09831444919109344, -0.4523066580295563, 0.20251573622226715, -0.07474298030138016, -0.21045906841754913, 0.06649887561798096, -0.10227827727794647, -0.10220228135585785, -0.1561538428068161, 0.3275623917579651, 0.4826698899269104, 0.2092902958393097, -0.05778520181775093, 0.3304722309112549, 0.1384943276643753, -0.39612847566604614, 0.14550690352916718, -0.2836117446422577, 0.05944385379552841, 0.1924469769001007, 0.03212767466902733, -0.4160386621952057, -0.08272723108530045, -0.013605733402073383, -0.005532607436180115, 0.18958038091659546, 0.04237045347690582, 0.5320530533790588, -0.28160083293914795, -0.11949193477630615, 0.027425801381468773, 0.38952088356018066, 0.407463014125824, -0.07101385295391083, -0.002658173441886902, 0.16801536083221436, 0.060561612248420715, -0.2976955771446228, -0.004912897013127804, 0.19684936106204987, 0.18507453799247742, -0.019669363275170326, 0.4558616280555725, 0.34488391876220703, -0.129521444439888, 0.26970142126083374, 0.013057518750429153, 0.5332146286964417, -0.03666655719280243, 0.15605014562606812, 0.18833580613136292, 0.14341770112514496, 0.02438574656844139, 0.38141930103302, 0.2714940011501312, 0.27218663692474365, 0.14383700489997864, -0.17818370461463928, 0.18345363438129425, -0.224155992269516, 0.23049813508987427, -0.06699127703905106, -0.5236247777938843, -0.07773144543170929, 0.2282334417104721, -0.3089510500431061, 0.29499050974845886, -0.13791030645370483, 0.5184318423271179, -0.3782793879508972, -0.17618542909622192, 0.13857781887054443, 0.26471146941185, -0.1561022698879242, -0.32217276096343994, -0.06554743647575378, -0.24389725923538208, -0.07230717688798904, 0.10662667453289032, -0.04111860319972038, -0.34396547079086304, 0.05047940835356712, -0.012697100639343262, -0.30401456356048584, -0.19068540632724762, -0.33825117349624634, 0.0538894385099411, -0.043302349746227264, -0.1561206877231598, 0.15302635729312897, 0.19423356652259827, -0.1860087811946869, 0.24130505323410034, 0.03576100990176201, 0.3825461268424988, -0.12766416370868683, 0.08666610717773438, -0.10499302297830582, 0.144465833902359, 0.13841915130615234, -0.271400511264801, 0.19864711165428162, 0.3256663680076599, 0.29740697145462036, 0.17538078129291534, 0.05058298259973526, -0.24936050176620483, -0.19214706122875214, 0.11722952872514725, 0.44632160663604736, -0.5711379647254944, 0.44470179080963135, -0.08042215555906296, -0.04497864097356796, -0.037632912397384644, 0.25329887866973877, -0.3149857819080353, 0.20416611433029175, 0.3644126057624817, -0.12675900757312775, 0.16391167044639587, -0.054216183722019196, 0.02833203226327896, 0.149052694439888, 0.3368106782436371, 0.324825257062912, -0.17483747005462646, -0.18837088346481323, -0.22687101364135742, -0.8348156213760376, 0.16834746301174164, 0.056148454546928406, 0.252268522977829, 0.07500284165143967, 0.06333275139331818, 0.07871845364570618, 0.0221099853515625, 0.08925001323223114, 0.12903529405593872, 0.3552611172199249, -0.24962660670280457, -0.2573307454586029, -0.11191309988498688, -0.11809711158275604, 0.014443331398069859, 0.104169100522995, -0.40662115812301636, -0.08051170408725739, -0.17068840563297272, -0.18467622995376587, 0.04212912172079086, -0.11846423149108887, 0.1422516256570816, -0.027459390461444855, 0.3935498595237732, 0.11166214197874069, 0.13293969631195068, 0.10243787616491318, -0.2191389948129654, -0.36177995800971985, -0.04005100950598717, -0.0427958182990551, 0.005601018667221069, 0.022929266095161438, 0.5331494808197021, -0.42223992943763733, 0.0032351575791835785, -0.5161274075508118, 0.43175968527793884, 0.3265843391418457, -0.20382928848266602, -0.4794391393661499, 0.13996565341949463, -0.19474875926971436, 0.26727673411369324, 0.4651409089565277, 0.6067754030227661, -0.13497918844223022, 0.24215488135814667, -0.30158114433288574, -0.07134833186864853, 0.6688966751098633, -0.1467791199684143, -0.18206946551799774, -0.09211032092571259, 0.18545740842819214, 0.12406668066978455, -0.2078670859336853, -0.3804716169834137, 0.054267726838588715, 0.47218939661979675, -0.10110575705766678, -0.1736205369234085, 0.14057216048240662, -0.33320629596710205, 0.08122947812080383, 0.13674981892108917, 0.4947448968887329, 0.3208029866218567, -0.2447618991136551, 0.1631329506635666, -0.20671232044696808 ]
https://github.com/huggingface/datasets/issues/5457
prebuilt dataset relies on `downloads/extracted`
Understood. Thank you, Mario. Perhaps the solution could be very simple - move the extracted files into the directory of the cached dataset? Which would make it self-contained already and won't require waiting for a new major release. Unless I'm missing some back-compat nuance. But regardless if X relies on Y - it could check if Y is still there when loading X. so not checking full consistency but just the top-level directory it relies on.
### Describe the bug I pre-built the dataset: ``` python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing ``` and it can be used just fine. now I wipe out `downloads/extracted` and it no longer works. ``` rm -r ~/.cache/huggingface/datasets/downloads ``` That is I can still load it: ``` python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing No config specified, defaulting to: general-pmd-synthetic-testing/100.unique Found cached dataset general-pmd-synthetic-testing (/home/stas/.cache/huggingface/datasets/HuggingFaceM4___general-pmd-synthetic-testing/100.unique/1.1.1/86bc445e3e48cb5ef79de109eb4e54ff85b318cd55c3835c4ee8f86eae33d9d2) ``` but if I try to use it: ``` E stderr: Traceback (most recent call last): E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/main.py", line 116, in <module> E stderr: train_loader, val_loader = get_dataloaders( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 170, in get_dataloaders E stderr: train_loader = get_dataloader_from_config( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 443, in get_dataloader_from_config E stderr: dataloader = get_dataloader( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 264, in get_dataloader E stderr: is_pmd = "meta" in hf_dataset[0] and "source" in hf_dataset[0] E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/arrow_dataset.py", line 2601, in __getitem__ E stderr: return self._getitem( E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/arrow_dataset.py", line 2586, in _getitem E stderr: formatted_output = format_table( E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 634, in format_table E stderr: return formatter(pa_table, query_type=query_type) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 406, in __call__ E stderr: return self.format_row(pa_table) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 442, in format_row E stderr: row = self.python_features_decoder.decode_row(row) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 225, in decode_row E stderr: return self.features.decode_example(row) if self.features else row E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1846, in decode_example E stderr: return { E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1847, in <dictcomp> E stderr: column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1304, in decode_nested_example E stderr: return decode_nested_example([schema.feature], obj) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1296, in decode_nested_example E stderr: if decode_nested_example(sub_schema, first_elmt) != first_elmt: E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1309, in decode_nested_example E stderr: return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/image.py", line 144, in decode_example E stderr: image = PIL.Image.open(path) E stderr: File "/home/stas/anaconda3/envs/py38-pt113/lib/python3.8/site-packages/PIL/Image.py", line 3092, in open E stderr: fp = builtins.open(filename, "rb") E stderr: FileNotFoundError: [Errno 2] No such file or directory: '/mnt/nvme0/code/data/cache/huggingface/datasets/downloads/extracted/134227b9b94c4eccf19b205bf3021d4492d0227b9be6c2ddb6bf517d8d55a8cb/data/101/images_01.jpg' ``` Only if I wipe out the cached dir and rebuild then it starts working as `download/extracted` is back again with extracted files. ``` rm -r ~/.cache/huggingface/datasets/HuggingFaceM4___general-pmd-synthetic-testing python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing ``` I think there are 2 issues here: 1. why does it still rely on extracted files after `arrow` files were printed - did I do something incorrectly when creating this dataset? 2. why doesn't the dataset know that it has been gutted and loads just fine? If it has a dependency on `download/extracted` then `load_dataset` should check if it's there and fail or force rebuilding. I am sure this could be a very expensive operation, so probably really solving #1 will not require this check. and this second item is probably an overkill. Other than perhaps if it had an optional `check_consistency` flag to do that. ### Environment info datasets@main
76
prebuilt dataset relies on `downloads/extracted` ### Describe the bug I pre-built the dataset: ``` python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing ``` and it can be used just fine. now I wipe out `downloads/extracted` and it no longer works. ``` rm -r ~/.cache/huggingface/datasets/downloads ``` That is I can still load it: ``` python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing No config specified, defaulting to: general-pmd-synthetic-testing/100.unique Found cached dataset general-pmd-synthetic-testing (/home/stas/.cache/huggingface/datasets/HuggingFaceM4___general-pmd-synthetic-testing/100.unique/1.1.1/86bc445e3e48cb5ef79de109eb4e54ff85b318cd55c3835c4ee8f86eae33d9d2) ``` but if I try to use it: ``` E stderr: Traceback (most recent call last): E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/main.py", line 116, in <module> E stderr: train_loader, val_loader = get_dataloaders( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 170, in get_dataloaders E stderr: train_loader = get_dataloader_from_config( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 443, in get_dataloader_from_config E stderr: dataloader = get_dataloader( E stderr: File "/mnt/nvme0/code/huggingface/m4-master-6/m4/training/dataset.py", line 264, in get_dataloader E stderr: is_pmd = "meta" in hf_dataset[0] and "source" in hf_dataset[0] E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/arrow_dataset.py", line 2601, in __getitem__ E stderr: return self._getitem( E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/arrow_dataset.py", line 2586, in _getitem E stderr: formatted_output = format_table( E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 634, in format_table E stderr: return formatter(pa_table, query_type=query_type) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 406, in __call__ E stderr: return self.format_row(pa_table) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 442, in format_row E stderr: row = self.python_features_decoder.decode_row(row) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/formatting/formatting.py", line 225, in decode_row E stderr: return self.features.decode_example(row) if self.features else row E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1846, in decode_example E stderr: return { E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1847, in <dictcomp> E stderr: column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1304, in decode_nested_example E stderr: return decode_nested_example([schema.feature], obj) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1296, in decode_nested_example E stderr: if decode_nested_example(sub_schema, first_elmt) != first_elmt: E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/features.py", line 1309, in decode_nested_example E stderr: return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) E stderr: File "/mnt/nvme0/code/huggingface/datasets-master/src/datasets/features/image.py", line 144, in decode_example E stderr: image = PIL.Image.open(path) E stderr: File "/home/stas/anaconda3/envs/py38-pt113/lib/python3.8/site-packages/PIL/Image.py", line 3092, in open E stderr: fp = builtins.open(filename, "rb") E stderr: FileNotFoundError: [Errno 2] No such file or directory: '/mnt/nvme0/code/data/cache/huggingface/datasets/downloads/extracted/134227b9b94c4eccf19b205bf3021d4492d0227b9be6c2ddb6bf517d8d55a8cb/data/101/images_01.jpg' ``` Only if I wipe out the cached dir and rebuild then it starts working as `download/extracted` is back again with extracted files. ``` rm -r ~/.cache/huggingface/datasets/HuggingFaceM4___general-pmd-synthetic-testing python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing ``` I think there are 2 issues here: 1. why does it still rely on extracted files after `arrow` files were printed - did I do something incorrectly when creating this dataset? 2. why doesn't the dataset know that it has been gutted and loads just fine? If it has a dependency on `download/extracted` then `load_dataset` should check if it's there and fail or force rebuilding. I am sure this could be a very expensive operation, so probably really solving #1 will not require this check. and this second item is probably an overkill. Other than perhaps if it had an optional `check_consistency` flag to do that. ### Environment info datasets@main Understood. Thank you, Mario. Perhaps the solution could be very simple - move the extracted files into the directory of the cached dataset? Which would make it self-contained already and won't require waiting for a new major release. Unless I'm missing some back-compat nuance. But regardless if X relies on Y - it could check if Y is still there when loading X. so not checking full consistency but just the top-level directory it relies on.
[ -0.23342011868953705, -0.3251979351043701, -0.017481131479144096, 0.39176517724990845, 0.29942941665649414, 0.0018673017621040344, 0.04591747000813484, -0.0035278350114822388, -0.07234817743301392, 0.12349669635295868, -0.19353342056274414, -0.02383505180478096, -0.14854159951210022, 0.12159507721662521, 0.2945840656757355, 0.2712782621383667, -0.10535966604948044, 0.06820692121982574, -0.23580071330070496, 0.21605713665485382, -0.1524035930633545, 0.18172544240951538, 0.032227449119091034, -0.076851487159729, -0.23811671137809753, 0.09580227732658386, 0.09693194925785065, 0.29006919264793396, -0.021883463487029076, -0.4738315939903259, 0.36252379417419434, 0.1331714242696762, 0.2477286159992218, 0.3824382722377777, -0.0001268694322789088, 0.12996447086334229, 0.20209012925624847, -0.21972548961639404, -0.507878303527832, -0.050411686301231384, -0.13052335381507874, 0.20230478048324585, 0.21832890808582306, -0.09540638327598572, -0.08722095936536789, -0.16106969118118286, -0.14160186052322388, -0.6720856428146362, 0.4110484719276428, 0.3768000900745392, 0.146026149392128, 0.4952106773853302, -0.07107379287481308, -0.16178403794765472, 0.09953058511018753, 0.09831292182207108, -0.13528552651405334, 0.3219833970069885, 0.25780045986175537, 0.21182094514369965, 0.29075726866722107, 0.15454192459583282, -0.07702647894620895, 0.1364194005727768, 0.3148921728134155, 0.12197133153676987, -0.01934870332479477, -0.18882246315479279, 0.25042763352394104, 0.3855638802051544, 0.2553831934928894, -0.2710188627243042, -0.2412593513727188, -0.48319920897483826, -0.05881766229867935, -0.5993407368659973, 0.17522451281547546, 0.014484657905995846, -0.16974078118801117, 0.2888728082180023, -0.2850365936756134, -0.30613258481025696, 0.041208140552043915, -0.012158781290054321, 0.008698493242263794, -0.09987317025661469, -0.1818946897983551, 0.06908519566059113, 0.2937246263027191, 0.17067480087280273, -0.09142959862947464, -0.020733743906021118, 0.018562888726592064, -0.007967584766447544, 0.10193827748298645, 0.13963550329208374, 0.049911849200725555, 0.12874579429626465, -0.05419512465596199, 0.28636932373046875, -0.03642783313989639, 0.11720120161771774, 0.0017400262877345085, -0.14135658740997314, -0.02517933025956154, 0.36153602600097656, 0.028018921613693237, -0.05013039708137512, 0.21824730932712555, 0.4199238717556, -0.05827628821134567, -0.16187921166419983, 0.2005286067724228, 0.05317128449678421, 0.06808023154735565, -0.24944230914115906, 0.14615565538406372, -0.22478076815605164, -0.29329735040664673, -0.08274233341217041, -0.08627896010875702, -0.18647269904613495, 0.022949477657675743, 0.3400924801826477, -0.0700734481215477, 0.07917571067810059, 0.09934359788894653, 0.10391443967819214, -0.16229791939258575, -0.17190949618816376, -0.30291515588760376, -0.07138463854789734, -0.4054718315601349, 0.08125469833612442, 0.3207022249698639, -0.4222565293312073, 0.42555952072143555, -0.08988603949546814, -0.013562709093093872, -0.08087725937366486, 0.04511871933937073, 0.14066258072853088, 0.2208612859249115, 0.26097118854522705, -0.13499760627746582, 0.12649653851985931, 0.3562185764312744, -0.042204394936561584, -0.04213186353445053, -0.05457008630037308, -0.19667866826057434, -0.46102505922317505, 0.0700131431221962, 0.15144385397434235, -0.5206201672554016, 0.21083346009254456, -0.11922451108694077, -0.12913869321346283, 0.21915236115455627, -0.008771341294050217, -0.09229814261198044, -0.16039735078811646, -0.11478239297866821, -0.06501106917858124, 0.31541764736175537, 0.5141691565513611, -0.1513119339942932, -0.3249448239803314, -0.3193366825580597, -0.46489888429641724, 0.12532144784927368, 0.0903715193271637, -0.22270433604717255, 0.3021344244480133, -0.4329906404018402, -0.2245457023382187, 0.169193297624588, 0.023051779717206955, -0.6245355010032654, 0.09388844668865204, 0.03623872250318527, 0.44397079944610596, 0.18443335592746735, -0.13453349471092224, 0.02439095638692379, 0.02077500708401203, 0.06949549913406372, 0.08994384855031967, 0.10664717108011246, -0.41316738724708557, -0.11075511574745178, -0.4275611340999603, 0.09254562109708786, -0.03419118747115135, 0.35993674397468567, 0.3903181254863739, 0.20165005326271057, 0.08931542187929153, 0.21455731987953186, 0.026849854737520218, 0.19829948246479034, 0.25261926651000977, 0.08295997977256775, 0.043249402195215225, 0.042041610926389694, -0.323152631521225, -0.6474989056587219, 0.47172030806541443, -0.4200010299682617, -0.08533494174480438, -0.2854434847831726, -0.04834964871406555, -0.21658697724342346, -0.12751056253910065, -0.2777881920337677, -0.5161871910095215, -0.08348516374826431, 0.3234512209892273, 0.10971063375473022, -0.04321417212486267, -0.3407459855079651, 0.4355245530605316, -0.057075537741184235, 0.19629773497581482, -0.5050894618034363, 0.08098462969064713, 0.01633371412754059, -0.3067207634449005, -0.30304619669914246, 0.25579917430877686, 0.01453351229429245, -0.17473424971103668, -0.06093776971101761, 0.46107614040374756, -0.03808389976620674, 0.14854849874973297, -0.28120484948158264, 0.20529024302959442, 0.1651540845632553, -0.2495894581079483, -0.10460016876459122, 0.1686759740114212, -0.01001433189958334, -0.029577113687992096, -0.02084679901599884, 0.23224082589149475, -0.10600531101226807, 0.2617897391319275, 0.19133125245571136, -0.08263418078422546, 0.20980136096477509, -0.11884093284606934, -0.012043451890349388, -0.47733986377716064, 0.2418074905872345, -0.09100452065467834, 0.5252287983894348, 0.16556976735591888, -0.042150527238845825, -0.02888665348291397, 0.060636624693870544, 0.07469411194324493, -0.0381203219294548, -0.06494418531656265, -0.28447651863098145, -0.15992116928100586, 0.09378798305988312, 0.11298646032810211, 0.7552416920661926, 0.07894683629274368, 0.24222394824028015, 0.20579272508621216, 0.04233231022953987, -0.24752618372440338, 0.2247801572084427, -0.08269794285297394, -0.20384512841701508, 0.17405825853347778, -0.025924576446413994, 0.0991208404302597, -0.33109575510025024, 0.22216245532035828, -0.07459527999162674, 0.2970941364765167, -0.4338788390159607, 0.10407065600156784, -0.7214329838752747, 0.08758021146059036, -0.23910027742385864, -0.0246838741004467, -0.36933574080467224, -0.13017109036445618, -0.2108629196882248, 0.20899201929569244, 0.11393196880817413, 0.1485755443572998, -0.1009390652179718, 0.056709110736846924, -0.2979748547077179, -0.4413433074951172, -0.15633276104927063, 0.054763685911893845, -0.17490065097808838, 0.0056802742183208466, 0.09171564877033234, -0.2198447436094284, 0.26853811740875244, -0.039270274341106415, -0.31741398572921753, -0.2370625138282776, -0.12718400359153748, 0.22486913204193115, 0.1538844257593155, 0.44590094685554504, 0.3485892117023468, 0.06718633323907852, 0.18242338299751282, -0.1785830706357956, 0.1770601123571396, -0.3259330093860626, -0.20473285019397736, -0.11896679550409317, -0.09758778661489487, 0.17993512749671936, -0.31032365560531616, -0.2635098993778229, -0.06851185858249664, -0.17670093476772308, 0.053120288997888565, 0.1336192786693573, -0.09953244030475616, 0.31463783979415894, -0.031175803393125534, 0.11781051009893417, -0.12819212675094604, 0.12298040837049484, -0.437033474445343, -0.5053049325942993, 0.08470147103071213, -0.0017928520683199167, -0.08213326334953308, 0.06296248733997345, -0.1337144672870636, 0.2622167468070984, 0.4922357201576233, -0.42487531900405884, 0.28242120146751404, -0.18104936182498932, 0.21116870641708374, -0.04027464985847473, 0.1474449336528778, 0.47934967279434204, -0.05066778510808945, 0.09709806740283966, -0.15263110399246216, -0.09105482697486877, 0.18110468983650208, -0.1667490303516388, 0.6108959317207336, 0.09417873620986938, 0.10479767620563507, 0.025774981826543808, 0.870868980884552, -0.012114925310015678, -0.17531590163707733, 0.4765681028366089, -0.0728769302368164, 0.8364327549934387, -0.20123037695884705, -0.36139529943466187, -0.006317630410194397, -0.01125653088092804, 0.10821297764778137, 0.24298176169395447, -0.003757709637284279, 0.18708740174770355, -0.2198590338230133, 0.13995477557182312, -0.14543157815933228, -0.21358539164066315, -0.01405383087694645, -0.11914154887199402, 0.32045337557792664, 0.2935107350349426, 0.09644701331853867, 0.05812425538897514, -0.0362248457968235, -0.0005746092647314072, 0.15503373742103577, 0.27383914589881897, 0.05022168904542923, -0.6028777360916138, 0.08905790746212006, -0.455650269985199, 0.24216178059577942, -0.043695878237485886, 0.07039373368024826, 0.07450635731220245, -0.09978704154491425, 0.15754854679107666, 0.010074332356452942, 0.6013377904891968, -0.0075668711215257645, 0.1396709531545639, 0.2047293335199356, -0.2554071545600891, -0.3140198886394501, -0.09449474513530731, 0.060271572321653366, -0.3349269926548004, 0.3041425943374634, 0.37198957800865173, -0.3000409007072449, -0.16524478793144226, 0.18366368114948273, 0.17018459737300873, -0.2557220757007599, -0.11218985915184021, -0.44285446405410767, -0.25296908617019653, -0.24403560161590576, -0.11848238855600357, -0.08434543758630753, 0.10046310722827911, 0.05555346608161926, 0.33460748195648193, -0.15812698006629944, -0.14794987440109253, 0.19312971830368042, 0.03072579950094223, 0.3901568651199341, -0.007133526261895895, 0.18763157725334167, 0.411443829536438, 0.21041540801525116, 0.24980628490447998, 0.6218353509902954, -0.502740740776062, -0.14695872366428375, 0.0798468142747879, 0.20577369630336761, 0.10452257841825485, 0.4365263879299164, -0.13872703909873962, 0.15883609652519226, -0.03607751056551933, 0.11189740151166916, -0.2392425537109375, 0.3494151532649994, 0.25185447931289673, -0.34288719296455383, -0.03309629485011101, -0.5503084659576416, 0.20850157737731934, -0.04229447990655899, -0.07348175346851349, 0.34366464614868164, 0.05983121693134308, -0.425094336271286, -0.10377644747495651, -0.08537567406892776, 1.020830512046814, -0.003065533936023712, 0.33163461089134216, 0.2692853510379791, 0.1389671266078949, 0.5088064074516296, 0.09817944467067719, -0.05790384113788605, -0.046172864735126495, -0.15462781488895416, 0.03125559538602829, -0.23482029139995575, 0.4024156630039215, -0.094448983669281, 0.13692744076251984, 0.33732786774635315, -0.11495387554168701, 0.5158619284629822, 0.23544728755950928, 0.17214779555797577, 0.05297132581472397, -0.17809785902500153, -0.17365628480911255, 0.034017063677310944, -0.0804871916770935, 0.19450078904628754, -0.12761448323726654, 0.17660941183567047, 0.009579714387655258, -0.07126486301422119, -0.13157129287719727, 0.01817992702126503, -0.23686696588993073, 0.08011799305677414, 0.21418708562850952, -0.34520673751831055, 0.09189210832118988, 0.28934556245803833, 0.3016151785850525, 0.24458973109722137, -0.21999207139015198, 0.25060683488845825, -0.11395233124494553, 0.00678348820656538, 0.038857024163007736, -0.025382887572050095, 0.16647782921791077, -0.09426955878734589, -0.1637887954711914, 0.13294479250907898, -0.1418919563293457, -0.281382292509079, -0.10383692383766174, 0.0007890388369560242, 0.13625022768974304, -0.30345669388771057, -0.2448681890964508, 0.02673749253153801, 0.5215818285942078, -0.2450980246067047, 0.022580811753869057, 0.24621638655662537, -0.2537461221218109, 0.14715580642223358, -0.47740820050239563, -0.3244478404521942, -0.3643747568130493, 0.5792986154556274, 0.03802737593650818, -0.27975523471832275, 0.4144563376903534, -0.2851402163505554, -0.039503827691078186, -0.12482130527496338, 0.11273670941591263, 0.14515626430511475, -0.29205286502838135, 0.13711051642894745, 0.0679960623383522, -0.1762426793575287, -0.08176400512456894, 0.14602510631084442, 0.2312946617603302, -0.05743414908647537, 0.018405836075544357, -0.2052084356546402, -0.4602888822555542, 0.037074629217386246, -0.19669906795024872, 0.18678897619247437, 0.16144821047782898, 0.21464966237545013, -0.1414235383272171, 0.19385747611522675, -0.2416045218706131, 0.2751702070236206, 0.26557204127311707, 0.11456703394651413, 0.21658916771411896, -0.16233986616134644, 0.29783520102500916, -0.22001659870147705, 0.038892023265361786, 0.20801018178462982, -0.4677981436252594, -0.09831444919109344, -0.4523066580295563, 0.20251573622226715, -0.07474298030138016, -0.21045906841754913, 0.06649887561798096, -0.10227827727794647, -0.10220228135585785, -0.1561538428068161, 0.3275623917579651, 0.4826698899269104, 0.2092902958393097, -0.05778520181775093, 0.3304722309112549, 0.1384943276643753, -0.39612847566604614, 0.14550690352916718, -0.2836117446422577, 0.05944385379552841, 0.1924469769001007, 0.03212767466902733, -0.4160386621952057, -0.08272723108530045, -0.013605733402073383, -0.005532607436180115, 0.18958038091659546, 0.04237045347690582, 0.5320530533790588, -0.28160083293914795, -0.11949193477630615, 0.027425801381468773, 0.38952088356018066, 0.407463014125824, -0.07101385295391083, -0.002658173441886902, 0.16801536083221436, 0.060561612248420715, -0.2976955771446228, -0.004912897013127804, 0.19684936106204987, 0.18507453799247742, -0.019669363275170326, 0.4558616280555725, 0.34488391876220703, -0.129521444439888, 0.26970142126083374, 0.013057518750429153, 0.5332146286964417, -0.03666655719280243, 0.15605014562606812, 0.18833580613136292, 0.14341770112514496, 0.02438574656844139, 0.38141930103302, 0.2714940011501312, 0.27218663692474365, 0.14383700489997864, -0.17818370461463928, 0.18345363438129425, -0.224155992269516, 0.23049813508987427, -0.06699127703905106, -0.5236247777938843, -0.07773144543170929, 0.2282334417104721, -0.3089510500431061, 0.29499050974845886, -0.13791030645370483, 0.5184318423271179, -0.3782793879508972, -0.17618542909622192, 0.13857781887054443, 0.26471146941185, -0.1561022698879242, -0.32217276096343994, -0.06554743647575378, -0.24389725923538208, -0.07230717688798904, 0.10662667453289032, -0.04111860319972038, -0.34396547079086304, 0.05047940835356712, -0.012697100639343262, -0.30401456356048584, -0.19068540632724762, -0.33825117349624634, 0.0538894385099411, -0.043302349746227264, -0.1561206877231598, 0.15302635729312897, 0.19423356652259827, -0.1860087811946869, 0.24130505323410034, 0.03576100990176201, 0.3825461268424988, -0.12766416370868683, 0.08666610717773438, -0.10499302297830582, 0.144465833902359, 0.13841915130615234, -0.271400511264801, 0.19864711165428162, 0.3256663680076599, 0.29740697145462036, 0.17538078129291534, 0.05058298259973526, -0.24936050176620483, -0.19214706122875214, 0.11722952872514725, 0.44632160663604736, -0.5711379647254944, 0.44470179080963135, -0.08042215555906296, -0.04497864097356796, -0.037632912397384644, 0.25329887866973877, -0.3149857819080353, 0.20416611433029175, 0.3644126057624817, -0.12675900757312775, 0.16391167044639587, -0.054216183722019196, 0.02833203226327896, 0.149052694439888, 0.3368106782436371, 0.324825257062912, -0.17483747005462646, -0.18837088346481323, -0.22687101364135742, -0.8348156213760376, 0.16834746301174164, 0.056148454546928406, 0.252268522977829, 0.07500284165143967, 0.06333275139331818, 0.07871845364570618, 0.0221099853515625, 0.08925001323223114, 0.12903529405593872, 0.3552611172199249, -0.24962660670280457, -0.2573307454586029, -0.11191309988498688, -0.11809711158275604, 0.014443331398069859, 0.104169100522995, -0.40662115812301636, -0.08051170408725739, -0.17068840563297272, -0.18467622995376587, 0.04212912172079086, -0.11846423149108887, 0.1422516256570816, -0.027459390461444855, 0.3935498595237732, 0.11166214197874069, 0.13293969631195068, 0.10243787616491318, -0.2191389948129654, -0.36177995800971985, -0.04005100950598717, -0.0427958182990551, 0.005601018667221069, 0.022929266095161438, 0.5331494808197021, -0.42223992943763733, 0.0032351575791835785, -0.5161274075508118, 0.43175968527793884, 0.3265843391418457, -0.20382928848266602, -0.4794391393661499, 0.13996565341949463, -0.19474875926971436, 0.26727673411369324, 0.4651409089565277, 0.6067754030227661, -0.13497918844223022, 0.24215488135814667, -0.30158114433288574, -0.07134833186864853, 0.6688966751098633, -0.1467791199684143, -0.18206946551799774, -0.09211032092571259, 0.18545740842819214, 0.12406668066978455, -0.2078670859336853, -0.3804716169834137, 0.054267726838588715, 0.47218939661979675, -0.10110575705766678, -0.1736205369234085, 0.14057216048240662, -0.33320629596710205, 0.08122947812080383, 0.13674981892108917, 0.4947448968887329, 0.3208029866218567, -0.2447618991136551, 0.1631329506635666, -0.20671232044696808 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
Something that'd be nice to have is "manual update of state". One of the learning from training LLMs is the ability to skip some batches whenever we notice huge spike might be handy.
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
33
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger Something that'd be nice to have is "manual update of state". One of the learning from training LLMs is the ability to skip some batches whenever we notice huge spike might be handy.
[ -0.590391218662262, 0.12605814635753632, 0.008841346949338913, 0.09381023049354553, 0.035903751850128174, -0.0426461361348629, 0.08397107571363449, 0.12456893920898438, 0.09366557002067566, 0.15948447585105896, -0.04897703230381012, 0.31480634212493896, -0.4971725642681122, 0.07508321851491928, 0.16291268169879913, -0.18617820739746094, -0.2794295847415924, 0.23108524084091187, -0.24199840426445007, 0.2557007670402527, 0.11660239100456238, -0.395664781332016, -0.06940474361181259, -0.27553242444992065, -0.3777763247489929, 0.034275636076927185, -0.0064447056502103806, 0.19187813997268677, 0.21079954504966736, -0.3859381675720215, 0.40876534581184387, -0.02064703404903412, 0.5034847259521484, 0.1505315899848938, -0.00012255851470399648, -0.10468753427267075, 0.30072134733200073, -0.0829998031258583, -0.5764510631561279, -0.14020316302776337, -0.20228207111358643, -0.33716776967048645, 0.24001777172088623, -0.18358176946640015, 0.15439578890800476, -0.27580705285072327, 0.16750437021255493, -0.18775221705436707, 0.33568471670150757, 0.01754152774810791, 0.05536434426903725, 0.3950525224208832, -0.3164597451686859, 0.023558860644698143, 0.09322304278612137, 0.25971344113349915, -0.006756152957677841, 0.3466092646121979, 0.5631417036056519, -0.15736813843250275, -0.34569332003593445, 0.02573131024837494, -0.17017610371112823, -0.04122008755803108, 0.07238999754190445, -0.09358783066272736, -0.13576006889343262, 0.004625994712114334, -0.14036208391189575, 0.13480815291404724, 0.6402170658111572, -0.2265532910823822, -0.06391694396734238, -0.5499660968780518, 0.34153512120246887, -0.2174687683582306, -0.07443291693925858, -0.13786901533603668, -0.20369575917720795, 0.048640258610248566, -0.08911717683076859, -0.2789075970649719, -0.19036376476287842, 0.2358168363571167, -0.15342870354652405, 0.16225826740264893, 0.08384942263364792, -0.0008410662412643433, 0.1376446783542633, 0.3960176706314087, 0.5728093981742859, 0.011602655053138733, 0.4512369930744171, 0.3374584913253784, -0.3310246765613556, -0.1707046926021576, -0.1534770429134369, -0.2822421193122864, -0.08684152364730835, 0.15294671058654785, 0.3073137402534485, 0.03128921240568161, -0.10288388282060623, 0.24498680233955383, 0.21404320001602173, -0.025387469679117203, 0.2335958480834961, 0.1416979730129242, 0.39993447065353394, 0.1739281415939331, -0.10952645540237427, 0.05486048012971878, -0.013443653471767902, 0.15482991933822632, 0.7453468441963196, 0.19559508562088013, -0.00772959366440773, 0.1633276790380478, 0.06889472901821136, 0.25449037551879883, -0.26010406017303467, -0.31257590651512146, 0.14575450122356415, -0.07980937510728836, -0.06172074005007744, 0.3273147940635681, 0.07740878313779831, -0.312414288520813, 0.06576821953058243, -0.47063112258911133, -0.09933321923017502, -0.2732333838939667, -0.2653651237487793, 0.4712904393672943, 0.3316371738910675, -0.3154584765434265, 0.19431959092617035, -0.02811397984623909, -0.11589635908603668, 0.17625175416469574, 0.3955456614494324, 0.1065148413181305, 0.029823407530784607, 0.21790973842144012, -0.3201049268245697, -0.0323905274271965, 0.1182699054479599, 0.18742163479328156, -0.12654626369476318, 0.48789161443710327, -0.2377171516418457, -0.34284573793411255, 0.007974879816174507, 0.06646590679883957, 0.09243509918451309, -0.03893239051103592, -0.4384760558605194, 0.08920207619667053, 0.10065125674009323, -0.010812938213348389, 0.394351989030838, -0.2236909419298172, -0.03674086928367615, -0.20249126851558685, 0.1048659160733223, 0.05089446157217026, -0.48619455099105835, -0.4720655679702759, -0.05558738112449646, -0.1860962063074112, 0.12574884295463562, 0.06697028875350952, -0.5060918927192688, 0.5009002089500427, -0.024593092501163483, 0.07285729050636292, 0.4622000753879547, -0.007262315601110458, -0.4454267621040344, -0.08022172749042511, 0.02901540696620941, 0.14082913100719452, -0.15651193261146545, 0.42532217502593994, 0.299118310213089, 0.02148577943444252, -0.04038252681493759, 0.3841782212257385, -0.21036352217197418, -0.14522294700145721, -0.04926514998078346, -0.12792328000068665, 0.3516520857810974, 0.6893185377120972, 0.3502861261367798, -0.0013981908559799194, 0.0999794453382492, 0.1346651315689087, 0.2070310413837433, 0.1024228036403656, 0.19651372730731964, 0.0023385845124721527, -0.13632000982761383, 0.09297448396682739, -0.11504966765642166, -0.46108490228652954, -0.5501112341880798, 0.19779685139656067, -0.2036309838294983, -0.3617493808269501, 0.20811587572097778, 0.01342255249619484, 0.25815510749816895, -0.02255064994096756, -0.18717503547668457, -0.21068395674228668, -0.033709071576595306, 0.013876564800739288, -0.1836196929216385, 0.04546700045466423, -0.4530388414859772, 0.26575967669487, -0.4609984755516052, 0.08035875856876373, -0.30656468868255615, 0.42547744512557983, 0.27940791845321655, -0.11755895614624023, -0.38440293073654175, 0.04617602378129959, -0.14443829655647278, -0.04732390120625496, 0.05221705511212349, 0.2263410985469818, 0.07450702041387558, 0.256317675113678, -0.05828479677438736, 0.10351730138063431, -0.009755870327353477, 0.24075302481651306, 0.07823067903518677, -0.07522381842136383, -0.18671971559524536, -0.4093396067619324, 0.007639609277248383, 0.33867543935775757, -0.033487219363451004, 0.13191978633403778, 0.053255677223205566, -0.05640231817960739, -0.12117906659841537, -0.20599019527435303, -0.30761808156967163, 0.30949851870536804, 0.26331761479377747, -0.23118798434734344, 0.31692594289779663, -0.04262124001979828, -0.4357661306858063, -0.08002043515443802, 0.054527584463357925, -0.4018242359161377, 0.1878303736448288, 0.2154850959777832, -0.3859374523162842, 0.07140041142702103, 0.06791172176599503, 0.31814342737197876, 0.5279531478881836, -0.03495301678776741, 0.08301465213298798, -0.020024126395583153, 0.04619888588786125, -0.08837645500898361, 0.03247392177581787, 0.009427383542060852, 0.36874163150787354, 0.3623323142528534, 0.04028783738613129, 0.007596858777105808, 0.030988097190856934, -0.012663597241044044, 0.044346652925014496, 0.2275385856628418, 0.09970000386238098, -0.0816250592470169, -0.3373408019542694, -0.36659523844718933, -0.29370251297950745, 0.08409580588340759, -0.1389686018228531, -0.13927413523197174, -0.24447084963321686, 0.3963298201560974, -0.0007334165275096893, 0.1874353438615799, -0.1015489250421524, 0.6627660989761353, -0.00023986957967281342, -0.1995207816362381, -0.04090991988778114, -0.3001282811164856, 0.03882132098078728, 0.02156325802206993, 0.0749448910355568, -0.20640979707241058, 0.27232280373573303, 0.22891199588775635, -0.02368108555674553, -0.31660136580467224, 0.14906653761863708, 0.3100157380104065, 0.28647226095199585, -0.12983360886573792, 0.19140854477882385, 0.21947205066680908, -0.012923069298267365, -0.07648303359746933, 0.07218607515096664, -0.2953277826309204, -0.17267687618732452, -0.010217181406915188, 0.04100159928202629, 0.34070342779159546, 0.07397548854351044, 0.11087176203727722, -0.5640013813972473, -0.2688879072666168, -0.08095619082450867, -0.11323602497577667, -0.0007074140012264252, 0.053045324981212616, -0.14445307850837708, 0.3809373378753662, -0.15530841052532196, -0.2682921290397644, -0.10205122828483582, -0.5216469764709473, 0.28093859553337097, -0.19746439158916473, 0.014138391241431236, -0.28463295102119446, -0.11355424672365189, 0.1881406605243683, 0.3258928656578064, -0.6616243124008179, -0.08509965240955353, -0.05748993158340454, 0.31352749466896057, -0.3410375714302063, 0.1791536808013916, 0.2063176929950714, 0.13009822368621826, 0.08137306571006775, 0.11869429796934128, 0.22520986199378967, -0.12549108266830444, 0.1406625360250473, 0.1930604875087738, -0.16847354173660278, -0.15076133608818054, 0.08600170910358429, 0.8648861050605774, -0.04490964487195015, -0.2899830937385559, 0.045727964490652084, 0.2931925356388092, -0.08531084656715393, 0.04753681644797325, -0.28071847558021545, -0.023183871060609818, -0.27908357977867126, -0.043328288942575455, 0.001980401575565338, -0.13199815154075623, -0.2796424627304077, -0.10575669258832932, -0.27206137776374817, 0.18421578407287598, -0.3227565586566925, 0.278979629278183, -0.18792131543159485, 0.5010812282562256, -0.23914174735546112, -0.029695775359869003, -0.09085732698440552, 0.017496846616268158, 0.051584288477897644, 0.30211323499679565, 0.3496263027191162, 0.017474772408604622, -0.11393359303474426, 0.09709231555461884, -0.05071454495191574, 0.03335990756750107, 0.18881306052207947, 0.15296731889247894, 0.35878464579582214, -0.07197573781013489, -0.22080345451831818, 0.4587816894054413, 0.40999579429626465, 0.06112286448478699, -0.19187107682228088, 0.06403137743473053, -0.2178732454776764, 0.09168940037488937, -0.1427300125360489, -0.082630455493927, 0.26859942078590393, -0.014680586755275726, 0.5193545818328857, 0.08678706735372543, 0.01742582954466343, 0.09770362079143524, 0.16877838969230652, -0.3459388017654419, -0.37494799494743347, 0.09362159669399261, 0.16752973198890686, -0.3007110059261322, 0.0208599790930748, -0.2486344575881958, -0.31575286388397217, -0.21137084066867828, 0.003959354013204575, -0.27935582399368286, 0.18179577589035034, -0.18559379875659943, -0.02499455213546753, -0.13352015614509583, 0.030003536492586136, 0.19558294117450714, 0.36857831478118896, -0.04940777271986008, 0.3802832067012787, 0.16998940706253052, -0.17463918030261993, 0.04293408989906311, 0.13816839456558228, 0.16456399857997894, 0.5073809027671814, 0.011938363313674927, -0.021770156919956207, 0.526231050491333, 0.13401204347610474, 0.038758065551519394, -0.3565841317176819, 0.0731915831565857, -0.03568171709775925, 0.21183401346206665, -0.3137090802192688, -0.6523451805114746, 0.521786093711853, -0.10489362478256226, 0.030380062758922577, 0.19016897678375244, -0.29920023679733276, -0.047598697245121, -0.14626966416835785, 0.2613740563392639, 0.7670556902885437, -0.041434720158576965, 0.4633290767669678, -0.04576844722032547, 0.33393967151641846, 0.7980524897575378, -0.0052286311984062195, 0.059217579662799835, -0.06591371446847916, -0.2716158628463745, -0.1486363559961319, -0.25422537326812744, 0.1527891606092453, 0.022700075060129166, -0.27504754066467285, 0.31438717246055603, 0.28075945377349854, -0.10969822108745575, 0.13712482154369354, 0.13135658204555511, -0.004721952602267265, -0.37595516443252563, 0.19052715599536896, 0.06922858953475952, -0.3317403793334961, 0.0708848237991333, -0.1550580859184265, 0.020167049020528793, 0.21332934498786926, 0.48161637783050537, -0.29901906847953796, -0.10030853003263474, -0.3647087514400482, 0.20529460906982422, 0.20164541900157928, -0.42079776525497437, 0.145015686750412, 0.09312320500612259, 0.006162330508232117, -0.04940248653292656, -0.04100378602743149, -0.07141071557998657, -0.0203891322016716, 0.2068118155002594, 0.09404480457305908, -0.19423282146453857, 0.8350344896316528, 0.14607557654380798, 0.0032237544655799866, 0.16499483585357666, 0.04430650919675827, -0.6110480427742004, -0.039137840270996094, -0.009451031684875488, 0.14750882983207703, -0.060870472341775894, -0.18536065518856049, 0.170482337474823, -0.00023422017693519592, -0.29075589776039124, 0.002966158092021942, 0.32772552967071533, 0.14005881547927856, 0.19967049360275269, 0.04878547787666321, 0.0893898606300354, -0.021242152899503708, 0.26077377796173096, 0.14132311940193176, 0.004898082464933395, 0.42697885632514954, 0.3118581175804138, -0.08934032171964645, -0.04612821340560913, 0.06716809421777725, 0.26050877571105957, -0.13318073749542236, 0.051047779619693756, -0.19668187201023102, 0.21853362023830414, -0.11685914546251297, -0.10481861233711243, 0.10146893560886383, -0.15971475839614868, -0.41648969054222107, -0.18904855847358704, -0.7442406415939331, 0.11872927099466324, 0.30593276023864746, 0.2796558141708374, 0.002804681658744812, 0.23092153668403625, -0.15301455557346344, 0.18707560002803802, -0.19228149950504303, 0.025899510830640793, 0.0082064438611269, 0.11156731098890305, 0.1385250687599182, -0.00448816642165184, -0.09901463240385056, -0.21481099724769592, -0.17083695530891418, 0.35854166746139526, 0.17263339459896088, -0.17186513543128967, -0.2699976861476898, 0.2010500580072403, 0.20177870988845825, 0.08677598834037781, -0.0428440161049366, -0.31480252742767334, 0.25112617015838623, -0.1061791479587555, -0.060977354645729065, -0.07400918006896973, 0.06036818027496338, 0.48035040497779846, 0.40679141879081726, 0.12098239362239838, -0.07140380144119263, 0.32090771198272705, -0.25188112258911133, 0.011031165719032288, -0.10757896304130554, 0.17542846500873566, 0.05049863085150719, -0.11080587655305862, -0.3006744682788849, 0.07146338373422623, 0.42212778329849243, 0.021743852645158768, 0.3943087160587311, -0.09346424043178558, -0.3294249475002289, -0.3555033504962921, 0.38169795274734497, 0.1159689873456955, -0.09316603094339371, -0.007102121599018574, 0.5305142402648926, 0.060956597328186035, -0.18937838077545166, -0.03447560593485832, -0.039585307240486145, -0.09016948938369751, 0.01978641375899315, 0.11052796989679337, -0.2345186471939087, 0.312359094619751, -0.16669130325317383, 0.04956834763288498, -0.10980004817247391, -0.079257071018219, 0.03499334305524826, 0.12782377004623413, 0.1315051019191742, -0.22633205354213715, 0.3758833706378937, 0.4414253532886505, 0.08416447788476944, -0.2308921068906784, 0.28641241788864136, 0.44724270701408386, 0.16610682010650635, -0.18015427887439728, 0.24566099047660828, -0.48290354013442993, -0.07388874888420105, 0.14707139134407043, -0.09584839642047882, 0.2750873863697052, 0.05502753704786301, 0.25364950299263, -0.057076308876276016, -0.18168829381465912, 0.22953930497169495, 0.29798948764801025, -0.18761029839515686, 0.05173662677407265, -0.012999823316931725, -0.20511147379875183, 0.17266713082790375, 0.00029467418789863586, 0.02478991448879242, -0.20295609533786774, 0.14423173666000366, 0.15141841769218445, -0.10219281911849976, -0.23429782688617706, -0.05132882297039032, 0.2772415280342102, 0.17807868123054504, -0.11931760609149933, -0.32932624220848083, 0.086249440908432, -0.005852796137332916, -0.26680219173431396, 0.25370872020721436, -0.157192200422287, 0.12933693826198578, -0.3224329650402069, 0.5156919360160828, 0.03881841152906418, -0.03410289064049721, -0.19061176478862762, -0.08032455295324326, 0.0998835638165474, -0.40945950150489807, 0.3268403112888336, 0.06918882578611374, -0.08553590625524521, 0.26607978343963623, 0.056045688688755035, -0.047786276787519455, -0.39291441440582275, 0.13409733772277832, 0.40345272421836853, -0.34043654799461365, -0.002744469791650772, 0.25931239128112793, -0.4328621029853821, -0.01649356260895729, 0.43968892097473145, -0.30092543363571167, 0.19765567779541016, 0.022437259554862976, 0.04706636816263199, -0.16325819492340088, 0.4067613184452057, 0.534899890422821, 0.32502368092536926, -0.2166345715522766, 0.027785755693912506, -0.4834621548652649, -0.1592867076396942, -0.045623209327459335, -0.08259741216897964, 0.010641993023455143, 0.005922166630625725, 0.2821075916290283, 0.22263672947883606, 0.07265833020210266, -0.18433713912963867, 0.18184472620487213, 0.13259220123291016, -0.26748573780059814, -0.5410290956497192, 0.12661287188529968, 0.0030562933534383774, 0.004863802343606949, -0.0944407656788826, 0.35260912775993347, 0.13122066855430603, -0.029905030503869057, -0.1414046585559845, 0.02781812846660614, 0.13781286776065826, 0.21467098593711853, 0.5708366632461548, -0.12176814675331116, 0.03052140772342682, -0.03291016444563866, -0.13080202043056488, 0.10201746970415115, 0.052416130900382996, -0.058609213680028915, -0.2591634690761566, -0.08264675736427307, 0.3503008186817169, -0.13747622072696686, -0.21693257987499237, -0.4685947299003601, 0.0007938831113278866, -0.03628392517566681, -0.12927870452404022, -0.5159583687782288, -0.16441622376441956, -0.08433280885219574, -0.0017790512647479773, 0.16444545984268188, 0.4161091446876526, -0.15940013527870178, 0.20940953493118286, -0.3400346040725708, 0.07151685655117035, 0.2864789664745331, -0.4670373499393463, 0.048710089176893234, -0.29612240195274353, -0.10159377753734589, 0.15527012944221497, 0.30295905470848083, -0.616847813129425, -0.1200592890381813, 0.4133969247341156, -0.2981642186641693, -0.03012796863913536, 0.32990288734436035, 0.16601967811584473, 0.24488084018230438, -0.15021510422229767, 0.41002267599105835, -0.02588929608464241, -0.1859685480594635, -0.11019505560398102, -0.24666370451450348 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
Your outline spec is very sound and clear, @lhoestq - thank you! @thomasw21, indeed that would be a wonderful extra feature. In Megatron-Deepspeed we manually drained the dataloader for the range we wanted. I wasn't very satisfied with the way we did it, since its behavior would change if you were to do multiple range skips. I think it should remember all the ranges it skipped and not just skip the last range - since otherwise the data is inconsistent (but we probably should discuss this in a separate issue not to derail this much bigger one).
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
97
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger Your outline spec is very sound and clear, @lhoestq - thank you! @thomasw21, indeed that would be a wonderful extra feature. In Megatron-Deepspeed we manually drained the dataloader for the range we wanted. I wasn't very satisfied with the way we did it, since its behavior would change if you were to do multiple range skips. I think it should remember all the ranges it skipped and not just skip the last range - since otherwise the data is inconsistent (but we probably should discuss this in a separate issue not to derail this much bigger one).
[ -0.5778516530990601, 0.0768948346376419, 0.050096508115530014, -0.0014432072639465332, -0.0413532555103302, -0.0676606148481369, 0.29712575674057007, 0.07434342801570892, -0.04055047407746315, 0.17337970435619354, -0.225978821516037, 0.28644588589668274, -0.34364551305770874, 0.372019499540329, 0.1876794695854187, -0.2116844356060028, -0.31165456771850586, 0.2867816388607025, -0.3036096394062042, 0.31596165895462036, -0.00024202466011047363, -0.38110560178756714, 0.022269748151302338, -0.30104827880859375, -0.30479303002357483, 0.13891950249671936, 0.0026131365448236465, 0.17227333784103394, 0.2578980326652527, -0.4903676509857178, 0.43155136704444885, 0.06678884476423264, 0.4818021059036255, 0.14445078372955322, -0.0001204240761580877, -0.020923539996147156, 0.20898662507534027, -0.09818083792924881, -0.5336378812789917, -0.07865892350673676, -0.09939390420913696, -0.17583712935447693, 0.14771996438503265, -0.14305312931537628, 0.011150874197483063, -0.17340309917926788, 0.07967549562454224, -0.28606998920440674, 0.30232229828834534, 0.01905263587832451, 0.056622762233018875, 0.46067681908607483, -0.42837488651275635, -0.038608767092227936, 0.12404277920722961, 0.09434954822063446, -0.0785902813076973, 0.23679828643798828, 0.48681649565696716, 0.014349082484841347, -0.3490585386753082, 0.18332885205745697, 0.01000932790338993, 0.008149266242980957, 0.13782046735286713, -0.16892534494400024, -0.048159681260585785, -0.04976161569356918, -0.1839834451675415, 0.2801657021045685, 0.5866783261299133, -0.2689806818962097, -0.16978099942207336, -0.5665906071662903, 0.16925422847270966, -0.5172714591026306, -0.08594042807817459, -0.1693844348192215, -0.19053173065185547, 0.05813886225223541, -0.17791962623596191, -0.04135466367006302, -0.2640698552131653, 0.09893528372049332, -0.17903035879135132, 0.1328883022069931, -0.02129354327917099, 0.053935110569000244, 0.16169771552085876, 0.39062803983688354, 0.4376324713230133, -0.03807496652007103, 0.47955721616744995, 0.19423171877861023, -0.4192449748516083, -0.2555808126926422, -0.10893142968416214, -0.18239128589630127, 0.021429050713777542, 0.40353918075561523, 0.46608462929725647, 0.04411538690328598, -0.1244940310716629, 0.175890251994133, 0.4045294523239136, -0.13311399519443512, 0.23857814073562622, -0.1387687772512436, 0.21046139299869537, 0.2455928474664688, 0.0514356829226017, -0.003276936709880829, 0.09333924949169159, 0.12712225317955017, 0.6005150675773621, 0.15301448106765747, 0.049119964241981506, 0.21914559602737427, -0.012253087013959885, 0.2968936860561371, -0.1912418007850647, -0.2342989146709442, 0.18231439590454102, -0.043076202273368835, -0.02701069414615631, 0.32346290349960327, -0.11154735833406448, -0.19182245433330536, 0.014072785153985023, -0.4752807915210724, -0.10431193560361862, -0.2212931215763092, -0.2000114917755127, 0.3954406976699829, 0.35092809796333313, -0.0973396897315979, 0.17427590489387512, -0.11191698163747787, 0.021126940846443176, 0.25957226753234863, 0.42164984345436096, -0.018997546285390854, 0.12272252142429352, 0.23799166083335876, -0.2716948688030243, -0.012117406353354454, 0.029572688043117523, 0.20819346606731415, -0.2227727770805359, 0.4692402482032776, -0.12500205636024475, -0.27615848183631897, 0.19398921728134155, 0.06012267246842384, -0.05451193079352379, -0.019845206290483475, -0.4984128773212433, 0.08460456132888794, 0.06113068014383316, -0.1280660182237625, 0.42841193079948425, -0.2832801342010498, -0.31416481733322144, -0.21355994045734406, 0.231736958026886, 0.0488162636756897, -0.5658494234085083, -0.5091549158096313, -0.17579838633537292, -0.15531125664710999, 0.05858689546585083, 0.010938644409179688, -0.5369118452072144, 0.5563582181930542, -0.2080320566892624, 0.15703004598617554, 0.44057902693748474, 0.06875231862068176, -0.37412407994270325, -0.08520346879959106, -0.02450619637966156, 0.2942265272140503, -0.1867639422416687, 0.31137925386428833, 0.4138765335083008, -0.08675140887498856, 0.07398998737335205, 0.3278263807296753, -0.24513116478919983, -0.19415342807769775, -0.0021535642445087433, -0.08365307748317719, 0.5333788394927979, 0.6486527919769287, 0.3380649983882904, -0.10111341625452042, 0.08037034422159195, 0.14314903318881989, 0.3100714087486267, 0.18304166197776794, 0.2693106234073639, 0.17524302005767822, -0.27315235137939453, -0.018538646399974823, -0.06608881056308746, -0.590774655342102, -0.3002117872238159, 0.3490740656852722, -0.1569647341966629, -0.4046615958213806, 0.3608217239379883, 0.04678042232990265, 0.14399540424346924, 0.008178509771823883, -0.2442498356103897, -0.30093857645988464, 0.01045798510313034, 0.12612773478031158, -0.19011570513248444, 0.006632868200540543, -0.39016351103782654, 0.1460319608449936, -0.3934684097766876, -0.014731641858816147, -0.3640125095844269, 0.4309820532798767, 0.3150941729545593, 0.011759191751480103, -0.49688610434532166, 0.040212418884038925, -0.16106000542640686, -0.05475702881813049, 0.0605008639395237, 0.3511633574962616, 0.15128152072429657, 0.1621289700269699, -0.20434129238128662, 0.19063080847263336, 0.1615225374698639, -0.0032862015068531036, -0.00361461378633976, 0.07318716496229172, -0.12402714788913727, -0.34299275279045105, -0.06583451479673386, 0.3593132793903351, -0.20926158130168915, 0.20391562581062317, 0.07013003528118134, -0.20260240137577057, -0.015496297739446163, -0.19270752370357513, -0.5556289553642273, 0.3646712899208069, 0.16540393233299255, -0.11014164984226227, 0.1996919959783554, 0.042454756796360016, -0.2879416346549988, 0.015252351760864258, 0.12077508866786957, -0.39755573868751526, 0.10873845219612122, 0.19748395681381226, -0.34236857295036316, 0.024333123117685318, 0.13033556938171387, 0.38987916707992554, 0.5564315915107727, 0.015579850412905216, 0.16513857245445251, -0.08225937932729721, -0.009215298108756542, -0.0022971415892243385, 0.05818690359592438, 0.09198357164859772, 0.42867693305015564, 0.3286507725715637, -0.027917833998799324, -0.04694657400250435, -0.05587019398808479, -0.09752610325813293, 0.11622462421655655, 0.016839003190398216, 0.09670579433441162, -0.036145277321338654, -0.20362716913223267, -0.23252224922180176, -0.21288253366947174, 0.06318814307451248, -0.08731307089328766, -0.041923992335796356, -0.20456267893314362, 0.33453699946403503, -0.07277591526508331, 0.23936870694160461, -0.2216993123292923, 0.5808360576629639, 0.06628625839948654, -0.23586757481098175, 0.04642539471387863, -0.22314520180225372, 0.2215403914451599, 0.057761918753385544, -0.09667086601257324, -0.23311370611190796, 0.22402071952819824, 0.28445225954055786, -0.1293969750404358, -0.3769077658653259, 0.18450385332107544, 0.4210648834705353, 0.19401048123836517, -0.07770080119371414, 0.16324524581432343, 0.3447893261909485, 0.01500113308429718, 0.05950017273426056, 0.11631806194782257, -0.29741594195365906, -0.1185104250907898, 0.06798885762691498, 0.16251277923583984, 0.42222920060157776, 0.07579708099365234, 0.1176801472902298, -0.4286479353904724, -0.2830662131309509, 0.09734377264976501, -0.06359753012657166, -0.00523269921541214, 0.08487601578235626, -0.18599040806293488, 0.280477374792099, -0.012308096513152122, -0.23422861099243164, -0.2036314159631729, -0.451129287481308, 0.28691962361335754, -0.265882670879364, 0.08104149997234344, -0.2670287787914276, -0.1578112691640854, 0.19853267073631287, 0.25873512029647827, -0.5796130895614624, 0.04939243569970131, -0.08760061860084534, 0.2547270357608795, -0.3850744366645813, 0.12526483833789825, 0.44228094816207886, -0.0039754887111485004, 0.07608889043331146, 0.14903226494789124, 0.1337037980556488, -0.07968493551015854, 0.12559589743614197, 0.10458853840827942, -0.011861681938171387, -0.06512285023927689, 0.11471450328826904, 0.7697980999946594, -0.017199382185935974, -0.09696732461452484, 0.1427992880344391, 0.18877846002578735, 0.07623408734798431, -0.06756675988435745, -0.21711643040180206, 0.038106177002191544, -0.30305054783821106, -0.14340141415596008, 0.08515578508377075, -0.2167370319366455, -0.17184269428253174, -0.03389892727136612, -0.3417980372905731, 0.257080078125, -0.38709715008735657, 0.2535431385040283, -0.22622010111808777, 0.2734663486480713, -0.19341376423835754, -0.004533220082521439, -0.18601271510124207, 0.10382254421710968, 0.015535937622189522, 0.08848058432340622, 0.326605886220932, 0.015143456868827343, -0.251947820186615, 0.0026479049120098352, -0.10310574620962143, -0.056534528732299805, 0.2616606056690216, 0.13719864189624786, 0.37046343088150024, -0.2398906946182251, -0.28827744722366333, 0.3780192732810974, 0.45746272802352905, 0.019227998331189156, 0.04806312546133995, 0.09636653959751129, -0.28954458236694336, -0.07621102035045624, -0.1484050750732422, -0.04921632632613182, 0.24504394829273224, -0.00031851790845394135, 0.47840720415115356, 0.01155272126197815, 0.07919096201658249, 0.1667555570602417, 0.17744691669940948, -0.3073910176753998, -0.16225944459438324, 0.14247535169124603, 0.07728206366300583, -0.3436773717403412, -0.021318309009075165, -0.03888413682579994, -0.21266207098960876, -0.23346936702728271, 0.0008376836776733398, -0.23590503633022308, 0.03102635219693184, -0.1812848299741745, -0.04834313318133354, -0.012403154745697975, -0.006250264123082161, 0.2703094184398651, 0.28294575214385986, -0.1588580459356308, 0.39652544260025024, 0.3201400339603424, -0.12299440801143646, -0.03399740159511566, 0.292967826128006, 0.1366630643606186, 0.4934650659561157, 0.08174959570169449, -0.033326953649520874, 0.4072933793067932, 0.10206160694360733, 0.12121769785881042, -0.35867390036582947, 0.09706739336252213, -0.13825714588165283, 0.09303274005651474, -0.1956270933151245, -0.5901327133178711, 0.5396975874900818, -0.1548636108636856, 0.007240578532218933, 0.27859193086624146, -0.2745444178581238, -0.04474862664937973, -0.015599873848259449, 0.1686394363641739, 0.812271237373352, -0.017530277371406555, 0.47533053159713745, -0.12601348757743835, 0.3672381043434143, 0.7095495462417603, -0.0757826566696167, 0.15172268450260162, -0.046693600714206696, -0.40188801288604736, -0.17127828299999237, -0.20925527811050415, 0.006648954004049301, 0.051716532558202744, -0.16260556876659393, 0.2211167961359024, 0.3736867308616638, 0.10427634418010712, 0.14923076331615448, -0.02722729742527008, -0.0762149840593338, -0.43446940183639526, 0.1405477523803711, 0.07788468897342682, -0.26120495796203613, -0.06947095692157745, -0.15648114681243896, 0.0789894387125969, 0.264774352312088, 0.39398133754730225, -0.32598018646240234, -0.08483092486858368, -0.47309017181396484, 0.09108061343431473, 0.08985018730163574, -0.3794717788696289, 0.08698573708534241, 0.1873614341020584, 0.019915442913770676, -0.10318517684936523, -0.09394056349992752, 0.07971172034740448, -0.021855436265468597, 0.14014454185962677, -0.01936497539281845, -0.24219633638858795, 0.6762987375259399, 0.11278661340475082, -0.08685681223869324, 0.20174279808998108, -0.02145138382911682, -0.7149680256843567, -0.026458851993083954, 0.08435321599245071, 0.20221930742263794, -0.10145807266235352, -0.06373922526836395, 0.06536242365837097, -0.02667166478931904, -0.30493441224098206, 0.01172567903995514, 0.2551259994506836, 0.009727568365633488, 0.16106802225112915, -0.0741954892873764, 0.08539538085460663, -0.05584252253174782, 0.3482799828052521, 0.20691943168640137, 0.2315099537372589, 0.44609516859054565, 0.2559376358985901, -0.07075466215610504, -0.04027999937534332, 0.2005993127822876, 0.2996542751789093, -0.11710859835147858, 0.13541972637176514, -0.20392894744873047, 0.18538330495357513, -0.15259996056556702, -0.019397389143705368, 0.09519067406654358, -0.08699791878461838, -0.3721580505371094, -0.23506008088588715, -0.5924988985061646, 0.0025573819875717163, 0.20273758471012115, 0.4339011013507843, 0.16328319907188416, 0.23533675074577332, -0.13030843436717987, 0.06221071630716324, -0.24409770965576172, 0.03594743460416794, -0.01652117632329464, 0.11390143632888794, 0.042505569756031036, -0.09692724794149399, -0.03360770642757416, -0.23362424969673157, -0.16813164949417114, 0.4587027430534363, 0.1306379735469818, -0.1764473021030426, -0.2727851867675781, 0.18120025098323822, 0.20224034786224365, 0.027125922963023186, -0.08216634392738342, -0.14440779387950897, 0.158298060297966, -0.17905692756175995, 0.02230023592710495, -0.03943675756454468, 0.06685736030340195, 0.2929041087627411, 0.4797933101654053, -0.04415439814329147, -0.2351008802652359, 0.19953596591949463, -0.13029198348522186, 0.21975219249725342, -0.1254451423883438, 0.2713025212287903, -0.07178293168544769, -0.10104423016309738, -0.2972716987133026, 0.11989155411720276, 0.4643985629081726, -0.11714483052492142, 0.34523633122444153, -0.15582144260406494, -0.41375434398651123, -0.3976931869983673, 0.5872534513473511, 0.09060579538345337, -0.16214969754219055, 0.0035805590450763702, 0.29946860671043396, 0.08587969094514847, -0.1900276243686676, -0.10028944909572601, -0.025581374764442444, -0.19095490872859955, 0.14560650289058685, 0.25223150849342346, -0.12916335463523865, 0.21561074256896973, 0.005221538245677948, -0.010367155075073242, -0.0766357034444809, -0.062172651290893555, 0.11450879275798798, 0.3270147740840912, 0.124808669090271, -0.24267707765102386, 0.35051605105400085, 0.5006682276725769, 0.27434614300727844, -0.10002006590366364, 0.22543561458587646, 0.45411840081214905, 0.13661885261535645, -0.18557778000831604, 0.04000364616513252, -0.606633722782135, -0.020845603197813034, 0.15125104784965515, -0.2559875249862671, 0.27735036611557007, 0.026348792016506195, 0.08908600360155106, -0.035085368901491165, -0.1814732849597931, -0.06520053744316101, 0.2408580482006073, -0.1635146141052246, 0.0060354191809892654, -0.1451646238565445, -0.3313576281070709, 0.10812568664550781, 0.007202941924333572, 0.06607933342456818, -0.22301475703716278, 0.2532346844673157, 0.0754549503326416, -0.1010066568851471, -0.024111086502671242, 0.01874849572777748, 0.16106486320495605, 0.08543185889720917, -0.19483515620231628, -0.25765398144721985, 0.2923539876937866, -0.10302303731441498, -0.2194385528564453, 0.22061030566692352, -0.13533872365951538, -0.01186094805598259, -0.28524962067604065, 0.5435397028923035, 0.1840381622314453, -0.07809651643037796, -0.18663805723190308, -0.14538586139678955, 0.06704884767532349, -0.38497960567474365, 0.4861331880092621, 0.11079435050487518, -0.08508097380399704, 0.23840585350990295, 0.132368803024292, 0.06514070928096771, -0.5881907343864441, 0.10103368014097214, 0.417340487241745, -0.22097599506378174, -0.054548248648643494, 0.11220993101596832, -0.4597564935684204, -0.20323598384857178, 0.4593268036842346, -0.40591150522232056, 0.2409673035144806, 0.02746371552348137, 0.06642784178256989, -0.1776566356420517, 0.3995096683502197, 0.4466901123523712, 0.07872217148542404, -0.252130925655365, 0.04676726460456848, -0.3866259455680847, -0.22647416591644287, -0.13102956116199493, -0.06336425989866257, 0.22598877549171448, 0.07709470391273499, 0.29056501388549805, 0.3356401324272156, 0.19124048948287964, -0.1391139030456543, 0.11503996700048447, 0.20861022174358368, -0.29543599486351013, -0.46287256479263306, 0.23586571216583252, 0.07639820128679276, -0.03800949081778526, -0.15509842336177826, 0.3286783993244171, 0.09408029168844223, 0.007581248879432678, 0.08346334099769592, 0.0548083558678627, 0.14209476113319397, 0.011245794594287872, 0.4615268409252167, -0.10276324301958084, -0.10810771584510803, -0.059587590396404266, -0.09690255671739578, 0.151292085647583, 0.2019425332546234, -0.07382799685001373, -0.32480302453041077, -0.16736449301242828, 0.4599466621875763, -0.1946212500333786, -0.25894954800605774, -0.5032961368560791, -0.13374063372612, 0.023249201476573944, -0.12903718650341034, -0.36464112997055054, 0.036561883985996246, -0.24085435271263123, 0.194435253739357, 0.17579130828380585, 0.4236466586589813, -0.17432604730129242, 0.30904722213745117, -0.26127564907073975, -0.025139344856142998, 0.3306782841682434, -0.3918350040912628, -0.08701196312904358, -0.3272746205329895, -0.07840010523796082, 0.027321387082338333, 0.37938448786735535, -0.5523053407669067, 0.018329083919525146, 0.3474169075489044, -0.14173570275306702, -0.17477309703826904, 0.20813529193401337, -0.09012471139431, 0.1385708451271057, -0.1888066828250885, 0.4270457327365875, 0.0828842893242836, -0.162584125995636, -0.2345794141292572, -0.2750301957130432 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
Hi there! I think this is a critical issue and have an urgent need for it, in my attempt to train on a super large-scale dataset using `datasets`. It is impossible to resume a time-consuming (like one month) experiment by iterating all seen data again, which could possibly cost several days. @stas00 @thomasw21 @lhoestq Any updates on this problem after 1 year passed?
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
63
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger Hi there! I think this is a critical issue and have an urgent need for it, in my attempt to train on a super large-scale dataset using `datasets`. It is impossible to resume a time-consuming (like one month) experiment by iterating all seen data again, which could possibly cost several days. @stas00 @thomasw21 @lhoestq Any updates on this problem after 1 year passed?
[ -0.5742830038070679, 0.283465713262558, -0.016857344657182693, 0.12780483067035675, -0.015207722783088684, -0.1207970380783081, 0.22534172236919403, 0.06700689345598221, 0.05465058609843254, 0.053413815796375275, -0.08971792459487915, 0.1891605406999588, -0.3139471709728241, 0.20049944519996643, 0.056318264454603195, -0.14710794389247894, -0.20751073956489563, 0.2815706133842468, -0.2517389953136444, 0.30323028564453125, 0.1750829964876175, -0.29973071813583374, -0.0896373763680458, -0.21986745297908783, -0.2943253815174103, 0.059949927031993866, -0.08039791136980057, 0.055120643228292465, 0.08685846626758575, -0.3997371196746826, 0.5168622136116028, 0.13239024579524994, 0.4509475827217102, 0.3177112638950348, -0.00012464744213502854, -0.034499552100896835, 0.22700779139995575, -0.03302309662103653, -0.4823993444442749, -0.1735207587480545, -0.12073381245136261, -0.3448212444782257, 0.17990851402282715, -0.16926975548267365, 0.14118337631225586, -0.432869017124176, 0.13713622093200684, -0.2707443833351135, 0.27291202545166016, 0.0036941608414053917, 0.005513906478881836, 0.3753833472728729, -0.22401930391788483, 0.03867029771208763, -0.01694941520690918, 0.3151644170284271, 0.000008473172783851624, 0.36689767241477966, 0.5118349194526672, -0.13869518041610718, -0.2821061611175537, 0.026135088875889778, -0.09514572471380234, -0.08219829201698303, -0.09279147535562515, -0.18773069977760315, -0.1496678590774536, 0.00434340164065361, -0.11135783046483994, 0.12142538279294968, 0.7453390955924988, -0.2634294331073761, -0.2046462446451187, -0.48028436303138733, 0.2871549725532532, -0.1916791945695877, -0.026226632297039032, -0.20394885540008545, -0.20674379169940948, -0.00804157555103302, -0.0994228720664978, -0.36774420738220215, -0.22407810389995575, 0.1762576401233673, -0.16381457448005676, -0.02414718270301819, -0.020616695284843445, 0.05752726271748543, 0.16224552690982819, 0.27167898416519165, 0.6240886449813843, -0.08234589546918869, 0.43319493532180786, 0.2502663731575012, -0.5107806921005249, -0.18429306149482727, -0.10593780130147934, -0.23806214332580566, 0.0006975475698709488, 0.2458166629076004, 0.3591500520706177, -0.01401573047041893, -0.11031308025121689, 0.14918431639671326, 0.3915829062461853, 0.04859135299921036, 0.30243900418281555, 0.03671901300549507, 0.2855886220932007, 0.1935824155807495, -0.14757518470287323, -0.014967408031225204, -0.0980297103524208, 0.03963407129049301, 0.7121730446815491, 0.10866659134626389, 0.1126730889081955, 0.0615815632045269, 0.08547186851501465, 0.2582382261753082, -0.27186867594718933, -0.19399115443229675, 0.18972881138324738, -0.05192989856004715, -0.03950202465057373, 0.4138646125793457, 0.030074231326580048, -0.25842833518981934, 0.031001506373286247, -0.4171101748943329, -0.045807044953107834, -0.2699265778064728, -0.20022766292095184, 0.42837661504745483, 0.31307414174079895, -0.4397227168083191, 0.09203185141086578, -0.019590195268392563, 0.02080346643924713, 0.14444230496883392, 0.3065405786037445, 0.0005183126777410507, 0.07285012304782867, 0.19639089703559875, -0.20454084873199463, 0.07143796980381012, 0.059699833393096924, 0.13806726038455963, -0.12656274437904358, 0.4629776179790497, -0.23238077759742737, -0.33203575015068054, -0.019385384395718575, 0.03749534487724304, -0.0874311774969101, -0.026943840086460114, -0.5022692084312439, 0.018233731389045715, 0.1142139807343483, -0.12590698897838593, 0.3278498351573944, -0.2694326639175415, -0.06785988062620163, -0.2545563578605652, 0.13066035509109497, 0.051182590425014496, -0.5268480777740479, -0.36470985412597656, -0.03256997838616371, -0.248419851064682, 0.0558219775557518, 0.1643732637166977, -0.4681367576122284, 0.4853402078151703, -0.1328391432762146, -0.07159267365932465, 0.3262416124343872, 0.009729120880365372, -0.5028596520423889, 0.042313117533922195, 0.05678105354309082, 0.17309989035129547, -0.2575729489326477, 0.35335132479667664, 0.34792301058769226, -0.0449252612888813, -0.1620173156261444, 0.31639623641967773, -0.2299644947052002, -0.1252283900976181, 0.02143198624253273, -0.11242230236530304, 0.4763455390930176, 0.6270949244499207, 0.32218241691589355, -0.009311966598033905, 0.059343740344047546, 0.13952243328094482, 0.21620136499404907, 0.12769360840320587, 0.2082219272851944, 0.10251490026712418, -0.07250472903251648, 0.11771658807992935, 0.018006203696131706, -0.4892995357513428, -0.4916341304779053, 0.21941697597503662, -0.031254809349775314, -0.50950026512146, 0.36744266748428345, 0.059126853942871094, 0.2295556366443634, 0.09942381829023361, -0.3083203434944153, -0.12457732856273651, -0.05266378074884415, 0.06768951565027237, -0.09986002743244171, 0.03450486436486244, -0.42481938004493713, 0.30196359753608704, -0.43973594903945923, 0.034589704126119614, -0.2944156527519226, 0.44321972131729126, 0.34091076254844666, -0.08940542489290237, -0.28617504239082336, 0.021585475653409958, -0.13692495226860046, -0.1000945046544075, 0.08711784332990646, 0.27276375889778137, 0.03018806129693985, 0.32255399227142334, -0.07205045968294144, 0.05354927480220795, -0.022739635780453682, 0.10741227865219116, -0.016167035326361656, 0.058710914105176926, -0.08582878857851028, -0.3767566978931427, 0.03361044079065323, 0.3133871257305145, -0.13175803422927856, 0.21446970105171204, 0.0591593012213707, -0.10073929280042648, -0.005209168419241905, -0.17846298217773438, -0.4210617244243622, 0.4095306694507599, 0.307169109582901, -0.31996017694473267, 0.23681293427944183, 0.007729453966021538, -0.30944210290908813, -0.08346948772668839, -0.0045493245124816895, -0.38632872700691223, 0.10201828926801682, 0.1526150405406952, -0.3144012987613678, 0.02500060945749283, 0.057706527411937714, 0.23319576680660248, 0.5074184536933899, -0.14109688997268677, 0.10738863050937653, -0.12115687876939774, 0.13992847502231598, 0.005816284567117691, 0.07991878688335419, 0.0237569622695446, 0.44280728697776794, 0.4426676034927368, 0.12712594866752625, -0.08614741265773773, 0.010125622153282166, -0.05585648864507675, 0.05154845118522644, 0.1423725038766861, 0.05316297337412834, -0.010646171867847443, -0.27311620116233826, -0.2345483899116516, -0.1678795963525772, 0.02778986468911171, -0.15105050802230835, -0.1681041717529297, -0.3633296489715576, 0.5099241733551025, 0.14493006467819214, 0.2305942177772522, -0.1576893925666809, 0.4739809036254883, 0.04031931608915329, -0.17636559903621674, 0.0019805356860160828, -0.2897554337978363, 0.10244666785001755, -0.014192814938724041, 0.08188295364379883, -0.2743852436542511, 0.2834519147872925, 0.198324054479599, -0.021712062880396843, -0.47840237617492676, 0.1426832675933838, 0.3839166760444641, 0.29441332817077637, -0.056290075182914734, 0.0894419252872467, 0.2967701256275177, -0.03341124579310417, -0.054680515080690384, 0.09539876133203506, -0.2871387004852295, -0.20634382963180542, 0.07070823758840561, -0.10366102308034897, 0.32477185130119324, 0.16693586111068726, 0.17536906898021698, -0.5235549807548523, -0.15049339830875397, 0.15018978714942932, -0.1089194267988205, 0.028255097568035126, 0.03721444681286812, -0.14412574470043182, 0.27763834595680237, -0.14570708572864532, -0.29182225465774536, -0.1907477229833603, -0.7588640451431274, 0.32501348853111267, -0.1704465001821518, -0.01955397054553032, -0.22863714396953583, -0.03683405742049217, 0.12819404900074005, 0.3589257001876831, -0.5398938655853271, 0.008613239042460918, 0.06631514430046082, 0.233419269323349, -0.2761840224266052, 0.13323093950748444, 0.3049885034561157, -0.020445508882403374, 0.14802105724811554, 0.10331166535615921, 0.22456231713294983, -0.10970800369977951, 0.10471800714731216, 0.31391122937202454, -0.008404240012168884, -0.08076069504022598, 0.1416371762752533, 0.8155657649040222, 0.19763292372226715, -0.1839289367198944, 0.062199465930461884, 0.2222825437784195, 0.033210910856723785, 0.02987280860543251, -0.35460758209228516, -0.0767936259508133, -0.4034816324710846, -0.11162735521793365, -0.0494338721036911, -0.12310399860143661, -0.1977885514497757, -0.09168177098035812, -0.25676870346069336, 0.11328994482755661, -0.4034630060195923, 0.22448430955410004, -0.2144385278224945, 0.5539445877075195, -0.21808938682079315, -0.10746993124485016, -0.09978796541690826, 0.025683701038360596, 0.09679903090000153, 0.3576276898384094, 0.3020983636379242, 0.008551998995244503, -0.32276228070259094, -0.032306428998708725, -0.08939266949892044, -0.06934639811515808, 0.23130446672439575, 0.33205127716064453, 0.3932233452796936, 0.02407754957675934, -0.14781884849071503, 0.359571635723114, 0.4965474009513855, 0.06761492788791656, -0.050334855914115906, 0.07678915560245514, -0.22797326743602753, 0.1326141208410263, -0.16307052969932556, -0.010781299322843552, 0.4309104382991791, 0.00021203234791755676, 0.4686773717403412, 0.07018870860338211, -0.0018310453742742538, 0.13204477727413177, 0.20772381126880646, -0.35860171914100647, -0.4637913107872009, 0.13993661105632782, 0.10329709202051163, -0.27317014336586, -0.022662341594696045, -0.22646886110305786, -0.2417283058166504, -0.12238243222236633, 0.04554245248436928, -0.4516909718513489, 0.16468507051467896, -0.13821063935756683, -0.10197965800762177, -0.10769790410995483, -0.08777745813131332, 0.33937790989875793, 0.3895527720451355, -0.2119748294353485, 0.384714275598526, 0.2523360550403595, -0.0360129289329052, -0.07520721852779388, 0.18626472353935242, 0.1987185776233673, 0.4886763095855713, -0.011671975255012512, -0.14041613042354584, 0.35925936698913574, 0.11006272584199905, 0.026494257152080536, -0.3528824746608734, 0.07363761216402054, -0.023068709298968315, 0.15661971271038055, -0.3738333284854889, -0.6284564137458801, 0.4166531264781952, -0.07826799154281616, -0.002353765070438385, 0.24082008004188538, -0.18511144816875458, 0.05752476304769516, -0.0760221853852272, 0.10425081849098206, 0.7189314365386963, -0.13042356073856354, 0.3834669888019562, -0.017398841679096222, 0.407051146030426, 0.7637438774108887, 0.035266339778900146, 0.03016364760696888, -0.10057555139064789, -0.4222642183303833, -0.13659104704856873, -0.2334143966436386, 0.1022346019744873, 0.032173942774534225, -0.05807262659072876, 0.36715060472488403, 0.3714829683303833, 0.08059297502040863, 0.09617063403129578, 0.057637616991996765, -0.05489718168973923, -0.3423955738544464, 0.2436322718858719, 0.0666818842291832, -0.3229748606681824, 0.07930658012628555, -0.12458990514278412, 0.059239692986011505, 0.2723017632961273, 0.49381595849990845, -0.35596656799316406, -0.057614367455244064, -0.3640783131122589, 0.26802951097488403, 0.22046686708927155, -0.4787658452987671, 0.0663490891456604, 0.13246825337409973, 0.07266347110271454, -0.10176952183246613, -0.036711953580379486, -0.006505373865365982, 0.048143282532691956, 0.10931850969791412, 0.026157572865486145, -0.19623392820358276, 0.7057653069496155, 0.1933136284351349, 0.016132764518260956, 0.08780283480882645, 0.02072761207818985, -0.5865285992622375, -0.023888833820819855, -0.004411138594150543, 0.14264921844005585, -0.10165710002183914, -0.21786560118198395, 0.13223950564861298, 0.09658731520175934, -0.25555017590522766, -0.03250706568360329, 0.42504918575286865, 0.2600512206554413, 0.18828672170639038, -0.15364192426204681, 0.14699283242225647, 0.04310740903019905, 0.3298560380935669, 0.2915531396865845, -0.033138714730739594, 0.4412682354450226, 0.32766762375831604, -0.16136951744556427, 0.007480502128601074, 0.0797966793179512, 0.20442204177379608, -0.14317511022090912, 0.0250106081366539, -0.22438572347164154, 0.33041828870773315, -0.15881098806858063, -0.15767164528369904, 0.08957955241203308, -0.2963930368423462, -0.28841936588287354, -0.31961166858673096, -0.675016462802887, 0.15304842591285706, 0.19559337198734283, 0.2672566771507263, 0.1494521200656891, 0.14267772436141968, -0.17950698733329773, 0.10841689258813858, -0.132420152425766, 0.04828061908483505, 0.0962635800242424, 0.10299743711948395, 0.17882800102233887, 0.004060126841068268, -0.04374485835433006, -0.3452877402305603, -0.17713218927383423, 0.35031658411026, 0.263052761554718, -0.11974543333053589, -0.2634919583797455, 0.21218439936637878, 0.2687819004058838, 0.14944447576999664, 0.01305971946567297, -0.3726399540901184, 0.20900507271289825, -0.11872541904449463, -0.043920326977968216, 0.022956736385822296, 0.1191185861825943, 0.31348809599876404, 0.32382646203041077, 0.00391397625207901, -0.12719109654426575, 0.35581064224243164, -0.15673309564590454, 0.024844437837600708, -0.09098228812217712, 0.2636573910713196, 0.05275542661547661, -0.11476399004459381, -0.41010087728500366, 0.1274363398551941, 0.43898284435272217, -0.059846483170986176, 0.4432515799999237, -0.17467795312404633, -0.263241708278656, -0.273381769657135, 0.49871644377708435, 0.23632964491844177, -0.14977428317070007, 0.08240801095962524, 0.44795137643814087, -0.009896600618958473, -0.1390218436717987, -0.08604996651411057, 0.013301560655236244, -0.0793943852186203, -0.08563591539859772, 0.09442221373319626, -0.2621361017227173, 0.18028032779693604, -0.07228457927703857, 0.008169908076524734, -0.10002090781927109, -0.10740236937999725, 0.025104127824306488, 0.19320887327194214, 0.13317109644412994, -0.2097780555486679, 0.37733936309814453, 0.5786322355270386, 0.027279339730739594, -0.046817079186439514, 0.22253963351249695, 0.4236779808998108, 0.22684726119041443, -0.12898866832256317, 0.18349650502204895, -0.5549022555351257, -0.1498049944639206, 0.06746989488601685, -0.12257499992847443, 0.266429603099823, 0.04925597831606865, 0.24431627988815308, -0.0753195509314537, -0.06472323834896088, 0.0908544585108757, 0.2981110215187073, -0.15034717321395874, 0.00458321999758482, -0.028300143778324127, -0.27455809712409973, 0.20388779044151306, 0.027273762971162796, -0.013726979494094849, -0.3136848211288452, 0.1948336958885193, 0.14067021012306213, -0.05271804332733154, -0.34985145926475525, -0.03708433359861374, 0.2779969573020935, 0.09690871089696884, -0.14646698534488678, -0.2628418803215027, 0.011607050895690918, -0.04952166974544525, -0.3032350540161133, 0.2717704772949219, -0.12369845807552338, 0.0314524881541729, -0.2566068768501282, 0.4756724536418915, -0.050648484379053116, -0.06929586827754974, -0.08418596535921097, -0.10270203649997711, -0.040326640009880066, -0.3665998578071594, 0.3756527006626129, 0.059905074536800385, -0.017735285684466362, 0.17673763632774353, 0.12474505603313446, 0.06424029171466827, -0.4960659444332123, 0.06667767465114594, 0.24174365401268005, -0.25072160363197327, 0.05427553504705429, 0.15138809382915497, -0.391431987285614, -0.22211547195911407, 0.41255050897598267, -0.28496503829956055, 0.23716244101524353, -0.029285192489624023, 0.03989899903535843, -0.17448124289512634, 0.3028678297996521, 0.5144782662391663, 0.17029902338981628, -0.17109525203704834, -0.016177840530872345, -0.529962420463562, -0.16546058654785156, -0.03343851491808891, 0.09037161618471146, 0.1187896654009819, 0.12689636647701263, 0.2768368721008301, 0.26928433775901794, 0.04532817006111145, -0.13616253435611725, 0.1570184826850891, 0.20072369277477264, -0.25291159749031067, -0.46938157081604004, 0.2135685384273529, 0.04557263106107712, 0.03381607308983803, -0.16530026495456696, 0.347453236579895, 0.090260349214077, -0.04288182407617569, -0.02172442153096199, -0.0024897046387195587, 0.11164404451847076, -0.09412282705307007, 0.5001367330551147, -0.13291820883750916, -0.023213468492031097, 0.05068149417638779, -0.08911643922328949, 0.12124854326248169, 0.09966564178466797, -0.007220399100333452, -0.05299481004476547, -0.1307886242866516, 0.36621367931365967, -0.2385062724351883, -0.1600451022386551, -0.34906089305877686, -0.200227752327919, -0.10486261546611786, -0.13341832160949707, -0.582356870174408, -0.10826225578784943, -0.08024558424949646, 0.21662160754203796, 0.16718097031116486, 0.3871851861476898, -0.2665194571018219, 0.33145326375961304, -0.35198789834976196, -0.005522565916180611, 0.2401469647884369, -0.5280497074127197, -0.00538056343793869, -0.14642654359340668, -0.046769410371780396, 0.1874149888753891, 0.25893527269363403, -0.6050841212272644, 0.0005170777440071106, 0.4361311197280884, -0.26942044496536255, 0.032053787261247635, 0.23482480645179749, -0.003963448107242584, 0.3166272044181824, -0.144486665725708, 0.5207571387290955, 0.014048129320144653, -0.27921298146247864, -0.041174717247486115, -0.1491604745388031 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
No update so far, I wonder if someone implemented a resumable pytorch Sampler somwhere. Then regarding resuming a streaming dataset, we'd first like to have an efficient way to skip shards automatically but this is not implemented yet
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
38
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger No update so far, I wonder if someone implemented a resumable pytorch Sampler somwhere. Then regarding resuming a streaming dataset, we'd first like to have an efficient way to skip shards automatically but this is not implemented yet
[ -0.5450518131256104, 0.18089717626571655, 0.018949732184410095, 0.1065579354763031, -0.029838714748620987, -0.19417378306388855, 0.21635083854198456, 0.006563818082213402, 0.03224439173936844, 0.07169640064239502, -0.06208067387342453, 0.20047461986541748, -0.36095231771469116, 0.29628241062164307, 0.07623061537742615, -0.21482542157173157, -0.21304833889007568, 0.2925117313861847, -0.20287755131721497, 0.2732938528060913, 0.21346017718315125, -0.3579082787036896, -0.08270512521266937, -0.26665401458740234, -0.25960469245910645, 0.08110381662845612, -0.04706905037164688, 0.1023472249507904, 0.1247168704867363, -0.2912707030773163, 0.4251003861427307, 0.10160249471664429, 0.3689115345478058, 0.26568955183029175, -0.0001248275802936405, -0.027205921709537506, 0.23432408273220062, -0.0863218680024147, -0.4605538547039032, -0.2272084802389145, -0.1369856297969818, -0.30355557799339294, 0.16760702431201935, -0.12719088792800903, 0.07920327037572861, -0.3935352563858032, 0.15564203262329102, -0.2797704339027405, 0.3022916913032532, -0.00826464593410492, -0.0005478449165821075, 0.3647310733795166, -0.2876186668872833, 0.10297368466854095, 0.00040284544229507446, 0.33230066299438477, 0.0495891273021698, 0.3288274109363556, 0.5132653117179871, -0.10579460859298706, -0.33145734667778015, 0.041783422231674194, -0.1719728410243988, -0.010834753513336182, 0.01520596444606781, -0.21610376238822937, -0.26291903853416443, -0.08259563148021698, -0.10361365228891373, 0.15395094454288483, 0.699681282043457, -0.24749252200126648, -0.14735770225524902, -0.4842739701271057, 0.3042259216308594, -0.20387767255306244, -0.06084100157022476, -0.1471719592809677, -0.20622633397579193, -0.03734830394387245, -0.1787094920873642, -0.33568868041038513, -0.26285290718078613, 0.19475920498371124, -0.14592742919921875, 0.012188412249088287, 0.031011592596769333, 0.06474178284406662, 0.08105017244815826, 0.3095298409461975, 0.5791453719139099, -0.09477485716342926, 0.4664684534072876, 0.2755090892314911, -0.4383254647254944, -0.15808838605880737, -0.1853082776069641, -0.19692513346672058, -0.10135982930660248, 0.31498223543167114, 0.3435898423194885, 0.07879947870969772, -0.0416879877448082, 0.2453991174697876, 0.2785691022872925, -0.004881993867456913, 0.32016995549201965, 0.06183983385562897, 0.26275435090065, 0.16918398439884186, -0.1555723398923874, -0.009730111807584763, -0.04703628271818161, 0.10266628116369247, 0.6232852339744568, 0.14120572805404663, 0.0727202296257019, 0.07505020499229431, 0.10274163633584976, 0.2368379682302475, -0.242662250995636, -0.17832715809345245, 0.17253980040550232, -0.03267848491668701, -0.06966253370046616, 0.3727720379829407, 0.0358591303229332, -0.23303993046283722, 0.016543490812182426, -0.4436544179916382, -0.042069826275110245, -0.28291940689086914, -0.1370270848274231, 0.3970910906791687, 0.34227806329727173, -0.4825543165206909, 0.13130536675453186, -0.009650549851357937, 0.11357811838388443, 0.13184404373168945, 0.42745694518089294, 0.026821449398994446, 0.008485399186611176, 0.17766906321048737, -0.17737290263175964, 0.004005197435617447, 0.11573976278305054, 0.1437859684228897, -0.12338605523109436, 0.47211024165153503, -0.20471292734146118, -0.30548733472824097, 0.0292081106454134, 0.05609920620918274, -0.07109507918357849, -0.07328157871961594, -0.49264660477638245, 0.01616833359003067, 0.10388024151325226, -0.12458306550979614, 0.3434363007545471, -0.270807683467865, -0.05637790262699127, -0.24673888087272644, 0.13614343106746674, -0.06489130854606628, -0.5389710068702698, -0.4781949520111084, -0.0035822815261781216, -0.2690466344356537, 0.17474719882011414, 0.08085669577121735, -0.49234697222709656, 0.3780597448348999, -0.061687737703323364, 0.04651671648025513, 0.37478330731391907, 0.02340744063258171, -0.46188995242118835, 0.03001869097352028, 0.006723381578922272, 0.18150176107883453, -0.20109659433364868, 0.3783203065395355, 0.4808979034423828, 0.009261194616556168, -0.09631714224815369, 0.3992207646369934, -0.1952848732471466, -0.11526137590408325, 0.020978476852178574, -0.13349129259586334, 0.514095664024353, 0.6346362829208374, 0.3665849268436432, -0.0500793382525444, 0.0809185579419136, 0.10894006490707397, 0.1748969554901123, 0.11504373699426651, 0.24975940585136414, 0.05622563883662224, -0.013310622423887253, 0.10898643732070923, -0.054678525775671005, -0.5154455304145813, -0.4526848793029785, 0.2113429605960846, -0.10567630082368851, -0.4700045585632324, 0.34843119978904724, 0.04979415982961655, 0.2529110908508301, 0.02539030648767948, -0.2587161064147949, -0.17497941851615906, -0.04438653215765953, 0.09161324054002762, -0.1921698898077011, -0.03680691868066788, -0.4504289925098419, 0.3191738426685333, -0.48793596029281616, 0.1214413195848465, -0.23943747580051422, 0.5118390321731567, 0.3468564450740814, -0.1377713680267334, -0.3583264648914337, -0.0028717070817947388, -0.12988165020942688, -0.08369962126016617, 0.09741339087486267, 0.31568506360054016, 0.04080517962574959, 0.3759163022041321, -0.05343543738126755, -0.0027170032262802124, -0.03658518195152283, 0.12594230473041534, 0.055918045341968536, 0.03796883672475815, -0.13313822448253632, -0.39619338512420654, 0.005105137825012207, 0.31207275390625, -0.1272730678319931, 0.2275811731815338, 0.03702578693628311, -0.06724434345960617, 0.002065761014819145, -0.1141306459903717, -0.45616406202316284, 0.3786291778087616, 0.36718448996543884, -0.3816157877445221, 0.18020832538604736, 0.08070027083158493, -0.3713868260383606, -0.11784743517637253, 0.007416572421789169, -0.428951621055603, 0.11191491037607193, 0.21475058794021606, -0.3369693160057068, 0.06095863878726959, 0.11516355723142624, 0.32206714153289795, 0.5118846297264099, -0.12278827279806137, 0.11735852062702179, -0.09470561146736145, 0.07845888286828995, -0.021290507167577744, 0.09174744039773941, -0.007233895361423492, 0.32567650079727173, 0.4098946452140808, 0.07685290277004242, -0.10481206327676773, 0.04577891528606415, 0.019661709666252136, 0.07555100321769714, 0.08653664588928223, 0.06952442228794098, -0.020084550604224205, -0.27689704298973083, -0.27987027168273926, -0.22420351207256317, -0.015992719680070877, -0.22269278764724731, -0.1221664547920227, -0.30775779485702515, 0.5012853145599365, 0.11846207082271576, 0.21876968443393707, -0.18070060014724731, 0.47651082277297974, -0.05974775552749634, -0.24619914591312408, 0.06434734910726547, -0.27217233180999756, 0.1611715853214264, 0.008570238947868347, 0.07777395099401474, -0.12268717586994171, 0.28991809487342834, 0.19548596441745758, -0.0074806222692132, -0.4055948853492737, 0.16082820296287537, 0.3933667540550232, 0.22791747748851776, -0.06171301752328873, 0.07452037930488586, 0.295366108417511, -0.08600850403308868, -0.11843883246183395, 0.11994252353906631, -0.24941971898078918, -0.1827249974012375, 0.10203264653682709, -0.05360730364918709, 0.3973861336708069, 0.09835140407085419, 0.16215555369853973, -0.5860713720321655, -0.17761331796646118, 0.046487145125865936, -0.06250989437103271, -0.004980266094207764, 0.040943801403045654, -0.16139499843120575, 0.23333056271076202, -0.08478084206581116, -0.2695522606372833, -0.1383340060710907, -0.726080596446991, 0.3097900152206421, -0.1541324406862259, -0.015408821403980255, -0.17930448055267334, -0.03266915678977966, 0.1793379932641983, 0.4551534652709961, -0.5496848225593567, -0.02777799591422081, 0.06060590595006943, 0.1771862804889679, -0.22504717111587524, 0.08573418110609055, 0.2765234410762787, 0.03058183565735817, 0.15260116755962372, 0.0917603150010109, 0.2806859314441681, -0.07451988011598587, 0.16232210397720337, 0.19079157710075378, -0.004554569721221924, -0.05443887412548065, 0.10730428993701935, 0.8914564847946167, 0.13092151284217834, -0.25570276379585266, 0.0005781352519989014, 0.32581987977027893, 0.028201401233673096, 0.05830555781722069, -0.27997782826423645, -0.0012312657199800014, -0.3485741913318634, -0.0984102189540863, -0.045323073863983154, -0.12234076112508774, -0.22351466119289398, -0.16168850660324097, -0.22888921201229095, 0.04495064169168472, -0.39927634596824646, 0.28736117482185364, -0.2709810137748718, 0.559094250202179, -0.24073371291160583, -0.054323382675647736, -0.13542748987674713, 0.03927399218082428, 0.02277776598930359, 0.38588666915893555, 0.3907046914100647, -0.008506915532052517, -0.35341328382492065, -0.03874595835804939, -0.07418634742498398, -0.025219157338142395, 0.22113074362277985, 0.2781014144420624, 0.35593822598457336, 0.028303399682044983, -0.17164523899555206, 0.3798859715461731, 0.33815819025039673, 0.053267672657966614, -0.09148901700973511, 0.07279588282108307, -0.22384501993656158, 0.08688970655202866, -0.1391090601682663, -0.052046868950128555, 0.38768693804740906, -0.12026923894882202, 0.4322042465209961, 0.02873438596725464, 0.0766039788722992, 0.06298884749412537, 0.22254829108715057, -0.34348955750465393, -0.3563637137413025, 0.17325983941555023, 0.11731431633234024, -0.31098827719688416, -0.04202450066804886, -0.24800792336463928, -0.2716619074344635, -0.2170906811952591, 0.03205933794379234, -0.36759209632873535, 0.12312223762273788, -0.1138552725315094, -0.10401423275470734, -0.0913316160440445, -0.12395063787698746, 0.21266324818134308, 0.3405507802963257, -0.11647340655326843, 0.3934893310070038, 0.14879518747329712, -0.04765764996409416, -0.09432440996170044, 0.12235716730356216, 0.14972861111164093, 0.5206689834594727, -0.06920282542705536, -0.09468401223421097, 0.4549074172973633, 0.21075907349586487, 0.025546427816152573, -0.34118327498435974, 0.12422718107700348, -0.036420755088329315, 0.23667976260185242, -0.32556989789009094, -0.67901611328125, 0.388065367937088, -0.14077438414096832, -0.05549134686589241, 0.22121404111385345, -0.19179128110408783, -0.005464201793074608, -0.062353916466236115, 0.17415213584899902, 0.7579430341720581, -0.0679735392332077, 0.3485552966594696, -0.06523272395133972, 0.32904475927352905, 0.7631742358207703, -0.014289326965808868, 0.13700321316719055, -0.05586860701441765, -0.4476005733013153, -0.179969921708107, -0.235028475522995, 0.10326359421014786, 0.05563121289014816, -0.14695021510124207, 0.3850540816783905, 0.3317074775695801, 0.1781364381313324, 0.15044011175632477, -0.02728162333369255, -0.0849757194519043, -0.34813717007637024, 0.23937568068504333, 0.04555850476026535, -0.42334312200546265, 0.054095782339572906, -0.19073492288589478, 0.12216925621032715, 0.24484753608703613, 0.5283940434455872, -0.27333706617355347, -0.047378987073898315, -0.3343283534049988, 0.1987798660993576, 0.08669285476207733, -0.5362277030944824, 0.03598853573203087, 0.17185156047344208, -0.02740168571472168, -0.13316313922405243, -0.016569195315241814, -0.0033691637217998505, 0.055063582956790924, 0.11746177077293396, 0.05302758142352104, -0.17879776656627655, 0.7227447628974915, 0.18548983335494995, -0.07958541810512543, 0.14480692148208618, 0.044956743717193604, -0.621874988079071, -0.021846920251846313, -0.07119281589984894, 0.1963830441236496, -0.05594367906451225, -0.174207404255867, 0.11168307065963745, 0.03827540948987007, -0.23079222440719604, -0.036579784005880356, 0.40091538429260254, 0.17654278874397278, 0.19624346494674683, -0.07208900153636932, 0.14630164206027985, -0.02318144217133522, 0.3212243914604187, 0.2788548171520233, -0.08754530549049377, 0.42363226413726807, 0.3180282711982727, -0.1989099681377411, 0.009917806833982468, 0.08471768349409103, 0.11691004782915115, -0.05774715542793274, -0.029334645718336105, -0.2218746393918991, 0.23028530180454254, -0.16505856812000275, -0.20535078644752502, 0.07582750916481018, -0.1671988070011139, -0.40806180238723755, -0.2778335213661194, -0.7164547443389893, 0.14345425367355347, 0.28913652896881104, 0.27782437205314636, 0.0596778467297554, 0.1369047313928604, -0.1508176624774933, 0.08434148132801056, -0.13627192378044128, 0.08864976465702057, 0.11460553854703903, 0.14316068589687347, 0.18981848657131195, 0.020361023023724556, -0.08928970247507095, -0.3378201127052307, -0.18736600875854492, 0.3322761058807373, 0.2794438600540161, -0.10825137794017792, -0.23661495745182037, 0.21777895092964172, 0.2628345489501953, 0.0439109280705452, -0.0560346394777298, -0.36140578985214233, 0.21794018149375916, -0.15092772245407104, -0.016266196966171265, 0.032360248267650604, 0.09729966521263123, 0.2960817813873291, 0.4556903541088104, 0.10363399982452393, -0.18553607165813446, 0.31146374344825745, -0.1507151573896408, 0.024562165141105652, -0.07148367166519165, 0.15009303390979767, 0.08752872794866562, -0.10422573983669281, -0.28905948996543884, 0.1253974884748459, 0.5192306041717529, -0.00015257298946380615, 0.518896222114563, -0.19417281448841095, -0.2480427324771881, -0.39096206426620483, 0.5250468254089355, 0.16225963830947876, -0.08678556978702545, 0.034683436155319214, 0.4929288625717163, 0.02631206065416336, -0.15194417536258698, -0.08406321704387665, 0.053427211940288544, -0.06829773634672165, 0.003098703920841217, 0.09198054671287537, -0.31352370977401733, 0.23327353596687317, -0.1358177363872528, 0.050437986850738525, -0.10211214423179626, -0.041581906378269196, 0.04369410499930382, 0.19669455289840698, 0.14273285865783691, -0.22950835525989532, 0.2770792543888092, 0.5433916449546814, 0.0654279813170433, -0.13431225717067719, 0.3098389506340027, 0.5204167366027832, 0.23053720593452454, -0.1238400936126709, 0.23196116089820862, -0.571449875831604, -0.1564844697713852, 0.12502893805503845, -0.09805101156234741, 0.32801565527915955, 0.0438498817384243, 0.2445749044418335, -0.09751544147729874, -0.13754594326019287, 0.17441526055335999, 0.3116394877433777, -0.1520647406578064, 0.032579176127910614, -0.08546573668718338, -0.2475930154323578, 0.21151775121688843, 0.0055747441947460175, 0.01713230088353157, -0.2536701560020447, 0.1356053352355957, 0.1304561197757721, -0.08506281673908234, -0.21269817650318146, -0.01867646723985672, 0.27186504006385803, 0.05759952962398529, -0.12670090794563293, -0.29749953746795654, 0.1683906763792038, -0.014718204736709595, -0.2143983542919159, 0.17445755004882812, -0.19730529189109802, -0.008569378405809402, -0.315926730632782, 0.5698180198669434, 0.050511401146650314, -0.015157841145992279, -0.1628892868757248, -0.0789874941110611, 0.005353070795536041, -0.39414775371551514, 0.3404007852077484, 0.08141138404607773, -0.051155734807252884, 0.18323229253292084, 0.10948210954666138, 0.016209842637181282, -0.43616971373558044, 0.12215320020914078, 0.29510924220085144, -0.27790430188179016, 0.03339441493153572, 0.13432526588439941, -0.42564302682876587, -0.17161665856838226, 0.43811342120170593, -0.235260009765625, 0.17500030994415283, 0.07728095352649689, 0.03052131086587906, -0.13343316316604614, 0.3199772834777832, 0.4451278746128082, 0.20896610617637634, -0.15736903250217438, -0.0875786542892456, -0.49987390637397766, -0.12216819077730179, 0.020374171435832977, 0.027279676869511604, 0.04269665479660034, 0.03781881928443909, 0.36774998903274536, 0.24839110672473907, -0.01813732087612152, -0.07739052176475525, 0.15554063022136688, 0.15941713750362396, -0.24259130656719208, -0.5353397130966187, 0.1315668523311615, 0.042444244027137756, -0.014779984951019287, -0.08715851604938507, 0.3255995213985443, 0.19293443858623505, -0.02399892918765545, 0.02169993333518505, 0.018749691545963287, 0.13926690816879272, -0.12611345946788788, 0.4387338161468506, -0.1259639859199524, 0.036863021552562714, -0.006916174665093422, -0.09137917309999466, 0.2427186369895935, 0.1157679334282875, -0.07031767815351486, -0.12661534547805786, -0.20184354484081268, 0.45403099060058594, -0.16180209815502167, -0.2093982845544815, -0.40974730253219604, -0.1211843490600586, -0.0517507940530777, -0.17654384672641754, -0.5788936018943787, -0.09499850869178772, -0.11159469932317734, 0.09681932628154755, 0.16379424929618835, 0.4051112234592438, -0.21930629014968872, 0.27467188239097595, -0.2725396156311035, 0.07958681136369705, 0.3225293755531311, -0.5531702041625977, 0.023911919444799423, -0.24675065279006958, -0.09389844536781311, 0.09526778757572174, 0.30112823843955994, -0.5640529990196228, -0.01587381213903427, 0.3948592245578766, -0.2842022478580475, 0.08348140120506287, 0.21335943043231964, 0.049765460193157196, 0.28304386138916016, -0.16774708032608032, 0.4422445297241211, 0.011022340506315231, -0.2174471616744995, -0.10525920987129211, -0.1705140322446823 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
I opened a draft here for IterableDataset: https://github.com/huggingface/datasets/pull/6658 ```python """Requires https://github.com/huggingface/datasets/pull/6658 (WIP)""" from datasets import load_dataset from torch.utils.data import DataLoader ds = load_dataset(..., streaming=True) # ds = ds.map(tokenize) # ds = ds.shuffle(seed=42, buffer_size=1000) # Init the dataset state_dict, or load it from a checkpoint dataset_state_dict = ds.state_dict() # Resumable training loop ds.load_state_dict(dataset_state_dict) dataloader = DataLoader(ds, batch_size=batch_size) for step, batch in enumerate(dataloader): ... if step % save_steps == 0: dataset_state_dict = ds.state_dict() ```
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
72
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger I opened a draft here for IterableDataset: https://github.com/huggingface/datasets/pull/6658 ```python """Requires https://github.com/huggingface/datasets/pull/6658 (WIP)""" from datasets import load_dataset from torch.utils.data import DataLoader ds = load_dataset(..., streaming=True) # ds = ds.map(tokenize) # ds = ds.shuffle(seed=42, buffer_size=1000) # Init the dataset state_dict, or load it from a checkpoint dataset_state_dict = ds.state_dict() # Resumable training loop ds.load_state_dict(dataset_state_dict) dataloader = DataLoader(ds, batch_size=batch_size) for step, batch in enumerate(dataloader): ... if step % save_steps == 0: dataset_state_dict = ds.state_dict() ```
[ -0.6239463686943054, 0.08005508780479431, 0.00005788728594779968, 0.17961543798446655, 0.0208725742995739, -0.10727176815271378, 0.25590506196022034, 0.05695898458361626, -0.013182507827877998, 0.022553592920303345, -0.1802491545677185, 0.2676003873348236, -0.3988147974014282, 0.12672345340251923, 0.0990155041217804, -0.1633576601743698, -0.28922590613365173, 0.18245568871498108, -0.2555864155292511, 0.2753605246543884, 0.17769768834114075, -0.2336781769990921, -0.06408180296421051, -0.1975407749414444, -0.24495328962802887, 0.041129592806100845, -0.0947076678276062, 0.21281424164772034, 0.12534856796264648, -0.34347736835479736, 0.5264779329299927, 0.12741030752658844, 0.4486147165298462, 0.2873166799545288, -0.00012021311704302207, 0.00772857666015625, 0.17686162889003754, -0.12279705703258514, -0.48747846484184265, -0.22750334441661835, -0.017165139317512512, -0.2819858193397522, 0.08782339096069336, -0.16864797472953796, 0.0588923841714859, -0.39922192692756653, 0.0598253458738327, -0.29212817549705505, 0.2699543237686157, 0.02430512011051178, 0.03674483299255371, 0.4396701157093048, -0.25802338123321533, 0.0502844862639904, 0.014357514679431915, 0.26266103982925415, 0.06482303142547607, 0.4145205318927765, 0.4631921947002411, -0.11520983278751373, -0.27469125390052795, 0.11731889843940735, -0.2357218712568283, -0.027941256761550903, 0.001202613115310669, -0.15217578411102295, -0.21302169561386108, 0.047682590782642365, -0.12410888820886612, 0.1274389624595642, 0.5822060704231262, -0.32547423243522644, -0.1354811042547226, -0.5245785713195801, 0.2476826161146164, -0.27012500166893005, -0.045074768364429474, -0.1763671338558197, -0.24722860753536224, -0.05880672112107277, -0.12712596356868744, -0.26337769627571106, -0.16311220824718475, 0.1488749384880066, -0.1923769861459732, 0.05129014700651169, 0.0004913453012704849, 0.09343402832746506, 0.15628978610038757, 0.2207786589860916, 0.5355983376502991, -0.07840500771999359, 0.4437727630138397, 0.25378140807151794, -0.5155298113822937, -0.13704052567481995, -0.0732491984963417, -0.19776186347007751, 0.0674542635679245, 0.19908057153224945, 0.3644513785839081, 0.022070985287427902, -0.0661550760269165, 0.1426461935043335, 0.33289676904678345, 0.028242502361536026, 0.2816118001937866, 0.1514657437801361, 0.17241427302360535, 0.18792925775051117, -0.10849221050739288, -0.06581827253103256, -0.08473542332649231, -0.02415793389081955, 0.6469821929931641, 0.15067178010940552, 0.17179016768932343, 0.15878669917583466, 0.016193730756640434, 0.22759021818637848, -0.25113344192504883, -0.15822570025920868, 0.22706238925457, 0.06879988312721252, -0.09803596138954163, 0.31431353092193604, 0.08717472851276398, -0.24952225387096405, 0.02697109617292881, -0.29706650972366333, -0.0885697603225708, -0.2527809143066406, -0.2060454934835434, 0.429455041885376, 0.24820594489574432, -0.4799547791481018, 0.21350432932376862, -0.004289795644581318, 0.09277835488319397, 0.20928916335105896, 0.3513638377189636, 0.0459478534758091, 0.14613893628120422, 0.11309674382209778, -0.1515154093503952, 0.1013578400015831, 0.1421925127506256, 0.12473899126052856, -0.12988576292991638, 0.39680734276771545, -0.24761363863945007, -0.28150230646133423, -0.0149847362190485, 0.09907183796167374, -0.05953572317957878, -0.07729443907737732, -0.49641576409339905, -0.008243802934885025, 0.16927379369735718, -0.15504901111125946, 0.40165281295776367, -0.32144272327423096, -0.13971534371376038, -0.2668139934539795, 0.22478444874286652, 0.052041903138160706, -0.3947250247001648, -0.41400113701820374, 0.014007488265633583, -0.2019330859184265, 0.12479785084724426, 0.17073409259319305, -0.4378722012042999, 0.4706205129623413, -0.18540160357952118, 0.0321827307343483, 0.3213514983654022, -0.028557952493429184, -0.49000284075737, 0.097936250269413, 0.010525256395339966, 0.26182031631469727, -0.22061902284622192, 0.33875134587287903, 0.3088037371635437, -0.040996503084897995, -0.0050698816776275635, 0.32618027925491333, -0.23735877871513367, -0.09490391612052917, -0.022479405626654625, -0.031640324741601944, 0.47850853204727173, 0.6071088910102844, 0.2543272376060486, -0.10898271948099136, -0.04237503558397293, 0.09652173519134521, 0.35233157873153687, 0.06124543398618698, 0.17881600558757782, 0.15647241473197937, -0.09995812177658081, 0.114604651927948, -0.04567622393369675, -0.5567252039909363, -0.48808765411376953, 0.2692454159259796, 0.020406875759363174, -0.4170956611633301, 0.2486119121313095, 0.008705813437700272, 0.15269914269447327, 0.062346428632736206, -0.3440903425216675, -0.2590845227241516, -0.009385872632265091, 0.10695622861385345, -0.10522469878196716, -0.06820949912071228, -0.41454315185546875, 0.2902168929576874, -0.47388043999671936, 0.09654087573289871, -0.39572593569755554, 0.41564634442329407, 0.35093608498573303, -0.11162558943033218, -0.34331434965133667, 0.03384294733405113, -0.06289615482091904, -0.12179641425609589, 0.12125995010137558, 0.39099401235580444, -0.07667883485555649, 0.2797965407371521, -0.14421990513801575, -0.04968595504760742, 0.022209446877241135, 0.12089671194553375, -0.023960473015904427, 0.01065361313521862, -0.08648774772882462, -0.3070833384990692, 0.13785690069198608, 0.377801775932312, -0.242356076836586, 0.2372482419013977, 0.042144253849983215, -0.033192820847034454, 0.004844428971409798, -0.09872152656316757, -0.4301661252975464, 0.4224235415458679, 0.3620679974555969, -0.290666401386261, 0.24312706291675568, -0.025090506300330162, -0.36824437975883484, -0.0386335626244545, 0.0361313670873642, -0.3941277861595154, 0.08131521195173264, 0.0967719554901123, -0.38180437684059143, 0.14162850379943848, 0.12030218541622162, 0.2218041568994522, 0.5532457828521729, -0.07902279496192932, 0.11757084727287292, -0.08298905193805695, 0.06451508402824402, 0.015565205365419388, 0.13618367910385132, -0.004668831825256348, 0.2735525071620941, 0.41701796650886536, 0.06292679905891418, -0.11336683481931686, 0.0116397924721241, -0.042138777673244476, 0.011221697553992271, 0.16714505851268768, 0.036576028913259506, 0.06813305616378784, -0.2862982153892517, -0.2068326771259308, -0.25087499618530273, -0.02006620541214943, -0.16563303768634796, -0.12077099084854126, -0.32947689294815063, 0.5262777209281921, 0.11458632349967957, 0.24135921895503998, -0.05118647962808609, 0.2621740996837616, 0.09490978717803955, -0.29192855954170227, 0.053271934390068054, -0.3108496069908142, 0.16741248965263367, 0.036335576325654984, 0.12074756622314453, -0.24043269455432892, 0.3605571687221527, 0.11901719123125076, -0.11198333650827408, -0.4712626039981842, 0.23492950201034546, 0.41420644521713257, 0.15684309601783752, -0.16361550986766815, 0.19475209712982178, 0.25971508026123047, -0.07449819147586823, -0.11546371132135391, 0.16351467370986938, -0.26316380500793457, -0.15688487887382507, 0.08585439622402191, -0.04058712720870972, 0.34978002309799194, 0.09114652872085571, 0.11728271842002869, -0.484685480594635, -0.15819694101810455, 0.08400720357894897, -0.0026971474289894104, 0.01926345005631447, 0.06564704328775406, -0.0891835018992424, 0.3075013756752014, -0.09362375736236572, -0.2700263261795044, -0.20044544339179993, -0.7177568078041077, 0.34324097633361816, -0.18055780231952667, 0.0014674738049507141, -0.21743716299533844, -0.1196814626455307, 0.171638622879982, 0.4681800603866577, -0.5145920515060425, -0.07123912125825882, 0.06842636317014694, 0.271517813205719, -0.29446396231651306, 0.1838913857936859, 0.30712366104125977, 0.0605076365172863, 0.11256229877471924, 0.1302945613861084, 0.22065788507461548, -0.07518314570188522, 0.035063400864601135, 0.27564501762390137, -0.032837703824043274, 0.017417512834072113, 0.14780175685882568, 0.9119312763214111, 0.1615544855594635, -0.26412662863731384, 0.03951210156083107, 0.15294921398162842, 0.05312632769346237, 0.05286654829978943, -0.38274508714675903, -0.09354614466428757, -0.33894503116607666, -0.09128692001104355, -0.04449719190597534, -0.18219760060310364, -0.17055118083953857, -0.12161573767662048, -0.2610584795475006, 0.13558578491210938, -0.44669508934020996, 0.30093154311180115, -0.23455744981765747, 0.49028244614601135, -0.26262184977531433, -0.019612476229667664, -0.15614649653434753, 0.009782688692212105, 0.08992454409599304, 0.27237772941589355, 0.3242950439453125, -0.04649190232157707, -0.3585715591907501, 0.05166340991854668, -0.21285563707351685, 0.006237484514713287, 0.2437916249036789, 0.21389345824718475, 0.3937845230102539, -0.013492254540324211, -0.14946243166923523, 0.2659202516078949, 0.44258350133895874, 0.0839022845029831, -0.0626799538731575, 0.06669889390468597, -0.23750025033950806, -0.027635740116238594, -0.10148963332176208, -0.008621793240308762, 0.4530823230743408, 0.0032364502549171448, 0.4677112400531769, -0.018356576561927795, -0.0033235487062484026, 0.0889078676700592, 0.2162781059741974, -0.35613372921943665, -0.37493976950645447, 0.10596893727779388, 0.0037891417741775513, -0.3276919424533844, -0.04077780991792679, -0.12814341485500336, -0.16425026953220367, -0.10824264585971832, 0.0546150840818882, -0.40511706471443176, 0.14723455905914307, -0.09714703261852264, -0.08559949696063995, -0.02600592002272606, -0.09891224652528763, 0.304183691740036, 0.3804595470428467, -0.07727275788784027, 0.38888877630233765, 0.3012986183166504, -0.04209311679005623, -0.0789291113615036, 0.09937931597232819, 0.1709556132555008, 0.38976287841796875, -0.006131976842880249, -0.10911193490028381, 0.3480929434299469, 0.13976843655109406, 0.03783714398741722, -0.3665715456008911, 0.12471021711826324, -0.0301517341285944, 0.19117873907089233, -0.30255576968193054, -0.6756885051727295, 0.3539772033691406, -0.05013420805335045, 0.008704304695129395, 0.26392242312431335, -0.21656163036823273, -0.04445032775402069, -0.07300978899002075, 0.12121245265007019, 0.655755341053009, -0.09405288100242615, 0.3492358922958374, 0.0519782118499279, 0.3413395881652832, 0.6864298582077026, 0.001960624009370804, 0.05500428006052971, -0.18431097269058228, -0.4455329179763794, -0.13230307400226593, -0.18107038736343384, -0.003242410719394684, 0.07748807966709137, -0.09563280642032623, 0.38285496830940247, 0.3574899435043335, 0.05781606212258339, 0.07332729548215866, 0.016973063349723816, -0.15303678810596466, -0.3538621664047241, 0.09777244180440903, 0.09060055762529373, -0.3355928063392639, 0.0821664109826088, -0.1251356601715088, 0.04486306756734848, 0.24213385581970215, 0.4041007161140442, -0.3656211495399475, -0.06081558018922806, -0.4135943651199341, 0.15769660472869873, 0.1111108809709549, -0.551842451095581, -0.02437766082584858, 0.24561983346939087, 0.13643068075180054, -0.16112296283245087, 0.0011333078145980835, 0.04275393858551979, -0.025957457721233368, 0.12333062291145325, 0.020467977970838547, -0.22809314727783203, 0.7018725275993347, 0.20624849200248718, -0.0034762248396873474, 0.19057458639144897, 0.053169406950473785, -0.5870566368103027, 0.028646692633628845, 0.043256402015686035, 0.2116161286830902, -0.12079502642154694, -0.19016024470329285, 0.13831155002117157, 0.08168527483940125, -0.23940381407737732, -0.005795298144221306, 0.4246715307235718, 0.16479620337486267, 0.16358648240566254, -0.1717640906572342, 0.16669410467147827, 0.004555368795990944, 0.38312914967536926, 0.17248675227165222, -0.0011195801198482513, 0.42461273074150085, 0.3261653184890747, -0.15952052175998688, 0.002154853194952011, 0.046061672270298004, 0.2747253477573395, -0.1856447011232376, -0.009536138735711575, -0.19359298050403595, 0.3093816041946411, -0.1763230860233307, -0.10003574192523956, 0.10019274055957794, -0.1992659568786621, -0.2887464165687561, -0.21089032292366028, -0.723809540271759, 0.0736483782529831, 0.3245655298233032, 0.32755863666534424, 0.14634546637535095, 0.16509504616260529, -0.18636851012706757, 0.07220955938100815, -0.19327634572982788, 0.07202495634555817, 0.049803636968135834, 0.12268184125423431, 0.17052261531352997, 0.010264217853546143, 0.010693640448153019, -0.3327564597129822, -0.11323761194944382, 0.4017689824104309, 0.2774296998977661, -0.17386940121650696, -0.24587439000606537, 0.16721275448799133, 0.22170695662498474, -0.003766818903386593, -0.013550594449043274, -0.3415284752845764, 0.20311805605888367, -0.19455461204051971, 0.07275567948818207, 0.10834310203790665, 0.14519038796424866, 0.3151991367340088, 0.35172590613365173, 0.08201175183057785, -0.17688776552677155, 0.2590368986129761, -0.22273212671279907, -0.03715109825134277, -0.0547482967376709, 0.17865629494190216, 0.010050913318991661, -0.16426052153110504, -0.25087472796440125, 0.09556758403778076, 0.5080755949020386, -0.041484445333480835, 0.5101367235183716, -0.1515549123287201, -0.3770156800746918, -0.2575867176055908, 0.5647779703140259, 0.22200210392475128, -0.14798744022846222, 0.06728045642375946, 0.45616862177848816, 0.07227674126625061, -0.17684930562973022, -0.08017909526824951, -0.0008945539593696594, -0.140304833650589, 0.06779707968235016, 0.12433058023452759, -0.41293513774871826, 0.11894327402114868, -0.11387023329734802, 0.025186102837324142, -0.053947560489177704, -0.13995036482810974, 0.02527748979628086, 0.17781542241573334, 0.11208556592464447, -0.24900834262371063, 0.35097411274909973, 0.5343678593635559, 0.13251017034053802, -0.031235694885253906, 0.1562694013118744, 0.5027816891670227, 0.18790632486343384, -0.2220144271850586, 0.2368098795413971, -0.5167545080184937, -0.1345568299293518, 0.03922692686319351, -0.07146885991096497, 0.25937527418136597, 0.053641192615032196, 0.2603685259819031, -0.1176091656088829, -0.08895235508680344, 0.1687690168619156, 0.27713653445243835, -0.14205259084701538, 0.02645980194211006, -0.035392023622989655, -0.22361701726913452, 0.17898938059806824, 0.02395506575703621, 0.0032124482095241547, -0.3752239942550659, 0.2308581918478012, 0.11608624458312988, -0.03589475154876709, -0.3291310966014862, -0.060040444135665894, 0.2910313010215759, -0.004236377775669098, -0.20227982103824615, -0.2836707532405853, 0.16063372790813446, -0.04872825741767883, -0.26972147822380066, 0.23752248287200928, -0.08153510093688965, 0.040031418204307556, -0.29468706250190735, 0.5675457715988159, 0.011751016601920128, 0.004177520051598549, -0.1243482381105423, -0.12951380014419556, -0.14813637733459473, -0.3527211546897888, 0.4524381160736084, 0.10070248693227768, -0.09204179793596268, 0.12819541990756989, 0.12819060683250427, -0.0063842907547950745, -0.44677072763442993, 0.07878729701042175, 0.1647222936153412, -0.21320509910583496, -0.008839230984449387, 0.13653555512428284, -0.428680956363678, -0.16040295362472534, 0.3646222651004791, -0.2175755798816681, 0.2559073567390442, 0.003185446374118328, 0.07227528840303421, -0.16948248445987701, 0.2643228769302368, 0.4311075806617737, 0.19562867283821106, -0.24105507135391235, -0.015059739351272583, -0.5673949122428894, -0.14591538906097412, 0.022478768602013588, -0.026636406779289246, 0.03542111814022064, 0.12764714658260345, 0.3382692039012909, 0.25093936920166016, 0.025013431906700134, -0.175089031457901, 0.24820303916931152, 0.31506872177124023, -0.2359849512577057, -0.5557555556297302, 0.06624756753444672, 0.020423991605639458, 0.10261383652687073, -0.158934086561203, 0.24551400542259216, 0.03918817639350891, 0.02923889458179474, -0.04378436505794525, -0.01864728331565857, 0.09102293848991394, -0.140593022108078, 0.4542229175567627, -0.1396070122718811, 0.027013234794139862, -0.02344963513314724, -0.0908438190817833, 0.1659945547580719, 0.12384459376335144, -0.059102192521095276, -0.09448566287755966, -0.08481137454509735, 0.41220781207084656, -0.15463046729564667, -0.22777120769023895, -0.4572381377220154, -0.04100124165415764, 0.021153345704078674, -0.15486828982830048, -0.5687929391860962, 0.059778451919555664, -0.10965040326118469, 0.1383427083492279, 0.05357145145535469, 0.43017473816871643, -0.24472177028656006, 0.383498877286911, -0.2873336672782898, -0.06047806143760681, 0.3957025408744812, -0.5556350946426392, 0.018927086144685745, -0.13218742609024048, -0.07926252484321594, 0.22225481271743774, 0.27930718660354614, -0.6438714861869812, 0.03012745827436447, 0.4260352849960327, -0.23628127574920654, 0.043463390320539474, 0.19125229120254517, 0.07417738437652588, 0.3201548755168915, -0.18558727204799652, 0.480278879404068, 0.03910043090581894, -0.27712634205818176, 0.026144590228796005, -0.18967357277870178 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
Hi @lhoestq - can you provide more information and how to implement on saving and restoring vanilla DataLoader states with map-style datasets?
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
22
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger Hi @lhoestq - can you provide more information and how to implement on saving and restoring vanilla DataLoader states with map-style datasets?
[ -0.5343466401100159, 0.19503113627433777, 0.00895291194319725, 0.20394235849380493, -0.006507672369480133, -0.1312706470489502, 0.21756188571453094, 0.11338263750076294, 0.18564753234386444, -0.03387826681137085, -0.11546783894300461, 0.30243730545043945, -0.3291757106781006, 0.18333524465560913, 0.0027983859181404114, -0.2623691260814667, -0.22798848152160645, 0.3426317572593689, -0.25609830021858215, 0.2517475485801697, 0.18875554203987122, -0.3452136814594269, -0.04959492385387421, -0.1887785643339157, -0.2576095163822174, 0.0009180288761854172, -0.08381352573633194, 0.0720307007431984, 0.06412734091281891, -0.3237743377685547, 0.4748537540435791, 0.01912454515695572, 0.39088407158851624, 0.31611454486846924, -0.00012230324500706047, 0.05633096396923065, 0.18565458059310913, -0.08845359086990356, -0.3010021448135376, -0.2395564466714859, -0.19556114077568054, -0.3594861924648285, 0.15062656998634338, -0.19730255007743835, 0.11452383548021317, -0.4150031507015228, 0.10991276055574417, -0.2705540657043457, 0.32685035467147827, 0.002276933752000332, 0.008809130638837814, 0.29772335290908813, -0.2463780641555786, 0.05202677473425865, 0.007818304002285004, 0.273374080657959, 0.04060641676187515, 0.3643011152744293, 0.5650332570075989, -0.13586696982383728, -0.3190065622329712, -0.01319099124521017, -0.14692360162734985, -0.05297402665019035, -0.04829447716474533, -0.15396684408187866, -0.09135133773088455, -0.09818629920482635, -0.06352516263723373, 0.11592726409435272, 0.6921237111091614, -0.2927628457546234, -0.10568628460168839, -0.4160620868206024, 0.19654062390327454, -0.13156558573246002, 0.008786454796791077, -0.2039659172296524, -0.15221546590328217, -0.01882871985435486, -0.19951480627059937, -0.2814226448535919, -0.23424164950847626, 0.18105721473693848, -0.2866685092449188, 0.06613735854625702, 0.012559213675558567, 0.04175201803445816, 0.10599145293235779, 0.20406174659729004, 0.5575674772262573, -0.11370831727981567, 0.44254618883132935, 0.34641900658607483, -0.3825681209564209, -0.1877477616071701, -0.0975881889462471, -0.23200851678848267, 0.0047925375401973724, 0.12192481011152267, 0.34041526913642883, 0.06772147119045258, -0.1499926894903183, 0.200423926115036, 0.32199937105178833, 0.07509449124336243, 0.37047237157821655, 0.20302140712738037, 0.26118355989456177, 0.10123530775308609, -0.1517723798751831, -0.042964398860931396, -0.0631522610783577, 0.08819504827260971, 0.6995489001274109, 0.11917156726121902, 0.09172647446393967, 0.06159016117453575, 0.1537538766860962, 0.24794863164424896, -0.27638667821884155, -0.21194018423557281, 0.16434618830680847, -0.021538741886615753, -0.07472603768110275, 0.37907251715660095, -0.00487334281206131, -0.21536682546138763, 0.03853340446949005, -0.276794970035553, -0.027849918231368065, -0.2710970640182495, -0.20324110984802246, 0.3557875156402588, 0.2947421073913574, -0.4131191670894623, 0.19588327407836914, 0.02748195454478264, -0.10349197685718536, 0.2334849238395691, 0.35665780305862427, -0.020467227324843407, 0.05934885889291763, 0.15356235206127167, -0.15037207305431366, 0.07693738490343094, 0.08580277860164642, 0.08165714144706726, -0.17072248458862305, 0.4188167452812195, -0.3569011092185974, -0.27908119559288025, 0.03665890544652939, 0.05557835474610329, -0.05366675183176994, -0.07323577255010605, -0.5190715789794922, 0.007929492741823196, 0.12854941189289093, -0.15987570583820343, 0.32939404249191284, -0.3535570502281189, -0.04959380626678467, -0.32440847158432007, 0.10299409180879593, -0.024063557386398315, -0.5520063042640686, -0.3983366787433624, 0.012095898389816284, -0.27518513798713684, 0.15593580901622772, 0.1866220086812973, -0.4595547020435333, 0.541280210018158, -0.12061739712953568, 0.09222407639026642, 0.40481552481651306, -0.016283398494124413, -0.5099533200263977, 0.07950102537870407, 0.0640670657157898, 0.17053690552711487, -0.2888709604740143, 0.29771310091018677, 0.45286351442337036, -0.04544953629374504, -0.10130482912063599, 0.31857430934906006, -0.18670237064361572, -0.04030691459774971, 0.07574225962162018, -0.09800552576780319, 0.5683906674385071, 0.5556190609931946, 0.3429659605026245, -0.06763789802789688, 0.1357298493385315, 0.030946653336286545, 0.1679476499557495, 0.0864342600107193, 0.2207709103822708, 0.136015385389328, -0.12046892940998077, 0.11575440317392349, -0.029188035055994987, -0.5199217200279236, -0.5821119546890259, 0.25050443410873413, -0.10680679976940155, -0.4999978542327881, 0.30236583948135376, 0.09187106788158417, 0.16181650757789612, 0.04238907992839813, -0.2872932255268097, -0.1676492840051651, -0.017560891807079315, -0.002356216311454773, -0.17718586325645447, -0.08691240847110748, -0.3566458523273468, 0.1874302625656128, -0.3409896194934845, 0.0886034220457077, -0.25401708483695984, 0.4947066307067871, 0.3383580446243286, -0.14861571788787842, -0.4020646810531616, -0.012309364974498749, -0.0829639807343483, -0.10992589592933655, 0.08989910036325455, 0.32892096042633057, 0.0879761353135109, 0.3289058804512024, -0.053663186728954315, 0.0832110196352005, 0.07039064168930054, 0.11369208991527557, 0.14662764966487885, 0.11480343341827393, -0.0794191062450409, -0.4289531111717224, -0.021001353859901428, 0.2693440318107605, -0.037678029388189316, 0.205325648188591, 0.023456305265426636, -0.07666950672864914, 0.046453095972537994, -0.14046955108642578, -0.3792162835597992, 0.3574649393558502, 0.2354700267314911, -0.24006806313991547, 0.3240255117416382, 0.05488200858235359, -0.2575463056564331, -0.10005246847867966, 0.08700861036777496, -0.4303499758243561, 0.17481982707977295, 0.11218120157718658, -0.4491656422615051, 0.07240597903728485, 0.14768405258655548, 0.2906695604324341, 0.4840245842933655, -0.15299472212791443, 0.1505967229604721, -0.08091653883457184, 0.07212085276842117, 0.04157572612166405, 0.1123979464173317, -0.05102302134037018, 0.45190659165382385, 0.41219064593315125, 0.06519938260316849, -0.06274757534265518, 0.053202204406261444, -0.01030786894261837, 0.08830644190311432, 0.12974852323532104, 0.014273207634687424, -0.07211567461490631, -0.31015270948410034, -0.22213003039360046, -0.16700787842273712, -0.00976738054305315, -0.21313908696174622, -0.09802773594856262, -0.43583881855010986, 0.4089239537715912, 0.09933152794837952, 0.2016790211200714, -0.17430910468101501, 0.36211058497428894, 0.10395550727844238, -0.23896758258342743, 0.06381301581859589, -0.37252160906791687, 0.1287531554698944, 0.007736977189779282, 0.04568830505013466, -0.18204811215400696, 0.26690858602523804, 0.09838523715734482, -0.08927173912525177, -0.3725571632385254, 0.16832956671714783, 0.4370955228805542, 0.16559571027755737, -0.1358988881111145, 0.1400774121284485, 0.3758583664894104, -0.05337642878293991, -0.011471225880086422, 0.14687679708003998, -0.27809494733810425, -0.23234476149082184, 0.05957400053739548, -0.09516191482543945, 0.41906625032424927, 0.0824800431728363, 0.13844001293182373, -0.4952862858772278, -0.10845905542373657, 0.12707115709781647, -0.009714379906654358, 0.10053826123476028, 0.03382532298564911, -0.10110896080732346, 0.3405979573726654, -0.06773599237203598, -0.2501267194747925, -0.15742012858390808, -0.6850891709327698, 0.4485224485397339, -0.20668849349021912, -0.021126702427864075, -0.176478311419487, -0.06344689428806305, 0.10983319580554962, 0.38053297996520996, -0.4506034851074219, -0.03149230033159256, -0.013125380501151085, 0.3215741515159607, -0.20912045240402222, 0.2291107475757599, 0.3995020091533661, 0.07229501008987427, 0.15760061144828796, 0.0688026174902916, 0.2158127725124359, -0.01189432293176651, 0.2009577751159668, 0.24958840012550354, 0.037733059376478195, -0.0923457220196724, 0.07210268080234528, 0.8393374085426331, 0.13675931096076965, -0.2465444654226303, 0.027250610291957855, 0.22290140390396118, -0.0022940225899219513, 0.06554629653692245, -0.26871079206466675, -0.16121384501457214, -0.45985350012779236, -0.05903434380888939, -0.0667114406824112, -0.10561266541481018, -0.20825287699699402, -0.06755715608596802, -0.22599013149738312, 0.07842738181352615, -0.4061509668827057, 0.28326234221458435, -0.20589417219161987, 0.4776269495487213, -0.29852643609046936, -0.07006154954433441, -0.19820411503314972, 0.03830277547240257, 0.1378771960735321, 0.2615307569503784, 0.2272997796535492, -0.055995263159275055, -0.42518454790115356, 0.05347449705004692, -0.110537089407444, 0.02279256284236908, 0.2800951600074768, 0.16354452073574066, 0.37498635053634644, 0.026765011250972748, -0.21569861471652985, 0.3447555601596832, 0.36944741010665894, -0.01710253767669201, 0.039117343723773956, 0.05010092630982399, -0.21483877301216125, 0.1237730011343956, -0.15510466694831848, -0.15865635871887207, 0.44611260294914246, 0.0004961080849170685, 0.55818772315979, 0.052114181220531464, 0.03164845332503319, -0.0867711752653122, 0.1398172676563263, -0.3054192364215851, -0.34703516960144043, 0.2382264882326126, 0.1605183184146881, -0.2694065272808075, -0.09870444983243942, -0.18100449442863464, -0.2747866213321686, -0.14789216220378876, -0.025698477402329445, -0.3554849624633789, 0.18435445427894592, -0.1241191178560257, -0.050445761531591415, -0.025944452732801437, -0.09867865592241287, 0.18430495262145996, 0.42499402165412903, -0.1087941825389862, 0.3801681399345398, 0.27920001745224, -0.10609203577041626, -0.09264534711837769, 0.1274472326040268, 0.10251602530479431, 0.46517297625541687, -0.12653455138206482, -0.01682385616004467, 0.2856616973876953, 0.1740560233592987, -0.061114877462387085, -0.3485437035560608, 0.1427900791168213, 0.010361340828239918, 0.18671077489852905, -0.2800181210041046, -0.6270824074745178, 0.36327695846557617, -0.04212506115436554, -0.1321638822555542, 0.22432659566402435, -0.26195889711380005, -0.10018632560968399, -0.01486207451671362, 0.2811426818370819, 0.6018022298812866, -0.14140568673610687, 0.3362494111061096, -0.05175435543060303, 0.32599592208862305, 0.7575327754020691, 0.07067824900150299, -0.015004381537437439, -0.1506166160106659, -0.43948987126350403, -0.15843495726585388, -0.2174501270055771, 0.1046295240521431, 0.13764655590057373, -0.13981643319129944, 0.3611232042312622, 0.37669920921325684, 0.18622973561286926, 0.11225112527608871, -0.07833564281463623, 0.03054734133183956, -0.38705167174339294, 0.17717371881008148, 0.06595642864704132, -0.360673725605011, 0.004532158374786377, -0.1713956892490387, 0.07156046479940414, 0.15822279453277588, 0.46031659841537476, -0.2768017649650574, -0.044176436960697174, -0.4893202781677246, 0.27455204725265503, 0.12478773295879364, -0.4007840156555176, 0.009294439107179642, 0.25064802169799805, -0.05210369825363159, -0.158037468791008, -0.04787396639585495, -0.026250574737787247, 0.12187106907367706, 0.13471604883670807, 0.1395045816898346, -0.16663576662540436, 0.6809611916542053, 0.21915104985237122, 0.009225636720657349, 0.08540233969688416, -0.0732460543513298, -0.5418211817741394, -0.005508348345756531, -0.027499116957187653, 0.1083187460899353, -0.11508937925100327, -0.2697902321815491, 0.08483868092298508, 0.12329983711242676, -0.11658614873886108, -0.03542030602693558, 0.45293545722961426, 0.26467365026474, 0.2573389708995819, -0.10260123014450073, 0.13323375582695007, 0.07737800478935242, 0.3397243022918701, 0.2414514422416687, -0.055216483771800995, 0.42857515811920166, 0.29119324684143066, -0.14891940355300903, 0.008596539497375488, 0.1034310981631279, 0.21094080805778503, -0.033225398510694504, -0.03857653588056564, -0.25410449504852295, 0.1019144058227539, -0.1643074005842209, -0.05618814751505852, 0.13370966911315918, -0.17854589223861694, -0.30510401725769043, -0.30697399377822876, -0.7740639448165894, 0.13690140843391418, 0.20379738509655, 0.22816453874111176, 0.04838866740465164, 0.05877220258116722, -0.14442524313926697, 0.11855364590883255, -0.1354680061340332, 0.0916890874505043, 0.1463787853717804, 0.19622214138507843, 0.19743968546390533, 0.040350839495658875, -0.06675513088703156, -0.35443755984306335, -0.19064100086688995, 0.32581472396850586, 0.2734873592853546, -0.1288037896156311, -0.2450191080570221, 0.1945715695619583, 0.24978160858154297, 0.0356987863779068, -0.0054391128942370415, -0.40523433685302734, 0.2853585183620453, -0.17727693915367126, -0.013892294839024544, 0.027144357562065125, 0.08887092769145966, 0.3853243887424469, 0.3822663724422455, 0.10880851745605469, -0.18807566165924072, 0.31090569496154785, -0.19694316387176514, 0.008050777018070221, -0.09979617595672607, 0.1729971468448639, -0.03372365981340408, -0.12673230469226837, -0.22658029198646545, 0.12700681388378143, 0.5571631789207458, -0.0031391531229019165, 0.5643680691719055, -0.15948085486888885, -0.22584278881549835, -0.2433030903339386, 0.4764631688594818, 0.12527865171432495, -0.18918994069099426, 0.0647563561797142, 0.45606929063796997, 0.032018646597862244, -0.09646803140640259, -0.07968702167272568, 0.21677140891551971, -0.1348368525505066, -0.0004995539784431458, 0.09373360872268677, -0.275978684425354, 0.26339226961135864, -0.21140222251415253, -0.04207491874694824, -0.08546312898397446, -0.03518352657556534, 0.02767171524465084, 0.23930086195468903, 0.06756410002708435, -0.2235962301492691, 0.3530126214027405, 0.5980328321456909, 0.06601947546005249, -0.119046151638031, 0.3609110116958618, 0.3848375678062439, 0.2095860242843628, -0.12818287312984467, 0.2620716392993927, -0.6215591430664062, -0.08529102802276611, 0.0981757789850235, -0.08604896068572998, 0.3261774778366089, 0.11321473121643066, 0.15976324677467346, -0.09611083567142487, -0.18992458283901215, 0.16691461205482483, 0.2842325270175934, -0.20455145835876465, 0.010986756533384323, -0.09729201346635818, -0.2578364908695221, 0.19636869430541992, 0.0077095963060855865, -0.06456407904624939, -0.2945433259010315, 0.25470995903015137, 0.1286647915840149, -0.061769843101501465, -0.18970784544944763, -0.08833111822605133, 0.19707238674163818, 0.09661290049552917, -0.15874819457530975, -0.2590640187263489, -0.022465556859970093, -0.09314696490764618, -0.3603450357913971, 0.28129541873931885, -0.19642674922943115, 0.04578141123056412, -0.31394436955451965, 0.5440504550933838, 0.043731432408094406, -0.058889418840408325, -0.08290745317935944, -0.14732195436954498, -0.0732620507478714, -0.5244609713554382, 0.3390035331249237, 0.0671200081706047, -0.05048925802111626, 0.14308089017868042, 0.07649891823530197, 0.08083534240722656, -0.32517722249031067, 0.01880301535129547, 0.2824796438217163, -0.34784194827079773, 0.1182141900062561, 0.06214100494980812, -0.3831782937049866, -0.23386351764202118, 0.3810206651687622, -0.2876349687576294, 0.2569432258605957, -0.006264656316488981, 0.03633234277367592, -0.08561374247074127, 0.3347585201263428, 0.5579862594604492, 0.1811560094356537, -0.16928215324878693, -0.037372395396232605, -0.5032898187637329, -0.12456206232309341, -0.030051354318857193, -0.013399548828601837, 0.06102503463625908, 0.04196128249168396, 0.3204084038734436, 0.25862088799476624, 0.07290811836719513, -0.13353660702705383, 0.20924867689609528, 0.12812508642673492, -0.22243312001228333, -0.4369737207889557, 0.17764347791671753, -0.003437992185354233, 0.06756384670734406, -0.11447300016880035, 0.3402608633041382, 0.17091108858585358, 0.014678165316581726, 0.010548124089837074, 0.06440624594688416, 0.06114804372191429, -0.1694876104593277, 0.5275602340698242, -0.07564596831798553, 0.037853509187698364, -0.01585243083536625, -0.09759161621332169, 0.24370579421520233, 0.18658320605754852, 0.009744514711201191, -0.06504156440496445, -0.16107407212257385, 0.3948136568069458, -0.26304319500923157, -0.16220439970493317, -0.36494123935699463, -0.21201248466968536, -0.0863494873046875, -0.17925992608070374, -0.636613130569458, -0.046292200684547424, -0.14471080899238586, -0.0018472135998308659, 0.16044816374778748, 0.39050328731536865, -0.27302685379981995, 0.3353256583213806, -0.24168002605438232, 0.0721106231212616, 0.21656563878059387, -0.5254923701286316, -0.03342421352863312, -0.16369369626045227, -0.10658858716487885, 0.153364360332489, 0.2812584638595581, -0.555742084980011, -0.027402617037296295, 0.3998430669307709, -0.3100994825363159, -0.04542817920446396, 0.12298893928527832, 0.01651695743203163, 0.29298102855682373, -0.20792081952095032, 0.5681490898132324, -0.003639698028564453, -0.2451021522283554, -0.09869556874036789, -0.10332371294498444 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
For now the easiest is probably to use the vanilla DataLoader only for batching and multiprocessing, and implement the resuming logic using a `Dataset` (it has `.select()` to skip examples) and a `dataset_state_dict`: ```python from datasets import load_dataset from torch.utils.data import DataLoader ds = load_dataset(...) # ds = ds.map(tokenize) # ds = ds.shuffle(seed=42) # Init the dataset state_dict, or load it from a checkpoint dataset_state_dict = {"step": 0} # Resumable training loop start_step = dataset_state_dict["step"] dataloader = DataLoader(ds.select(range(start_step * batch_size, len(ds))), batch_size=batch_size) for step, batch in enumerate(dataloader, start=start_step): ... if step % save_steps == 0: dataset_state_dict = {"step": step} ```
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
100
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger For now the easiest is probably to use the vanilla DataLoader only for batching and multiprocessing, and implement the resuming logic using a `Dataset` (it has `.select()` to skip examples) and a `dataset_state_dict`: ```python from datasets import load_dataset from torch.utils.data import DataLoader ds = load_dataset(...) # ds = ds.map(tokenize) # ds = ds.shuffle(seed=42) # Init the dataset state_dict, or load it from a checkpoint dataset_state_dict = {"step": 0} # Resumable training loop start_step = dataset_state_dict["step"] dataloader = DataLoader(ds.select(range(start_step * batch_size, len(ds))), batch_size=batch_size) for step, batch in enumerate(dataloader, start=start_step): ... if step % save_steps == 0: dataset_state_dict = {"step": step} ```
[ -0.6678329706192017, 0.11887665092945099, 0.003964874893426895, 0.14554530382156372, 0.01231348142027855, -0.1574954092502594, 0.26829859614372253, 0.04963402450084686, -0.01073405146598816, 0.07346861809492111, -0.12683165073394775, 0.27164962887763977, -0.43771493434906006, 0.1564575582742691, 0.04549819603562355, -0.24365153908729553, -0.2672855854034424, 0.12204097211360931, -0.22910943627357483, 0.270118772983551, 0.17327645421028137, -0.2888285219669342, -0.09495824575424194, -0.1567101776599884, -0.24970832467079163, -0.0222236979752779, -0.10510499775409698, 0.21523013710975647, 0.17666447162628174, -0.31475841999053955, 0.5141152739524841, 0.11178368330001831, 0.4379788339138031, 0.3347685635089874, -0.00011690861720126122, -0.002561025321483612, 0.14244157075881958, -0.09151338040828705, -0.47017624974250793, -0.22304050624370575, -0.030171971768140793, -0.26659727096557617, 0.10737033188343048, -0.16273808479309082, 0.09654336422681808, -0.31210511922836304, 0.07579289376735687, -0.28421592712402344, 0.26033705472946167, -0.043433066457509995, 0.06845922023057938, 0.4301016926765442, -0.2862853407859802, 0.06981287151575089, 0.014100641012191772, 0.22373399138450623, 0.0731014534831047, 0.3675125241279602, 0.5138570070266724, -0.17879800498485565, -0.37809184193611145, 0.10132531821727753, -0.22453849017620087, -0.011935334652662277, -0.05359218269586563, -0.10226623713970184, -0.09189703315496445, -0.007040444761514664, -0.14331269264221191, 0.1531166136264801, 0.46493083238601685, -0.30405187606811523, -0.1871495544910431, -0.508720874786377, 0.24281495809555054, -0.3460715115070343, -0.11965376883745193, -0.16984301805496216, -0.2741945683956146, -0.05536671355366707, -0.10417670756578445, -0.21659345924854279, -0.12815304100513458, 0.10180605202913284, -0.22417962551116943, 0.08262822031974792, 0.06680703163146973, 0.1188611090183258, 0.10662109404802322, 0.21955664455890656, 0.4848068952560425, -0.03865012526512146, 0.47243666648864746, 0.2469392567873001, -0.5054552555084229, -0.09041300415992737, -0.04577592760324478, -0.23092424869537354, 0.008563708513975143, 0.1539139449596405, 0.31371578574180603, 0.0697784498333931, -0.03588659316301346, 0.17554952204227448, 0.2937663793563843, -0.010337384417653084, 0.27703508734703064, 0.12492204457521439, 0.18917706608772278, 0.15943287312984467, -0.1359151303768158, 0.0004885420203208923, -0.09700717031955719, -0.05587662011384964, 0.6819465756416321, 0.2527739107608795, 0.09966091811656952, 0.20141130685806274, 0.004788557067513466, 0.1837441325187683, -0.19647470116615295, -0.20846693217754364, 0.2448931485414505, 0.0971013680100441, -0.06459774821996689, 0.3860751688480377, 0.0713096484541893, -0.21787244081497192, -0.01660390943288803, -0.31635940074920654, -0.11566270142793655, -0.2455725520849228, -0.2595175802707672, 0.3924579918384552, 0.2851594388484955, -0.3909834325313568, 0.13676074147224426, 0.052818991243839264, 0.09764803946018219, 0.2014147788286209, 0.393410861492157, -0.019508544355630875, 0.1013391837477684, 0.08802337944507599, -0.123750701546669, 0.08852201700210571, 0.1794743686914444, 0.13078169524669647, -0.1081463098526001, 0.42218321561813354, -0.24692240357398987, -0.27897992730140686, -0.033559948205947876, 0.13481704890727997, 0.009959239512681961, -0.05245909094810486, -0.513785183429718, -0.08711610734462738, 0.16891047358512878, -0.08885827660560608, 0.37796589732170105, -0.36919063329696655, -0.06731464713811874, -0.32806265354156494, 0.21985438466072083, 0.05057363957166672, -0.37201830744743347, -0.3799315094947815, 0.05234755575656891, -0.21551650762557983, 0.19082891941070557, 0.11125713586807251, -0.45029956102371216, 0.5018432140350342, -0.2059810906648636, 0.02465783804655075, 0.3033945858478546, -0.1088062971830368, -0.35005879402160645, 0.12200314551591873, -0.06109723076224327, 0.26996663212776184, -0.18073171377182007, 0.33866748213768005, 0.32513538002967834, -0.04925471544265747, 0.058091361075639725, 0.3516559600830078, -0.21517471969127655, -0.02198440581560135, 0.03015391156077385, -0.02347244694828987, 0.45377492904663086, 0.6198304295539856, 0.31586867570877075, -0.15465810894966125, -0.06874718517065048, 0.023892298340797424, 0.3891316056251526, -0.007785860449075699, 0.18570184707641602, 0.10723987966775894, -0.09606114029884338, 0.10131317377090454, -0.08508986234664917, -0.5246316194534302, -0.5052524209022522, 0.30108165740966797, -0.03142103925347328, -0.41022199392318726, 0.21242058277130127, 0.00016469508409500122, 0.22267398238182068, 0.056545138359069824, -0.3463899791240692, -0.23950055241584778, 0.031664252281188965, 0.10021846741437912, -0.1694251149892807, -0.14021071791648865, -0.36172163486480713, 0.32087546586990356, -0.3825497329235077, 0.12677231431007385, -0.32367613911628723, 0.3740639388561249, 0.31195268034935, -0.1331307291984558, -0.3980531394481659, 0.030588768422603607, -0.05146123468875885, -0.10926572233438492, 0.12117784470319748, 0.41007110476493835, -0.01856582798063755, 0.22365432977676392, -0.1434956192970276, -0.09909234941005707, -0.016186704859137535, 0.21499580144882202, -0.022145962342619896, -0.05705508962273598, -0.0873079001903534, -0.3395390212535858, 0.1369161158800125, 0.42403537034988403, -0.1910960078239441, 0.21945248544216156, 0.030847758054733276, -0.06361213326454163, 0.06108471006155014, -0.13326990604400635, -0.37915971875190735, 0.4244104027748108, 0.33878615498542786, -0.2841389775276184, 0.22315968573093414, -0.041267141699790955, -0.3971138000488281, -0.06552060693502426, -0.011203315109014511, -0.3574918210506439, 0.09195281565189362, 0.06848867982625961, -0.3620683252811432, 0.21522223949432373, 0.12527495622634888, 0.24605552852153778, 0.5517759323120117, -0.0383031964302063, 0.06723319739103317, -0.12802498042583466, 0.029710497707128525, 0.026687338948249817, 0.09080371260643005, -0.024247877299785614, 0.29308512806892395, 0.3766420781612396, 0.09613075107336044, -0.0656522884964943, 0.053708016872406006, -0.11396962404251099, 0.021296987310051918, 0.09791816771030426, 0.05034920945763588, 0.03976760059595108, -0.26635146141052246, -0.1663387417793274, -0.25334426760673523, 0.010874024592339993, -0.11964760720729828, -0.08193662762641907, -0.30901074409484863, 0.48567497730255127, 0.07973748445510864, 0.2161252200603485, -0.11893191933631897, 0.25022801756858826, 0.06213302165269852, -0.34960290789604187, 0.12538090348243713, -0.28600606322288513, 0.1116831824183464, 0.07678698003292084, 0.09924183785915375, -0.15219606459140778, 0.384247750043869, 0.14097462594509125, -0.11475969105958939, -0.4482553005218506, 0.27249324321746826, 0.3735349774360657, 0.15425744652748108, -0.14723923802375793, 0.20683056116104126, 0.2325119525194168, -0.07124800235033035, -0.17267157137393951, 0.19022469222545624, -0.25532910227775574, -0.14789675176143646, 0.09490805864334106, -0.03041868656873703, 0.33186501264572144, 0.04909001663327217, 0.1314721554517746, -0.5039811134338379, -0.1692441701889038, 0.0003706440329551697, -0.03392188251018524, 0.04491177201271057, 0.024412279948592186, -0.08510535210371017, 0.27122437953948975, -0.07397272437810898, -0.2596222162246704, -0.11852696537971497, -0.6269935369491577, 0.2705376446247101, -0.17287218570709229, 0.029803495854139328, -0.2420380413532257, -0.16304223239421844, 0.20071908831596375, 0.5143004655838013, -0.47817909717559814, -0.053985562175512314, 0.05998094379901886, 0.32704201340675354, -0.28428974747657776, 0.24899685382843018, 0.3676307797431946, 0.12674683332443237, 0.05351748317480087, 0.13459214568138123, 0.23834913969039917, -0.10600823909044266, 0.01623302325606346, 0.2568007707595825, -0.11465718597173691, -0.0011995546519756317, 0.13075366616249084, 1.0056356191635132, 0.055159296840429306, -0.32027119398117065, -0.0036439672112464905, 0.12184054404497147, -0.03501695767045021, 0.11322985589504242, -0.3705151677131653, -0.12036803364753723, -0.4051448404788971, -0.10719940811395645, -0.0937989205121994, -0.2002459466457367, -0.1864573061466217, -0.11467967927455902, -0.18479366600513458, 0.01746753230690956, -0.4682002663612366, 0.3731709420681, -0.26899880170822144, 0.4653944969177246, -0.2698725461959839, -0.025958657264709473, -0.23182156682014465, 0.05536249279975891, 0.02902314066886902, 0.2592809200286865, 0.28961771726608276, -0.1228552982211113, -0.3092244565486908, 0.05071801692247391, -0.21912962198257446, 0.03688933700323105, 0.23438477516174316, 0.20695768296718597, 0.4613795578479767, -0.04668566957116127, -0.19351349771022797, 0.2246110439300537, 0.431718111038208, 0.0531512051820755, -0.006798647344112396, 0.12306275963783264, -0.2487799972295761, -0.03186359256505966, -0.17748190462589264, -0.08975516259670258, 0.5179752111434937, 0.0702470913529396, 0.396565705537796, -0.031415678560733795, -0.0195818729698658, 0.060712967067956924, 0.2033170610666275, -0.3427055776119232, -0.3340787887573242, 0.07999508082866669, 0.02373512089252472, -0.30364295840263367, 0.01843564212322235, -0.11096279323101044, -0.14942394196987152, -0.21210911870002747, 0.05872523412108421, -0.40944337844848633, 0.18463504314422607, -0.0698123425245285, -0.07713459432125092, -0.06116020679473877, -0.11156683415174484, 0.27188432216644287, 0.2339397668838501, -0.011665455996990204, 0.4128841161727905, 0.21903812885284424, -0.1194911003112793, -0.04397405683994293, 0.10396536439657211, 0.12135857343673706, 0.419262170791626, -0.005068615078926086, -0.08104090392589569, 0.3399147689342499, 0.1476692259311676, 0.07688707858324051, -0.3430235981941223, 0.11541326344013214, -0.00898769497871399, 0.1835058182477951, -0.3287419378757477, -0.6032648086547852, 0.3098459541797638, 0.028281915932893753, -0.0353093147277832, 0.2552487850189209, -0.2710959315299988, -0.04326885938644409, -0.013409514911472797, 0.15043659508228302, 0.5755938291549683, -0.11437885463237762, 0.3804318308830261, 0.06378285586833954, 0.37851589918136597, 0.6494230628013611, 0.037392035126686096, 0.1256254017353058, -0.17216528952121735, -0.3790375590324402, -0.10110653191804886, -0.2269250601530075, 0.010741397738456726, 0.11964926868677139, -0.08894333243370056, 0.4212772846221924, 0.2884148359298706, -0.007566608488559723, 0.06624534726142883, 0.004117753356695175, -0.09689144790172577, -0.3991103768348694, 0.18639661371707916, 0.10090018808841705, -0.3126569986343384, 0.09504266083240509, -0.18998730182647705, 0.09019681066274643, 0.24225559830665588, 0.35531121492385864, -0.39592403173446655, -0.04031883925199509, -0.424354612827301, 0.18667808175086975, 0.09150244295597076, -0.5224037170410156, -0.07096448540687561, 0.2145524024963379, 0.09349551796913147, -0.18944820761680603, 0.09068401902914047, 0.04099806770682335, -0.0012797489762306213, 0.17810189723968506, 0.03302101045846939, -0.29966604709625244, 0.7412910461425781, 0.2168806493282318, -0.06515690684318542, 0.1677531898021698, 0.007147572003304958, -0.5383806228637695, 0.0855419933795929, 0.13448801636695862, 0.2234254777431488, -0.10259534418582916, -0.1318587213754654, 0.14627951383590698, 0.0933799296617508, -0.2521597743034363, 0.016263768076896667, 0.40259355306625366, 0.14740340411663055, 0.2435082197189331, -0.22070400416851044, 0.1616111844778061, 0.040686607360839844, 0.32761508226394653, 0.22775262594223022, -0.10115785896778107, 0.403041273355484, 0.34879669547080994, -0.11180048435926437, -0.04793944209814072, 0.04407592862844467, 0.2396434247493744, -0.18426918983459473, 0.01615476980805397, -0.19141918420791626, 0.23754747211933136, -0.056560032069683075, -0.13307178020477295, 0.08630809187889099, -0.1182633712887764, -0.2905184030532837, -0.206894189119339, -0.6930925846099854, 0.0906851589679718, 0.32758498191833496, 0.2741475999355316, 0.12081276625394821, 0.20822399854660034, -0.15158134698867798, 0.09762734174728394, -0.23268729448318481, 0.07748115062713623, 0.021112261340022087, 0.13275712728500366, 0.13647085428237915, 0.024879472330212593, -0.07270565629005432, -0.29782068729400635, -0.07489477843046188, 0.3354398012161255, 0.265646755695343, -0.21490609645843506, -0.25030216574668884, 0.13145282864570618, 0.15995529294013977, 0.016516856849193573, 0.06846562027931213, -0.28805190324783325, 0.2370280623435974, -0.17934340238571167, 0.1081661581993103, 0.11629808694124222, 0.0838731974363327, 0.30366379022598267, 0.3759222626686096, 0.14635154604911804, -0.16646291315555573, 0.26391494274139404, -0.19644007086753845, -0.01465434581041336, -0.036029234528541565, 0.22338014841079712, 0.03455782309174538, -0.18274083733558655, -0.23829427361488342, 0.00555264949798584, 0.5134256482124329, 0.0629504844546318, 0.42017993330955505, -0.1712055802345276, -0.4533553421497345, -0.3117917776107788, 0.5346009731292725, 0.14897435903549194, -0.1517518311738968, 0.07133679836988449, 0.4539545178413391, 0.12888269126415253, -0.18482494354248047, -0.057559892535209656, 0.023706119507551193, -0.19649457931518555, 0.14040009677410126, 0.13779395818710327, -0.3959349989891052, 0.11078386008739471, -0.15411703288555145, 0.015490777790546417, -0.057424500584602356, -0.15434016287326813, 0.014533653855323792, 0.11097775399684906, 0.10321296751499176, -0.24455572664737701, 0.3376167118549347, 0.49645936489105225, 0.1538567841053009, -0.03537898510694504, 0.23397749662399292, 0.5863810777664185, 0.22740310430526733, -0.19810035824775696, 0.17749649286270142, -0.557678759098053, -0.09746009111404419, 0.05010578781366348, -0.058709517121315, 0.2148318886756897, 0.025997504591941833, 0.19269269704818726, -0.157025545835495, -0.13082997500896454, 0.19113779067993164, 0.2695464789867401, -0.18499189615249634, 0.005387567915022373, -0.05378604307770729, -0.20934024453163147, 0.2013016939163208, -0.0270527396351099, -0.027189452201128006, -0.31799042224884033, 0.21137212216854095, 0.12536317110061646, -0.01726897805929184, -0.28549692034721375, -0.11499818414449692, 0.27018752694129944, 0.01042330265045166, -0.17952731251716614, -0.27346503734588623, 0.25469970703125, -0.07485388219356537, -0.27514591813087463, 0.28016799688339233, -0.026214715093374252, 0.12120706588029861, -0.31717121601104736, 0.5697692036628723, 0.003303512930870056, 0.04818831384181976, -0.21328191459178925, -0.16411279141902924, -0.12014272809028625, -0.328395813703537, 0.44242480397224426, 0.15032781660556793, -0.14196838438510895, 0.15156656503677368, 0.13147903978824615, -0.031473308801651, -0.39720091223716736, 0.09507951885461807, 0.24334783852100372, -0.22860702872276306, 0.03618583828210831, 0.15537860989570618, -0.4402526319026947, -0.15281055867671967, 0.4138146638870239, -0.22300076484680176, 0.2581515312194824, 0.04360491782426834, 0.08597322553396225, -0.12946555018424988, 0.25973808765411377, 0.451846718788147, 0.28440970182418823, -0.24508005380630493, 0.031393639743328094, -0.580176591873169, -0.1207607313990593, -0.07467320561408997, -0.07774274796247482, -0.03686048835515976, 0.14173400402069092, 0.3250911235809326, 0.2627478837966919, 0.06163270026445389, -0.12632155418395996, 0.227321594953537, 0.3824681341648102, -0.3208179473876953, -0.4869404435157776, 0.06286399811506271, 0.019747426733374596, 0.11230942606925964, -0.205590158700943, 0.220436230301857, 0.10498209297657013, 0.0896720215678215, -0.0333431102335453, -0.06825132668018341, 0.20463435351848602, -0.1631183922290802, 0.47307634353637695, -0.12513968348503113, 0.026732929050922394, -0.08386465162038803, -0.10245302319526672, 0.1824331134557724, 0.16703878343105316, -0.04466893896460533, -0.17714834213256836, -0.02582622319459915, 0.41574788093566895, -0.11106002330780029, -0.17924879491329193, -0.44038379192352295, -0.05601218342781067, -0.01641756109893322, -0.14350318908691406, -0.5651701092720032, 0.07367923855781555, -0.04730672761797905, 0.0752832219004631, 0.0505734346807003, 0.4834939241409302, -0.23425722122192383, 0.35676974058151245, -0.2677372097969055, -0.043466076254844666, 0.3627627193927765, -0.5705698132514954, -0.03936297446489334, -0.2846813499927521, -0.025392338633537292, 0.03833447024226189, 0.3806171417236328, -0.5100817680358887, 0.049861036241054535, 0.3592926859855652, -0.2137029767036438, -0.03135077282786369, 0.16256821155548096, 0.05417552590370178, 0.24221046268939972, -0.16615597903728485, 0.35742565989494324, -0.03795719891786575, -0.25091296434402466, -0.03236498683691025, -0.19547443091869354 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
Hello, I found a similar implementation online that seems to solve your problem. https://github.com/facebookresearch/vissl/blob/main/vissl/data/data_helper.py#L93 it looks like we can set_start_iter in StatefulDistributedSampler to implement the stateful resume requirement we want.
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
30
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger Hello, I found a similar implementation online that seems to solve your problem. https://github.com/facebookresearch/vissl/blob/main/vissl/data/data_helper.py#L93 it looks like we can set_start_iter in StatefulDistributedSampler to implement the stateful resume requirement we want.
[ -0.5830392241477966, -0.028724588453769684, 0.0343194417655468, 0.03829655051231384, 0.1457652449607849, -0.21221542358398438, 0.20966994762420654, 0.0201973095536232, 0.1514657884836197, 0.11498825997114182, -0.0759880319237709, 0.3399212956428528, -0.20448316633701324, 0.13027657568454742, 0.0682847797870636, -0.22897499799728394, -0.3061530888080597, 0.3110763430595398, -0.3126620948314667, 0.21717198193073273, 0.14528828859329224, -0.39021438360214233, -0.14612054824829102, -0.2355034202337265, -0.10889945179224014, 0.049226388335227966, -0.07517780363559723, 0.18711423873901367, 0.13530029356479645, -0.30551987886428833, 0.6304808259010315, 0.10891635715961456, 0.39701443910598755, 0.2866634130477905, -0.00011375431495252997, -0.008028648793697357, 0.20659396052360535, -0.15848305821418762, -0.36093756556510925, -0.2036312073469162, -0.22066137194633484, -0.33840182423591614, 0.11133238673210144, -0.13130544126033783, 0.0457799956202507, -0.5181331634521484, 0.12056800723075867, -0.32164496183395386, 0.35146427154541016, -0.07547973841428757, 0.10745279490947723, 0.41507089138031006, -0.2570837438106537, -0.01379393134266138, -0.025450989603996277, 0.3146326243877411, 0.04543845355510712, 0.5079779028892517, 0.3980795741081238, -0.17193199694156647, -0.3625086545944214, 0.2791445851325989, -0.11680741608142853, 0.1050834059715271, 0.06329916417598724, -0.09090861678123474, -0.07524199038743973, -0.059892021119594574, -0.10391982644796371, 0.17243069410324097, 0.5935171246528625, -0.21415936946868896, -0.0555974617600441, -0.4139629304409027, 0.35179394483566284, -0.24131077527999878, -0.008802704513072968, -0.08854110538959503, -0.21186208724975586, -0.08494240045547485, 0.03407012298703194, -0.06787290424108505, -0.16695116460323334, 0.11837584525346756, -0.2254721224308014, -0.010032020509243011, -0.02365916594862938, 0.07615958899259567, 0.18626302480697632, 0.22558829188346863, 0.4319323003292084, 0.0708097517490387, 0.3443840742111206, 0.3103388249874115, -0.6320206522941589, -0.18482427299022675, -0.09850753098726273, -0.246198832988739, 0.01394641026854515, 0.09602661430835724, 0.3935086131095886, 0.04037362337112427, -0.022204706445336342, 0.24682572484016418, 0.37197446823120117, 0.014112701639533043, 0.2233550250530243, 0.1170540377497673, 0.2030344009399414, 0.11495641618967056, -0.16251729428768158, -0.065464548766613, 0.014652232639491558, -0.10223914682865143, 0.3899010717868805, 0.17935404181480408, 0.2620807886123657, 0.19501206278800964, -0.10651477426290512, 0.2911268472671509, -0.47603270411491394, -0.07791579514741898, 0.24147973954677582, 0.3187985122203827, -0.14749379456043243, 0.3918757438659668, 0.12031708657741547, -0.38567817211151123, -0.1457487940788269, -0.15228088200092316, -0.09407036751508713, -0.1819937527179718, -0.2131643146276474, 0.18301472067832947, 0.33906257152557373, -0.455997109413147, 0.09668413549661636, 0.03411201760172844, -0.06726594269275665, 0.14410635828971863, 0.4544282555580139, 0.024301111698150635, 0.2019251585006714, 0.14543648064136505, -0.09783321619033813, 0.055050283670425415, 0.0712852030992508, 0.10838685929775238, -0.1502716839313507, 0.40800154209136963, -0.24576589465141296, -0.21738655865192413, -0.0007328856736421585, 0.1648586392402649, -0.01800788752734661, -0.08068807423114777, -0.22829824686050415, 0.06231532245874405, -0.03224308043718338, -0.013348978012800217, 0.2983698546886444, -0.31844085454940796, -0.18421679735183716, -0.19357042014598846, 0.26984015107154846, 0.04300651699304581, -0.5908165574073792, -0.41217824816703796, 0.005450902972370386, -0.1823512315750122, 0.09659695625305176, 0.2219570130109787, -0.38186365365982056, 0.4235334098339081, -0.042949363589286804, 0.032693229615688324, 0.44983646273612976, -0.005887996405363083, -0.49457302689552307, 0.14701604843139648, -0.017599571496248245, 0.18445070087909698, -0.24451377987861633, 0.34067419171333313, 0.30177342891693115, -0.013677767477929592, -0.11860787868499756, 0.4006196856498718, -0.18905241787433624, 0.025059422478079796, 0.018118981271982193, 0.029274167492985725, 0.4302332401275635, 0.5457315444946289, 0.1749398112297058, -0.14242586493492126, 0.024683691561222076, 0.1379614919424057, 0.3463084101676941, 0.012783002108335495, 0.3292415738105774, 0.20046491920948029, 0.12574096024036407, 0.11319363117218018, 0.07041610032320023, -0.44776904582977295, -0.4046236574649811, 0.18394020199775696, -0.1321769654750824, -0.3633562922477722, 0.2747655510902405, -0.060983166098594666, 0.07951591163873672, 0.13416151702404022, -0.3391183912754059, -0.17942439019680023, 0.02143445611000061, 0.0069866180419921875, -0.17257437109947205, -0.04492642730474472, -0.37337103486061096, 0.23368661105632782, -0.5690566301345825, 0.09720396995544434, -0.2674124240875244, 0.42855170369148254, 0.2762194275856018, -0.07501298934221268, -0.2772737741470337, 0.10423716902732849, -0.05129078030586243, -0.14911656081676483, 0.09075769782066345, 0.2721986472606659, -0.240896075963974, 0.2658413052558899, -0.0879082903265953, -0.14933015406131744, -0.0306918453425169, 0.037532199174165726, 0.011775089427828789, 0.03644511476159096, -0.045909252017736435, -0.2122507095336914, -0.03799998760223389, 0.24492263793945312, -0.10306374728679657, 0.1715092658996582, 0.08323125541210175, 0.0021862536668777466, 0.21540483832359314, -0.14506888389587402, -0.411296010017395, 0.21939000487327576, 0.3824130594730377, -0.2028840035200119, 0.17398959398269653, -0.02546960674226284, -0.42413079738616943, -0.03221677988767624, 0.20284119248390198, -0.3300495445728302, 0.12373501807451248, 0.14968982338905334, -0.3586500883102417, 0.10330405086278915, 0.14721816778182983, 0.26871442794799805, 0.5502309203147888, -0.1007966473698616, 0.17306764423847198, -0.1857403963804245, -0.023273006081581116, 0.012274384498596191, 0.13126838207244873, -0.06195354461669922, 0.07800692319869995, 0.3750819265842438, 0.16402414441108704, -0.1447356641292572, -0.09430881589651108, 0.07898396253585815, 0.060493193566799164, 0.15416620671749115, 0.12901359796524048, 0.0728447213768959, -0.3471199870109558, -0.31754982471466064, -0.3323149085044861, 0.02352038398385048, 0.02394278347492218, -0.1496976763010025, -0.20689259469509125, 0.4678754508495331, -0.10826149582862854, 0.4401611089706421, 0.03874097391963005, 0.41281360387802124, 0.1585187464952469, -0.12048333138227463, 0.05036544054746628, -0.3536767363548279, 0.08325503766536713, 0.1104060709476471, -0.007916237227618694, -0.11638148128986359, 0.3355180025100708, 0.26629534363746643, -0.10991019010543823, -0.5315072536468506, -0.030897237360477448, 0.4908640682697296, 0.19261515140533447, -0.10223846882581711, 0.17081134021282196, 0.22339053452014923, -0.0735984668135643, -0.12805694341659546, 0.21640673279762268, -0.30271291732788086, -0.12996971607208252, 0.09129875153303146, -0.18197312951087952, 0.49069923162460327, -0.020288601517677307, 0.024876222014427185, -0.4594448208808899, -0.2933349013328552, 0.15755067765712738, 0.11725489795207977, -0.04265134781599045, -0.030901215970516205, -0.03488386049866676, 0.16485033929347992, -0.06743863224983215, -0.2166149914264679, -0.21646100282669067, -0.6402454972267151, 0.286477267742157, -0.29367467761039734, -0.06802819669246674, -0.054193682968616486, -0.1429165005683899, 0.19116204977035522, 0.4095805287361145, -0.5359410643577576, -0.1761326789855957, -0.06274188309907913, 0.19461126625537872, -0.2985972464084625, 0.16132700443267822, 0.24235549569129944, 0.00934087298810482, 0.059323087334632874, 0.09662245959043503, 0.19369599223136902, -0.013785488903522491, 0.17587611079216003, 0.2067258358001709, -0.06089990586042404, -0.026022091507911682, 0.23255106806755066, 0.7641011476516724, 0.11381164193153381, -0.3743142783641815, 0.027286991477012634, 0.2777359187602997, 0.13717423379421234, -0.007043987512588501, -0.34384751319885254, -0.023921048268675804, -0.27600762248039246, 0.10188083350658417, -0.06518338620662689, -0.12318535894155502, -0.12181591242551804, -0.0441133975982666, -0.2534559965133667, 0.2105986773967743, -0.5298645496368408, 0.4163884222507477, -0.18660284578800201, 0.49007266759872437, -0.25621432065963745, 0.06589706987142563, -0.25493714213371277, -0.06630279123783112, 0.06761038303375244, 0.3392266035079956, 0.3188004791736603, -0.05417998135089874, -0.2888154089450836, 0.00945909321308136, -0.23171904683113098, 0.02612387388944626, 0.1192382201552391, 0.24361266195774078, 0.40752995014190674, -0.14284905791282654, -0.10965666174888611, 0.2020714282989502, 0.35599008202552795, 0.11914987862110138, 0.02967534400522709, 0.06818532943725586, -0.20334160327911377, -0.060355618596076965, -0.03037264756858349, -0.06389563530683517, 0.3317086696624756, -0.1542913019657135, 0.17848098278045654, -0.13383738696575165, 0.008470079861581326, 0.25692880153656006, 0.1361617147922516, -0.4171788990497589, -0.3516865670681, -0.004019144922494888, 0.06562326848506927, -0.3709529936313629, 0.025740452110767365, -0.19136954843997955, -0.203150674700737, -0.151539146900177, 0.0605328269302845, -0.3463529348373413, -0.00803879089653492, -0.2206311672925949, 0.04935382679104805, -0.07413388043642044, -0.04319453984498978, 0.2991124391555786, 0.2758628726005554, 0.06310190260410309, 0.1963694989681244, 0.29549309611320496, -0.09518687427043915, -0.1565016508102417, 0.1845853626728058, 0.13493426144123077, 0.3849640488624573, 0.06761261075735092, -0.15138228237628937, 0.550062894821167, 0.13038551807403564, -0.0059327855706214905, -0.586017906665802, 0.2512017488479614, 0.03180096298456192, 0.25058436393737793, -0.13803641498088837, -0.6280912160873413, 0.20812222361564636, -0.22054775059223175, -0.04789816588163376, 0.1536218523979187, -0.1268642246723175, -0.04997090995311737, 0.029487118124961853, 0.2434939444065094, 0.827515721321106, 0.03056754544377327, 0.21988458931446075, 0.06045405566692352, 0.42445242404937744, 0.7751908898353577, -0.06399787962436676, 0.14007100462913513, -0.1760595142841339, -0.48932990431785583, -0.04289951175451279, -0.2311667501926422, -0.010508127510547638, -0.05197423696517944, -0.114559106528759, 0.3095879852771759, 0.4714481234550476, 0.1455804854631424, 0.03427392244338989, 0.1179271787405014, -0.08579718321561813, -0.5101420879364014, -0.033497944474220276, 0.12374220788478851, -0.29197263717651367, 0.11309681832790375, -0.1590573787689209, 0.11474543809890747, 0.4159621596336365, 0.33486348390579224, -0.2011246681213379, -0.04575902968645096, -0.2812388837337494, 0.14853467047214508, 0.08126470446586609, -0.544623076915741, 0.007546365261077881, 0.1912083625793457, 0.13756266236305237, -0.07401533424854279, -0.05063655227422714, 0.22199031710624695, -0.09678613394498825, 0.1912073791027069, 0.053026799112558365, -0.2025492787361145, 0.6024967432022095, 0.19648393988609314, 0.04808438569307327, 0.2390926480293274, 0.05378355085849762, -0.44996732473373413, -0.1565362960100174, 0.07656567543745041, -0.02138160914182663, -0.0685260146856308, -0.023486711084842682, 0.11336620151996613, 0.0012401901185512543, -0.22387509047985077, 0.04657747596502304, 0.3408823013305664, 0.12908121943473816, 0.20736795663833618, -0.12381604313850403, 0.178701251745224, 0.0026481859385967255, 0.35516026616096497, 0.18570774793624878, 0.002734839916229248, 0.4183245599269867, 0.32464295625686646, -0.14184975624084473, -0.04786594212055206, -0.057853277772665024, 0.20924289524555206, -0.243087500333786, -0.009394085966050625, -0.09763029962778091, 0.11046527326107025, -0.06558849662542343, 0.01514015719294548, -0.037665605545043945, -0.12901800870895386, -0.3812260627746582, -0.2053154706954956, -0.7142748832702637, 0.050304412841796875, 0.24749977886676788, 0.282515287399292, 0.015768621116876602, 0.4770706593990326, -0.19377638399600983, 0.2247667759656906, -0.2730117440223694, -0.010280336253345013, -0.001733468845486641, 0.2027321308851242, 0.12123551219701767, -0.11380746215581894, -0.030009398236870766, -0.14278915524482727, -0.062273770570755005, 0.45958638191223145, 0.15740634500980377, -0.19098877906799316, -0.28829866647720337, 0.13806776702404022, 0.15364456176757812, 0.1023780107498169, -0.02719130367040634, -0.30867695808410645, 0.1527390331029892, -0.21896669268608093, 0.07430511713027954, -0.02518589422106743, -0.006148010492324829, 0.3192504048347473, 0.15554320812225342, 0.17577394843101501, -0.08467575162649155, 0.2650560736656189, -0.20563292503356934, 0.06882888078689575, -0.04674939811229706, 0.08118759095668793, -0.08933742344379425, -0.08707186579704285, -0.11130059510469437, 0.12050504982471466, 0.545583188533783, -0.018190056085586548, 0.5054904818534851, 0.007436491549015045, -0.35273024439811707, -0.5180699825286865, 0.5592234134674072, 0.2217029333114624, -0.11531729996204376, 0.09976710379123688, 0.47343769669532776, 0.1553661972284317, -0.258831650018692, -0.016263404861092567, -0.07176646590232849, -0.2719256579875946, 0.22587266564369202, 0.05565756559371948, -0.3764941692352295, 0.11498412489891052, 0.023641541600227356, 0.0607093870639801, 0.03710056468844414, -0.24737878143787384, -0.08595143258571625, 0.11855407059192657, -0.021875739097595215, -0.13770551979541779, 0.3294701874256134, 0.4120146632194519, 0.23916730284690857, 0.07430329918861389, 0.06357084214687347, 0.43286752700805664, 0.14608605206012726, -0.1433981955051422, 0.2974689304828644, -0.5733293294906616, -0.06551386415958405, 0.19659680128097534, -0.07832886278629303, 0.30740293860435486, 0.07733345031738281, 0.13141348958015442, -0.17923209071159363, -0.09716276079416275, 0.05579175800085068, 0.19881853461265564, -0.1990027129650116, -0.05461050197482109, -0.3147735893726349, -0.16938486695289612, 0.1979234218597412, 0.014126311987638474, 0.038796376436948776, -0.2080080360174179, 0.13210532069206238, 0.07477094978094101, 0.009619548916816711, -0.26980289816856384, -0.16829031705856323, 0.19249555468559265, 0.02442895621061325, -0.1879086047410965, -0.211179718375206, 0.20859597623348236, -0.06095041334629059, -0.2203582525253296, 0.15884782373905182, -0.21319743990898132, 0.03237243741750717, -0.25714096426963806, 0.5651284456253052, 0.06652087718248367, -0.07201240211725235, -0.2570544481277466, -0.010478712618350983, -0.09312479197978973, -0.3451896905899048, 0.4773154854774475, 0.14747628569602966, -0.1833973079919815, 0.15697187185287476, 0.13325701653957367, 0.10482349991798401, -0.4690389037132263, -0.1261720359325409, 0.27574795484542847, -0.170407235622406, -0.009947076439857483, 0.12431614100933075, -0.39265793561935425, -0.07985756546258926, 0.28981029987335205, -0.17761462926864624, 0.2851901054382324, -0.10167726874351501, 0.10483110696077347, -0.14935824275016785, 0.38134804368019104, 0.2351699024438858, 0.1296459436416626, -0.19518300890922546, -0.023916251957416534, -0.5247324705123901, 0.0015944093465805054, -0.15914636850357056, 0.011216191574931145, -0.07571224868297577, 0.24469979107379913, 0.3709580898284912, 0.21732531487941742, -0.018653348088264465, -0.142665833234787, 0.24562254548072815, 0.16291242837905884, -0.3216319680213928, -0.7495748400688171, 0.1834671050310135, -0.01819370873272419, 0.08826202899217606, -0.230264812707901, 0.2248707413673401, 0.17089466750621796, 0.056496717035770416, -0.06258182227611542, -0.08398406952619553, 0.08616259694099426, 0.035502560436725616, 0.4646652936935425, -0.013255639001727104, -0.059826284646987915, -0.11317028105258942, -0.14488404989242554, 0.028139673173427582, -0.022623740136623383, -0.09426099061965942, -0.24606415629386902, 0.030973751097917557, 0.48650237917900085, -0.08015905320644379, -0.11294692754745483, -0.5158951878547668, -0.21129459142684937, 0.026554085314273834, 0.04845204949378967, -0.6428701281547546, 0.2089572250843048, -0.049273569136857986, 0.13870485126972198, -0.03856075555086136, 0.512956440448761, -0.16176973283290863, 0.20755711197853088, -0.3096392750740051, -0.07970146089792252, 0.33094078302383423, -0.6350512504577637, -0.017187895253300667, -0.25182801485061646, -0.012414425611495972, 0.06884210556745529, 0.27671656012535095, -0.5212365388870239, 0.11061828583478928, 0.30340316891670227, -0.17865777015686035, -0.020249176770448685, 0.11584296822547913, 0.08844403922557831, 0.23315466940402985, -0.261086106300354, 0.28723496198654175, 0.20365455746650696, -0.2125835120677948, 0.08498334884643555, -0.2653028666973114 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
Hi y'all, @lhoestq I wanted to flag that we currently have a StatefulDataLoader in `pytorch/data/torchdata` that has state_dict/load_state_dict methods, which will call a dataset's state_dict/load_state_dict methods but also handle multiprocessing under the hood. Any chance we can collaborate on this and try to get them to work well together? Please have a look here for some basic examples: https://github.com/pytorch/data/tree/main/torchdata/stateful_dataloader#saving-and-loading-state
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
59
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger Hi y'all, @lhoestq I wanted to flag that we currently have a StatefulDataLoader in `pytorch/data/torchdata` that has state_dict/load_state_dict methods, which will call a dataset's state_dict/load_state_dict methods but also handle multiprocessing under the hood. Any chance we can collaborate on this and try to get them to work well together? Please have a look here for some basic examples: https://github.com/pytorch/data/tree/main/torchdata/stateful_dataloader#saving-and-loading-state
[ -0.5166980624198914, 0.2312217652797699, -0.020020106807351112, 0.2962813675403595, -0.012600567191839218, -0.140153706073761, 0.3636290729045868, 0.05864112079143524, -0.020938070490956306, 0.024620257318019867, -0.19342146813869476, 0.21055634319782257, -0.27893418073654175, 0.3259393870830536, -0.07784750312566757, -0.15300820767879486, -0.14772087335586548, 0.23478372395038605, -0.19540244340896606, 0.2821282148361206, 0.20549975335597992, -0.19470225274562836, -0.06642349809408188, -0.08141715824604034, -0.306179404258728, 0.09641481935977936, -0.1320302039384842, 0.1312662959098816, 0.10563643276691437, -0.16733074188232422, 0.5731590390205383, 0.20093271136283875, 0.234691321849823, 0.3926435708999634, -0.00012584977957885712, 0.03633738309144974, 0.27074921131134033, -0.008060311898589134, -0.18996655941009521, -0.35520118474960327, 0.014333710074424744, -0.3465101420879364, 0.2420421838760376, -0.17291474342346191, 0.17888835072517395, -0.40416350960731506, 0.017468687146902084, -0.4234095811843872, 0.3468061685562134, -0.07902289181947708, 0.012482564896345139, 0.3519743084907532, -0.18399356305599213, 0.14993302524089813, -0.07782986015081406, 0.361469566822052, 0.047138988971710205, 0.40179404616355896, 0.6188355684280396, -0.26532870531082153, -0.3596082627773285, -0.06157498061656952, -0.19379088282585144, 0.007484333589673042, -0.054251477122306824, -0.15356208384037018, -0.20916366577148438, -0.07093197107315063, -0.028544597327709198, 0.12605682015419006, 0.6932867169380188, -0.31101274490356445, -0.15349629521369934, -0.3860861659049988, 0.30547836422920227, -0.12859654426574707, 0.08371986448764801, -0.17609702050685883, -0.29165780544281006, -0.09266500174999237, -0.1366322934627533, -0.36763429641723633, -0.2753467857837677, 0.09855738282203674, -0.14067554473876953, 0.17832934856414795, 0.04682955518364906, 0.112930066883564, 0.06224455311894417, 0.26638317108154297, 0.6677581071853638, -0.07133109867572784, 0.5685559511184692, 0.23527225852012634, -0.493674099445343, -0.0849749743938446, -0.19102123379707336, -0.2538081109523773, 0.033688172698020935, 0.3041820526123047, 0.2785554528236389, 0.09193229675292969, -0.22200079262256622, 0.16934248805046082, 0.4669017791748047, 0.06756725907325745, 0.2818986177444458, 0.08254803717136383, 0.2990078926086426, 0.007714398205280304, -0.12182192504405975, 0.01529538445174694, -0.044166747480630875, -0.07220601290464401, 0.5038123726844788, 0.041702210903167725, 0.16929490864276886, -0.047169700264930725, -0.07186959683895111, 0.09261053055524826, -0.23027166724205017, -0.2481861412525177, 0.22364212572574615, -0.01935712993144989, -0.03294418007135391, 0.5370654463768005, 0.15774933993816376, -0.06554877758026123, 0.03282363712787628, -0.2676367163658142, -0.007021630648523569, -0.24273793399333954, -0.12595435976982117, 0.3476230800151825, 0.23043490946292877, -0.35186484456062317, 0.06428628414869308, 0.10804059356451035, 0.2374865859746933, 0.2512226998806, 0.4197589159011841, -0.04151437431573868, -0.14065852761268616, 0.016492843627929688, -0.09108056128025055, 0.05222456157207489, 0.17700563371181488, 0.0858173668384552, -0.105412058532238, 0.3224942088127136, -0.2619624733924866, -0.2982279658317566, -0.1770818680524826, 0.0366799496114254, -0.029335271567106247, 0.0644141137599945, -0.4811682403087616, -0.03657734766602516, 0.26244425773620605, -0.1333247274160385, 0.28456035256385803, -0.2555707097053528, -0.10414812713861465, -0.3084489703178406, 0.16072562336921692, 0.006211996078491211, -0.43234947323799133, -0.37748292088508606, 0.031349170953035355, -0.27894484996795654, 0.10665485262870789, 0.20130358636379242, -0.44585201144218445, 0.45394763350486755, -0.015981895849108696, -0.14628690481185913, 0.2871522009372711, -0.19967769086360931, -0.27906641364097595, 0.21587011218070984, -0.08528697490692139, 0.15103985369205475, -0.09902378171682358, 0.23439007997512817, 0.18789522349834442, -0.015591948293149471, 0.0901184156537056, 0.40902119874954224, -0.2669295370578766, -0.18185323476791382, 0.04053186997771263, -0.2855413258075714, 0.45595526695251465, 0.5409992337226868, 0.3302096128463745, -0.2061426341533661, -0.06885815411806107, -0.10183660686016083, 0.275095134973526, 0.03929068520665169, 0.22089332342147827, 0.022522974759340286, -0.10065263509750366, 0.18154489994049072, -0.034183017909526825, -0.5303919911384583, -0.584443986415863, 0.24404022097587585, -0.037130676209926605, -0.3560904562473297, 0.27945977449417114, 0.012515529990196228, 0.20380881428718567, 0.1142183169722557, -0.35492250323295593, -0.1894589364528656, -0.03925608843564987, 0.06311200559139252, -0.16433990001678467, -0.052742548286914825, -0.41902709007263184, 0.5339787006378174, -0.2855786681175232, 0.061864178627729416, -0.2130461484193802, 0.5138228535652161, 0.29015985131263733, -0.12891800701618195, -0.323928564786911, 0.09937190264463425, -0.12743845582008362, -0.06434362381696701, 0.10203542560338974, 0.3367052972316742, -0.08562920242547989, 0.2662413716316223, -0.08151770383119583, 0.015953660011291504, -0.044952817261219025, 0.028736937791109085, 0.05263315513730049, -0.03244152292609215, -0.10928412526845932, -0.5695489645004272, 0.15879200398921967, 0.37790608406066895, -0.2881142199039459, 0.35041484236717224, -0.016976244747638702, -0.0014713816344738007, -0.057731859385967255, -0.04513118416070938, -0.38696378469467163, 0.5078854560852051, 0.41064003109931946, -0.3212357759475708, 0.33327001333236694, -0.06858716905117035, -0.3395659923553467, -0.15941068530082703, -0.11470483243465424, -0.2740824818611145, 0.03841663897037506, 0.029193446040153503, -0.27944672107696533, 0.1144181564450264, 0.08692757785320282, 0.14435827732086182, 0.6864843964576721, -0.13751338422298431, 0.0878523737192154, -0.05751935392618179, 0.1187233179807663, -0.028491158038377762, 0.06019836664199829, 0.09285089373588562, 0.4393656849861145, 0.302815705537796, 0.005712941288948059, -0.07531507313251495, 0.1863577961921692, -0.09992741048336029, 0.06143409013748169, -0.004506746307015419, 0.0031021051108837128, 0.1583014577627182, -0.18557040393352509, -0.19010955095291138, -0.2941349148750305, -0.1155027523636818, -0.21567122638225555, -0.18714764714241028, -0.34404391050338745, 0.5124978423118591, 0.21749773621559143, 0.19270183145999908, -0.29217347502708435, 0.3583012819290161, -0.08817757666110992, -0.2847413122653961, 0.056356266140937805, -0.2492963820695877, 0.09484922140836716, 0.00812782347202301, 0.2916291654109955, -0.21327468752861023, 0.24915263056755066, 0.24529995024204254, -0.047814302146434784, -0.36108162999153137, 0.1754695177078247, 0.3257260322570801, 0.14141374826431274, -0.18063414096832275, 0.15982140600681305, 0.12000946700572968, 0.03381320834159851, -0.24792732298374176, 0.2200607806444168, -0.23402409255504608, -0.2706418037414551, -0.06200174614787102, -0.05097462236881256, 0.34428080916404724, 0.06030990555882454, 0.2206270694732666, -0.6242125034332275, -0.14986640214920044, 0.18798434734344482, -0.13408803939819336, 0.02548091486096382, -0.12700413167476654, -0.1718619167804718, 0.2807605266571045, -0.01574072241783142, -0.16984745860099792, -0.13088761270046234, -0.6381517052650452, 0.21832646429538727, -0.24571065604686737, -0.059999410063028336, -0.24763701856136322, -0.003355175256729126, 0.34685376286506653, 0.3662039041519165, -0.3867591619491577, -0.03154927119612694, 0.043353371322155, 0.2432163655757904, -0.23260101675987244, 0.14173844456672668, 0.289745569229126, 0.11891208589076996, 0.1578240990638733, 0.07780047506093979, 0.12350945174694061, -0.029258139431476593, -0.017391778528690338, 0.19786274433135986, 0.09178850799798965, -0.021546777337789536, 0.04258329048752785, 0.9465245008468628, 0.127202108502388, -0.14301644265651703, 0.07426834106445312, 0.27266380190849304, 0.032580696046352386, 0.12480992823839188, -0.4725273847579956, -0.18775488436222076, -0.49129101634025574, -0.09081462025642395, -0.059983983635902405, -0.08694373071193695, -0.27291762828826904, -0.2181338369846344, -0.24525943398475647, -0.022464165464043617, -0.3632632791996002, 0.2807118892669678, -0.296004980802536, 0.46026304364204407, -0.3082933723926544, -0.09416742622852325, -0.20733964443206787, 0.08081287890672684, 0.08514060080051422, 0.23850664496421814, 0.17342829704284668, -0.0834488794207573, -0.16807003319263458, -0.014206836000084877, -0.11852128058671951, 0.13455435633659363, 0.2522088289260864, 0.13152669370174408, 0.3322594165802002, 0.07806428521871567, -0.1138678789138794, 0.1220618262887001, 0.4627299904823303, 0.20867562294006348, -0.16589577496051788, 0.15734846889972687, -0.32786354422569275, 0.12145141512155533, -0.08239132165908813, 0.07779209315776825, 0.49755918979644775, -0.01846545934677124, 0.3593737483024597, -0.04510309919714928, -0.10215010493993759, 0.022715473547577858, 0.15794892609119415, -0.3318764865398407, -0.332722008228302, 0.16289259493350983, 0.05726732313632965, -0.2585119307041168, -0.10968955606222153, -0.13603584468364716, -0.18545010685920715, -0.23391515016555786, 0.12301722168922424, -0.344929575920105, 0.14549162983894348, -0.022473424673080444, -0.14986293017864227, -0.19778186082839966, -0.3036627173423767, 0.2583879828453064, 0.39527732133865356, -0.01099734753370285, 0.42210471630096436, 0.2796509265899658, 0.004262203350663185, -0.10413071513175964, 0.07851400971412659, 0.12598277628421783, 0.5822681784629822, -0.017435133457183838, -0.05488605797290802, 0.3104568123817444, 0.11395738273859024, -0.059965163469314575, -0.25251635909080505, 0.11069557815790176, 0.0937400683760643, 0.1800186187028885, -0.3549962341785431, -0.6526666879653931, 0.334307461977005, 0.11988377571105957, -0.016417644917964935, 0.2676442563533783, -0.1800002008676529, -0.02715846709907055, -0.17294363677501678, 0.10058802366256714, 0.775205671787262, -0.15520620346069336, 0.3944000005722046, -0.06323884427547455, 0.15033115446567535, 0.6983473300933838, -0.05560296028852463, -0.03998934105038643, -0.1071830540895462, -0.33710190653800964, -0.13706378638744354, -0.20369066298007965, 0.06857797503471375, 0.05214601010084152, 0.0013934709131717682, 0.41972050070762634, 0.27225261926651, 0.03754787519574165, 0.14096632599830627, 0.12258200347423553, 0.0015679411590099335, -0.3802136182785034, 0.2882520854473114, 0.05703414976596832, -0.2854049801826477, 0.033281248062849045, -0.17365556955337524, -0.06803804636001587, 0.13715627789497375, 0.4604474902153015, -0.3407553434371948, 0.016667701303958893, -0.3324926793575287, 0.42757219076156616, 0.05233307182788849, -0.4949777126312256, 0.20639553666114807, 0.2605952024459839, 0.10159292817115784, -0.39616793394088745, -0.07835105806589127, -0.11180548369884491, 0.11126962304115295, 0.14960059523582458, -0.0003983087372034788, -0.311487078666687, 0.7195601463317871, 0.10143554955720901, 0.04514981061220169, 0.13034674525260925, 0.12367299199104309, -0.5444217920303345, 0.010300785303115845, 0.1356310099363327, 0.33246004581451416, -0.1313909888267517, -0.0634453296661377, 0.20634710788726807, 0.16646654903888702, -0.18698954582214355, -0.06129055097699165, 0.5187668800354004, 0.15891653299331665, 0.12176793068647385, -0.2402181774377823, 0.18002256751060486, 0.04131549969315529, 0.28108537197113037, 0.40188685059547424, -0.1820598840713501, 0.5168130993843079, 0.31607794761657715, -0.1393345594406128, 0.05601866543292999, 0.0009995773434638977, 0.3106934726238251, -0.2032800316810608, 0.001054014079272747, -0.10567762702703476, 0.11828352510929108, -0.15576516091823578, -0.045477066189050674, 0.1343381106853485, -0.14309516549110413, -0.22804448008537292, -0.1898486316204071, -0.8206173181533813, 0.1827751100063324, 0.2167799025774002, 0.2640525698661804, -0.08028117567300797, 0.2745994031429291, -0.05461253225803375, 0.18535687029361725, -0.12225499004125595, 0.00336849014274776, 0.06674092262983322, -0.054186880588531494, 0.24936369061470032, 0.016413677483797073, -0.08490202575922012, -0.22080370783805847, -0.16374461352825165, 0.24390511214733124, 0.3040044605731964, -0.08777804672718048, -0.22677481174468994, 0.21026045083999634, 0.2475404441356659, 0.09566522389650345, 0.0984594002366066, -0.44077980518341064, 0.1387747824192047, -0.11378377676010132, 0.03851978853344917, 0.06802768260240555, 0.1434451937675476, 0.20757536590099335, 0.33606085181236267, 0.16381050646305084, -0.2880738079547882, 0.38033148646354675, -0.0001383945345878601, -0.021164879202842712, -0.042051590979099274, 0.2169080227613449, 0.08215753734111786, -0.14766466617584229, -0.28037238121032715, 0.1301385462284088, 0.5892834067344666, 0.034791793674230576, 0.2851288318634033, -0.16557836532592773, -0.3675881326198578, -0.2573433518409729, 0.5309368371963501, 0.25280070304870605, -0.08153641223907471, 0.1931474804878235, 0.35319575667381287, -0.004464862868189812, -0.10414295643568039, -0.02651204913854599, -0.03012886270880699, -0.3104455769062042, -0.06730102002620697, 0.12398572266101837, -0.2840942442417145, 0.2444491982460022, -0.1667875498533249, 0.040378306061029434, -0.15180443227291107, -0.07084313035011292, 0.13076552748680115, 0.06846524775028229, 0.09784701466560364, -0.06695379316806793, 0.3781863749027252, 0.5146379470825195, 0.021656394004821777, -0.11444976925849915, 0.23328861594200134, 0.4889966547489166, 0.18872499465942383, -0.24267184734344482, 0.4268557131290436, -0.3849388360977173, -0.12164279818534851, -0.017520174384117126, 0.09217619150876999, 0.14198821783065796, 0.03199217841029167, 0.34516671299934387, -0.22888273000717163, -0.2124127745628357, 0.0505082830786705, 0.3435332477092743, -0.09356366842985153, 0.043066490441560745, 0.06437622755765915, -0.2905021011829376, 0.1686883270740509, -0.1310354471206665, -0.05478067323565483, -0.2940129041671753, 0.3629511296749115, 0.05367480218410492, -0.08449962735176086, -0.22515930235385895, -0.11201467365026474, 0.3495309054851532, -0.015697188675403595, -0.13955959677696228, -0.3483988642692566, 0.11041542887687683, -0.07517145574092865, -0.27617567777633667, 0.328390896320343, -0.04088607802987099, 0.1548565775156021, -0.36759036779403687, 0.333091139793396, -0.0103437639772892, -0.014081262052059174, -0.1116197481751442, -0.06013990938663483, -0.11064893007278442, -0.3660544753074646, 0.3396121859550476, 0.052677005529403687, -0.09555546939373016, 0.07616691291332245, 0.15090587735176086, 0.04662713408470154, -0.5452865958213806, 0.24803242087364197, 0.10559546202421188, -0.34121039509773254, 0.057665273547172546, 0.10500138252973557, -0.38302603363990784, -0.2761792540550232, 0.3266507089138031, -0.1657506674528122, 0.16411492228507996, 0.029583804309368134, 0.008223183453083038, -0.0011718962341547012, 0.2708365023136139, 0.46180739998817444, 0.3440594971179962, -0.22244776785373688, -0.0835777297616005, -0.5636675953865051, -0.08274579793214798, 0.03283185139298439, -0.02982369437813759, -0.10658185184001923, 0.06726443022489548, 0.48950517177581787, 0.28323686122894287, 0.07074985653162003, -0.15176182985305786, 0.18468615412712097, 0.13128814101219177, -0.31602680683135986, -0.4371808171272278, 0.21746361255645752, -0.05003774166107178, 0.1379374861717224, -0.17961102724075317, 0.17290017008781433, 0.15306009352207184, -0.027280377224087715, -0.024144664406776428, 0.00006598234176635742, 0.23227965831756592, -0.14817196130752563, 0.28940683603286743, -0.11869733035564423, 0.2641400098800659, 0.09153562039136887, -0.11148395389318466, 0.21031859517097473, 0.162763312458992, -0.13488532602787018, 0.02835569530725479, -0.131672665476799, 0.3491154611110687, -0.4119987189769745, -0.06796246767044067, -0.40058380365371704, -0.05630029737949371, -0.06316617131233215, -0.027341680601239204, -0.5334420800209045, 0.011507142335176468, -0.13832756876945496, 0.11660744994878769, 0.2481079250574112, 0.4221417307853699, -0.24627083539962769, 0.3027280271053314, -0.32888150215148926, -0.00946829654276371, 0.32378679513931274, -0.4898204803466797, -0.1260198950767517, -0.2929736077785492, -0.051136136054992676, 0.09081880748271942, 0.35129350423812866, -0.5575187802314758, 0.015884853899478912, 0.369160532951355, -0.25331592559814453, 0.04127874597907066, 0.22955118119716644, -0.008468814194202423, 0.18617266416549683, -0.2222689986228943, 0.39935559034347534, -0.0821169838309288, -0.20842234790325165, 0.016435246914625168, -0.15354806184768677 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
Fantastic ! This will help pushing our IterableDataset state_dict implementation at https://github.com/huggingface/datasets/pull/6658 :) I'll check if there is anything missing to maker them work together, and add tests and some docs referring to the StatefulDataLoader :)
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
36
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger Fantastic ! This will help pushing our IterableDataset state_dict implementation at https://github.com/huggingface/datasets/pull/6658 :) I'll check if there is anything missing to maker them work together, and add tests and some docs referring to the StatefulDataLoader :)
[ -0.6076581478118896, 0.16840311884880066, -0.009039124473929405, 0.15778236091136932, 0.01520393043756485, -0.12502631545066833, 0.26245567202568054, 0.06707271933555603, 0.034385547041893005, -0.001626625657081604, -0.1298682689666748, 0.23947398364543915, -0.3492177724838257, 0.3442806899547577, 0.042981598526239395, -0.163898304104805, -0.19912293553352356, 0.3001435399055481, -0.22788763046264648, 0.3201977610588074, 0.1945633441209793, -0.23713432252407074, -0.06075935810804367, -0.19531743228435516, -0.2720574736595154, 0.06438824534416199, -0.08227384835481644, 0.1383729726076126, 0.13272662460803986, -0.3430708050727844, 0.5800055265426636, 0.13969874382019043, 0.38829565048217773, 0.30674147605895996, -0.00012100594904040918, 0.03065861016511917, 0.22060997784137726, -0.07530388236045837, -0.3801247775554657, -0.27728575468063354, -0.15495626628398895, -0.31534311175346375, 0.11255008727312088, -0.17484736442565918, 0.0856955274939537, -0.4928343594074249, 0.07988807559013367, -0.27650076150894165, 0.3231087327003479, -0.029004309326410294, 0.03924454748630524, 0.3728484809398651, -0.23180752992630005, 0.009494596160948277, -0.00843588262796402, 0.2923847436904907, 0.060083672404289246, 0.37539175152778625, 0.4970683753490448, -0.15489041805267334, -0.29012978076934814, 0.029297951608896255, -0.16073624789714813, -0.0012308117002248764, 0.0004888884723186493, -0.10516844689846039, -0.18410322070121765, -0.036407552659511566, -0.09103117138147354, 0.14469057321548462, 0.6792839169502258, -0.30789366364479065, -0.08412827551364899, -0.5291062593460083, 0.21491985023021698, -0.2261243313550949, 0.05172867327928543, -0.22960753738880157, -0.19531090557575226, -0.029976826161146164, -0.1457948535680771, -0.25518202781677246, -0.24131110310554504, 0.1873401701450348, -0.2142631560564041, 0.0345897413790226, -0.023864153772592545, 0.08401070535182953, 0.12154760956764221, 0.24533508718013763, 0.5365570783615112, -0.06347684562206268, 0.4734247028827667, 0.26179802417755127, -0.4491938352584839, -0.1955162137746811, -0.11434511095285416, -0.2543775737285614, 0.07756990939378738, 0.2757384777069092, 0.258502334356308, 0.015321271494030952, -0.19274728000164032, 0.19488856196403503, 0.42765018343925476, 0.06595802307128906, 0.28823286294937134, 0.1357836276292801, 0.2398928552865982, 0.1725052446126938, -0.11236236989498138, -0.06495068222284317, 0.00266042398288846, 0.0020987773314118385, 0.632214367389679, 0.045044250786304474, 0.21649965643882751, 0.06067407503724098, 0.010025294497609138, 0.24622225761413574, -0.21232527494430542, -0.17539000511169434, 0.19664223492145538, -0.01212853193283081, -0.06057183817028999, 0.4013916254043579, 0.011522755026817322, -0.1934797763824463, 0.038955703377723694, -0.30189162492752075, -0.07329684495925903, -0.26738661527633667, -0.13188275694847107, 0.4496634006500244, 0.26559463143348694, -0.41317397356033325, 0.17804257571697235, -0.0092239398509264, 0.11866258084774017, 0.2385273575782776, 0.4095265567302704, -0.03733135014772415, 0.05121288076043129, 0.11920949816703796, -0.13308125734329224, 0.05384024232625961, 0.15576758980751038, 0.015168741345405579, -0.1341417133808136, 0.37428030371665955, -0.18845096230506897, -0.2667781710624695, -0.015377754345536232, 0.08930280804634094, -0.11381403356790543, -0.10072052478790283, -0.4505294859409332, 0.09206713736057281, 0.20188704133033752, -0.18355068564414978, 0.3520926535129547, -0.2888498902320862, -0.1446935534477234, -0.2978977560997009, 0.1797102838754654, -0.04436139762401581, -0.5362593531608582, -0.4247121810913086, -0.018968850374221802, -0.2442784607410431, 0.07147523760795593, 0.16033802926540375, -0.43339934945106506, 0.4837413728237152, -0.09697109460830688, 0.06701540946960449, 0.3194504678249359, -0.05374755337834358, -0.49496665596961975, 0.11408597230911255, -0.006597287952899933, 0.24706222116947174, -0.2580462098121643, 0.31758368015289307, 0.3788699507713318, -0.05268791317939758, -0.02008814364671707, 0.4067661166191101, -0.2735200822353363, -0.17137588560581207, 0.023224759846925735, -0.20795878767967224, 0.4743562936782837, 0.6150792837142944, 0.3496118187904358, -0.07118461281061172, -0.000012911856174468994, 0.004457497037947178, 0.2825327217578888, 0.09946431964635849, 0.2671304941177368, 0.08216774463653564, 0.0069611892104148865, 0.09907522052526474, -0.02863100729882717, -0.6125397086143494, -0.506019651889801, 0.2502918243408203, -0.039249539375305176, -0.4262593388557434, 0.2463788539171219, -0.006159959360957146, 0.138291597366333, 0.07230968773365021, -0.36090779304504395, -0.21598123013973236, -0.00027136504650115967, 0.03670781850814819, -0.12229634821414948, -0.016032380983233452, -0.4599772095680237, 0.2597116529941559, -0.37252089381217957, 0.08387000113725662, -0.27825039625167847, 0.44481828808784485, 0.37608471512794495, -0.12229934334754944, -0.37731531262397766, 0.0754266306757927, -0.1060740277171135, -0.13124606013298035, 0.12484247982501984, 0.3348035216331482, -0.07975868880748749, 0.28097623586654663, -0.11730202287435532, 0.05922606587409973, 0.006836761720478535, 0.09527382254600525, 0.00530325248837471, 0.013887937180697918, -0.11147592216730118, -0.4538629949092865, 0.061089467257261276, 0.35407882928848267, -0.252618670463562, 0.23529711365699768, 0.02229921519756317, -0.0416390523314476, 0.039502449333667755, -0.13882237672805786, -0.42272040247917175, 0.35331854224205017, 0.2468654215335846, -0.35363829135894775, 0.23701231181621552, -0.05294472724199295, -0.34463754296302795, -0.04849352687597275, 0.07606448233127594, -0.359753280878067, 0.08385108411312103, 0.08443394303321838, -0.3815464973449707, 0.1105855330824852, 0.11799200624227524, 0.25203126668930054, 0.6226377487182617, -0.0986839011311531, 0.1344040036201477, -0.03653698414564133, 0.0713358148932457, 0.022220592945814133, 0.0911669060587883, 0.012114949524402618, 0.36718258261680603, 0.392939031124115, 0.05582226440310478, -0.11263834685087204, 0.046845003962516785, -0.067062146961689, 0.06007196009159088, 0.12931637465953827, 0.060544561594724655, 0.04993140697479248, -0.24748608469963074, -0.25933513045310974, -0.24017223715782166, -0.03416942059993744, -0.16071917116641998, -0.15194369852542877, -0.3175579309463501, 0.5609288215637207, 0.11455543339252472, 0.21837249398231506, -0.1823267936706543, 0.39503002166748047, 0.03257790952920914, -0.292973130941391, 0.0502295047044754, -0.29891762137413025, 0.12574368715286255, 0.055951330810785294, 0.18163453042507172, -0.2430415153503418, 0.30112916231155396, 0.21080705523490906, -0.1293770670890808, -0.40050917863845825, 0.17686495184898376, 0.43982046842575073, 0.14874254167079926, -0.0998355820775032, 0.17148855328559875, 0.26732802391052246, 0.01581478863954544, -0.11990628391504288, 0.23600050806999207, -0.2630901038646698, -0.17147576808929443, 0.00955016165971756, -0.04237055405974388, 0.35384073853492737, 0.03975018486380577, 0.18905070424079895, -0.5079370141029358, -0.14157132804393768, 0.13716527819633484, 0.02615278959274292, -0.015586495399475098, 0.0243103988468647, -0.1306689977645874, 0.32480207085609436, -0.041911881417036057, -0.266633540391922, -0.2131197154521942, -0.6732811331748962, 0.32055357098579407, -0.22248557209968567, -0.02782187983393669, -0.1876528412103653, -0.0964595153927803, 0.22763977944850922, 0.39028799533843994, -0.5156320333480835, -0.10957149416208267, -0.004782618954777718, 0.31916844844818115, -0.2280743420124054, 0.1076107770204544, 0.2888472378253937, 0.05262046307325363, 0.1315452605485916, 0.08306916803121567, 0.16962109506130219, -0.004986591637134552, 0.09002440422773361, 0.2066992223262787, 0.03347745165228844, -0.033344656229019165, 0.1041945368051529, 0.8833612203598022, 0.20560096204280853, -0.21704410016536713, 0.06816443055868149, 0.23875074088573456, 0.05900299549102783, 0.026965904980897903, -0.3907284438610077, -0.13839901983737946, -0.41475775837898254, -0.08489155769348145, -0.015598326921463013, -0.16445499658584595, -0.22352609038352966, -0.12309920787811279, -0.24479083716869354, 0.13385042548179626, -0.4013146460056305, 0.25364401936531067, -0.21736443042755127, 0.430584579706192, -0.2717709243297577, -0.07555779814720154, -0.14615322649478912, 0.05009522661566734, 0.07247728109359741, 0.2820471525192261, 0.22450456023216248, -0.036830756813287735, -0.363200843334198, 0.037169814109802246, -0.11714471131563187, 0.019127435982227325, 0.21329852938652039, 0.18793222308158875, 0.3298617899417877, -0.03734319657087326, -0.15412814915180206, 0.27725380659103394, 0.49534595012664795, 0.09124104678630829, -0.117062047123909, 0.09022641181945801, -0.24371778964996338, 0.09879135340452194, -0.1148284524679184, -0.010630160570144653, 0.4523807466030121, -0.03810500726103783, 0.48825493454933167, -0.01726594567298889, 0.019033554941415787, 0.09683717042207718, 0.1669929325580597, -0.35178378224372864, -0.39935463666915894, 0.1610265076160431, 0.02317163348197937, -0.30896326899528503, -0.08047846704721451, -0.1563202440738678, -0.19510780274868011, -0.12205290794372559, 0.04311149939894676, -0.41067010164260864, 0.11408060044050217, -0.12624198198318481, -0.05590663105249405, -0.10654082894325256, -0.169587641954422, 0.30179065465927124, 0.4428945481777191, -0.1169876754283905, 0.3355504870414734, 0.2820548713207245, -0.01363714411854744, -0.14482152462005615, 0.089044488966465, 0.14258266985416412, 0.45773956179618835, -0.0055090636014938354, -0.0834389477968216, 0.42409566044807434, 0.19445335865020752, -0.02339904010295868, -0.3583391308784485, 0.13381700217723846, -0.008638817816972733, 0.2380252480506897, -0.32259419560432434, -0.6557010412216187, 0.3209267556667328, -0.04749006778001785, -0.011125832796096802, 0.22845809161663055, -0.16690169274806976, -0.08645380288362503, -0.03608778119087219, 0.05965995043516159, 0.6732409596443176, -0.060534536838531494, 0.35435277223587036, 0.0086380485445261, 0.35836106538772583, 0.7334628701210022, 0.04618547111749649, 0.04380742460489273, -0.11454914510250092, -0.449617862701416, -0.16852723062038422, -0.17680564522743225, 0.03348623216152191, 0.08967992663383484, -0.12791912257671356, 0.4051387906074524, 0.38175010681152344, 0.103861004114151, 0.08447357267141342, 0.041735321283340454, -0.06396740674972534, -0.375072717666626, 0.12721030414104462, 0.10199011862277985, -0.30683261156082153, 0.011316657066345215, -0.1576765775680542, 0.0108889639377594, 0.22647488117218018, 0.49229001998901367, -0.32603514194488525, -0.0368543341755867, -0.33821120858192444, 0.2667030692100525, 0.14837010204792023, -0.4647672772407532, 0.05480612441897392, 0.17414896190166473, 0.18051080405712128, -0.23464398086071014, -0.09767552465200424, -0.008320804685354233, 0.028472688049077988, 0.16434673964977264, 0.07102207839488983, -0.3130018413066864, 0.7795284986495972, 0.16712918877601624, -0.0029765665531158447, 0.13445138931274414, 0.08846236020326614, -0.5776116847991943, 0.01967480778694153, 0.0066525861620903015, 0.13682185113430023, -0.16026444733142853, -0.1647152453660965, 0.17081210017204285, 0.12791258096694946, -0.24772462248802185, -0.015059545636177063, 0.434314489364624, 0.21396329998970032, 0.18352273106575012, -0.15852147340774536, 0.1714394986629486, 0.01215849258005619, 0.2590128779411316, 0.2550923228263855, -0.02687719091773033, 0.4608527421951294, 0.32403916120529175, -0.14576464891433716, 0.024493753910064697, 0.003913894295692444, 0.22476617991924286, -0.17478814721107483, -0.007396555505692959, -0.1950453221797943, 0.22212670743465424, -0.2137790024280548, -0.05370359495282173, 0.14090976119041443, -0.1765536665916443, -0.2869955599308014, -0.2567515969276428, -0.7837740182876587, 0.15263360738754272, 0.2629772126674652, 0.3217701315879822, 0.0712331160902977, 0.22656820714473724, -0.16292983293533325, 0.12048956006765366, -0.17454123497009277, -0.011236749589443207, 0.07063324749469757, 0.06426627188920975, 0.1529545783996582, -0.02040611207485199, 0.03778247535228729, -0.31110239028930664, -0.1623418778181076, 0.3512253761291504, 0.2630564868450165, -0.14511865377426147, -0.22471389174461365, 0.19485251605510712, 0.2903987169265747, -0.018930422142148018, -0.02598794922232628, -0.3549330234527588, 0.17908741533756256, -0.20049764215946198, 0.05060960724949837, 0.01976826786994934, 0.11865057051181793, 0.3011983335018158, 0.3581364154815674, 0.07762782275676727, -0.19314412772655487, 0.3004845380783081, -0.16254636645317078, -0.06801913678646088, -0.049025826156139374, 0.19302229583263397, -0.00676210131496191, -0.1216663122177124, -0.17991288006305695, 0.1850026249885559, 0.5677928328514099, -0.06317618489265442, 0.4700847864151001, -0.18171465396881104, -0.32005608081817627, -0.23458077013492584, 0.5760124921798706, 0.235085591673851, -0.1507522612810135, 0.1227860301733017, 0.4507720172405243, 0.06665156036615372, -0.1653800904750824, -0.033788226544857025, 0.08156567811965942, -0.15248212218284607, 0.01388649269938469, 0.13565707206726074, -0.3558906018733978, 0.22351133823394775, -0.14095662534236908, 0.0715898722410202, -0.0619516484439373, -0.15903085470199585, 0.05849418044090271, 0.09856486320495605, 0.08704179525375366, -0.1640869379043579, 0.3501569926738739, 0.562909722328186, 0.07760245352983475, -0.04861949384212494, 0.18754783272743225, 0.4112028181552887, 0.17710363864898682, -0.23698770999908447, 0.32618439197540283, -0.5015109181404114, -0.10754416882991791, 0.09306885302066803, -0.05505029857158661, 0.21946552395820618, 0.12535697221755981, 0.26391294598579407, -0.10667882114648819, -0.1252223253250122, 0.12488020211458206, 0.2778093218803406, -0.13782250881195068, 0.030623380094766617, -0.07418453693389893, -0.24435675144195557, 0.19106918573379517, -0.03381364047527313, 0.022592542693018913, -0.3370012044906616, 0.2488759458065033, 0.054147250950336456, -0.048241689801216125, -0.32793036103248596, -0.015187114477157593, 0.2890361547470093, 0.0280546173453331, -0.17185544967651367, -0.3054383397102356, 0.142574280500412, -0.049727119505405426, -0.283151239156723, 0.2771416902542114, -0.13487690687179565, 0.035260654985904694, -0.3460315465927124, 0.5001907348632812, -0.013003792613744736, -0.05089491978287697, -0.15213903784751892, -0.11231058835983276, -0.11940369009971619, -0.364020973443985, 0.4150448739528656, 0.09635994583368301, -0.05771459639072418, 0.1535116732120514, 0.14526651799678802, 0.01748432219028473, -0.5354636311531067, 0.07752840220928192, 0.18170779943466187, -0.2409413456916809, 0.04002249240875244, 0.1074957400560379, -0.38526615500450134, -0.24118727445602417, 0.37608176469802856, -0.252962589263916, 0.2977737784385681, 0.005872595123946667, 0.05532702058553696, -0.11101384460926056, 0.26751458644866943, 0.47220519185066223, 0.21490386128425598, -0.21423327922821045, 0.02774185687303543, -0.5327902436256409, -0.09662944823503494, -0.022000733762979507, -0.0034894030541181564, 0.02283298224210739, 0.14111311733722687, 0.3878859281539917, 0.26987820863723755, 0.028959356248378754, -0.11804083734750748, 0.2002813071012497, 0.1810721755027771, -0.24463967978954315, -0.5199782848358154, 0.10921218246221542, -0.007003327831625938, 0.10456736385822296, -0.14797401428222656, 0.2750668525695801, 0.12595222890377045, 0.003719016909599304, -0.0072738006711006165, 0.033311426639556885, 0.07196615636348724, -0.19240158796310425, 0.3906024694442749, -0.06268145143985748, 0.08702835440635681, 0.03382256627082825, -0.06541189551353455, 0.15664836764335632, 0.12130587548017502, -0.1881931573152542, -0.04573687165975571, -0.14177186787128448, 0.39783820509910583, -0.2591155171394348, -0.10202288627624512, -0.3892766535282135, -0.09936028718948364, -0.03738047182559967, -0.11926045268774033, -0.5705929398536682, 0.02310951240360737, -0.1391812562942505, 0.12216217070817947, 0.09801815450191498, 0.37458133697509766, -0.2670455873012543, 0.3356671631336212, -0.2655448913574219, -0.03457842767238617, 0.33677881956100464, -0.5460516810417175, -0.05630567669868469, -0.16759051382541656, -0.12968096137046814, 0.17744459211826324, 0.20985057950019836, -0.5805466175079346, -0.03723973035812378, 0.4028836786746979, -0.2460109293460846, 0.026809949427843094, 0.19706527888774872, 0.052307285368442535, 0.279846727848053, -0.20882254838943481, 0.5125685930252075, 0.03150256723165512, -0.3179551661014557, -0.03641984239220619, -0.18711668252944946 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
Ah I just saw this disclaimer in the torchdata README and it feels like people should not rely on it. Should the StatefulDataLoader live elsewhere @andrewkho ? > ⚠️ As of July 2023, we have paused active development on TorchData and have paused new releases. We have learnt a lot from building it and hearing from users, but also believe we need to re-evaluate the technical design and approach given how much the industry has changed since we began the project. During the rest of 2023 we will be re-evaluating our plans in this space. Please reach out if you suggestions or comments (please use https://github.com/pytorch/data/issues/1196 for feedback).
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
108
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger Ah I just saw this disclaimer in the torchdata README and it feels like people should not rely on it. Should the StatefulDataLoader live elsewhere @andrewkho ? > ⚠️ As of July 2023, we have paused active development on TorchData and have paused new releases. We have learnt a lot from building it and hearing from users, but also believe we need to re-evaluate the technical design and approach given how much the industry has changed since we began the project. During the rest of 2023 we will be re-evaluating our plans in this space. Please reach out if you suggestions or comments (please use https://github.com/pytorch/data/issues/1196 for feedback).
[ -0.4684315621852875, 0.1632944941520691, -0.044503167271614075, 0.2255735844373703, 0.06937481462955475, -0.1226317510008812, 0.2561340034008026, 0.037055276334285736, 0.04639343544840813, 0.0850113034248352, -0.11960995197296143, 0.23862218856811523, -0.2816274166107178, 0.07347527146339417, 0.03566592186689377, -0.23026549816131592, -0.16038337349891663, 0.19383499026298523, -0.26997724175453186, 0.2749171257019043, 0.16057613492012024, -0.3123933672904968, -0.0680174008011818, -0.18697474896907806, -0.27724844217300415, 0.14995712041854858, -0.043759673833847046, 0.14511337876319885, 0.17453335225582123, -0.3052919805049896, 0.5231823921203613, 0.01481211744248867, 0.3283849060535431, 0.36250367760658264, -0.0001234434894286096, 0.00471854954957962, 0.29690539836883545, -0.12751126289367676, -0.44778579473495483, -0.34454041719436646, 0.19359809160232544, -0.3040328025817871, 0.2810075581073761, -0.10323407500982285, 0.04519671946763992, -0.4110102951526642, 0.12826712429523468, -0.5059740543365479, 0.22331702709197998, 0.06068534031510353, 0.031109612435102463, 0.25221309065818787, -0.2378513664007187, 0.0034632044844329357, 0.13376358151435852, 0.29606783390045166, 0.040938057005405426, 0.396220862865448, 0.6024078130722046, -0.0618462860584259, -0.4370526671409607, 0.02285621128976345, -0.2762514650821686, 0.023813560605049133, 0.035214878618717194, -0.16179262101650238, -0.3061429560184479, -0.07753244042396545, -0.04268722981214523, 0.06431153416633606, 0.8455489277839661, -0.31039419770240784, -0.07771478593349457, -0.3021346926689148, 0.23790428042411804, -0.10994430631399155, 0.08959174901247025, -0.11075931042432785, -0.2879440486431122, -0.04470216855406761, -0.04709217697381973, -0.19953876733779907, -0.19671981036663055, 0.15935654938220978, -0.2120961993932724, 0.1456453800201416, 0.01613704115152359, 0.1037435382604599, 0.12244559824466705, 0.33490312099456787, 0.787013828754425, 0.0462210476398468, 0.4653068482875824, 0.20423659682273865, -0.35738417506217957, -0.014746200293302536, -0.22048571705818176, -0.2741779386997223, 0.02371976524591446, 0.1858569085597992, 0.3898250460624695, 0.08578315377235413, -0.17211447656154633, 0.19272521138191223, 0.23935070633888245, 0.05007075145840645, 0.3429928421974182, 0.05768779665231705, 0.23606768250465393, -0.05618444085121155, -0.0012779347598552704, -0.03658359497785568, -0.06173905357718468, -0.036110688000917435, 0.5574024319648743, 0.13438743352890015, 0.03733550012111664, 0.028122995048761368, -0.05304410681128502, 0.21928748488426208, -0.2347719967365265, -0.17533090710639954, 0.20106205344200134, 0.10672597587108612, -0.021215006709098816, 0.3601970076560974, 0.18923737108707428, -0.258350133895874, 0.14894992113113403, -0.3355790972709656, -0.031017180532217026, -0.26087304949760437, -0.16348206996917725, 0.3517216742038727, 0.27584201097488403, -0.573774516582489, 0.29447707533836365, -0.039872635155916214, -0.022878684103488922, 0.32530662417411804, 0.22233177721500397, -0.08150334656238556, 0.1481713056564331, 0.2021016925573349, -0.1908550262451172, 0.02525905705988407, 0.15082401037216187, 0.2797740697860718, -0.10844504088163376, 0.47176268696784973, -0.21698406338691711, -0.3330221474170685, -0.17137306928634644, 0.03698525205254555, 0.038200147449970245, 0.021829012781381607, -0.4246979057788849, -0.06095374748110771, 0.1536281257867813, -0.13458134233951569, 0.44681793451309204, -0.22200758755207062, -0.09849219024181366, -0.2922210693359375, 0.14465965330600739, 0.06959545612335205, -0.5117592215538025, -0.25170838832855225, 0.047439929097890854, -0.27457258105278015, 0.09346245974302292, 0.09925524890422821, -0.47029855847358704, 0.5442639589309692, -0.09388467669487, -0.16316238045692444, 0.3203197717666626, -0.11763082444667816, -0.3830057680606842, -0.00017472088802605867, -0.011121585965156555, 0.09208667278289795, -0.177799791097641, 0.3657896816730499, 0.35631656646728516, 0.030939199030399323, 0.1105920821428299, 0.2701897621154785, -0.1522795557975769, -0.15400594472885132, 0.004825804382562637, -0.11058448255062103, 0.5418499112129211, 0.6284847259521484, 0.19657018780708313, -0.13020071387290955, -0.06200564652681351, -0.021152321249246597, 0.15132233500480652, 0.1327984631061554, 0.15707577764987946, 0.09645398706197739, -0.07429167628288269, 0.07481109350919724, -0.07962319999933243, -0.42436859011650085, -0.6178234219551086, 0.1974974274635315, 0.005190074443817139, -0.4331037104129791, 0.31074896454811096, 0.10734575986862183, 0.17704147100448608, 0.1258614957332611, -0.20290513336658478, -0.27523887157440186, -0.040243588387966156, 0.020360656082630157, -0.15863849222660065, -0.026415757834911346, -0.44596052169799805, 0.29648980498313904, -0.5076148509979248, 0.14705877006053925, -0.17413894832134247, 0.38349077105522156, 0.24550165235996246, -0.11464341729879379, -0.2746227979660034, 0.024816814810037613, -0.09500480443239212, -0.15027794241905212, 0.057390064001083374, 0.3422200083732605, -0.07270747423171997, 0.2615032196044922, -0.06698690354824066, -0.014768004417419434, -0.02065191976726055, 0.06670941412448883, 0.1407947540283203, 0.11473898589611053, -0.04638511687517166, -0.4113754332065582, 0.045764483511447906, 0.27915632724761963, -0.23657764494419098, 0.18924325704574585, -0.11279186606407166, -0.05821705609560013, 0.08482901006937027, -0.022407567128539085, -0.3303142786026001, 0.45172151923179626, 0.34268176555633545, -0.2870955169200897, 0.2894679307937622, -0.01931648515164852, -0.3120471239089966, -0.12001580744981766, -0.12537628412246704, -0.341776043176651, 0.08035103976726532, 0.20980024337768555, -0.40637531876564026, 0.010484740138053894, 0.22375698387622833, -0.006566993892192841, 0.6496227383613586, -0.11174265295267105, 0.12296821177005768, -0.11215492337942123, 0.1920505166053772, -0.05123063549399376, 0.15871186554431915, 0.03048202395439148, 0.21720395982265472, 0.3359147310256958, 0.08720330893993378, -0.05629461631178856, 0.0663556158542633, -0.05095478147268295, -0.027179688215255737, 0.1576663851737976, 0.08070400357246399, 0.10501422733068466, -0.22958147525787354, -0.25879406929016113, -0.24206629395484924, -0.13648678362369537, -0.22758561372756958, -0.14914442598819733, -0.2378651350736618, 0.5390133261680603, 0.10608653724193573, 0.2521804869174957, -0.08374321460723877, 0.4110638499259949, 0.0252694059163332, -0.2870107889175415, -0.04730244725942612, -0.3029201626777649, 0.16045242547988892, 0.018440213054418564, 0.14197735488414764, -0.15868663787841797, 0.3048076629638672, 0.11545071750879288, 0.05727357417345047, -0.46521642804145813, 0.1568710207939148, 0.3510052263736725, 0.18134596943855286, -0.181796133518219, 0.15553916990756989, 0.1995229721069336, 0.07190506160259247, -0.23264005780220032, 0.029598690569400787, -0.3369595408439636, -0.22507575154304504, -0.008630523458123207, -0.12317415326833725, 0.39434123039245605, 0.06775185465812683, 0.02275228500366211, -0.4704383909702301, -0.183672696352005, 0.15964046120643616, -0.07723523676395416, 0.06970004737377167, -0.19907823204994202, -0.07063940912485123, 0.35154008865356445, -0.16862618923187256, -0.1573503613471985, -0.17200659215450287, -0.7571275234222412, 0.2820398509502411, -0.13816945254802704, -0.08037270605564117, -0.1525510847568512, -0.04249195009469986, 0.3133639991283417, 0.3913499116897583, -0.6300241351127625, -0.02138688787817955, 0.1331908255815506, 0.23908951878547668, -0.3069515824317932, 0.03676065802574158, 0.40505915880203247, 0.06475899368524551, 0.08696471899747849, 0.13349184393882751, 0.13325166702270508, -0.09368947893381119, 0.012381892651319504, 0.3501379191875458, -0.026423007249832153, -0.02866116166114807, 0.07343751192092896, 0.9377206563949585, 0.06470152735710144, -0.331969678401947, -0.02414187788963318, 0.31508737802505493, 0.10537712275981903, -0.0712364986538887, -0.3685794472694397, -0.08480530977249146, -0.4109257161617279, -0.09072993695735931, -0.023793011903762817, -0.18621590733528137, -0.2552913427352905, -0.13455486297607422, -0.38269490003585815, -0.03283584490418434, -0.35395699739456177, 0.41084039211273193, -0.3349877893924713, 0.4477746784687042, -0.3737538754940033, 0.0097581148147583, -0.14209306240081787, 0.007523790001869202, 0.11093774437904358, 0.2985510230064392, 0.30226635932922363, -0.07197730988264084, -0.11497250199317932, 0.09413465857505798, -0.08005032688379288, 0.0856628343462944, 0.20211225748062134, 0.21944446861743927, 0.3436174690723419, -0.013378150761127472, -0.1189538985490799, 0.3414880335330963, 0.34258341789245605, 0.27428460121154785, -0.167002871632576, 0.03632213920354843, -0.22920583188533783, 0.059329621493816376, -0.014303363859653473, 0.07477325201034546, 0.4919596016407013, 0.006688378751277924, 0.3263104557991028, -0.008358463644981384, -0.023800477385520935, 0.05791819840669632, 0.25588539242744446, -0.27664220333099365, -0.3597952127456665, 0.114845871925354, 0.12684336304664612, -0.28733015060424805, 0.03033970296382904, -0.16134217381477356, -0.2822533845901489, -0.18410325050354004, 0.04871315136551857, -0.31596529483795166, 0.09174589812755585, -0.18550626933574677, -0.16237089037895203, -0.09893897920846939, -0.2724422812461853, 0.26809161901474, 0.40609586238861084, 0.047825075685977936, 0.493058979511261, 0.3163805305957794, 0.028586558997631073, 0.02251366525888443, 0.19579127430915833, 0.16505129635334015, 0.4632341265678406, 0.09179680049419403, -0.05788154900074005, 0.3425796627998352, -0.04682176560163498, -0.05640549957752228, -0.2203475534915924, 0.11403729766607285, -0.12147115170955658, 0.14935781061649323, -0.28078731894493103, -0.5617395639419556, 0.409391850233078, -0.04616240784525871, -0.009602844715118408, 0.32368338108062744, -0.2739742398262024, -0.02256586216390133, -0.025677913799881935, 0.3382737934589386, 0.9359152913093567, -0.12349113821983337, 0.3635319173336029, -0.16139766573905945, 0.232762411236763, 0.5489054322242737, -0.13282325863838196, -0.025813210755586624, -0.14503200352191925, -0.3315035104751587, -0.14790761470794678, -0.22702819108963013, 0.11779377609491348, -0.13423234224319458, -0.09804361313581467, 0.3414286971092224, 0.37925225496292114, 0.17272800207138062, 0.1050041988492012, 0.01117561012506485, -0.11579301208257675, -0.4042949676513672, 0.3242315649986267, 0.041679635643959045, -0.3786919116973877, 0.13724032044410706, -0.1425270140171051, 0.05053887143731117, 0.1470497101545334, 0.4079551100730896, -0.2548021376132965, -0.1192987784743309, -0.4293278753757477, 0.1967432051897049, 0.09578961879014969, -0.6438983678817749, 0.07122960686683655, 0.2988811731338501, 0.16626188158988953, -0.19225037097930908, -0.06044059246778488, -0.06485731899738312, 0.10658763349056244, 0.1289733350276947, 0.027936117723584175, -0.25879180431365967, 0.6961451172828674, 0.11587641388177872, 0.050489239394664764, 0.20919787883758545, 0.05507080256938934, -0.5871214270591736, -0.020051106810569763, 0.09193024784326553, 0.32405906915664673, -0.0944831445813179, -0.10471586883068085, 0.18677523732185364, 0.05413706973195076, -0.22568094730377197, -0.014227062463760376, 0.47474318742752075, 0.19483201205730438, 0.02958444505929947, -0.12857921421527863, 0.13400427997112274, -0.04221944138407707, 0.45229896903038025, 0.25966206192970276, -0.11347011476755142, 0.38794100284576416, 0.268801748752594, -0.22070719301700592, 0.00006119534373283386, 0.07335809618234634, 0.2722422480583191, -0.26762205362319946, -0.10307011753320694, -0.2319168895483017, 0.16896061599254608, -0.16452915966510773, 0.05308033898472786, 0.05226103588938713, -0.16916948556900024, -0.3731985092163086, -0.1173790842294693, -0.8480314612388611, 0.15753227472305298, 0.14111171662807465, 0.30995190143585205, -0.07951857149600983, 0.22862714529037476, -0.061017848551273346, 0.08517187833786011, -0.1560201495885849, 0.07915053516626358, 0.12351395934820175, 0.11733227223157883, 0.09113907814025879, 0.010812249034643173, -0.08495421707630157, -0.2258845716714859, -0.16400441527366638, 0.43522775173187256, 0.2735837399959564, -0.13982489705085754, -0.17051160335540771, 0.21759392321109772, 0.27095305919647217, 0.10986337810754776, -0.13023339211940765, -0.4257775545120239, 0.21740330755710602, -0.12477332353591919, 0.013106770813465118, 0.1155201718211174, 0.1503118872642517, 0.29634737968444824, 0.38189929723739624, 0.29786643385887146, -0.1446039080619812, 0.2173297107219696, -0.23720768094062805, -0.007546663284301758, -0.08616513758897781, 0.10957146435976028, -0.09685259312391281, -0.12828253209590912, -0.24477683007717133, 0.15719975531101227, 0.4823794364929199, 0.0824621170759201, 0.42340949177742004, -0.041057929396629333, -0.28519296646118164, -0.29650235176086426, 0.38742634654045105, 0.15511170029640198, -0.14611491560935974, 0.02859448827803135, 0.510895848274231, 0.026972675696015358, -0.17597627639770508, -0.05186236649751663, -0.23401135206222534, -0.16215713322162628, -0.0769304484128952, 0.08915205299854279, -0.2200874537229538, 0.1508997678756714, 0.019027747213840485, 0.03308429196476936, -0.11224249750375748, -0.1817893385887146, 0.0182715505361557, 0.15428440272808075, 0.030910108238458633, -0.18805450201034546, 0.5049130320549011, 0.5127257108688354, 0.08634530752897263, 0.06338222324848175, 0.24985119700431824, 0.6350144743919373, 0.21462300419807434, -0.18214784562587738, 0.3183329105377197, -0.37819573283195496, -0.21315525472164154, 0.004051238298416138, 0.01541859656572342, 0.12697942554950714, 0.015655286610126495, 0.34628626704216003, -0.1577608287334442, -0.12359390407800674, 0.08030091226100922, 0.23859594762325287, -0.1300855576992035, 0.016288617625832558, 0.01195080578327179, -0.23769226670265198, 0.2665591537952423, -0.021596062928438187, -0.05141643062233925, -0.3177605867385864, 0.25249066948890686, 0.12922713160514832, -0.2090248018503189, -0.17471253871917725, -0.0525369718670845, 0.2365272343158722, -0.010866835713386536, -0.06620451807975769, -0.29859235882759094, 0.19486349821090698, -0.04674452543258667, -0.23980417847633362, 0.2301996797323227, -0.13151447474956512, 0.024504683911800385, -0.39588016271591187, 0.4704437851905823, -0.10144220292568207, -0.03561117500066757, -0.11548317223787308, 0.0526314415037632, -0.00662483274936676, -0.3573979437351227, 0.3528251051902771, 0.09652573615312576, -0.06359634548425674, 0.29772326350212097, 0.14667873084545135, 0.10462619364261627, -0.3550380766391754, 0.22334818542003632, 0.22287090122699738, -0.3131944537162781, -0.027600619941949844, 0.09251709282398224, -0.37333714962005615, -0.1953994333744049, 0.19236315786838531, -0.2396152913570404, 0.18486005067825317, 0.014957844279706478, 0.026562277227640152, -0.07868427038192749, 0.2662827968597412, 0.4004892110824585, 0.2104703187942505, -0.2508489489555359, -0.09865213930606842, -0.4456142783164978, -0.05775982886552811, 0.045336730778217316, 0.14776557683944702, -0.059748612344264984, 0.08177445083856583, 0.3821197748184204, 0.36598098278045654, -0.0274517685174942, -0.22045591473579407, 0.1194506511092186, 0.12009382992982864, -0.292462557554245, -0.46519553661346436, -0.012678556144237518, 0.03495723754167557, 0.05535092204809189, -0.1318538933992386, 0.22772784531116486, 0.07955217361450195, -0.0169137641787529, -0.09145361185073853, -0.03246425837278366, 0.18962426483631134, 0.10529406368732452, 0.5133423209190369, -0.2695785164833069, -0.042918622493743896, 0.1079687550663948, -0.09756629168987274, 0.08865490555763245, 0.08154087513685226, -0.013144213706254959, -0.05923409014940262, 0.012796886265277863, 0.2864067554473877, -0.21528539061546326, -0.26681140065193176, -0.4090515673160553, 0.027764512225985527, -0.05850929766893387, 0.009014014154672623, -0.6770235896110535, 0.03354158252477646, -0.1432492434978485, 0.03325832635164261, 0.12346887588500977, 0.43410274386405945, -0.1840875893831253, 0.26875513792037964, -0.43745940923690796, 0.02966349385678768, 0.3699382543563843, -0.42146673798561096, 0.05294758453965187, -0.13498665392398834, -0.10113480687141418, 0.38351941108703613, 0.3282311260700226, -0.7547959685325623, 0.040491022169589996, 0.36713263392448425, -0.2735729515552521, 0.04560748115181923, 0.15001428127288818, -0.05220801755785942, 0.28785941004753113, -0.25678393244743347, 0.4797363579273224, -0.017212189733982086, -0.13984479010105133, -0.0851656123995781, -0.18823076784610748 ]
https://github.com/huggingface/datasets/issues/5454
Save and resume the state of a DataLoader
@lhoestq Good find, we are in the midst of updating this disclaimer as we're re-starting development and regular releases, though our approach will be to iterate on DL V1 (ie StatefulDataLoader) instead of continuing development on datapipes+DLV2. Let's discuss on a call at some point to figure out the best path forward!
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger
52
Save and resume the state of a DataLoader It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be saved and reloaded per node and worker. For iterable datasets, this requires to save the state of the dataset iterator, which includes: - the current shard idx and row position in the current shard - the epoch number - the rng state - the shuffle buffer Right now you can already resume the data loading of an iterable dataset by using `IterableDataset.skip` but it takes a lot of time because it re-iterates on all the past data until it reaches the resuming point. cc @stas00 @sgugger @lhoestq Good find, we are in the midst of updating this disclaimer as we're re-starting development and regular releases, though our approach will be to iterate on DL V1 (ie StatefulDataLoader) instead of continuing development on datapipes+DLV2. Let's discuss on a call at some point to figure out the best path forward!
[ -0.6144964098930359, 0.26708850264549255, 0.0007030051201581955, 0.11657968908548355, -0.0054785385727882385, -0.13829156756401062, 0.24171565473079681, 0.08379434049129486, 0.004760442301630974, 0.03440595418214798, -0.054624512791633606, 0.2859041094779968, -0.3432391583919525, 0.22495396435260773, 0.08273710310459137, -0.19183671474456787, -0.25396913290023804, 0.3069847822189331, -0.2205561101436615, 0.30223512649536133, 0.17030936479568481, -0.3196572959423065, -0.0687001422047615, -0.20738936960697174, -0.26325350999832153, 0.043344736099243164, -0.05982046574354172, 0.2006399929523468, 0.1205892264842987, -0.34263166785240173, 0.545577883720398, 0.07268010079860687, 0.4496230483055115, 0.2114897519350052, -0.00011959079711232334, -0.030852649360895157, 0.2770121693611145, -0.09838174283504486, -0.4672888219356537, -0.20615984499454498, -0.11438292264938354, -0.3101186752319336, 0.14365273714065552, -0.17282024025917053, 0.12865278124809265, -0.43994298577308655, 0.10890696942806244, -0.262389600276947, 0.31241878867149353, -0.014904600568115711, 0.056173961609601974, 0.41572248935699463, -0.28496113419532776, 0.04888516664505005, 0.039877887815237045, 0.23555335402488708, 0.060821495950222015, 0.40845808386802673, 0.5365392565727234, -0.19330166280269623, -0.3202616572380066, 0.02375338040292263, -0.2280825972557068, -0.010801203548908234, -0.030950210988521576, -0.12535084784030914, -0.05806715041399002, -0.019553255289793015, -0.08106634765863419, 0.13125045597553253, 0.6905536651611328, -0.3024783730506897, -0.0704101100564003, -0.4813322126865387, 0.2750895917415619, -0.257168173789978, -0.019364722073078156, -0.2200617492198944, -0.2196061909198761, -0.029900912195444107, -0.08180581778287888, -0.2648487091064453, -0.20371213555335999, 0.18896900117397308, -0.25724655389785767, 0.009315043687820435, -0.03341994434595108, 0.03902209922671318, 0.15784697234630585, 0.2892029881477356, 0.609764575958252, -0.02303394302725792, 0.3810180127620697, 0.27035465836524963, -0.462411105632782, -0.16839775443077087, -0.12848180532455444, -0.18909487128257751, 0.0015389956533908844, 0.19309207797050476, 0.42676156759262085, -0.020101476460695267, -0.10051607340574265, 0.23531728982925415, 0.32410725951194763, 0.05901104584336281, 0.35066482424736023, 0.057564154267311096, 0.23956435918807983, 0.13897179067134857, -0.0765889436006546, -0.05009172111749649, -0.06269188225269318, 0.08272738009691238, 0.6528539657592773, 0.11966072767972946, 0.125010684132576, 0.1071745753288269, 0.03600107133388519, 0.27030831575393677, -0.24360087513923645, -0.1531570851802826, 0.2549285590648651, 0.03715423494577408, -0.02040356770157814, 0.42453208565711975, 0.06734141707420349, -0.25385957956314087, 0.03601636737585068, -0.36569106578826904, -0.06405717134475708, -0.2187972366809845, -0.15942417085170746, 0.37881046533584595, 0.3163421154022217, -0.453879177570343, 0.1521519273519516, 0.022454362362623215, 0.02210879698395729, 0.21246075630187988, 0.4073887765407562, 0.044131580740213394, 0.0917850211262703, 0.1758228838443756, -0.1777481585741043, -0.007213789038360119, 0.13395890593528748, 0.006771877408027649, -0.10927698761224747, 0.4498365521430969, -0.22522497177124023, -0.24773892760276794, -0.037566520273685455, 0.09959772974252701, -0.039524003863334656, -0.06065458804368973, -0.47170528769493103, 0.06977201998233795, 0.11796125024557114, -0.20089474320411682, 0.3777609169483185, -0.3072453737258911, -0.07010242342948914, -0.3084245026111603, 0.1873931586742401, -0.05434839427471161, -0.5741679072380066, -0.3739878535270691, -0.07220886647701263, -0.2847810983657837, 0.1297016441822052, 0.07047925889492035, -0.4608372747898102, 0.4761837422847748, -0.08534549921751022, 0.05153144896030426, 0.4021190404891968, -0.07940591871738434, -0.48538336157798767, 0.07553266733884811, -0.02247042953968048, 0.18862658739089966, -0.2863421142101288, 0.3200472891330719, 0.4759329557418823, -0.036810748279094696, -0.12780804932117462, 0.37469482421875, -0.20895077288150787, -0.12067044526338577, 0.012202635407447815, -0.11306312680244446, 0.4672023057937622, 0.6171133518218994, 0.2877841889858246, -0.057077862322330475, 0.034951917827129364, 0.20335613191127777, 0.24311327934265137, 0.09773363918066025, 0.25694045424461365, 0.10077082365751266, -0.056680645793676376, 0.10907887667417526, -0.05934688821434975, -0.545734167098999, -0.5235188603401184, 0.22240057587623596, -0.03365863487124443, -0.5356378555297852, 0.3103545904159546, 0.03240323066711426, 0.19513028860092163, 0.11373763531446457, -0.28348177671432495, -0.26050689816474915, 0.022058632224798203, 0.0473950132727623, -0.16585032641887665, -0.026733512058854103, -0.42556920647621155, 0.28738659620285034, -0.4540286958217621, 0.09819858521223068, -0.3001377284526825, 0.46918267011642456, 0.33470261096954346, -0.13069304823875427, -0.385219931602478, 0.007558882236480713, -0.14031442999839783, -0.11325646936893463, 0.11839903146028519, 0.30821889638900757, -0.05292374640703201, 0.26935815811157227, -0.02336724102497101, 0.12505200505256653, -0.019376294687390327, 0.1416880488395691, 0.059604693204164505, 0.03773496299982071, -0.08906134217977524, -0.3640576899051666, 0.0241861455142498, 0.3240131437778473, -0.16183611750602722, 0.20554959774017334, 0.0029818937182426453, -0.02859453111886978, 0.021466905251145363, -0.17958645522594452, -0.40531399846076965, 0.4067201614379883, 0.33374378085136414, -0.300106018781662, 0.25446176528930664, 0.034999098628759384, -0.3089440166950226, -0.08029826730489731, 0.01880839839577675, -0.43625062704086304, 0.09973064064979553, 0.13821306824684143, -0.34473714232444763, 0.07629631459712982, 0.11351018399000168, 0.3492586314678192, 0.5475571751594543, -0.11635487526655197, 0.16280460357666016, -0.08714724332094193, 0.07907137274742126, 0.024018384516239166, 0.0830986425280571, -0.009177379310131073, 0.33183783292770386, 0.37466880679130554, 0.09445516765117645, -0.11142995208501816, 0.013885006308555603, 0.024425189942121506, 0.09127365797758102, 0.1755807250738144, 0.08893884718418121, 0.024750610813498497, -0.3434715270996094, -0.2780502438545227, -0.2105923444032669, -0.02397662028670311, -0.23177629709243774, -0.11497512459754944, -0.34504127502441406, 0.5059788823127747, 0.09980052709579468, 0.24568967521190643, -0.12202630937099457, 0.4502294659614563, 0.006188252940773964, -0.26295143365859985, 0.012846015393733978, -0.2967768609523773, 0.11304181814193726, 0.06281282007694244, 0.06636470556259155, -0.11552952229976654, 0.29296836256980896, 0.2151029407978058, -0.06194206699728966, -0.4522710144519806, 0.15146571397781372, 0.417772114276886, 0.2559436559677124, -0.058202825486660004, 0.15497779846191406, 0.30603528022766113, -0.03560877591371536, -0.1857718825340271, 0.11636852473020554, -0.29917439818382263, -0.1842045933008194, 0.03730657696723938, -0.09718972444534302, 0.36818137764930725, 0.06869331002235413, 0.16936683654785156, -0.47486749291419983, -0.20487409830093384, 0.1163179874420166, -0.08719145506620407, 0.0004003271460533142, -0.03823753073811531, -0.2071457803249359, 0.3506820499897003, -0.09608789533376694, -0.26579275727272034, -0.19685697555541992, -0.666753888130188, 0.2495172619819641, -0.18487247824668884, -0.006275970488786697, -0.2100493460893631, -0.11906400322914124, 0.22019799053668976, 0.3629283308982849, -0.5488169193267822, -0.09528475999832153, 0.03682584688067436, 0.26865455508232117, -0.2732050120830536, 0.1024833619594574, 0.3098948001861572, -0.00019562430679798126, 0.123750239610672, 0.07556483894586563, 0.2073604017496109, -0.04890603572130203, 0.10033703595399857, 0.2822185158729553, 0.02167738415300846, -0.030269481241703033, 0.1229543536901474, 0.8347213864326477, 0.13283376395702362, -0.22613532841205597, 0.00419105589389801, 0.23789021372795105, 0.0575035884976387, 0.057586535811424255, -0.35400038957595825, -0.11278299987316132, -0.36123207211494446, -0.1040857583284378, -0.021027356386184692, -0.16432183980941772, -0.23435422778129578, -0.10858891159296036, -0.2616618275642395, 0.09184224158525467, -0.4087047874927521, 0.317557156085968, -0.214063823223114, 0.4908251166343689, -0.2747477889060974, -0.032138898968696594, -0.1182546317577362, 0.05559141933917999, 0.06054023280739784, 0.36711007356643677, 0.2657310664653778, -0.02261226996779442, -0.2667902410030365, 0.034005310386419296, -0.15186390280723572, -0.02642369270324707, 0.21971695125102997, 0.26224684715270996, 0.35828250646591187, -0.01731294021010399, -0.16539202630519867, 0.27735012769699097, 0.42518502473831177, 0.09843743592500687, -0.07952889800071716, 0.11151435971260071, -0.23623351752758026, 0.12269275635480881, -0.12466144561767578, -0.061908043920993805, 0.394574910402298, 0.06927409768104553, 0.35199204087257385, -0.0014617294073104858, 0.015611248090863228, 0.08561745285987854, 0.1681726574897766, -0.346416711807251, -0.38695192337036133, 0.15411898493766785, 0.08316970616579056, -0.33731940388679504, -0.029085569083690643, -0.193095862865448, -0.23525692522525787, -0.14534254372119904, 0.060064513236284256, -0.3251888155937195, 0.1311854124069214, -0.1591137796640396, -0.07914049923419952, -0.1153806746006012, -0.09973876178264618, 0.25701385736465454, 0.38612833619117737, -0.07136911153793335, 0.32687804102897644, 0.22005531191825867, -0.02619626745581627, -0.0530102401971817, 0.14299564063549042, 0.1835128664970398, 0.5161118507385254, -0.016816258430480957, -0.14183498919010162, 0.44793084263801575, 0.09961359947919846, -0.05907098948955536, -0.36495497822761536, 0.12375660240650177, -0.023252559825778008, 0.18974176049232483, -0.23543681204319, -0.6157408952713013, 0.4441905617713928, -0.08887737989425659, -0.03708261251449585, 0.233718141913414, -0.24052076041698456, 0.010777242481708527, -0.04616571217775345, 0.1789836436510086, 0.7206711769104004, -0.03722549229860306, 0.3539050817489624, -0.009920760989189148, 0.34703558683395386, 0.7502267956733704, -0.010734368115663528, 0.03728051856160164, -0.13320240378379822, -0.4210340082645416, -0.12957675755023956, -0.2013532966375351, 0.02456684038043022, 0.038413841277360916, -0.15465649962425232, 0.3730502426624298, 0.3777579665184021, 0.029808862134814262, 0.13624726235866547, 0.05001193284988403, -0.07926009595394135, -0.3987247347831726, 0.16987305879592896, 0.10195814073085785, -0.3409120440483093, 0.027745211496949196, -0.2042921781539917, 0.03483131527900696, 0.23960566520690918, 0.4595032334327698, -0.3540003299713135, -0.057843245565891266, -0.374350905418396, 0.20826172828674316, 0.12029847502708435, -0.47359752655029297, 0.0068471357226371765, 0.20691855251789093, 0.022774096578359604, -0.12503042817115784, -0.05048166960477829, 0.018897363916039467, 0.03970017284154892, 0.17868642508983612, 0.09608263522386551, -0.2275325059890747, 0.7338855266571045, 0.17269417643547058, 0.037115342915058136, 0.13418059051036835, 0.032137706875801086, -0.5593923926353455, 0.06274516880512238, 0.017147153615951538, 0.1774263083934784, -0.038516566157341, -0.15129674971103668, 0.16920706629753113, 0.08512677252292633, -0.20773591101169586, 0.01737607643008232, 0.43372035026550293, 0.16942647099494934, 0.1413831263780594, -0.13545234501361847, 0.14366281032562256, 0.041471946984529495, 0.29006293416023254, 0.2071656584739685, -0.04910951107740402, 0.42957767844200134, 0.3237047493457794, -0.15317434072494507, -0.003822658210992813, 0.06914297491312027, 0.20307083427906036, -0.11451852321624756, -0.024048827588558197, -0.18024447560310364, 0.19429562985897064, -0.13804523646831512, -0.10138097405433655, 0.1568547636270523, -0.1845693588256836, -0.38402944803237915, -0.2788582444190979, -0.7612161636352539, 0.13190391659736633, 0.22014260292053223, 0.28375115990638733, 0.05261944979429245, 0.1750965714454651, -0.17247289419174194, 0.12565858662128448, -0.2024061381816864, 0.03860674053430557, 0.03409036248922348, 0.12353965640068054, 0.19858308136463165, -0.013324618339538574, -0.05305583402514458, -0.24427077174186707, -0.13633866608142853, 0.3987628221511841, 0.26683327555656433, -0.17171326279640198, -0.3002544045448303, 0.1830320805311203, 0.23936501145362854, 0.060653239488601685, -0.029021166265010834, -0.3898116946220398, 0.17287413775920868, -0.1728581190109253, 0.01294737309217453, -0.035325001925230026, 0.1240440160036087, 0.3093690276145935, 0.38948535919189453, 0.11882738769054413, -0.14267489314079285, 0.31851571798324585, -0.17517542839050293, -0.04113394021987915, -0.14159207046031952, 0.22858357429504395, -0.03763781860470772, -0.1077912375330925, -0.20044778287410736, 0.12079202383756638, 0.4569222331047058, -0.050560370087623596, 0.4625082015991211, -0.08684729039669037, -0.3141127824783325, -0.31199657917022705, 0.5247559547424316, 0.17371664941310883, -0.12829822301864624, 0.11933785676956177, 0.48580214381217957, 0.07590050995349884, -0.1400495171546936, -0.03989722952246666, 0.005345392040908337, -0.15966753661632538, -0.008377168327569962, 0.08088371902704239, -0.31940412521362305, 0.17319971323013306, -0.08001735806465149, 0.018086496740579605, -0.11009299755096436, -0.1772238314151764, 0.010141808539628983, 0.1742764562368393, 0.02099786326289177, -0.20482827723026276, 0.3585343360900879, 0.5385175943374634, 0.0905284732580185, -0.033111460506916046, 0.23545226454734802, 0.3816181421279907, 0.1741885244846344, -0.15572240948677063, 0.254790723323822, -0.5198672413825989, -0.1878877580165863, 0.10722685605287552, -0.05923691391944885, 0.29404884576797485, 0.07873990386724472, 0.2042231559753418, -0.10168556123971939, -0.08147671818733215, 0.07403891533613205, 0.30410706996917725, -0.17831096053123474, 0.02824414148926735, -0.019369829446077347, -0.23990976810455322, 0.16766908764839172, -0.001030411571264267, 0.04385199397802353, -0.3252524137496948, 0.11628399044275284, 0.13908152282238007, -0.06916320323944092, -0.2799018323421478, -0.07041260600090027, 0.2517007291316986, -0.04037337750196457, -0.19735334813594818, -0.28849565982818604, 0.11282102763652802, -0.028352975845336914, -0.2835415005683899, 0.22099660336971283, -0.13382278382778168, 0.02785397693514824, -0.2874755263328552, 0.5266917943954468, -0.04556170478463173, -0.0208297036588192, -0.16357454657554626, -0.04189615696668625, -0.018868163228034973, -0.3616631329059601, 0.4219342768192291, 0.1053520143032074, -0.09754892438650131, 0.12045033276081085, 0.11170318722724915, 0.010042628273367882, -0.45927292108535767, 0.12470517307519913, 0.2889591157436371, -0.2410581409931183, -0.022531550377607346, 0.18219439685344696, -0.44869229197502136, -0.151234969496727, 0.341537207365036, -0.25835853815078735, 0.25588470697402954, 0.046416621655225754, 0.06600355356931686, -0.16226889193058014, 0.2800658345222473, 0.4687032997608185, 0.2616446316242218, -0.208470419049263, -0.0787070021033287, -0.5622122287750244, -0.12789273262023926, -0.019683759659528732, 0.04617723077535629, 0.048654355108737946, 0.12597371637821198, 0.34715938568115234, 0.2981119751930237, -0.030155807733535767, -0.13831548392772675, 0.19595322012901306, 0.187953919172287, -0.24082861840724945, -0.5283300280570984, 0.1676943451166153, -0.025474106892943382, 0.037754155695438385, -0.14079247415065765, 0.2948603630065918, 0.15317393839359283, 0.018476270139217377, -0.023643597960472107, 0.04192058742046356, 0.11510072648525238, -0.10402312874794006, 0.4031689763069153, -0.09622630476951599, 0.03852881118655205, -0.030445793643593788, -0.055523961782455444, 0.14482922852039337, 0.11879836022853851, -0.09657923877239227, -0.1861279010772705, -0.15539395809173584, 0.38723042607307434, -0.1807233840227127, -0.14304156601428986, -0.4226989150047302, -0.16249102354049683, -0.07262086868286133, -0.10626142472028732, -0.6550247073173523, -0.033030785620212555, -0.11638468503952026, 0.12286537140607834, 0.11208634823560715, 0.43461862206459045, -0.23841017484664917, 0.31735867261886597, -0.31189435720443726, 0.01878083311021328, 0.3005479574203491, -0.599446713924408, -0.0022419821470975876, -0.18170733749866486, -0.0668969601392746, 0.18856245279312134, 0.28875115513801575, -0.5418431758880615, -0.010335452854633331, 0.3871012032032013, -0.2849655747413635, -0.018379587680101395, 0.18513788282871246, 0.013135905377566814, 0.32431477308273315, -0.19052067399024963, 0.4782659113407135, 0.06074656546115875, -0.2823198139667511, -0.01821107044816017, -0.2158980816602707 ]
https://github.com/huggingface/datasets/issues/5451
ImageFolder BadZipFile: Bad offset for central directory
Hi ! Could you share the full stack trace ? Which dataset did you try to load ? it may be related to https://github.com/huggingface/datasets/pull/5640
### Describe the bug I'm getting the following exception: ``` lib/python3.10/zipfile.py:1353 in _RealGetContents β”‚ β”‚ β”‚ β”‚ 1350 β”‚ β”‚ # self.start_dir: Position of start of central directory β”‚ β”‚ 1351 β”‚ β”‚ self.start_dir = offset_cd + concat β”‚ β”‚ 1352 β”‚ β”‚ if self.start_dir < 0: β”‚ β”‚ ❱ 1353 β”‚ β”‚ β”‚ raise BadZipFile("Bad offset for central directory") β”‚ β”‚ 1354 β”‚ β”‚ fp.seek(self.start_dir, 0) β”‚ β”‚ 1355 β”‚ β”‚ data = fp.read(size_cd) β”‚ β”‚ 1356 β”‚ β”‚ fp = io.BytesIO(data) β”‚ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ BadZipFile: Bad offset for central directory Extracting data files: 35%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 38572/110812 [00:10<00:20, 3576.26it/s] ``` ### Steps to reproduce the bug ``` load_dataset( args.dataset_name, args.dataset_config_name, cache_dir=args.cache_dir, ), ``` ### Expected behavior loads the dataset ### Environment info datasets==2.8.0 Python 3.10.8 Linux 129-146-3-202 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
24
ImageFolder BadZipFile: Bad offset for central directory ### Describe the bug I'm getting the following exception: ``` lib/python3.10/zipfile.py:1353 in _RealGetContents β”‚ β”‚ β”‚ β”‚ 1350 β”‚ β”‚ # self.start_dir: Position of start of central directory β”‚ β”‚ 1351 β”‚ β”‚ self.start_dir = offset_cd + concat β”‚ β”‚ 1352 β”‚ β”‚ if self.start_dir < 0: β”‚ β”‚ ❱ 1353 β”‚ β”‚ β”‚ raise BadZipFile("Bad offset for central directory") β”‚ β”‚ 1354 β”‚ β”‚ fp.seek(self.start_dir, 0) β”‚ β”‚ 1355 β”‚ β”‚ data = fp.read(size_cd) β”‚ β”‚ 1356 β”‚ β”‚ fp = io.BytesIO(data) β”‚ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ BadZipFile: Bad offset for central directory Extracting data files: 35%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 38572/110812 [00:10<00:20, 3576.26it/s] ``` ### Steps to reproduce the bug ``` load_dataset( args.dataset_name, args.dataset_config_name, cache_dir=args.cache_dir, ), ``` ### Expected behavior loads the dataset ### Environment info datasets==2.8.0 Python 3.10.8 Linux 129-146-3-202 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Hi ! Could you share the full stack trace ? Which dataset did you try to load ? it may be related to https://github.com/huggingface/datasets/pull/5640
[ -0.30214881896972656, -0.1288907378911972, 0.00013344548642635345, 0.5274219512939453, 0.3718428611755371, 0.04527028650045395, -0.03887492045760155, 0.13735799491405487, -0.2835582494735718, 0.11153984814882278, 0.09652269631624222, 0.02506321109831333, -0.05475345253944397, -0.10967778414487839, -0.29079312086105347, -0.28236567974090576, -0.17541161179542542, 0.18844863772392273, 0.02857266739010811, -0.04883655160665512, -0.3302907943725586, 0.38894933462142944, -0.3252775967121124, 0.05591834709048271, -0.14881742000579834, -0.08026457577943802, -0.26524659991264343, 0.38842418789863586, -0.10207103937864304, -0.10602360963821411, 0.2778974175453186, -0.3515084981918335, 0.11632496118545532, 0.5823065638542175, -0.0001142207911470905, -0.06628406792879105, 0.30485451221466064, -0.11698140949010849, -0.14403341710567474, -0.31045371294021606, -0.037522539496421814, -0.31180915236473083, -0.3229116201400757, -0.24793636798858643, -0.009478824213147163, 0.0996931940317154, 0.15869855880737305, -0.06361178308725357, 0.24094195663928986, 0.039919741451740265, 0.24467876553535461, -0.1103576123714447, 0.07446421682834625, 0.15322135388851166, 0.48192834854125977, 0.08805671334266663, -0.12003801763057709, 0.4441307783126831, 0.05666401982307434, -0.04848156124353409, 0.02223784476518631, 0.10945647954940796, -0.009539181366562843, 0.14837303757667542, 0.08801613003015518, 0.33790066838264465, -0.10346395522356033, -0.2522624433040619, -0.23616498708724976, 0.06705284863710403, 0.3727356791496277, -0.16095972061157227, -0.5028147101402283, -0.4107264578342438, -0.10918410122394562, -0.47946178913116455, 0.25025394558906555, 0.33858728408813477, -0.2989693880081177, 0.22316400706768036, 0.005159216932952404, 0.21525245904922485, -0.18982291221618652, 0.3174861669540405, -0.05270598828792572, 0.36026281118392944, -0.02967849373817444, -0.03823921084403992, 0.33840492367744446, 0.1589200794696808, 0.2697938084602356, -0.21892976760864258, 0.0385819748044014, 0.02355501987040043, -0.03357947990298271, 0.08730348944664001, -0.08767155557870865, 0.05255449563264847, 0.08033981919288635, 0.08260774612426758, -0.05809424817562103, -0.18430081009864807, -0.16805824637413025, -0.011546410620212555, 0.16516759991645813, 0.37994280457496643, -0.27443015575408936, 0.4990924894809723, 0.1111382320523262, 0.25353363156318665, 0.18787673115730286, -0.18762925267219543, 0.17510533332824707, -0.317371129989624, 0.09808497130870819, 0.2735404670238495, 0.29904264211654663, -0.11186327785253525, -0.11181747168302536, 0.05280090495944023, -0.00992894172668457, -0.03490811958909035, 0.05575533211231232, 0.08719819784164429, -0.00260109081864357, 0.2251872420310974, 0.00872589647769928, 0.1908399611711502, -0.027186816558241844, 0.3320384621620178, -0.10341676324605942, 0.1649501621723175, -0.2259022444486618, -0.0918005108833313, -0.12363824248313904, -0.14990320801734924, 0.10294025391340256, -0.040757011622190475, 0.04990052431821823, 0.2168031930923462, 0.05720241367816925, -0.3853422701358795, 0.1193317174911499, 0.1928214579820633, -0.1208895742893219, 0.1964195966720581, 0.18646997213363647, 0.025552988052368164, -0.1414007991552353, -0.04612085968255997, -0.5384137034416199, -0.10718545317649841, -0.12700225412845612, 0.20341350138187408, 0.06723123043775558, 0.15458397567272186, -0.20531103014945984, -0.3287103474140167, 0.12810996174812317, -0.10420623421669006, 0.2933388948440552, -0.12946081161499023, -0.2945350110530853, -0.13847599923610687, 0.07652752101421356, 0.47231411933898926, 0.02069508656859398, 0.17730428278446198, -0.38115769624710083, 0.1478099226951599, 0.36006948351860046, 0.14732566475868225, 0.11918134987354279, 0.3311532437801361, -0.7020315527915955, -0.060736753046512604, 0.24200235307216644, -0.5517615079879761, -0.602676510810852, 0.3954596221446991, -0.3858322501182556, 0.12681961059570312, -0.05558421462774277, 0.2890968322753906, -0.07607818394899368, 0.01358706783503294, 0.03320912644267082, 0.3898591995239258, -0.12046399712562561, 0.1444902867078781, -0.23068997263908386, -0.2877251207828522, 0.1272897720336914, 0.18943601846694946, -0.18039090931415558, 0.006278291344642639, 0.060064151883125305, -0.42221882939338684, 0.3190906345844269, -0.07165324687957764, -0.04571917653083801, 0.4100085496902466, 0.29394274950027466, -0.09936501085758209, -0.10317648202180862, -0.07723791897296906, -0.37099435925483704, 0.29424503445625305, -0.14489567279815674, -0.14112253487110138, -0.5292280316352844, 0.27741360664367676, -0.04337446391582489, -0.14803507924079895, -0.2977040112018585, -0.15648554265499115, 0.0812191590666771, 0.17731770873069763, 0.34836074709892273, -0.09234605729579926, -0.04544045031070709, 0.4874933063983917, -0.0020317137241363525, 0.2920694947242737, -0.26382970809936523, 0.3023337423801422, -0.21803241968154907, -0.07361029088497162, -0.031668029725551605, -0.08838119357824326, 0.2337888777256012, -0.40475335717201233, -0.2288089096546173, 0.5864150524139404, 0.12238495796918869, 0.09564248472452164, 0.030000101774930954, -0.11091487109661102, 0.12618689239025116, -0.28507930040359497, -0.04847780615091324, 0.28215739130973816, -0.0545266754925251, 0.23249861598014832, -0.18095961213111877, 0.32346010208129883, -0.35099196434020996, 0.039745066314935684, -0.17457866668701172, 0.008134495466947556, 0.19508540630340576, -0.25537121295928955, 0.2095264494419098, -0.19000086188316345, 0.4323936104774475, 0.25755512714385986, 0.38980183005332947, -0.13244011998176575, 0.14820410311222076, -0.18237319588661194, 0.12561757862567902, 0.05529901757836342, 0.004767328500747681, 0.5056503415107727, 0.1708337664604187, 0.07687448710203171, 0.1385367512702942, 0.5821869373321533, 0.5200682878494263, 0.19861407577991486, -0.14603865146636963, 0.1543351113796234, 0.12605547904968262, 0.04542313143610954, 0.30239245295524597, 0.06933238357305527, 0.23386764526367188, 0.27664434909820557, 0.11923815310001373, 0.32640770077705383, -0.10911571979522705, -0.31331706047058105, -0.1430523544549942, 0.35739877820014954, -0.11159184575080872, 0.29720017313957214, -0.10433435440063477, -0.381943017244339, -0.20925651490688324, 0.11003509908914566, -0.09910470247268677, -0.18939897418022156, -0.20239846408367157, 0.12924914062023163, -0.08882977068424225, 0.24351750314235687, -0.195762500166893, 0.13345623016357422, 0.13647273182868958, -0.013602504506707191, -0.5802268981933594, 0.18147936463356018, -0.17794689536094666, -0.0031958352774381638, 0.2385307103395462, -0.23204438388347626, 0.1313033103942871, -0.35547953844070435, -0.08404441177845001, -0.2683901786804199, -0.22999516129493713, 0.2976255714893341, 0.03512066975235939, 0.2887183725833893, 0.3515668213367462, 0.10434822738170624, 0.21926043927669525, -0.2459571659564972, 0.27413374185562134, -0.06993801146745682, -0.18445393443107605, 0.19951865077018738, 0.017348483204841614, -0.0754147544503212, -0.21616044640541077, 0.25989222526550293, -0.4831264019012451, -0.4002893567085266, 0.22213800251483917, 0.1390111744403839, 0.17760825157165527, 0.5024412870407104, -0.023339714854955673, -0.34092989563941956, -0.07104676961898804, -0.007878299802541733, -0.06093999743461609, -0.5807146430015564, 0.25304079055786133, 0.06740771234035492, -0.15574052929878235, -0.45146265625953674, -0.2981189489364624, -0.1693420559167862, 0.22659288346767426, -0.3677269220352173, -0.4596741795539856, -0.3003406524658203, 0.25632181763648987, -0.283647745847702, 0.2320343554019928, 0.1288336217403412, -0.17608000338077545, 0.007629038766026497, -0.1383969932794571, -0.08791565150022507, -0.10362809151411057, 0.07032649964094162, 0.31162723898887634, 0.10033924877643585, -0.04714503884315491, 0.07124432921409607, 0.19307953119277954, 0.10498538613319397, -0.07509492337703705, 0.4480038285255432, -0.10390720516443253, 0.3301190137863159, -0.03949130326509476, -0.31525710225105286, -0.04780532792210579, 0.17016024887561798, -0.29834169149398804, 0.020908191800117493, 0.08641956001520157, -0.12698450684547424, -0.011706184595823288, -0.04658268764615059, -0.5733518600463867, -0.03242458030581474, -0.12850770354270935, 0.07140740752220154, -0.05184916406869888, -0.19279509782791138, -0.011228837072849274, -0.12310437858104706, -0.09296397864818573, 0.24273228645324707, 0.03975212946534157, 0.06449396908283234, -0.17897860705852509, 0.07715816795825958, -0.04070335999131203, 0.055214252322912216, 0.10362947732210159, 0.3041989207267761, 0.16452720761299133, 0.04548541083931923, 0.09441297501325607, -0.09272870421409607, -0.23046045005321503, 0.8629087209701538, -0.0799197182059288, 0.25783413648605347, 0.03545735403895378, 0.09831370413303375, -0.20585528016090393, -0.19653357565402985, -0.21722038090229034, 0.24560578167438507, 0.05915509909391403, 0.5228034853935242, -0.3517483174800873, 0.0810057520866394, 0.10788571089506149, 0.049109380692243576, -0.1538427770137787, -0.13799697160720825, -0.09265881776809692, -0.20195716619491577, -0.012675589881837368, -0.04876216500997543, -0.10660666972398758, -0.018782200291752815, 0.31994497776031494, 0.13160456717014313, 0.2591017484664917, -0.12804904580116272, -0.35067981481552124, -0.06677499413490295, 0.40264755487442017, -0.14910466969013214, 0.21108543872833252, 0.20765848457813263, 0.10461337119340897, 0.29863402247428894, 0.555974543094635, -0.20872724056243896, -0.09761866927146912, 0.0463414341211319, 0.05914006754755974, 0.05271212011575699, 0.19137805700302124, 0.07646168023347855, -0.3672383427619934, -0.15274806320667267, 0.22997042536735535, -0.43133360147476196, -0.019788900390267372, 0.4059518575668335, -0.008153469301760197, 0.08131268620491028, -0.02319885976612568, 0.4381084144115448, 0.011872302740812302, -0.18418417870998383, 0.5020904541015625, -0.21928299963474274, -0.19862425327301025, 0.2504277229309082, 0.007176019251346588, 0.8116652965545654, 0.11595405638217926, 0.10228163003921509, 0.3355023264884949, -0.3139500617980957, 0.23363031446933746, 0.07484579086303711, 0.08032798022031784, -0.46164625883102417, -0.4798092544078827, -0.0854576826095581, -0.30396607518196106, -0.0831872895359993, -0.014433629810810089, -0.04354596883058548, 0.13834375143051147, -0.2545505166053772, -0.22971025109291077, -0.1238904744386673, 0.08932474255561829, -0.20891737937927246, -0.19003678858280182, -0.3903389573097229, 0.15131352841854095, 0.03467075526714325, 0.3149697184562683, -0.23822182416915894, -0.06331873685121536, -0.34763768315315247, -0.13705042004585266, -0.11216080188751221, 0.2950540781021118, -0.3616977035999298, 0.27411532402038574, 0.06972035765647888, -0.3292770981788635, -0.37321731448173523, 0.00012860074639320374, 0.17460940778255463, -0.1590195596218109, -0.1492927223443985, 0.12781073153018951, 0.07765082269906998, 0.2650122046470642, 0.3587106168270111, -0.08020634204149246, 0.04632944613695145, 0.00545085221529007, 0.1805323362350464, -0.4735335111618042, -0.1844538450241089, -0.18838661909103394, 0.24712026119232178, -0.1227194219827652, 0.14331308007240295, -0.1980530321598053, -0.1066134124994278, -0.1914348602294922, 0.24452999234199524, -0.11059685051441193, 0.1377018690109253, 0.2103852927684784, -0.007745982147753239, 0.03736976534128189, -0.1397571861743927, -0.26012593507766724, -0.01680808514356613, 0.17266404628753662, -0.24983900785446167, 0.25315409898757935, 0.18338221311569214, -0.1457381695508957, -0.031116580590605736, -0.029913276433944702, 0.359255850315094, -0.2972087264060974, -0.41764068603515625, 0.12873272597789764, -0.0465385839343071, -0.05006770044565201, -0.06802970916032791, 0.030189134180545807, 0.3974064588546753, -0.17524483799934387, -0.19505555927753448, -0.41634589433670044, -0.27232223749160767, 0.10845061391592026, -0.16486071050167084, 0.22844858467578888, -0.1623469591140747, -0.09629274904727936, 0.02985806204378605, -0.2587331533432007, -0.2953013777732849, 0.1984105259180069, -0.14855678379535675, -0.09647426009178162, 0.23855926096439362, -0.11479722708463669, 0.09648825228214264, -0.18662330508232117, 0.14232124388217926, 0.1982002854347229, -0.10108091682195663, -0.13985785841941833, -0.18265357613563538, 0.1099158525466919, 0.05745780095458031, -0.34422725439071655, 0.10883216559886932, -0.2057298868894577, -0.04467283561825752, -0.18583913147449493, -0.268882155418396, 0.12496054917573929, 0.060121987015008926, 0.26657834649086, 0.35609233379364014, -0.1967315673828125, -0.3039066195487976, 0.28587961196899414, -0.39225664734840393, 0.24969151616096497, 0.08505990356206894, 0.3203463554382324, -0.390595942735672, -0.0676804780960083, -0.38244640827178955, 0.0021925196051597595, -0.01820722222328186, 0.1674148142337799, 0.42145466804504395, -0.041210658848285675, 0.10271120071411133, 0.3185911476612091, 0.4861636459827423, 0.07889217883348465, -0.31533828377723694, -0.10009314119815826, 0.1563616693019867, 0.24103261530399323, -0.21095751225948334, -0.2970151901245117, -0.08000464737415314, -0.1072383001446724, -0.14248177409172058, 0.09344908595085144, -0.24002739787101746, -0.15825393795967102, -0.08286765217781067, 0.004670694470405579, 0.8997695446014404, 0.10985344648361206, -0.04062037542462349, 0.3357211649417877, -0.15985755622386932, 0.19722914695739746, 0.1613774448633194, 0.01626996509730816, 0.39385345578193665, 0.27901163697242737, -0.002169579267501831, -0.07840660214424133, -0.30773717164993286, -0.0608079768717289, -0.23301801085472107, -0.47324252128601074, 0.17311011254787445, 0.13550955057144165, 0.09057675302028656, 0.08657737076282501, 0.12662820518016815, 0.376909077167511, -0.276242196559906, 0.023105401545763016, -0.11287868022918701, 0.1453283727169037, -0.14209702610969543, 0.14822138845920563, -0.011116119101643562, -0.011055931448936462, 0.001739799976348877, 0.043815020471811295, -0.1129181981086731, 0.05278458073735237, 0.5718038082122803, 0.21120190620422363, -0.23136310279369354, 0.15541791915893555, -0.0512731671333313, 0.26141300797462463, 0.18415573239326477, -0.3807726502418518, 0.37019699811935425, 0.3355991244316101, -0.11706189811229706, -0.1790640950202942, 0.5326284766197205, 0.6775691509246826, 0.23747508227825165, 0.15089645981788635, -0.3261124789714813, -0.034275781363248825, 0.08636109530925751, -0.27898916602134705, 0.06453022360801697, 0.0028367936611175537, 0.13788466155529022, 0.23196935653686523, 0.23594063520431519, -0.20647646486759186, 0.28453296422958374, 0.20459657907485962, 0.07231456786394119, -0.10494594275951385, 0.16709449887275696, 0.009579610079526901, -0.14346276223659515, 0.016502827405929565, -0.040585555136203766, -0.19880253076553345, 0.03551782667636871, -0.1398898810148239, -0.014128526672720909, 0.18745338916778564, 0.29739153385162354, 0.09188944846391678, 0.10498212277889252, 0.039183273911476135, 0.6978169083595276, 0.07446097582578659, -0.35141897201538086, -0.09921111166477203, -0.6580877900123596, 0.290876179933548, -0.1209188848733902, -0.13142672181129456, 0.08622757345438004, -0.09276064485311508, -0.057750724256038666, 0.11953312158584595, 0.2967638671398163, 0.288411945104599, -0.11242257803678513, 0.17375043034553528, -0.44309425354003906, -0.03200460597872734, 0.17024168372154236, 0.12640778720378876, -0.03491963818669319, -0.43616345524787903, 0.10903464257717133, -0.21992240846157074, 0.1870100200176239, 0.19420155882835388, 0.07576514780521393, -0.21165220439434052, -0.31840381026268005, 0.48409053683280945, 0.15582525730133057, -0.13558560609817505, -0.2825433909893036, -0.26479291915893555, -0.13390904664993286, -0.1402757614850998, -0.09231390058994293, -0.06865531951189041, -0.05861929431557655, 0.4452574551105499, -0.2787780463695526, -0.35779744386672974, -0.5916104912757874, -0.130921870470047, 0.04773271828889847, 0.17690470814704895, -0.22002698481082916, 0.4752095341682434, -0.20896711945533752, 0.03188805654644966, 0.19165484607219696, 0.21276500821113586, 0.10940053313970566, 0.17859427630901337, -0.25731316208839417, -0.3260132074356079, 0.39903444051742554, -0.031192045658826828, -0.03293963521718979, 0.16685253381729126, 0.2027311623096466, -0.22822418808937073, 0.15765602886676788, 0.30527976155281067, 0.005595788359642029, 0.42917993664741516, 0.10307273268699646, -0.16118857264518738, 0.03593210503458977, 0.14033830165863037, -0.13998280465602875, 0.2088465392589569, 0.4377721846103668, 0.05547560751438141, -0.40656328201293945, 0.43067243695259094, 0.19984804093837738 ]
https://github.com/huggingface/datasets/issues/5451
ImageFolder BadZipFile: Bad offset for central directory
The `BadZipFile` error means the ZIP file is corrupted, so I'm closing this issue as it's not directly related to `datasets`.
### Describe the bug I'm getting the following exception: ``` lib/python3.10/zipfile.py:1353 in _RealGetContents β”‚ β”‚ β”‚ β”‚ 1350 β”‚ β”‚ # self.start_dir: Position of start of central directory β”‚ β”‚ 1351 β”‚ β”‚ self.start_dir = offset_cd + concat β”‚ β”‚ 1352 β”‚ β”‚ if self.start_dir < 0: β”‚ β”‚ ❱ 1353 β”‚ β”‚ β”‚ raise BadZipFile("Bad offset for central directory") β”‚ β”‚ 1354 β”‚ β”‚ fp.seek(self.start_dir, 0) β”‚ β”‚ 1355 β”‚ β”‚ data = fp.read(size_cd) β”‚ β”‚ 1356 β”‚ β”‚ fp = io.BytesIO(data) β”‚ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ BadZipFile: Bad offset for central directory Extracting data files: 35%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 38572/110812 [00:10<00:20, 3576.26it/s] ``` ### Steps to reproduce the bug ``` load_dataset( args.dataset_name, args.dataset_config_name, cache_dir=args.cache_dir, ), ``` ### Expected behavior loads the dataset ### Environment info datasets==2.8.0 Python 3.10.8 Linux 129-146-3-202 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
21
ImageFolder BadZipFile: Bad offset for central directory ### Describe the bug I'm getting the following exception: ``` lib/python3.10/zipfile.py:1353 in _RealGetContents β”‚ β”‚ β”‚ β”‚ 1350 β”‚ β”‚ # self.start_dir: Position of start of central directory β”‚ β”‚ 1351 β”‚ β”‚ self.start_dir = offset_cd + concat β”‚ β”‚ 1352 β”‚ β”‚ if self.start_dir < 0: β”‚ β”‚ ❱ 1353 β”‚ β”‚ β”‚ raise BadZipFile("Bad offset for central directory") β”‚ β”‚ 1354 β”‚ β”‚ fp.seek(self.start_dir, 0) β”‚ β”‚ 1355 β”‚ β”‚ data = fp.read(size_cd) β”‚ β”‚ 1356 β”‚ β”‚ fp = io.BytesIO(data) β”‚ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ BadZipFile: Bad offset for central directory Extracting data files: 35%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 38572/110812 [00:10<00:20, 3576.26it/s] ``` ### Steps to reproduce the bug ``` load_dataset( args.dataset_name, args.dataset_config_name, cache_dir=args.cache_dir, ), ``` ### Expected behavior loads the dataset ### Environment info datasets==2.8.0 Python 3.10.8 Linux 129-146-3-202 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux The `BadZipFile` error means the ZIP file is corrupted, so I'm closing this issue as it's not directly related to `datasets`.
[ -0.3858197331428528, -0.01046067476272583, -0.012387007474899292, 0.5257979035377502, 0.27683910727500916, 0.06778963655233383, -0.04070879891514778, 0.1476408839225769, -0.32300660014152527, 0.1038580983877182, 0.12979844212532043, 0.0709238052368164, -0.04522546008229256, -0.22738955914974213, -0.31304702162742615, -0.2617746889591217, -0.13452991843223572, 0.155527263879776, 0.00924709439277649, -0.04036448895931244, -0.37080490589141846, 0.3265506625175476, -0.36294060945510864, 0.04070194065570831, -0.10949741303920746, -0.11390619724988937, -0.2638923227787018, 0.2898046374320984, -0.12198906391859055, -0.15092770755290985, 0.2325914055109024, -0.29374322295188904, 0.06001594662666321, 0.5878000259399414, -0.00011441149399615824, -0.09642990678548813, 0.33810198307037354, -0.055858492851257324, -0.18601638078689575, -0.20844592154026031, -0.14785312116146088, -0.321748286485672, -0.4509500563144684, -0.24283355474472046, 0.03657136112451553, 0.00694069592282176, 0.18129946291446686, -0.049555350095033646, 0.23611608147621155, 0.08663791418075562, 0.23149190843105316, -0.14636822044849396, 0.10705773532390594, 0.18972238898277283, 0.5026260018348694, 0.11105682700872421, -0.1315074861049652, 0.39287301898002625, 0.021092958748340607, -0.09337551891803741, 0.0452733188867569, 0.12699511647224426, 0.020005853846669197, 0.13921613991260529, 0.08426903188228607, 0.33149996399879456, -0.10640963166952133, -0.15997543931007385, -0.2744898498058319, 0.05127723515033722, 0.36988744139671326, -0.22183796763420105, -0.5925754904747009, -0.38566675782203674, -0.10303258150815964, -0.5201822519302368, 0.2614877223968506, 0.3702588975429535, -0.2617127597332001, 0.2325931191444397, 0.03923493251204491, 0.18574607372283936, -0.1538861244916916, 0.3195670247077942, -0.07418643683195114, 0.38122791051864624, 0.0166847575455904, -0.024787209928035736, 0.2714020311832428, 0.13617199659347534, 0.3538028597831726, -0.28438082337379456, -0.004314713180065155, -0.0026469239965081215, 0.004401605576276779, 0.08688168227672577, -0.13528990745544434, 0.06801356375217438, 0.028420530259609222, 0.003381337970495224, -0.041406963020563126, -0.22240722179412842, -0.1859990358352661, 0.04884594306349754, 0.1666875034570694, 0.33368703722953796, -0.2586539089679718, 0.606407105922699, 0.10841616988182068, 0.2114710807800293, 0.23277831077575684, -0.1918821632862091, 0.22374354302883148, -0.3264959454536438, 0.21224147081375122, 0.2624048888683319, 0.2529676556587219, -0.08098265528678894, -0.1267392486333847, 0.08496987819671631, -0.008314378559589386, -0.01611284166574478, 0.04195316880941391, 0.04124647006392479, -0.029802557080984116, 0.24078497290611267, -0.04436177760362625, 0.13657209277153015, 0.0027266405522823334, 0.3264397978782654, -0.08455685526132584, 0.1817074567079544, -0.22499339282512665, -0.06706199795007706, -0.18765176832675934, -0.0952860414981842, 0.01408560574054718, -0.05606025457382202, 0.013671383261680603, 0.24265241622924805, 0.08429945260286331, -0.3885132670402527, 0.16913849115371704, 0.21500858664512634, -0.16733720898628235, 0.2567131221294403, 0.13767649233341217, -0.028728554025292397, -0.11409930884838104, -0.030573561787605286, -0.5309545993804932, -0.049564048647880554, -0.13897988200187683, 0.2003568559885025, 0.026885002851486206, 0.19286590814590454, -0.17021816968917847, -0.3770897090435028, 0.1999090015888214, -0.19742920994758606, 0.3268541395664215, -0.20658810436725616, -0.30473774671554565, -0.1405358910560608, -0.003817753866314888, 0.44923317432403564, -0.07205863296985626, 0.1862788200378418, -0.44792863726615906, 0.10369475185871124, 0.3299749195575714, 0.13528263568878174, 0.12566624581813812, 0.3033192753791809, -0.6581271290779114, -0.13457638025283813, 0.25524187088012695, -0.5129501819610596, -0.6783680319786072, 0.3612285852432251, -0.33122700452804565, 0.1400402933359146, -0.104973204433918, 0.3040344715118408, -0.07228384912014008, -0.0317496582865715, 0.07511551678180695, 0.3259057402610779, -0.11200092732906342, 0.10318214446306229, -0.2428399622440338, -0.22033092379570007, 0.16725949943065643, 0.17651216685771942, -0.1642960011959076, 0.02234523743391037, 0.023963354527950287, -0.30076465010643005, 0.26553335785865784, -0.0020962022244930267, 0.01394680980592966, 0.3929247260093689, 0.323284775018692, -0.12101590633392334, -0.08449653536081314, -0.08314599096775055, -0.38515955209732056, 0.27564021944999695, -0.13382525742053986, -0.1859474778175354, -0.5424216985702515, 0.2509652376174927, 0.0200105719268322, -0.12604880332946777, -0.27785179018974304, -0.14047574996948242, 0.10475961863994598, 0.18396887183189392, 0.31252753734588623, -0.12141713500022888, -0.0296276044100523, 0.4944995045661926, 0.004687624052166939, 0.29144778847694397, -0.24246318638324738, 0.28730109333992004, -0.2311447709798813, -0.07742151618003845, -0.03746418654918671, -0.1298975646495819, 0.2004660665988922, -0.39685842394828796, -0.21623751521110535, 0.5846846103668213, 0.13034766912460327, 0.056762803345918655, 0.0328419953584671, -0.09308971464633942, 0.13310541212558746, -0.3255475163459778, -0.06972020864486694, 0.3528774082660675, -0.05111580342054367, 0.2686578631401062, -0.24133220314979553, 0.33489859104156494, -0.31351324915885925, 0.04474394768476486, -0.17202332615852356, 0.036829158663749695, 0.19670021533966064, -0.20386038720607758, 0.09790235757827759, -0.2538077235221863, 0.38564664125442505, 0.21639591455459595, 0.3749364912509918, -0.09874628484249115, 0.19584637880325317, -0.1403483748435974, 0.1393045037984848, 0.055676642805337906, 0.02937522903084755, 0.5008640885353088, 0.16905716061592102, 0.0686541274189949, 0.1661873757839203, 0.6685701608657837, 0.5035364031791687, 0.16739581525325775, -0.14725396037101746, 0.17654919624328613, 0.07895126938819885, 0.08484654873609543, 0.2367253303527832, 0.08102238178253174, 0.20134170353412628, 0.2800854444503784, 0.09296374768018723, 0.32355788350105286, -0.044017091393470764, -0.32978084683418274, -0.1397714763879776, 0.44157353043556213, -0.11589990556240082, 0.3135085701942444, -0.1528107225894928, -0.3819311559200287, -0.26788264513015747, 0.16206936538219452, -0.11396366357803345, -0.24647748470306396, -0.1891157329082489, 0.08139462769031525, -0.13616815209388733, 0.23484709858894348, -0.22749119997024536, 0.14733737707138062, 0.10619252920150757, -0.013260165229439735, -0.5287785530090332, 0.13931934535503387, -0.14826473593711853, -0.004774926230311394, 0.2748080790042877, -0.19757363200187683, 0.1226828545331955, -0.3555148243904114, -0.05932573974132538, -0.3551251292228699, -0.19328835606575012, 0.294771671295166, 0.04944390058517456, 0.29623323678970337, 0.3668428063392639, 0.09181081503629684, 0.1587686538696289, -0.2625220715999603, 0.25205621123313904, -0.06616517901420593, -0.13722947239875793, 0.2015463262796402, 0.019716279581189156, -0.10400151461362839, -0.18540680408477783, 0.28833064436912537, -0.45207804441452026, -0.31529736518859863, 0.18679198622703552, 0.15284551680088043, 0.19059641659259796, 0.49576282501220703, -0.004323193337768316, -0.3793724775314331, -0.1105484887957573, -0.08336375653743744, -0.07516106218099594, -0.5585551261901855, 0.27740392088890076, 0.08227954059839249, -0.16259494423866272, -0.4624294936656952, -0.2747798562049866, -0.19308049976825714, 0.2882234454154968, -0.3317410349845886, -0.40220627188682556, -0.26456186175346375, 0.2611162066459656, -0.24436426162719727, 0.22293753921985626, 0.07343882322311401, -0.13731707632541656, 0.012059880420565605, -0.12360106408596039, -0.06451338529586792, -0.161809504032135, 0.07839997112751007, 0.40616995096206665, 0.02739386446774006, -0.06931279599666595, 0.09210863709449768, 0.1819104552268982, 0.15503497421741486, -0.07438261806964874, 0.3717367649078369, -0.11235617846250534, 0.3565993905067444, 0.01661156862974167, -0.31077271699905396, -0.013057658448815346, 0.18141435086727142, -0.3014909625053406, 0.01126319169998169, 0.07233548164367676, -0.11814150959253311, -0.009741954505443573, 0.0026001855731010437, -0.6367063522338867, -0.08789939433336258, -0.09200520068407059, 0.07729537039995193, 0.005108445882797241, -0.18678581714630127, -0.011385701596736908, -0.13540637493133545, -0.1441899538040161, 0.22482584416866302, 0.08095131814479828, 0.02988716959953308, -0.1694357991218567, 0.08837316930294037, -0.10317817330360413, 0.1661096215248108, 0.09918791055679321, 0.26752346754074097, 0.28803178668022156, 0.06896688044071198, 0.10698097199201584, -0.16208331286907196, -0.28544706106185913, 0.7524234056472778, -0.12180232256650925, 0.20467907190322876, 0.04622309282422066, 0.17839357256889343, -0.17385108768939972, -0.24261733889579773, -0.22999529540538788, 0.30572083592414856, -0.04069383069872856, 0.46953442692756653, -0.3245733976364136, 0.12085989862680435, 0.1300431191921234, 0.1012086272239685, -0.1806299090385437, -0.1310110241174698, -0.11120279133319855, -0.16841743886470795, 0.003284875303506851, -0.04396491497755051, -0.11919049918651581, -0.11031068116426468, 0.3191847503185272, 0.16589805483818054, 0.24781905114650726, -0.12962663173675537, -0.3479219079017639, -0.040846340358257294, 0.38715609908103943, -0.17387798428535461, 0.2351461946964264, 0.15596258640289307, 0.03248627483844757, 0.3788227140903473, 0.5219744443893433, -0.2035178542137146, -0.1407766491174698, 0.012650053948163986, 0.012892276979982853, 0.06932473927736282, 0.17910730838775635, -0.005341100972145796, -0.3851105868816376, -0.12876804172992706, 0.23259089887142181, -0.36984488368034363, -0.04410434514284134, 0.4559459984302521, -0.058069370687007904, 0.004446786362677813, -0.07732632011175156, 0.4154714345932007, 0.08125185966491699, -0.2051674723625183, 0.5104357600212097, -0.22743208706378937, -0.14135311543941498, 0.24745897948741913, 0.014226704835891724, 0.808835506439209, 0.140426367521286, 0.047667358070611954, 0.26677143573760986, -0.303656667470932, 0.22734811902046204, 0.08985024690628052, 0.07925792783498764, -0.41347187757492065, -0.49919870495796204, -0.07631108164787292, -0.2564294636249542, -0.008576005697250366, 0.01871505007147789, -0.05658821016550064, 0.19774606823921204, -0.2631130814552307, -0.20535162091255188, -0.13597874343395233, 0.057522013783454895, -0.2167176604270935, -0.16772468388080597, -0.3697417378425598, 0.17058762907981873, 0.04650432989001274, 0.23997557163238525, -0.2541709542274475, -0.01630578003823757, -0.33775779604911804, -0.12399525940418243, -0.1872979700565338, 0.2556074559688568, -0.2700369656085968, 0.23118555545806885, 0.06818818300962448, -0.3183935880661011, -0.38242802023887634, -0.025469806045293808, 0.14988119900226593, -0.05580844357609749, -0.08572308719158173, 0.16288456320762634, 0.12148231267929077, 0.29287517070770264, 0.33649012446403503, -0.09347095340490341, 0.052242327481508255, 0.010386329144239426, 0.18791192770004272, -0.45025813579559326, -0.13839907944202423, -0.13347527384757996, 0.2931240200996399, -0.1483069360256195, 0.16576078534126282, -0.14091958105564117, -0.07909649610519409, -0.208412766456604, 0.17900864779949188, -0.12261395156383514, 0.14890612661838531, 0.21493412554264069, 0.04000416770577431, 0.08916664123535156, -0.20067919790744781, -0.26470446586608887, -0.0017523691058158875, 0.16905519366264343, -0.23214328289031982, 0.20155777037143707, 0.14037105441093445, -0.184203639626503, -0.04465268552303314, -0.038054417818784714, 0.3950416147708893, -0.29288241267204285, -0.38075754046440125, 0.12137984484434128, -0.09381969273090363, 0.02308805286884308, -0.03541632741689682, -0.004803333431482315, 0.3753052353858948, -0.16794762015342712, -0.25211045145988464, -0.41119375824928284, -0.20490673184394836, 0.1036226749420166, -0.07424478232860565, 0.23728907108306885, -0.23099550604820251, -0.13452281057834625, 0.008583126589655876, -0.24854812026023865, -0.2967526316642761, 0.13464291393756866, -0.14536428451538086, -0.06828287988901138, 0.1745273619890213, -0.045591071248054504, 0.05960429087281227, -0.2402942031621933, 0.13849475979804993, 0.18371988832950592, -0.02956318110227585, -0.1334685981273651, -0.16818784177303314, 0.12550605833530426, 0.09972788393497467, -0.3180619478225708, 0.15374656021595, -0.17925572395324707, -0.008146144449710846, -0.1896335333585739, -0.27588140964508057, 0.11814988404512405, 0.06592325121164322, 0.33993029594421387, 0.38355711102485657, -0.1988244354724884, -0.2467215210199356, 0.2691854238510132, -0.39973753690719604, 0.25757163763046265, 0.07522975653409958, 0.36580580472946167, -0.3095744550228119, -0.04920490086078644, -0.3945828676223755, -0.00116681307554245, -0.09286357462406158, 0.21908921003341675, 0.4253372251987457, -0.04659994691610336, 0.1492598056793213, 0.35098326206207275, 0.5079033374786377, 0.18914684653282166, -0.3237857520580292, -0.12691079080104828, 0.19600924849510193, 0.2186245620250702, -0.193899005651474, -0.2850579023361206, -0.04259094223380089, -0.08144477009773254, -0.10976141691207886, 0.07201391458511353, -0.2917480766773224, -0.17082984745502472, -0.12017376720905304, -0.036017678678035736, 0.8658772706985474, 0.05056742578744888, -0.014804787933826447, 0.48410922288894653, -0.07916568219661713, 0.2337617129087448, 0.17350727319717407, -0.006657212972640991, 0.37404918670654297, 0.3381459712982178, 0.05562598258256912, -0.05459675192832947, -0.2180502712726593, -0.10454227030277252, -0.22568851709365845, -0.443575382232666, 0.20144465565681458, 0.10990186780691147, 0.11131010204553604, 0.1558760553598404, 0.17202062904834747, 0.3271775245666504, -0.30384230613708496, 0.027465874329209328, -0.12416382879018784, 0.1281805783510208, -0.09830927103757858, 0.10900160670280457, -0.030905334278941154, -0.03546572104096413, -0.017826661467552185, 0.03542160615324974, -0.11962033808231354, 0.07447690516710281, 0.5635975003242493, 0.21091198921203613, -0.21974875032901764, 0.15576103329658508, 0.023662090301513672, 0.25008124113082886, 0.2139280140399933, -0.3854326903820038, 0.2971633970737457, 0.316234290599823, -0.058313071727752686, -0.19284787774085999, 0.5418941378593445, 0.6700679659843445, 0.2490282505750656, 0.18486672639846802, -0.28528955578804016, -0.050679076462984085, 0.05620603263378143, -0.250085711479187, 0.04414624720811844, -0.032827720046043396, 0.06871078908443451, 0.23361562192440033, 0.25184208154678345, -0.18723227083683014, 0.31477370858192444, 0.20863911509513855, 0.07500836253166199, -0.018171265721321106, 0.15030549466609955, -0.012344565242528915, -0.1759200394153595, 0.03709881752729416, -0.031857602298259735, -0.15633738040924072, -0.023517876863479614, -0.10530993342399597, -0.027050822973251343, 0.16594234108924866, 0.27382829785346985, 0.0819215476512909, 0.13769952952861786, 0.14118245244026184, 0.6587749123573303, 0.0733121782541275, -0.2879476845264435, -0.11157840490341187, -0.7088578939437866, 0.2557070553302765, -0.21729248762130737, -0.0864136666059494, 0.05172444134950638, -0.08178622275590897, -0.11301218718290329, 0.21812334656715393, 0.31255418062210083, 0.34121137857437134, -0.1839059293270111, 0.2346639484167099, -0.4582115709781647, -0.08547797799110413, 0.27459239959716797, 0.10743283480405807, -0.048411477357149124, -0.3927961587905884, 0.11982138454914093, -0.2287757396697998, 0.17821165919303894, 0.2319481521844864, -0.008465506136417389, -0.1974945366382599, -0.33773741126060486, 0.5296295881271362, 0.1645425260066986, -0.1645292341709137, -0.2859964668750763, -0.2629922926425934, -0.233852356672287, -0.13208170235157013, -0.09420230984687805, -0.02523069828748703, -0.09432913362979889, 0.4525321424007416, -0.22574028372764587, -0.3452562689781189, -0.5520018935203552, -0.15443570911884308, 0.02162909507751465, 0.18352845311164856, -0.21758201718330383, 0.47786176204681396, -0.16128915548324585, 0.016058752313256264, 0.10729749500751495, 0.1555897295475006, 0.12225987017154694, 0.18935927748680115, -0.27574461698532104, -0.3761815130710602, 0.3772478699684143, -0.002319411374628544, -0.01574034057557583, 0.11474631726741791, 0.17507529258728027, -0.2631336450576782, 0.11637671291828156, 0.3253456950187683, -0.0033609941601753235, 0.40405717492103577, 0.05672268196940422, -0.1726340651512146, -0.07248595356941223, 0.13342545926570892, -0.09388039261102676, 0.19898338615894318, 0.5274788737297058, -0.020767424255609512, -0.438276082277298, 0.47564563155174255, 0.22962336242198944 ]
https://github.com/huggingface/datasets/issues/5451
ImageFolder BadZipFile: Bad offset for central directory
For others that find this issue following a `BadZipFile` error, I had the same problem because I had a file in a folder dataset `my-image.target` and the datasets library was incorrectly determining that the (PNG) file was a zip archive. When it tried to extract the file, this error occurred. Updating to `datasets==2.12.0` fixed the problem for me.
### Describe the bug I'm getting the following exception: ``` lib/python3.10/zipfile.py:1353 in _RealGetContents β”‚ β”‚ β”‚ β”‚ 1350 β”‚ β”‚ # self.start_dir: Position of start of central directory β”‚ β”‚ 1351 β”‚ β”‚ self.start_dir = offset_cd + concat β”‚ β”‚ 1352 β”‚ β”‚ if self.start_dir < 0: β”‚ β”‚ ❱ 1353 β”‚ β”‚ β”‚ raise BadZipFile("Bad offset for central directory") β”‚ β”‚ 1354 β”‚ β”‚ fp.seek(self.start_dir, 0) β”‚ β”‚ 1355 β”‚ β”‚ data = fp.read(size_cd) β”‚ β”‚ 1356 β”‚ β”‚ fp = io.BytesIO(data) β”‚ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ BadZipFile: Bad offset for central directory Extracting data files: 35%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 38572/110812 [00:10<00:20, 3576.26it/s] ``` ### Steps to reproduce the bug ``` load_dataset( args.dataset_name, args.dataset_config_name, cache_dir=args.cache_dir, ), ``` ### Expected behavior loads the dataset ### Environment info datasets==2.8.0 Python 3.10.8 Linux 129-146-3-202 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
58
ImageFolder BadZipFile: Bad offset for central directory ### Describe the bug I'm getting the following exception: ``` lib/python3.10/zipfile.py:1353 in _RealGetContents β”‚ β”‚ β”‚ β”‚ 1350 β”‚ β”‚ # self.start_dir: Position of start of central directory β”‚ β”‚ 1351 β”‚ β”‚ self.start_dir = offset_cd + concat β”‚ β”‚ 1352 β”‚ β”‚ if self.start_dir < 0: β”‚ β”‚ ❱ 1353 β”‚ β”‚ β”‚ raise BadZipFile("Bad offset for central directory") β”‚ β”‚ 1354 β”‚ β”‚ fp.seek(self.start_dir, 0) β”‚ β”‚ 1355 β”‚ β”‚ data = fp.read(size_cd) β”‚ β”‚ 1356 β”‚ β”‚ fp = io.BytesIO(data) β”‚ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ BadZipFile: Bad offset for central directory Extracting data files: 35%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 38572/110812 [00:10<00:20, 3576.26it/s] ``` ### Steps to reproduce the bug ``` load_dataset( args.dataset_name, args.dataset_config_name, cache_dir=args.cache_dir, ), ``` ### Expected behavior loads the dataset ### Environment info datasets==2.8.0 Python 3.10.8 Linux 129-146-3-202 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux For others that find this issue following a `BadZipFile` error, I had the same problem because I had a file in a folder dataset `my-image.target` and the datasets library was incorrectly determining that the (PNG) file was a zip archive. When it tried to extract the file, this error occurred. Updating to `datasets==2.12.0` fixed the problem for me.
[ -0.3408025801181793, 0.04916226863861084, -0.01547899842262268, 0.4781758785247803, 0.3053165078163147, 0.02558182179927826, -0.046696070581674576, 0.18121616542339325, -0.3135695457458496, 0.09213079512119293, 0.10882571339607239, 0.04875483736395836, -0.05684623867273331, -0.2204919159412384, -0.3049244284629822, -0.28649136424064636, -0.1686643362045288, 0.1815129965543747, 0.048531658947467804, -0.03386389836668968, -0.3732087314128876, 0.3529174029827118, -0.33303147554397583, 0.03925943747162819, -0.15935488045215607, -0.10128963738679886, -0.22469249367713928, 0.256379634141922, -0.14657549560070038, -0.154704287648201, 0.26174941658973694, -0.3832544684410095, 0.06989749521017075, 0.5589321255683899, -0.00011240379535593092, -0.12277408689260483, 0.3469199538230896, -0.054123569279909134, -0.15853090584278107, -0.2928088903427124, -0.027895350009202957, -0.29323455691337585, -0.3445318341255188, -0.21084877848625183, 0.02545788139104843, -0.05780753865838051, 0.19013884663581848, 0.007408164441585541, 0.21346640586853027, 0.07191018760204315, 0.2486584335565567, -0.14256247878074646, 0.10927753150463104, 0.16903194785118103, 0.49423763155937195, 0.11027566343545914, -0.1445712298154831, 0.33159339427948, -0.029057547450065613, -0.14113682508468628, 0.028249986469745636, 0.07772698998451233, -0.013665941543877125, 0.21629828214645386, 0.14297795295715332, 0.368179589509964, -0.13972064852714539, -0.1961158812046051, -0.256084144115448, 0.0870128720998764, 0.33279889822006226, -0.15508699417114258, -0.5633329153060913, -0.37340033054351807, -0.05303369089961052, -0.47468647360801697, 0.29019683599472046, 0.37488675117492676, -0.27656298875808716, 0.2170546054840088, 0.06423147022724152, 0.20793922245502472, -0.14877066016197205, 0.3388327956199646, -0.12736713886260986, 0.3325578272342682, -0.011185257695615292, -0.045698098838329315, 0.3215216398239136, 0.15405751764774323, 0.307553768157959, -0.2390175461769104, -0.014238107949495316, -0.03345108777284622, -0.018873777240514755, 0.15410403907299042, -0.025583498179912567, 0.14272166788578033, -0.03148874640464783, 0.05337291210889816, -0.014420242048799992, -0.2516627907752991, -0.22434291243553162, 0.0415525957942009, 0.1614435613155365, 0.29419851303100586, -0.29465222358703613, 0.5606065392494202, 0.14718066155910492, 0.1943700909614563, 0.25297990441322327, -0.20471727848052979, 0.19359388947486877, -0.3552933633327484, 0.1699422299861908, 0.2079608142375946, 0.2929208278656006, -0.12933234870433807, -0.10753913968801498, -0.006380013190209866, -0.01959654502570629, 0.011445049196481705, 0.03183705732226372, -0.006081663072109222, 0.026465874165296555, 0.25368884205818176, -0.0447663888335228, 0.22111333906650543, -0.001772107556462288, 0.35936346650123596, -0.07611358910799026, 0.22806552052497864, -0.21090741455554962, -0.07256612926721573, -0.15596354007720947, -0.1817895770072937, -0.020991533994674683, -0.03731141984462738, 0.011215951293706894, 0.2501693665981293, 0.04481697082519531, -0.3999072313308716, 0.24134284257888794, 0.23694054782390594, -0.1271895319223404, 0.237028107047081, 0.17387057840824127, -0.09026536345481873, -0.1547376811504364, -0.035049863159656525, -0.46765196323394775, -0.10935260355472565, -0.1509474813938141, 0.20232592523097992, 0.0665237084031105, 0.15905678272247314, -0.20755767822265625, -0.3392854630947113, 0.18160733580589294, -0.13698455691337585, 0.25665104389190674, -0.2529151439666748, -0.2995775640010834, -0.13060398399829865, 0.039042189717292786, 0.3807874917984009, -0.061744581907987595, 0.2612435817718506, -0.5016377568244934, 0.12376968562602997, 0.2800409495830536, 0.11083813011646271, 0.06014252454042435, 0.33487457036972046, -0.6324037909507751, -0.08477182686328888, 0.2015801966190338, -0.48198947310447693, -0.6441989541053772, 0.35735976696014404, -0.35262447595596313, 0.1310284286737442, -0.15975531935691833, 0.3102792203426361, -0.05297712981700897, 0.019438041374087334, -0.011871322989463806, 0.3827499747276306, -0.10919596254825592, 0.08464645594358444, -0.19232597947120667, -0.23551565408706665, 0.230919748544693, 0.17277908325195312, -0.16821864247322083, 0.040088556706905365, 0.01424628496170044, -0.26238545775413513, 0.2633363902568817, 0.003597348928451538, 0.00850829016417265, 0.38068997859954834, 0.32928481698036194, -0.11414794623851776, -0.08312322944402695, -0.031181201338768005, -0.35027629137039185, 0.24202972650527954, -0.04432470351457596, -0.0982576459646225, -0.5576209425926208, 0.31337541341781616, 0.06963522732257843, -0.15343500673770905, -0.33465296030044556, -0.19244995713233948, 0.10601238906383514, 0.14915812015533447, 0.3475969433784485, -0.14169108867645264, 0.014976810663938522, 0.4793638586997986, 0.02525993250310421, 0.2819615602493286, -0.2620159089565277, 0.2540223002433777, -0.19647344946861267, -0.04036185145378113, 0.04215472936630249, -0.1863243281841278, 0.1697421818971634, -0.3497024476528168, -0.22662082314491272, 0.5159579515457153, 0.16515769064426422, 0.04854300245642662, 0.009697940200567245, -0.04267576336860657, 0.11024143546819687, -0.3318624496459961, -0.022298207506537437, 0.3666490614414215, -0.05242673680186272, 0.25489670038223267, -0.1350688934326172, 0.28031253814697266, -0.31866875290870667, 0.10886048525571823, -0.20789200067520142, 0.00250362791121006, 0.23734387755393982, -0.1634047031402588, 0.12435481697320938, -0.23544229567050934, 0.38740167021751404, 0.23610654473304749, 0.3653709590435028, -0.1314706951379776, 0.19478273391723633, -0.17161953449249268, 0.09024318307638168, 0.12912783026695251, -0.015742652118206024, 0.4937478005886078, 0.15623047947883606, 0.07051477581262589, 0.1461848020553589, 0.6777348518371582, 0.4916244149208069, 0.18329398334026337, -0.16693945229053497, 0.19258171319961548, 0.029489345848560333, 0.06467986851930618, 0.2711024880409241, 0.14429029822349548, 0.2609320878982544, 0.195705384016037, 0.11366089433431625, 0.35343268513679504, -0.0730176568031311, -0.35789477825164795, -0.14156648516654968, 0.46869340538978577, -0.07857829332351685, 0.27549105882644653, -0.2337091565132141, -0.3819233775138855, -0.20074348151683807, 0.15773603320121765, -0.15583819150924683, -0.23355978727340698, -0.1530359387397766, 0.13936187326908112, -0.11611919105052948, 0.2150760143995285, -0.21777990460395813, 0.1137930154800415, 0.07205796241760254, -0.042089104652404785, -0.491921991109848, 0.1354227215051651, -0.1285918653011322, 0.020296096801757812, 0.24581851065158844, -0.1817989945411682, 0.07045774906873703, -0.3737139403820038, -0.07899709045886993, -0.3810620903968811, -0.1831505000591278, 0.3620813488960266, -0.0005847364664077759, 0.2582651376724243, 0.3706527054309845, 0.08966071903705597, 0.2006157785654068, -0.2513343095779419, 0.23947374522686005, -0.12819336354732513, -0.14303186535835266, 0.2445145547389984, 0.014291898347437382, -0.12422282993793488, -0.19818733632564545, 0.25870057940483093, -0.3781006634235382, -0.34261834621429443, 0.17639011144638062, 0.18425199389457703, 0.17805258929729462, 0.531876266002655, -0.018762430176138878, -0.37693673372268677, -0.1423201709985733, -0.09826184809207916, -0.05236396566033363, -0.5701991319656372, 0.3377601206302643, 0.05876358225941658, -0.18211446702480316, -0.44055643677711487, -0.24008120596408844, -0.19930438697338104, 0.28624027967453003, -0.3319128751754761, -0.4410301148891449, -0.2762605845928192, 0.24467810988426208, -0.18754225969314575, 0.1437528431415558, 0.0642104372382164, -0.18223725259304047, -0.032166361808776855, -0.10347001254558563, -0.05995747447013855, -0.08628799766302109, 0.13180586695671082, 0.36945590376853943, 0.13774460554122925, -0.054696813225746155, 0.08143740892410278, 0.132684588432312, 0.1379757523536682, -0.09453007578849792, 0.3778301477432251, -0.10995914787054062, 0.3395088315010071, -0.02817428857088089, -0.2609448730945587, 0.0010235386434942484, 0.1363506317138672, -0.30499351024627686, 0.06669965386390686, 0.08722379803657532, -0.09868019074201584, -0.02166140452027321, 0.057021889835596085, -0.6403822898864746, -0.0545775443315506, -0.12365242838859558, 0.07397164404392242, -0.036411188542842865, -0.16753467917442322, 0.03596249222755432, -0.08328716456890106, -0.1302088499069214, 0.2411784827709198, 0.03912000730633736, 0.05953611060976982, -0.13509394228458405, 0.09437097609043121, -0.0567447766661644, 0.11622418463230133, 0.15332113206386566, 0.23639093339443207, 0.2150082141160965, 0.09873336553573608, 0.09870003908872604, -0.15823383629322052, -0.21828792989253998, 0.6782327890396118, -0.11462091654539108, 0.18171755969524384, 0.0669744461774826, 0.06863518804311752, -0.11787920445203781, -0.2602091431617737, -0.25160014629364014, 0.3146332800388336, -0.11273588240146637, 0.41329413652420044, -0.26338106393814087, 0.11647574603557587, 0.0797196477651596, 0.10164341330528259, -0.1483578085899353, -0.10796531289815903, -0.06999233365058899, -0.20543524622917175, -0.030224302783608437, -0.06584129482507706, -0.05898261070251465, -0.05501626804471016, 0.28571319580078125, 0.18700110912322998, 0.2813648581504822, -0.09019750356674194, -0.3078758120536804, -0.016047034412622452, 0.4109012186527252, -0.17988038063049316, 0.25539666414260864, 0.2336665391921997, 0.10572735220193863, 0.40055540204048157, 0.48078054189682007, -0.1706337332725525, -0.08434565365314484, 0.07239822298288345, 0.025683358311653137, 0.06237592175602913, 0.17961469292640686, 0.017020944505929947, -0.37505531311035156, -0.12783578038215637, 0.2138647735118866, -0.3779824674129486, -0.058909736573696136, 0.4335871934890747, -0.13448455929756165, 0.0936296358704567, -0.10790430754423141, 0.4236203730106354, 0.0674784928560257, -0.1479046642780304, 0.47104281187057495, -0.20074640214443207, -0.1330360472202301, 0.21360117197036743, 0.008236706256866455, 0.7611744403839111, 0.17676225304603577, 0.04827054589986801, 0.27732542157173157, -0.25985413789749146, 0.2751498520374298, 0.06527897715568542, 0.13357257843017578, -0.42481282353401184, -0.5087346434593201, -0.11040811985731125, -0.26219841837882996, -0.05855140835046768, 0.010595720261335373, -0.0039668008685112, 0.16022783517837524, -0.27161574363708496, -0.19928206503391266, -0.1394532173871994, 0.12235429883003235, -0.1988028883934021, -0.2186778485774994, -0.3531968593597412, 0.1967514157295227, 0.03234866261482239, 0.2594141662120819, -0.20313286781311035, -0.013063155114650726, -0.34465116262435913, -0.08216772973537445, -0.19425930082798004, 0.3281327188014984, -0.2872319221496582, 0.29319441318511963, 0.05533301457762718, -0.3630526065826416, -0.3271675705909729, -0.01985335722565651, 0.1235249787569046, -0.1325017660856247, -0.13706135749816895, 0.19157381355762482, 0.15414124727249146, 0.29196083545684814, 0.2971150279045105, -0.1281396895647049, 0.06580397486686707, -0.025761675089597702, 0.23355832695960999, -0.48137152194976807, -0.15474429726600647, -0.1630554348230362, 0.22571706771850586, -0.17810027301311493, 0.19507794082164764, -0.11162866652011871, -0.05175543949007988, -0.20369267463684082, 0.18745645880699158, -0.1431046575307846, 0.1637955754995346, 0.20727238059043884, 0.031597111374139786, 0.05820119380950928, -0.14164599776268005, -0.30383455753326416, -0.024000003933906555, 0.12340092658996582, -0.2633824944496155, 0.21137592196464539, 0.18997594714164734, -0.1740703135728836, -0.05688448250293732, -0.026483852416276932, 0.35385048389434814, -0.2534700632095337, -0.3522016406059265, 0.1151890829205513, -0.062038395553827286, 0.03779853880405426, 0.03984104096889496, -0.005783062428236008, 0.3660692572593689, -0.16750791668891907, -0.27501389384269714, -0.3605031967163086, -0.1696624755859375, 0.15777838230133057, -0.1932038962841034, 0.23218899965286255, -0.2528717517852783, -0.080598384141922, 0.0779324322938919, -0.2808201313018799, -0.29619526863098145, 0.11518748104572296, -0.06086623668670654, -0.05065193772315979, 0.1531420201063156, -0.04042772948741913, 0.04729181155562401, -0.23351944983005524, 0.14152653515338898, 0.2418927550315857, -0.08015388995409012, -0.1380258947610855, -0.21553993225097656, 0.11982128769159317, 0.15984082221984863, -0.37731269001960754, 0.16724097728729248, -0.2096821516752243, -0.11292356252670288, -0.1982523500919342, -0.25656938552856445, 0.15533411502838135, 0.05455560237169266, 0.26037997007369995, 0.36442092061042786, -0.26695817708969116, -0.2349654585123062, 0.25033706426620483, -0.4336083233356476, 0.25510814785957336, 0.1122925654053688, 0.33077767491340637, -0.2972426116466522, -0.02153613045811653, -0.412148118019104, 0.03271396458148956, -0.12484802305698395, 0.2285187840461731, 0.37894031405448914, -0.05423206090927124, 0.14618659019470215, 0.30129575729370117, 0.5589604377746582, 0.16640102863311768, -0.25209614634513855, -0.15992991626262665, 0.22755300998687744, 0.20967814326286316, -0.23617811501026154, -0.25169214606285095, -0.1071673333644867, -0.11746805161237717, -0.16384264826774597, 0.04010828584432602, -0.284895658493042, -0.11594772338867188, -0.21921314299106598, -0.05551173910498619, 0.8837569952011108, -0.03072507306933403, -0.024951402097940445, 0.4042310416698456, -0.14183545112609863, 0.1920667290687561, 0.24026161432266235, 0.012016026303172112, 0.35628217458724976, 0.3973482847213745, 0.02302839607000351, -0.02341473288834095, -0.20705905556678772, -0.13184037804603577, -0.17574137449264526, -0.41081684827804565, 0.183294877409935, 0.10920804738998413, 0.09665597230195999, 0.09345218539237976, 0.12901467084884644, 0.31782546639442444, -0.3063214421272278, 0.06815390288829803, -0.1839875727891922, 0.18177367746829987, -0.09221448749303818, 0.16675221920013428, 0.00038526952266693115, -0.049876995384693146, -0.07249491661787033, 0.054894622415304184, -0.13974066078662872, 0.048038408160209656, 0.6168335676193237, 0.21587158739566803, -0.25524771213531494, 0.10387106239795685, 0.01664472185075283, 0.1696363389492035, 0.16752909123897552, -0.38971656560897827, 0.25906503200531006, 0.28123894333839417, -0.08966797590255737, -0.14614927768707275, 0.5153303146362305, 0.6846243143081665, 0.27149268984794617, 0.19380296766757965, -0.33363834023475647, -0.09915708005428314, 0.0728026032447815, -0.252059668302536, 0.004445100203156471, 0.014775015413761139, 0.07432400435209274, 0.26481443643569946, 0.2510412037372589, -0.1831204742193222, 0.27528122067451477, 0.17145255208015442, 0.13613252341747284, -0.041961491107940674, 0.21754486858844757, 0.04254386946558952, -0.10058605670928955, 0.014734091237187386, 0.027879521250724792, -0.10741081833839417, -0.0529729425907135, -0.10608494281768799, 0.026002386584877968, 0.13772046566009521, 0.28262731432914734, 0.085894875228405, 0.10804896056652069, 0.1024058610200882, 0.6802182793617249, 0.07008431106805801, -0.2888934910297394, -0.0981350913643837, -0.7773222327232361, 0.23586612939834595, -0.21239477396011353, -0.03516922891139984, 0.047999199479818344, -0.07296501845121384, -0.06809205561876297, 0.23171523213386536, 0.3442820906639099, 0.30540046095848083, -0.18107905983924866, 0.1788245439529419, -0.4235609769821167, -0.005110267549753189, 0.24740338325500488, 0.11786671727895737, -0.05561888962984085, -0.36848050355911255, 0.03507160022854805, -0.25549617409706116, 0.1989346146583557, 0.15859653055667877, -0.014810748398303986, -0.17974700033664703, -0.3399270176887512, 0.5267002582550049, 0.20549117028713226, -0.16744062304496765, -0.2713397443294525, -0.2998411953449249, -0.28944921493530273, -0.13017213344573975, -0.16450372338294983, 0.008844777941703796, -0.12921816110610962, 0.4697496294975281, -0.2126944661140442, -0.3465811014175415, -0.6016421318054199, -0.14582480490207672, -0.06438544392585754, 0.20932787656784058, -0.29444730281829834, 0.45346859097480774, -0.2183256447315216, 0.03226083517074585, 0.1378416121006012, 0.13150018453598022, 0.12768352031707764, 0.15917523205280304, -0.2991049289703369, -0.39036428928375244, 0.36555415391921997, 0.012391886673867702, -0.0019595101475715637, 0.09703412652015686, 0.16770192980766296, -0.23104128241539001, 0.15725992619991302, 0.32490336894989014, -0.02102624624967575, 0.3592892289161682, 0.03882469981908798, -0.15163685381412506, -0.11673267185688019, 0.12920576333999634, -0.09540320932865143, 0.19632810354232788, 0.45630162954330444, -0.007810428738594055, -0.4788987934589386, 0.4348843991756439, 0.24929232895374298 ]
https://github.com/huggingface/datasets/issues/5450
to_tf_dataset with a TF collator causes bizarrely persistent slowdown
A possible hint: The function it seems to be spending a lot of time in (when iterating over the original dataset) is `_get_mp` in the PIL JPEG decoder: ![image](https://user-images.githubusercontent.com/12866554/214057267-c889f05e-efaf-4036-b805-c5381fa62f4a.png)
### Describe the bug This will make more sense if you take a look at [a Colab notebook that reproduces this issue.](https://colab.research.google.com/drive/1rxyeciQFWJTI0WrZ5aojp4Ls1ut18fNH?usp=sharing) Briefly, there are several datasets that, when you iterate over them with `to_tf_dataset` **and** a data collator that returns `tf` tensors, become very slow. We haven't been able to figure this one out - it can be intermittent, and we have no idea what could possibly cause it. The weirdest thing is that **the slowdown affects other attempts to access the underlying dataset**. If you try to iterate over the `tf.data.Dataset`, then interrupt execution, and then try to iterate over the original dataset, the original dataset is now also very slow! This is true even if the dataset format is not set to `tf` - the iteration is slow even though it's not calling TF at all! There is a simple workaround for this - we can simply get our data collators to return `np` tensors. When we do this, the bug is never triggered and everything is fine. In general, `np` is preferred for this kind of preprocessing work anyway, when the preprocessing is not going to be compiled into a pure `tf.data` pipeline! However, the issue is fascinating, and the TF team were wondering if anyone in datasets (cc @lhoestq @mariosasko) might have an idea of what could cause this. ### Steps to reproduce the bug Run the attached Colab. ### Expected behavior The slowdown should go away, or at least not persist after we stop iterating over the `tf.data.Dataset` ### Environment info The issue occurs on multiple versions of Python and TF, both on local machines and on Colab. All testing was done using the latest versions of `transformers` and `datasets` from `main`
29
to_tf_dataset with a TF collator causes bizarrely persistent slowdown ### Describe the bug This will make more sense if you take a look at [a Colab notebook that reproduces this issue.](https://colab.research.google.com/drive/1rxyeciQFWJTI0WrZ5aojp4Ls1ut18fNH?usp=sharing) Briefly, there are several datasets that, when you iterate over them with `to_tf_dataset` **and** a data collator that returns `tf` tensors, become very slow. We haven't been able to figure this one out - it can be intermittent, and we have no idea what could possibly cause it. The weirdest thing is that **the slowdown affects other attempts to access the underlying dataset**. If you try to iterate over the `tf.data.Dataset`, then interrupt execution, and then try to iterate over the original dataset, the original dataset is now also very slow! This is true even if the dataset format is not set to `tf` - the iteration is slow even though it's not calling TF at all! There is a simple workaround for this - we can simply get our data collators to return `np` tensors. When we do this, the bug is never triggered and everything is fine. In general, `np` is preferred for this kind of preprocessing work anyway, when the preprocessing is not going to be compiled into a pure `tf.data` pipeline! However, the issue is fascinating, and the TF team were wondering if anyone in datasets (cc @lhoestq @mariosasko) might have an idea of what could cause this. ### Steps to reproduce the bug Run the attached Colab. ### Expected behavior The slowdown should go away, or at least not persist after we stop iterating over the `tf.data.Dataset` ### Environment info The issue occurs on multiple versions of Python and TF, both on local machines and on Colab. All testing was done using the latest versions of `transformers` and `datasets` from `main` A possible hint: The function it seems to be spending a lot of time in (when iterating over the original dataset) is `_get_mp` in the PIL JPEG decoder: ![image](https://user-images.githubusercontent.com/12866554/214057267-c889f05e-efaf-4036-b805-c5381fa62f4a.png)
[ -0.23047439754009247, -0.06307906657457352, 0.056947726756334305, 0.1785079538822174, 0.2604309320449829, 0.053447164595127106, 0.2793619930744171, 0.18530496954917908, -0.3290843367576599, 0.28478318452835083, -0.12698425352573395, 0.4587993919849396, -0.0764392614364624, -0.009690884500741959, -0.2134905606508255, -0.07014273852109909, -0.13050886988639832, 0.20143833756446838, 0.0696883425116539, -0.0374174490571022, -0.21657881140708923, -0.001028314232826233, -0.04703497514128685, -0.2139015644788742, -0.319285124540329, -0.1255117952823639, 0.323632150888443, -0.008665338158607483, 0.16638487577438354, -0.023383772000670433, 0.2910540699958801, 0.07832776010036469, -0.18607734143733978, 0.6674256324768066, -0.00011007000284735113, 0.1993541270494461, -0.12351515889167786, 0.24294999241828918, -0.25224724411964417, 0.17271818220615387, 0.06004822254180908, -0.2791564166545868, 0.04920288175344467, -0.20254944264888763, -0.2348635196685791, 0.06680221110582352, 0.062163449823856354, -0.23645462095737457, 0.021425262093544006, 0.05106081813573837, 0.22403103113174438, 0.6168811321258545, -0.37305715680122375, 0.11365760117769241, 0.19789424538612366, -0.16156381368637085, -0.4353145956993103, 0.08168269693851471, 0.05699069797992706, -0.028629647567868233, -0.1346326470375061, 0.15103670954704285, 0.03808474540710449, 0.0060693733394145966, 0.11834879964590073, 0.038775328546762466, -0.05019385367631912, -0.26502448320388794, 0.057264357805252075, 0.35349175333976746, 0.31982508301734924, -0.18992164731025696, -0.13191252946853638, -0.12717323005199432, -0.202274888753891, -0.2720298767089844, 0.08963252604007721, -0.2927502691745758, -0.14389029145240784, 0.03434956818819046, -0.0328218974173069, 0.22216759622097015, 0.04803326725959778, -0.04090204834938049, -0.3155542314052582, 0.3105618953704834, -0.010283983312547207, 0.04012817144393921, 0.10146842151880264, -0.07920020818710327, 0.5324430465698242, -0.19953662157058716, 0.35832658410072327, 0.11646008491516113, -0.5897829532623291, -0.18822674453258514, 0.2821292281150818, -0.13472062349319458, -0.2100638747215271, -0.20562751591205597, 0.07340750098228455, 0.16686269640922546, -0.17021022737026215, -0.056075915694236755, -0.0002026483416557312, 0.06395910680294037, -0.4081264138221741, 0.03590809181332588, 0.3525276184082031, -0.025564143434166908, -0.1620321422815323, 0.06287407875061035, 0.10431093722581863, -0.1599803864955902, 0.06550455093383789, -0.24409273266792297, 0.2574722170829773, 0.0852060467004776, -0.33513402938842773, 0.07501910626888275, -0.2940991222858429, 0.22255341708660126, 0.07023748010396957, 0.09275927394628525, -0.10411695390939713, 0.4119652807712555, -0.031215474009513855, -0.5605384111404419, -0.4316475987434387, -0.017086630687117577, -0.2717447280883789, -0.2372591346502304, -0.24342933297157288, 0.01783398911356926, 0.18958990275859833, 0.03392782062292099, -0.33000776171684265, 0.21412977576255798, 0.10369160771369934, 0.23352614045143127, 0.27186617255210876, -0.35579928755760193, 0.10163789987564087, 0.3890202045440674, -0.23836283385753632, 0.34734636545181274, 0.052772268652915955, -0.2232220619916916, -0.2525932490825653, 0.05160798132419586, -0.2082265019416809, -0.27997201681137085, 0.07539677619934082, 0.15937696397304535, -0.22303029894828796, -0.034742571413517, 0.11410097777843475, 0.2490742951631546, 0.1674250066280365, -0.029554734006524086, -0.0019613057374954224, -0.38241976499557495, -0.6637114882469177, -0.23460417985916138, 0.21468444168567657, 0.1802724003791809, -0.48408132791519165, 0.25834983587265015, 0.044601548463106155, -0.0034938156604766846, 0.24322021007537842, 0.5019869804382324, -0.0634206160902977, 0.28245121240615845, -0.16790896654129028, -0.3983830213546753, 0.15209978818893433, 0.08767713606357574, -0.3128338158130646, 0.21966826915740967, -0.42262035608291626, 0.6322813630104065, -0.09820535033941269, 0.2618410885334015, -0.17011147737503052, -0.3234080672264099, 0.27878183126449585, 0.5590105056762695, -0.1511116474866867, 0.13110680878162384, -0.3799443244934082, 0.1376371830701828, 0.18890975415706635, 0.22378264367580414, -0.15487870573997498, 0.06148098409175873, -0.31361255049705505, 0.06803654134273529, 0.07572580873966217, -0.14205019176006317, -0.08910099416971207, 0.16472777724266052, 0.3180886507034302, -0.008820824325084686, 0.1687634289264679, 0.010370969772338867, -0.40453460812568665, 0.31244805455207825, 0.5668917894363403, 0.03756391257047653, 0.14871974289417267, -0.19035103917121887, 0.031029336154460907, 0.17565889656543732, 0.03957664221525192, 0.08905050158500671, 0.10543331503868103, 0.07398204505443573, -0.2354774922132492, 0.24453948438167572, -0.049939706921577454, 0.08954963088035583, -0.12974731624126434, -0.1605706661939621, -0.27670183777809143, 0.2471318393945694, 0.25460758805274963, -0.06284891068935394, -0.04815195873379707, 0.2258102297782898, -0.08805983513593674, -0.14637751877307892, -0.07708289474248886, 0.23931515216827393, 0.128759503364563, 0.36613839864730835, -0.24143972992897034, 0.4421011209487915, 0.12289078533649445, -0.04139738529920578, -0.08105448633432388, 0.09530161321163177, -0.055089328438043594, -0.2097051441669464, 0.2624257206916809, 0.36513635516166687, -0.1798909306526184, 0.15606383979320526, 0.17841894924640656, -0.1311446726322174, 0.1914793848991394, 0.017974097281694412, -0.024634739384055138, 0.030259177088737488, 0.32520443201065063, 0.42815688252449036, 0.0168747641146183, 0.24023286998271942, -0.5674974918365479, 0.5470620393753052, 0.5462750792503357, 0.006412077695131302, -0.3418385982513428, 0.03685387969017029, -0.13663417100906372, -0.07569117844104767, -0.05314319580793381, 0.2593570351600647, 0.31382349133491516, 0.12868906557559967, 0.1342412829399109, -0.09760551154613495, -0.23020392656326294, -0.28824904561042786, 0.1197933629155159, 0.15330415964126587, 0.3006879985332489, 0.19573041796684265, 0.38780325651168823, 0.15103347599506378, -0.33047378063201904, -0.3516426980495453, -0.1435410976409912, 0.33017081022262573, -0.20503738522529602, 0.42261001467704773, -0.34435468912124634, -0.2054446041584015, -0.19247759878635406, -0.06588506698608398, -0.037133488804101944, -0.3729936182498932, -0.1054094135761261, 0.31919464468955994, -0.05483369156718254, 0.10337528586387634, 0.002205917611718178, 0.3580735921859741, 0.07876016199588776, -0.23352603614330292, -0.2683458924293518, -0.3271828293800354, -0.28369152545928955, 0.04837615415453911, 0.2263084053993225, -0.18578048050403595, 0.15739130973815918, -0.06442751735448837, -0.06466594338417053, 0.02891882322728634, -0.4815453290939331, 0.16323067247867584, -0.2722371816635132, 0.3489210605621338, 0.15995432436466217, 0.1564277559518814, -0.09369686245918274, -0.23257988691329956, 0.05474068596959114, -0.12053825706243515, 0.039204031229019165, 0.19880668818950653, -0.3458791971206665, 0.09869235754013062, -0.11118991672992706, -0.015893585979938507, -0.02569781057536602, -0.24310587346553802, 0.1333777904510498, -0.16344356536865234, 0.009652584791183472, 0.6013255715370178, -0.16161397099494934, 0.21076752245426178, 0.4070775806903839, -0.031908392906188965, -0.2177916020154953, -0.08661709725856781, 0.4632287323474884, -0.11814426630735397, -0.12477000057697296, -0.1308198869228363, -0.1791142374277115, 0.01756414584815502, 0.21134799718856812, -0.5526947379112244, -0.005348501726984978, -0.6303219199180603, 0.11624586582183838, -0.12080271542072296, -0.17244306206703186, 0.0451287180185318, 0.12767630815505981, -0.07461252063512802, -0.14475543797016144, -0.17594940960407257, -0.08462592214345932, -0.004171553999185562, -0.06576133519411087, -0.1370370090007782, 0.24213746190071106, 0.36745551228523254, 0.4124252200126648, -0.1517173796892166, -0.4345428943634033, -0.04453419893980026, -0.16869623959064484, 0.23329965770244598, -0.1409384310245514, -0.3534391522407532, 0.11286196857690811, -0.08421806991100311, -0.35495102405548096, 0.19654729962348938, -0.3261687159538269, -0.2154996395111084, 0.09447650611400604, 0.14062730967998505, 0.5361981391906738, -0.42691677808761597, 0.0751161128282547, 0.09145142883062363, 0.2730627655982971, 0.3035038411617279, 0.08686961978673935, -0.2059241682291031, -0.26168450713157654, 0.034635238349437714, 0.030158311128616333, -0.09845048934221268, -0.16680818796157837, -0.022832555696368217, -0.10480346530675888, -0.44316649436950684, 0.007741428911685944, 0.21913613379001617, 0.4146866798400879, 0.1845950335264206, -0.11455772817134857, 0.13345207273960114, 0.11614494025707245, 0.6114652752876282, -0.035244956612586975, -0.0852145254611969, 0.41790440678596497, -0.21834102272987366, -0.49401357769966125, -0.016568632796406746, -0.2019568681716919, 0.017740799114108086, 0.3124580979347229, 0.6625632643699646, 0.06982796639204025, -0.3636671006679535, 0.29827579855918884, 0.3248656988143921, -0.1201549768447876, -0.054687876254320145, -0.27900874614715576, -0.4632069766521454, 0.31908926367759705, 0.06211788207292557, -0.07186178863048553, 0.12057585269212723, -0.0350862517952919, -0.15395502746105194, -0.10240347683429718, -0.10542004555463791, 0.25846579670906067, 0.29116031527519226, 0.026678169146180153, 0.24449411034584045, 0.316622793674469, -0.06348580867052078, -0.08964596688747406, 0.261797696352005, 0.23868107795715332, -0.0548398457467556, -0.35778167843818665, 0.2138896882534027, 0.2981906831264496, 0.16419343650341034, 0.6050374507904053, -0.15216529369354248, 0.07206549495458603, -0.5491166114807129, 0.23612596094608307, -0.04373031109571457, 0.18471719324588776, 0.36439743638038635, 0.047515712678432465, -0.3607901632785797, -0.13197600841522217, 0.0790991559624672, 0.01442236453294754, 0.026990197598934174, 0.17277055978775024, -0.09389224648475647, -0.013059645891189575, 0.2769860029220581, 0.27131736278533936, 1.0420985221862793, -0.0951421707868576, 0.28219717741012573, 0.569690465927124, -0.04058883711695671, 0.5564442276954651, -0.3447599411010742, 0.27516400814056396, -0.14643217623233795, -0.9591010808944702, 0.15784470736980438, -0.13117168843746185, -0.10399439185857773, -0.15074864029884338, -0.0547514408826828, 0.05450551211833954, 0.019899599254131317, 0.15104392170906067, 0.18200019001960754, 0.2097764015197754, 0.20152615010738373, -0.4421049654483795, -0.1501072496175766, 0.1322360783815384, 0.026701783761382103, -0.11677095293998718, -0.06875088810920715, -0.018621250987052917, 0.02812385931611061, 0.28741127252578735, -0.14954811334609985, 0.11357595771551132, -0.5221554040908813, 0.03897446021437645, 0.13199450075626373, -0.2699054777622223, 0.1991572380065918, -0.046105336397886276, 0.36038655042648315, 0.20299282670021057, -0.1144019216299057, 0.21315476298332214, 0.1204206794500351, 0.23644450306892395, 0.31458932161331177, -0.3353801965713501, 0.4231704771518707, 0.1697324514389038, 0.169165700674057, -0.1424681842327118, 0.16386282444000244, 0.08782972395420074, 0.011263012886047363, -0.09833553433418274, -0.2846192717552185, -0.05084921419620514, -0.1415817141532898, 0.2186458706855774, 0.10149876773357391, -0.1276496797800064, 0.1918821930885315, -0.2906147241592407, 0.09821945428848267, 0.2929273843765259, -0.37931743264198303, -0.5129899978637695, 0.0020985212177038193, 0.09777339547872543, 0.17448550462722778, 0.14545376598834991, 0.2445298433303833, 0.33558598160743713, -0.41862189769744873, -0.06332127749919891, 0.1831633448600769, -0.02833673730492592, -0.3269656002521515, 0.3907651901245117, -0.2784232497215271, 0.14320214092731476, 0.01798788644373417, 0.333744078874588, -0.19918809831142426, -0.15870851278305054, -0.45894855260849, -0.033235419541597366, -0.09498881548643112, -0.09080423414707184, 0.18938598036766052, 0.26491209864616394, -0.10766320675611496, 0.6049935221672058, -0.3428015410900116, 0.20922042429447174, -0.35436397790908813, -0.14659634232521057, -0.11338795721530914, 0.10691162198781967, -0.030199609696865082, -0.17517316341400146, 0.2339084893465042, -0.020159106701612473, 0.09579943120479584, 0.21436375379562378, -0.1768883764743805, -0.2907412350177765, -0.24276892840862274, 0.10635237395763397, 0.03507068380713463, -0.27142584323883057, 0.10974627733230591, -0.03880060464143753, -0.0749739408493042, -0.39762139320373535, 0.19784818589687347, 0.1891433298587799, -0.19073377549648285, -0.06295056641101837, -0.046483781188726425, 0.1771015226840973, 0.21689195930957794, -0.016936641186475754, 0.024192944169044495, 0.22020605206489563, 0.352843701839447, 0.35801976919174194, -0.02943209931254387, -0.11947712302207947, -0.005468946881592274, 0.10433634370565414, 0.026910968124866486, -0.050735317170619965, 0.15103641152381897, -0.16823531687259674, -0.15590591728687286, -0.011075043119490147, -0.00975191593170166, 0.4469587206840515, -0.05738675966858864, -0.44700896739959717, -0.007894514128565788, 0.14907006919384003, -0.0030381139367818832, -0.18813757598400116, 0.38462796807289124, 0.005839222576469183, 0.08568133413791656, 0.35188281536102295, 0.00846034288406372, 0.3664890229701996, 0.09695250540971756, 0.048992447555065155, 0.17549537122249603, -0.1336919218301773, -0.0234218779951334, 0.23752275109291077, 0.06542782485485077, 0.1375218778848648, 0.029237765818834305, 0.004931224510073662, 0.21440020203590393, 0.24072353541851044, 0.17432263493537903, 0.0536268949508667, 0.07954534888267517, 0.0007253214716911316, 0.034681033343076706, -0.2393139898777008, 0.026653282344341278, 0.1806725263595581, -0.24717137217521667, 0.3007054924964905, 0.0899960845708847, -0.05521642416715622, -0.12153107672929764, 0.0031093452125787735, -0.20790252089500427, 0.2726871967315674, -0.16046980023384094, -0.05792386829853058, 0.10248446464538574, 0.12886658310890198, -0.27256786823272705, 0.10523122549057007, -0.09359735250473022, 0.2589871883392334, -0.14607305824756622, 0.20522092282772064, 0.18266689777374268, -0.024541625753045082, 0.01578177511692047, -0.14310067892074585, 0.316300630569458, -0.03595374524593353, 0.19701088964939117, -0.22287021577358246, -0.0835234522819519, -0.3624180853366852, 0.11311434209346771, 0.08965523540973663, 0.25367116928100586, -0.019402097910642624, 0.16412711143493652, -0.1275993138551712, -0.08432053029537201, 0.05920540541410446, 0.2573819160461426, -0.3264651894569397, 0.27419614791870117, 0.30778396129608154, 0.040958471596241, -0.24154040217399597, -0.21491651237010956, -0.005131702870130539, -0.04290718212723732, -0.4739839732646942, 0.13385850191116333, 0.19709601998329163, 0.014836780726909637, -0.03894452750682831, 0.19488295912742615, 0.09446095675230026, -0.11829531192779541, 0.4340919554233551, -0.2757098972797394, 0.13851529359817505, -0.016533251851797104, 0.0918162614107132, -0.10139413177967072, 0.6949254274368286, 0.14598871767520905, 0.25428932905197144, -0.07362832874059677, -0.22730393707752228, -0.22841300070285797, 0.4260845482349396, -0.25880324840545654, -0.03099045529961586, 0.23555251955986023, 0.16526088118553162, 0.16475644707679749, 0.2060094177722931, -0.02643817663192749, -0.05592913180589676, -0.12365873903036118, 0.004362661391496658, -0.19219405949115753, -0.24375350773334503, -0.5642445683479309, -0.3548111021518707, -0.18513968586921692, -0.44724705815315247, 0.1050550565123558, 0.02443704381585121, 0.14412745833396912, -0.18398094177246094, -0.14242903888225555, 0.09339937567710876, 0.21003457903862, 0.3043152689933777, 0.1998194307088852, -0.07957716286182404, 0.011441275477409363, -0.0672517791390419, -0.1467074602842331, -0.15901589393615723, -0.31165364384651184, 0.020163465291261673, 0.005075367167592049, -0.04439578205347061, -0.08837614953517914, 0.0030504651367664337, -0.18270748853683472, 0.2662467062473297, 0.22343574464321136, 0.28903016448020935, -0.020962033420801163, 0.1784687489271164, -0.23294591903686523, 0.384966105222702, 0.12367083132266998, 0.48207539319992065, 0.11362303793430328, 0.3559058606624603, -0.25082457065582275, -0.2849391996860504, 0.47929349541664124, -0.4436371326446533, -0.3864149749279022, -0.0016162365209311247, 0.07147003710269928, -0.08012879639863968, -0.0642056092619896, 0.050250910222530365, -0.2534959018230438, 0.2039598971605301, -0.08973181992769241, -0.43994855880737305, 0.5002167820930481, 0.03680988773703575, -0.00666431337594986, -0.17729061841964722, 0.11629411578178406, 0.09878916293382645, -0.27932703495025635, -0.0866766944527626, -0.006699014455080032 ]
https://github.com/huggingface/datasets/issues/5450
to_tf_dataset with a TF collator causes bizarrely persistent slowdown
If "mp" is multiprocessing, this might suggest some kind of negative interaction between the JPEG decoder and TF's handling of processes/threads. Note that we haven't merged the parallel `to_tf_dataset` PR yet, so it's not caused by that PR!
### Describe the bug This will make more sense if you take a look at [a Colab notebook that reproduces this issue.](https://colab.research.google.com/drive/1rxyeciQFWJTI0WrZ5aojp4Ls1ut18fNH?usp=sharing) Briefly, there are several datasets that, when you iterate over them with `to_tf_dataset` **and** a data collator that returns `tf` tensors, become very slow. We haven't been able to figure this one out - it can be intermittent, and we have no idea what could possibly cause it. The weirdest thing is that **the slowdown affects other attempts to access the underlying dataset**. If you try to iterate over the `tf.data.Dataset`, then interrupt execution, and then try to iterate over the original dataset, the original dataset is now also very slow! This is true even if the dataset format is not set to `tf` - the iteration is slow even though it's not calling TF at all! There is a simple workaround for this - we can simply get our data collators to return `np` tensors. When we do this, the bug is never triggered and everything is fine. In general, `np` is preferred for this kind of preprocessing work anyway, when the preprocessing is not going to be compiled into a pure `tf.data` pipeline! However, the issue is fascinating, and the TF team were wondering if anyone in datasets (cc @lhoestq @mariosasko) might have an idea of what could cause this. ### Steps to reproduce the bug Run the attached Colab. ### Expected behavior The slowdown should go away, or at least not persist after we stop iterating over the `tf.data.Dataset` ### Environment info The issue occurs on multiple versions of Python and TF, both on local machines and on Colab. All testing was done using the latest versions of `transformers` and `datasets` from `main`
38
to_tf_dataset with a TF collator causes bizarrely persistent slowdown ### Describe the bug This will make more sense if you take a look at [a Colab notebook that reproduces this issue.](https://colab.research.google.com/drive/1rxyeciQFWJTI0WrZ5aojp4Ls1ut18fNH?usp=sharing) Briefly, there are several datasets that, when you iterate over them with `to_tf_dataset` **and** a data collator that returns `tf` tensors, become very slow. We haven't been able to figure this one out - it can be intermittent, and we have no idea what could possibly cause it. The weirdest thing is that **the slowdown affects other attempts to access the underlying dataset**. If you try to iterate over the `tf.data.Dataset`, then interrupt execution, and then try to iterate over the original dataset, the original dataset is now also very slow! This is true even if the dataset format is not set to `tf` - the iteration is slow even though it's not calling TF at all! There is a simple workaround for this - we can simply get our data collators to return `np` tensors. When we do this, the bug is never triggered and everything is fine. In general, `np` is preferred for this kind of preprocessing work anyway, when the preprocessing is not going to be compiled into a pure `tf.data` pipeline! However, the issue is fascinating, and the TF team were wondering if anyone in datasets (cc @lhoestq @mariosasko) might have an idea of what could cause this. ### Steps to reproduce the bug Run the attached Colab. ### Expected behavior The slowdown should go away, or at least not persist after we stop iterating over the `tf.data.Dataset` ### Environment info The issue occurs on multiple versions of Python and TF, both on local machines and on Colab. All testing was done using the latest versions of `transformers` and `datasets` from `main` If "mp" is multiprocessing, this might suggest some kind of negative interaction between the JPEG decoder and TF's handling of processes/threads. Note that we haven't merged the parallel `to_tf_dataset` PR yet, so it's not caused by that PR!
[ -0.25836968421936035, -0.07155779004096985, 0.07093456387519836, 0.15415999293327332, 0.2888794541358948, 0.023602105677127838, 0.2706558108329773, 0.17421673238277435, -0.4144011437892914, 0.31717103719711304, -0.1040775403380394, 0.4773680567741394, -0.07838501036167145, 0.02827969752252102, -0.20871451497077942, -0.14000943303108215, -0.13243138790130615, 0.1724291741847992, 0.07631027698516846, -0.011305596679449081, -0.20501837134361267, 0.02286938577890396, -0.021393515169620514, -0.18750707805156708, -0.3567838668823242, -0.10686296969652176, 0.30241677165031433, 0.021569494158029556, 0.19099794328212738, -0.0424928292632103, 0.23834167420864105, 0.05661025270819664, -0.1716432422399521, 0.6674649715423584, -0.0001098733046092093, 0.20476208627223969, -0.12528719007968903, 0.21780581772327423, -0.20953015983104706, 0.1629304736852646, 0.12932562828063965, -0.276961088180542, 0.06310590356588364, -0.18698951601982117, -0.22556033730506897, 0.06337761878967285, 0.0638127252459526, -0.2815702557563782, -0.017095059156417847, 0.04536507651209831, 0.22637641429901123, 0.6675879955291748, -0.3827250003814697, 0.11556122452020645, 0.17519551515579224, -0.19179917871952057, -0.4273046851158142, 0.07514052093029022, 0.08083503693342209, -0.06632369011640549, -0.10902868956327438, 0.134757861495018, 0.035188138484954834, 0.04692281410098076, 0.09083963185548782, 0.04172103479504585, 0.050338417291641235, -0.27997738122940063, 0.04617956653237343, 0.3966902792453766, 0.3347184360027313, -0.21777787804603577, -0.15227429568767548, -0.16123804450035095, -0.20847348868846893, -0.3176703155040741, 0.08769930899143219, -0.22507356107234955, -0.16175754368305206, 0.03929414600133896, 0.001638140995055437, 0.24660521745681763, 0.0976763516664505, -0.04603569209575653, -0.3251616060733795, 0.3356909453868866, 0.04253038763999939, 0.03063899651169777, 0.1089337021112442, -0.07711558789014816, 0.4693949818611145, -0.16333995759487152, 0.3991677761077881, 0.05918049439787865, -0.5207026600837708, -0.15816882252693176, 0.2646685242652893, -0.1185869351029396, -0.23782920837402344, -0.25110071897506714, 0.08777495473623276, 0.16618651151657104, -0.18385952711105347, -0.02756616473197937, 0.039414748549461365, -0.022108128294348717, -0.4361163377761841, 0.001021835021674633, 0.36882323026657104, -0.0414251945912838, -0.2066454440355301, 0.06608061492443085, 0.1572308987379074, -0.16535009443759918, 0.0569184236228466, -0.198691725730896, 0.22744499146938324, 0.10713638365268707, -0.36032408475875854, 0.09011391550302505, -0.296236127614975, 0.15982548892498016, 0.003615892492234707, 0.050336360931396484, -0.10068374872207642, 0.5487071871757507, -0.01707189530134201, -0.5281932950019836, -0.47966283559799194, -0.04897928982973099, -0.27171459794044495, -0.19935546815395355, -0.2866721451282501, 0.014766001142561436, 0.17725181579589844, 0.05779296159744263, -0.32208359241485596, 0.2134535014629364, 0.1426805853843689, 0.2184927761554718, 0.28672534227371216, -0.3228122293949127, 0.08213559538125992, 0.4445638656616211, -0.20618799328804016, 0.3047621548175812, 0.045386914163827896, -0.20894040167331696, -0.27565518021583557, 0.08336987346410751, -0.22169801592826843, -0.2875015437602997, 0.10882899165153503, 0.16142573952674866, -0.15599150955677032, -0.0028234384953975677, 0.04183309152722359, 0.2140936702489853, 0.187488853931427, -0.0366227887570858, 0.025813788175582886, -0.38514643907546997, -0.6418925523757935, -0.21460898220539093, 0.17267239093780518, 0.14776578545570374, -0.4792534410953522, 0.2597719132900238, 0.05814162269234657, -0.044896986335515976, 0.25409963726997375, 0.47242796421051025, -0.03520688787102699, 0.2612052857875824, -0.1597023904323578, -0.40800416469573975, 0.09690237045288086, 0.037892188876867294, -0.23466774821281433, 0.20671889185905457, -0.4243800640106201, 0.6094992756843567, -0.043028198182582855, 0.23012478649616241, -0.23486024141311646, -0.304919570684433, 0.26723623275756836, 0.5183135867118835, -0.17856377363204956, 0.16114464402198792, -0.3810412883758545, 0.13213753700256348, 0.1788560003042221, 0.21091671288013458, -0.13949722051620483, 0.007941752672195435, -0.31564733386039734, 0.06246993690729141, 0.12094201892614365, -0.15129287540912628, -0.08860670775175095, 0.15170502662658691, 0.27921801805496216, -0.045738376677036285, 0.14662499725818634, -0.02035422995686531, -0.37854093313217163, 0.30547672510147095, 0.5227789878845215, 0.0209745392203331, 0.18718987703323364, -0.197007417678833, 0.12160728126764297, 0.16938884556293488, 0.057657357305288315, 0.05368848517537117, 0.10883711278438568, 0.08838590979576111, -0.28450238704681396, 0.23605500161647797, -0.09990671277046204, 0.12343920022249222, -0.06639441847801208, -0.142535999417305, -0.2683444023132324, 0.2624240815639496, 0.2491963654756546, -0.0800887942314148, -0.06779942661523819, 0.24590826034545898, -0.07520151883363724, -0.11411973088979721, -0.055692367255687714, 0.24610796570777893, 0.18164053559303284, 0.40734177827835083, -0.27983027696609497, 0.42908018827438354, 0.15917831659317017, -0.07243141531944275, -0.1129082664847374, 0.07235561311244965, -0.07598908245563507, -0.20174801349639893, 0.2998017370700836, 0.39750605821609497, -0.175887331366539, 0.16363635659217834, 0.22706036269664764, -0.18606600165367126, 0.16702775657176971, 0.012679237872362137, -0.031376391649246216, 0.006804898381233215, 0.34843969345092773, 0.47965291142463684, 0.030794788151979446, 0.23301899433135986, -0.605696976184845, 0.5463457107543945, 0.5701611638069153, 0.03209028020501137, -0.3687916398048401, 0.027537664398550987, -0.11084505170583725, -0.07124653458595276, -0.030076084658503532, 0.19775210320949554, 0.32576680183410645, 0.14894366264343262, 0.13822683691978455, -0.05052656680345535, -0.22783280909061432, -0.30672982335090637, 0.11179366707801819, 0.1698766052722931, 0.308939665555954, 0.2196827232837677, 0.4069252610206604, 0.1683545708656311, -0.3035334348678589, -0.3210342526435852, -0.1302587240934372, 0.3044144809246063, -0.24134425818920135, 0.40262678265571594, -0.4120118021965027, -0.2197418212890625, -0.16319382190704346, -0.10685361176729202, -0.06960803270339966, -0.3638038635253906, -0.10844288766384125, 0.3181053698062897, -0.04628720507025719, 0.05480566620826721, -0.02160937897861004, 0.32853269577026367, 0.010452641174197197, -0.18918448686599731, -0.2168264389038086, -0.31366515159606934, -0.28624817728996277, 0.0506146065890789, 0.23560719192028046, -0.16210834681987762, 0.1792236715555191, -0.07123399525880814, -0.10099899023771286, 0.05958142131567001, -0.4533131420612335, 0.20683595538139343, -0.22879542410373688, 0.3257577419281006, 0.15459585189819336, 0.10140379518270493, -0.04330822452902794, -0.2469901442527771, 0.07952890545129776, -0.14437468349933624, 0.028692642226815224, 0.1492752879858017, -0.3133028745651245, 0.11125554889440536, -0.13892687857151031, -0.03437608480453491, -0.07146211713552475, -0.22049051523208618, 0.15383952856063843, -0.1603308469057083, 0.008758749812841415, 0.488398939371109, -0.18384729325771332, 0.18963277339935303, 0.371038019657135, -0.0037279613316059113, -0.22518223524093628, -0.11391133069992065, 0.3657808005809784, -0.13004165887832642, -0.11245132982730865, -0.11043723672628403, -0.16617722809314728, 0.027027489617466927, 0.19230975210666656, -0.5441336035728455, -0.07723747938871384, -0.5690269470214844, 0.16563135385513306, -0.11585740745067596, -0.1462714672088623, 0.045069627463817596, 0.1259533315896988, -0.08810308575630188, -0.16769826412200928, -0.1990872025489807, -0.07390386611223221, 0.010440926998853683, -0.07723502069711685, -0.1697407364845276, 0.22138231992721558, 0.3583422005176544, 0.45892804861068726, -0.18972036242485046, -0.42668694257736206, 0.026757720857858658, -0.20127928256988525, 0.20767579972743988, -0.11168993264436722, -0.29905325174331665, 0.1093711331486702, -0.14154669642448425, -0.33566176891326904, 0.18866172432899475, -0.30531200766563416, -0.2678607702255249, 0.05344713479280472, 0.21670758724212646, 0.5004594326019287, -0.4103400707244873, 0.05103180930018425, 0.16449308395385742, 0.2460988461971283, 0.2867511212825775, 0.08410938829183578, -0.2289222925901413, -0.22781994938850403, 0.055862005800008774, 0.06871531158685684, -0.13538724184036255, -0.17580567300319672, 0.03576430305838585, -0.14047345519065857, -0.46126800775527954, 0.005522936582565308, 0.24363380670547485, 0.3903203010559082, 0.17646591365337372, -0.1432986855506897, 0.13458269834518433, 0.053772952407598495, 0.5911898016929626, -0.0779193639755249, -0.06980448216199875, 0.47089266777038574, -0.23813295364379883, -0.43387681245803833, -0.04522140324115753, -0.23879018425941467, -0.018526967614889145, 0.35325169563293457, 0.6810201406478882, 0.03881459683179855, -0.3594919443130493, 0.22173233330249786, 0.2968502342700958, -0.10079611092805862, -0.06426728516817093, -0.3173077702522278, -0.43059951066970825, 0.33225199580192566, 0.09623362869024277, -0.05464814230799675, 0.1281408965587616, -0.07492303103208542, -0.10392264276742935, -0.05775655061006546, -0.09546984732151031, 0.2661193311214447, 0.27261587977409363, 0.016150247305631638, 0.23010225594043732, 0.30016934871673584, -0.10768932104110718, 0.008205946534872055, 0.3863682150840759, 0.26071691513061523, -0.12350800633430481, -0.28934890031814575, 0.2524212598800659, 0.2684887647628784, 0.21128341555595398, 0.6263773441314697, -0.1338602751493454, 0.10261114686727524, -0.5309902429580688, 0.25925320386886597, -0.06974668800830841, 0.1875481754541397, 0.351887047290802, -0.001685266848653555, -0.32621046900749207, -0.10179711878299713, 0.0966576337814331, 0.06767204403877258, 0.042204350233078, 0.10550366342067719, -0.16326378285884857, -0.018557628616690636, 0.18566347658634186, 0.3235105276107788, 1.0292431116104126, -0.10323368012905121, 0.3331869840621948, 0.5399314165115356, -0.09545983374118805, 0.5075004696846008, -0.37776637077331543, 0.2837056517601013, -0.15437285602092743, -0.9631527066230774, 0.14274652302265167, -0.13125385344028473, -0.06748498231172562, -0.15573318302631378, -0.04564828798174858, 0.06450750678777695, 0.06017273664474487, 0.04601306840777397, 0.1971139758825302, 0.24251040816307068, 0.20291677117347717, -0.4708142578601837, -0.21566487848758698, 0.11552362143993378, 0.039634183049201965, -0.13964985311031342, -0.0846431702375412, -0.04551658779382706, 0.0848112404346466, 0.3098880648612976, -0.1710396111011505, 0.08807700127363205, -0.5843019485473633, -0.042318444699048996, 0.14012180268764496, -0.23607513308525085, 0.18852834403514862, -0.05704937502741814, 0.35107892751693726, 0.1478530615568161, -0.1000153124332428, 0.17862655222415924, 0.1443105787038803, 0.24233706295490265, 0.30568352341651917, -0.3438373804092407, 0.4861191213130951, 0.12832337617874146, 0.16643118858337402, -0.13760432600975037, 0.1427220106124878, 0.0738382339477539, 0.07123105227947235, -0.08629219233989716, -0.21055836975574493, 0.00534786144271493, -0.13357175886631012, 0.2535216808319092, 0.12771093845367432, -0.121647909283638, 0.1902955323457718, -0.27292948961257935, 0.09204461425542831, 0.298277348279953, -0.38754379749298096, -0.5239693522453308, -0.019939139485359192, 0.13070598244667053, 0.14531582593917847, 0.1408710479736328, 0.209850013256073, 0.3657732605934143, -0.42512327432632446, -0.07235033065080643, 0.19405540823936462, 0.012567835859954357, -0.249986469745636, 0.3766237795352936, -0.1963111162185669, 0.12339003384113312, 0.0790337547659874, 0.27839288115501404, -0.19464541971683502, -0.12485898286104202, -0.4525514841079712, -0.009582724422216415, -0.11276107281446457, -0.1105116605758667, 0.16956984996795654, 0.22400155663490295, -0.04888312891125679, 0.6715772151947021, -0.3108772337436676, 0.21196259558200836, -0.3607686758041382, -0.13487271964550018, -0.07614463567733765, 0.10725501924753189, -0.015610367059707642, -0.1890888512134552, 0.14620275795459747, 0.011927084997296333, 0.0949205681681633, 0.2352764904499054, -0.1983308047056198, -0.2871883511543274, -0.26613035798072815, 0.12124699354171753, 0.06019510328769684, -0.2816120982170105, 0.17312757670879364, -0.02941756136715412, -0.08355578780174255, -0.3925808370113373, 0.21753725409507751, 0.1845819056034088, -0.22185714542865753, -0.10524304211139679, 0.03213392198085785, 0.1904890239238739, 0.1806057244539261, -0.03830397129058838, 0.030531268566846848, 0.18276917934417725, 0.3281693756580353, 0.3611653745174408, -0.0569952055811882, -0.11124735325574875, 0.05056220293045044, 0.050200507044792175, 0.014313682913780212, -0.005528565496206284, 0.13389980792999268, -0.1770251989364624, -0.21090151369571686, -0.012090894393622875, 0.03935827314853668, 0.4095802307128906, -0.04965517297387123, -0.4306284189224243, 0.03587760776281357, 0.14769379794597626, -0.013435976579785347, -0.18261878192424774, 0.41553840041160583, 0.03884311392903328, 0.10461175441741943, 0.3635968267917633, 0.08871273696422577, 0.4083377718925476, 0.048294804990291595, 0.04886498302221298, 0.1309596300125122, -0.14997021853923798, -0.06161109730601311, 0.2149171680212021, 0.06788383424282074, 0.20981758832931519, 0.04018643870949745, 0.005807308480143547, 0.19827613234519958, 0.20111936330795288, 0.18574148416519165, 0.11824019998311996, 0.18716296553611755, -0.05033910647034645, 0.02139393240213394, -0.272637277841568, 0.05088506639003754, 0.159311905503273, -0.1998058259487152, 0.3374009430408478, 0.09641048312187195, -0.028791867196559906, -0.13088008761405945, -0.00917091779410839, -0.22386051714420319, 0.2849118709564209, -0.19206640124320984, -0.11347456276416779, 0.08846955001354218, 0.11164485663175583, -0.278026819229126, 0.11928658187389374, -0.1352560818195343, 0.2884390354156494, -0.046039387583732605, 0.22088909149169922, 0.1695161759853363, -0.03953833132982254, -0.08219979703426361, -0.19724202156066895, 0.3242577314376831, -0.005074594169855118, 0.21804775297641754, -0.2319570630788803, -0.12099771201610565, -0.3551865816116333, 0.09150157868862152, 0.10962143540382385, 0.25143593549728394, -0.06992655992507935, 0.10060117393732071, -0.12235726416110992, -0.035871557891368866, 0.06041345000267029, 0.2584502100944519, -0.279579222202301, 0.31164416670799255, 0.309219092130661, 0.03638654202222824, -0.2427748441696167, -0.21325109899044037, 0.04596972092986107, -0.020140543580055237, -0.4831967055797577, 0.09563682973384857, 0.21442753076553345, 0.042567022144794464, -0.01340937614440918, 0.24526730179786682, 0.05661562830209732, -0.10043712705373764, 0.47106027603149414, -0.2910254895687103, 0.12883412837982178, -0.016729308292269707, 0.09566239267587662, -0.08486698567867279, 0.6745899319648743, 0.18261843919754028, 0.21156954765319824, -0.07983919233083725, -0.1570626199245453, -0.29739683866500854, 0.45961993932724, -0.2957881987094879, -0.07613743841648102, 0.21392600238323212, 0.1430123895406723, 0.19549018144607544, 0.24516695737838745, 0.03191882371902466, 0.0038080085068941116, -0.08450343459844589, 0.06689457595348358, -0.26721900701522827, -0.23107005655765533, -0.5621861815452576, -0.3583841323852539, -0.17447279393672943, -0.43008118867874146, 0.11418195813894272, 0.0358516201376915, 0.15573787689208984, -0.1697114109992981, -0.16838450729846954, 0.09742656350135803, 0.2775193452835083, 0.24183253943920135, 0.18789707124233246, -0.026456892490386963, -0.023670149967074394, -0.11098553240299225, -0.11191906034946442, -0.11433740705251694, -0.31312331557273865, 0.001140303909778595, -0.028315406292676926, -0.024180252104997635, -0.08993782848119736, -0.0011684969067573547, -0.18162153661251068, 0.2963705062866211, 0.22300921380519867, 0.30642378330230713, -0.009823503904044628, 0.1951451301574707, -0.17286160588264465, 0.3350883424282074, 0.146681547164917, 0.5019350647926331, 0.12116467952728271, 0.3507665991783142, -0.2558600902557373, -0.2726500630378723, 0.459477961063385, -0.5028335452079773, -0.35560810565948486, -0.12001816183328629, 0.09126508235931396, -0.11174745112657547, -0.03472758084535599, 0.036066219210624695, -0.2757743000984192, 0.19197756052017212, -0.10081329196691513, -0.4873209297657013, 0.4577848017215729, -0.059279415756464005, -0.039243586361408234, -0.20435360074043274, 0.08213914930820465, 0.08487963676452637, -0.30222734808921814, -0.09820996224880219, -0.00933883897960186 ]
https://github.com/huggingface/datasets/issues/5450
to_tf_dataset with a TF collator causes bizarrely persistent slowdown
Update: MP isn't multiprocessing at all, it's an internal PIL method for loading metadata from JPEG files. No idea why that would be a bottleneck, but I'll see if a Python profiler can't figure out where the time is actually being spent.
### Describe the bug This will make more sense if you take a look at [a Colab notebook that reproduces this issue.](https://colab.research.google.com/drive/1rxyeciQFWJTI0WrZ5aojp4Ls1ut18fNH?usp=sharing) Briefly, there are several datasets that, when you iterate over them with `to_tf_dataset` **and** a data collator that returns `tf` tensors, become very slow. We haven't been able to figure this one out - it can be intermittent, and we have no idea what could possibly cause it. The weirdest thing is that **the slowdown affects other attempts to access the underlying dataset**. If you try to iterate over the `tf.data.Dataset`, then interrupt execution, and then try to iterate over the original dataset, the original dataset is now also very slow! This is true even if the dataset format is not set to `tf` - the iteration is slow even though it's not calling TF at all! There is a simple workaround for this - we can simply get our data collators to return `np` tensors. When we do this, the bug is never triggered and everything is fine. In general, `np` is preferred for this kind of preprocessing work anyway, when the preprocessing is not going to be compiled into a pure `tf.data` pipeline! However, the issue is fascinating, and the TF team were wondering if anyone in datasets (cc @lhoestq @mariosasko) might have an idea of what could cause this. ### Steps to reproduce the bug Run the attached Colab. ### Expected behavior The slowdown should go away, or at least not persist after we stop iterating over the `tf.data.Dataset` ### Environment info The issue occurs on multiple versions of Python and TF, both on local machines and on Colab. All testing was done using the latest versions of `transformers` and `datasets` from `main`
42
to_tf_dataset with a TF collator causes bizarrely persistent slowdown ### Describe the bug This will make more sense if you take a look at [a Colab notebook that reproduces this issue.](https://colab.research.google.com/drive/1rxyeciQFWJTI0WrZ5aojp4Ls1ut18fNH?usp=sharing) Briefly, there are several datasets that, when you iterate over them with `to_tf_dataset` **and** a data collator that returns `tf` tensors, become very slow. We haven't been able to figure this one out - it can be intermittent, and we have no idea what could possibly cause it. The weirdest thing is that **the slowdown affects other attempts to access the underlying dataset**. If you try to iterate over the `tf.data.Dataset`, then interrupt execution, and then try to iterate over the original dataset, the original dataset is now also very slow! This is true even if the dataset format is not set to `tf` - the iteration is slow even though it's not calling TF at all! There is a simple workaround for this - we can simply get our data collators to return `np` tensors. When we do this, the bug is never triggered and everything is fine. In general, `np` is preferred for this kind of preprocessing work anyway, when the preprocessing is not going to be compiled into a pure `tf.data` pipeline! However, the issue is fascinating, and the TF team were wondering if anyone in datasets (cc @lhoestq @mariosasko) might have an idea of what could cause this. ### Steps to reproduce the bug Run the attached Colab. ### Expected behavior The slowdown should go away, or at least not persist after we stop iterating over the `tf.data.Dataset` ### Environment info The issue occurs on multiple versions of Python and TF, both on local machines and on Colab. All testing was done using the latest versions of `transformers` and `datasets` from `main` Update: MP isn't multiprocessing at all, it's an internal PIL method for loading metadata from JPEG files. No idea why that would be a bottleneck, but I'll see if a Python profiler can't figure out where the time is actually being spent.
[ -0.2688671052455902, -0.08593864738941193, 0.07341070473194122, 0.15628845989704132, 0.2705063223838806, 0.028361022472381592, 0.30375584959983826, 0.14333941042423248, -0.38831591606140137, 0.3228151798248291, -0.1225116178393364, 0.4677031338214874, -0.06810709834098816, 0.03653506934642792, -0.2237125039100647, -0.1333000361919403, -0.1290634274482727, 0.14606565237045288, 0.07788878679275513, 0.001357194036245346, -0.21785807609558105, 0.027232268825173378, -0.03952572122216225, -0.21061931550502777, -0.3788485825061798, -0.10964483767747879, 0.26905107498168945, 0.04047238826751709, 0.2070424109697342, -0.010534211061894894, 0.25358760356903076, 0.08555729687213898, -0.17190518975257874, 0.6813635230064392, -0.00011027889559045434, 0.2093096524477005, -0.1374247968196869, 0.21835753321647644, -0.19031216204166412, 0.1689067929983139, 0.13592854142189026, -0.27660107612609863, 0.0779806599020958, -0.1741967797279358, -0.22134968638420105, 0.08235550671815872, 0.07132472097873688, -0.2795439660549164, 0.003055952489376068, -0.003474809695035219, 0.2197696566581726, 0.6547818183898926, -0.35880792140960693, 0.11319625377655029, 0.13861021399497986, -0.17767028510570526, -0.41712865233421326, 0.06128469482064247, 0.09639807045459747, -0.07154355943202972, -0.13069140911102295, 0.1580033302307129, 0.027731603011488914, 0.04580170661211014, 0.05292169377207756, 0.022256407886743546, 0.00729774683713913, -0.2636386454105377, 0.053377196192741394, 0.39348840713500977, 0.2993205487728119, -0.19001826643943787, -0.16349145770072937, -0.1540139764547348, -0.2144193798303604, -0.3210262656211853, 0.07437514513731003, -0.22578895092010498, -0.16098666191101074, 0.024705765768885612, -0.04302608594298363, 0.20639008283615112, 0.10303126275539398, -0.06743758916854858, -0.3261047303676605, 0.3454119563102722, 0.045587487518787384, 0.06112188845872879, 0.12221619486808777, -0.04871322959661484, 0.45803287625312805, -0.17886246740818024, 0.40614378452301025, 0.06896394491195679, -0.5758979916572571, -0.15541329979896545, 0.2835812270641327, -0.15235081315040588, -0.25121912360191345, -0.21466800570487976, 0.06617927551269531, 0.18320706486701965, -0.20200958847999573, -0.02881411463022232, 0.05722208693623543, -0.025920363143086433, -0.4423249363899231, -0.004145049024373293, 0.36024004220962524, -0.05597170442342758, -0.1963619887828827, 0.06448406726121902, 0.1614546775817871, -0.16291511058807373, 0.04480704292654991, -0.18599152565002441, 0.2316148430109024, 0.11536750197410583, -0.3351489305496216, 0.05877095088362694, -0.2942552864551544, 0.1614728718996048, 0.016188617795705795, 0.05970919877290726, -0.0889110341668129, 0.5595178008079529, -0.011799810454249382, -0.5115706920623779, -0.4816134572029114, -0.05735320970416069, -0.2769227623939514, -0.2134556919336319, -0.2716915011405945, 0.025764429941773415, 0.19530081748962402, 0.06545466929674149, -0.337922602891922, 0.2212003618478775, 0.13754978775978088, 0.19514676928520203, 0.3072226047515869, -0.3302365243434906, 0.07360014319419861, 0.43284642696380615, -0.19113509356975555, 0.3227020800113678, 0.05567146837711334, -0.219216451048851, -0.2697742283344269, 0.08101864159107208, -0.21911004185676575, -0.2906334698200226, 0.08824251592159271, 0.15196524560451508, -0.1505754142999649, -0.008787181228399277, 0.060853809118270874, 0.21954914927482605, 0.23686820268630981, -0.014665381982922554, 0.0033129900693893433, -0.38766205310821533, -0.6469270586967468, -0.22058799862861633, 0.1855422854423523, 0.1726737767457962, -0.4583415687084198, 0.26564496755599976, 0.05101963132619858, -0.03302378952503204, 0.2665993869304657, 0.4933193325996399, -0.03357776254415512, 0.2622140049934387, -0.1452399492263794, -0.379263699054718, 0.08626625686883926, 0.03721649572253227, -0.2029554545879364, 0.22978676855564117, -0.42680132389068604, 0.6325398087501526, -0.054067932069301605, 0.24165219068527222, -0.2080473154783249, -0.2896746098995209, 0.2774563431739807, 0.552911639213562, -0.17853519320487976, 0.16717106103897095, -0.3738337457180023, 0.1203715056180954, 0.16974179446697235, 0.22703363001346588, -0.12499281764030457, 0.0015354230999946594, -0.3265930116176605, 0.04135700687766075, 0.14204639196395874, -0.15616881847381592, -0.07417908310890198, 0.1735648363828659, 0.26320964097976685, -0.029255323112010956, 0.1462419480085373, -0.03428949788212776, -0.403735876083374, 0.32258114218711853, 0.5443111658096313, 0.017354551702737808, 0.18067334592342377, -0.20504605770111084, 0.14045870304107666, 0.17349937558174133, 0.03533602133393288, 0.052590880542993546, 0.09956280887126923, 0.10940884053707123, -0.28617075085639954, 0.20905424654483795, -0.09772069752216339, 0.12918376922607422, -0.038776833564043045, -0.1508178561925888, -0.28984835743904114, 0.24856339395046234, 0.24054698646068573, -0.07349345833063126, -0.08491693437099457, 0.23071181774139404, -0.07968167215585709, -0.1344345211982727, -0.060824960470199585, 0.2728649973869324, 0.19510629773139954, 0.38313305377960205, -0.25859335064888, 0.41045501828193665, 0.1458757072687149, -0.0614621601998806, -0.11975818127393723, 0.07502026855945587, -0.09325582534074783, -0.2218601405620575, 0.28296738862991333, 0.39985716342926025, -0.18398186564445496, 0.1852448582649231, 0.20559237897396088, -0.14329835772514343, 0.19921442866325378, 0.017892498522996902, -0.016463367268443108, 0.035589709877967834, 0.3358030319213867, 0.4558529555797577, 0.0008151121437549591, 0.2167920470237732, -0.6139723062515259, 0.5512155890464783, 0.5513606667518616, 0.04178663715720177, -0.37291473150253296, 0.0031680352985858917, -0.09754189103841782, -0.06755552440881729, -0.02663375250995159, 0.2187463790178299, 0.32212209701538086, 0.1383751630783081, 0.15394440293312073, -0.083103708922863, -0.22878733277320862, -0.29299992322921753, 0.1225634291768074, 0.17703689634799957, 0.3241443336009979, 0.19665482640266418, 0.40086841583251953, 0.13860367238521576, -0.2948470711708069, -0.3215729594230652, -0.11046965420246124, 0.27782711386680603, -0.2271742969751358, 0.4240977466106415, -0.39977365732192993, -0.1741706132888794, -0.17470137774944305, -0.12164340168237686, -0.06636540591716766, -0.35869574546813965, -0.10478504002094269, 0.34465596079826355, -0.055470045655965805, 0.07039844989776611, -0.008069915696978569, 0.31453701853752136, 0.007477780804038048, -0.21758835017681122, -0.21168021857738495, -0.32339462637901306, -0.27920395135879517, 0.04709845408797264, 0.24886135756969452, -0.1976458877325058, 0.16535495221614838, -0.01736820861697197, -0.103023461997509, 0.055820003151893616, -0.4411492645740509, 0.1768740564584732, -0.23970575630664825, 0.31029245257377625, 0.15344983339309692, 0.09190832078456879, -0.032864153385162354, -0.2688599228858948, 0.07557418942451477, -0.1409473717212677, 0.028251895681023598, 0.1806485950946808, -0.31019628047943115, 0.11001178622245789, -0.15455417335033417, -0.03152143210172653, -0.06729693710803986, -0.2092220038175583, 0.17977938055992126, -0.16540081799030304, 0.014032870531082153, 0.5213626623153687, -0.16653837263584137, 0.17244842648506165, 0.37054312229156494, -0.0361429899930954, -0.21104001998901367, -0.08330738544464111, 0.3613591194152832, -0.13404566049575806, -0.1132480651140213, -0.1292521059513092, -0.15472957491874695, 0.04875916615128517, 0.21199475228786469, -0.531799852848053, -0.041662074625492096, -0.5926616787910461, 0.13394729793071747, -0.11829464137554169, -0.12715165317058563, 0.07676951587200165, 0.1378546506166458, -0.0907585397362709, -0.14022326469421387, -0.1836603581905365, -0.06145099550485611, -0.0070197321474552155, -0.08836773782968521, -0.1647745668888092, 0.21646517515182495, 0.38040784001350403, 0.49690306186676025, -0.1675005704164505, -0.39435163140296936, 0.027365021407604218, -0.16828028857707977, 0.177060067653656, -0.12761032581329346, -0.32356101274490356, 0.08554413914680481, -0.15983876585960388, -0.3248765468597412, 0.17453818023204803, -0.3012712895870209, -0.29189828038215637, 0.06934790313243866, 0.21767213940620422, 0.4884282052516937, -0.4197905957698822, 0.06345948576927185, 0.1369359791278839, 0.2445574402809143, 0.2948085367679596, 0.06562904268503189, -0.22659853100776672, -0.23053696751594543, 0.023540373891592026, 0.05432579293847084, -0.13617923855781555, -0.18507897853851318, 0.02480638399720192, -0.1345432996749878, -0.44960641860961914, 0.026973649859428406, 0.2390345335006714, 0.39537906646728516, 0.21460460126399994, -0.14731644093990326, 0.13773441314697266, 0.04311900585889816, 0.6117756962776184, -0.06371704488992691, -0.0842428207397461, 0.4653528332710266, -0.2734059691429138, -0.4593351483345032, -0.043571989983320236, -0.2430783361196518, 0.03456772863864899, 0.35913094878196716, 0.6609537601470947, 0.03582242876291275, -0.3745953440666199, 0.24435493350028992, 0.2770244777202606, -0.10788562893867493, -0.05511317029595375, -0.3271929621696472, -0.44386979937553406, 0.3206423223018646, 0.10577204078435898, -0.04772491008043289, 0.14352892339229584, -0.08014693856239319, -0.11544537544250488, -0.08768771588802338, -0.10017535835504532, 0.2516458034515381, 0.26049500703811646, 0.0038671158254146576, 0.23626241087913513, 0.2973431646823883, -0.11387346684932709, -0.01618332415819168, 0.3380405008792877, 0.2596813440322876, -0.1148521900177002, -0.30673617124557495, 0.25555333495140076, 0.2552964985370636, 0.22075997292995453, 0.6156867742538452, -0.11888401955366135, 0.11084489524364471, -0.520604133605957, 0.2694791853427887, -0.07125822454690933, 0.17550110816955566, 0.35132935643196106, 0.009275530464947224, -0.3195607662200928, -0.10697352141141891, 0.09586761891841888, 0.05142052844166756, 0.03605273365974426, 0.15897484123706818, -0.16266189515590668, -0.007616132497787476, 0.20067238807678223, 0.29823508858680725, 1.0387402772903442, -0.14280351996421814, 0.32502228021621704, 0.5153443813323975, -0.08903078734874725, 0.5206973552703857, -0.3816342353820801, 0.30442190170288086, -0.15120360255241394, -0.9592688083648682, 0.16015365719795227, -0.13082347810268402, -0.08114591985940933, -0.1435498148202896, -0.03892200440168381, 0.07468909025192261, 0.0525905042886734, 0.035613566637039185, 0.17914986610412598, 0.24247333407402039, 0.2272791564464569, -0.47836053371429443, -0.13701999187469482, 0.11251780390739441, 0.049988895654678345, -0.15352393686771393, -0.0822950005531311, -0.029610630124807358, 0.09113386273384094, 0.28773033618927, -0.19610770046710968, 0.09425666183233261, -0.5590242743492126, 0.009196707047522068, 0.14813391864299774, -0.21006959676742554, 0.17628169059753418, -0.026901785284280777, 0.3304119110107422, 0.12967343628406525, -0.0974062979221344, 0.17780867218971252, 0.11739712953567505, 0.2629345655441284, 0.29635104537010193, -0.3498178720474243, 0.466388463973999, 0.13923701643943787, 0.13401219248771667, -0.13630461692810059, 0.14386895298957825, 0.053431786596775055, 0.08506053686141968, -0.056856006383895874, -0.23608003556728363, 0.028089134022593498, -0.11187128722667694, 0.2597832679748535, 0.1422918438911438, -0.14052370190620422, 0.1824331283569336, -0.27781200408935547, 0.08187755942344666, 0.3243655860424042, -0.42643675208091736, -0.5125263333320618, -0.0015379786491394043, 0.13455764949321747, 0.18194225430488586, 0.14464594423770905, 0.22320888936519623, 0.3952549695968628, -0.41078925132751465, -0.06729422509670258, 0.17819756269454956, -0.021381763741374016, -0.27453693747520447, 0.3890607953071594, -0.23822852969169617, 0.11611364781856537, 0.07276224344968796, 0.291927695274353, -0.20636464655399323, -0.11635661870241165, -0.46739983558654785, -0.013549860566854477, -0.09332756698131561, -0.11134029924869537, 0.15790291130542755, 0.23649097979068756, -0.05595194548368454, 0.6549006104469299, -0.300653338432312, 0.2693784534931183, -0.35405340790748596, -0.13690043985843658, -0.10614089667797089, 0.11225273460149765, -0.02250276878476143, -0.18881261348724365, 0.14897264540195465, 0.01241074874997139, 0.0892506092786789, 0.2124095857143402, -0.1787351369857788, -0.28893759846687317, -0.2554793059825897, 0.11481159180402756, 0.036348212510347366, -0.26866400241851807, 0.17707692086696625, -0.026238124817609787, -0.09087185561656952, -0.40084272623062134, 0.21931898593902588, 0.17218893766403198, -0.22688274085521698, -0.09685084223747253, 0.018954753875732422, 0.18385788798332214, 0.16301681101322174, -0.045474275946617126, 0.02097773179411888, 0.18761928379535675, 0.3219027817249298, 0.35894039273262024, -0.012484719976782799, -0.12502636015415192, 0.034233368933200836, 0.044395845383405685, 0.0357862152159214, -0.02510834112763405, 0.10601259768009186, -0.1670021265745163, -0.2326095700263977, -0.048257067799568176, 0.03881611302495003, 0.4187692403793335, -0.02961675636470318, -0.42334479093551636, 0.024970483034849167, 0.14265206456184387, -0.005331993103027344, -0.1922650784254074, 0.42974528670310974, 0.028758037835359573, 0.10896168649196625, 0.3797074854373932, 0.06819085776805878, 0.3948512375354767, 0.0857771709561348, 0.062114886939525604, 0.13022460043430328, -0.14496608078479767, -0.04132671281695366, 0.18537190556526184, 0.05356956645846367, 0.19496655464172363, 0.028956858441233635, -0.007068909704685211, 0.19861984252929688, 0.21611785888671875, 0.1925671547651291, 0.1186176985502243, 0.12828344106674194, -0.060519989579916, 0.02393357828259468, -0.29178377985954285, 0.04400341585278511, 0.10908578336238861, -0.21455758810043335, 0.32968786358833313, 0.07671500742435455, -0.015870802104473114, -0.1559738665819168, -0.019357852637767792, -0.24092257022857666, 0.30720800161361694, -0.18087688088417053, -0.11834299564361572, 0.09352156519889832, 0.11277838796377182, -0.27981680631637573, 0.12360222637653351, -0.10075156390666962, 0.30895838141441345, 0.002700299024581909, 0.21317914128303528, 0.17518270015716553, -0.052714280784130096, -0.06646139919757843, -0.1922745406627655, 0.3139219284057617, -0.015567570924758911, 0.22096017003059387, -0.17769406735897064, -0.12341450154781342, -0.3790363073348999, 0.11689458787441254, 0.10362814366817474, 0.2461959421634674, -0.068709596991539, 0.12565895915031433, -0.13684941828250885, -0.03309378772974014, 0.06586460769176483, 0.25225257873535156, -0.302916944026947, 0.31035909056663513, 0.3063722848892212, 0.026457762345671654, -0.24074749648571014, -0.2235153168439865, 0.04280518740415573, -0.002039806917309761, -0.48319491744041443, 0.13193979859352112, 0.19990763068199158, 0.026276104152202606, 0.005756700411438942, 0.25737887620925903, 0.0366721972823143, -0.11006990075111389, 0.4786384701728821, -0.3188497722148895, 0.12154360860586166, -0.010817857459187508, 0.09130305051803589, -0.07869741320610046, 0.6922274827957153, 0.1790594607591629, 0.2300121784210205, -0.0765828788280487, -0.16457918286323547, -0.2837177813053131, 0.4434894621372223, -0.30642837285995483, -0.0526924692094326, 0.20428790152072906, 0.18044254183769226, 0.19937986135482788, 0.22258435189723969, 0.00988052785396576, -0.027945473790168762, -0.06521779298782349, 0.0886872410774231, -0.27305588126182556, -0.22196929156780243, -0.5581264495849609, -0.3630455732345581, -0.16388553380966187, -0.4395698606967926, 0.11969304829835892, 0.0631922110915184, 0.14262175559997559, -0.15921957790851593, -0.15525294840335846, 0.12217910587787628, 0.2276584804058075, 0.2264828085899353, 0.18405283987522125, -0.04365672171115875, -0.02750556170940399, -0.11483389139175415, -0.12129746377468109, -0.07248683273792267, -0.31464776396751404, -0.013360142707824707, -0.017656445503234863, -0.00324055552482605, -0.11623556166887283, 0.015624284744262695, -0.18875309824943542, 0.2943887710571289, 0.20486722886562347, 0.32406100630760193, -0.017037326470017433, 0.18045619130134583, -0.17423611879348755, 0.35357508063316345, 0.1584813892841339, 0.5104914307594299, 0.10610640048980713, 0.3679990768432617, -0.27531808614730835, -0.27133601903915405, 0.4441593289375305, -0.46862098574638367, -0.3909013569355011, -0.14218972623348236, 0.10165643692016602, -0.1340879201889038, -0.011882049962878227, 0.03928740322589874, -0.26785627007484436, 0.18524475395679474, -0.09120064973831177, -0.4946378171443939, 0.4833149015903473, -0.056859638541936874, -0.07629021257162094, -0.19816969335079193, 0.06502211838960648, 0.09210023283958435, -0.29633963108062744, -0.10622881352901459, 0.0002298988401889801 ]
https://github.com/huggingface/datasets/issues/5450
to_tf_dataset with a TF collator causes bizarrely persistent slowdown
After further profiling, the slowdown is in the C methods for JPEG decoding that are included as part of PIL. Because Python profilers can't inspect inside that, I don't have any further information on which lines exactly are responsible for the slowdown or why. In the meantime, I'm going to suggest switching from `return_tensors="tf"` to `return_tensors="np"` in most of our `transformers` code - this generally works better for pre-processing. Two relevant PRs are [here](https://github.com/huggingface/transformers/pull/21266) and [here](https://github.com/huggingface/notebooks/pull/308).
### Describe the bug This will make more sense if you take a look at [a Colab notebook that reproduces this issue.](https://colab.research.google.com/drive/1rxyeciQFWJTI0WrZ5aojp4Ls1ut18fNH?usp=sharing) Briefly, there are several datasets that, when you iterate over them with `to_tf_dataset` **and** a data collator that returns `tf` tensors, become very slow. We haven't been able to figure this one out - it can be intermittent, and we have no idea what could possibly cause it. The weirdest thing is that **the slowdown affects other attempts to access the underlying dataset**. If you try to iterate over the `tf.data.Dataset`, then interrupt execution, and then try to iterate over the original dataset, the original dataset is now also very slow! This is true even if the dataset format is not set to `tf` - the iteration is slow even though it's not calling TF at all! There is a simple workaround for this - we can simply get our data collators to return `np` tensors. When we do this, the bug is never triggered and everything is fine. In general, `np` is preferred for this kind of preprocessing work anyway, when the preprocessing is not going to be compiled into a pure `tf.data` pipeline! However, the issue is fascinating, and the TF team were wondering if anyone in datasets (cc @lhoestq @mariosasko) might have an idea of what could cause this. ### Steps to reproduce the bug Run the attached Colab. ### Expected behavior The slowdown should go away, or at least not persist after we stop iterating over the `tf.data.Dataset` ### Environment info The issue occurs on multiple versions of Python and TF, both on local machines and on Colab. All testing was done using the latest versions of `transformers` and `datasets` from `main`
76
to_tf_dataset with a TF collator causes bizarrely persistent slowdown ### Describe the bug This will make more sense if you take a look at [a Colab notebook that reproduces this issue.](https://colab.research.google.com/drive/1rxyeciQFWJTI0WrZ5aojp4Ls1ut18fNH?usp=sharing) Briefly, there are several datasets that, when you iterate over them with `to_tf_dataset` **and** a data collator that returns `tf` tensors, become very slow. We haven't been able to figure this one out - it can be intermittent, and we have no idea what could possibly cause it. The weirdest thing is that **the slowdown affects other attempts to access the underlying dataset**. If you try to iterate over the `tf.data.Dataset`, then interrupt execution, and then try to iterate over the original dataset, the original dataset is now also very slow! This is true even if the dataset format is not set to `tf` - the iteration is slow even though it's not calling TF at all! There is a simple workaround for this - we can simply get our data collators to return `np` tensors. When we do this, the bug is never triggered and everything is fine. In general, `np` is preferred for this kind of preprocessing work anyway, when the preprocessing is not going to be compiled into a pure `tf.data` pipeline! However, the issue is fascinating, and the TF team were wondering if anyone in datasets (cc @lhoestq @mariosasko) might have an idea of what could cause this. ### Steps to reproduce the bug Run the attached Colab. ### Expected behavior The slowdown should go away, or at least not persist after we stop iterating over the `tf.data.Dataset` ### Environment info The issue occurs on multiple versions of Python and TF, both on local machines and on Colab. All testing was done using the latest versions of `transformers` and `datasets` from `main` After further profiling, the slowdown is in the C methods for JPEG decoding that are included as part of PIL. Because Python profilers can't inspect inside that, I don't have any further information on which lines exactly are responsible for the slowdown or why. In the meantime, I'm going to suggest switching from `return_tensors="tf"` to `return_tensors="np"` in most of our `transformers` code - this generally works better for pre-processing. Two relevant PRs are [here](https://github.com/huggingface/transformers/pull/21266) and [here](https://github.com/huggingface/notebooks/pull/308).
[ -0.19386005401611328, 0.03455595672130585, 0.02873828262090683, 0.18287555873394012, 0.2498314082622528, 0.09574023634195328, 0.2958502769470215, 0.24304035305976868, -0.3283993899822235, 0.32617223262786865, -0.12927180528640747, 0.4373798966407776, -0.08544529974460602, -0.03806677088141441, -0.3144403100013733, -0.05554140359163284, -0.12138160318136215, 0.2515721917152405, 0.03180154785513878, -0.043918728828430176, -0.18554985523223877, -0.01784977875649929, -0.012477964162826538, -0.20526005327701569, -0.3699271082878113, -0.13168685138225555, 0.32837027311325073, 0.02195325866341591, 0.16098424792289734, -0.03089255839586258, 0.23928306996822357, 0.08178167045116425, -0.12835484743118286, 0.5382680296897888, -0.00011043062841054052, 0.23122645914554596, -0.11540009081363678, 0.18341761827468872, -0.2673798203468323, 0.2719690799713135, 0.035043179988861084, -0.28975000977516174, -0.034960485994815826, -0.19572752714157104, -0.217265784740448, 0.012945837341248989, 0.13305626809597015, -0.34205493330955505, 0.042398639023303986, 0.03778519481420517, 0.2221301794052124, 0.5033767223358154, -0.3615071475505829, 0.13312672078609467, 0.17897175252437592, -0.0924721360206604, -0.43073737621307373, 0.1256990134716034, 0.04027918353676796, -0.057306937873363495, -0.19387918710708618, 0.17822371423244476, 0.06181178241968155, -0.007366012781858444, 0.08370184898376465, 0.059844937175512314, -0.019114725291728973, -0.2794697880744934, 0.08802960813045502, 0.32724878191947937, 0.31384164094924927, -0.139317125082016, -0.16773489117622375, -0.1399488002061844, -0.22492162883281708, -0.30939605832099915, 0.042531564831733704, -0.2206583470106125, -0.19315116107463837, 0.009618457406759262, -0.11585583537817001, 0.2702595293521881, -0.003890678286552429, -0.04362957924604416, -0.25110894441604614, 0.214326873421669, 0.04589924216270447, 0.04582370072603226, 0.06269018352031708, -0.017162509262561798, 0.4873235821723938, -0.2150266468524933, 0.36071106791496277, 0.08044549822807312, -0.4812198281288147, -0.13668301701545715, 0.29190170764923096, -0.1430278718471527, -0.194114089012146, -0.1473754346370697, 0.05740625783801079, 0.15996500849723816, -0.1607188880443573, -0.05548843741416931, -0.0068307071924209595, -0.02215486206114292, -0.4527035355567932, -0.025820672512054443, 0.3848477602005005, -0.06992818415164948, -0.1939086765050888, 0.0047936514019966125, 0.11655625700950623, -0.17031978070735931, -0.05796872824430466, -0.23795419931411743, 0.23316024243831635, 0.06064976379275322, -0.367352157831192, 0.04475723206996918, -0.30931708216667175, 0.20840412378311157, 0.031557805836200714, 0.04828818142414093, -0.05488188564777374, 0.4158751368522644, -0.014535555616021156, -0.5591282248497009, -0.44736459851264954, 0.0032730652019381523, -0.24663421511650085, -0.25847482681274414, -0.25608283281326294, 0.04307781159877777, 0.13676205277442932, -0.008832225576043129, -0.33052578568458557, 0.25868767499923706, 0.16436320543289185, 0.2448417842388153, 0.2934569716453552, -0.3856031000614166, 0.12428883463144302, 0.3845781981945038, -0.2408994436264038, 0.27819743752479553, 0.09824711084365845, -0.25494271516799927, -0.27108901739120483, 0.07796041667461395, -0.17759370803833008, -0.24104349315166473, -0.0009709354490041733, 0.13191404938697815, -0.1308259665966034, -0.009810801595449448, 0.07668265700340271, 0.21275167167186737, 0.0936836451292038, -0.049875132739543915, -0.0025210529565811157, -0.3280314803123474, -0.5480737686157227, -0.22861963510513306, 0.15924809873104095, 0.16208423674106598, -0.4853460192680359, 0.2590416669845581, 0.04894513636827469, -0.03840790316462517, 0.3266354501247406, 0.49457430839538574, -0.08928274363279343, 0.198125958442688, -0.266361266374588, -0.4217386245727539, 0.04851003736257553, -0.025175414979457855, -0.24036914110183716, 0.20945066213607788, -0.3142431378364563, 0.6302129030227661, -0.06434539705514908, 0.3397481143474579, -0.10102484375238419, -0.3644423484802246, 0.1221373975276947, 0.5882334113121033, -0.2127181738615036, 0.10850401967763901, -0.35065433382987976, 0.12317816913127899, 0.21910493075847626, 0.21930727362632751, -0.16816118359565735, 0.12020877003669739, -0.2440319061279297, 0.0445045530796051, 0.08392100036144257, -0.2080715298652649, -0.0953812375664711, 0.12803225219249725, 0.30466020107269287, -0.0560653954744339, 0.11427602171897888, 0.12192631512880325, -0.2878870666027069, 0.3672020435333252, 0.5618593692779541, 0.05595121160149574, 0.09401092678308487, -0.17501017451286316, 0.13339534401893616, 0.05490937829017639, 0.07343945652246475, -0.01628682017326355, 0.11355693638324738, 0.14253276586532593, -0.2596060037612915, 0.2619261145591736, -0.040139682590961456, 0.20940284430980682, -0.09535522758960724, -0.17786075174808502, -0.20936575531959534, 0.28381311893463135, 0.2559078633785248, -0.10100522637367249, -0.03727205470204353, 0.2124805450439453, -0.15311145782470703, -0.1474883258342743, -0.10933546721935272, 0.24397554993629456, 0.13199394941329956, 0.4351378083229065, -0.2214008867740631, 0.2984403073787689, 0.1699618548154831, -0.12599578499794006, -0.05002207309007645, 0.040707170963287354, -0.08161506801843643, -0.12190137803554535, 0.32879674434661865, 0.4024631977081299, -0.1572110503911972, 0.14488276839256287, 0.22908838093280792, -0.13799764215946198, 0.17776791751384735, 0.018182743340730667, -0.01682346686720848, -0.010436385869979858, 0.26504334807395935, 0.46845921874046326, 0.06608852744102478, 0.2007511705160141, -0.5280073285102844, 0.5200209021568298, 0.6077591776847839, 0.044544514268636703, -0.4296807050704956, 0.10735488682985306, -0.086235411465168, -0.03189076855778694, 0.0746825560927391, 0.24692346155643463, 0.3446972370147705, 0.1624792516231537, 0.09880353510379791, -0.15007831156253815, -0.27943190932273865, -0.27873748540878296, 0.09666145592927933, 0.11871565878391266, 0.36027002334594727, 0.1828816533088684, 0.39431798458099365, 0.19622527062892914, -0.35317331552505493, -0.3903058171272278, -0.16628991067409515, 0.2408493608236313, -0.11535222828388214, 0.4744164049625397, -0.3878989815711975, -0.30460602045059204, -0.16578780114650726, -0.07200116664171219, -0.022058922797441483, -0.35331305861473083, -0.09893906116485596, 0.2414064258337021, -0.07761825621128082, 0.13028402626514435, -0.10187870264053345, 0.35546237230300903, 0.04926256835460663, -0.18291456997394562, -0.282291442155838, -0.3143139183521271, -0.2720213532447815, 0.05281798914074898, 0.26603007316589355, -0.288521409034729, 0.22908060252666473, -0.037922438234090805, -0.05339745059609413, 0.052439600229263306, -0.5747433304786682, 0.19924242794513702, -0.23376034200191498, 0.2847749590873718, 0.1048922911286354, 0.17387789487838745, -0.084113210439682, -0.23806965351104736, 0.07647568732500076, -0.02740512602031231, 0.022386299446225166, 0.16123022139072418, -0.32918882369995117, 0.1056416928768158, -0.1415133774280548, 0.028252996504306793, -0.08600351214408875, -0.24810104072093964, 0.16175341606140137, -0.09561372548341751, 0.02405714988708496, 0.6448721289634705, -0.10582710802555084, 0.20907354354858398, 0.45439058542251587, 0.03333931416273117, -0.228025883436203, -0.11928638815879822, 0.41314417123794556, -0.1588311493396759, -0.11828695237636566, -0.11031350493431091, -0.11344538629055023, 0.0740538015961647, 0.21242032945156097, -0.627128541469574, -0.023932848125696182, -0.6294811367988586, 0.22206717729568481, -0.10843926668167114, -0.24262548983097076, -0.01665547490119934, 0.1421356201171875, -0.0873781144618988, -0.195090651512146, -0.1316363513469696, -0.0473460778594017, -0.08567201346158981, -0.07812657207250595, -0.12590670585632324, 0.2767643332481384, 0.40304797887802124, 0.33947038650512695, -0.11987327039241791, -0.4688939154148102, 0.05922718718647957, -0.1804264932870865, 0.3165237605571747, -0.14814576506614685, -0.2466960847377777, 0.22459128499031067, -0.0878777801990509, -0.3252977132797241, 0.10610812157392502, -0.33964303135871887, -0.25774946808815, 0.04640863090753555, 0.24162423610687256, 0.46069976687431335, -0.4084135591983795, 0.033648524433374405, 0.1495947390794754, 0.22820806503295898, 0.1997210532426834, 0.07281569391489029, -0.17122788727283478, -0.2435683012008667, 0.03861145302653313, 0.0031814053654670715, 0.05850173532962799, -0.19923636317253113, 0.07931089401245117, -0.09280135482549667, -0.4254553020000458, 0.0027134567499160767, 0.21679569780826569, 0.4010021984577179, 0.11464729905128479, -0.10370761901140213, 0.10863476991653442, 0.06519556790590286, 0.540952205657959, -0.010600579902529716, -0.05229375511407852, 0.38451293110847473, -0.15289738774299622, -0.45289528369903564, -0.037174027413129807, -0.1577344387769699, -0.032339099794626236, 0.26899921894073486, 0.6918640732765198, 0.12144563347101212, -0.38422057032585144, 0.2872152030467987, 0.2825688123703003, -0.09279434382915497, 0.04035961255431175, -0.3004618287086487, -0.48748499155044556, 0.2767707407474518, -0.006725400686264038, -0.09600615501403809, 0.08795637637376785, -0.022895552217960358, -0.19825655221939087, -0.15107841789722443, -0.16068735718727112, 0.25205013155937195, 0.2811112105846405, 0.027472762390971184, 0.18782414495944977, 0.2922053933143616, -0.09926722943782806, -0.05437739938497543, 0.38543400168418884, 0.2541865408420563, -0.1302351951599121, -0.374612420797348, 0.266061395406723, 0.24630224704742432, 0.1283273845911026, 0.6824175119400024, -0.1582772433757782, 0.08947861939668655, -0.5441111326217651, 0.23983466625213623, -0.18776322901248932, 0.1880391389131546, 0.36094725131988525, -0.002641698345541954, -0.3216306269168854, -0.032074641436338425, 0.11984752118587494, 0.04849473759531975, 0.03629240393638611, 0.09895980358123779, -0.09999644756317139, -0.05781719088554382, 0.21261915564537048, 0.4002617597579956, 1.0346444845199585, -0.071872279047966, 0.3425309360027313, 0.5133869051933289, -0.22565706074237823, 0.5340300798416138, -0.2524735629558563, 0.26954323053359985, -0.11252662539482117, -0.9872780442237854, 0.10070069134235382, -0.1251760572195053, -0.01691748946905136, -0.13663677871227264, -0.031975410878658295, 0.011468540877103806, 0.016296684741973877, 0.11691759526729584, 0.18530476093292236, 0.17408373951911926, 0.164565309882164, -0.47625118494033813, -0.2015078067779541, 0.12841594219207764, 0.016115665435791016, -0.13203604519367218, -0.05957653373479843, -0.08570162951946259, -0.003278527408838272, 0.30900681018829346, -0.160488560795784, 0.1145869567990303, -0.49762028455734253, 0.07193903625011444, 0.07781486213207245, -0.2837006449699402, 0.12426537275314331, -0.0034730620682239532, 0.35352224111557007, 0.08772125840187073, -0.08453436195850372, 0.23321744799613953, 0.090100958943367, 0.25914591550827026, 0.3242832124233246, -0.3376031517982483, 0.4678725302219391, 0.1251826286315918, 0.2599466145038605, -0.11198554188013077, 0.16638360917568207, 0.05086103081703186, 0.05174051225185394, -0.07835422456264496, -0.2556913495063782, 0.08076047897338867, -0.15447485446929932, 0.129628986120224, 0.059324879199266434, -0.0982612818479538, 0.18429143726825714, -0.32498979568481445, 0.13220937550067902, 0.3057336211204529, -0.4505298137664795, -0.48561710119247437, -0.003113921731710434, 0.1409287005662918, 0.12793204188346863, 0.11652298271656036, 0.17044810950756073, 0.3105940520763397, -0.41463911533355713, -0.009578417986631393, 0.21786338090896606, -0.06380914896726608, -0.3648269474506378, 0.39697882533073425, -0.27892443537712097, 0.1330024152994156, -0.01529681496322155, 0.22628651559352875, -0.19284644722938538, -0.18608292937278748, -0.4468013346195221, -0.03196926787495613, -0.1367412656545639, -0.06584520637989044, 0.15333326160907745, 0.29059499502182007, -0.1602054089307785, 0.6158290505409241, -0.343642920255661, 0.19839297235012054, -0.34959688782691956, -0.15314054489135742, -0.07344172149896622, 0.13163091242313385, -0.05360177904367447, -0.10728109627962112, 0.23567482829093933, -0.009541414678096771, 0.11177009344100952, 0.28558409214019775, -0.1357470005750656, -0.26318061351776123, -0.24581408500671387, 0.11203480511903763, 0.0420367494225502, -0.34162911772727966, 0.17755338549613953, -0.03465520218014717, -0.1119953989982605, -0.3580642342567444, 0.22618593275547028, 0.11791209131479263, -0.25503021478652954, -0.11256816983222961, -0.1224522590637207, 0.15149983763694763, 0.3068767786026001, -0.057274892926216125, 0.0006036683917045593, 0.41925835609436035, 0.41168758273124695, 0.3644929528236389, -0.07366945594549179, -0.16531185805797577, -0.049361422657966614, 0.10101112723350525, -0.05712747573852539, -0.10473393648862839, 0.19096523523330688, -0.1686868965625763, -0.11489684879779816, 0.01927761361002922, 0.023313459008932114, 0.31111377477645874, -0.05991816520690918, -0.4904952049255371, 0.029047388583421707, 0.14815449714660645, 0.02031702920794487, -0.17512932419776917, 0.26964399218559265, -0.02081213891506195, 0.07104192674160004, 0.3438147008419037, 0.0003428906202316284, 0.3681596517562866, -0.021698325872421265, 0.02349497750401497, 0.16184699535369873, -0.11061343550682068, -0.01500566117465496, 0.2807263433933258, 0.060017477720975876, 0.16325895488262177, -0.07530203461647034, -0.017566043883562088, 0.22931450605392456, 0.3339994549751282, 0.06485029309988022, 0.060188814997673035, 0.11238088458776474, 0.028919190168380737, 0.020147494971752167, -0.2365577518939972, 0.13761794567108154, 0.3401610851287842, -0.2515750825405121, 0.41622820496559143, 0.07780390232801437, -0.01304132491350174, -0.12142352014780045, -0.048600055277347565, -0.18723095953464508, 0.34647834300994873, -0.1433033049106598, -0.043067432940006256, 0.11303286254405975, 0.10448189824819565, -0.31643491983413696, 0.20638130605220795, -0.09863559901714325, 0.2765343487262726, -0.1656593382358551, 0.28877297043800354, 0.12801513075828552, -0.00417659617960453, -0.04478566348552704, -0.16031518578529358, 0.3740096688270569, 0.022572245448827744, 0.2730603516101837, -0.10220673680305481, -0.0939839780330658, -0.2728055417537689, 0.14911937713623047, 0.12605924904346466, 0.26167404651641846, 0.0133177125826478, 0.14391306042671204, -0.05485844239592552, -0.06878288835287094, 0.09882146120071411, 0.2555136978626251, -0.2463321089744568, 0.2748829126358032, 0.25584733486175537, 0.03927874565124512, -0.22994035482406616, -0.2435111552476883, -0.015596095472574234, -0.051743004471063614, -0.4325300455093384, 0.07902348041534424, 0.17428714036941528, 0.046657711267471313, 0.0505053848028183, 0.15506187081336975, 0.08555633574724197, -0.1950986534357071, 0.40730831027030945, -0.2828463017940521, 0.11851564794778824, 0.10431831330060959, 0.08795659244060516, -0.16894979774951935, 0.6439716219902039, 0.07182105630636215, 0.30091288685798645, -0.10412994772195816, -0.2599843144416809, -0.17480997741222382, 0.4223448932170868, -0.27580782771110535, -0.19989214837551117, 0.17604051530361176, 0.155827134847641, 0.15281489491462708, 0.16340480744838715, 0.07507075369358063, -0.05722683668136597, 0.08233772218227386, 0.03603564202785492, -0.19968794286251068, -0.2266717106103897, -0.4988994598388672, -0.40056777000427246, -0.2747128903865814, -0.49737900495529175, 0.1463911533355713, 0.05412564054131508, 0.15513277053833008, -0.14774572849273682, -0.10555107891559601, 0.02120421826839447, 0.2652762830257416, 0.3443566560745239, 0.2566763162612915, -0.0022400468587875366, -0.04490920156240463, -0.1947782039642334, -0.09144379198551178, -0.14468546211719513, -0.3031872510910034, -0.021448679268360138, -0.0012099780142307281, 0.06351835280656815, -0.0986364483833313, 0.034573350101709366, -0.2333238124847412, 0.4082503318786621, 0.24149419367313385, 0.24392414093017578, -0.05780429393053055, 0.21290099620819092, -0.23353791236877441, 0.30782943964004517, 0.15611200034618378, 0.48248231410980225, 0.1756877303123474, 0.35331660509109497, -0.307656466960907, -0.33184897899627686, 0.46159881353378296, -0.4811525344848633, -0.3019787669181824, 0.10818836838006973, 0.0679737776517868, -0.13663345575332642, 0.003544716164469719, 0.026495516300201416, -0.24654743075370789, 0.18424919247627258, -0.03534727543592453, -0.45742669701576233, 0.5437991619110107, 0.1179010272026062, -0.022518396377563477, -0.1371687948703766, 0.06545914709568024, 0.08926206827163696, -0.315324604511261, -0.036465976387262344, 0.030671238899230957 ]
https://github.com/huggingface/datasets/issues/5444
info messages logged as warnings
Looks like a duplicate of https://github.com/huggingface/datasets/issues/1948. I also think these should be logged as INFO messages, but let's see what @lhoestq thinks.
### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2
22
info messages logged as warnings ### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2 Looks like a duplicate of https://github.com/huggingface/datasets/issues/1948. I also think these should be logged as INFO messages, but let's see what @lhoestq thinks.
[ 0.14982615411281586, -0.21058619022369385, -0.05635552108287811, 0.3685871958732605, 0.20154303312301636, 0.3165709674358368, 0.3913244903087616, 0.2663443982601166, 0.14894641935825348, -0.18562708795070648, -0.005769385024905205, 0.2793087959289551, -0.3714497983455658, 0.15652699768543243, 0.04820721223950386, 0.06281866133213043, -0.027438051998615265, -0.05619122087955475, -0.07372298836708069, -0.06292581558227539, -0.23227469623088837, 0.01693899743258953, 0.02488286793231964, 0.5137701630592346, -0.5359051823616028, -0.28551483154296875, 0.054751306772232056, 0.17527343332767487, -0.06751912832260132, -0.5994576811790466, 0.197573721408844, -0.3028709888458252, 0.13513487577438354, 0.14634187519550323, -0.00010039778862847015, -0.13746584951877594, 0.5118139982223511, 0.1403718888759613, -0.35612744092941284, 0.041398242115974426, -0.05018939450383186, -0.6406587362289429, 0.21357734501361847, -0.28662416338920593, 0.13980314135551453, -0.6234705448150635, 0.14534083008766174, -0.0080750472843647, 0.32160788774490356, 0.25920093059539795, 0.3067071735858917, 0.1652977615594864, -0.044678378850221634, 0.14970619976520538, 0.3287910521030426, 0.2720242738723755, 0.06768028438091278, 0.04652424529194832, 0.10284192860126495, -0.08196036517620087, -0.19933193922042847, 0.3589305579662323, -0.28600573539733887, 0.03470241278409958, 0.3079061508178711, 0.0940912589430809, 0.12080638110637665, -0.33089038729667664, 0.06375086307525635, 0.12287735193967819, 0.44749510288238525, -0.19643166661262512, -0.2654288709163666, -0.5753145813941956, -0.04606914147734642, -0.14378663897514343, 0.21626967191696167, 0.2835676670074463, -0.269646018743515, 0.16006439924240112, 0.043516017496585846, 0.20067045092582703, 0.060565054416656494, 0.048025500029325485, -0.24447029829025269, 0.24384890496730804, -0.3038285970687866, 0.12036070227622986, -0.3057698607444763, -0.2787262201309204, -0.014593600295484066, -0.23134773969650269, -0.013346746563911438, 0.0990912988781929, -0.09326347708702087, -0.1032615602016449, 0.2084558606147766, 0.1430473029613495, 0.15045425295829773, -0.09251080453395844, -0.32072222232818604, -0.018536262214183807, -0.21599078178405762, 0.09211260080337524, 0.4725663363933563, -0.06992131471633911, 0.22652360796928406, 0.23500674962997437, 0.20807181298732758, 0.020206600427627563, 0.20762696862220764, 0.03628596290946007, 0.10064812004566193, 0.0006903079338371754, 0.5511065721511841, -0.08360476791858673, 0.27883821725845337, -0.12884953618049622, -0.4337069094181061, 0.40782856941223145, -0.15837620198726654, -0.08666648715734482, 0.06097960099577904, 0.25671717524528503, -0.14141248166561127, -0.1062038466334343, 0.18062959611415863, -0.025520451366901398, 0.23547397553920746, 0.10680632293224335, -0.0865316241979599, -0.0026270318776369095, -0.2714085876941681, 0.12849529087543488, -0.04012342169880867, -0.08008074760437012, 0.3119358420372009, 0.21295225620269775, -0.04548297077417374, -0.06188220530748367, -0.05124954134225845, -0.053086187690496445, 0.15312406420707703, 0.4868522584438324, -0.3399392068386078, 0.26803433895111084, 0.1854061782360077, -0.14341676235198975, -0.24422240257263184, 0.14823855459690094, 0.004518270492553711, -0.357771635055542, -0.0518127977848053, 0.2567843198776245, -0.3211836814880371, 0.00032660365104675293, -0.031364522874355316, 0.2917565107345581, 0.08444011956453323, 0.06903256475925446, 0.4270264208316803, -0.05656559765338898, -0.06760229170322418, -0.17286008596420288, 0.11558305472135544, 0.6102509498596191, -0.17783892154693604, -0.18935638666152954, -0.14819744229316711, -0.3004511892795563, 0.09419304877519608, 0.13875319063663483, -0.09711906313896179, 0.2471863031387329, -0.3526284694671631, -0.06833069771528244, 0.16046708822250366, -0.17008192837238312, 0.04446250945329666, 0.3532172739505768, 0.02560209482908249, 0.37417569756507874, 0.07299167662858963, 0.06448392570018768, -0.19175107777118683, -0.14210358262062073, 0.3315598964691162, -0.1061190813779831, 0.09516647458076477, -0.00605517253279686, -0.27511823177337646, -0.2320893406867981, 0.13989029824733734, 0.11749191582202911, 0.06491783261299133, -0.0642733946442604, -0.09555571526288986, -0.03537658229470253, 0.39387381076812744, 0.1009906530380249, -0.14808395504951477, -0.10684734582901001, 0.07651017606258392, 0.1617366224527359, -0.14955364167690277, -0.2097839117050171, -0.3749270439147949, 0.07730333507061005, -0.08572722971439362, -0.11500748991966248, 0.022879868745803833, -0.28702324628829956, -0.19090625643730164, -0.06977751106023788, -0.1526094526052475, -0.2798937261104584, 0.20243921875953674, -0.09710083901882172, -0.15518368780612946, 0.17556488513946533, -0.36706456542015076, 0.5495686531066895, -0.4293783903121948, 0.1339930295944214, -0.1534392535686493, 0.01935841329395771, -0.060483433306217194, -0.021443724632263184, 0.1087305098772049, 0.02521754801273346, 0.05618008226156235, 0.2677913308143616, 0.16547003388404846, 0.15642784535884857, -0.08976524323225021, 0.23517942428588867, -0.1720568835735321, 0.08073362708091736, 0.2641953229904175, 0.07822659611701965, 0.1753137856721878, 0.019447220489382744, 0.1244291365146637, 0.06698129326105118, -0.18143382668495178, 0.1687946915626526, 0.10852879285812378, -0.17635226249694824, -0.043497927486896515, 0.049818508327007294, 0.05782543122768402, 0.1282634437084198, -0.28784891963005066, -0.282020628452301, 0.04960308596491814, -0.049316104501485825, 0.05254451557993889, 0.18719680607318878, -0.41658568382263184, 0.10808055847883224, 0.5541994571685791, -0.29163500666618347, 0.1621798276901245, 0.3261118531227112, -0.027431942522525787, -0.11921404302120209, 0.3138832151889801, -0.06205550208687782, 0.281643807888031, 0.24450959265232086, 0.08912110328674316, 0.20246031880378723, -0.06172392517328262, 0.0015574432909488678, 0.23199103772640228, 0.18514898419380188, -0.10427923500537872, 0.2558172047138214, -0.20590966939926147, 0.10806775093078613, -0.19633591175079346, 0.061476293951272964, -0.17755058407783508, 0.18448299169540405, -0.538935661315918, 0.08010828495025635, -0.23443765938282013, -0.48127982020378113, -0.27864524722099304, -0.10491906106472015, -0.24953559041023254, -0.3820604383945465, 0.09163007140159607, -0.10234189033508301, -0.2648485004901886, 0.038533180952072144, -0.07173790037631989, 0.30610159039497375, -0.029824648052453995, 0.41638728976249695, -0.44986382126808167, 0.01786847785115242, -0.10843979567289352, 0.18072549998760223, 0.07806488126516342, 0.2962174415588379, 0.4471096396446228, -0.27795979380607605, -0.020591266453266144, -0.3306337296962738, -0.258938729763031, 0.1190328598022461, -0.39532268047332764, 0.3549593687057495, 0.290639191865921, 0.11395257711410522, -0.028809040784835815, -0.300617516040802, 0.0607890859246254, -0.13689780235290527, -0.04488811641931534, -0.22749176621437073, 0.1893720179796219, 0.07827385514974594, -0.05658290535211563, -0.35098764300346375, -0.5298058986663818, -0.3755784332752228, 0.18842166662216187, -0.09666866064071655, 0.14409929513931274, 0.47633281350135803, -0.18463294208049774, 0.4172256588935852, -0.16888408362865448, 0.22055105865001678, -0.2511506676673889, -0.4538814127445221, 0.12349337339401245, 0.021935269236564636, 0.005292274057865143, -0.028001613914966583, 0.02432921901345253, -0.3929905593395233, -0.3267805576324463, -0.597154974937439, -0.38523364067077637, -0.25588464736938477, -0.11390708386898041, 0.4206416606903076, 0.08840911090373993, -0.10142245888710022, 0.050838105380535126, -0.1471889317035675, -0.028400767594575882, -0.3683048188686371, -0.16343140602111816, -0.20422598719596863, 0.12968456745147705, -0.05497758090496063, 0.34540945291519165, -0.06960781663656235, 0.30805033445358276, 0.5534864664077759, 0.010450068861246109, -0.10245189070701599, 0.05574651062488556, 0.5571728348731995, -0.17962756752967834, -0.27333545684814453, -0.02514304406940937, -0.09739354252815247, -0.2612299919128418, 0.1047004982829094, 0.028183765709400177, 0.0794476643204689, -0.014148902148008347, -0.0015477072447538376, -0.1970806121826172, -0.3700392544269562, -0.04537966102361679, -0.027912817895412445, -0.15436464548110962, -0.10187135636806488, 0.05079177767038345, -0.03256520256400108, 0.027852490544319153, 0.014470856636762619, 0.7606704831123352, 0.1970803141593933, 0.08520367741584778, -0.26337671279907227, -0.18341608345508575, -0.26756951212882996, 0.04216918349266052, 0.04398752376437187, -0.03302816301584244, -0.24155385792255402, -0.4028526842594147, 0.05864700675010681, 0.03513861820101738, 0.08297833800315857, -0.3212873339653015, -0.05116206407546997, 0.21849386394023895, 0.08692198991775513, -0.22796906530857086, -0.13529962301254272, -0.17554233968257904, 0.05152434483170509, 0.22531574964523315, 0.2383708357810974, -0.26171058416366577, -0.19428949058055878, 0.376004695892334, -0.011427679099142551, -0.07920841127634048, -0.23851744830608368, -0.31811100244522095, -0.13664720952510834, -0.208711177110672, 0.1497044563293457, 0.30546724796295166, -0.36137107014656067, -0.1931963860988617, -0.23779581487178802, 0.0868125706911087, 0.42274707555770874, 0.2800496220588684, 0.07900282740592957, 0.01236034743487835, -0.04338943585753441, 0.10771538317203522, 0.10660796612501144, 0.3896472156047821, 0.20275750756263733, 0.5826901793479919, -0.07786718010902405, -0.34327977895736694, -0.05171041935682297, -0.24701572954654694, 0.07490507513284683, 0.32834500074386597, -0.09129117429256439, -0.06606284528970718, 0.040497858077287674, 0.17509371042251587, -0.4807704985141754, -0.03989829495549202, 0.43396756052970886, 0.24003903567790985, -0.40132513642311096, -0.2847543954849243, 0.4982359707355499, 0.2546514868736267, -0.19667275249958038, 0.26379919052124023, 0.07724732160568237, -0.14638353884220123, -0.07816514372825623, -0.005047127604484558, 0.8247196078300476, -0.0803033858537674, 0.2427908033132553, 0.37052589654922485, 0.0065642595291137695, 0.583377480506897, 0.06407859176397324, -0.06592808663845062, -0.2864453196525574, -0.19840998947620392, 0.010821441188454628, -0.015302233397960663, 0.14614936709403992, 0.02751915529370308, -0.34308212995529175, 0.027967648580670357, -0.399455189704895, 0.20992036163806915, -0.14739996194839478, 0.1653498262166977, -0.3521980047225952, 0.04535335302352905, -0.7789090275764465, 0.25696465373039246, 0.11937540024518967, 0.3070417642593384, -0.11278675496578217, 0.0956239104270935, 0.2144799530506134, -0.19977328181266785, -0.3456244468688965, -0.1378270387649536, 0.5316585302352905, -0.00728992186486721, 0.06758560240268707, -0.17240090668201447, -0.011959816329181194, 0.144729882478714, 0.25502586364746094, 0.008736532181501389, 0.04427846521139145, -0.20072393119335175, -0.14587241411209106, 0.12251142412424088, -0.26706740260124207, -0.046692974865436554, 0.5874390602111816, 0.03334144502878189, -0.20811983942985535, 0.3168134391307831, -0.10034628957509995, -0.15505282580852509, -0.17042391002178192, 0.09822800010442734, -0.1910313218832016, -0.44402289390563965, 0.22424951195716858, 0.09330422431230545, -0.018295343965291977, -0.043351911008358, 0.22797968983650208, 0.09660908579826355, -0.03239547461271286, 0.2836833596229553, -0.14056278765201569, -0.38509711623191833, -0.22490139305591583, -0.07009121030569077, 0.05759969353675842, 0.12856526672840118, 0.34501075744628906, 0.0399673692882061, -0.3305172920227051, -0.2848118245601654, 0.23200875520706177, 0.30609703063964844, 0.003782331943511963, 0.14245212078094482, 0.2404196560382843, 0.04072842001914978, 0.05804186686873436, 0.04699324816465378, 0.24987013638019562, -0.0549912229180336, -0.18705664575099945, -0.22511453926563263, -0.4089890718460083, 0.3442217707633972, 0.05590151622891426, 0.31345227360725403, -0.10971816629171371, -0.033277787268161774, 0.2648654878139496, -0.10829181969165802, -0.4061093032360077, -0.1064903512597084, -0.31504178047180176, -0.04346747696399689, 0.1841588169336319, -0.03755417466163635, 0.24968409538269043, 0.061825450509786606, 0.10632188618183136, -0.11438202857971191, -0.04519250988960266, -0.25471898913383484, 0.001995496451854706, 0.0954568088054657, 0.06415937840938568, -0.25202345848083496, 0.20189422369003296, -0.2422155737876892, 0.13952861726284027, 0.0162831898778677, 0.44291093945503235, 0.4562487006187439, 0.19315604865550995, 0.25233012437820435, -0.3012581169605255, 0.21249651908874512, -0.13565918803215027, -0.08452770859003067, 0.015119947493076324, 0.028851568698883057, -0.04198763892054558, -0.0958457887172699, -0.11855235695838928, 0.08815982937812805, 0.228017196059227, 0.31779947876930237, -0.09489265084266663, 0.20816940069198608, 0.2610013782978058, 0.07742477208375931, 0.013091769069433212, 0.22697141766548157, 0.22860844433307648, 0.364126980304718, -0.15470463037490845, -0.22432565689086914, 0.07549319416284561, 0.28829506039619446, -0.17233604192733765, 0.04663987457752228, -0.20043796300888062, 0.027765240520238876, 0.07454745471477509, 0.2310718595981598, -0.14846844971179962, 0.03511182218790054, 0.3026580214500427, 0.042325057089328766, 0.3396550416946411, -0.09584512561559677, 0.24509362876415253, 0.26336148381233215, -0.2220018059015274, 0.011218182742595673, 0.39429357647895813, 0.21661877632141113, 0.19440506398677826, 0.11361286044120789, 0.10344254225492477, 0.10379654914140701, -0.055573076009750366, 0.09798562526702881, 0.05525410547852516, -0.2108745276927948, 0.1806829422712326, 0.37680286169052124, -0.5623713135719299, -0.07560751587152481, 0.051367659121751785, 0.36416128277778625, -0.1743093580007553, 0.08632521331310272, -0.3335619866847992, -0.06747622787952423, -0.15157461166381836, 0.10168182849884033, 0.16772766411304474, -0.12155207246541977, 0.04119110107421875, -0.1134711503982544, -0.0110231414437294, -0.20402197539806366, 0.18876045942306519, -0.1965787261724472, -0.2162625640630722, -0.21557429432868958, 0.2249632179737091, -0.04208572953939438, 0.23338985443115234, 0.05806269869208336, 0.02088519185781479, 0.11766595393419266, -0.07045070827007294, 0.2586554288864136, 0.5044267177581787, 0.5713443160057068, 0.36365610361099243, 0.09565913677215576, 0.23996564745903015, -0.1793302446603775, 0.12319152057170868, -0.037534862756729126, 0.4789382219314575, -0.19339165091514587, -0.25494036078453064, 0.2204354852437973, 0.2363516092300415, -0.20373819768428802, 0.1767706274986267, -0.2543031871318817, 0.03197064250707626, -0.378653883934021, 0.3761947751045227, -0.13213245570659637, 0.0023855045437812805, 0.014150666072964668, -0.018457867205142975, -0.3728994131088257, -0.07778511196374893, 0.5249611139297485, 0.17160923779010773, 0.2319066822528839, -0.07352375239133835, 0.17073491215705872, -0.11590932309627533, 0.3287609815597534, 0.4541313946247101, 0.15148593485355377, 0.024431981146335602, 0.37233060598373413, -0.6276029944419861, 0.10308930277824402, 0.10736280679702759, -0.14392071962356567, -0.009885454550385475, -0.22810441255569458, -0.09407138079404831, 0.1577777862548828, 0.12450560182332993, -0.2657860517501831, -0.20687338709831238, -0.28205788135528564, -0.1453443318605423, -0.055580493062734604, 0.1397974193096161, 0.04091288149356842, -0.0616871640086174, -0.16635698080062866, 0.2452283501625061, -0.2780669331550598, 0.12070643156766891, -0.017032943665981293, -0.042239561676979065, 0.05833936855196953, 0.16475766897201538, 0.28396570682525635, 0.2499961405992508, 0.29595518112182617, 0.10901770740747452, -0.24267403781414032, -0.2720540165901184, -0.3077537417411804, -0.047437671571969986, 0.35468441247940063, 0.01153227873146534, 0.177428737282753, -0.048134610056877136, -0.21968476474285126, -0.2509119510650635, 0.17884093523025513, 0.11402572691440582, -0.09813350439071655, -0.02929653972387314, -0.08121120929718018, -0.03288445249199867, -0.08036382496356964, -0.022956833243370056, 0.4151466488838196, 0.08424195647239685, 0.08896605670452118, -0.17973804473876953, -0.3888587951660156, 0.45512688159942627, -0.23915891349315643, -0.09431913495063782, -0.26279217004776, 0.2863176465034485, 0.01395472139120102, -0.05760202556848526, -0.6820199489593506, -0.13329552114009857, 0.35847148299217224, -0.23389461636543274, -0.09900444746017456, -0.03899851441383362, -0.17070433497428894, -0.16977539658546448, -0.12618030607700348, 0.23054783046245575, 0.002613455057144165, -0.06140393763780594, 0.34150782227516174, -0.29887378215789795 ]
https://github.com/huggingface/datasets/issues/5444
info messages logged as warnings
It can be considered unexpected to see a `map` function return instantaneously. The warning is here to explain this case by mentioning that the cache was used. I don't expect first time users (only seeing warnings) to guess that the cache works this way
### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2
44
info messages logged as warnings ### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2 It can be considered unexpected to see a `map` function return instantaneously. The warning is here to explain this case by mentioning that the cache was used. I don't expect first time users (only seeing warnings) to guess that the cache works this way
[ 0.016657602041959763, -0.07572902739048004, -0.08646491169929504, 0.2924633026123047, 0.27877113223075867, 0.2673483192920685, 0.24067941308021545, 0.36863699555397034, 0.33353886008262634, -0.11565123498439789, -0.040144287049770355, 0.31386545300483704, -0.30156391859054565, -0.13067473471164703, -0.12153449654579163, 0.09090970456600189, -0.02374657243490219, 0.009972885251045227, -0.06074611842632294, -0.12949569523334503, -0.3213861882686615, 0.0015557911247015, -0.08996303379535675, 0.42695164680480957, -0.528384804725647, -0.3361230790615082, 0.027768271043896675, 0.22063297033309937, -0.06130531430244446, -0.7360348105430603, 0.29208043217658997, -0.3613987863063812, 0.12289825081825256, 0.16977374255657196, -0.00010092519369209185, -0.07525574415922165, 0.5317909717559814, 0.10801173746585846, -0.3920938968658447, -0.016190707683563232, -0.08879555016756058, -0.6858459711074829, 0.2135002762079239, -0.374625563621521, 0.11809898167848587, -0.38831788301467896, 0.298282653093338, -0.2542232573032379, 0.2935841381549835, 0.23922306299209595, 0.29285863041877747, 0.11004315316677094, -0.013121288269758224, 0.12414587289094925, 0.41134020686149597, 0.03215275704860687, 0.044440120458602905, 0.05265049263834953, 0.19039857387542725, -0.2485472559928894, -0.34576356410980225, 0.43095454573631287, -0.3669402003288269, 0.2651785612106323, 0.23344182968139648, 0.14986149966716766, 0.2103574275970459, -0.5008306503295898, 0.06618155539035797, 0.08870353549718857, 0.4874422550201416, -0.1149933710694313, -0.1819377839565277, -0.5571200251579285, -0.16626012325286865, -0.07319594919681549, 0.23782610893249512, 0.19887857139110565, -0.2298998385667801, 0.13031084835529327, -0.09676916897296906, 0.25387901067733765, 0.11324454843997955, 0.10321937501430511, -0.17833036184310913, 0.4799724221229553, -0.26421603560447693, 0.13532742857933044, -0.2422330230474472, -0.21465210616588593, 0.05639548972249031, -0.2238115817308426, -0.09622108936309814, 0.3137984871864319, -0.1568533182144165, -0.07852084189653397, 0.42221593856811523, 0.13059164583683014, 0.06973777711391449, -0.2156745046377182, -0.2302905023097992, 0.07585138827562332, -0.17501892149448395, 0.037996821105480194, 0.44443032145500183, 0.0018437569960951805, -0.008149690926074982, 0.33699965476989746, 0.16550810635089874, -0.12369875609874725, 0.030872393399477005, -0.008615139871835709, 0.15536850690841675, -0.06818777322769165, 0.6322654485702515, 0.016390390694141388, 0.2721608281135559, -0.10203506052494049, -0.3077988922595978, 0.35731878876686096, -0.22903195023536682, -0.0850711315870285, -0.11281249672174454, 0.3335389494895935, -0.23722314834594727, -0.07140598446130753, 0.12379762530326843, -0.09044773131608963, 0.07936800271272659, 0.19673487544059753, -0.12034618854522705, -0.06947757303714752, -0.2672085762023926, 0.03523348271846771, -0.002969391644001007, -0.010089106857776642, 0.23514297604560852, 0.17779506742954254, -0.02251666784286499, -0.03036031685769558, 0.1121106892824173, -0.1370130479335785, 0.4307384192943573, 0.5014497637748718, -0.3010386824607849, 0.4532051980495453, 0.2509686350822449, -0.13647133111953735, -0.3043321669101715, 0.16407717764377594, -0.22476643323898315, -0.4009534418582916, -0.02879098244011402, 0.2497147023677826, -0.1856999397277832, 0.15252189338207245, 0.09309707581996918, 0.2510698735713959, 0.21850165724754333, -0.039976783096790314, 0.3585350811481476, -0.012533456087112427, -0.14773942530155182, -0.2235330492258072, 0.0338006466627121, 0.6251363158226013, -0.12257765233516693, -0.09768378734588623, -0.11454025655984879, -0.21923811733722687, 0.06266537308692932, 0.0926596075296402, -0.14033252000808716, 0.2147844433784485, -0.3261341452598572, -0.09048277884721756, 0.2566484808921814, -0.1780155748128891, -0.186970517039299, 0.438752681016922, -0.030585918575525284, 0.411136656999588, 0.026600927114486694, 0.1342332512140274, -0.11822125315666199, -0.0245023462921381, 0.37898939847946167, -0.04626715928316116, 0.09334001690149307, 0.07732748985290527, -0.3747124671936035, -0.15374630689620972, 0.1927415430545807, 0.010587159544229507, 0.10591810941696167, 0.026699870824813843, 0.02355971932411194, -0.07673096656799316, 0.35373541712760925, 0.17266762256622314, -0.08264990150928497, 0.04615473747253418, -0.008143961429595947, 0.12272850424051285, -0.08649306744337082, -0.08514072000980377, -0.3580545485019684, 0.19301822781562805, -0.1194436326622963, -0.10769881308078766, -0.04766459763050079, -0.177097886800766, -0.14572790265083313, 0.0026342421770095825, -0.22077099978923798, -0.28129518032073975, 0.23384398221969604, -0.11705777049064636, -0.008999571204185486, 0.16380861401557922, -0.20195595920085907, 0.5193760991096497, -0.32482555508613586, 0.05356504023075104, -0.1570274382829666, -0.08837812393903732, -0.07134630531072617, -0.007613503374159336, -0.010180287063121796, -0.12222778052091599, 0.11511602997779846, 0.2234942764043808, -0.02527415007352829, 0.17752888798713684, -0.026172904297709465, 0.22220589220523834, -0.24762046337127686, 0.08219152688980103, 0.17324219644069672, 0.09332667291164398, 0.2589914798736572, 0.14229659736156464, 0.1538485884666443, -0.04572385549545288, -0.16254398226737976, 0.21571291983127594, 0.0923272967338562, -0.21306270360946655, -0.11416448652744293, 0.00272444449365139, 0.2508442997932434, 0.12204451858997345, -0.13339409232139587, -0.37361058592796326, -0.05687165632843971, -0.024994097650051117, 0.13206756114959717, 0.13304811716079712, -0.15046119689941406, 0.024350367486476898, 0.5753373503684998, -0.11060968041419983, 0.21940302848815918, 0.18453764915466309, -0.11152087897062302, -0.2670081853866577, 0.32984694838523865, -0.023273859173059464, 0.34702470898628235, 0.16196011006832123, 0.2501451373100281, 0.09475164860486984, -0.1556074023246765, -0.013608183711767197, 0.16207878291606903, 0.0756663829088211, 0.026763979345560074, 0.21529874205589294, -0.08822917938232422, 0.1536308079957962, -0.1505977362394333, 0.06601104140281677, -0.1875382512807846, 0.21663758158683777, -0.4617505669593811, -0.002811439335346222, -0.15653684735298157, -0.4641881287097931, -0.049237146973609924, -0.20501641929149628, -0.15627063810825348, -0.5000795722007751, 0.124479740858078, -0.1289966106414795, -0.24676160514354706, 0.09822456538677216, -0.13864488899707794, 0.1484878957271576, 0.08640510588884354, 0.2715563178062439, -0.40445342659950256, -0.16566522419452667, -0.09331037849187851, 0.17259636521339417, -0.05272180214524269, 0.11640258133411407, 0.23221684992313385, -0.24947723746299744, 0.005347365513443947, -0.26629117131233215, -0.20637941360473633, 0.10856205970048904, -0.26598072052001953, 0.208714559674263, 0.20444798469543457, 0.13515737652778625, 0.002736475318670273, -0.1860637664794922, 0.11735997349023819, -0.17432187497615814, -0.08083295822143555, -0.1594018191099167, 0.0923774465918541, 0.0513278990983963, -0.11546045541763306, -0.32266965508461, -0.5158296823501587, -0.38275453448295593, 0.0780935287475586, 0.11356207728385925, 0.16648583114147186, 0.39599645137786865, -0.04239456355571747, 0.30426183342933655, -0.15998733043670654, 0.2786911129951477, -0.32189786434173584, -0.4691180884838104, 0.2479233741760254, -0.05687009170651436, -0.009945720434188843, -0.04817479848861694, -0.10670880228281021, -0.3387221097946167, -0.19988921284675598, -0.6522455811500549, -0.293851763010025, -0.30721548199653625, 0.0193803608417511, 0.36671775579452515, 0.08727135509252548, 0.09185584634542465, 0.10131429135799408, -0.1382136344909668, -0.12978580594062805, -0.2631477117538452, -0.16347292065620422, -0.18346327543258667, 0.12453421950340271, -0.19087889790534973, 0.2885986566543579, 0.0390474908053875, 0.3409254550933838, 0.37494921684265137, -0.0027725137770175934, -0.04350421577692032, 0.05066479369997978, 0.6613748073577881, -0.2549366056919098, -0.16484671831130981, -0.12246181815862656, -0.20237314701080322, -0.31931090354919434, 0.03048045188188553, -0.0013089943677186966, -0.2680889368057251, -0.014402290806174278, 0.07423803210258484, -0.17729473114013672, -0.34125614166259766, 0.046082016080617905, -0.1978204995393753, -0.19870373606681824, 0.013670288026332855, 0.09289606660604477, -0.1759682148694992, -0.04167279601097107, -0.0029570069164037704, 0.471843421459198, 0.29950574040412903, -0.028302602469921112, -0.27053287625312805, -0.0870894342660904, -0.28420543670654297, 0.09628047049045563, 0.1207200139760971, -0.06608469039201736, -0.21828196942806244, -0.43966737389564514, 0.05448709800839424, 0.04576191306114197, 0.07729057967662811, -0.3675547242164612, 0.05718553811311722, 0.29928097128868103, 0.05127286911010742, -0.18096435070037842, -0.18764038383960724, -0.26948651671409607, 0.17564252018928528, 0.21460506319999695, 0.35692381858825684, -0.16294053196907043, -0.14085645973682404, 0.17924922704696655, -0.038801997900009155, -0.06864132732152939, -0.026365645229816437, -0.3418939709663391, -0.036078326404094696, -0.222183495759964, 0.18747106194496155, 0.20487220585346222, -0.3476801812648773, -0.2137734740972519, -0.29656440019607544, 0.07562229782342911, 0.49459582567214966, 0.08433022350072861, 0.08500693738460541, 0.10297030210494995, 0.030427236109972, 0.12477917969226837, 0.11646001040935516, 0.4029214680194855, 0.04700225964188576, 0.6047734618186951, -0.11460694670677185, -0.15786999464035034, 0.033314239233732224, -0.04790740832686424, -0.09319720417261124, 0.37095874547958374, -0.07151106745004654, -0.14972060918807983, 0.022312253713607788, 0.22995036840438843, -0.4861396551132202, -0.03104044310748577, 0.42036667466163635, 0.12771227955818176, -0.4505172669887543, -0.30177703499794006, 0.4589104652404785, 0.1900807023048401, -0.29643356800079346, 0.43788382411003113, -0.25792068243026733, -0.14652034640312195, 0.0724886879324913, 0.14948426187038422, 0.745341420173645, -0.15822583436965942, 0.22721806168556213, 0.25281384587287903, 0.075076624751091, 0.5029590725898743, -0.029628532007336617, 0.009401515126228333, -0.2772037386894226, -0.31107500195503235, -0.0009899847209453583, -0.019550684839487076, 0.06919609755277634, 0.21252800524234772, -0.3160591721534729, -0.006608994677662849, -0.23836535215377808, 0.38586193323135376, -0.16291116178035736, 0.13207997381687164, -0.2777025103569031, -0.008351117372512817, -0.7081736326217651, 0.25515463948249817, 0.20990128815174103, 0.34074074029922485, -0.11864867806434631, 0.10556048899888992, 0.16528278589248657, -0.2558761239051819, -0.29689621925354004, -0.028451502323150635, 0.25928154587745667, 0.23791319131851196, 0.010287830606102943, -0.13319766521453857, -0.21040239930152893, 0.13874231278896332, 0.09128747135400772, 0.13290250301361084, -0.02063472755253315, -0.09393975138664246, 0.07366946339607239, 0.16118057072162628, -0.19997289776802063, 0.046172820031642914, 0.562717616558075, 0.1009083017706871, -0.16651619970798492, 0.3524794578552246, -0.3591860234737396, -0.25318026542663574, -0.2063344269990921, 0.2113708257675171, -0.14719678461551666, -0.3375503718852997, 0.10020774602890015, 0.09340530633926392, -0.12203150987625122, 0.06815193593502045, 0.22043897211551666, 0.09840714931488037, 0.07189981639385223, 0.3863678574562073, 0.002227228134870529, -0.5355733036994934, -0.2640572488307953, 0.08280567824840546, 0.02675325609743595, 0.11707708239555359, 0.3235994279384613, -0.1518225371837616, -0.3641735911369324, -0.2592262327671051, 0.058986030519008636, 0.13515882194042206, 0.09561451524496078, 0.1192464530467987, 0.21478427946567535, 0.04006056487560272, 0.07676053047180176, -0.12165001034736633, 0.2753293514251709, 0.06531504541635513, -0.28149712085723877, -0.30760377645492554, -0.33557015657424927, 0.4128000736236572, -0.07829254865646362, 0.3114042282104492, -0.11859394609928131, -0.1527828872203827, 0.31499770283699036, 0.0141080217435956, -0.4094567596912384, -0.08690506219863892, -0.24739380180835724, 0.03987301141023636, 0.07638430595397949, 0.1299361288547516, 0.21279451251029968, 0.08137623965740204, 0.10174396634101868, -0.044581107795238495, -0.12119586765766144, -0.25484001636505127, 0.12840954959392548, 0.10189656168222427, 0.024531377479434013, -0.23705783486366272, 0.04311983287334442, -0.3163934350013733, 0.13605190813541412, -0.14734435081481934, 0.41977620124816895, 0.4807138442993164, 0.0517583005130291, 0.221559539437294, -0.1543247550725937, 0.18641629815101624, -0.10927841812372208, -0.010633844882249832, -0.17818674445152283, -0.056997209787368774, -0.08445170521736145, -0.018086157739162445, -0.1080193966627121, 0.10846011340618134, 0.3125191032886505, 0.2602345645427704, -0.2370082288980484, 0.12039009481668472, 0.40051352977752686, 0.08731228113174438, 0.035786379128694534, 0.2492804378271103, 0.1552208662033081, 0.25261878967285156, -0.15208901464939117, -0.2472178041934967, 0.0627194344997406, 0.2940986752510071, -0.12879391014575958, -0.06453809142112732, -0.08336308598518372, 0.06376412510871887, 0.17427809536457062, 0.21904894709587097, -0.02521468698978424, -0.059924423694610596, 0.5201103687286377, 0.10185617208480835, 0.3913167715072632, -0.2105100005865097, 0.19739490747451782, 0.3519578278064728, -0.20667201280593872, 0.054389115422964096, 0.3923039436340332, 0.1674681454896927, 0.23982632160186768, 0.16047367453575134, 0.22506099939346313, 0.16672749817371368, -0.011777102947235107, 0.06115209311246872, -0.06977682560682297, -0.42560744285583496, 0.1876114308834076, 0.42288756370544434, -0.6316744685173035, 0.015871968120336533, 0.12694485485553741, 0.13006474077701569, -0.216531440615654, 0.14743271470069885, -0.30674001574516296, -0.09069597721099854, -0.20560219883918762, 0.08962053060531616, 0.2646951377391815, -0.1791733354330063, 0.11962367594242096, -0.07268550992012024, -0.05146731808781624, -0.07822689414024353, 0.33318400382995605, -0.28598982095718384, -0.1242925226688385, -0.05126582086086273, 0.22474044561386108, -0.05713906139135361, 0.2457660436630249, -0.07429520785808563, 0.0677325651049614, 0.03091300278902054, -0.009724646806716919, 0.15046080946922302, 0.4019574522972107, 0.6321609020233154, 0.5035336017608643, -0.09506705403327942, 0.236502006649971, 0.029204167425632477, -0.014109376817941666, -0.17958204448223114, 0.6146347522735596, -0.08634035289287567, -0.492880642414093, 0.2196941077709198, 0.23704925179481506, -0.2351471334695816, 0.28502610325813293, -0.17487891018390656, 0.23679766058921814, -0.12798190116882324, 0.2356353998184204, -0.04047756642103195, -0.07785147428512573, 0.057189375162124634, 0.011280924081802368, -0.3154178261756897, -0.11371311545372009, 0.5208554267883301, 0.03264836221933365, 0.26570838689804077, -0.13105905055999756, 0.16503389179706573, 0.0868210643529892, 0.33310529589653015, 0.4801473319530487, 0.16224387288093567, -0.05847487598657608, 0.2796640396118164, -0.6696775555610657, 0.1800311952829361, -0.03367322310805321, 0.033260419964790344, -0.09113732725381851, -0.06500068306922913, -0.05780940502882004, 0.24198712408542633, 0.21644358336925507, -0.3390408456325531, -0.18544842302799225, -0.2121638059616089, -0.19194748997688293, -0.08000341057777405, 0.11281636357307434, 0.05833499878644943, -0.09010234475135803, -0.3404119908809662, 0.22189810872077942, -0.2871270775794983, 0.17768341302871704, -0.088913194835186, -0.046775974333286285, 0.08035847544670105, 0.37732410430908203, 0.3630937337875366, 0.30072933435440063, 0.2893919348716736, 0.017214063555002213, -0.21322505176067352, -0.3013744354248047, -0.2719045877456665, 0.08977597951889038, 0.20494431257247925, 0.110091432929039, 0.22768482565879822, -0.11037848889827728, -0.24371565878391266, -0.15713824331760406, 0.1434422880411148, 0.0580473393201828, -0.025881322100758553, 0.007220560684800148, -0.11728133261203766, -0.11788897216320038, -0.07125819474458694, -0.06486164778470993, 0.3936862349510193, 0.18284501135349274, 0.059847138822078705, -0.1210426539182663, -0.35091185569763184, 0.3111911416053772, -0.27435600757598877, -0.16030968725681305, -0.29599493741989136, 0.207712322473526, -0.09841767698526382, -0.14677771925926208, -0.543174684047699, -0.06282491981983185, 0.3857176899909973, -0.1855788230895996, -0.18035025894641876, -0.14441998302936554, -0.1530551016330719, -0.01760275289416313, -0.2254132777452469, 0.2912808656692505, -0.03329610824584961, -0.05901195853948593, 0.17488104104995728, -0.3368076682090759 ]
https://github.com/huggingface/datasets/issues/5444
info messages logged as warnings
Oh, so it's intentional? Do all Hugging Face packages use `warning` when using cache? I guess feel free to close this issue then.
### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2
23
info messages logged as warnings ### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2 Oh, so it's intentional? Do all Hugging Face packages use `warning` when using cache? I guess feel free to close this issue then.
[ 0.14408552646636963, -0.2291892170906067, -0.0032132714986801147, 0.32334697246551514, 0.37744367122650146, 0.3381856679916382, 0.31798070669174194, 0.2857082188129425, 0.30939778685569763, -0.12606394290924072, -0.0030651530250906944, 0.003642665222287178, -0.2675057649612427, 0.07050426304340363, -0.01136577595025301, 0.052593931555747986, 0.011546604335308075, 0.03475496917963028, 0.10630086064338684, -0.038268234580755234, -0.2972669303417206, 0.21909815073013306, 0.06688369810581207, 0.3285120129585266, -0.7219002842903137, -0.19572480022907257, -0.05940283089876175, 0.20363590121269226, 0.04139256104826927, -0.7103062272071838, 0.34935903549194336, -0.3774368166923523, 0.16389572620391846, 0.22200584411621094, -0.00010706840839702636, -0.17129889130592346, 0.5448861718177795, 0.06506191194057465, -0.48544543981552124, 0.017047375440597534, 0.20384764671325684, -0.6182212829589844, 0.30692312121391296, -0.2639904022216797, 0.042780205607414246, -0.3793027400970459, 0.19257481396198273, -0.24792425334453583, 0.3651397228240967, 0.3030739724636078, 0.2516469955444336, 0.23367148637771606, 0.024732593446969986, 0.07234250754117966, 0.35404378175735474, 0.11423605680465698, -0.0202229805290699, 0.025207236409187317, -0.029842250049114227, -0.17945268750190735, -0.18522724509239197, 0.40428686141967773, -0.28773218393325806, 0.02560829184949398, 0.31441670656204224, 0.21243931353092194, 0.1191568374633789, -0.3613584339618683, 0.018957145512104034, 0.01872856542468071, 0.4535708427429199, -0.14449280500411987, -0.22175763547420502, -0.6415238976478577, -0.19500640034675598, -0.23019076883792877, 0.29342809319496155, 0.23625236749649048, -0.14844875037670135, 0.21840913593769073, -0.1619243174791336, 0.25825369358062744, 0.12322083115577698, -0.029461488127708435, 0.004732362926006317, 0.28811392188072205, -0.3109586834907532, 0.08268608152866364, -0.09752163290977478, -0.19494745135307312, -0.017272043973207474, -0.11043336987495422, -0.24491176009178162, 0.06201969087123871, -0.15605181455612183, -0.02068248763680458, 0.2825772166252136, 0.27131736278533936, 0.09834762662649155, -0.0987488329410553, -0.34685227274894714, -0.005646098405122757, -0.13459253311157227, -0.037025779485702515, 0.39564454555511475, 0.21357281506061554, 0.24467682838439941, 0.15282154083251953, 0.13710182905197144, -0.0032126838341355324, 0.16084666550159454, -0.021009936928749084, 0.24638047814369202, 0.02292701229453087, 0.6180006861686707, -0.10569793730974197, 0.18507395684719086, -0.12571284174919128, -0.2774428427219391, 0.26393699645996094, -0.07789503037929535, 0.06158475577831268, -0.08283011615276337, 0.38130074739456177, -0.19970594346523285, -0.1130441352725029, 0.2921804189682007, -0.009772848337888718, -0.01853150874376297, 0.042782384902238846, -0.17863547801971436, -0.08360615372657776, -0.20743021368980408, 0.15745437145233154, 0.010537967085838318, -0.09055390954017639, 0.32748323678970337, 0.2257530242204666, 0.26275309920310974, -0.014167781919240952, -0.05371544510126114, -0.0837559849023819, 0.2932838499546051, 0.5483302474021912, -0.2586131989955902, 0.42802271246910095, 0.2961841821670532, -0.21665629744529724, -0.20097017288208008, 0.08386790752410889, -0.074366994202137, -0.36103400588035583, -0.040819160640239716, 0.16669979691505432, -0.2918899655342102, 0.04162793979048729, -0.05339016765356064, 0.135983407497406, 0.23261138796806335, 0.03764877840876579, 0.35734209418296814, -0.08659318834543228, -0.2085011899471283, -0.16375871002674103, 0.1342933177947998, 0.7801421880722046, 0.08775167167186737, -0.28595519065856934, -0.02408130280673504, -0.1353168785572052, 0.03280937671661377, 0.21093407273292542, 0.024748608469963074, -0.06015128642320633, -0.45641812682151794, -0.2651054859161377, -0.011075176298618317, -0.3105602264404297, -0.14455415308475494, 0.3543161153793335, -0.04787426069378853, 0.5231700539588928, 0.09286681562662125, 0.11302884668111801, -0.401628702878952, -0.022592153400182724, 0.2651340067386627, -0.09210272878408432, 0.1614692360162735, 0.033047378063201904, -0.3821651041507721, -0.17022636532783508, 0.09771335870027542, 0.0008383747190237045, -0.03936370834708214, 0.09447403252124786, -0.2039911150932312, -0.18848536908626556, 0.32116442918777466, 0.1338193267583847, -0.041494421660900116, 0.052461229264736176, 0.05096396431326866, 0.15461641550064087, 0.02074674516916275, -0.0154228825122118, -0.464638888835907, 0.21584060788154602, -0.0787062793970108, 0.03878282010555267, -0.13009518384933472, -0.3001854419708252, -0.06079225614666939, -0.06997350603342056, -0.17985236644744873, -0.4518603980541229, 0.08684244751930237, 0.05336344242095947, 0.016411323100328445, 0.2607744634151459, -0.20180130004882812, 0.7866051197052002, -0.3308190107345581, 0.11907465755939484, -0.27840614318847656, -0.14732570946216583, 0.04771809279918671, -0.05873296409845352, -0.017689889296889305, 0.0066437795758247375, 0.21680739521980286, 0.24961338937282562, -0.023729436099529266, 0.22200530767440796, -0.0849016085267067, 0.22105252742767334, -0.27475664019584656, -0.025733202695846558, 0.19712890684604645, 0.011784221976995468, 0.23542273044586182, 0.08820822834968567, -0.06011980399489403, 0.013027243316173553, -0.02169451117515564, 0.13241715729236603, -0.028986942023038864, -0.1620749831199646, -0.08237379789352417, 0.025424884632229805, 0.1312447190284729, 0.08227258920669556, -0.16584309935569763, -0.3685593008995056, 0.11989985406398773, -0.10827292501926422, 0.2116384655237198, 0.08515240252017975, -0.307852566242218, 0.09679849445819855, 0.5652074217796326, -0.08962488919496536, 0.21068432927131653, 0.26797157526016235, -0.016406282782554626, -0.1905173361301422, 0.27440145611763, -0.05365999788045883, 0.2937558889389038, 0.10653562098741531, 0.08654752373695374, 0.2605675160884857, -0.13429373502731323, -0.0564725436270237, 0.14682528376579285, 0.006355881690979004, -0.1710296869277954, 0.08907260000705719, -0.04998147115111351, 0.05443919077515602, -0.14221134781837463, 0.2745843529701233, -0.3518158793449402, 0.0411422997713089, -0.5309731364250183, 0.15387579798698425, -0.17164494097232819, -0.5561955571174622, -0.194175586104393, -0.1457790583372116, -0.3092356324195862, -0.29583796858787537, 0.08103251457214355, -0.11863592267036438, -0.2738911807537079, 0.02390170469880104, -0.012444041669368744, 0.3111000955104828, 0.01612747274339199, 0.2500104308128357, -0.4641205668449402, -0.04113483056426048, -0.26480832695961, 0.08011728525161743, -0.19637809693813324, 0.1133008748292923, 0.18831315636634827, -0.540002703666687, -0.06778322160243988, -0.3448229432106018, -0.20056423544883728, 0.070935919880867, -0.30643510818481445, 0.3437090218067169, 0.126844584941864, 0.09448547661304474, -0.10299772024154663, -0.15819406509399414, 0.1751675009727478, -0.22521547973155975, -0.11595190316438675, -0.29700160026550293, 0.2166399508714676, 0.13517828285694122, -0.17711541056632996, -0.21239310503005981, -0.47005873918533325, -0.34546440839767456, 0.263923317193985, -0.0001859813928604126, 0.12937027215957642, 0.46268534660339355, -0.17322403192520142, 0.19101528823375702, -0.22805145382881165, 0.23335830867290497, -0.21598279476165771, -0.5609832406044006, 0.2119852900505066, -0.08897725492715836, -0.12119646370410919, 0.05174754932522774, 0.010336577892303467, -0.3020987808704376, -0.18032889068126678, -0.6759650707244873, -0.30365613102912903, -0.20549698173999786, -0.03580859303474426, 0.4355188012123108, 0.04061191529035568, -0.04830048978328705, -0.014058303087949753, -0.031015999615192413, -0.15069442987442017, -0.41436630487442017, 0.002121970057487488, -0.3160037398338318, 0.2645117938518524, -0.14518490433692932, 0.2688954174518585, -0.03925346955657005, 0.2901167869567871, 0.42397215962409973, 0.0648178681731224, 0.08508498966693878, 0.06470002979040146, 0.7950818538665771, -0.3465403914451599, -0.2850709557533264, -0.15800410509109497, -0.14060074090957642, -0.2169680893421173, 0.04854452982544899, 0.051425449550151825, 0.03946032375097275, -0.11398670077323914, -0.04576413705945015, -0.037546463310718536, -0.303204745054245, -0.06610780954360962, -0.02947133034467697, -0.06660161167383194, -0.09849865734577179, 0.08437993377447128, 0.038299575448036194, -0.09361573308706284, 0.0985567569732666, 0.6143589615821838, 0.2621205747127533, 0.12778714299201965, -0.449307918548584, 0.0020896538626402617, -0.27056625485420227, 0.1451541930437088, 0.08156153559684753, -0.05351024866104126, -0.24900805950164795, -0.3688581883907318, -0.05790804326534271, 0.17186743021011353, 0.28279194235801697, -0.14551641047000885, 0.06332956254482269, 0.19128312170505524, -0.20037442445755005, -0.21841612458229065, -0.1420944780111313, -0.06164082512259483, -0.08894632011651993, 0.16573524475097656, 0.36499711871147156, -0.22018134593963623, -0.17697250843048096, 0.17015507817268372, 0.12179380655288696, -0.09498903155326843, -0.09681406617164612, -0.4741685390472412, 0.01031458005309105, -0.034833211451768875, 0.1608237624168396, 0.20563572645187378, -0.2649213969707489, -0.33828720450401306, -0.10737036168575287, 0.07970266044139862, 0.3522561490535736, 0.04051760211586952, -0.10831578075885773, 0.25470536947250366, -0.11572761088609695, 0.1838419884443283, 0.3027186095714569, 0.49402061104774475, 0.24391107261180878, 0.5665668845176697, -0.25073114037513733, -0.45491743087768555, -0.07207537442445755, 0.029266919940710068, -0.13614800572395325, 0.32380586862564087, -0.05847940221428871, -0.12405575066804886, 0.08994323760271072, 0.2009320706129074, -0.42174142599105835, -0.028647948056459427, 0.43586915731430054, 0.2014601081609726, -0.2878063917160034, -0.2513691186904907, 0.39598220586776733, 0.11297444999217987, -0.066582091152668, 0.22913411259651184, -0.005645386874675751, -0.11509870737791061, 0.03191465139389038, 0.0038869231939315796, 0.7554971575737, -0.06464093923568726, 0.32892245054244995, 0.2939840257167816, 0.03496694564819336, 0.5704057812690735, 0.13875514268875122, 0.08745750039815903, -0.21597416698932648, -0.3692607879638672, 0.04115820676088333, -0.01150130107998848, 0.06337196379899979, -0.021300755441188812, -0.2547408938407898, 0.07099971920251846, -0.3231503367424011, 0.21597418189048767, -0.08047835528850555, 0.15361446142196655, -0.3256756067276001, 0.026035664603114128, -0.6631173491477966, 0.15941424667835236, 0.11661764979362488, 0.402123361825943, -0.12390726804733276, 0.048124637454748154, 0.21396830677986145, -0.24965959787368774, -0.27854031324386597, 0.06257129460573196, 0.36726146936416626, 0.02436966635286808, 0.13359254598617554, -0.299455463886261, -0.18807798624038696, 0.17148153483867645, 0.4085037112236023, 0.07590087503194809, -0.022516081109642982, -0.04734507575631142, -0.11813908070325851, 0.13726583123207092, -0.322785347700119, 0.015413817949593067, 0.5322897434234619, 0.030058711767196655, -0.22815993428230286, 0.24697649478912354, -0.23907704651355743, -0.2840508818626404, -0.18825319409370422, 0.03495975583791733, -0.3455353379249573, -0.32027551531791687, 0.12186135351657867, -0.04106888175010681, 0.09019947052001953, 0.014544297009706497, 0.17541684210300446, 0.19178162515163422, 0.03433602675795555, 0.08706949651241302, -0.032923582941293716, -0.577839732170105, -0.3501059412956238, 0.11294529587030411, -0.09980116039514542, 0.017369497567415237, 0.45312798023223877, -0.05748405307531357, -0.29204505681991577, -0.13333925604820251, -0.07130686193704605, 0.2208767682313919, 0.029903613030910492, 0.22155503928661346, 0.24867527186870575, -0.008889049291610718, -0.0002990577195305377, -0.09492546319961548, 0.24681305885314941, 0.0308702252805233, -0.1957593709230423, -0.29127588868141174, -0.3725670576095581, 0.3219216465950012, -0.1654297262430191, 0.1925087869167328, 0.022220179438591003, -0.21745474636554718, 0.37139979004859924, -0.0050957538187503815, -0.31195706129074097, -0.12447986751794815, -0.20262446999549866, -0.10437813401222229, 0.16367310285568237, 0.018927890807390213, 0.36765387654304504, 0.12790019810199738, 0.010503964498639107, 0.01599208079278469, -0.16034336388111115, -0.15805462002754211, 0.0315370187163353, 0.10351912677288055, -0.06966179609298706, -0.17379425466060638, 0.10610538721084595, -0.29890674352645874, 0.22119462490081787, -0.1344907432794571, 0.5260524749755859, 0.4986308217048645, 0.055234551429748535, 0.312461256980896, -0.19042398035526276, 0.18798650801181793, -0.1068975105881691, -0.027999185025691986, -0.11401157081127167, -0.1014968752861023, -0.057037677615880966, -0.17793433368206024, -0.27660268545150757, 0.11577536165714264, 0.3736442029476166, 0.06703916192054749, -0.22030328214168549, 0.08875647932291031, 0.2374381124973297, 0.037799566984176636, -0.01381169818341732, 0.1768965870141983, 0.15038228034973145, 0.2222956269979477, -0.133189857006073, -0.328226238489151, 0.11264556646347046, 0.19598369300365448, -0.07092666625976562, -0.09802750498056412, -0.1431601196527481, 0.20450560748577118, 0.036223072558641434, 0.29242977499961853, 0.07723109424114227, -0.09262310713529587, 0.5481860041618347, 0.08720877766609192, 0.6014134883880615, -0.15070468187332153, 0.18876159191131592, 0.18765489757061005, -0.20821712911128998, 0.10792537778615952, 0.3349408507347107, 0.22314082086086273, 0.303890585899353, 0.08615361899137497, 0.02064138650894165, 0.11540492624044418, -0.03375446796417236, 0.10452447831630707, -0.045044951140880585, -0.3576257526874542, 0.012921124696731567, 0.31170064210891724, -0.5257800221443176, -0.03809691220521927, 0.04140752926468849, 0.2690853178501129, -0.24454466998577118, 0.03748944029211998, -0.25228461623191833, 0.0006840266287326813, -0.19504329562187195, 0.028258059173822403, 0.4299732744693756, -0.06627710908651352, 0.07605120539665222, 0.035263825207948685, -0.06744810938835144, -0.24926309287548065, 0.22766520082950592, -0.26569515466690063, -0.1784345656633377, -0.05532345175743103, 0.07289204001426697, 0.06064695864915848, 0.22133460640907288, 0.011552207171916962, 0.02745547890663147, 0.19311383366584778, -0.057027027010917664, 0.21136735379695892, 0.4684446156024933, 0.6756687760353088, 0.3985285460948944, 0.1174934059381485, 0.2487509846687317, 0.00544703658670187, 0.10166646540164948, -0.1386299878358841, 0.6183856725692749, 0.01599375158548355, -0.37297531962394714, 0.12013454735279083, 0.1687978059053421, -0.21983417868614197, 0.3006565570831299, -0.2546616196632385, 0.29830124974250793, -0.4352336823940277, 0.34521484375, -0.22187581658363342, -0.02491329237818718, -0.11257925629615784, 0.12962113320827484, -0.32682424783706665, 0.003771370742470026, 0.6282286643981934, 0.20490393042564392, 0.1553681492805481, -0.0570717453956604, 0.1246320903301239, 0.01503041386604309, 0.41475021839141846, 0.5418519377708435, 0.2298072874546051, 0.002349015325307846, 0.2419682890176773, -0.601920485496521, 0.299511194229126, 0.03904440253973007, 0.11536629498004913, 0.0023669619113206863, -0.25678113102912903, -0.1622644066810608, 0.0888213962316513, 0.1980496346950531, -0.15907511115074158, -0.08884315937757492, -0.36091476678848267, -0.24944545328617096, 0.0031585097312927246, 0.11229300498962402, 0.07989796996116638, 0.02676400914788246, -0.22718751430511475, 0.2759879529476166, -0.08186201006174088, 0.07182881981134415, 0.07731606066226959, 0.0409092903137207, 0.04031836614012718, 0.3568677008152008, 0.24986159801483154, 0.3315214216709137, 0.30040502548217773, 0.13526201248168945, -0.3674042820930481, -0.2863170802593231, -0.23616601526737213, 0.08740227669477463, 0.30728480219841003, 0.12391777336597443, 0.2529340088367462, -0.29410138726234436, -0.28783735632896423, -0.2776348888874054, 0.416542649269104, 0.1722709983587265, -0.21934567391872406, 0.044460028409957886, -0.10526201874017715, -0.08787393569946289, -0.21928676962852478, 0.18316605687141418, 0.4806652367115021, 0.06892889738082886, 0.009548643603920937, -0.14459367096424103, -0.2698156237602234, 0.48981738090515137, -0.3448696732521057, -0.047671765089035034, -0.22502341866493225, 0.25114548206329346, 0.1059175655245781, -0.3812004625797272, -0.5871149301528931, -0.07179515063762665, 0.2842434048652649, -0.011473651975393295, -0.19980913400650024, -0.11602334678173065, -0.25224387645721436, 0.0321439765393734, -0.06423425674438477, 0.41405779123306274, 0.15921899676322937, -0.0035705044865608215, 0.32626569271087646, -0.3686385750770569 ]
https://github.com/huggingface/datasets/issues/5444
info messages logged as warnings
Yes it's intentional for `map`. For `load_dataset` it's also intentional but for a different reason: it shows where in the cache the dataset is located, in case the user wants to clear the cache.
### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2
34
info messages logged as warnings ### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2 Yes it's intentional for `map`. For `load_dataset` it's also intentional but for a different reason: it shows where in the cache the dataset is located, in case the user wants to clear the cache.
[ 0.11643534898757935, -0.19251158833503723, -0.03884235396981239, 0.3318280577659607, 0.26427432894706726, 0.35502636432647705, 0.3619454801082611, 0.3249266445636749, 0.4101949632167816, -0.18531031906604767, -0.011977544054389, 0.4151666462421417, -0.21757540106773376, -0.04510371387004852, -0.03412891551852226, 0.0549096018075943, -0.04607041925191879, 0.07241789996623993, -0.07140077650547028, -0.0692237913608551, -0.33484479784965515, 0.10060111433267593, -0.04796688258647919, 0.4404352307319641, -0.5675908327102661, -0.21582947671413422, -0.03646959364414215, 0.2581039369106293, 0.051333948969841, -0.7818827629089355, 0.31910961866378784, -0.37013524770736694, 0.16609372198581696, 0.09549769014120102, -0.00010544672841206193, -0.07969201356172562, 0.5925385355949402, 0.062056876718997955, -0.4600563049316406, -0.040408000349998474, -0.22272565960884094, -0.7068986296653748, 0.3325270712375641, -0.368383526802063, 0.2361530363559723, -0.4494871199131012, 0.2609363794326782, -0.15421518683433533, 0.21802924573421478, 0.2712540328502655, 0.2368456870317459, 0.15466663241386414, -0.04665866866707802, 0.13917176425457, 0.3997983932495117, 0.16272425651550293, 0.07493075728416443, 0.10589951276779175, 0.10699071735143661, -0.1998944878578186, -0.28143492341041565, 0.36303094029426575, -0.2850991189479828, 0.1541052758693695, 0.28576841950416565, 0.15742819011211395, 0.3071804344654083, -0.49075648188591003, 0.004216395318508148, 0.13675367832183838, 0.579629123210907, -0.1849633753299713, -0.12956476211547852, -0.5773336887359619, -0.15703724324703217, -0.05331855267286301, 0.3055589497089386, 0.28227394819259644, -0.10816746950149536, 0.17913824319839478, -0.05075095593929291, 0.2608349621295929, 0.14080524444580078, 0.055188387632369995, -0.18518505990505219, 0.5221937298774719, -0.24982845783233643, 0.212164044380188, -0.3518572151660919, -0.14092649519443512, 0.0886959508061409, -0.31801411509513855, -0.2007841020822525, 0.21699422597885132, -0.17738574743270874, -0.006948485970497131, 0.20914477109909058, 0.12865769863128662, -0.012043839320540428, -0.2390032857656479, -0.1719287931919098, 0.013359790667891502, -0.14505600929260254, 0.15268810093402863, 0.5909501910209656, -0.09483636915683746, 0.15178169310092926, 0.34270256757736206, 0.1425202488899231, -0.16169066727161407, 0.12092737853527069, -0.05362106114625931, 0.07770766317844391, -0.06473160535097122, 0.6665143370628357, -0.040908798575401306, 0.22896985709667206, -0.03002408891916275, -0.2735236883163452, 0.15067006647586823, -0.2465730905532837, -0.08467210829257965, -0.07458245009183884, 0.28025418519973755, -0.12656104564666748, -0.14492592215538025, 0.1261451542377472, -0.04139626771211624, 0.10563827306032181, 0.18426679074764252, -0.06597773730754852, -0.08745433390140533, -0.2349415272474289, 0.0061127375811338425, -0.05123051255941391, 0.020768485963344574, 0.40623632073402405, 0.19034506380558014, -0.06944355368614197, -0.018420372158288956, 0.05224844813346863, -0.025287576019763947, 0.2876378297805786, 0.708029568195343, -0.23451972007751465, 0.41119369864463806, 0.20154593884944916, -0.10756079852581024, -0.34767216444015503, 0.3320344388484955, -0.22730213403701782, -0.3583771884441376, -0.05697346478700638, 0.17628514766693115, -0.19269314408302307, 0.09919795393943787, -0.14343050122261047, 0.24777290225028992, 0.2235054224729538, -0.048778705298900604, 0.41938433051109314, -0.11818799376487732, -0.150522381067276, -0.20882542431354523, 0.02316601760685444, 0.6443067789077759, -0.1235986202955246, -0.1908462792634964, -0.09341568499803543, -0.30061718821525574, 0.06119523197412491, 0.02523687481880188, -0.1658889651298523, 0.3377012014389038, -0.351471483707428, -0.06174491345882416, 0.3603646755218506, -0.23282381892204285, -0.06388735771179199, 0.5206170082092285, -0.020500633865594864, 0.43250778317451477, 0.048100508749485016, 0.11257413774728775, -0.19041404128074646, 0.018337508663535118, 0.35182881355285645, -0.053794071078300476, 0.17085303366184235, 0.05827115476131439, -0.34600576758384705, -0.07350999861955643, 0.18943513929843903, 0.03841392323374748, -0.04177713766694069, 0.04036394879221916, 0.03586619719862938, -0.08916845172643661, 0.3166872560977936, 0.17316345870494843, -0.059906452894210815, 0.027995269745588303, -0.08473965525627136, 0.10047252476215363, -0.045042734593153, -0.02903517708182335, -0.4442583918571472, 0.16302570700645447, -0.18152864277362823, -0.16495223343372345, -0.05081437528133392, -0.16108350455760956, -0.1220642700791359, -0.05426190048456192, -0.24770264327526093, -0.3357836604118347, 0.12808823585510254, -0.17566728591918945, -0.09846223890781403, 0.15308377146720886, -0.15761156380176544, 0.5459511280059814, -0.4193067252635956, 0.08844859153032303, -0.1738400161266327, -0.03100704401731491, -0.012017423287034035, 0.04861986264586449, -0.013784276321530342, -0.1346207559108734, 0.09433948993682861, 0.26284366846084595, -0.10205236077308655, 0.2693813741207123, 0.1065002828836441, 0.23089167475700378, -0.22201856970787048, 0.07783637195825577, 0.2464413195848465, 0.07839979231357574, 0.33078670501708984, 0.07962528616189957, 0.09112246334552765, -0.07208006083965302, -0.12857463955879211, 0.138008251786232, 0.0641455128788948, -0.18220341205596924, -0.18009121716022491, 0.017605716362595558, 0.24027377367019653, 0.1418425738811493, -0.23076333105564117, -0.38319048285484314, -0.07752840220928192, 0.0698658749461174, 0.1412670612335205, 0.1948298066854477, -0.2146533876657486, -0.027861841022968292, 0.5361258387565613, -0.1893153041601181, 0.19119614362716675, 0.224139004945755, -0.1572413146495819, -0.2852368652820587, 0.19828742742538452, -0.09790204465389252, 0.42868924140930176, 0.1346873939037323, 0.03365884721279144, 0.1383441984653473, -0.1090702936053276, -0.09636182337999344, 0.27338266372680664, 0.1262529194355011, 0.011618828400969505, 0.11485567688941956, -0.12688012421131134, 0.13542045652866364, -0.13800568878650665, 0.11487939953804016, -0.17253734171390533, 0.1390274167060852, -0.5378013253211975, 0.025527166202664375, -0.17274390161037445, -0.4679349660873413, -0.2568609416484833, -0.1237775906920433, -0.2064121514558792, -0.4875715374946594, 0.044690415263175964, -0.22921055555343628, -0.2595239281654358, 0.04719597101211548, -0.11943197250366211, 0.15754655003547668, 0.05677550286054611, 0.35939279198646545, -0.3798154592514038, -0.15726134181022644, -0.2020980417728424, 0.09779994189739227, -0.08895200490951538, 0.2334311604499817, 0.1894456446170807, -0.31813499331474304, -0.0004491601139307022, -0.2734110355377197, -0.19981911778450012, 0.07551578432321548, -0.2883376479148865, 0.22472654283046722, 0.16144362092018127, 0.08904030919075012, 0.032337404787540436, -0.12192288041114807, 0.10671092569828033, -0.060333527624607086, -0.048023924231529236, -0.2089088261127472, 0.13027921319007874, 0.07206573337316513, -0.12359941005706787, -0.3306584358215332, -0.6239669919013977, -0.3163038194179535, 0.0940079540014267, -0.0069281551986932755, 0.18384507298469543, 0.43400123715400696, -0.08405451476573944, 0.2704123258590698, -0.2192012071609497, 0.17766086757183075, -0.20498362183570862, -0.5408770442008972, 0.21799346804618835, -0.07610207796096802, 0.081716388463974, 0.0012177973985671997, -0.09407787770032883, -0.3508355915546417, -0.21581125259399414, -0.6793971657752991, -0.205804705619812, -0.28168433904647827, -0.021483756601810455, 0.42355138063430786, 0.055320147424936295, -0.03497128188610077, 0.13232140243053436, -0.03145354613661766, -0.1135624349117279, -0.33210688829421997, -0.06131982058286667, -0.17200234532356262, 0.14289884269237518, -0.003284357488155365, 0.21190571784973145, -0.18850551545619965, 0.2708451449871063, 0.379031240940094, 0.04518171399831772, -0.03271184861660004, 0.049055397510528564, 0.6443420052528381, -0.2958943843841553, -0.1347198784351349, -0.07277307659387589, -0.050876349210739136, -0.33657902479171753, 0.1499031037092209, -0.05592864006757736, -0.18968816101551056, 0.10982951521873474, -0.024516256526112556, -0.11284486949443817, -0.31084081530570984, 0.10810290277004242, -0.2067408263683319, -0.1940019428730011, -0.06742247194051743, 0.07280749827623367, -0.05782988294959068, 0.008018424734473228, 0.017929736524820328, 0.5751981139183044, 0.2785114049911499, -0.012880982831120491, -0.30635446310043335, -0.15072877705097198, -0.25239771604537964, 0.014182202517986298, 0.07526257634162903, -0.058167435228824615, -0.22606244683265686, -0.3550042510032654, 0.037059057503938675, 0.22289669513702393, 0.08873213827610016, -0.41103482246398926, -0.036470524966716766, 0.21831099689006805, 0.081607885658741, -0.14432324469089508, -0.27865174412727356, -0.19312676787376404, 0.12401024252176285, 0.21234466135501862, 0.37505611777305603, -0.12101031839847565, -0.17491236329078674, 0.1961435079574585, 0.03319263085722923, -0.17766517400741577, -0.2242925465106964, -0.39304980635643005, -0.0053358301520347595, -0.18950694799423218, 0.04309546574950218, 0.22306184470653534, -0.3128940463066101, -0.3128988742828369, -0.31103551387786865, 0.12767893075942993, 0.5139790773391724, 0.07100973278284073, 0.06447041034698486, 0.09319242089986801, 0.08271036297082901, 0.16534514725208282, 0.14814269542694092, 0.4958738684654236, 0.22354315221309662, 0.6098079681396484, -0.24182870984077454, -0.3418668806552887, -0.011112939566373825, -0.2345302700996399, 0.08428297936916351, 0.22682473063468933, 0.03425014019012451, -0.15324893593788147, -0.011739157140254974, 0.11058522760868073, -0.518080472946167, -0.018532972782850266, 0.4519598186016083, 0.10356345027685165, -0.4083121716976166, -0.4553040564060211, 0.4349673390388489, 0.1480870246887207, -0.22042936086654663, 0.44562289118766785, -0.33473819494247437, -0.24878527224063873, 0.04140884056687355, 0.09331250190734863, 0.6567254066467285, -0.14906977117061615, 0.2362232506275177, 0.27745717763900757, 0.049557626247406006, 0.3959801495075226, 0.03177022933959961, -0.052514344453811646, -0.30395185947418213, -0.338586688041687, -0.00828193873167038, -0.031598880887031555, 0.16981279850006104, 0.22690516710281372, -0.33505919575691223, -0.002692483365535736, -0.3422328233718872, 0.3835858106613159, -0.12794844806194305, 0.17602121829986572, -0.17979203164577484, -0.07880879938602448, -0.7898620963096619, 0.1615513116121292, 0.24751321971416473, 0.24607226252555847, -0.11332398653030396, 0.10054299980401993, 0.23032912611961365, -0.18281394243240356, -0.32795584201812744, -0.1172117218375206, 0.33967673778533936, 0.17199133336544037, -0.03717534616589546, -0.1163652092218399, -0.041028451174497604, 0.24705107510089874, 0.05001664161682129, 0.09224891662597656, 0.07966284453868866, -0.015080232173204422, 0.01926567032933235, 0.21015916764736176, -0.24759119749069214, 0.0732903704047203, 0.5051719546318054, 0.10619815438985825, -0.25666284561157227, 0.3645775616168976, -0.35678187012672424, -0.24975043535232544, -0.21125748753547668, 0.16449254751205444, -0.13716429471969604, -0.3261466324329376, 0.05104764550924301, 0.05134398862719536, -0.0238149743527174, 0.06244215741753578, 0.1632925570011139, 0.1621481478214264, 0.10788685083389282, 0.36239033937454224, -0.0879792720079422, -0.690003514289856, -0.2889825403690338, -0.04570009559392929, -0.009843200445175171, 0.15832652151584625, 0.42740598320961, -0.23079344630241394, -0.2949443459510803, -0.18983054161071777, 0.2520556151866913, 0.18401795625686646, 0.15670844912528992, 0.09909914433956146, 0.3149723410606384, 0.06653831899166107, -0.06954658776521683, -0.047836948186159134, 0.23323209583759308, 0.06166753172874451, -0.31042948365211487, -0.37355828285217285, -0.37868204712867737, 0.33536970615386963, -0.07135690748691559, 0.2784711718559265, -0.07205719500780106, -0.23192913830280304, 0.34831297397613525, 0.043675824999809265, -0.3383321166038513, -0.197617769241333, -0.181954026222229, 0.05642251297831535, 0.10482126474380493, 0.1946638822555542, 0.2531067430973053, 0.12218071520328522, 0.0580139085650444, -0.08023415505886078, -0.0000016689300537109375, -0.206775963306427, 0.08062200248241425, 0.1250915825366974, -0.011250056326389313, -0.23311208188533783, -0.03220776468515396, -0.39873117208480835, 0.20037841796875, -0.12855514883995056, 0.4583233892917633, 0.48803919553756714, 0.06961740553379059, 0.3582143485546112, -0.15923985838890076, 0.24271553754806519, -0.16947996616363525, 0.05806717276573181, -0.11327025294303894, -0.040500372648239136, -0.08505092561244965, -0.040885165333747864, -0.206247940659523, 0.12106499075889587, 0.3041650056838989, 0.17483395338058472, -0.20662938058376312, 0.18020763993263245, 0.26962417364120483, 0.20715279877185822, 0.15748082101345062, 0.16634535789489746, 0.002406233921647072, 0.3564283847808838, -0.17541255056858063, -0.336220920085907, 0.05272990092635155, 0.2179340124130249, -0.03633204847574234, 0.021463697776198387, -0.05777576193213463, 0.09909611195325851, 0.10489638149738312, 0.18164950609207153, -0.0015280954539775848, -0.05309116095304489, 0.3008353114128113, 0.030804093927145004, 0.36565691232681274, -0.09854061901569366, 0.15862005949020386, 0.41976550221443176, -0.16919688880443573, 0.15048110485076904, 0.3744651675224304, 0.19787003099918365, 0.2744942605495453, 0.11887384951114655, 0.18047982454299927, 0.15882273018360138, 0.04036471247673035, 0.0218285471200943, -0.013758823275566101, -0.37394052743911743, 0.11994469165802002, 0.4236460328102112, -0.691157877445221, -0.05318611115217209, 0.21300108730793, 0.17771396040916443, -0.18025052547454834, 0.10986346751451492, -0.29427874088287354, -0.10975173115730286, -0.16790422797203064, 0.0031054168939590454, 0.2267332375049591, -0.12716592848300934, 0.12977789342403412, -0.031021548435091972, -0.019733022898435593, -0.2131185084581375, 0.2406964898109436, -0.21418355405330658, -0.16951914131641388, -0.09472277760505676, 0.2497866153717041, 0.03368565812706947, 0.13051269948482513, -0.04347093403339386, -0.0356830433011055, 0.047288957983255386, 0.05238271504640579, 0.2646913230419159, 0.3752206563949585, 0.6213887333869934, 0.53706955909729, 0.06329847872257233, 0.1617117077112198, 0.04456331580877304, 0.062891386449337, -0.08892658352851868, 0.5798948407173157, -0.10980427265167236, -0.41643065214157104, 0.2750455439090729, 0.19009211659431458, -0.1678309440612793, 0.2310967743396759, -0.0479092039167881, 0.2639259994029999, -0.1841830462217331, 0.29518750309944153, -0.033893898129463196, -0.07758015394210815, 0.12104546278715134, 0.07308139652013779, -0.34213557839393616, -0.1109035387635231, 0.6171117424964905, 0.13045839965343475, 0.21975913643836975, -0.04678819701075554, 0.13272076845169067, 0.06553614139556885, 0.4274148941040039, 0.5037912130355835, 0.16824871301651, -0.09225447475910187, 0.3319314122200012, -0.6146352887153625, 0.18507206439971924, -0.02633042261004448, -0.0315515361726284, -0.004983353428542614, -0.2009647786617279, -0.09543905407190323, 0.12699341773986816, 0.20133362710475922, -0.34222835302352905, -0.13194860517978668, -0.2071487307548523, -0.1435975283384323, -0.11330528557300568, 0.041443146765232086, 0.1650559902191162, -0.09405385702848434, -0.24937677383422852, 0.262795627117157, -0.22533529996871948, 0.10600659996271133, -0.14257891476154327, 0.0007359012961387634, 0.18333497643470764, 0.44207072257995605, 0.3541359007358551, 0.19225989282131195, 0.3933928310871124, 0.042749881744384766, -0.20544736087322235, -0.2384992241859436, -0.3051570951938629, 0.10866867750883102, 0.2909943461418152, 0.021408651024103165, 0.1601458638906479, -0.12061568349599838, -0.19580495357513428, -0.21558527648448944, 0.2220727950334549, 0.06037206947803497, -0.1458742618560791, 0.08167947083711624, -0.16373001039028168, -0.11082224547863007, -0.15882988274097443, 0.04243392497301102, 0.38225221633911133, 0.17959199845790863, 0.0014334656298160553, 0.0032274946570396423, -0.2514505684375763, 0.20995986461639404, -0.33870062232017517, -0.09117582440376282, -0.2936670780181885, 0.21394531428813934, -0.12464357167482376, 0.006224764510989189, -0.6550787091255188, -0.05961262434720993, 0.4854200780391693, -0.2449413239955902, -0.11716200411319733, -0.1242552250623703, -0.17499378323554993, 0.0890139788389206, -0.1681085079908371, 0.2558613419532776, -0.02187838777899742, -0.0397694855928421, 0.09496468305587769, -0.34445762634277344 ]
https://github.com/huggingface/datasets/issues/5444
info messages logged as warnings
OK I see. It's surprising to me that these are considered "something unexpected happened", the concept of cache is pretty common. Has a user every actually complained that they ran their code once, and it took a minute while the data downloaded, then ran their code again and it ran really fast (and completed successfully) but they were so baffled by the fact that it ran quickly, _and_ didn't set the log level to INFO, _and_ hadn't read the docs (or thought about it) to know that datasets are cached, that they logged an issue asking that this information be output as a warning every time they run their code? That seems like a very niche scenario to cater for, given that the side effect is to flood the console with irrelevant warnings for every other user every other time they run a bit of `datasets` code. And the real world impact is that people TURN OFF warnings, which is a pretty bad habit to get into. Anyhoo, if there's no chance I'm going to change your mind, please close the issue :)
### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2
183
info messages logged as warnings ### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2 OK I see. It's surprising to me that these are considered "something unexpected happened", the concept of cache is pretty common. Has a user every actually complained that they ran their code once, and it took a minute while the data downloaded, then ran their code again and it ran really fast (and completed successfully) but they were so baffled by the fact that it ran quickly, _and_ didn't set the log level to INFO, _and_ hadn't read the docs (or thought about it) to know that datasets are cached, that they logged an issue asking that this information be output as a warning every time they run their code? That seems like a very niche scenario to cater for, given that the side effect is to flood the console with irrelevant warnings for every other user every other time they run a bit of `datasets` code. And the real world impact is that people TURN OFF warnings, which is a pretty bad habit to get into. Anyhoo, if there's no chance I'm going to change your mind, please close the issue :)
[ 0.14952674508094788, 0.012142419815063477, -0.04143369197845459, 0.3016056418418884, 0.1850384920835495, 0.2751148045063019, 0.3156786561012268, 0.17848330736160278, 0.13307008147239685, -0.17578820884227753, 0.12940077483654022, 0.1620422601699829, -0.4320485293865204, -0.1107400432229042, -0.07286132872104645, 0.12025997787714005, -0.10937247425317764, 0.025767125189304352, 0.11927089095115662, -0.02397124096751213, -0.23703314363956451, -0.07045641541481018, 0.006819926202297211, 0.3665962815284729, -0.5874927639961243, -0.3996976912021637, 0.09414350986480713, 0.12814602255821228, -0.05288060009479523, -0.7634692192077637, 0.3056555688381195, -0.3849025070667267, 0.13743381202220917, 0.20427119731903076, -0.00010635028593242168, -0.25944846868515015, 0.5023335218429565, 0.11061985790729523, -0.461805135011673, 0.23595622181892395, -0.0544334314763546, -0.5257383584976196, 0.20145899057388306, -0.3007832169532776, 0.15413787961006165, -0.43912768363952637, 0.23592059314250946, -0.3323954939842224, 0.24789513647556305, 0.3267785906791687, 0.24161754548549652, 0.09100020676851273, 0.055220503360033035, 0.1909344494342804, 0.48112615942955017, -0.010225877165794373, -0.014795975759625435, 0.0368933230638504, 0.2505052089691162, -0.13985271751880646, -0.17798921465873718, 0.290203332901001, -0.409803569316864, 0.19534732401371002, 0.32094019651412964, 0.06512532383203506, 0.1956309974193573, -0.3549666702747345, -0.051187120378017426, 0.18795228004455566, 0.4296039342880249, -0.1363561749458313, -0.3586401343345642, -0.748702883720398, -0.12777051329612732, -0.2824133038520813, 0.2586173117160797, 0.2827540934085846, -0.32995519042015076, 0.1836780458688736, -0.044604334980249405, 0.21016216278076172, 0.16221880912780762, 0.04986158013343811, -0.1449510157108307, 0.42047396302223206, -0.31035929918289185, 0.1465367078781128, -0.43296411633491516, -0.1591661125421524, 0.15726593136787415, -0.20832304656505585, -0.11089625954627991, 0.14759933948516846, -0.23761238157749176, -0.2196420431137085, 0.2594670355319977, 0.250862717628479, 0.13364297151565552, -0.04418227821588516, -0.20509490370750427, 0.05698590353131294, -0.18164213001728058, -0.03582845628261566, 0.3567359149456024, 0.095194011926651, 0.011544011533260345, 0.245636984705925, 0.2653200328350067, -0.0550038143992424, 0.1817960888147354, 0.13607805967330933, 0.17064908146858215, 0.00929855927824974, 0.6975557208061218, 0.18200692534446716, 0.38633912801742554, -0.1622580885887146, -0.37271177768707275, 0.3916730582714081, -0.16469576954841614, 0.04705699905753136, -0.11386952549219131, 0.26804205775260925, -0.16970738768577576, -0.04391637444496155, 0.21185193955898285, -0.04869449883699417, 0.14634132385253906, 0.13321654498577118, 0.008607164025306702, -0.09953159093856812, -0.24502474069595337, 0.18437804281711578, -0.015226483345031738, -0.03991849347949028, 0.220857173204422, 0.24723698198795319, -0.11016848683357239, -0.07404397428035736, 0.17088310420513153, -0.1409936547279358, 0.23703733086585999, 0.4939921200275421, -0.4334776699542999, 0.3685711920261383, 0.21994519233703613, -0.2576729357242584, -0.22709178924560547, 0.26142367720603943, -0.06001485139131546, -0.42728060483932495, -0.025745319202542305, 0.19208036363124847, -0.4231905937194824, 0.06543560326099396, 0.0766235813498497, 0.27121567726135254, 0.2756025493144989, 0.03600131347775459, 0.5019412040710449, -0.024391502141952515, 0.0017548613250255585, -0.14831984043121338, -0.07484912127256393, 0.6504446864128113, -0.1651519387960434, -0.11798079311847687, -0.17037834227085114, -0.0970177948474884, 0.1418420672416687, 0.06249938905239105, -0.15251374244689941, 0.3189161717891693, -0.36857137084007263, -0.24318985641002655, 0.13607636094093323, -0.09041360765695572, 0.025456059724092484, 0.3072008490562439, -0.039927490055561066, 0.5762574672698975, 0.1957213431596756, 0.16753217577934265, -0.15480569005012512, -0.07696468383073807, 0.2498801201581955, -0.15661747753620148, 0.0476236492395401, 0.011870374903082848, -0.4498480558395386, -0.28588423132896423, 0.23251807689666748, 0.13085228204727173, 0.11010739207267761, 0.11146672070026398, -0.1408155858516693, 0.035322707146406174, 0.3689644932746887, 0.038506507873535156, -0.0109100341796875, -0.04647613316774368, 0.024098927155137062, 0.20557960867881775, -0.11717920750379562, -0.10395490378141403, -0.3124670684337616, 0.14221084117889404, -0.06828950345516205, -0.15499864518642426, 0.038349032402038574, -0.4009172320365906, -0.054100099951028824, -0.010423637926578522, -0.12676426768302917, -0.4376034140586853, 0.11454764008522034, -0.06898592412471771, -0.164601132273674, 0.06678937375545502, -0.39891374111175537, 0.658552348613739, -0.31310179829597473, 0.10575643181800842, -0.15580958127975464, -0.18075889348983765, -0.02095193974673748, -0.09332055598497391, -0.04310322925448418, -0.1906479299068451, 0.0925702229142189, 0.18233872950077057, 0.09553317725658417, 0.16674883663654327, 0.0124440286308527, 0.12565533816814423, -0.3166560232639313, 0.05193684995174408, 0.07974299788475037, 0.2549758553504944, 0.2817670404911041, 0.029296454042196274, 0.1778324544429779, 0.08858046680688858, -0.05700767785310745, 0.2717818319797516, 0.14170321822166443, -0.2112131416797638, -0.0754787027835846, -0.023351898416876793, 0.20000383257865906, -0.03744424134492874, -0.24007010459899902, -0.2284681648015976, 0.1824048012495041, -0.17651359736919403, 0.1883685290813446, 0.04552718251943588, -0.280997633934021, 0.07791540026664734, 0.4946090281009674, -0.010703997686505318, 0.17336603999137878, 0.26861050724983215, 0.013578057289123535, -0.1306648701429367, 0.27149373292922974, -0.0756644457578659, 0.471257746219635, 0.1697818487882614, 0.1771639585494995, 0.23277412354946136, -0.024658162146806717, 0.016905635595321655, 0.1448821723461151, 0.12095251679420471, -0.10837917029857635, 0.2617483139038086, -0.09403692930936813, 0.12049931287765503, -0.11884409934282303, -0.00047131627798080444, -0.15742230415344238, 0.2233084738254547, -0.5423046350479126, 0.12403780966997147, -0.03663356602191925, -0.4127914607524872, -0.24018004536628723, -0.16891303658485413, -0.13826483488082886, -0.32963356375694275, 0.11761724948883057, -0.0958486795425415, -0.27100762724876404, 0.01808031275868416, -0.1936207413673401, 0.4550061523914337, -0.048109762370586395, 0.2586963176727295, -0.35277047753334045, -0.06856058537960052, -0.14186429977416992, 0.10661016404628754, -0.039363838732242584, 0.021319564431905746, 0.4100857675075531, -0.24878081679344177, 0.0035212263464927673, -0.247024267911911, -0.15309378504753113, -0.00821823999285698, -0.20191432535648346, 0.3043670952320099, 0.13489525020122528, 0.10841985046863556, -0.010772336274385452, -0.3608497381210327, -0.05988244712352753, -0.008721748366951942, 0.11006620526313782, -0.29325833916664124, 0.22862809896469116, 0.12916624546051025, -0.06169714778661728, -0.39787760376930237, -0.5690861940383911, -0.322109580039978, 0.10989175736904144, 0.007658421993255615, 0.10015806555747986, 0.46805909276008606, -0.16993831098079681, 0.3095337152481079, -0.09429468959569931, 0.12623709440231323, -0.16510455310344696, -0.4747140109539032, 0.15601348876953125, -0.025529656559228897, 0.1162349134683609, 0.03244014456868172, -0.1382734477519989, -0.44000697135925293, -0.13484205305576324, -0.7434006929397583, -0.23876745998859406, -0.27926871180534363, -0.13251493871212006, 0.20626313984394073, -0.07120560109615326, 0.13499389588832855, 0.08703087270259857, -0.07321885973215103, -0.047964464873075485, -0.336858868598938, -0.1313122808933258, -0.38316088914871216, 0.24269503355026245, -0.09944421797990799, 0.26211994886398315, 0.04808570072054863, 0.3600425124168396, 0.4605894982814789, 0.05426376312971115, -0.04813985526561737, 0.17784477770328522, 0.5999926924705505, -0.2004244029521942, -0.11130143702030182, -0.08966010063886642, -0.1364823579788208, -0.4662456512451172, -0.10624881088733673, 0.08070667088031769, -0.012458564713597298, -0.028339484706521034, 0.12997271120548248, -0.06985308229923248, -0.33577680587768555, -0.03139253705739975, -0.2067948579788208, -0.14477288722991943, -0.055175453424453735, -0.0355360247194767, -0.13437937200069427, -0.00896812416613102, -0.12414079904556274, 0.7789255976676941, 0.20150429010391235, 0.054949354380369186, -0.30401140451431274, -0.04291573166847229, -0.17375150322914124, 0.16340051591396332, -0.0006759592797607183, 0.0751967653632164, -0.16452133655548096, -0.2757920026779175, 0.0834045261144638, 0.015731915831565857, 0.003112979233264923, -0.33209842443466187, 0.04334794729948044, 0.3924494683742523, 0.09073595702648163, -0.12069293856620789, -0.3437447249889374, -0.21815554797649384, 0.07790383696556091, 0.25264644622802734, 0.18880699574947357, -0.15792080760002136, -0.09399989247322083, 0.2881941795349121, -0.011491375043988228, -0.07156044244766235, -0.19846592843532562, -0.38878172636032104, -0.02651788480579853, -0.1856371909379959, 0.14471052587032318, 0.294018030166626, -0.40871545672416687, -0.22552098333835602, -0.3035375475883484, -0.017264889553189278, 0.5999029278755188, 0.11622217297554016, -0.06673730164766312, -0.02168061025440693, 0.0021476929541677237, 0.12474147975444794, -0.021011225879192352, 0.3874722421169281, 0.05294766277074814, 0.5298950672149658, -0.08966940641403198, -0.22758379578590393, -0.0645880326628685, -0.22074513137340546, -0.18392890691757202, 0.4605366289615631, -0.11522715538740158, -0.009032033383846283, 0.05264695733785629, 0.28744256496429443, -0.4537532329559326, 0.061349350959062576, 0.41015708446502686, 0.13783375918865204, -0.41853293776512146, -0.31194353103637695, 0.4447333514690399, 0.17213720083236694, -0.26200124621391296, 0.3492377698421478, -0.08566124737262726, -0.23119494318962097, -0.011445953510701656, -0.03927192836999893, 0.8728241920471191, -0.048531778156757355, 0.31262239813804626, 0.20726749300956726, -0.026264499872922897, 0.6099153757095337, -0.05594823509454727, 0.029064008966088295, -0.2163337618112564, -0.10898422449827194, 0.012132098898291588, -0.11268565058708191, 0.2527911961078644, 0.06014663353562355, -0.3231624662876129, 0.022976351901888847, -0.45245248079299927, 0.16355828940868378, -0.09229819476604462, 0.1514425128698349, -0.3717261850833893, 0.016182105988264084, -0.6724892258644104, 0.1898990422487259, 0.11029060184955597, 0.39153292775154114, -0.17348837852478027, 0.09185725450515747, 0.005200713872909546, -0.29955315589904785, -0.41462504863739014, -0.12292775511741638, 0.2862253487110138, -0.006748713552951813, -0.11839060485363007, -0.20725716650485992, -0.07529562711715698, 0.005368698388338089, 0.2985362708568573, 0.020614203065633774, -0.023869385942816734, -0.10515229403972626, -0.13713565468788147, 0.19721204042434692, -0.12952271103858948, -0.07370968163013458, 0.6053617596626282, 0.04009716957807541, -0.11432409286499023, 0.41219088435173035, -0.4100790321826935, -0.30101293325424194, -0.10335271060466766, 0.030247990041971207, -0.049308404326438904, -0.3492603898048401, 0.22715261578559875, 0.1564958691596985, 0.07596582174301147, 0.009171940386295319, 0.19085954129695892, 0.13188184797763824, 0.09210438281297684, 0.4181619882583618, -0.2221405953168869, -0.5050516128540039, -0.27564817667007446, 0.03267248719930649, 0.08685101568698883, -0.00797693245112896, 0.3928908407688141, -0.16411922872066498, -0.3204774856567383, -0.21736738085746765, 0.20614033937454224, 0.1566864550113678, 0.002440251410007477, 0.06561149656772614, 0.14819946885108948, 0.03644411265850067, 0.12750555574893951, -0.1741301715373993, 0.38880205154418945, 0.1518547087907791, -0.20315474271774292, -0.3013102412223816, -0.30673137307167053, 0.22741268575191498, 0.008955627679824829, 0.29080843925476074, -0.19476386904716492, 0.05992703139781952, 0.32069623470306396, -0.059670589864254, -0.34146589040756226, -0.12160579115152359, -0.3041909337043762, -0.0077081285417079926, 0.1274169236421585, 0.09081541001796722, 0.16936619579792023, 0.013163214549422264, 0.019710661843419075, -0.1748981773853302, -0.13680711388587952, -0.18042609095573425, 0.022231753915548325, 0.15423908829689026, 0.09364233911037445, -0.30684906244277954, 0.1512511968612671, -0.3031320571899414, 0.15491883456707, 0.055308014154434204, 0.4636063873767853, 0.511948823928833, 0.1385824978351593, 0.22005268931388855, -0.27659064531326294, 0.4089379906654358, -0.17442598938941956, -0.057475388050079346, -0.13191325962543488, -0.04560267925262451, -0.16128060221672058, -0.03686785697937012, -0.047302111983299255, 0.10230574011802673, 0.2864127457141876, 0.18166013062000275, -0.20897690951824188, 0.16897499561309814, 0.17666339874267578, -0.0781625509262085, 0.07642385363578796, 0.22193308174610138, 0.054841890931129456, 0.41848719120025635, -0.20874011516571045, -0.22246146202087402, 0.11656194925308228, 0.20897117257118225, 0.030426178127527237, 0.07793267071247101, -0.20634277164936066, 0.13028155267238617, -0.025836359709501266, 0.30596497654914856, -0.06631491333246231, -0.1592681109905243, 0.4460970163345337, 0.01728486269712448, 0.4433949887752533, -0.10525473952293396, 0.22745230793952942, 0.17235426604747772, -0.2354428470134735, -0.014197435230016708, 0.28166672587394714, 0.21700425446033478, 0.2301986813545227, 0.20000919699668884, 0.08706315606832504, 0.05198821425437927, 0.15638162195682526, 0.01917456090450287, -0.09915881603956223, -0.3084613084793091, 0.1200849860906601, 0.39058464765548706, -0.5209589004516602, -0.07826102524995804, 0.13623355329036713, 0.2023102343082428, -0.1566517949104309, 0.10876860469579697, -0.289124071598053, -0.2528066337108612, -0.13303238153457642, 0.185979962348938, 0.31989043951034546, -0.14171554148197174, 0.14120058715343475, -0.2088659554719925, -0.1612437218427658, -0.029429711401462555, 0.15014182031154633, -0.21324990689754486, -0.2178841084241867, -0.19424444437026978, 0.3710955083370209, -0.06803955137729645, 0.15948691964149475, -0.09338376671075821, 0.025879748165607452, 0.24447833001613617, 0.05536019802093506, 0.17049525678157806, 0.5380314588546753, 0.6774912476539612, 0.5826489925384521, -0.03004593402147293, 0.31116539239883423, -0.11264112591743469, 0.19150018692016602, -0.02643371745944023, 0.546611487865448, -0.0948762446641922, -0.3881838321685791, 0.22436492145061493, 0.16240842640399933, -0.14435240626335144, 0.26828354597091675, -0.26451027393341064, 0.09840956330299377, -0.42871347069740295, 0.3382975459098816, -0.1028866320848465, 0.05604580044746399, 0.11938455700874329, 0.05723816156387329, -0.3139338791370392, -0.039077699184417725, 0.5919618010520935, 0.16719426214694977, 0.21958690881729126, -0.057925958186388016, 0.11486279964447021, -0.15915462374687195, 0.2762545049190521, 0.3891003131866455, 0.14944103360176086, -0.006723840720951557, 0.38824886083602905, -0.7259624600410461, 0.2344607710838318, 0.018313055858016014, -0.10419624298810959, -0.015224840492010117, -0.22898797690868378, -0.181318998336792, 0.25395169854164124, 0.06574487686157227, -0.2308681160211563, -0.2027115374803543, -0.1865016520023346, -0.2875790297985077, -0.09722203016281128, 0.28311192989349365, 0.15744119882583618, -0.08873794227838516, -0.32330697774887085, 0.2971107065677643, -0.11529256403446198, 0.07809039205312729, -0.020587842911481857, -0.10529441386461258, 0.23890948295593262, 0.4329368770122528, 0.38283371925354004, 0.2766681909561157, 0.4376526474952698, 0.2675020396709442, -0.23936621844768524, -0.4394819736480713, -0.3020559847354889, 0.0905919075012207, 0.22798606753349304, 0.19830183684825897, 0.12736408412456512, -0.17250663042068481, -0.2328145056962967, -0.21213485300540924, 0.24301545321941376, -0.09467586874961853, 0.03548981994390488, 0.06460398435592651, -0.07134951651096344, -0.00012822449207305908, 0.16197100281715393, -0.02871382236480713, 0.3906818628311157, 0.12259210646152496, 0.0987287163734436, -0.3225356340408325, -0.23351314663887024, 0.2797541618347168, -0.07707953453063965, -0.09020748734474182, -0.2802705764770508, 0.46805325150489807, 0.11755605041980743, -0.25235676765441895, -0.48583441972732544, -0.0782097578048706, 0.41802263259887695, -0.21017032861709595, -0.039319220930337906, -0.08213314414024353, -0.18662366271018982, -0.16044390201568604, -0.11669017374515533, 0.1464289277791977, -0.05844632536172867, 0.06307461857795715, 0.20783108472824097, -0.372441828250885 ]
https://github.com/huggingface/datasets/issues/5444
info messages logged as warnings
I see your point and I'm not closed to switching to INFO, but I think those logs are important to make the library less opaque. I also just checked `transformers` scripts and they default to INFO which is nice. However for colab users the default is still WARNING iirc, and it counts as one of the main env where `datasets` is used. We also use progress bars a lot in `datasets`, that are shown if the logger is at the WARNING level. But we offer a function to disable the progress bars if necessary.
### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2
94
info messages logged as warnings ### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2 I see your point and I'm not closed to switching to INFO, but I think those logs are important to make the library less opaque. I also just checked `transformers` scripts and they default to INFO which is nice. However for colab users the default is still WARNING iirc, and it counts as one of the main env where `datasets` is used. We also use progress bars a lot in `datasets`, that are shown if the logger is at the WARNING level. But we offer a function to disable the progress bars if necessary.
[ -0.07937045395374298, 0.07965441048145294, 0.029848266392946243, 0.05610685423016548, 0.19800172746181488, 0.17779475450515747, 0.4890155792236328, 0.2522006630897522, 0.006849374622106552, 0.16207557916641235, 0.0032052656169980764, 0.36870697140693665, -0.2772739827632904, 0.08174155652523041, -0.16488707065582275, 0.1372888833284378, -0.08686036616563797, 0.12550027668476105, -0.14737260341644287, 0.06539423763751984, -0.31530752778053284, 0.03211615979671478, -0.038500137627124786, 0.3594769835472107, -0.6131834387779236, -0.15051935613155365, 0.03643114119768143, 0.1316419243812561, 0.1907752901315689, -0.6536686420440674, 0.34336498379707336, -0.1253560483455658, 0.37124043703079224, 0.028266966342926025, -0.0001119979060604237, -0.13086393475532532, 0.6860196590423584, 0.1909317672252655, -0.6475627422332764, -0.10312046110630035, -0.1889154016971588, -0.6859383583068848, 0.5738195180892944, -0.4717414677143097, 0.08726037293672562, -0.21473801136016846, 0.4550720453262329, -0.11100541800260544, 0.17453806102275848, 0.20380142331123352, 0.18224187195301056, 0.18707136809825897, -0.15136916935443878, 0.12355193495750427, 0.44480910897254944, 0.23345811665058136, -0.05742268264293671, 0.10572151839733124, 0.3828383684158325, 0.0012664049863815308, -0.23415473103523254, 0.4091673195362091, -0.3511386513710022, -0.1358281970024109, 0.2877340018749237, 0.1257544457912445, 0.16212818026542664, -0.33530086278915405, 0.12468983232975006, 0.12714411318302155, 0.5059726238250732, -0.19669410586357117, -0.14221423864364624, -0.6096038818359375, 0.04678703844547272, -0.1373218446969986, 0.08793267607688904, 0.16285857558250427, -0.08951137959957123, 0.21387217938899994, -0.0016506882384419441, 0.007270332425832748, 0.072984978556633, 0.04149521142244339, -0.19480882585048676, 0.5893101692199707, -0.20547887682914734, 0.24107757210731506, -0.04199204966425896, -0.009760566055774689, 0.3885805010795593, -0.17873547971248627, -0.044459182769060135, -0.18683674931526184, -0.06575942039489746, -0.15342852473258972, 0.14402884244918823, 0.28342851996421814, -0.2785120904445648, -0.08992735296487808, -0.459884911775589, 0.19279077649116516, -0.2599447965621948, -0.0774930939078331, 0.4783302843570709, -0.1292504072189331, 0.2150261402130127, 0.3406906723976135, 0.49199599027633667, -0.01771008037030697, 0.29205822944641113, -0.056001268327236176, 0.06542407721281052, 0.002735021524131298, 0.5224839448928833, 0.23521634936332703, 0.2305631786584854, -0.15838265419006348, -0.22585201263427734, -0.0468398854136467, -0.03367144986987114, -0.06296011060476303, 0.10781078785657883, 0.23527267575263977, -0.08113384991884232, -0.01725352555513382, 0.1692231148481369, -0.11776679754257202, 0.08984227478504181, 0.23472730815410614, 0.03125947341322899, -0.1531759649515152, -0.3973405063152313, 0.12172557413578033, -0.03859613090753555, -0.08970731496810913, 0.20888832211494446, 0.018965400755405426, 0.1336236149072647, 0.29607072472572327, 0.026489650830626488, -0.0799432098865509, 0.10142838209867477, 0.5408362746238708, -0.37631508708000183, 0.5013824105262756, 0.17146778106689453, -0.2892765998840332, -0.3187609612941742, 0.3347873389720917, -0.13471847772598267, -0.5221402645111084, -0.09120099991559982, 0.08179934322834015, -0.2535431385040283, 0.043654631823301315, -0.25063902139663696, 0.21506305038928986, 0.05417807400226593, -0.19207710027694702, 0.299220472574234, -0.27084290981292725, -0.19197799265384674, -0.1092798039317131, -0.17764152586460114, 0.6804075837135315, -0.14207381010055542, -0.11293479800224304, -0.3311120867729187, -0.1666945517063141, 0.1549791544675827, 0.019421253353357315, -0.341729074716568, 0.008565500378608704, -0.15984345972537994, -0.37482017278671265, 0.31664422154426575, -0.3479766547679901, -0.07437428832054138, 0.3438914120197296, 0.0943552702665329, 0.3959673047065735, 0.21313318610191345, 0.17846183478832245, -0.10964637994766235, -0.34625694155693054, 0.08584753423929214, -0.19148574769496918, 0.22794735431671143, 0.13083994388580322, -0.25251778960227966, -0.33005058765411377, 0.2782967686653137, 0.06968598067760468, 0.10752968490123749, 0.1162659153342247, -0.06645482033491135, 0.1347203552722931, 0.36213451623916626, -0.03886910900473595, -0.09232091903686523, -0.30798542499542236, 0.22050540149211884, -0.062333956360816956, -0.07298710942268372, -0.09965366125106812, -0.2633044719696045, 0.06043769419193268, 0.03537994623184204, 0.011351782828569412, -0.15469668805599213, -0.3537672162055969, 0.06902287155389786, -0.16921266913414001, -0.013651426881551743, -0.1399679183959961, 0.0214962400496006, -0.07511807978153229, -0.26236477494239807, 0.1179686039686203, -0.3102119266986847, 0.47081369161605835, -0.4965400993824005, 0.1328744739294052, -0.11914409697055817, 0.09323159605264664, 0.04927709698677063, 0.004829447716474533, 0.011049553751945496, -0.014535538852214813, -0.08940242975950241, 0.16632184386253357, -0.06136634200811386, 0.2209056317806244, 0.042144373059272766, 0.22375395894050598, -0.21547889709472656, 0.2169981300830841, 0.3763214647769928, 0.05206676200032234, 0.18867135047912598, 0.1546916514635086, 0.028834950178861618, 0.14187249541282654, -0.15907233953475952, 0.0939645990729332, -0.004739332944154739, 0.02229028195142746, -0.010826315730810165, 0.024612048640847206, 0.10169056057929993, -0.012454412877559662, -0.4242624342441559, -0.29358893632888794, -0.24218706786632538, 0.10054826736450195, 0.06171116605401039, 0.22874006628990173, -0.3711988031864166, 0.19256074726581573, 0.7712602019309998, 0.004195444285869598, 0.033197853714227676, 0.29726970195770264, -0.08365900069475174, -0.21125257015228271, 0.4277387261390686, 0.07970276474952698, 0.5032017230987549, 0.24462823569774628, 0.014914534986019135, 0.14318151772022247, -0.20336684584617615, -0.14262636005878448, 0.22874605655670166, 0.18272563815116882, 0.1613021194934845, -0.1903703510761261, -0.1564430594444275, 0.19451121985912323, -0.05220097303390503, -0.21126830577850342, -0.37943828105926514, 0.11459090560674667, -0.40753424167633057, 0.17708083987236023, -0.3637598156929016, -0.7774451375007629, -0.27424880862236023, -0.08587510138750076, 0.04678800702095032, -0.5520373582839966, 0.1659899801015854, 0.028423553332686424, -0.26418304443359375, 0.053623080253601074, 0.04360547289252281, 0.2062138020992279, -0.23298101127147675, 0.2670038938522339, -0.5860725045204163, -0.23834934830665588, -0.30039548873901367, 0.10345368087291718, 0.11264630407094955, 0.17178033292293549, 0.12817654013633728, -0.3550834655761719, 0.0719190314412117, -0.24678120017051697, -0.3071034252643585, -0.02549603581428528, -0.07505755126476288, 0.2615058422088623, 0.12423954904079437, 0.02966124564409256, -0.029396934434771538, -0.3198407292366028, -0.04924796149134636, -0.052419546991586685, 0.18790918588638306, -0.2058616429567337, -0.05001808702945709, 0.0466020293533802, -0.05948404222726822, -0.25222498178482056, -0.6200083494186401, -0.38609036803245544, -0.0702812671661377, -0.020955629646778107, 0.1962035894393921, 0.47698134183883667, -0.056469421833753586, 0.18387940526008606, -0.025185516104102135, 0.20279087126255035, 0.028978170827031136, -0.4085133671760559, 0.20054687559604645, 0.15619052946567535, 0.10992227494716644, -0.06990154832601547, -0.11485053598880768, -0.3594590723514557, -0.20032715797424316, -0.6713366508483887, -0.28479480743408203, -0.36667928099632263, -0.1081729531288147, 0.49108847975730896, 0.1270243227481842, -0.008757196366786957, 0.29389652609825134, -0.012629076838493347, 0.18681949377059937, -0.3834075927734375, -0.2925645112991333, -0.08069823682308197, 0.392172634601593, -0.12870001792907715, 0.1297835409641266, -0.07973292469978333, 0.3143764138221741, 0.23172619938850403, -0.15436296164989471, -0.21292564272880554, 0.13280291855335236, 0.6610857248306274, -0.33427125215530396, -0.30673402547836304, 0.042749613523483276, -0.0742100179195404, -0.33698850870132446, 0.14144228398799896, -0.10014854371547699, -0.22639861702919006, -0.09104052931070328, 0.003177609294652939, -0.09618379175662994, -0.5599197745323181, 0.07451366633176804, -0.004887096583843231, -0.21653702855110168, 0.0716046541929245, 0.2311190664768219, 0.029482509940862656, -0.11767368763685226, -0.08562792837619781, 0.8657179474830627, 0.19733169674873352, -0.01656416431069374, -0.12357655167579651, -0.30340275168418884, -0.31751927733421326, 0.16248321533203125, -0.007076665759086609, -0.15849217772483826, -0.03573296219110489, -0.36306917667388916, 0.09310402721166611, 0.17721378803253174, -0.13285104930400848, -0.2667634189128876, -0.25126487016677856, 0.20916083455085754, 0.033243849873542786, -0.1577342003583908, -0.21189822256565094, -0.22740092873573303, 0.12138129025697708, 0.324758917093277, 0.32586607336997986, -0.12048490345478058, -0.2974798083305359, 0.34451451897621155, 0.06929204612970352, -0.11695210635662079, -0.13582977652549744, -0.46293285489082336, -0.053685497492551804, -0.24805255234241486, 0.08451858907938004, -0.13160747289657593, -0.3248957693576813, -0.49868345260620117, -0.3388633131980896, 0.11538919061422348, 0.23414909839630127, 0.15911534428596497, 0.16724061965942383, -0.12111105769872665, 0.18740347027778625, 0.003960609436035156, 0.039363522082567215, 0.488997220993042, 0.4219237267971039, 0.31623485684394836, -0.04744793847203255, -0.22652167081832886, -0.0055082254111766815, -0.048534099012613297, 0.1523381918668747, 0.40840715169906616, -0.11113845556974411, -0.033233121037483215, 0.00032440200448036194, 0.2671270966529846, -0.3102877140045166, 0.014587720856070518, 0.2233590930700302, 0.2453935146331787, -0.5215487480163574, -0.3645918667316437, 0.37318816781044006, 0.10328713059425354, -0.21026480197906494, 0.17114697396755219, -0.09929098188877106, -0.1258893460035324, 0.05240041762590408, 0.06297679245471954, 0.9163501858711243, -0.2548460364341736, 0.23305942118167877, 0.16658258438110352, -0.01930687576532364, 0.8148786425590515, 0.20104117691516876, 0.13099068403244019, -0.3633114695549011, -0.2688845992088318, 0.047146961092948914, -0.04185914620757103, 0.2922852635383606, -0.05839470028877258, -0.3948194086551666, 0.15320032835006714, -0.14737339317798615, 0.11847589910030365, -0.21875305473804474, 0.29710453748703003, -0.3914322853088379, -0.11108013987541199, -0.6756994128227234, 0.07873609662055969, 0.04156992584466934, 0.2509262263774872, -0.0713110864162445, 0.07803117483854294, 0.14458326995372772, -0.05865171551704407, -0.23568689823150635, -0.07087743282318115, 0.4622790813446045, 0.04156886041164398, 0.007554098963737488, -0.27418774366378784, 0.22264307737350464, 0.15351036190986633, 0.2869650721549988, 0.29238519072532654, -0.03160233795642853, -0.2102375477552414, -0.23201808333396912, 0.3805157542228699, -0.07522616535425186, 0.03451232239603996, 0.6320733428001404, 0.10348593443632126, -0.20120090246200562, 0.4475660026073456, -0.04993327707052231, -0.31411248445510864, -0.022970527410507202, 0.0865832045674324, -0.039755724370479584, -0.3057767152786255, 0.24216358363628387, 0.3401016294956207, -0.13190872967243195, -0.017505289986729622, 0.12396059930324554, -0.004259862005710602, 0.27722471952438354, 0.6516572833061218, -0.05162042751908302, -0.5322747826576233, -0.2983069121837616, -0.2155972123146057, 0.14709492027759552, 0.10968595743179321, 0.19726257026195526, -0.1850048154592514, -0.30966877937316895, -0.11149454116821289, 0.25910714268684387, -0.04245724901556969, 0.05334538221359253, 0.14301827549934387, 0.3775821030139923, 0.13790036737918854, 0.04273795336484909, -0.03833678737282753, 0.08974465727806091, -0.0008486732840538025, -0.5095398426055908, -0.12823988497257233, -0.45445865392684937, 0.4158705472946167, 0.01658962480723858, 0.30144691467285156, -0.108804851770401, -0.0060449037700891495, 0.13065993785858154, -0.23831766843795776, -0.285625159740448, -0.21448856592178345, -0.19553408026695251, 0.16342724859714508, -0.0010358598083257675, 0.12472865730524063, 0.13484333455562592, 0.12762512266635895, -0.01858488656580448, -0.16766676306724548, 0.03121568262577057, -0.12676489353179932, 0.04283338412642479, 0.1508631706237793, -0.006863748654723167, -0.31682851910591125, -0.03563883900642395, -0.3815745711326599, 0.2095857858657837, -0.1632627248764038, 0.47295719385147095, 0.45929092168807983, 0.06692004203796387, 0.36910706758499146, -0.21290446817874908, 0.136002779006958, -0.054265134036540985, 0.1717366725206375, -0.051675498485565186, 0.10091286897659302, -0.041860006749629974, 0.2500157356262207, -0.08620015531778336, 0.02408454567193985, 0.37970873713493347, 0.1939031481742859, -0.15263956785202026, 0.2769138514995575, 0.16346004605293274, 0.2001456767320633, 0.13858112692832947, 0.0027615861035883427, -0.017419612035155296, 0.42978519201278687, 0.1122458204627037, -0.328797847032547, 0.1637653112411499, 0.11581958085298538, -0.02599702775478363, 0.13029351830482483, -0.2086854726076126, 0.0706418827176094, 0.05006534978747368, 0.31070584058761597, -0.052479494363069534, -0.013273283839225769, 0.5794280171394348, -0.17470094561576843, 0.2788282036781311, 0.016861438751220703, 0.24842378497123718, 0.22684526443481445, -0.2492399960756302, 0.026170529425144196, 0.3853328227996826, 0.08650369942188263, 0.24369052052497864, 0.11149142682552338, 0.10414454340934753, 0.2732512354850769, 0.09485267847776413, 0.07198216021060944, -0.00936928391456604, -0.07036076486110687, 0.012571841478347778, 0.2672150135040283, -0.5369093418121338, -0.276559978723526, 0.22421444952487946, 0.13715972006320953, -0.21006441116333008, 0.2954561412334442, -0.1362873762845993, -0.1802896112203598, -0.10493434220552444, -0.012016553431749344, 0.2121896743774414, -0.013844877481460571, 0.09021435678005219, 0.01940576359629631, -0.18041633069515228, -0.09183114767074585, 0.035362549126148224, -0.13068106770515442, -0.07062570750713348, -0.0458478182554245, 0.35422587394714355, -0.04121309518814087, 0.3273778259754181, 0.1085740476846695, -0.06340059638023376, -0.0592590868473053, 0.22783662378787994, 0.21845810115337372, 0.4463087022304535, 0.526580274105072, 0.41983991861343384, 0.139144629240036, 0.03560177609324455, 0.0392678827047348, 0.016443831846117973, -0.06690390408039093, 0.3424171507358551, -0.0033951997756958008, -0.08833999931812286, 0.17503151297569275, 0.1437138170003891, -0.12904466688632965, 0.27076050639152527, -0.4012337028980255, 0.0050699785351753235, -0.31438693404197693, 0.3729549050331116, 0.23811142146587372, -0.10488475859165192, 0.27763843536376953, 0.04119839519262314, -0.24347320199012756, 0.018960844725370407, 0.6481031775474548, -0.04934711009263992, 0.10383410006761551, -0.15368139743804932, 0.0821290910243988, 0.0763573944568634, 0.16940152645111084, 0.34727802872657776, 0.31232360005378723, 0.055982500314712524, 0.2502754330635071, -0.4489303529262543, 0.14171157777309418, 0.21595032513141632, 0.07291987538337708, -0.11041057109832764, -0.3416138291358948, -0.10207764059305191, 0.4007567763328552, 0.25586676597595215, -0.2950326204299927, -0.03884255886077881, -0.3699975311756134, 0.02976727858185768, -0.06337679922580719, 0.1962340623140335, -0.05922022461891174, -0.25466132164001465, -0.19348442554473877, 0.16696546971797943, -0.26104387640953064, 0.016552701592445374, -0.19673599302768707, 0.003282316029071808, 0.2428891956806183, 0.30952274799346924, 0.3930605947971344, 0.22825919091701508, 0.3217291235923767, 0.17660200595855713, -0.1538981944322586, -0.0645657628774643, -0.36737769842147827, 0.08997688442468643, 0.14394977688789368, 0.08673064410686493, 0.21102683246135712, -0.03346489369869232, 0.01976751536130905, -0.19947366416454315, 0.19743464887142181, 0.10812996327877045, 0.04488962143659592, 0.11226207762956619, -0.26553890109062195, -0.10272899270057678, -0.1927318572998047, -0.10295747220516205, 0.39514559507369995, 0.227699413895607, 0.00034121982753276825, -0.16631710529327393, -0.16406553983688354, 0.2833680808544159, -0.11748246848583221, -0.07091112434864044, -0.32391828298568726, 0.17278356850147247, -0.0035816431045532227, 0.034266453236341476, -0.5278328061103821, -0.22873377799987793, 0.2596305012702942, -0.2819725275039673, -0.08846642076969147, -0.04989607259631157, -0.08664922416210175, 0.017440181225538254, -0.2809716463088989, 0.1857951581478119, -0.07719855010509491, 0.06423468142747879, -0.14330320060253143, -0.38433611392974854 ]
https://github.com/huggingface/datasets/issues/5444
info messages logged as warnings
These kinds of messages are logged as INFO in Transformers, so we should probably be consistent with them
### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2
18
info messages logged as warnings ### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * INFO: Confirmation that things are working as expected. * WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. β€˜disk space low’). The software is still working as expected. In theory, a user should be able to resolve things such that there are no warnings. ### Steps to reproduce the bug Load any dataset that's already cached. ### Expected behavior No output when log level is at the default WARNING level. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 9.0.0 - Pandas version: 1.5.2 These kinds of messages are logged as INFO in Transformers, so we should probably be consistent with them
[ 0.06931596994400024, -0.15233156085014343, -0.06864544749259949, 0.2598941922187805, 0.29669278860092163, 0.17542406916618347, 0.36649343371391296, 0.2837667465209961, 0.07602934539318085, -0.08946344256401062, 0.04998654127120972, 0.308676540851593, -0.3139187693595886, -0.00015372037887573242, -0.06331944465637207, -0.013653367757797241, -0.0266757532954216, -0.0019885897636413574, -0.06948146224021912, -0.10135793685913086, -0.26651185750961304, -0.02241113968193531, -0.030825365334749222, 0.4690430760383606, -0.5988993644714355, -0.2503308951854706, 0.052704744040966034, 0.1973344385623932, 0.022205710411071777, -0.6375088691711426, 0.22814197838306427, -0.341695636510849, 0.2330549955368042, 0.13117513060569763, -0.00009882690210361034, -0.05752177536487579, 0.5967219471931458, 0.07705039530992508, -0.4084644019603729, 0.026318468153476715, -0.06423326581716537, -0.7593969106674194, 0.23335665464401245, -0.3469160795211792, 0.09667617827653885, -0.5404223203659058, 0.23171675205230713, 0.03170860558748245, 0.33416175842285156, 0.29855749011039734, 0.31056565046310425, 0.26411429047584534, 0.008282970637083054, 0.0981612503528595, 0.3885178565979004, 0.21916593611240387, 0.07546257227659225, -0.02264399453997612, 0.1609114408493042, -0.10869351774454117, -0.28911858797073364, 0.3329058289527893, -0.27071329951286316, 0.12238842248916626, 0.2044702172279358, 0.12516923248767853, 0.22603446245193481, -0.3790959417819977, 0.029800381511449814, 0.1139034628868103, 0.5182214379310608, -0.20533901453018188, -0.27296242117881775, -0.5514765977859497, -0.07971971482038498, -0.062038205564022064, 0.2552677094936371, 0.25851449370384216, -0.25403937697410583, 0.11242562532424927, 0.04445113241672516, 0.23381423950195312, -0.004036135971546173, 0.08923289179801941, -0.24453221261501312, 0.5508244037628174, -0.2346486896276474, 0.10166063159704208, -0.3521284759044647, -0.2362954467535019, 0.14691446721553802, -0.20707839727401733, -0.0581916905939579, 0.09177591651678085, -0.12271584570407867, -0.1368742734193802, 0.1969752311706543, 0.011813059449195862, 0.054359160363674164, -0.14090251922607422, -0.31563040614128113, 0.016246188431978226, -0.12664154171943665, 0.08122490346431732, 0.4870826005935669, -0.06364471465349197, 0.06265635788440704, 0.3742653429508209, 0.24914567172527313, -0.05353998392820358, 0.11592660844326019, -0.020290259271860123, 0.038822293281555176, -0.04136854410171509, 0.6363744735717773, 0.0147430170327425, 0.2424236685037613, -0.06405670195817947, -0.42289119958877563, 0.30490148067474365, -0.13831773400306702, -0.07000215351581573, 0.005111468955874443, 0.2949150800704956, -0.15070874989032745, -0.043582119047641754, 0.11499293148517609, -0.056071020662784576, 0.14785288274288177, 0.1040790006518364, -0.11475539952516556, -0.056480202823877335, -0.29807594418525696, -0.0581330731511116, -0.02713233232498169, 0.05367140844464302, 0.30750712752342224, 0.20970357954502106, -0.009543366730213165, 0.015034366399049759, 0.02048184908926487, -0.0985146313905716, 0.23987606167793274, 0.5659583806991577, -0.3023748993873596, 0.28905126452445984, 0.16843120753765106, -0.13989418745040894, -0.2949368953704834, 0.22621822357177734, -0.0384155735373497, -0.37507396936416626, -0.12087756395339966, 0.278048574924469, -0.2661040723323822, -0.005496952682733536, 0.05328941345214844, 0.24083378911018372, 0.14642398059368134, 0.02237829938530922, 0.37161731719970703, -0.10150766372680664, 0.025246527045965195, -0.17133991420269012, 0.10307116061449051, 0.500077486038208, -0.15370270609855652, -0.16366150975227356, -0.18639883399009705, -0.29850319027900696, 0.10446017980575562, 0.14881087839603424, -0.12103217840194702, 0.22378534078598022, -0.295254647731781, -0.17180678248405457, 0.22328755259513855, -0.2083352506160736, -0.06830278784036636, 0.3977363407611847, 0.024854734539985657, 0.3404362201690674, 0.09278912842273712, 0.10535386949777603, -0.16202861070632935, -0.1004616841673851, 0.25940537452697754, 0.005281208083033562, 0.09951401501893997, 0.07268503308296204, -0.3192180395126343, -0.18375253677368164, 0.15603294968605042, 0.08674800395965576, 0.18264369666576385, -0.05931171029806137, -0.02468598634004593, 0.0746689885854721, 0.36067232489585876, 0.13125324249267578, -0.13059666752815247, -0.03463101387023926, 0.09172000735998154, 0.09822939336299896, -0.08773109316825867, -0.11734472215175629, -0.3713802993297577, 0.08749484270811081, -0.11790072917938232, -0.10404480993747711, -0.02545805275440216, -0.21868112683296204, -0.19382768869400024, -0.024362415075302124, -0.11663705110549927, -0.23971933126449585, 0.25268951058387756, -0.1151752769947052, -0.08688188344240189, 0.13134682178497314, -0.2761135399341583, 0.5137165784835815, -0.3646714985370636, 0.13757206499576569, -0.05247758701443672, 0.06558508425951004, -0.08401553332805634, -0.08608589321374893, 0.0903167873620987, -0.09473101049661636, 0.0738440454006195, 0.2649620771408081, 0.02209552191197872, 0.21420833468437195, -0.03607058897614479, 0.2385365068912506, -0.2502092123031616, 0.1247001588344574, 0.28858256340026855, 0.007350016385316849, 0.23193153738975525, 0.250763475894928, 0.10289454460144043, 0.10058949142694473, -0.25042837858200073, 0.13285653293132782, 0.09546927362680435, -0.20737573504447937, -0.02925596944987774, 0.040208905935287476, 0.1968386173248291, 0.09261427819728851, -0.24578677117824554, -0.2893034815788269, -0.05512826517224312, -0.0009169150143861771, 0.053565140813589096, 0.17290088534355164, -0.3259653151035309, -0.024037174880504608, 0.5639170408248901, -0.2178647220134735, 0.2261119782924652, 0.2865399122238159, -0.10000782459974289, -0.167014479637146, 0.2963072955608368, 0.006379034370183945, 0.21726016700267792, 0.2688452899456024, 0.07193140685558319, 0.07831335067749023, -0.18533091247081757, -0.08646158874034882, 0.18704333901405334, 0.22308701276779175, -0.00785751547664404, 0.24488475918769836, -0.13125959038734436, 0.14634282886981964, -0.10225316882133484, -0.008057402446866035, -0.17653800547122955, 0.24708782136440277, -0.4869557023048401, 0.04579637944698334, -0.16308332979679108, -0.49025723338127136, -0.2810130715370178, -0.13308270275592804, -0.20601493120193481, -0.4149104654788971, 0.12061554938554764, -0.18803031742572784, -0.3478212058544159, 0.09235697984695435, -0.11495107412338257, 0.15069323778152466, 0.0236543957144022, 0.34800395369529724, -0.3949755132198334, -0.07832788676023483, -0.19653496146202087, 0.2030155211687088, 0.009143886156380177, 0.26923322677612305, 0.2557696998119354, -0.25769850611686707, 0.03921085223555565, -0.20976769924163818, -0.2647545039653778, 0.09155887365341187, -0.2701178789138794, 0.325327068567276, 0.21435508131980896, 0.0496232770383358, 0.06862492859363556, -0.34170129895210266, 0.11141014844179153, -0.1522926390171051, 0.03853093832731247, -0.13416308164596558, 0.16014240682125092, 0.0525825060904026, -0.08613774180412292, -0.36350277066230774, -0.5805385112762451, -0.4006560742855072, 0.02615000307559967, -0.004902295768260956, 0.14253997802734375, 0.5399195551872253, -0.07746919989585876, 0.2387555092573166, -0.0840558186173439, 0.24190828204154968, -0.12346640974283218, -0.35115548968315125, 0.2099124938249588, 0.041690777987241745, -0.0007343702018260956, -0.11838997900485992, -0.15505072474479675, -0.4275091290473938, -0.278489887714386, -0.5561590194702148, -0.233017697930336, -0.3661912977695465, -0.10817717015743256, 0.455404669046402, 0.07766922563314438, -0.05070976912975311, 0.08057928085327148, -0.1612030267715454, -0.07164523005485535, -0.26010367274284363, -0.17072784900665283, -0.20637241005897522, 0.16902586817741394, -0.18053799867630005, 0.20701506733894348, -0.04753568395972252, 0.2167843133211136, 0.3191626965999603, -0.08108459413051605, -0.15955829620361328, 0.07693923264741898, 0.5384336709976196, -0.15232452750205994, -0.18114161491394043, -0.07398596405982971, -0.08382277190685272, -0.33222103118896484, 0.085098996758461, -0.005627794191241264, -0.060446128249168396, -0.003599405288696289, -0.030146142467856407, -0.1684427559375763, -0.4219900071620941, 0.07199186086654663, -0.09320072829723358, -0.13705766201019287, -0.057605717331171036, 0.12479563802480698, -0.019142599776387215, -0.008531846106052399, -0.0058565810322761536, 0.6396855115890503, 0.1433003693819046, 0.0018673333106562495, -0.24691416323184967, -0.14974305033683777, -0.17713990807533264, 0.007633902132511139, 0.059150613844394684, 0.06401804089546204, -0.13646097481250763, -0.42337772250175476, -0.014438651502132416, 0.04066520929336548, -0.026997223496437073, -0.29906022548675537, 0.014383062720298767, 0.2617400586605072, 0.08277641236782074, -0.2318727821111679, -0.21815699338912964, -0.3347417712211609, 0.033679645508527756, 0.23361574113368988, 0.28297483921051025, -0.20133140683174133, -0.21134443581104279, 0.30107295513153076, -0.03694397583603859, -0.11101694405078888, -0.16441071033477783, -0.3346862196922302, -0.06771843135356903, -0.2564486265182495, 0.159010648727417, 0.2447228580713272, -0.33051618933677673, -0.29960569739341736, -0.25481361150741577, 0.09830652922391891, 0.40291568636894226, 0.21005475521087646, 0.0988529622554779, 0.024879759177565575, -0.10229421406984329, 0.10226133465766907, 0.019761230796575546, 0.4177889823913574, 0.19103145599365234, 0.4450543522834778, -0.043325942009687424, -0.2923755645751953, -0.03653010353446007, -0.1561800241470337, 0.021214477717876434, 0.24476920068264008, -0.04133682698011398, -0.06932006031274796, 0.019507233053445816, 0.21486753225326538, -0.47811293601989746, -0.02360796369612217, 0.37441718578338623, 0.14183489978313446, -0.3915785551071167, -0.2699306309223175, 0.5130844116210938, 0.13648076355457306, -0.2051226645708084, 0.18503084778785706, -0.08496740460395813, -0.17844203114509583, 0.07759925723075867, 0.1579194962978363, 0.7683437466621399, -0.030403539538383484, 0.2184608280658722, 0.31710460782051086, 0.0016117431223392487, 0.5360444784164429, -0.027939604595303535, 0.019806113094091415, -0.29859402775764465, -0.2335064560174942, 0.0655713900923729, 0.02571839466691017, 0.11623288691043854, 0.10689592361450195, -0.4081399440765381, 0.018936200067400932, -0.4016196131706238, 0.23441606760025024, -0.16732072830200195, 0.22071349620819092, -0.3642304837703705, -0.009372111409902573, -0.7488341331481934, 0.2544299364089966, 0.18366187810897827, 0.2962239980697632, -0.15991932153701782, 0.0732034295797348, 0.1842362880706787, -0.20837169885635376, -0.38302183151245117, -0.07853043079376221, 0.49992701411247253, 0.1203279048204422, 0.08390776813030243, -0.20195475220680237, -0.0940980613231659, 0.09314586222171783, 0.22405481338500977, 0.1688826084136963, 0.045497167855501175, -0.05606826767325401, -0.1048167422413826, 0.11047490686178207, -0.20080554485321045, 0.06766913831233978, 0.5688934922218323, 0.10480926185846329, -0.3191526234149933, 0.3310287892818451, -0.16768883168697357, -0.15232858061790466, -0.12217023968696594, -0.0008354932069778442, -0.190885528922081, -0.40633195638656616, 0.2579348683357239, 0.08828273415565491, -0.16775350272655487, -0.01147335022687912, 0.2608531713485718, 0.10940844565629959, 0.006874573417007923, 0.39633262157440186, -0.013246271759271622, -0.4479852318763733, -0.2861526608467102, -0.06783150881528854, 0.03940989077091217, 0.1605982929468155, 0.3164557218551636, -0.04809726029634476, -0.32511746883392334, -0.2885611951351166, 0.21170732378959656, 0.19773225486278534, 0.04235689342021942, 0.13100562989711761, 0.2011188268661499, -0.012998536229133606, 0.07736540585756302, 0.013747978955507278, 0.29713165760040283, 0.012708961963653564, -0.280800461769104, -0.2445104718208313, -0.42433983087539673, 0.4266759157180786, 0.05281796678900719, 0.32514679431915283, -0.18748882412910461, -0.06618975102901459, 0.28215235471725464, -0.030508724972605705, -0.43577811121940613, -0.21354085206985474, -0.3201720416545868, 0.03512363135814667, 0.0811954140663147, -0.015302121639251709, 0.17567850649356842, 0.06932350993156433, 0.13902974128723145, -0.0825653150677681, 0.02985117770731449, -0.2738859951496124, 0.01901429519057274, 0.08700734376907349, 0.05062420293688774, -0.2474386841058731, 0.05737612769007683, -0.27531707286834717, 0.18903522193431854, -0.02922341600060463, 0.40365880727767944, 0.46505165100097656, 0.12441125512123108, 0.4374253451824188, -0.21893058717250824, 0.256807804107666, -0.129905566573143, -0.052064307034015656, -0.020503342151641846, -0.008845657110214233, -0.04540640488266945, 0.0018743164837360382, -0.07844465225934982, 0.08690416812896729, 0.22718963027000427, 0.2807052433490753, -0.14830316603183746, 0.24615895748138428, 0.25055739283561707, 0.13303406536579132, 0.05672994628548622, 0.17916156351566315, 0.11382575333118439, 0.3117096424102783, -0.13166683912277222, -0.2824101150035858, 0.11562677472829819, 0.34521201252937317, -0.19393138587474823, 0.07440883666276932, -0.2694147527217865, 0.03327406942844391, 0.13397638499736786, 0.23000606894493103, -0.09581813216209412, -0.0629066675901413, 0.4136158227920532, 0.13457828760147095, 0.37928441166877747, -0.09003327041864395, 0.1969650834798813, 0.42793452739715576, -0.2077232003211975, 0.03612908348441124, 0.33008164167404175, 0.10912789404392242, 0.2728595733642578, 0.1981806755065918, 0.15870386362075806, 0.14074063301086426, -0.062459394335746765, 0.0668603777885437, 0.020746812224388123, -0.2074352353811264, 0.11369690299034119, 0.3396803140640259, -0.5413066744804382, -0.09217115491628647, 0.07958433777093887, 0.18637627363204956, -0.11865554004907608, 0.224284365773201, -0.3609057366847992, -0.12748180329799652, -0.1567041575908661, 0.0738699734210968, 0.1828988790512085, -0.099476657807827, 0.004091255366802216, -0.15429896116256714, -0.02832595631480217, -0.14694800972938538, 0.12390833348035812, -0.18503470718860626, -0.12141753733158112, -0.10027166455984116, 0.3800916373729706, 0.042159438133239746, 0.1828707456588745, -0.02514658495783806, 0.049491070210933685, 0.22142356634140015, -0.03776596486568451, 0.25810709595680237, 0.4216041564941406, 0.6261031627655029, 0.4148727059364319, -0.053752657026052475, 0.2519398331642151, -0.1041400134563446, 0.006549542769789696, -0.06775248795747757, 0.5381236672401428, -0.1429062932729721, -0.2248067706823349, 0.20027221739292145, 0.2742457389831543, -0.24759377539157867, 0.23219861090183258, -0.2322128862142563, 0.026070306077599525, -0.2229553610086441, 0.41448110342025757, 0.05313519388437271, -0.06518752127885818, 0.06535489857196808, -0.04663386195898056, -0.359688401222229, -0.13076980412006378, 0.5304997563362122, 0.14915750920772552, 0.22925221920013428, -0.05735872685909271, 0.16687047481536865, -0.03323166444897652, 0.34719961881637573, 0.4445114731788635, 0.2204805612564087, 0.03815016523003578, 0.3309133052825928, -0.6165397763252258, 0.13870717585086823, 0.035220615565776825, -0.14947722852230072, -0.006830591708421707, -0.14031358063220978, -0.1082160547375679, 0.15937870740890503, 0.13250230252742767, -0.2494695782661438, -0.21535621583461761, -0.248154878616333, -0.1429809182882309, -0.08204540610313416, 0.10261474549770355, 0.04938417300581932, -0.06922800093889236, -0.24025681614875793, 0.17445108294487, -0.25047439336776733, 0.18461817502975464, -0.10881006717681885, -0.07664497196674347, 0.25260287523269653, 0.2964550852775574, 0.25649672746658325, 0.25591805577278137, 0.37041929364204407, 0.02844811975955963, -0.19243207573890686, -0.28262457251548767, -0.3032190203666687, -0.04185715317726135, 0.21021881699562073, 0.030429482460021973, 0.22485268115997314, -0.019220151007175446, -0.1671045869588852, -0.21030457317829132, 0.14342685043811798, 0.04627016931772232, -0.09618516266345978, -0.004506365396082401, -0.1442425698041916, -0.049969326704740524, -0.1425984799861908, -0.05885651707649231, 0.33091387152671814, 0.151433527469635, 0.016650082543492317, -0.18056228756904602, -0.4085709750652313, 0.32157230377197266, -0.24721252918243408, -0.15396851301193237, -0.4196569323539734, 0.24579846858978271, -0.07546959072351456, 0.02193649671971798, -0.5922389030456543, -0.02559344470500946, 0.374847412109375, -0.22310751676559448, -0.12030281126499176, -0.16794554889202118, 0.0004233904182910919, -0.048337019979953766, -0.16119453310966492, 0.23685583472251892, -0.031879961490631104, -0.0890868529677391, 0.15626884996891022, -0.29778099060058594 ]
https://github.com/huggingface/datasets/issues/5442
OneDrive Integrations with HF Datasets
Hi! We use [`fsspec`](https://github.com/fsspec/filesystem_spec) to integrate with storage providers. You can find more info (and the usage examples) in [our docs](https://huggingface.co/docs/datasets/v2.8.0/filesystems#download-and-prepare-a-dataset-into-a-cloud-storage). [`gdrivefs`](https://github.com/fsspec/gdrivefs) makes it possible to use Google Drive as a storage service in Datasets, but this is not the case for OneDrive, since its[ Python SDK](https://github.com/OneDrive/onedrive-sdk-python) is not integrated with `fsspec`. Can you please request the integration with `fsspec` in their repo to address this limitation?
### Feature request First of all , I would like to thank all community who are developed DataSet storage and make it free available How to integrate our Onedrive account or any other possible storage clouds (like google drive,...) with the **HF** datasets section. For example, if I have **50GB** on my **Onedrive** account and I want to move between drive and Hugging face repo or vis versa ### Motivation make the dataset section more flexible with other possible storage like the integration between Google Collab and Google drive the storage ### Your contribution Can be done using Hugging face CLI
67
OneDrive Integrations with HF Datasets ### Feature request First of all , I would like to thank all community who are developed DataSet storage and make it free available How to integrate our Onedrive account or any other possible storage clouds (like google drive,...) with the **HF** datasets section. For example, if I have **50GB** on my **Onedrive** account and I want to move between drive and Hugging face repo or vis versa ### Motivation make the dataset section more flexible with other possible storage like the integration between Google Collab and Google drive the storage ### Your contribution Can be done using Hugging face CLI Hi! We use [`fsspec`](https://github.com/fsspec/filesystem_spec) to integrate with storage providers. You can find more info (and the usage examples) in [our docs](https://huggingface.co/docs/datasets/v2.8.0/filesystems#download-and-prepare-a-dataset-into-a-cloud-storage). [`gdrivefs`](https://github.com/fsspec/gdrivefs) makes it possible to use Google Drive as a storage service in Datasets, but this is not the case for OneDrive, since its[ Python SDK](https://github.com/OneDrive/onedrive-sdk-python) is not integrated with `fsspec`. Can you please request the integration with `fsspec` in their repo to address this limitation?
[ -0.22796830534934998, 0.09350568056106567, -0.12087270617485046, 0.06623005121946335, 0.09376987814903259, 0.19753435254096985, 0.19331802427768707, -0.12683868408203125, 0.2008173018693924, 0.22741268575191498, -0.2640194296836853, -0.337715744972229, 0.07262565940618515, 0.5971212983131409, 0.06692961603403091, -0.20757156610488892, 0.035965971648693085, -0.04267655313014984, -0.08877374231815338, 0.11977837979793549, -0.03894021362066269, 0.12270459532737732, 0.057754114270210266, -0.10947677493095398, -0.06218523159623146, -0.01640116237103939, -0.39621835947036743, 0.06446703523397446, -0.1421792060136795, -0.17281915247440338, 0.3489629030227661, 0.4139699935913086, 0.16872712969779968, 0.4467006027698517, -0.00011225734488107264, -0.13335922360420227, 0.12009769678115845, 0.06397891044616699, -0.495665043592453, -0.46979641914367676, -0.20876476168632507, -0.18633531033992767, -0.07876631617546082, 0.09315904229879379, 0.10632332414388657, -0.07618044316768646, 0.17142044007778168, -0.34826570749282837, 0.11707093566656113, -0.016757454723119736, 0.17817534506320953, 0.15051572024822235, 0.08663500845432281, -0.1626112461090088, 0.4408242702484131, 0.41875743865966797, -0.007418043911457062, 0.001362742856144905, 0.13203270733356476, -0.19711391627788544, 0.08655989170074463, 0.1957424283027649, 0.06249941885471344, -0.1675257831811905, 0.45203202962875366, -0.013896587304770947, -0.3304993808269501, -0.3965689539909363, -0.16212978959083557, 0.04283186048269272, 0.4910247027873993, -0.32118237018585205, -0.3962257504463196, -0.3707782030105591, 0.007242364808917046, 0.058512330055236816, -0.08035922795534134, 0.09710631519556046, -0.0532328262925148, 0.06399647891521454, -0.2794802188873291, -0.19829334318637848, -0.2452622801065445, 0.23300611972808838, -0.09441638737916946, -0.13478635251522064, 0.021499153226614, -0.11314982920885086, 0.33226388692855835, -0.08741208165884018, -0.1120622530579567, -0.28435829281806946, -0.15297619998455048, -0.015335110016167164, -0.14494317770004272, -0.2005242556333542, 0.003166884183883667, 0.0614648200571537, 0.6411490440368652, 0.2261623591184616, -0.23132875561714172, -0.043353430926799774, -0.3381599485874176, 0.19627875089645386, 0.43829545378685, 0.1420418620109558, 0.0047931969165802, -0.2491459995508194, 0.27355772256851196, -0.07563924044370651, 0.29477059841156006, -0.1816869080066681, 0.14489026367664337, 0.07569945603609085, -0.28615573048591614, -0.3482632339000702, 0.026915334165096283, -0.16267429292201996, -0.3357798755168915, -0.04306117072701454, 0.07380306720733643, -0.01789054647088051, 0.084577776491642, 0.23787134885787964, 0.04816587641835213, -0.04715271294116974, -0.028450224548578262, 0.11522950232028961, 0.021593773737549782, -0.06214327737689018, -0.12934258580207825, 0.20391924679279327, 0.024268154054880142, 0.13990770280361176, 0.09453172981739044, -0.3511708080768585, -0.017329368740320206, -0.029765136539936066, 0.5516183972358704, 0.2106626331806183, 0.0027939919382333755, -0.3036554753780365, -0.08715339750051498, 0.18205031752586365, 0.07193264365196228, -0.05283540487289429, -0.05264246091246605, 0.22512365877628326, -0.2613410949707031, -0.02806790918111801, -0.35292237997055054, -0.2902596592903137, -0.36071810126304626, 0.1619289666414261, -0.030594034120440483, -0.12722060084342957, -0.6276257038116455, 0.20737172663211823, -0.5304586291313171, -0.08999259024858475, -0.14711904525756836, 0.1797291785478592, -0.1687793731689453, -0.12093295902013779, 0.09848751872777939, 0.17054066061973572, -0.03796958178281784, -0.1638745665550232, -0.1677810549736023, -0.04892408475279808, -0.12245441228151321, 0.2805214524269104, -0.1376306414604187, 0.04823870211839676, -0.5135563611984253, 0.18414314091205597, 0.13431978225708008, -0.6488685607910156, -0.2636534869670868, 0.33861225843429565, 0.06352309882640839, -0.01393813919275999, -0.21609792113304138, 0.05789611116051674, 0.19140870869159698, 0.07745799422264099, -0.10120920836925507, 0.44796913862228394, -0.21858622133731842, -0.08662575483322144, -0.0611698217689991, -0.5180723667144775, -0.20276302099227905, 0.24230171740055084, 0.1001695990562439, 0.006747230887413025, 0.4243757128715515, -0.01605989784002304, 0.17045143246650696, 0.02714844048023224, 0.28561094403266907, 0.40301376581192017, 0.5932387113571167, 0.22788463532924652, -0.08045706897974014, -0.21472883224487305, -0.6198939085006714, 0.11138249188661575, 0.21648074686527252, 0.07720257341861725, 0.21648159623146057, -0.29887402057647705, -0.06263566017150879, -0.05511254072189331, -0.02624480053782463, -0.048305694013834, 0.09918932616710663, -0.025759831070899963, 0.09584909677505493, -0.17473240196704865, -0.14205248653888702, 0.4702325761318207, 0.2248270958662033, -0.025095703080296516, -0.13383623957633972, 0.5995211005210876, -0.10593713074922562, 0.03275109827518463, 0.2665649652481079, 0.2488376796245575, 0.06993908435106277, -0.03682076930999756, 0.007075670175254345, 0.19400236010551453, -0.12349247932434082, 0.38484013080596924, 0.18223384022712708, 0.6857773661613464, 0.29558420181274414, -0.21262499690055847, 0.1951541006565094, -0.24745474755764008, -0.020404092967510223, 0.017026767134666443, -0.5271954536437988, 0.48479628562927246, -0.1671355664730072, 0.13354796171188354, 0.041227787733078, 0.08587681502103806, 0.06775932013988495, 0.000855814665555954, -0.020131636410951614, -0.2536512315273285, 0.07190335541963577, 0.06527966260910034, 0.4463690519332886, -0.004868978634476662, -0.0021846070885658264, 0.22569793462753296, 0.21371252834796906, -0.030215665698051453, -0.1785866916179657, 0.30651554465293884, -0.24867621064186096, -0.3451867997646332, 0.530297577381134, 0.07783067226409912, 0.36461812257766724, 0.42873165011405945, -0.167351633310318, -0.06521911919116974, 0.2229597419500351, 0.034288424998521805, 0.0418362095952034, 0.13794653117656708, 0.017808226868510246, 0.17137809097766876, 0.5019648671150208, 0.1495482623577118, -0.10228729248046875, -0.288481205701828, -0.26125451922416687, -0.07019095867872238, 0.012945923954248428, 0.04334428906440735, -0.0658235102891922, -0.39958661794662476, 0.161560520529747, 0.08871696144342422, -0.30014270544052124, -0.40515923500061035, -0.07588253170251846, 0.4492294192314148, 0.13323211669921875, -0.15889258682727814, 0.09238745272159576, 0.6161685585975647, -0.23526091873645782, -0.26192665100097656, -0.49991899728775024, 0.23502042889595032, -0.24500614404678345, 0.09684877097606659, 0.3389050364494324, -0.12335620075464249, 0.4097151756286621, 0.2886107265949249, 0.002603670582175255, -0.8597418665885925, -0.19162118434906006, 0.26510459184646606, -0.17250876128673553, 0.4401383101940155, 0.03328876197338104, -0.04960900545120239, -0.1863509714603424, 0.16364498436450958, -0.132451593875885, 0.09052103012800217, -0.245577871799469, -0.1025678738951683, -0.12965011596679688, 0.12827588617801666, -0.03437621518969536, 0.30219563841819763, -0.2941749095916748, -0.26215860247612, 0.4458170533180237, -0.07088153064250946, 0.09087038040161133, -0.029462669044733047, -0.031486764550209045, 0.028627503663301468, 0.04682476073503494, -0.1939847767353058, -0.14244742691516876, -0.39354202151298523, 0.20380274951457977, -0.2879358232021332, -0.30104896426200867, 0.15917626023292542, 0.07885108143091202, 0.041967183351516724, -0.17946860194206238, -0.4545355439186096, -0.21158303320407867, -0.27896514534950256, 0.5499023795127869, -0.09797309339046478, 0.021161247044801712, 0.2551873028278351, -0.019157610833644867, -0.0182064026594162, -0.10079741477966309, -0.41536083817481995, -0.03926456719636917, 0.6149662137031555, -0.05127909034490585, 0.07016634196043015, 0.13593386113643646, 0.01743694767355919, 0.4146851897239685, 0.36919400095939636, 0.12032376229763031, 0.4214991331100464, -0.06843093782663345, -0.01464017853140831, -0.27830609679222107, -0.31675636768341064, 0.2485182285308838, -0.15225565433502197, -0.021734198555350304, 0.2646411955356598, 0.17112481594085693, 0.2851543724536896, -0.10661362111568451, -0.3431888818740845, -0.19626811146736145, -0.09856929630041122, -0.14488351345062256, -0.07157005369663239, 0.13708604872226715, -0.12175756692886353, -0.504767119884491, -0.05724702775478363, -0.27904677391052246, 0.1992015838623047, 0.5136600732803345, 0.21024787425994873, 0.225857675075531, 0.037195105105638504, 0.05447065085172653, -0.27290207147598267, 0.23736664652824402, -0.07304200530052185, -0.17994609475135803, -0.24255749583244324, 0.28515830636024475, 0.01949777454137802, -0.1875436156988144, 0.46013343334198, -0.01083679310977459, -0.14330579340457916, -0.08581024408340454, -0.2523348927497864, 0.30469441413879395, 0.07555848360061646, -0.12934282422065735, -0.27355143427848816, -0.2874022424221039, 0.5650020241737366, -0.3281862139701843, -0.45818665623664856, 0.316630482673645, 0.05680518224835396, 0.04521428421139717, -0.048991814255714417, 0.27595198154449463, -0.24006903171539307, -0.38659313321113586, -0.17686283588409424, 0.09070613980293274, 0.15483441948890686, 0.033991895616054535, -0.17341077327728271, -0.20691683888435364, -0.13199745118618011, 0.4190084934234619, -0.1921701580286026, -0.006608401425182819, -0.05636800453066826, 0.05480397865176201, 0.17821566760540009, 0.07870270311832428, 0.8711042404174805, 0.444632351398468, 0.2331598997116089, 0.04251314327120781, 0.3870953619480133, 0.11023101210594177, 0.19410169124603271, 0.2232969105243683, -0.01894710399210453, 0.34854060411453247, -0.22858935594558716, 0.21223926544189453, -0.5105457901954651, -0.06487429887056351, 0.1137680783867836, 0.18317121267318726, -0.13366393744945526, -0.10197551548480988, 0.4150233268737793, -0.009561466984450817, -0.06170763820409775, 0.0024791210889816284, 0.6807261109352112, -0.2683979570865631, 0.44056087732315063, 0.18238615989685059, 1.0700591802597046, -0.0643952488899231, 0.2257767915725708, 0.18126076459884644, -0.30370038747787476, 0.13820405304431915, -0.37160831689834595, -0.12309305369853973, -0.16561809182167053, 0.06637568026781082, -0.1588771492242813, 0.02709382399916649, 0.1804676055908203, -0.06820616871118546, -0.12728232145309448, -0.02895442396402359, 0.2090301364660263, -0.036615025252103806, -0.14885130524635315, 0.6549569964408875, -0.09669113159179688, -0.327346533536911, -0.16986416280269623, 0.23440411686897278, 0.1713971495628357, 0.41759201884269714, -0.2606523334980011, -0.21939194202423096, 0.11317874491214752, 0.1064702570438385, -0.3038482964038849, -0.15720275044441223, -0.21737661957740784, 0.13680949807167053, -0.11159327626228333, -0.029979247599840164, 0.41915127635002136, 0.16119384765625, 0.23889072239398956, 0.04316263273358345, -0.3876771926879883, 0.0946349948644638, -0.026977606117725372, 0.11991827189922333, -0.15367698669433594, -0.37290266156196594, 0.36140647530555725, -0.17506057024002075, -0.009908728301525116, -0.07006458193063736, 0.09740627557039261, -0.28123781085014343, -0.48641642928123474, -0.15092866122722626, -0.20048867166042328, -0.14725996553897858, -0.10139861702919006, 0.03566165268421173, 0.028334353119134903, -0.032492414116859436, 0.09792131185531616, 0.24242223799228668, 0.3364410996437073, -0.11300543695688248, 0.25017279386520386, -0.019655629992485046, -0.2014015167951584, 0.1770733892917633, -0.1647932529449463, -0.42099905014038086, 0.16521230340003967, -0.04184051230549812, -0.11257824301719666, -0.18298745155334473, 0.1687578558921814, 0.3961421847343445, 0.12262142449617386, -0.10521220415830612, -0.06572778522968292, 0.07402022182941437, -0.1302536576986313, 0.3074779212474823, 0.3060513138771057, -0.2317805290222168, 0.1800413280725479, -0.2569854259490967, -0.20813347399234772, 0.4168168306350708, -0.3063780665397644, 0.23221929371356964, -0.11162033677101135, -0.06793329119682312, -0.17815057933330536, 0.1806478053331375, -0.3469536304473877, -0.06303513050079346, 0.04442191869020462, -0.25221380591392517, 0.23987239599227905, 0.020524997264146805, 0.23458519577980042, -0.2489919513463974, 0.09920253604650497, -0.19446837902069092, -0.319851815700531, -0.13315558433532715, -0.25654059648513794, 0.1353786736726761, 0.15809786319732666, 0.05676664412021637, 0.045523062348365784, -0.03303605690598488, -0.0761302262544632, -0.09113366156816483, 0.35953888297080994, 0.11139138787984848, 0.0030649304389953613, -0.12622816860675812, 0.35405656695365906, -0.04510807991027832, -0.19747188687324524, 0.04349257051944733, 0.44935372471809387, 0.10816218703985214, -0.03333102911710739, 0.045375678688287735, 0.035699207335710526, -0.08657439053058624, 0.08633599430322647, 0.44625797867774963, 0.5918830037117004, 0.19677302241325378, -0.05735403299331665, 0.1528192162513733, -0.038407232612371445, 0.009775694459676743, 0.2774882912635803, -0.22114336490631104, -0.2246832251548767, 0.10360457003116608, 0.2604729235172272, 0.17126505076885223, -0.11283218860626221, -0.19637618958950043, -0.05036943033337593, -0.3411691188812256, 0.11085784435272217, 0.2752492129802704, 0.44602298736572266, 0.5555153489112854, -0.3048253655433655, 0.03882656246423721, 0.2572523355484009, 0.085319384932518, -0.10977905988693237, 0.022174619138240814, 0.09289446473121643, 0.0713566467165947, 0.31089699268341064, 0.1937364786863327, 0.10119207203388214, 0.1828172206878662, -0.46069782972335815, 0.25151604413986206, 0.1487971544265747, 0.34190285205841064, 0.28811031579971313, -0.45187288522720337, 0.12111523747444153, -0.012810230255126953, 0.09900186955928802, -0.04458343982696533, -0.2075980305671692, 0.339568555355072, -0.07528404146432877, -0.2947937548160553, 0.0734921246767044, 0.16618642210960388, 0.04738456755876541, -0.08035081624984741, 0.06624835729598999, -0.22050610184669495, -0.3916468918323517, 0.11744941771030426, -0.03541967645287514, -0.4148767590522766, 0.2259434461593628, 0.013824839144945145, 0.20588552951812744, -0.07047291100025177, 0.15637364983558655, 0.30063095688819885, 0.0852300375699997, 0.06472858786582947, 0.22492410242557526, -0.35453230142593384, 0.10250745713710785, -0.15169142186641693, 0.43371427059173584, 0.17230352759361267, 0.11760912090539932, 0.15660880506038666, 0.05777297541499138, -0.10764051973819733, -0.09374460577964783, 0.01117684505879879, -0.19707876443862915, -0.2755448818206787, 0.04320894926786423, 0.15091729164123535, 0.18295347690582275, -0.10145493596792221, -0.07494716346263885, -0.1736232191324234, -0.2283710241317749, -0.6404672861099243, 0.310371458530426, -0.012493252754211426, -0.08316266536712646, 0.10720319300889969, 0.08256900310516357, -0.05673494562506676, -0.5421955585479736, 0.6428132057189941, -0.10889437049627304, 0.2373456060886383, 0.13556241989135742, 0.09502808004617691, 0.06247950717806816, 0.13120406866073608, 0.11153395473957062, 0.11471569538116455, -0.17658953368663788, -0.15239734947681427, -0.35105636715888977, -0.2047533094882965, 0.023408539593219757, 0.04773975908756256, 0.04151560738682747, -0.0016234274953603745, -0.12030322104692459, -0.14898940920829773, 0.14014126360416412, -0.16138264536857605, 0.2920740246772766, 0.1424679011106491, -0.24565082788467407, 0.18098095059394836, -0.01105443388223648, 0.087912417948246, 0.027702495455741882, -0.15006950497627258, 0.13524045050144196, 0.3884570598602295, -0.017355110496282578, -0.08197247982025146, 0.4126144349575043, 0.18825763463974, -0.3711327910423279, 0.35027405619621277, -0.05178435891866684, 0.07964856922626495, -0.2224116325378418, -0.07429908961057663, 0.1018211841583252, 0.02090834267437458, -0.24268808960914612, -0.03864049166440964, -0.28322717547416687, 0.30530110001564026, -0.04071347415447235, -0.22719405591487885, -0.18610350787639618, -0.022859007120132446, 0.06935881078243256, -0.17795611917972565, -0.15523304045200348, 0.32248762249946594, -0.2934279143810272, 0.3069061040878296, 0.09130050241947174, 0.3267894387245178, 0.15677689015865326, -0.05072746425867081, -0.39275723695755005, -0.28026580810546875, 0.26662617921829224, 0.007963244803249836, -0.09060099720954895, 0.0937124714255333, 0.16238802671432495, 0.1601223349571228, -0.2618984878063202, -0.4546244442462921, -0.08624675869941711, 0.2517244517803192, 0.03945857658982277, -0.04000205174088478, 0.34928029775619507, 0.2662982940673828, -0.11202649772167206, -0.14713819324970245, 0.2562543749809265, 0.1864863634109497, -0.11768118292093277, 0.11913195252418518, -0.04950474202632904 ]
https://github.com/huggingface/datasets/issues/5437
Can't load png dataset with 4 channel (RGBA)
Hi! Can you please share the directory structure of your image folder and the `load_dataset` call? We decode images with Pillow, and Pillow supports RGBA PNGs, so this shouldn't be a problem.
I try to create dataset which contains about 9000 png images 64x64 in size, and they are all 4-channel (RGBA). When trying to use load_dataset() then a dataset is created from only 2 images. What exactly interferes I can not understand.![Screenshot_20230117_212213.jpg](https://user-images.githubusercontent.com/41611046/212980147-9aa68e30-76e9-4b61-a937-c2fdabd56564.jpg)
32
Can't load png dataset with 4 channel (RGBA) I try to create dataset which contains about 9000 png images 64x64 in size, and they are all 4-channel (RGBA). When trying to use load_dataset() then a dataset is created from only 2 images. What exactly interferes I can not understand.![Screenshot_20230117_212213.jpg](https://user-images.githubusercontent.com/41611046/212980147-9aa68e30-76e9-4b61-a937-c2fdabd56564.jpg) Hi! Can you please share the directory structure of your image folder and the `load_dataset` call? We decode images with Pillow, and Pillow supports RGBA PNGs, so this shouldn't be a problem.
[ 0.01566191390156746, -0.1875022053718567, -0.09430079162120819, 0.7057159543037415, 0.22784894704818726, 0.1132238581776619, 0.3613564968109131, -0.045839887112379074, -0.15287496149539948, -0.02767963707447052, -0.07176592200994492, -0.10352299362421036, 0.1894233077764511, -0.11605149507522583, -0.18255387246608734, 0.02052309177815914, 0.10337091982364655, 0.21850043535232544, 0.09426598250865936, 0.045011818408966064, -0.38648176193237305, -0.02556624822318554, 0.03823426365852356, -0.08503860235214233, -0.7049201726913452, 0.21095849573612213, -0.018375184386968613, 0.1339118480682373, -0.19597575068473816, -0.05768816918134689, 0.24640430510044098, 0.196189746260643, -0.03198826313018799, 0.4204217195510864, -0.00011840132356155664, -0.010236937552690506, 0.26683509349823, -0.04334409534931183, -0.11264529824256897, -0.05959215760231018, -0.3011644780635834, -0.1434754878282547, 0.19366413354873657, 0.04809582978487015, -0.08591809868812561, -0.30555471777915955, 0.03943777456879616, -0.08802492171525955, 0.6340947151184082, 0.16461795568466187, 0.17482022941112518, -0.2584635019302368, -0.0734538733959198, 0.045821741223335266, 0.15013238787651062, -0.08375170826911926, 0.28728553652763367, 0.08293423056602478, 0.07679710537195206, 0.0039296140894293785, -0.07210160046815872, -0.20860274136066437, -0.15378811955451965, 0.14545485377311707, 0.12433906644582748, -0.20386244356632233, -0.18127024173736572, -0.6928070783615112, 0.20275941491127014, 0.1382020115852356, 0.6851143836975098, 0.06557998806238174, -0.18244944512844086, -0.004110138863325119, 0.1196930930018425, -0.2027563899755478, 0.10827234387397766, 0.5520033240318298, -0.23239919543266296, -0.19194550812244415, -0.4336446225643158, -0.07712513208389282, -0.3972862660884857, 0.25784459710121155, 0.16341544687747955, -0.26030850410461426, 0.12991264462471008, 0.3715658485889435, 0.28743791580200195, 0.3486019968986511, 0.2090066373348236, -0.16250644624233246, 0.09486991167068481, -0.09484046697616577, -0.30985647439956665, 0.5748968124389648, -0.16430634260177612, 0.34106922149658203, 0.10234295576810837, 0.1846112757921219, -0.3613869547843933, 0.12653186917304993, -0.1909809112548828, 0.2695225775241852, 0.13549299538135529, -0.24452956020832062, -0.15969166159629822, 0.07084726542234421, 0.2486821413040161, -0.3683326542377472, -0.04703433811664581, -0.06519260257482529, -0.22409963607788086, -0.21547408401966095, -0.07960706204175949, -0.4673766493797302, -0.0015984773635864258, -0.13510918617248535, -0.18063949048519135, -0.48252320289611816, 0.017506912350654602, -0.0912824422121048, -0.2210061401128769, 0.2645234167575836, 0.2633826732635498, 0.10786131024360657, 0.04610130190849304, 0.3781757354736328, -0.3363826870918274, -0.26165294647216797, -0.07365569472312927, -0.36307626962661743, -0.19091659784317017, -0.03086005337536335, 0.05465767905116081, -0.3660968244075775, 0.12966109812259674, 0.2340262234210968, 0.2372385859489441, 0.0179457888007164, 0.1743607074022293, -0.48579835891723633, -0.16385513544082642, 0.4077286422252655, -0.047022249549627304, -0.0848139226436615, 0.07706470787525177, 0.09442649781703949, 0.17513105273246765, 0.23644962906837463, -0.1933899223804474, 0.044312167912721634, -0.163055419921875, 0.09414555877447128, 0.10923999547958374, 0.32832202315330505, -0.6037688851356506, 0.2299596518278122, 0.08111026883125305, -0.4515136182308197, -0.1520073413848877, -0.4471980929374695, 0.08860619366168976, -0.48405736684799194, 0.1990949511528015, 0.4238329529762268, -0.07277769595384598, 0.08175547420978546, -0.23963889479637146, -0.271787166595459, 0.2433508038520813, 0.352987676858902, -0.2094089537858963, -0.1976163685321808, -0.2623240351676941, -0.18924883008003235, 0.26675739884376526, 0.046350035816431046, -0.40530914068222046, 0.18104135990142822, -0.09233184903860092, -0.1681249886751175, 0.0183822363615036, 0.39585983753204346, 0.01795104704797268, 0.0009202700457535684, -0.07643868029117584, 0.32729852199554443, -0.23170223832130432, 0.029570208862423897, 0.16821517050266266, -0.0817258432507515, 0.4659078121185303, 0.17164266109466553, -0.09177596867084503, 0.2037162035703659, 0.24007636308670044, -0.05308982729911804, 0.018073122948408127, -0.09178872406482697, 0.1439010202884674, -0.19046960771083832, 0.021597059443593025, -0.20719842612743378, 0.037950675934553146, 0.20644301176071167, -0.41939082741737366, 0.20016944408416748, 0.4848094880580902, 0.038216449320316315, -0.050625547766685486, 0.20117256045341492, -0.05025637894868851, -0.146983802318573, -0.3392205238342285, -0.21747708320617676, -0.023334914818406105, 0.4196469783782959, 0.018860958516597748, -0.09096373617649078, -0.08496606349945068, 0.583182692527771, -0.11837965995073318, 0.08740236610174179, -0.3109372854232788, 0.2239040732383728, -0.01318562962114811, 0.05598738417029381, 0.05797944217920303, -0.06576191633939743, -0.012895487248897552, 0.05559800565242767, -0.018008751794695854, 0.18772301077842712, 0.15957310795783997, 0.20008181035518646, 0.04488121718168259, 0.19868656992912292, 0.19804775714874268, -0.4706886410713196, 0.19242875277996063, 0.0691349059343338, 0.12974919378757477, -0.27032268047332764, 0.2325487732887268, -0.19760610163211823, -0.06846944987773895, 0.27372264862060547, -0.016589529812335968, -0.06008336693048477, 0.23010998964309692, 0.18026643991470337, 0.07290991395711899, 0.16200213134288788, 0.14727163314819336, 0.10795775055885315, 0.43862178921699524, 0.02334131859242916, -0.2760359048843384, 0.05756823346018791, 0.030774516984820366, -0.05210033804178238, -0.10705453902482986, 0.3779624402523041, -0.1698877215385437, -0.22084087133407593, 0.027685366570949554, 0.33397597074508667, 0.4063291549682617, 0.3439585566520691, -0.2057618796825409, -0.049925707280635834, -0.20338481664657593, -0.341855525970459, -0.02939905971288681, 0.00224284827709198, 0.2283218801021576, -0.007152527570724487, 0.3247252404689789, -0.1716148555278778, -0.19655880331993103, -0.21756169199943542, 0.1727215051651001, 0.13532553613185883, -0.23491525650024414, 0.19024841487407684, -0.09889309108257294, -0.4143318831920624, -0.010489189065992832, -0.005057330243289471, -0.3965053856372833, -0.07808390259742737, -0.006668325513601303, 0.15890905261039734, 0.36942994594573975, -0.23518778383731842, -0.4124099314212799, 0.16001740097999573, 0.18973438441753387, -0.18010962009429932, -0.06894857436418533, 0.015605626627802849, -0.10936818271875381, 0.01752711832523346, 0.20064599812030792, -0.11025401204824448, 0.5943914651870728, 0.036242686212062836, -0.11927995085716248, 0.06577592343091965, 0.058028094470500946, 0.08003804087638855, -0.20423415303230286, 0.3347841203212738, -0.22908052802085876, 0.4183618426322937, 0.10974913835525513, 0.023285914212465286, 0.1640346497297287, 0.16038654744625092, -0.24338656663894653, 0.23305165767669678, 0.00779721699655056, 0.03451746329665184, -0.08330383896827698, -0.5314530730247498, 0.01690772734582424, -0.22920159995555878, 0.1647888720035553, -0.05230679735541344, 0.15639628469944, 0.054825447499752045, 0.36039820313453674, 0.052521057426929474, 0.08638080954551697, -0.1305679976940155, -0.24136584997177124, -0.04793567210435867, -0.003134641796350479, 0.05075133591890335, -0.45974886417388916, 0.02743477001786232, 0.06582792103290558, 0.07329263538122177, 0.443783164024353, -0.7028449773788452, 0.10661491006612778, -0.11019618809223175, 0.2574613094329834, -0.10281498730182648, -0.07355860620737076, 0.0403284877538681, -0.13043104112148285, -0.03315886855125427, -0.13878624141216278, -0.05613922327756882, 0.020023740828037262, -0.04360634833574295, 0.36080339550971985, 0.27075549960136414, 0.25238037109375, -0.26852232217788696, 0.29532915353775024, 0.1963949054479599, -0.1834436058998108, 0.40839552879333496, -0.12268472462892532, 0.6194378137588501, -0.19608911871910095, -0.11637534946203232, 0.34676045179367065, 0.12083102762699127, -0.027483824640512466, 0.04180531948804855, -0.010522473603487015, -0.26444244384765625, -0.12492953985929489, 0.03904102370142937, -0.37518882751464844, 0.21006594598293304, 0.07047291100025177, 0.01406358927488327, -0.12163837999105453, -0.24524493515491486, -0.3163720965385437, 0.23375794291496277, -0.1375572681427002, -0.334288626909256, 0.06959656625986099, 0.3231382668018341, 0.032753296196460724, -0.07493142783641815, 0.10742304474115372, -0.015483595430850983, 0.30101335048675537, -0.09819930791854858, 0.39034533500671387, -0.24495954811573029, 0.3290373682975769, 0.19964781403541565, 0.05393606424331665, 0.9315055012702942, -0.25905200839042664, 0.09873239696025848, 0.2345258891582489, -0.03936683386564255, -0.6648435592651367, 0.10420873761177063, 0.03532390668988228, 0.011170756071805954, -0.14779438078403473, 0.45316967368125916, -0.37240466475486755, 0.010221654549241066, -0.10269564390182495, 0.427572101354599, -0.11771921813488007, -0.20605406165122986, -0.32577428221702576, -0.2697485685348511, -0.06318210810422897, -0.2561647891998291, -0.15271031856536865, 0.003182122018188238, -0.2911982536315918, -0.01988399215042591, 0.14277257025241852, -0.2509484887123108, 0.15676844120025635, 0.21169669926166534, 0.12122726440429688, -0.08290286362171173, -0.09468045830726624, 0.6472407579421997, 0.005465034395456314, 0.5319321751594543, 0.592164933681488, 0.05170699208974838, -0.2809213399887085, 0.03523703292012215, 0.09783641993999481, 0.16749869287014008, 0.06363648921251297, 0.1804942935705185, 0.12250053882598877, -0.14838755130767822, -0.09194548428058624, -0.009050958789885044, 0.1596924364566803, 0.3733879625797272, -0.1727905422449112, -0.24956317245960236, -0.5117607116699219, 0.4619561433792114, -0.17694517970085144, -0.04448958486318588, 0.6126180291175842, -0.01888769119977951, -0.1588798612356186, 0.21631768345832825, 0.030982498079538345, 0.903381884098053, -0.13516055047512054, 0.2445923089981079, 0.13891640305519104, -0.3828577399253845, 0.2181968092918396, -0.05660879239439964, 0.201543390750885, -0.2594471573829651, -0.03982654586434364, -0.09036675840616226, -0.20845459401607513, 0.007621102035045624, 0.2870786786079407, 0.09734416007995605, 0.016568347811698914, -0.29798877239227295, 0.08587131649255753, 0.2734333574771881, 0.08234237134456635, -0.08428069949150085, -0.11555233597755432, -0.22259533405303955, 0.17893584072589874, -0.1372443288564682, -0.3638584315776825, 0.004664696753025055, 0.19562415778636932, -0.16499198973178864, -0.13047349452972412, -0.1583108752965927, 0.32625001668930054, -0.38663652539253235, 0.21166029572486877, -0.2687370777130127, -0.0837375745177269, 0.08721224963665009, 0.658053457736969, -0.24703960120677948, -0.29478520154953003, -0.1564328968524933, 0.035407062619924545, -0.11982528120279312, -0.23403549194335938, -0.12280494719743729, -0.3264327347278595, 0.19055208563804626, -0.11819155514240265, -0.467730849981308, -0.009511657059192657, 0.06416415423154831, -0.3177714943885803, -0.02662404626607895, 0.23138293623924255, -0.10838834941387177, 0.12367743998765945, -0.39235275983810425, -0.13850438594818115, 0.09133699536323547, -0.17559866607189178, 0.03764256834983826, 0.1970609575510025, -0.018468305468559265, 0.12534642219543457, 0.3441726565361023, -0.26232418417930603, -0.09485605359077454, 0.25656649470329285, 0.06200561672449112, 0.029686547815799713, 0.35143038630485535, 0.19824829697608948, 0.0011057071387767792, -0.11141960322856903, 0.10325110703706741, 0.016347715631127357, -0.29273006319999695, 0.05729451775550842, -0.025312747806310654, 0.07290792465209961, 0.04957311600446701, -0.14548863470554352, -0.20101816952228546, -0.14216694235801697, 0.04748336598277092, -0.5529919862747192, -0.20056673884391785, 0.09649686515331268, -0.4377043843269348, 0.23531880974769592, -0.0951424315571785, -0.527359127998352, 0.2669895589351654, 0.39183309674263, -0.14981041848659515, 0.13100868463516235, -0.04438859224319458, 0.31832966208457947, 0.19094343483448029, 0.22947359085083008, 0.24823138117790222, -0.12150070071220398, -0.007130932062864304, 0.2294454574584961, -0.21166405081748962, -0.05023558437824249, -0.014292808249592781, 0.21726170182228088, 0.09400885552167892, -0.11535055935382843, -0.09692437201738358, -0.43621522188186646, -0.20787043869495392, -0.03255379945039749, 0.3572586476802826, 0.029831811785697937, -0.23881234228610992, -0.2105560600757599, 0.186334028840065, -0.11669795960187912, 0.06746513396501541, 0.02732076123356819, -0.2987591028213501, 0.2658225893974304, 0.35353901982307434, -0.09903404116630554, 0.26931092143058777, -0.14544475078582764, -0.38596925139427185, 0.062224745750427246, 0.07732666283845901, -0.06089866906404495, 0.13982239365577698, -0.32648128271102905, 0.41371580958366394, -0.17921939492225647, 0.4214787483215332, 0.2133355438709259, -0.03739100694656372, 0.02872542105615139, 0.1952187418937683, 0.07232734560966492, -0.20603229105472565, -0.025159761309623718, 0.2586018741130829, -0.10516311228275299, -0.15061239898204803, 0.19975325465202332, 0.08686864376068115, 0.02717588096857071, -0.6478517055511475, -0.04448973760008812, 0.404936820268631, -0.20902937650680542, -0.004706839099526405, 0.17008176445960999, -0.32160431146621704, -0.020572219043970108, 0.09025800973176956, 0.10189907252788544, -0.22879642248153687, 0.5004439949989319, -0.033042579889297485, 0.3295717239379883, 0.2606334984302521, -0.09026667475700378, 0.09040003269910812, -0.4107837378978729, 0.1716393083333969, 0.4130275547504425, -0.03901207447052002, 0.23608407378196716, -0.06683427095413208, 0.208957701921463, 0.018165558576583862, -0.005843218881636858, -0.19604644179344177, 0.05697166174650192, 0.03824533522129059, 0.16269685328006744, 0.09408825635910034, -0.3226751983165741, -0.06571949273347855, 0.15548528730869293, -0.027449842542409897, -0.5217399001121521, 0.4405944049358368, 0.3244931101799011, -0.3607003688812256, -0.15666623413562775, 0.1894586682319641, 0.09102077782154083, -0.22183141112327576, -0.1634848415851593, 0.1403055340051651, 0.31490638852119446, 0.06849256902933121, 0.5167799592018127, 0.24569067358970642, 0.4662190079689026, 0.21079570055007935, -0.04163191467523575, -0.027579378336668015, 0.22260431945323944, -0.07505952566862106, 0.027163948863744736, 0.46876102685928345, 0.44241756200790405, 0.23492535948753357, 0.04570072889328003, 0.08260098099708557, -0.059138551354408264, 0.0830310583114624, 0.16553816199302673, 0.3691141903400421, -0.294002890586853, 0.0800892785191536, -0.30022531747817993, -0.13613492250442505, -0.15892839431762695, -0.10013037174940109, -0.43060240149497986, -0.020911529660224915, 0.6705278754234314, -0.13292302191257477, -0.08245260268449783, 0.06422479450702667, -0.0004683546721935272, -0.21208710968494415, 0.5757306814193726, 0.17123857140541077, 0.32491838932037354, -0.2256280928850174, -0.22350414097309113, -0.5748148560523987, 0.1611638367176056, -0.23276928067207336, -0.14682084321975708, -0.0775117352604866, -0.03939075767993927, 0.314800888299942, 0.05507633090019226, 0.28011777997016907, 0.09980028122663498, 0.5315608382225037, 0.22316956520080566, -0.11471034586429596, -0.009754665195941925, 0.2282671481370926, 0.33141639828681946, -0.31959524750709534, -0.42693471908569336, 0.18546552956104279, -0.07283460348844528, 0.024745382368564606, 0.1895219385623932, 0.2299749255180359, 0.12082326412200928, -0.005962949246168137, 0.2151477336883545, 0.2601856291294098, 0.9198018312454224, -0.06645499914884567, -0.012386348098516464, -0.30860602855682373, -0.05728238448500633, -0.15938252210617065, 0.11362041532993317, 0.24256044626235962, 0.5016623735427856, -0.30109903216362, -0.03231615945696831, -0.2951226830482483, 0.19195428490638733, -0.3184928894042969, 0.006709347479045391, -0.1122557669878006, 0.004223816096782684, -0.06741898506879807, -0.25898513197898865, 0.0759429857134819, -0.096330426633358, 0.11744113266468048, -0.3729110360145569, -0.1569547951221466, -0.12868621945381165, 0.3388243317604065, -0.5932602286338806, -0.28393977880477905, 0.22236260771751404, 0.1549636721611023, 0.26696252822875977, 0.14502204954624176, -0.35991692543029785, 0.3343789577484131, 0.3040808141231537, -0.12160167843103409, -0.40084850788116455, 0.29514315724372864, -0.033239781856536865, 0.0043986476957798, 0.034989092499017715, 0.23831577599048615, -0.09527622908353806, -0.4262861907482147, 0.030903350561857224, -0.054578863084316254 ]
https://github.com/huggingface/datasets/issues/5437
Can't load png dataset with 4 channel (RGBA)
> Hi! Can you please share the directory structure of your image folder and the `load_dataset` call? We decode images with Pillow, and Pillow supports RGBA PNGs, so this shouldn't be a problem. > > I have only 1 folder that I use in the load_dataset function with the name "IMGDATA" and all my 9000 images are located in this folder. ` from datasets import load_dataset dataset = load_dataset("IMGDATA") ` At the same time, using another data set with images consisting of 3 RGB channels, everything works
I try to create dataset which contains about 9000 png images 64x64 in size, and they are all 4-channel (RGBA). When trying to use load_dataset() then a dataset is created from only 2 images. What exactly interferes I can not understand.![Screenshot_20230117_212213.jpg](https://user-images.githubusercontent.com/41611046/212980147-9aa68e30-76e9-4b61-a937-c2fdabd56564.jpg)
87
Can't load png dataset with 4 channel (RGBA) I try to create dataset which contains about 9000 png images 64x64 in size, and they are all 4-channel (RGBA). When trying to use load_dataset() then a dataset is created from only 2 images. What exactly interferes I can not understand.![Screenshot_20230117_212213.jpg](https://user-images.githubusercontent.com/41611046/212980147-9aa68e30-76e9-4b61-a937-c2fdabd56564.jpg) > Hi! Can you please share the directory structure of your image folder and the `load_dataset` call? We decode images with Pillow, and Pillow supports RGBA PNGs, so this shouldn't be a problem. > > I have only 1 folder that I use in the load_dataset function with the name "IMGDATA" and all my 9000 images are located in this folder. ` from datasets import load_dataset dataset = load_dataset("IMGDATA") ` At the same time, using another data set with images consisting of 3 RGB channels, everything works
[ 0.02087317779660225, -0.12137284874916077, -0.11719660460948944, 0.6909396648406982, 0.314117968082428, 0.11494176834821701, 0.34317952394485474, 0.026958275586366653, -0.09038303792476654, -0.0008971542119979858, -0.08585258573293686, -0.08188499510288239, 0.11693500727415085, -0.060620203614234924, -0.16363103687763214, 0.12329339236021042, 0.1471920609474182, 0.2261689305305481, 0.08671954274177551, -0.022121518850326538, -0.3766389489173889, 0.021597977727651596, -0.022023018449544907, -0.2026110142469406, -0.731793999671936, 0.26510921120643616, 0.023944946005940437, 0.08233650028705597, -0.19459481537342072, -0.061051756143569946, 0.1871608942747116, 0.2019866555929184, -0.04902740940451622, 0.4802568256855011, -0.0001199258622364141, 0.024676330387592316, 0.27175623178482056, -0.06058858335018158, -0.17450110614299774, -0.15952102839946747, -0.21895438432693481, -0.21305261552333832, 0.24809545278549194, 0.04554285854101181, -0.13292458653450012, -0.29301342368125916, 0.01836654543876648, -0.15263967216014862, 0.5129770636558533, 0.26658692955970764, 0.17195886373519897, -0.23846106231212616, -0.045391350984573364, 0.12747782468795776, 0.2061856985092163, -0.035110607743263245, 0.2927817404270172, 0.14219732582569122, -0.024904519319534302, -0.07307741045951843, 0.04084045812487602, -0.07337817549705505, -0.1618969440460205, 0.20082607865333557, 0.12736058235168457, -0.12187414616346359, -0.1880141794681549, -0.7249926328659058, 0.15639567375183105, 0.1000739112496376, 0.6419508457183838, 0.0013497546315193176, -0.2634486258029938, -0.08226105570793152, 0.14603622257709503, -0.26796188950538635, 0.1115586906671524, 0.5240507125854492, -0.20063120126724243, -0.2298486828804016, -0.34526753425598145, 0.010583918541669846, -0.34994885325431824, 0.2786479890346527, 0.07342647016048431, -0.18562251329421997, 0.11122679710388184, 0.3785385191440582, 0.2210090607404709, 0.3131246566772461, 0.21746549010276794, -0.17178378999233246, 0.18790392577648163, 0.017948979511857033, -0.41270434856414795, 0.5856797695159912, -0.075729601085186, 0.3406197726726532, 0.04392373561859131, 0.17358821630477905, -0.4028959274291992, 0.045440673828125, -0.20279350876808167, 0.20879089832305908, 0.15502583980560303, -0.12707926332950592, -0.16126829385757446, 0.10817545652389526, 0.31361764669418335, -0.3562895953655243, -0.1456356644630432, -0.08907736092805862, -0.20010903477668762, -0.318905234336853, -0.0058631449937820435, -0.3733823001384735, 0.06463491916656494, -0.1072482019662857, -0.19710490107536316, -0.47449690103530884, 0.01135803759098053, -0.1238657683134079, -0.20862723886966705, 0.31582045555114746, 0.2351100742816925, 0.1443294882774353, 0.08410783112049103, 0.4051207900047302, -0.4077165424823761, -0.1962660551071167, -0.06873911619186401, -0.2832619845867157, -0.1648390293121338, -0.061500467360019684, 0.057195793837308884, -0.414798378944397, 0.13926385343074799, 0.2624730169773102, 0.29858875274658203, -0.04225676506757736, 0.14970721304416656, -0.5354688763618469, -0.1572219729423523, 0.46872085332870483, 0.004772782325744629, 0.03444349765777588, 0.09568756818771362, 0.06979261338710785, 0.13486206531524658, 0.16386857628822327, -0.2106638252735138, -0.0034126080572605133, -0.04782134294509888, 0.08536858856678009, 0.03804149478673935, 0.27200156450271606, -0.5983174443244934, 0.17029103636741638, 0.07268452644348145, -0.4369347095489502, -0.18601980805397034, -0.4819565415382385, 0.09120936691761017, -0.5100111961364746, 0.15227557718753815, 0.521650493144989, -0.0029299557209014893, 0.0663830041885376, -0.22347155213356018, -0.24005788564682007, 0.24508485198020935, 0.3851841986179352, -0.1762491911649704, -0.1433354616165161, -0.27238932251930237, -0.20006805658340454, 0.23671676218509674, -0.0958234965801239, -0.3646393120288849, 0.1533585786819458, -0.015235163271427155, -0.07486800849437714, 0.01900646835565567, 0.335989773273468, 0.0018160035833716393, 0.0702732726931572, -0.03142709285020828, 0.3554230332374573, -0.1667545586824417, 0.1388218104839325, 0.186331644654274, -0.027358124032616615, 0.4979855418205261, 0.16989824175834656, -0.10550925135612488, 0.1817830502986908, 0.15234269201755524, -0.11090778559446335, 0.06124718487262726, -0.1119215190410614, 0.09518276900053024, -0.15787261724472046, 0.034412696957588196, -0.11558644473552704, 0.07015180587768555, 0.16703641414642334, -0.4020480513572693, 0.21709829568862915, 0.5262408256530762, 0.17008668184280396, -0.06816916167736053, 0.20029573142528534, -0.05342317372560501, -0.16260330379009247, -0.34923747181892395, -0.21013492345809937, -0.01640401966869831, 0.366647332906723, 0.05257665738463402, -0.008781399577856064, -0.14568522572517395, 0.5828683972358704, -0.1136452704668045, 0.09248484671115875, -0.313260942697525, 0.25546157360076904, 0.020712904632091522, -0.032242972403764725, 0.026406437158584595, -0.051031991839408875, 0.037982359528541565, 0.03250803425908089, -0.08150674402713776, 0.14740459620952606, 0.2480785846710205, 0.23324346542358398, -0.16389155387878418, 0.26680025458335876, 0.18096542358398438, -0.37021687626838684, 0.13648080825805664, 0.11989164352416992, 0.21468937397003174, -0.2492179274559021, 0.286247581243515, -0.12327298521995544, -0.04660462960600853, 0.3379938304424286, 0.051421381533145905, -0.05688948929309845, 0.2517719864845276, 0.1857055127620697, 0.08030501753091812, 0.0809367299079895, 0.18124672770500183, 0.05922984704375267, 0.4227029085159302, -0.017967740073800087, -0.20259664952754974, 0.05982134863734245, 0.06468355655670166, -0.01192651316523552, -0.10864142328500748, 0.3176760971546173, -0.15084031224250793, -0.18575656414031982, 0.006368841975927353, 0.38456329703330994, 0.4817100167274475, 0.2807666063308716, -0.1952594816684723, -0.0030865687876939774, -0.20331180095672607, -0.27545639872550964, 0.02871723473072052, 0.06249918416142464, 0.26478514075279236, 0.06631573289632797, 0.30786779522895813, -0.11934121698141098, -0.18009889125823975, -0.23426230251789093, 0.11422119289636612, 0.16437239944934845, -0.2964312434196472, 0.19370199739933014, -0.14940474927425385, -0.40478479862213135, -0.09752749651670456, -0.11103776097297668, -0.4040410816669464, -0.11880207806825638, -0.10040143132209778, 0.12940365076065063, 0.3305753767490387, -0.23824238777160645, -0.29899513721466064, -0.02247650921344757, 0.11076128482818604, -0.26497337222099304, -0.05463765934109688, 0.017204901203513145, -0.0023102574050426483, -0.006247896701097488, 0.19677864015102386, -0.0660865530371666, 0.5160078406333923, -0.05515352636575699, -0.18306033313274384, 0.03916404768824577, 0.004514120519161224, 0.08606137335300446, -0.23448745906352997, 0.3660593330860138, -0.1542641967535019, 0.37303251028060913, 0.22093863785266876, 0.033323243260383606, 0.18131820857524872, 0.13419988751411438, -0.21860362589359283, 0.1893199235200882, -0.06402183324098587, 0.056623704731464386, -0.10416430234909058, -0.5758504867553711, -0.1021684780716896, -0.2747865319252014, 0.05444992706179619, 0.03799314424395561, 0.18400362133979797, 0.08374793827533722, 0.34781596064567566, 0.03729750216007233, 0.18764013051986694, -0.043015845119953156, -0.22670787572860718, 0.06240798905491829, 0.024355430155992508, 0.009314890950918198, -0.39545878767967224, 0.07514439523220062, 0.012360069900751114, 0.10745688527822495, 0.41583192348480225, -0.6379440426826477, 0.09337583929300308, -0.21130728721618652, 0.2074103057384491, -0.09601493179798126, 0.06291279941797256, 0.04881950095295906, -0.14112965762615204, -0.02118564583361149, -0.14922164380550385, -0.0895594134926796, -0.08123720437288284, 0.0212242491543293, 0.2631843090057373, 0.2581011652946472, 0.28673556447029114, -0.3523586392402649, 0.24802018702030182, 0.23328867554664612, -0.13889539241790771, 0.4759162664413452, -0.17445217072963715, 0.6021944880485535, -0.24419865012168884, -0.16579966247081757, 0.30258479714393616, 0.10750113427639008, -0.0636662095785141, 0.033144570887088776, 0.005542128346860409, -0.1879265010356903, -0.14226773381233215, -0.010972889140248299, -0.4360343813896179, 0.15940514206886292, 0.15055274963378906, 0.062242574989795685, -0.08667752891778946, -0.24201516807079315, -0.31494733691215515, 0.20276379585266113, -0.11268824338912964, -0.38099947571754456, 0.12508201599121094, 0.2571036219596863, -0.012255973182618618, -0.09432761371135712, -0.006503058131784201, -0.019755810499191284, 0.2705422043800354, -0.054732855409383774, 0.3602548837661743, -0.1278918981552124, 0.3074134588241577, 0.15726976096630096, 0.030621182173490524, 0.9102896451950073, -0.3081900179386139, 0.07647022604942322, 0.2756461203098297, -0.1515827476978302, -0.7029194831848145, 0.09705622494220734, -0.014211274683475494, -0.046034589409828186, -0.11636292934417725, 0.4643700420856476, -0.33023208379745483, -0.049734845757484436, -0.07432538270950317, 0.5161252617835999, -0.16211284697055817, -0.1929294764995575, -0.3964250087738037, -0.27977994084358215, -0.14054077863693237, -0.3329126536846161, -0.12892554700374603, -0.0006054132245481014, -0.28025731444358826, 0.04744574800133705, 0.05001276731491089, -0.28757232427597046, 0.17147493362426758, 0.2230367809534073, 0.21691685914993286, -0.1306045800447464, -0.06727999448776245, 0.662922739982605, -0.10577113926410675, 0.5278894901275635, 0.7181673645973206, -0.056539569050073624, -0.3429359197616577, -0.04696027189493179, 0.17532365024089813, 0.22114726901054382, 0.08040376752614975, 0.14155863225460052, 0.06904624402523041, -0.26768428087234497, -0.1498016119003296, -0.0011543035507202148, 0.13499358296394348, 0.3450240194797516, -0.0586022287607193, -0.1911655068397522, -0.6390214562416077, 0.4459494650363922, -0.13200628757476807, -0.06582915782928467, 0.5776333212852478, 0.06049773842096329, -0.1729937642812729, 0.28471970558166504, -0.0321936309337616, 0.8359840512275696, -0.05394794046878815, 0.30032017827033997, 0.17823123931884766, -0.3047863245010376, 0.19998443126678467, -0.021988343447446823, 0.21334464848041534, -0.2637324929237366, -0.04147246107459068, -0.07146909087896347, -0.2287003993988037, -0.027551501989364624, 0.25270089507102966, 0.1152818351984024, 0.18954961001873016, -0.3351011872291565, 0.030670953914523125, 0.15139783918857574, 0.1299695521593094, -0.11542569845914841, -0.12065903842449188, -0.27458223700523376, 0.15181681513786316, -0.0864056795835495, -0.26130491495132446, 0.04428311809897423, 0.2617496848106384, -0.1519000083208084, -0.22595489025115967, -0.12040690332651138, 0.27404168248176575, -0.4690978229045868, 0.1662980318069458, -0.29068052768707275, -0.07452210038900375, 0.08764655888080597, 0.7121773958206177, -0.26964646577835083, -0.2923734486103058, -0.07929811626672745, 0.020406197756528854, -0.05674660950899124, -0.1522696167230606, -0.09640397131443024, -0.2949913740158081, 0.2668743133544922, -0.10620632022619247, -0.5067786574363708, -0.0460943728685379, 0.04652839154005051, -0.24767515063285828, 0.0004288703203201294, 0.3351876735687256, -0.11969859898090363, 0.09307524561882019, -0.3699989318847656, -0.05379574000835419, 0.12925976514816284, -0.17089532315731049, 0.027024518698453903, 0.19598330557346344, 0.0011370375286787748, 0.21365484595298767, 0.2037910521030426, -0.30866649746894836, -0.11548516154289246, 0.22822409868240356, 0.09487926959991455, -0.00299670547246933, 0.3557819724082947, 0.16745726764202118, -0.01773056760430336, -0.12635910511016846, 0.11441328376531601, -0.041807033121585846, -0.276298463344574, 0.14521023631095886, -0.04344794154167175, 0.08397391438484192, 0.040288154035806656, -0.15637733042240143, -0.20079700648784637, -0.12644439935684204, -0.022727075964212418, -0.5530582070350647, -0.1465228646993637, 0.059251271188259125, -0.287838339805603, 0.20412352681159973, -0.16240721940994263, -0.4942718744277954, 0.2828128933906555, 0.32281574606895447, -0.1446315348148346, 0.17654436826705933, 0.005177674815058708, 0.3400791585445404, 0.18933922052383423, 0.21589478850364685, 0.3127160370349884, -0.13847117125988007, 0.004574038088321686, 0.1545487344264984, -0.1724976748228073, -0.05447021871805191, -0.10630154609680176, 0.22203095257282257, 0.09151097387075424, -0.12185321003198624, -0.0004895082674920559, -0.4021185636520386, -0.1515248566865921, -0.09934169054031372, 0.3842258155345917, 0.04851250350475311, -0.2552364468574524, -0.1686067432165146, 0.27601513266563416, -0.13219845294952393, 0.1075720340013504, 0.04272132366895676, -0.3180809020996094, 0.21420332789421082, 0.4336155652999878, -0.0955045074224472, 0.2555391788482666, -0.10411892831325531, -0.37407100200653076, -0.04334442317485809, -0.0004611760377883911, -0.006936985999345779, 0.05847781524062157, -0.2874816060066223, 0.3930327594280243, -0.1644323319196701, 0.41805484890937805, 0.23601678013801575, -0.043447062373161316, 0.07697506994009018, 0.2458246648311615, 0.05756978690624237, -0.17117184400558472, -0.038970720022916794, 0.16109731793403625, -0.053084202110767365, -0.03892162814736366, 0.2510773539543152, 0.10476641356945038, 0.03895672410726547, -0.6129189729690552, -0.11661259084939957, 0.40783530473709106, -0.1450701206922531, 0.028977805748581886, 0.11744748055934906, -0.2825808823108673, -0.01469501480460167, 0.07841856777667999, 0.06676797568798065, -0.21293342113494873, 0.5265262126922607, -0.10920781642198563, 0.3509646952152252, 0.23760011792182922, -0.20917204022407532, 0.05862293392419815, -0.3546157777309418, 0.15261687338352203, 0.3690546751022339, -0.09371399879455566, 0.2655068337917328, -0.03489205241203308, 0.15791165828704834, -0.024840332567691803, 0.03838231414556503, -0.17381003499031067, 0.09065772593021393, 0.07571201771497726, 0.12742161750793457, 0.16334860026836395, -0.24667897820472717, -0.06847664713859558, 0.11108370125293732, -0.023315850645303726, -0.5445920825004578, 0.44600313901901245, 0.378275990486145, -0.31875211000442505, -0.20040729641914368, 0.18253979086875916, 0.0208651814609766, -0.15192541480064392, -0.15856410562992096, 0.09938044846057892, 0.32913661003112793, 0.10604169964790344, 0.4277002513408661, 0.2490966022014618, 0.5537253618240356, 0.25867828726768494, -0.07841412723064423, 0.011658776551485062, 0.18060384690761566, -0.016162514686584473, -0.008878272026777267, 0.4509313404560089, 0.3124677240848541, 0.34958791732788086, 0.06926698982715607, 0.07788632065057755, -0.09122300148010254, -0.02556709572672844, 0.1811065524816513, 0.30074742436408997, -0.32892876863479614, 0.18827658891677856, -0.3204750418663025, -0.08795243501663208, -0.25681477785110474, 0.021470025181770325, -0.4793335497379303, 0.0243721641600132, 0.6836990118026733, -0.13734465837478638, -0.02940589189529419, 0.05668392777442932, -0.012136613018810749, -0.17484593391418457, 0.5652079582214355, 0.10152409970760345, 0.44293689727783203, -0.26547980308532715, -0.19315855205059052, -0.6449164152145386, 0.0674230307340622, -0.2939949929714203, -0.127537801861763, -0.12820665538311005, -0.02071455866098404, 0.22883835434913635, 0.0675758421421051, 0.2974357008934021, 0.07027184218168259, 0.4461001753807068, 0.1990683227777481, -0.1691250205039978, -0.09980176389217377, 0.13603678345680237, 0.28602632880210876, -0.2587052285671234, -0.48609697818756104, 0.08511681854724884, -0.1849605292081833, 0.03203844279050827, 0.1495666652917862, 0.24663883447647095, 0.1444607526063919, 0.06024681776762009, 0.32451331615448, 0.2798250615596771, 0.9440007209777832, -0.10890202969312668, -0.07530190050601959, -0.325796514749527, -0.06338877975940704, -0.21031410992145538, 0.14737537503242493, 0.20246878266334534, 0.49088332056999207, -0.3176027834415436, -0.0977497547864914, -0.27742424607276917, 0.15242904424667358, -0.2760637402534485, -0.016774121671915054, -0.08725710213184357, 0.061124056577682495, -0.008142828941345215, -0.20464064180850983, -0.036491379141807556, 0.023992806673049927, 0.08139681816101074, -0.2954951822757721, -0.16905859112739563, -0.17214372754096985, 0.39828193187713623, -0.6257889866828918, -0.27573680877685547, 0.18559984862804413, 0.1448710411787033, 0.22148185968399048, 0.1756024807691574, -0.3611602783203125, 0.38180044293403625, 0.2865965664386749, -0.06995756179094315, -0.4672617018222809, 0.3051883578300476, 0.03365127742290497, -0.023884236812591553, 0.03456657752394676, 0.1649753302335739, -0.06796174496412277, -0.4102429747581482, 0.02553577348589897, -0.08537829667329788 ]
https://github.com/huggingface/datasets/issues/5437
Can't load png dataset with 4 channel (RGBA)
Okay, I figured out what was wrong. When uploading my dataset via Google Drive, the images broke and Pillow couldn't open them. As a result, I solved the problem by downloading the ZIP archive
I try to create dataset which contains about 9000 png images 64x64 in size, and they are all 4-channel (RGBA). When trying to use load_dataset() then a dataset is created from only 2 images. What exactly interferes I can not understand.![Screenshot_20230117_212213.jpg](https://user-images.githubusercontent.com/41611046/212980147-9aa68e30-76e9-4b61-a937-c2fdabd56564.jpg)
34
Can't load png dataset with 4 channel (RGBA) I try to create dataset which contains about 9000 png images 64x64 in size, and they are all 4-channel (RGBA). When trying to use load_dataset() then a dataset is created from only 2 images. What exactly interferes I can not understand.![Screenshot_20230117_212213.jpg](https://user-images.githubusercontent.com/41611046/212980147-9aa68e30-76e9-4b61-a937-c2fdabd56564.jpg) Okay, I figured out what was wrong. When uploading my dataset via Google Drive, the images broke and Pillow couldn't open them. As a result, I solved the problem by downloading the ZIP archive
[ -0.006451040506362915, -0.18501058220863342, -0.09043470025062561, 0.6392431855201721, 0.18420769274234772, 0.09965509921312332, 0.4510180950164795, 0.015346461907029152, -0.23231376707553864, -0.007895141839981079, 0.0012568158563226461, -0.1571415513753891, 0.18264588713645935, -0.013937077485024929, -0.1180318295955658, 0.035587094724178314, 0.15007084608078003, 0.2177068442106247, 0.06150524318218231, 0.0958557277917862, -0.3790895342826843, 0.015778228640556335, -0.04056499898433685, -0.12376910448074341, -0.7359418869018555, 0.1672549545764923, 0.0018729288130998611, 0.11541604995727539, -0.23961926996707916, 0.005685129202902317, 0.23025284707546234, 0.209810271859169, -0.04255583509802818, 0.36582279205322266, -0.00011754082515835762, -0.011459793895483017, 0.2207949161529541, 0.003014547750353813, -0.09423695504665375, -0.07343988120555878, -0.14264646172523499, -0.09299223870038986, 0.1677495837211609, 0.016859881579875946, -0.06330449879169464, -0.2567424476146698, 0.08132795244455338, -0.013553809374570847, 0.6501777768135071, 0.20058906078338623, 0.15460464358329773, -0.17528864741325378, -0.0603531077504158, -0.010243062861263752, 0.25822895765304565, -0.15622572600841522, 0.20368488132953644, 0.09460771083831787, 0.11486776918172836, -0.06965003162622452, -0.08861372619867325, -0.23505085706710815, -0.17777232825756073, 0.18723012506961823, 0.11114922165870667, -0.16731400787830353, -0.26094087958335876, -0.650809645652771, 0.1691301465034485, 0.1611337661743164, 0.679637610912323, 0.12530076503753662, -0.1701684147119522, -0.016290318220853806, 0.09795737266540527, -0.24711747467517853, 0.21476495265960693, 0.6134516596794128, -0.1917811781167984, -0.1987922489643097, -0.4131321609020233, -0.025113457813858986, -0.4021623432636261, 0.29067134857177734, 0.1045767068862915, -0.2124520242214203, 0.11996890604496002, 0.37181150913238525, 0.342227041721344, 0.3565978407859802, 0.2334495484828949, -0.15010103583335876, 0.10147100687026978, -0.08596836775541306, -0.32290908694267273, 0.5635414123535156, -0.15927943587303162, 0.35317376255989075, 0.16762080788612366, 0.20044496655464172, -0.38936787843704224, 0.13184121251106262, -0.1277187615633011, 0.25280746817588806, 0.10493296384811401, -0.20395249128341675, -0.18466275930404663, 0.009010856039822102, 0.296575665473938, -0.31865808367729187, -0.035728055983781815, -0.08793336898088455, -0.15264229476451874, -0.2295410931110382, -0.14381113648414612, -0.4638974070549011, 0.005663041025400162, -0.16489480435848236, -0.20394648611545563, -0.4273933470249176, -0.05527598410844803, -0.09553857147693634, -0.3025650382041931, 0.23137551546096802, 0.17560403048992157, 0.0223517045378685, 0.08200015872716904, 0.3768503665924072, -0.35759642720222473, -0.1976347118616104, -0.014660125598311424, -0.2839176654815674, -0.1905992031097412, 0.0131057258695364, 0.14103630185127258, -0.4169104993343353, 0.13187827169895172, 0.23747970163822174, 0.2703760266304016, 0.0033470764756202698, 0.226557657122612, -0.45337700843811035, -0.16889739036560059, 0.3831205368041992, -0.0479154996573925, -0.13125568628311157, 0.022609330713748932, 0.0011422447860240936, 0.18973681330680847, 0.1877196729183197, -0.20717796683311462, 0.05326082929968834, -0.13125380873680115, 0.0922178328037262, 0.04170677065849304, 0.3212406635284424, -0.5346515774726868, 0.18249963223934174, 0.04298071563243866, -0.4459215998649597, -0.13955199718475342, -0.4086266756057739, 0.10627016425132751, -0.4603925943374634, 0.12271884828805923, 0.38352492451667786, -0.11108121275901794, 0.16716331243515015, -0.18308497965335846, -0.22942739725112915, 0.16508853435516357, 0.34569868445396423, -0.16328176856040955, -0.1842670738697052, -0.3044982850551605, -0.16958221793174744, 0.22775045037269592, 0.19980837404727936, -0.4591408967971802, 0.08892310410737991, -0.0948958694934845, -0.10012464970350266, -0.010780282318592072, 0.36840465664863586, 0.045020706951618195, 0.03426636755466461, 0.010605715215206146, 0.2911508083343506, -0.12702219188213348, -0.008691845461726189, 0.12481293082237244, -0.0930003970861435, 0.4719243049621582, 0.20991133153438568, -0.05462534353137016, 0.18904012441635132, 0.21583524346351624, -0.16350148618221283, 0.01965506747364998, -0.12419997155666351, 0.11712198704481125, -0.1785658895969391, 0.02235928736627102, -0.23966063559055328, 0.05416233092546463, 0.21257269382476807, -0.5340487360954285, 0.18442106246948242, 0.4450378715991974, 0.12816184759140015, -0.043818339705467224, 0.19937001168727875, -0.008522537536919117, -0.21191757917404175, -0.3406582176685333, -0.27793145179748535, -0.022962037473917007, 0.32356542348861694, -0.05724582448601723, -0.08930675685405731, -0.12034086883068085, 0.5823559761047363, -0.06383378803730011, 0.10547240823507309, -0.42866814136505127, 0.24824963510036469, -0.03367556631565094, 0.03313914313912392, 0.08427464962005615, -0.06250601261854172, -0.025581419467926025, 0.010954886674880981, -0.0040517933666706085, 0.1252666711807251, 0.07397694885730743, 0.17755885422229767, 0.049389418214559555, 0.30161812901496887, 0.26019108295440674, -0.4000908434391022, 0.13294343650341034, 0.11200511455535889, 0.10585761815309525, -0.2776913642883301, 0.08934597671031952, -0.08289416134357452, -0.01951153203845024, 0.18817085027694702, -0.06338799744844437, -0.0438164621591568, 0.23720961809158325, 0.1112603098154068, 0.059821195900440216, 0.20939016342163086, 0.1701100915670395, 0.18277938663959503, 0.4758812189102173, 0.01548037864267826, -0.29339542984962463, 0.07646258175373077, 0.09219367802143097, -0.03434617444872856, -0.12983781099319458, 0.31594306230545044, -0.17573222517967224, -0.1915225088596344, 0.0954054445028305, 0.3788466155529022, 0.4308708906173706, 0.32692158222198486, -0.17430609464645386, -0.013997619971632957, -0.2980302572250366, -0.4373070299625397, -0.005953297019004822, -0.06280066072940826, 0.17301931977272034, -0.035612478852272034, 0.2992487847805023, -0.15842945873737335, -0.3006536662578583, -0.20813515782356262, 0.1955939531326294, 0.1570989489555359, -0.30250561237335205, 0.1364404708147049, -0.08655332028865814, -0.3786607086658478, 0.0024109557271003723, 0.1022692397236824, -0.459368497133255, -0.11006896942853928, 0.02850310318171978, 0.24906501173973083, 0.2725036144256592, -0.3172019422054291, -0.2308264672756195, 0.1905590295791626, 0.1555996686220169, -0.1414383202791214, -0.056940775364637375, -0.014661110937595367, -0.08133124560117722, 0.035778988152742386, 0.23442426323890686, -0.09594932198524475, 0.6130003929138184, 0.032420650124549866, -0.13285532593727112, -0.019704142585396767, -0.012952558696269989, 0.06112949550151825, -0.2515926957130432, 0.4083283245563507, -0.28624147176742554, 0.4487638473510742, 0.13617292046546936, 0.05507316440343857, 0.08410439640283585, 0.19031110405921936, -0.2513589859008789, 0.20391757786273956, 0.013162428513169289, -0.01579108089208603, -0.14412283897399902, -0.6202090978622437, 0.13173577189445496, -0.19917532801628113, 0.20919707417488098, -0.09297303855419159, 0.1757410168647766, 0.06472380459308624, 0.37046319246292114, 0.011770904995501041, 0.1393434852361679, -0.1964544802904129, -0.30561596155166626, -0.049174606800079346, 0.06473623216152191, 0.0056342980824410915, -0.5118380188941956, 0.047115784138441086, 0.08227036148309708, 0.017802642658352852, 0.5064141750335693, -0.6892551183700562, 0.059784311801195145, -0.13243922591209412, 0.32035282254219055, -0.05590716004371643, -0.08123093843460083, 0.12385188788175583, -0.130038321018219, -0.008088329806923866, -0.1493341475725174, -0.11432735621929169, 0.059792064130306244, 0.036916010081768036, 0.3550272285938263, 0.2857832908630371, 0.21023428440093994, -0.25874242186546326, 0.31519609689712524, 0.10776656866073608, -0.18162257969379425, 0.39941778779029846, -0.15931223332881927, 0.5640856623649597, -0.1776386797428131, -0.0933360755443573, 0.32479381561279297, 0.01760321855545044, -0.015644453465938568, -0.008501216769218445, -0.037890199571847916, -0.2971121072769165, -0.16598086059093475, 0.07483160495758057, -0.40390247106552124, 0.19534534215927124, 0.09466715157032013, 0.01413966715335846, -0.1802556812763214, -0.1803056299686432, -0.32517337799072266, 0.2289123684167862, -0.15372604131698608, -0.30626052618026733, 0.050977665930986404, 0.35437846183776855, -0.017395319417119026, -0.10764136165380478, 0.08141519129276276, -0.07272007316350937, 0.3495961129665375, -0.11370214074850082, 0.32528170943260193, -0.2019391655921936, 0.2872910499572754, 0.2104528546333313, 0.009722690097987652, 1.002107858657837, -0.2285545915365219, 0.05340653285384178, 0.2582828998565674, -0.04843230918049812, -0.5789029002189636, 0.04190197214484215, -0.013238374143838882, -0.059452611953020096, -0.10639214515686035, 0.6275457739830017, -0.369234174489975, 0.004913331940770149, -0.10927797853946686, 0.3870283365249634, -0.06463573127985, -0.2042797952890396, -0.25177672505378723, -0.2613825798034668, -0.0597558319568634, -0.24969729781150818, -0.201251819729805, -0.05572241544723511, -0.3426649272441864, -0.09740680456161499, 0.18441785871982574, -0.20535415410995483, 0.14976157248020172, 0.1892969310283661, 0.14539176225662231, -0.11010236293077469, -0.07698804140090942, 0.6409248113632202, 0.13635602593421936, 0.42543503642082214, 0.5803248286247253, 0.13311903178691864, -0.1532430201768875, 0.019418371841311455, 0.026754066348075867, 0.08231902122497559, 0.14039814472198486, 0.15993288159370422, 0.21592938899993896, -0.2029300183057785, -0.009094975888729095, -0.0007432447746396065, 0.14265033602714539, 0.3577757179737091, -0.1603856235742569, -0.19039024412631989, -0.4537721872329712, 0.5128000378608704, -0.170046865940094, -0.07952582836151123, 0.6597916483879089, -0.055057406425476074, -0.09690241515636444, 0.21515868604183197, 0.04106844589114189, 0.9080705642700195, -0.13880464434623718, 0.24482688307762146, 0.15123480558395386, -0.34414583444595337, 0.23668190836906433, -0.07470301538705826, 0.27064818143844604, -0.2968592941761017, -0.066267229616642, -0.12050504982471466, -0.18695597350597382, 0.04061608016490936, 0.28054338693618774, 0.06528627872467041, 0.051265839487314224, -0.12723450362682343, 0.1406739056110382, 0.22568821907043457, 0.046856462955474854, -0.139241024851799, -0.11094006896018982, -0.23645296692848206, 0.1580694615840912, -0.08290943503379822, -0.3479311466217041, -0.04329290613532066, 0.1497938632965088, -0.20091579854488373, -0.1731262058019638, -0.13232482969760895, 0.3312828838825226, -0.3924179673194885, 0.23576799035072327, -0.188603475689888, -0.10331294685602188, 0.0576569028198719, 0.5383594036102295, -0.23858357965946198, -0.23104916512966156, -0.18923881649971008, 0.05825590342283249, -0.14368414878845215, -0.24473240971565247, -0.10638801008462906, -0.3441648483276367, 0.23749805986881256, -0.16351963579654694, -0.5030161738395691, -0.06810315698385239, 0.025744549930095673, -0.37585681676864624, -0.018231496214866638, 0.2811065912246704, -0.22667361795902252, 0.14381058514118195, -0.40835243463516235, -0.0689462274312973, 0.00719694048166275, -0.2049456238746643, 0.04546879976987839, 0.14640241861343384, 0.028257742524147034, 0.18230585753917694, 0.35477831959724426, -0.23278145492076874, -0.12996163964271545, 0.33191582560539246, 0.010981861501932144, 0.02404632791876793, 0.34404996037483215, 0.21963290870189667, 0.020786434412002563, -0.13583558797836304, 0.08008932322263718, 0.037771161645650864, -0.30383726954460144, 0.013681435957551003, -0.089386485517025, 0.05608725547790527, 0.09081290662288666, -0.10285089910030365, -0.1826273649930954, -0.10194509476423264, 0.06554558873176575, -0.5495477914810181, -0.14693106710910797, 0.10826346278190613, -0.41503623127937317, 0.22867022454738617, -0.06731542944908142, -0.5204959511756897, 0.3348187804222107, 0.35923340916633606, -0.15711642801761627, 0.2268228828907013, -0.04402489215135574, 0.34321558475494385, 0.1984977424144745, 0.19279396533966064, 0.24507886171340942, -0.15190686285495758, -0.008146539330482483, 0.2779909372329712, -0.2654789090156555, -0.06450213491916656, -0.02655254490673542, 0.19512015581130981, 0.08183962106704712, -0.16479338705539703, -0.07979907095432281, -0.36720460653305054, -0.22814467549324036, -0.02083229273557663, 0.4193979799747467, -0.005142316222190857, -0.26506251096725464, -0.23345400393009186, 0.18324153125286102, -0.05591791123151779, 0.038794249296188354, -0.0008973777294158936, -0.3223497271537781, 0.1919899880886078, 0.39878323674201965, -0.1538792997598648, 0.17836040258407593, -0.10757600516080856, -0.37047842144966125, 0.04299595579504967, -0.032574206590652466, -0.0800308883190155, 0.1942189633846283, -0.33971118927001953, 0.31344684958457947, -0.20866888761520386, 0.39568015933036804, 0.24609339237213135, -0.014639203436672688, 0.06888172030448914, 0.21252891421318054, 0.06945884227752686, -0.19595278799533844, 0.0016723070293664932, 0.25771626830101013, -0.04628216475248337, -0.12429961562156677, 0.14510560035705566, 0.14082372188568115, 0.04609188437461853, -0.6318976879119873, -0.04263583570718765, 0.45801475644111633, -0.19364619255065918, -0.0214103814214468, 0.06586626917123795, -0.31666162610054016, -0.05345446243882179, 0.05870984494686127, 0.059026774019002914, -0.22812464833259583, 0.40882086753845215, 0.0038566887378692627, 0.22816751897335052, 0.26493367552757263, -0.039256561547517776, 0.04586483910679817, -0.434091717004776, 0.1475682407617569, 0.44464534521102905, -0.05845847725868225, 0.2698098123073578, 0.005778297781944275, 0.2039346694946289, 0.012333816848695278, -0.006041798274964094, -0.1723090410232544, 0.02418145164847374, 0.07142506539821625, 0.17703793942928314, 0.0009752810001373291, -0.3535214364528656, -0.08299510926008224, 0.23278877139091492, -0.0004930570721626282, -0.4902880787849426, 0.5703142881393433, 0.3233746886253357, -0.3831285238265991, -0.07697498798370361, 0.18567949533462524, 0.07362885773181915, -0.17023202776908875, -0.1723829209804535, 0.0980425477027893, 0.3096826672554016, 0.05834249034523964, 0.47627344727516174, 0.26846158504486084, 0.452762633562088, 0.1526401937007904, -0.03524795547127724, 0.018530940636992455, 0.19535605609416962, -0.04757167771458626, 0.0689394623041153, 0.4352530539035797, 0.4517167806625366, 0.22983545064926147, 0.0839836597442627, 0.07909505814313889, -0.05150419846177101, 0.18869167566299438, 0.13619549572467804, 0.41007575392723083, -0.338321328163147, -0.06080048531293869, -0.3053892254829407, -0.21515527367591858, -0.18651829659938812, -0.15936341881752014, -0.4115144610404968, -0.05460008233785629, 0.6641464829444885, -0.1708516627550125, -0.06238439679145813, 0.03242478892207146, 0.008683737367391586, -0.1757398098707199, 0.6275927424430847, 0.25793227553367615, 0.3058362901210785, -0.24335598945617676, -0.2532897889614105, -0.6076585650444031, 0.14413654804229736, -0.24525186419487, -0.01351151429116726, -0.038744036108255386, -0.016148049384355545, 0.32128962874412537, 0.08603212237358093, 0.26579606533050537, 0.11837387830018997, 0.5578724145889282, 0.20324988663196564, -0.18983212113380432, 0.05123455449938774, 0.3594507575035095, 0.24598830938339233, -0.3505874574184418, -0.41011568903923035, 0.20204363763332367, -0.09361758083105087, 0.03560258448123932, 0.19882887601852417, 0.30418944358825684, 0.1191815733909607, -0.036969222128391266, 0.26174694299697876, 0.2673020362854004, 0.8625835180282593, -0.07428600639104843, 0.007741531357169151, -0.35986122488975525, 0.04371871054172516, -0.11031895875930786, 0.0583391897380352, 0.30275338888168335, 0.5766506195068359, -0.14699684083461761, -0.002934403717517853, -0.1855488270521164, 0.2926706373691559, -0.34377241134643555, -0.04370105266571045, -0.05903642624616623, 0.005816042423248291, -0.04634172096848488, -0.2720194458961487, 0.03624720871448517, -0.04830767959356308, 0.0821082815527916, -0.39937907457351685, -0.1681896448135376, -0.16851294040679932, 0.30869320034980774, -0.6044812202453613, -0.24576450884342194, 0.23840214312076569, 0.1168602854013443, 0.28775736689567566, 0.16367249190807343, -0.3578820824623108, 0.22649866342544556, 0.23300904035568237, -0.17557066679000854, -0.3822755217552185, 0.3185206949710846, -0.035216085612773895, -0.027756420895457268, 0.02421996369957924, 0.27385270595550537, -0.024620864540338516, -0.4433194398880005, -0.02894909679889679, -0.0870676189661026 ]
https://github.com/huggingface/datasets/issues/5435
Wrong statement in "Load a Dataset in Streaming mode" leads to data leakage
Thanks for reporting, @HaoyuYang59. Please note that these are different "dataset" objects: our docs refer to Hugging Face `datasets.Dataset` and not to TensorFlow `tf.data.Dataset`. Our `datasets.Dataset.shuffle` method does not have a `reshuffle_each_iteration` argument. Therefore, I would say the statement in our docs is True because they refer to `datasets.Dataset.shuffle`, `datasets.Dataset.skip` and `datasets.Dataset.take`. I think this issue is restricted to TensorFlow dataset, and this would be addressed by them in the issue you opened in their repo: https://github.com/tensorflow/tensorflow/issues/59279
### Describe the bug In the [Split your dataset with take and skip](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#split-your-dataset-with-take-and-skip), it states: > Using take (or skip) prevents future calls to shuffle from shuffling the dataset shards order, otherwise the taken examples could come from other shards. In this case it only uses the shuffle buffer. Therefore it is advised to shuffle the dataset before splitting using take or skip. See more details in the [Shuffling the dataset: shuffle](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#iterable-dataset-shuffling) section.` >> \# You can also create splits from a shuffled dataset >> train_dataset = shuffled_dataset.skip(1000) >> eval_dataset = shuffled_dataset.take(1000) Where the shuffled dataset comes from: `shuffled_dataset = dataset.shuffle(buffer_size=10_000, seed=42)` At least in Tensorflow 2.9/2.10/2.11, [docs](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shuffle) states the `reshuffle_each_iteration` argument is `True` by default. This means the dataset would be shuffled after each epoch, and as a result **the validation data would leak into training test**. ### Steps to reproduce the bug N/A ### Expected behavior The `reshuffle_each_iteration` argument should be set to `False`. ### Environment info Tensorflow 2.9/2.10/2.11
77
Wrong statement in "Load a Dataset in Streaming mode" leads to data leakage ### Describe the bug In the [Split your dataset with take and skip](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#split-your-dataset-with-take-and-skip), it states: > Using take (or skip) prevents future calls to shuffle from shuffling the dataset shards order, otherwise the taken examples could come from other shards. In this case it only uses the shuffle buffer. Therefore it is advised to shuffle the dataset before splitting using take or skip. See more details in the [Shuffling the dataset: shuffle](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#iterable-dataset-shuffling) section.` >> \# You can also create splits from a shuffled dataset >> train_dataset = shuffled_dataset.skip(1000) >> eval_dataset = shuffled_dataset.take(1000) Where the shuffled dataset comes from: `shuffled_dataset = dataset.shuffle(buffer_size=10_000, seed=42)` At least in Tensorflow 2.9/2.10/2.11, [docs](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shuffle) states the `reshuffle_each_iteration` argument is `True` by default. This means the dataset would be shuffled after each epoch, and as a result **the validation data would leak into training test**. ### Steps to reproduce the bug N/A ### Expected behavior The `reshuffle_each_iteration` argument should be set to `False`. ### Environment info Tensorflow 2.9/2.10/2.11 Thanks for reporting, @HaoyuYang59. Please note that these are different "dataset" objects: our docs refer to Hugging Face `datasets.Dataset` and not to TensorFlow `tf.data.Dataset`. Our `datasets.Dataset.shuffle` method does not have a `reshuffle_each_iteration` argument. Therefore, I would say the statement in our docs is True because they refer to `datasets.Dataset.shuffle`, `datasets.Dataset.skip` and `datasets.Dataset.take`. I think this issue is restricted to TensorFlow dataset, and this would be addressed by them in the issue you opened in their repo: https://github.com/tensorflow/tensorflow/issues/59279
[ -0.23544657230377197, -0.34489110112190247, 0.04568574205040932, 0.20798638463020325, 0.09651216864585876, -0.10035935044288635, 0.15472204983234406, -0.008569862693548203, -0.08035513758659363, 0.21870076656341553, -0.22085142135620117, 0.2644960880279541, -0.1643703430891037, 0.28886279463768005, 0.21823598444461823, -0.1957055777311325, 0.14990991353988647, -0.19358310103416443, -0.18910473585128784, -0.046543728560209274, -0.0014304444193840027, -0.012010989710688591, -0.18386411666870117, -0.270368754863739, -0.05526101216673851, -0.09010914713144302, -0.1149226576089859, 0.21950992941856384, -0.20422899723052979, -0.07785367220640182, 0.08507328480482101, 0.07483866810798645, -0.07096673548221588, 0.41982629895210266, -0.00011249291856074706, 0.05848619341850281, 0.2393365204334259, -0.16783520579338074, -0.11360438168048859, -0.12795589864253998, -0.39259055256843567, 0.16806024312973022, -0.058447979390621185, 0.01616499572992325, 0.0026175640523433685, 0.0543271079659462, -0.1399567574262619, -0.1103186160326004, 0.7499920725822449, 0.2933535575866699, 0.12125083804130554, 0.6014705896377563, 0.13569293916225433, -0.030610285699367523, 0.184482604265213, -0.022834211587905884, -0.05159340053796768, 0.09308013319969177, -0.11461861431598663, 0.12219114601612091, -0.12818193435668945, 0.4803275465965271, 0.010277515277266502, 0.014538032002747059, 0.2660360038280487, 0.08165635168552399, -0.28066304326057434, -0.28393054008483887, -0.13237929344177246, 0.33054301142692566, 0.016582593321800232, -0.1286230981349945, -0.423087477684021, -0.5302630066871643, -0.07757043093442917, -0.25403156876564026, 0.16878542304039001, 0.31622007489204407, -0.26922568678855896, 0.09498529136180878, -0.45657795667648315, -0.08555760979652405, 0.04704390466213226, -0.07773672044277191, 0.10548783838748932, 0.20490917563438416, -0.12012015283107758, 0.013940569013357162, 0.18689580261707306, 0.18196719884872437, 0.12177527695894241, -0.1568557471036911, -0.08734005689620972, -0.04649615287780762, -0.32424479722976685, -0.05827521160244942, 0.018265962600708008, -0.04351786524057388, 0.25105398893356323, 0.24550491571426392, 0.12433429062366486, -0.05468776077032089, -0.14564374089241028, 0.06936702877283096, 0.4169221520423889, 0.09547701478004456, -0.23853179812431335, 0.06566844135522842, -0.16318883001804352, 0.2421063482761383, 0.12725211679935455, -0.20407328009605408, 0.27122852206230164, 0.06541262567043304, -0.04472905397415161, -0.08036649972200394, 0.2290409952402115, 0.04863547906279564, -0.48015061020851135, 0.006066266447305679, -0.25732457637786865, -0.06598015129566193, 0.027866724878549576, 0.3486517667770386, -0.11407895386219025, -0.030711844563484192, -0.0862051397562027, 0.07453964650630951, -0.31493380665779114, -0.2760905623435974, -0.4362916052341461, -0.20391534268856049, -0.24845536053180695, 0.3344215452671051, -0.08944183588027954, -0.4477505087852478, 0.300959050655365, 0.17426766455173492, 0.21555748581886292, -0.12144087255001068, -0.13960036635398865, -0.12904715538024902, 0.2056783139705658, 0.32006406784057617, 0.019334059208631516, -0.04400336369872093, 0.21132676303386688, 0.17156317830085754, 0.13598641753196716, 0.23593679070472717, -0.3625187277793884, -0.3017835021018982, 0.28755509853363037, 0.13377343118190765, -0.2316911816596985, 0.12135815620422363, -0.13973423838615417, 0.19252747297286987, 0.1860646903514862, -0.10538420081138611, 0.07910294830799103, -0.09463629126548767, -0.26550114154815674, -0.13763217628002167, 0.3183012306690216, 0.25979721546173096, -0.01451207883656025, -0.2927965521812439, -0.01657336764037609, -0.0784156322479248, 0.3273833096027374, 0.399224191904068, -0.20589734613895416, 0.01975773647427559, -0.17888842523097992, 0.04916355013847351, 0.25504979491233826, 0.03723638877272606, -0.29663413763046265, 0.0794396623969078, -0.2762736976146698, 0.4363406300544739, 0.09376507252454758, -0.23488624393939972, 0.2108757346868515, -0.1230061948299408, 0.19659283757209778, 0.17010511457920074, -0.29746153950691223, 0.23015761375427246, -0.3314230144023895, -0.21440282464027405, 0.02296099252998829, -0.0885656327009201, -0.10576803982257843, 0.0045170858502388, -0.011880502104759216, 0.09005693346261978, 0.32197830080986023, 0.13575536012649536, -0.08059678971767426, -0.06460902094841003, 0.30119115114212036, 0.274477481842041, -0.0836980789899826, -0.0751425176858902, -0.23987960815429688, -0.01625204086303711, 0.1495244801044464, -0.06842197477817535, 0.1315668225288391, -0.2434065192937851, -0.15851444005966187, -0.09498996287584305, 0.009077738970518112, -0.42252054810523987, 0.09986603260040283, 0.1874605417251587, 0.031246565282344818, 0.07549531757831573, -0.38544782996177673, 0.18550723791122437, -0.4902479946613312, 0.25693652033805847, -0.43164947628974915, 0.3906897306442261, 0.13248300552368164, -0.13831748068332672, -0.005747579038143158, -0.008710213005542755, -0.0433490127325058, -0.10849756747484207, -0.1500043272972107, 0.7038711905479431, 0.26670098304748535, 0.30734848976135254, -0.6953915953636169, 0.20352241396903992, 0.23540395498275757, -0.15391039848327637, -0.13558204472064972, 0.12027038633823395, -0.06427871435880661, -0.047235630452632904, -0.1495910882949829, 0.4379468560218811, -0.3681483268737793, -0.03404129296541214, 0.08749160170555115, -0.13492757081985474, 0.033369287848472595, -0.02636195905506611, -0.19242653250694275, -0.2663404941558838, 0.1016373336315155, -0.3130587935447693, 0.08839398622512817, -0.00792994536459446, -0.38083943724632263, -0.053862474858760834, 0.6055442094802856, -0.009939834475517273, -0.17527934908866882, 0.04437175393104553, -0.026049606502056122, -0.27769023180007935, 0.2018735110759735, 0.3061100244522095, 0.6052108407020569, 0.11097393929958344, 0.007243096828460693, 0.24955138564109802, 0.05643080174922943, -0.32360655069351196, 0.2088240683078766, 0.13073211908340454, 0.09769493341445923, 0.36191073060035706, -0.11969361454248428, 0.005567828193306923, -0.3070567548274994, 0.32289764285087585, 0.1819794923067093, 0.18591707944869995, -0.38535013794898987, 0.0650656446814537, -0.1290351152420044, -0.3554226756095886, -0.38227036595344543, -0.1865687370300293, -0.020128171890974045, -0.3426096439361572, 0.02350373938679695, 0.4540461003780365, -0.28243041038513184, 0.07602707296609879, 0.20265398919582367, 0.35385239124298096, 0.043822720646858215, 0.22649909555912018, -0.13547536730766296, -0.002891934011131525, -0.08641991764307022, 0.0754193514585495, 0.12583312392234802, 0.027341196313500404, 0.28975170850753784, -0.16584382951259613, -0.15624640882015228, 0.002592138946056366, -0.1836923360824585, 0.17297431826591492, -0.12969325482845306, 0.04749412089586258, 0.07583022117614746, 0.13789509236812592, -0.025672882795333862, -0.42680996656417847, 0.014934459701180458, -0.6360408663749695, -0.1517324149608612, 0.11233779788017273, 0.19356054067611694, 0.17898209393024445, -0.19833578169345856, -0.3826800286769867, -0.22830866277217865, -0.30728378891944885, 0.1503189504146576, -0.014351440593600273, -0.04545369744300842, 0.425342857837677, -0.12710034847259521, 0.005904375575482845, -0.2797063887119293, 0.007395641878247261, -0.28942379355430603, -0.6099786162376404, -0.07552513480186462, -0.21274890005588531, -0.3290098309516907, -0.0031960271298885345, 0.04496190696954727, 0.040697790682315826, 0.3763132691383362, -0.32580381631851196, -0.11870342493057251, -0.1908770352602005, -0.1993369609117508, -0.2779814600944519, -0.13120532035827637, 0.1941947042942047, -0.21959835290908813, 0.05807426571846008, -0.2155081331729889, 0.1405177116394043, 0.10965892672538757, 0.07504192739725113, 0.20091399550437927, -0.006399739533662796, 0.439609557390213, 0.5253356099128723, 0.9366569519042969, 0.4223906695842743, 0.18035632371902466, 0.016002140939235687, 0.04498368501663208, 0.2558751702308655, -0.3451862335205078, -0.18951070308685303, 0.3886045217514038, -0.01759159564971924, -0.15784740447998047, 0.2696409821510315, -0.06314769387245178, 0.04055725783109665, -0.20391179621219635, 0.14848196506500244, -0.09525537490844727, -0.3588328957557678, 0.10224652290344238, 0.061269089579582214, 0.07981722801923752, 0.19115611910820007, 0.36992231011390686, 0.10050937533378601, -0.2763013541698456, -0.03984002768993378, 0.24321939051151276, 0.4861578345298767, 0.02887444570660591, -0.3120976686477661, -0.05691702291369438, -0.34649428725242615, -0.06283867359161377, 0.2130417674779892, 0.4788254499435425, -0.09228314459323883, -0.2475258708000183, 0.22969917953014374, 0.27119940519332886, 0.6024084091186523, 0.0493793785572052, 0.032646868377923965, -0.09978717565536499, -0.0980370044708252, -0.21797841787338257, -0.08802942931652069, -0.4580978453159332, -0.0973086878657341, 0.0642407014966011, 0.29881107807159424, -0.3658042252063751, -0.13509760797023773, 0.15826816856861115, -0.03338096663355827, -0.039743952453136444, -0.014712641015648842, -0.21897658705711365, -0.053468845784664154, -0.17979852855205536, 0.11287938058376312, 0.14378711581230164, 0.2055177241563797, -0.4560324251651764, 0.18294908106327057, 0.1608162820339203, 0.22104042768478394, -0.0077207088470458984, -0.17873990535736084, 0.2801767587661743, 0.2519252598285675, 0.0068954043090343475, 0.4139948785305023, -0.12676376104354858, 0.07708347588777542, 0.32920703291893005, 0.18882159888744354, -0.42371702194213867, -0.1534743309020996, 0.1824025958776474, -0.12480644136667252, 0.4015730023384094, -0.02397693321108818, 0.11137355118989944, 0.23335742950439453, 0.24919620156288147, -0.38765889406204224, 0.20145286619663239, 0.14052794873714447, -0.03356538340449333, -0.022725101560354233, -0.6676735281944275, 0.15108534693717957, 0.0005064439028501511, 0.09187090396881104, 0.6908634901046753, 0.08046937733888626, -0.28863370418548584, 0.3603839874267578, 0.08697393536567688, 0.7724895477294922, 0.28014665842056274, 0.10805348306894302, 0.7010310888290405, 0.13878236711025238, 0.3682256042957306, -0.4084959626197815, 0.16222088038921356, -0.002551998943090439, -0.6964779496192932, -0.057046689093112946, -0.11015184223651886, 0.04776499420404434, -0.3234471082687378, -0.16696318984031677, 0.16651608049869537, 0.04156172275543213, 0.6370077133178711, 0.054598867893218994, 0.0364006832242012, -0.28414398431777954, -0.0680241733789444, -0.09046487510204315, 0.08189785480499268, -0.0213283970952034, 0.17487604916095734, 0.006097113713622093, -0.15121649205684662, 0.2591652572154999, 0.03858821094036102, -0.16035127639770508, 0.04536420851945877, -0.33826181292533875, 0.12910589575767517, -0.08053094148635864, -0.14759671688079834, -0.053503572940826416, 0.42038747668266296, 0.1696896255016327, -0.09341630339622498, -0.13710014522075653, 0.16635696589946747, -0.07121754437685013, 0.24655698239803314, -0.07125560194253922, -0.010569139383733273, 0.4186083972454071, 0.03631780296564102, -0.08759336173534393, 0.015546616166830063, -0.019632484763860703, -0.2204633355140686, -0.23783504962921143, -0.07751454412937164, 0.2961292266845703, -0.2720973491668701, -0.05138532817363739, 0.024774398654699326, 0.06274139881134033, -0.09366917610168457, 0.09206706285476685, -0.07876534759998322, -0.22987611591815948, 0.06897686421871185, -0.0729701966047287, -0.18937569856643677, -0.17700406908988953, 0.5593719482421875, -0.09717639535665512, 0.31923943758010864, 0.24026456475257874, -0.10995128005743027, -0.17281003296375275, -0.06058773025870323, 0.14381492137908936, 0.13810774683952332, -0.10916803777217865, 0.09098941087722778, -0.15990781784057617, 0.22763828933238983, -0.07795172929763794, 0.045016221702098846, 0.097882941365242, -0.0438133180141449, -0.055983126163482666, -0.3540727496147156, -0.019830940291285515, 0.398584246635437, 0.05108792334794998, 0.025748031213879585, -0.014996036887168884, 0.4986288249492645, -0.02082088775932789, 0.3116264343261719, -0.32314997911453247, 0.03302029147744179, 0.1898837387561798, 0.026243973523378372, 0.02039187029004097, -0.12992584705352783, 0.3310292065143585, -0.11789961159229279, -0.015058895573019981, 0.24514782428741455, -0.2587681710720062, -0.157187819480896, -0.055820245295763016, 0.10012590885162354, 0.1208246648311615, -0.13079339265823364, -0.10320837795734406, -0.10201049596071243, -0.14533652365207672, -0.1696026772260666, 0.5689675211906433, 0.20003947615623474, 0.09565085917711258, 0.08438662439584732, 0.4425378739833832, 0.23964858055114746, -0.11296678334474564, -0.09161587059497833, -0.23405146598815918, -0.23580442368984222, -0.16355252265930176, -0.040155649185180664, -0.1336749643087387, -0.09832820296287537, -0.07807572931051254, 0.09721279889345169, 0.38344478607177734, 0.1265561729669571, 0.20169588923454285, -0.15135009586811066, 0.014194317162036896, -0.29692766070365906, 0.4691108465194702, 0.31398409605026245, -0.22968605160713196, -0.04642082378268242, 0.22378355264663696, 0.14966216683387756, 0.0999528020620346, 0.007945443503558636, 0.12685368955135345, 0.3512619137763977, 0.10740689933300018, 0.13450263440608978, -0.05969185382127762, 0.03822638839483261, -0.2169424444437027, 0.19584596157073975, 0.2254101037979126, -0.35598254203796387, 0.5487821698188782, 0.5574434399604797, -0.20019742846488953, 0.29326698184013367, -0.012491675093770027, -0.09194895625114441, 0.0425235778093338, 0.08558762818574905, 0.028790831565856934, 0.6140217781066895, 0.03253352269530296, -0.05878763273358345, 0.01603846251964569, -0.5564960241317749, -0.3945782780647278, 0.533665120601654, -0.5369029641151428, 0.29883676767349243, -0.025412261486053467, 0.41151103377342224, -0.06058896705508232, -0.1772090494632721, -0.2615615427494049, 0.13729937374591827, -0.15068361163139343, 0.04530833289027214, -0.20581947267055511, -0.10901030153036118, -0.0672135204076767, 0.19593282043933868, 0.10325092077255249, -0.11143720149993896, 0.28303319215774536, -0.07117053866386414, -0.16469644010066986, -0.20373883843421936, -0.33907949924468994, 0.18661722540855408, 0.25425106287002563, -0.20471073687076569, 0.2858591675758362, 0.07662511616945267, 0.15881335735321045, 0.20467962324619293, 0.09897390753030777, 0.06462956964969635, 0.10620135813951492, 0.28457528352737427, 0.13736696541309357, 0.3207719027996063, -0.14272058010101318, 0.08630595356225967, 0.42819884419441223, 0.060586512088775635, -0.03157467022538185, 0.1979006826877594, 0.14531980454921722, -0.20446647703647614, -0.027038563042879105, 0.2717544734477997, 0.2988153100013733, -0.769307553768158, 0.2755070626735687, -0.1224726140499115, 0.2049749195575714, 0.0069615766406059265, -0.22698602080345154, -0.3244176506996155, 0.031102515757083893, 0.10314187407493591, -0.20089705288410187, 0.1834474802017212, 0.006275998428463936, 0.08511438965797424, 0.0742301344871521, 0.2714448869228363, 0.03843836486339569, -0.20913970470428467, -0.17382661998271942, -0.29410290718078613, -0.5679752826690674, 0.11084097623825073, 0.3083239495754242, 0.2712390124797821, 0.15478792786598206, 0.05513051897287369, -0.16383323073387146, 0.3939553499221802, -0.5093773603439331, -0.3289208710193634, 0.12835362553596497, 0.19940732419490814, -0.17010480165481567, -0.23147912323474884, -0.340104341506958, 0.099006786942482, 0.05256812274456024, -0.13187624514102936, 0.37933188676834106, 0.06369495391845703, 0.0058662183582782745, 0.2705327868461609, 0.16245749592781067, 0.09854623675346375, 0.041483886539936066, -0.058604851365089417, 0.11313826590776443, 0.19820240139961243, -0.0670362189412117, 0.05215912312269211, -0.1307872086763382, -0.1397157460451126, -0.4249405562877655, -0.0269930437207222, -0.23534610867500305, 0.6089177131652832, 0.037397414445877075, -0.37192878127098083, -0.25787433981895447, 0.32498466968536377, 0.23172660171985626, -0.23092947900295258, -0.47015276551246643, 0.1820252537727356, 0.039036236703395844, 0.2610388398170471, 0.3281905949115753, 0.49022746086120605, -0.23191043734550476, 0.15314102172851562, -0.07683255523443222, -0.42648181319236755, 0.7219134569168091, -0.6076457500457764, -0.031885307282209396, -0.04956875368952751, 0.08953553438186646, 0.267376184463501, -0.49895909428596497, -0.513610303401947, 0.03194452077150345, 0.14391474425792694, -0.26214855909347534, -0.1612081676721573, 0.35243433713912964, 0.10210680961608887, -0.013845633715391159, -0.016849089413881302, 0.31818872690200806, 0.36641761660575867, -0.39785557985305786, 0.5318869352340698, -0.22621722519397736 ]
https://github.com/huggingface/datasets/issues/5435
Wrong statement in "Load a Dataset in Streaming mode" leads to data leakage
Also note that you are referring to an outdated documentation page: datasets 1.10.2 version Current datasets version is 2.8.0 and the corresponding documentation page is: https://huggingface.co/docs/datasets/stream#split-dataset
### Describe the bug In the [Split your dataset with take and skip](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#split-your-dataset-with-take-and-skip), it states: > Using take (or skip) prevents future calls to shuffle from shuffling the dataset shards order, otherwise the taken examples could come from other shards. In this case it only uses the shuffle buffer. Therefore it is advised to shuffle the dataset before splitting using take or skip. See more details in the [Shuffling the dataset: shuffle](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#iterable-dataset-shuffling) section.` >> \# You can also create splits from a shuffled dataset >> train_dataset = shuffled_dataset.skip(1000) >> eval_dataset = shuffled_dataset.take(1000) Where the shuffled dataset comes from: `shuffled_dataset = dataset.shuffle(buffer_size=10_000, seed=42)` At least in Tensorflow 2.9/2.10/2.11, [docs](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shuffle) states the `reshuffle_each_iteration` argument is `True` by default. This means the dataset would be shuffled after each epoch, and as a result **the validation data would leak into training test**. ### Steps to reproduce the bug N/A ### Expected behavior The `reshuffle_each_iteration` argument should be set to `False`. ### Environment info Tensorflow 2.9/2.10/2.11
26
Wrong statement in "Load a Dataset in Streaming mode" leads to data leakage ### Describe the bug In the [Split your dataset with take and skip](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#split-your-dataset-with-take-and-skip), it states: > Using take (or skip) prevents future calls to shuffle from shuffling the dataset shards order, otherwise the taken examples could come from other shards. In this case it only uses the shuffle buffer. Therefore it is advised to shuffle the dataset before splitting using take or skip. See more details in the [Shuffling the dataset: shuffle](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#iterable-dataset-shuffling) section.` >> \# You can also create splits from a shuffled dataset >> train_dataset = shuffled_dataset.skip(1000) >> eval_dataset = shuffled_dataset.take(1000) Where the shuffled dataset comes from: `shuffled_dataset = dataset.shuffle(buffer_size=10_000, seed=42)` At least in Tensorflow 2.9/2.10/2.11, [docs](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shuffle) states the `reshuffle_each_iteration` argument is `True` by default. This means the dataset would be shuffled after each epoch, and as a result **the validation data would leak into training test**. ### Steps to reproduce the bug N/A ### Expected behavior The `reshuffle_each_iteration` argument should be set to `False`. ### Environment info Tensorflow 2.9/2.10/2.11 Also note that you are referring to an outdated documentation page: datasets 1.10.2 version Current datasets version is 2.8.0 and the corresponding documentation page is: https://huggingface.co/docs/datasets/stream#split-dataset
[ -0.3435989022254944, -0.3208901286125183, 0.02028513327240944, 0.11951351165771484, 0.04799371212720871, -0.10927799344062805, 0.1533891260623932, 0.01320982538163662, -0.1192818433046341, 0.22939811646938324, -0.17026321589946747, 0.31560957431793213, -0.16571290791034698, 0.2511996626853943, 0.20940928161144257, -0.19395063817501068, 0.137093186378479, -0.16023993492126465, -0.20175552368164062, -0.03363290801644325, -0.0011155419051647186, -0.08862774819135666, -0.23961471021175385, -0.2922776937484741, -0.015145581215620041, -0.11337525397539139, -0.08178157359361649, 0.18157042562961578, -0.26260441541671753, -0.1256134957075119, 0.06876474618911743, 0.06234261766076088, -0.023616481572389603, 0.3477713167667389, -0.00010852064588107169, 0.03612542152404785, 0.31024205684661865, -0.14702725410461426, -0.16460254788398743, -0.16698332130908966, -0.4811919331550598, 0.16344618797302246, -0.061109043657779694, 0.02167520672082901, 0.028040394186973572, 0.08932851254940033, -0.068387471139431, -0.15161366760730743, 0.6937276721000671, 0.3087536096572876, 0.1542941778898239, 0.570777416229248, 0.15295332670211792, -0.0774974375963211, 0.15108183026313782, -0.06792381405830383, -0.037545472383499146, 0.10963241755962372, -0.02613101899623871, 0.1647917479276657, -0.14933976531028748, 0.5039147734642029, 0.015026861801743507, 0.022103069350123405, 0.2551237642765045, 0.012911354191601276, -0.21948456764221191, -0.3193814754486084, -0.12607869505882263, 0.33368217945098877, 0.10540677607059479, -0.14599516987800598, -0.4356529712677002, -0.48737862706184387, -0.025944672524929047, -0.29580438137054443, 0.18368352949619293, 0.3591172695159912, -0.300865113735199, 0.08537536859512329, -0.39193660020828247, -0.1451156735420227, -0.03367412090301514, -0.0952194333076477, 0.11259795725345612, 0.23267069458961487, -0.1300683170557022, -0.03119547665119171, 0.22156985104084015, 0.18484163284301758, 0.16179591417312622, -0.1817869395017624, -0.06295289099216461, -0.04119615629315376, -0.3032563626766205, -0.10210283100605011, -0.01843021810054779, -0.07060424238443375, 0.16488829255104065, 0.2596198618412018, 0.13541339337825775, -0.004510413855314255, -0.09011301398277283, 0.14315198361873627, 0.40263989567756653, 0.10407216846942902, -0.1497531533241272, 0.12042146176099777, -0.14552240073680878, 0.21617715060710907, 0.1451224982738495, -0.19978126883506775, 0.22823436558246613, 0.05525258183479309, -0.05019361525774002, -0.08038362115621567, 0.2092003971338272, 0.040600333362817764, -0.49104395508766174, -0.001190938986837864, -0.28456902503967285, -0.08568877726793289, 0.05598032474517822, 0.3594910800457001, -0.1151958703994751, -0.02598586678504944, -0.13310471177101135, 0.034984227269887924, -0.3164656162261963, -0.29708218574523926, -0.42363977432250977, -0.1551533341407776, -0.2521037459373474, 0.3015071153640747, -0.06179261952638626, -0.5027678608894348, 0.3094910681247711, 0.1562078893184662, 0.14513282477855682, -0.08036769926548004, -0.07634096592664719, -0.11251631379127502, 0.19515077769756317, 0.3396328389644623, 0.05473894253373146, -0.0771285817027092, 0.13927355408668518, 0.14837677776813507, 0.13145774602890015, 0.2527143955230713, -0.40155118703842163, -0.35309889912605286, 0.25415682792663574, 0.190737783908844, -0.1700892150402069, 0.09951354563236237, -0.11066383868455887, 0.2170066237449646, 0.15141111612319946, -0.121196448802948, 0.05022027716040611, -0.10433870553970337, -0.23530346155166626, -0.14951951801776886, 0.3003137409687042, 0.15709085762500763, -0.07310088723897934, -0.24981974065303802, -0.050853174179792404, -0.09898306429386139, 0.3862347900867462, 0.32781559228897095, -0.21779382228851318, 0.032087940722703934, -0.11798351258039474, 0.07153786718845367, 0.3417116105556488, 0.031742487102746964, -0.24282896518707275, 0.08031486719846725, -0.2403748482465744, 0.3681279122829437, 0.10685688257217407, -0.2559812664985657, 0.2817283272743225, -0.11822598427534103, 0.17259204387664795, 0.1251770555973053, -0.28126126527786255, 0.1649894118309021, -0.31839844584465027, -0.16103029251098633, 0.0047829896211624146, -0.08523674309253693, -0.05816565826535225, 0.016985446214675903, 0.03178782761096954, 0.19822540879249573, 0.32699155807495117, 0.14314524829387665, -0.013826752081513405, -0.06905808299779892, 0.31960558891296387, 0.23961400985717773, -0.09689796715974808, -0.09444375336170197, -0.15429183840751648, -0.03126389533281326, 0.12118951976299286, -0.08649861812591553, 0.1833140254020691, -0.23914919793605804, -0.12424389272928238, -0.09061017632484436, 0.0006826110184192657, -0.40237879753112793, 0.14298492670059204, 0.10249564796686172, 0.06393872201442719, 0.03695857152342796, -0.39427343010902405, 0.1695493757724762, -0.5435899496078491, 0.22869350016117096, -0.4217574894428253, 0.35590603947639465, 0.07984784245491028, -0.17254433035850525, 0.02874641865491867, -0.009393677115440369, -0.036847785115242004, -0.08857797831296921, -0.14584040641784668, 0.7191674709320068, 0.29852384328842163, 0.2642925977706909, -0.6183115839958191, 0.2108510434627533, 0.22730371356010437, -0.15400969982147217, -0.0877719521522522, 0.16861188411712646, -0.06184214726090431, -0.022195618599653244, -0.23725777864456177, 0.4170125722885132, -0.3514546751976013, -0.04555626958608627, 0.1223645806312561, -0.11180125921964645, 0.05285470932722092, -0.024156859144568443, -0.20056985318660736, -0.2641672194004059, 0.053003497421741486, -0.3630003035068512, 0.0928182601928711, -0.029936274513602257, -0.37642019987106323, -0.08307387679815292, 0.538500964641571, -0.04157475009560585, -0.1637682318687439, 0.039543479681015015, -0.05121726542711258, -0.30213990807533264, 0.2670186460018158, 0.3641577661037445, 0.5712692737579346, 0.15633708238601685, 0.1325148046016693, 0.24570371210575104, -0.03731792792677879, -0.3490936756134033, 0.23581215739250183, 0.11488213390111923, 0.0914340615272522, 0.31752657890319824, -0.14752213656902313, -0.03012711927294731, -0.3020337224006653, 0.2959529161453247, 0.20041081309318542, 0.2242388129234314, -0.33203133940696716, 0.021894505247473717, -0.1764727532863617, -0.37169691920280457, -0.42669540643692017, -0.12349248677492142, 0.06894693523645401, -0.36819639801979065, 0.06509534269571304, 0.48217153549194336, -0.2590506672859192, 0.0728011280298233, 0.14933104813098907, 0.3369832932949066, 0.066730797290802, 0.31599903106689453, -0.15695756673812866, 0.01611703634262085, -0.07248928397893906, 0.12868517637252808, 0.10951057821512222, 0.055099476128816605, 0.31441566348075867, -0.11660373210906982, -0.13246726989746094, 0.024183884263038635, -0.19640472531318665, 0.16240331530570984, -0.08099375665187836, -0.0012227129191160202, 0.053899336606264114, 0.11464005708694458, -0.0041769519448280334, -0.3990890085697174, 0.0008887485601007938, -0.6441227197647095, -0.14941821992397308, 0.11707504093647003, 0.1462773233652115, 0.17804449796676636, -0.222678542137146, -0.4653952419757843, -0.21895723044872284, -0.3220835328102112, 0.07877236604690552, -0.016459014266729355, -0.012138202786445618, 0.4623660147190094, -0.07161583006381989, 0.03291105106472969, -0.2649732530117035, 0.01877591758966446, -0.2853264808654785, -0.5915789008140564, -0.0013881176710128784, -0.27605772018432617, -0.29908254742622375, 0.034109290689229965, 0.07172387838363647, 0.05690334737300873, 0.36806195974349976, -0.26920419931411743, -0.05196832865476608, -0.1276899129152298, -0.21577388048171997, -0.24708858132362366, -0.09007219970226288, 0.21391862630844116, -0.20196376740932465, 0.03521915525197983, -0.23076215386390686, 0.28029105067253113, 0.04601249471306801, 0.07593919336795807, 0.23402509093284607, -0.005633953958749771, 0.4237845242023468, 0.560189962387085, 0.9190331101417542, 0.4806351065635681, 0.17012006044387817, -0.06508311629295349, 0.07645688951015472, 0.2625963091850281, -0.33511874079704285, -0.12297913432121277, 0.3802657127380371, -0.05526264011859894, -0.14975249767303467, 0.2173486053943634, -0.03679493069648743, -0.03621666133403778, -0.17797592282295227, 0.15041540563106537, -0.08555831760168076, -0.3358359634876251, 0.11669434607028961, -0.033495716750621796, 0.10333859920501709, 0.1802588701248169, 0.38742849230766296, 0.10548083484172821, -0.27514922618865967, -0.05942440405488014, 0.2546478807926178, 0.4418342411518097, 0.004643420223146677, -0.3032947778701782, -0.054419878870248795, -0.36378759145736694, -0.07437102496623993, 0.17985357344150543, 0.4689939618110657, -0.09571736305952072, -0.22922107577323914, 0.24055549502372742, 0.25744783878326416, 0.44811922311782837, -0.07947120070457458, -0.011968623846769333, -0.08814482390880585, -0.016290055587887764, -0.18251003324985504, -0.06746552884578705, -0.49932098388671875, -0.04669778421521187, 0.09596465528011322, 0.19757972657680511, -0.34716540575027466, -0.17195278406143188, 0.1772121787071228, -0.09747330844402313, -0.026600338518619537, -0.04339146986603737, -0.22030453383922577, -0.025690259411931038, -0.19393043220043182, 0.11793588101863861, 0.0915958434343338, 0.1997012048959732, -0.4519553482532501, 0.12762147188186646, 0.1993057131767273, 0.2801834046840668, 0.03235578536987305, -0.1635330766439438, 0.24731400609016418, 0.24774576723575592, -0.019929029047489166, 0.39882388710975647, -0.07646216452121735, 0.10686907172203064, 0.25481972098350525, 0.21251334249973297, -0.3219026029109955, -0.1512097418308258, 0.18906821310520172, -0.06817131489515305, 0.33785581588745117, -0.028564464300870895, 0.11944045126438141, 0.23441241681575775, 0.21733887493610382, -0.3990999460220337, 0.207566499710083, 0.11863941699266434, -0.07796639949083328, -0.02781042270362377, -0.70915687084198, 0.14051775634288788, -0.01471666619181633, 0.04648482799530029, 0.7439162731170654, -0.012610279023647308, -0.2974901795387268, 0.32431304454803467, 0.09372220933437347, 0.725661039352417, 0.2957233786582947, 0.031800903379917145, 0.6793620586395264, 0.08816578984260559, 0.334099143743515, -0.4409635663032532, 0.18907909095287323, -0.003988165408372879, -0.5837592482566833, -0.04691635072231293, -0.10659445822238922, 0.13415998220443726, -0.30820077657699585, -0.18112309277057648, 0.1685444414615631, 0.08114643394947052, 0.6195890307426453, 0.028793923556804657, 0.10166403651237488, -0.3190138041973114, -0.05461322143673897, -0.10421360284090042, 0.12815392017364502, 0.016952719539403915, 0.11615854501724243, 0.0033657103776931763, -0.13806290924549103, 0.30371522903442383, 0.01717875525355339, -0.1583946943283081, 0.060534484684467316, -0.25773224234580994, 0.14909081161022186, -0.12657496333122253, -0.18638849258422852, -0.03493722528219223, 0.4139760732650757, 0.08230342715978622, -0.07021002471446991, -0.15545931458473206, 0.1851520538330078, -0.06699144095182419, 0.22325119376182556, -0.029683826491236687, -0.016779320314526558, 0.43664270639419556, 0.0019560977816581726, -0.09456734359264374, 0.08832167834043503, -0.0402560755610466, -0.24337145686149597, -0.19615690410137177, -0.08264380693435669, 0.26840710639953613, -0.24561695754528046, 0.008941107429564, 0.0559009313583374, 0.03777778521180153, -0.12041188776493073, 0.13668152689933777, -0.06098991632461548, -0.22454269230365753, 0.16602900624275208, -0.09248998761177063, -0.11772657930850983, -0.1950538456439972, 0.5129629373550415, -0.04014728218317032, 0.32665562629699707, 0.19095680117607117, -0.13787038624286652, -0.2203446626663208, -0.07521824538707733, 0.17995867133140564, 0.13331563770771027, -0.018277857452630997, 0.03976651653647423, -0.1352076232433319, 0.2258896380662918, 0.011051294393837452, 0.05772620812058449, 0.03509405255317688, -0.00928911566734314, -0.08261874318122864, -0.3282166123390198, -0.009746601805090904, 0.3823990225791931, 0.04047674685716629, 0.059834182262420654, -0.07882280647754669, 0.4727203845977783, -0.017577361315488815, 0.31262555718421936, -0.36067089438438416, 0.015157744288444519, 0.22802644968032837, 0.04301631823182106, -0.013563621789216995, -0.09151392430067062, 0.2673850655555725, -0.11521963775157928, 0.00796632282435894, 0.2165873497724533, -0.25424861907958984, -0.18203610181808472, -0.024728862568736076, 0.09269074350595474, 0.09132149815559387, -0.1447838544845581, -0.15048302710056305, -0.11968552321195602, -0.19827669858932495, -0.14575843513011932, 0.5189914107322693, 0.16405481100082397, 0.097113236784935, 0.08007936179637909, 0.44314441084861755, 0.2768647074699402, -0.09395244717597961, -0.10609173774719238, -0.23409005999565125, -0.18086029589176178, -0.1878615766763687, -0.03523377329111099, -0.08327832072973251, -0.10146955400705338, -0.14861862361431122, 0.10895451158285141, 0.3698856830596924, 0.07248770445585251, 0.2821264863014221, -0.16261428594589233, 0.02597036585211754, -0.3037149906158447, 0.47354191541671753, 0.33991166949272156, -0.19016212224960327, -0.02073735184967518, 0.2005603313446045, 0.19445626437664032, 0.09312111139297485, 0.0070578958839178085, 0.09567929804325104, 0.34693577885627747, 0.1096908301115036, 0.07790246605873108, -0.017043188214302063, 0.026787273585796356, -0.19762416183948517, 0.1877565085887909, 0.15566594898700714, -0.38110053539276123, 0.5237786173820496, 0.5339779853820801, -0.17104984819889069, 0.25968489050865173, 0.04539371281862259, -0.12704791128635406, 0.053020354360342026, 0.11368558555841446, 0.07904128730297089, 0.6878389716148376, 0.085128553211689, -0.01619682088494301, -0.038862623274326324, -0.5128891468048096, -0.4332939684391022, 0.5245239734649658, -0.5521152019500732, 0.27898070216178894, -0.016949258744716644, 0.3390866816043854, -0.10458371788263321, -0.14197427034378052, -0.2692592740058899, 0.04634923115372658, -0.16236987709999084, 0.042433738708496094, -0.3193400800228119, -0.1302579641342163, -0.026265457272529602, 0.1789707988500595, 0.1636187583208084, -0.05838336795568466, 0.3281922936439514, -0.09121046960353851, -0.14465627074241638, -0.18146952986717224, -0.2576485872268677, 0.1945984959602356, 0.2696782350540161, -0.24070444703102112, 0.24491514265537262, 0.025182008743286133, 0.15284664928913116, 0.17715959250926971, 0.10395210236310959, 0.12081389129161835, 0.10445789247751236, 0.2666718065738678, 0.08231128752231598, 0.3068482279777527, -0.18804585933685303, 0.05263791233301163, 0.4446999728679657, 0.09447407722473145, -0.0432928241789341, 0.1965993344783783, 0.18800240755081177, -0.1984696239233017, 0.02322237193584442, 0.25935184955596924, 0.27376726269721985, -0.7034009695053101, 0.2474183738231659, -0.03159400820732117, 0.17073580622673035, 0.04119852930307388, -0.2122834026813507, -0.286131352186203, 0.10591184347867966, 0.13267214596271515, -0.19925226271152496, 0.14706125855445862, -0.06458033621311188, 0.10394617170095444, 0.11594124138355255, 0.2579406499862671, -0.021980222314596176, -0.24313610792160034, -0.186300128698349, -0.3401016294956207, -0.5668373107910156, 0.07042650878429413, 0.2582204043865204, 0.26068100333213806, 0.13009917736053467, 0.14565834403038025, -0.16894561052322388, 0.4068940281867981, -0.5127214193344116, -0.4050702452659607, 0.13384570181369781, 0.21141493320465088, -0.1474515050649643, -0.1856418401002884, -0.3117046356201172, 0.06799639761447906, 0.0064558833837509155, -0.12703125178813934, 0.3587113618850708, 0.013756747357547283, 0.02553757280111313, 0.28767287731170654, 0.1667145937681198, 0.18197451531887054, 0.023720888420939445, -0.05329336225986481, 0.051671549677848816, 0.2378438264131546, -0.09001879394054413, 0.06037981063127518, -0.15321889519691467, -0.15569287538528442, -0.40701112151145935, -0.05288907140493393, -0.26730573177337646, 0.6088213920593262, 0.04220446199178696, -0.3395501673221588, -0.2492145299911499, 0.3341238498687744, 0.19320067763328552, -0.27315446734428406, -0.43076401948928833, 0.19974669814109802, 0.014826297760009766, 0.2811102569103241, 0.32849135994911194, 0.464309960603714, -0.23410558700561523, 0.10767042636871338, -0.09958064556121826, -0.4553115963935852, 0.6647340655326843, -0.5970906019210815, -0.012061664834618568, -0.11765679717063904, 0.09900335222482681, 0.294648140668869, -0.4015374481678009, -0.5659849047660828, 0.03448518365621567, 0.15103261172771454, -0.29027438163757324, -0.1543470323085785, 0.3113938570022583, 0.15457530319690704, 0.04801853373646736, -0.06584315001964569, 0.2996233105659485, 0.28779420256614685, -0.42436519265174866, 0.4827042520046234, -0.23629485070705414 ]
https://github.com/huggingface/datasets/issues/5435
Wrong statement in "Load a Dataset in Streaming mode" leads to data leakage
Hi @albertvillanova thanks for your reply and your explaination here. Sorry for the confusion as I'm not actually a user of your repo and I just happen to find the thread by Google (and didn't read carefully). Great to know that and you made everything very clear now. Thanks for your time and sorry for the consusion. Wishing you a wonderful time. Regards
### Describe the bug In the [Split your dataset with take and skip](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#split-your-dataset-with-take-and-skip), it states: > Using take (or skip) prevents future calls to shuffle from shuffling the dataset shards order, otherwise the taken examples could come from other shards. In this case it only uses the shuffle buffer. Therefore it is advised to shuffle the dataset before splitting using take or skip. See more details in the [Shuffling the dataset: shuffle](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#iterable-dataset-shuffling) section.` >> \# You can also create splits from a shuffled dataset >> train_dataset = shuffled_dataset.skip(1000) >> eval_dataset = shuffled_dataset.take(1000) Where the shuffled dataset comes from: `shuffled_dataset = dataset.shuffle(buffer_size=10_000, seed=42)` At least in Tensorflow 2.9/2.10/2.11, [docs](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shuffle) states the `reshuffle_each_iteration` argument is `True` by default. This means the dataset would be shuffled after each epoch, and as a result **the validation data would leak into training test**. ### Steps to reproduce the bug N/A ### Expected behavior The `reshuffle_each_iteration` argument should be set to `False`. ### Environment info Tensorflow 2.9/2.10/2.11
63
Wrong statement in "Load a Dataset in Streaming mode" leads to data leakage ### Describe the bug In the [Split your dataset with take and skip](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#split-your-dataset-with-take-and-skip), it states: > Using take (or skip) prevents future calls to shuffle from shuffling the dataset shards order, otherwise the taken examples could come from other shards. In this case it only uses the shuffle buffer. Therefore it is advised to shuffle the dataset before splitting using take or skip. See more details in the [Shuffling the dataset: shuffle](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#iterable-dataset-shuffling) section.` >> \# You can also create splits from a shuffled dataset >> train_dataset = shuffled_dataset.skip(1000) >> eval_dataset = shuffled_dataset.take(1000) Where the shuffled dataset comes from: `shuffled_dataset = dataset.shuffle(buffer_size=10_000, seed=42)` At least in Tensorflow 2.9/2.10/2.11, [docs](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shuffle) states the `reshuffle_each_iteration` argument is `True` by default. This means the dataset would be shuffled after each epoch, and as a result **the validation data would leak into training test**. ### Steps to reproduce the bug N/A ### Expected behavior The `reshuffle_each_iteration` argument should be set to `False`. ### Environment info Tensorflow 2.9/2.10/2.11 Hi @albertvillanova thanks for your reply and your explaination here. Sorry for the confusion as I'm not actually a user of your repo and I just happen to find the thread by Google (and didn't read carefully). Great to know that and you made everything very clear now. Thanks for your time and sorry for the consusion. Wishing you a wonderful time. Regards
[ -0.30101004242897034, -0.3194584846496582, 0.018976982682943344, 0.14208601415157318, 0.07016054540872574, -0.13381242752075195, 0.14968514442443848, 0.015953756868839264, -0.10752105712890625, 0.1977980136871338, -0.13916052877902985, 0.3008705675601959, -0.14255298674106598, 0.2710457444190979, 0.2045220583677292, -0.20414850115776062, 0.13412153720855713, -0.17226365208625793, -0.16949313879013062, -0.08938069641590118, -0.008596476167440414, -0.09714554250240326, -0.2527076005935669, -0.2629294991493225, -0.02084798738360405, -0.10801201313734055, -0.0828959122300148, 0.2130124568939209, -0.275589257478714, -0.076203353703022, 0.09428571164608002, 0.040917977690696716, -0.042047105729579926, 0.3924677073955536, -0.000106670348031912, 0.02904926985502243, 0.30158132314682007, -0.1768929660320282, -0.11126852035522461, -0.14128510653972626, -0.48421186208724976, 0.1511339694261551, -0.12381540238857269, -0.0036666318774223328, -0.00447339192032814, 0.09268706291913986, -0.14098353683948517, -0.10335042327642441, 0.7155594229698181, 0.32121068239212036, 0.16780434548854828, 0.5622539520263672, 0.16656501591205597, -0.038133591413497925, 0.1578235626220703, -0.08064575493335724, -0.05095986649394035, 0.10426375269889832, -0.04745882749557495, 0.1312624216079712, -0.10646570473909378, 0.49226465821266174, 0.04435182362794876, 0.060767728835344315, 0.22766786813735962, 0.03138374164700508, -0.213008850812912, -0.34036609530448914, -0.14852461218833923, 0.3080844581127167, 0.08734260499477386, -0.1264929175376892, -0.3984861373901367, -0.42260241508483887, -0.04374949261546135, -0.344147264957428, 0.19336433708667755, 0.3764479458332062, -0.3015730679035187, 0.09929946064949036, -0.4090602397918701, -0.12082680314779282, -0.06316263228654861, -0.10163873434066772, 0.03825940936803818, 0.2607888877391815, -0.11953485012054443, -0.02150510996580124, 0.16906854510307312, 0.21835432946681976, 0.16162261366844177, -0.1863798052072525, -0.06630121171474457, -0.08147172629833221, -0.2909148037433624, -0.14401720464229584, -0.034856244921684265, -0.0873015746474266, 0.17775622010231018, 0.24172279238700867, 0.10672914236783981, 0.0010174103081226349, -0.11061177402734756, 0.12068306654691696, 0.3961629569530487, 0.1350570172071457, -0.18933770060539246, 0.16336669027805328, -0.16746433079242706, 0.16300556063652039, 0.13083942234516144, -0.1696680784225464, 0.25658324360847473, 0.03887174651026726, -0.016985177993774414, -0.031521767377853394, 0.20078179240226746, -0.020351171493530273, -0.46460649371147156, 0.006859488319605589, -0.33541953563690186, -0.09977275133132935, 0.004903595894575119, 0.334384560585022, -0.1193428710103035, 0.016501635313034058, -0.1371092051267624, 0.07231832295656204, -0.33925217390060425, -0.26249900460243225, -0.4295421242713928, -0.1524718999862671, -0.32010790705680847, 0.32659921050071716, -0.05849437788128853, -0.43409740924835205, 0.3150867223739624, 0.15022586286067963, 0.14647015929222107, -0.11340800672769547, -0.0708596333861351, -0.18257462978363037, 0.1714600920677185, 0.336646169424057, 0.032738249748945236, -0.07205913960933685, 0.16951577365398407, 0.19526724517345428, 0.12828999757766724, 0.3092777132987976, -0.40868911147117615, -0.36278036236763, 0.30952680110931396, 0.20402312278747559, -0.21719174087047577, 0.08188709616661072, -0.14691230654716492, 0.15172889828681946, 0.14292702078819275, -0.08676916360855103, 0.05232254043221474, -0.11064530909061432, -0.18713030219078064, -0.14709369838237762, 0.2780168950557709, 0.09939882159233093, -0.0644480437040329, -0.244953915476799, 0.0004935991019010544, -0.10025322437286377, 0.44080016016960144, 0.35195156931877136, -0.23757538199424744, 0.04737525433301926, -0.07771006226539612, 0.09768001735210419, 0.3173231780529022, 0.06353624165058136, -0.26435649394989014, 0.056644175201654434, -0.25343766808509827, 0.34674304723739624, 0.0713033378124237, -0.3028690218925476, 0.3023456931114197, -0.10730621963739395, 0.14510947465896606, 0.16882210969924927, -0.2789427638053894, 0.17278042435646057, -0.3788670003414154, -0.13500042259693146, 0.013422353193163872, -0.08858717978000641, -0.04644447937607765, -0.019355088472366333, -0.03691671043634415, 0.1562938243150711, 0.34615710377693176, 0.11538660526275635, -0.059105269610881805, -0.10828490555286407, 0.32456204295158386, 0.25147560238838196, -0.07151060551404953, -0.028144467622041702, -0.14659801125526428, -0.0053715333342552185, 0.10825426876544952, -0.039795972406864166, 0.17647835612297058, -0.19253750145435333, -0.16581574082374573, -0.06874899566173553, 0.015207260847091675, -0.4347490072250366, 0.15798074007034302, 0.1271417886018753, 0.041460175067186356, 0.01506374403834343, -0.39506667852401733, 0.12699006497859955, -0.5096333622932434, 0.21548794209957123, -0.3533479571342468, 0.40874189138412476, 0.05965147167444229, -0.14709237217903137, -0.004058480262756348, -0.023199819028377533, -0.011745914816856384, -0.1269395351409912, -0.14480948448181152, 0.6468600034713745, 0.2802131175994873, 0.2639128565788269, -0.5900195837020874, 0.23010766506195068, 0.25458425283432007, -0.13599085807800293, -0.05035213381052017, 0.14623093605041504, -0.020454637706279755, -0.05142776295542717, -0.21050941944122314, 0.41162705421447754, -0.3095237910747528, -0.04922819882631302, 0.04946993291378021, -0.1188974529504776, 0.09529754519462585, -0.08318185061216354, -0.16411814093589783, -0.1981450766324997, 0.04591035842895508, -0.3151963949203491, -0.033858999609947205, -0.04106556624174118, -0.35401201248168945, -0.0869034007191658, 0.5265289545059204, -0.0728365033864975, -0.17569494247436523, 0.029094917699694633, -0.06633783131837845, -0.32028263807296753, 0.24745342135429382, 0.3246226906776428, 0.5985924601554871, 0.1207471638917923, 0.08192404359579086, 0.22806526720523834, 0.007496952079236507, -0.3595329523086548, 0.2273952066898346, 0.12111961841583252, 0.11779341101646423, 0.3550107181072235, -0.16482104361057281, -0.027725592255592346, -0.2534824013710022, 0.3362659811973572, 0.2672261893749237, 0.2341458946466446, -0.327993780374527, 0.04889918118715286, -0.14440709352493286, -0.31821149587631226, -0.41788238286972046, -0.20774540305137634, 0.09576521813869476, -0.3576720952987671, 0.062379851937294006, 0.4197441041469574, -0.2811720371246338, 0.09784359484910965, 0.19434839487075806, 0.3308470845222473, 0.05934285372495651, 0.2884342074394226, -0.13834339380264282, -0.004440802615135908, -0.054184913635253906, 0.15257751941680908, 0.12441563606262207, 0.06506689637899399, 0.3387722969055176, -0.10239624977111816, -0.15674355626106262, 0.022495919838547707, -0.18665994703769684, 0.174589142203331, -0.0882420688867569, 0.01975669525563717, -0.008618459105491638, 0.14772653579711914, 0.05173309147357941, -0.3819178342819214, 0.017148178070783615, -0.6126267910003662, -0.15251675248146057, 0.11953200399875641, 0.1694207787513733, 0.1888578236103058, -0.2037748098373413, -0.5116158127784729, -0.22236986458301544, -0.3172571659088135, 0.03869124501943588, 0.009530067443847656, 0.0012407228350639343, 0.4002697765827179, -0.09392748773097992, 0.0015087616629898548, -0.21538187563419342, -0.037143513560295105, -0.3056422472000122, -0.5780100226402283, -0.006908189505338669, -0.24384824931621552, -0.2777581810951233, 0.05055664852261543, 0.06202427297830582, 0.06441671401262283, 0.388918399810791, -0.3362060785293579, -0.12258397042751312, -0.07867859303951263, -0.19696392118930817, -0.2676846981048584, -0.13372084498405457, 0.2189621776342392, -0.25822046399116516, 0.019800281152129173, -0.22135528922080994, 0.2188708484172821, 0.039340972900390625, 0.1277570128440857, 0.2601677477359772, -0.008826449513435364, 0.4168355166912079, 0.528887927532196, 0.9916848540306091, 0.46327146887779236, 0.1707414835691452, -0.07399407029151917, 0.1278550922870636, 0.1689310222864151, -0.28650492429733276, -0.10639957338571548, 0.37301820516586304, -0.07947926223278046, -0.16934607923030853, 0.2244795709848404, -0.049415454268455505, -0.11272836476564407, -0.18833760917186737, 0.10714143514633179, -0.08126367628574371, -0.3386220932006836, 0.19108545780181885, 0.07294470816850662, 0.0863652378320694, 0.15937338769435883, 0.37658315896987915, 0.1042623221874237, -0.24998381733894348, -0.01585654355585575, 0.21329087018966675, 0.43876704573631287, -0.04345932602882385, -0.3205406367778778, -0.04840986803174019, -0.3265143632888794, -0.08499804139137268, 0.1537027359008789, 0.4451830983161926, -0.050875499844551086, -0.23703771829605103, 0.2677203416824341, 0.24497036635875702, 0.494592547416687, -0.06375307589769363, -0.0001766793429851532, -0.05513552576303482, -0.046128805726766586, -0.117855966091156, -0.11741366982460022, -0.5019225478172302, -0.04417377710342407, 0.09601083397865295, 0.19408100843429565, -0.36087915301322937, -0.1469220072031021, 0.19114428758621216, -0.10627944022417068, -0.06661991029977798, -0.0892186090350151, -0.17988818883895874, -0.029088925570249557, -0.18328078091144562, 0.1339665651321411, 0.09741917997598648, 0.22085359692573547, -0.47228869795799255, 0.1355680674314499, 0.20576569437980652, 0.3024255335330963, 0.009113281965255737, -0.19090770184993744, 0.24747112393379211, 0.24888892471790314, -0.018523136153817177, 0.3842141032218933, -0.05802202969789505, 0.06860268861055374, 0.2944927215576172, 0.2128426730632782, -0.3137263059616089, -0.17418640851974487, 0.1311825066804886, -0.11953824013471603, 0.36631298065185547, 0.0011319243349134922, 0.11522803455591202, 0.1867431402206421, 0.21426449716091156, -0.41347625851631165, 0.18009509146213531, 0.1004248782992363, -0.03401419147849083, -0.014634245075285435, -0.7038406133651733, 0.15849217772483826, -0.004754884168505669, 0.02845924347639084, 0.6997820734977722, -0.044812917709350586, -0.289785772562027, 0.34138983488082886, 0.14232483506202698, 0.7858263254165649, 0.29701143503189087, 0.012117493897676468, 0.6657742261886597, 0.12314121425151825, 0.27388834953308105, -0.5031327605247498, 0.189762681722641, -0.027334637939929962, -0.6067575216293335, -0.048273079097270966, -0.1381809413433075, 0.10504621267318726, -0.3435831069946289, -0.18844345211982727, 0.15609508752822876, 0.040800757706165314, 0.6124306917190552, 0.052459970116615295, 0.00803593173623085, -0.2584404945373535, -0.05614614859223366, -0.09085141867399216, 0.14137743413448334, 0.010621126741170883, 0.12333358824253082, -0.0010638823732733727, -0.15535975992679596, 0.2847541570663452, 0.03213733434677124, -0.17975056171417236, 0.06773784011602402, -0.2949257493019104, 0.09167566150426865, -0.07459750771522522, -0.15270814299583435, -0.034333713352680206, 0.3617522120475769, 0.0866885706782341, -0.07257747650146484, -0.1490020453929901, 0.1885208934545517, -0.008665882050991058, 0.23192892968654633, -0.0047445595264434814, 0.0009394325315952301, 0.47258487343788147, -0.032897643744945526, -0.10806255042552948, 0.0973295271396637, -0.058309637010097504, -0.23702390491962433, -0.21439138054847717, -0.06069031357765198, 0.3724449872970581, -0.27175769209861755, -0.02265002205967903, 0.11927911639213562, 0.014355789870023727, -0.10272775590419769, 0.15912705659866333, -0.01115012913942337, -0.2657536268234253, 0.20698237419128418, -0.09310665726661682, -0.1263730823993683, -0.16412079334259033, 0.47004434466362, 0.02550039067864418, 0.3205869197845459, 0.2160579115152359, -0.11958962678909302, -0.2162492275238037, -0.09552840888500214, 0.12620332837104797, 0.1113685593008995, -0.04482557624578476, 0.029773063957691193, -0.12072823196649551, 0.20603777468204498, -0.012510893866419792, 0.025526028126478195, 0.09180881083011627, 0.01808720827102661, -0.10874950885772705, -0.3776609003543854, 0.03317345678806305, 0.3383271098136902, 0.03711801394820213, 0.058249447494745255, -0.10845230519771576, 0.4590078890323639, -0.012053435668349266, 0.29640302062034607, -0.3771565556526184, 0.03485272824764252, 0.1436171680688858, 0.09106104075908661, -0.004549931734800339, -0.09331225603818893, 0.27059414982795715, -0.10681232810020447, 0.0196851659566164, 0.22307229042053223, -0.2730471193790436, -0.20120593905448914, 0.016704011708498, 0.09223518520593643, 0.08758042752742767, -0.1429198682308197, -0.14067193865776062, -0.1308545023202896, -0.17722907662391663, -0.0866553857922554, 0.4938538670539856, 0.14439436793327332, 0.09138645231723785, 0.04128406196832657, 0.506206214427948, 0.22762373089790344, -0.14252732694149017, -0.06886487454175949, -0.20608535408973694, -0.18507517874240875, -0.20159578323364258, -0.0683746188879013, -0.0789232850074768, -0.10730944573879242, -0.1668875366449356, 0.059543222188949585, 0.32187819480895996, 0.15326948463916779, 0.3058152496814728, -0.1731335073709488, 0.053561460226774216, -0.26259949803352356, 0.45673811435699463, 0.3420771360397339, -0.25333648920059204, 0.007016284391283989, 0.2316392958164215, 0.22476188838481903, 0.11053715646266937, 0.0539635606110096, 0.08899669349193573, 0.3319966197013855, 0.0825698971748352, 0.07341213524341583, -0.010501902550458908, 0.014787979423999786, -0.1698063164949417, 0.20552214980125427, 0.11383038014173508, -0.3884131908416748, 0.5109503269195557, 0.4816986322402954, -0.23775357007980347, 0.27649134397506714, 0.03585214912891388, -0.13756096363067627, 0.00445055216550827, 0.021686512976884842, 0.10877765715122223, 0.6839538216590881, 0.14528027176856995, -0.06475229561328888, -0.03449968993663788, -0.4818747937679291, -0.4443693459033966, 0.5745221376419067, -0.5124182105064392, 0.3075864613056183, -0.007178090512752533, 0.2968601584434509, -0.06977880001068115, -0.1852564960718155, -0.2617761194705963, 0.044258564710617065, -0.17224591970443726, 0.09241469204425812, -0.3235219120979309, -0.11860676854848862, -0.05904696509242058, 0.1869519203901291, 0.09995216131210327, -0.04633688926696777, 0.2882271707057953, -0.07433253526687622, -0.19339068233966827, -0.1331552267074585, -0.2793245315551758, 0.16940033435821533, 0.2415637969970703, -0.2562110424041748, 0.30452629923820496, 0.0327097550034523, 0.1792043000459671, 0.14329035580158234, 0.12331079691648483, 0.11824731528759003, 0.12729711830615997, 0.24625472724437714, 0.0980156660079956, 0.36863943934440613, -0.13108092546463013, 0.09296336770057678, 0.4485164284706116, 0.10831066220998764, -0.04773726686835289, 0.20693516731262207, 0.20553326606750488, -0.22490452229976654, 0.03157325088977814, 0.2528327405452728, 0.3318246006965637, -0.706639289855957, 0.28188198804855347, 0.007808156311511993, 0.17030933499336243, -0.03949190676212311, -0.228537917137146, -0.3103397786617279, 0.10018176585435867, 0.12049101293087006, -0.21066491305828094, 0.15795281529426575, -0.04551711678504944, 0.11365073919296265, 0.050374776124954224, 0.30406454205513, -0.02999383583664894, -0.2364174723625183, -0.22811098396778107, -0.2647477388381958, -0.5082437992095947, 0.1506558209657669, 0.25692421197891235, 0.25335031747817993, 0.10751791298389435, 0.11924102902412415, -0.10027306526899338, 0.43902796506881714, -0.5316377282142639, -0.43819504976272583, 0.13523684442043304, 0.23815156519412994, -0.2417152225971222, -0.185226708650589, -0.27954185009002686, 0.09762489795684814, 0.021921899169683456, -0.12819404900074005, 0.40903040766716003, 0.01267025712877512, 0.04921720176935196, 0.29535359144210815, 0.14255282282829285, 0.20564517378807068, 0.11381936073303223, -0.06943413615226746, 0.04741119220852852, 0.2538738250732422, -0.04866994917392731, 0.09801681339740753, -0.1085478812456131, -0.170253187417984, -0.40485766530036926, -0.10096535831689835, -0.21408909559249878, 0.5574158430099487, 0.0765381008386612, -0.29998713731765747, -0.22676333785057068, 0.2715670168399811, 0.137714684009552, -0.28873541951179504, -0.4225885570049286, 0.14900340139865875, 0.0639079362154007, 0.21375024318695068, 0.3076779246330261, 0.4729107618331909, -0.21653905510902405, 0.05936884880065918, -0.13163840770721436, -0.4493710994720459, 0.6945858001708984, -0.5747286081314087, -0.06399960815906525, -0.08014567196369171, 0.08975456655025482, 0.24489736557006836, -0.364888072013855, -0.5731583833694458, 0.04646267741918564, 0.1438707709312439, -0.3005603551864624, -0.1518286168575287, 0.3160932660102844, 0.17649585008621216, 0.024905819445848465, -0.051539018750190735, 0.24814282357692719, 0.27213147282600403, -0.41310861706733704, 0.46285054087638855, -0.2176479995250702 ]
https://github.com/huggingface/datasets/issues/5434
sample_dataset module not found
working on the setfit example script from setfit import SetFitModel, SetFitTrainer, sample_dataset ImportError: cannot import name 'sample_dataset' from 'setfit' (C:\Python\Python38\lib\site-packages\setfit\__init__.py) apart from that, I also had to hack these loads to import thses modules: from datasets.load import load_dataset from datasets.arrow_dataset import Dataset from datasets.dataset_dict import DatasetDict
null
46
sample_dataset module not found working on the setfit example script from setfit import SetFitModel, SetFitTrainer, sample_dataset ImportError: cannot import name 'sample_dataset' from 'setfit' (C:\Python\Python38\lib\site-packages\setfit\__init__.py) apart from that, I also had to hack these loads to import thses modules: from datasets.load import load_dataset from datasets.arrow_dataset import Dataset from datasets.dataset_dict import DatasetDict
[ -0.4969964325428009, -0.05849592387676239, -0.12742285430431366, -0.06724590063095093, 0.22174040973186493, 0.11175020784139633, 0.3886227309703827, 0.37607014179229736, 0.17993395030498505, -0.08422768115997314, 0.20836059749126434, 0.15663810074329376, -0.13965965807437897, 0.5012620091438293, 0.21292875707149506, 0.06591485440731049, -0.12988156080245972, 0.23070396482944489, -0.353655070066452, -0.02106495201587677, -0.05350501462817192, 0.1485910266637802, -0.28678959608078003, -0.05897119641304016, -0.2420189380645752, 0.17531339824199677, -0.029181232675909996, 0.16976773738861084, -0.14491169154644012, -0.4029323160648346, 0.19609813392162323, -0.04748616740107536, 0.043616991490125656, 0.4313434064388275, -0.00010193506750511006, 0.05372985452413559, 0.17230282723903656, -0.24196729063987732, -0.36660656332969666, -0.2672824263572693, -0.17141631245613098, -0.2437305450439453, 0.10589875280857086, -0.11313530802726746, -0.01768326945602894, -0.06709406524896622, 0.014146799221634865, -0.4079061448574066, 0.08833776414394379, 0.4720931947231293, 0.34966331720352173, 0.34001821279525757, 0.26334699988365173, -0.2163202464580536, 0.0720595046877861, 0.16461920738220215, -0.14407730102539062, 0.11057746410369873, 0.2297625094652176, 0.0578605979681015, 0.29432737827301025, -0.031585223972797394, -0.1089508980512619, 0.22561118006706238, 0.4353053569793701, -0.09786944836378098, -0.11078085750341415, -0.36513271927833557, 0.027666710317134857, 0.25107342004776, 0.6886751055717468, -0.459113746881485, -0.22449903190135956, -0.1405622810125351, 0.0037713409401476383, -0.06580527871847153, 0.15299412608146667, -0.03075483627617359, -0.01604587584733963, 0.11131417751312256, 0.19011828303337097, -0.2727327346801758, -0.060911454260349274, 0.12842097878456116, 0.06888790428638458, 0.03123733028769493, -0.018110908567905426, -0.012240178883075714, -0.08231820166110992, -0.1354074478149414, 0.14046519994735718, -0.04482753574848175, -0.021554861217737198, 0.10548140853643417, -0.28387245535850525, 0.04531790316104889, 0.0489676296710968, 0.06527524441480637, 0.04569447785615921, 0.1292339265346527, 0.03678422048687935, 0.13671651482582092, 0.09196950495243073, 0.26064789295196533, 0.1972815990447998, 0.008787902072072029, 0.15605242550373077, 0.35520991683006287, 0.2566812038421631, 0.030750581994652748, 0.04969524219632149, 0.07178089022636414, -0.06576766818761826, -0.42008522152900696, -0.12567013502120972, 0.2106330692768097, 0.3724812865257263, -0.15988902747631073, -0.22688552737236023, -0.17867279052734375, 0.18083417415618896, -0.2453046590089798, -0.06405022740364075, 0.3485780656337738, -0.04764144495129585, -0.006490286439657211, -0.011989882215857506, 0.09947482496500015, -0.43517452478408813, -0.2800736129283905, -0.1979718804359436, 0.27073612809181213, -0.04744461178779602, -0.1557341068983078, 0.34241557121276855, -0.05357168987393379, 0.36727437376976013, -0.2606372535228729, 0.014237027615308762, 0.1663508415222168, 0.3328048884868622, -0.019000373780727386, -0.0002393871545791626, 0.1883915662765503, 0.17568092048168182, 0.20164360105991364, 0.12987874448299408, -0.02796906791627407, -0.3055155277252197, -0.016619227826595306, -0.3566553294658661, -0.18870790302753448, 0.06938163936138153, 0.301713764667511, -0.3034071922302246, -0.3515722155570984, -0.13471904397010803, -0.16558459401130676, 0.19232967495918274, -0.12742425501346588, -0.2839970588684082, -0.3110331892967224, -0.04876265674829483, -0.13866062462329865, 0.21603341400623322, 0.42091989517211914, -0.5002589821815491, -0.11529172956943512, -0.0202905535697937, -0.09786421060562134, -0.037690989673137665, -0.2544313967227936, -0.15280625224113464, 0.2763899564743042, -0.24578924477100372, 0.06026892364025116, 0.5038547515869141, -0.49152204394340515, -0.2393585443496704, -0.08807490766048431, -0.07146015018224716, -0.2773226797580719, -0.015822850167751312, -0.039935152977705, 0.08805626630783081, -0.0451812781393528, -0.1453091949224472, 0.4757153391838074, 0.002722417935729027, -0.029760370030999184, 0.015041965991258621, -0.19306550920009613, 0.10381121188402176, 0.21272213757038116, 0.11778384447097778, -0.1839071810245514, 0.17308974266052246, -0.09898155182600021, 0.13727492094039917, -0.01554906740784645, 0.1773020625114441, 0.24534383416175842, 0.2768615782260895, 0.11267437785863876, 0.25628572702407837, -0.279935747385025, -0.25245389342308044, 0.17375662922859192, 0.1807379424571991, 0.12301131337881088, -0.15812622010707855, 0.11455108225345612, -0.3390008807182312, -0.06670863926410675, -0.4166465103626251, -0.10325990617275238, 0.228973388671875, 0.25530099868774414, 0.08709666132926941, 0.03153187409043312, -0.39963090419769287, 0.21630699932575226, 0.08701498806476593, 0.06464338302612305, -0.402424693107605, 0.15983445942401886, -0.0559014156460762, -0.38329410552978516, 0.24581408500671387, 0.1861288994550705, -0.050273291766643524, -0.24555279314517975, -0.23551136255264282, 0.28010180592536926, 0.27333787083625793, 0.03523243963718414, 0.13806703686714172, 0.0031466037034988403, -0.06972011923789978, -0.3280036151409149, -0.009386228397488594, 0.0340215228497982, 0.0564308762550354, -0.02054576203227043, -0.07358675450086594, 0.1317049115896225, -0.1931375414133072, 0.146897554397583, 0.1614297777414322, 0.2822466492652893, 0.2092830389738083, 0.006023932248353958, 0.03264933079481125, -0.28903985023498535, 0.19296252727508545, 0.01055725198239088, 0.37847790122032166, -0.06544394791126251, 0.072561115026474, 0.1532408595085144, 0.3806896209716797, 0.0399806834757328, 0.2310284972190857, -0.17774918675422668, -0.20450425148010254, -0.002201395109295845, 0.06529711931943893, 0.3580862879753113, 0.45492666959762573, 0.26900988817214966, -0.21643972396850586, -0.17424814403057098, 0.09911812096834183, -0.08864535391330719, 0.22242608666419983, 0.013340122997760773, 0.020380135625600815, -0.004453696310520172, 0.007815481163561344, -0.18297666311264038, -0.0759381502866745, -0.24929514527320862, -0.05865723639726639, 0.21581414341926575, -0.41127312183380127, -0.04873589426279068, -0.25171932578086853, 0.13110783696174622, -0.04189438000321388, 0.012146019376814365, 0.0050578732043504715, -0.3002238869667053, -0.1397809535264969, -0.20831343531608582, 0.14191944897174835, 0.16188769042491913, -0.11937710642814636, -0.04774986207485199, 0.18966132402420044, -0.30270707607269287, 0.04546152055263519, -0.2449163943529129, -0.24047255516052246, 0.2233179807662964, 0.15358972549438477, 0.2496930956840515, 0.35789304971694946, -0.286888986825943, 0.002697449177503586, -0.1716504842042923, -0.06157507374882698, 0.15657296776771545, -0.014421958476305008, 0.3372100293636322, 0.350696325302124, 0.1561172604560852, 0.1647237092256546, 0.11284363269805908, 0.2855609953403473, -0.07398521155118942, 0.03351665288209915, 0.15987884998321533, -0.07959797233343124, -0.22637632489204407, -0.06103624403476715, -0.3804130554199219, -0.4703039228916168, -0.38039514422416687, -0.27178412675857544, 0.16723516583442688, 0.1267108917236328, 0.2259802222251892, 0.3365533649921417, 0.17978574335575104, 0.058929722756147385, 0.0903322696685791, 0.09688490629196167, -0.21765775978565216, 0.45585116744041443, -0.4661913812160492, -0.5221773386001587, 0.14294499158859253, 0.05231364071369171, 0.2326958328485489, 0.0911993533372879, -0.19549575448036194, -0.1185203269124031, -0.1238260418176651, 0.2514980435371399, -0.028459034860134125, 0.30187973380088806, 0.0328797772526741, 0.1978256106376648, -0.02732931263744831, -0.3838254511356354, -0.058715127408504486, 0.14452865719795227, -0.09639861434698105, 0.05334630608558655, 0.09317439794540405, 0.15742158889770508, -0.2452656477689743, 0.30008023977279663, 0.041514839977025986, -0.22794689238071442, 0.3594834804534912, -0.2432851493358612, 0.2624000012874603, -0.08191143721342087, -0.38555535674095154, 0.1250019520521164, 0.12902139127254486, 0.1315876990556717, 0.05531485751271248, -0.1274363100528717, 0.14811307191848755, -0.3221804201602936, 0.06733164191246033, 0.005205757915973663, -0.11920550465583801, -0.18026237189769745, -0.0583098903298378, 0.1963861733675003, -0.013214812614023685, 0.027246840298175812, -0.30026835203170776, -0.04164460301399231, 0.20840424299240112, 0.09326174110174179, -0.1053132638335228, 0.15994921326637268, -0.5166143178939819, -0.18416458368301392, -0.2382543981075287, 0.1748998761177063, -0.130700021982193, 0.27777260541915894, -0.07574090361595154, -0.08674131333827972, -0.10607290267944336, 0.055983398109674454, 0.3643876612186432, -0.2547919452190399, -0.11299028992652893, 0.2638000547885895, 0.14362388849258423, -0.5558727979660034, -0.09102320671081543, -0.10249409079551697, 0.3570195734500885, -0.011448688805103302, -0.11063025891780853, -0.10069985687732697, -0.1137080192565918, 0.2646135985851288, 0.30866479873657227, -0.12331181764602661, -0.006112175993621349, -0.16638895869255066, -0.22105592489242554, -0.3595019280910492, -0.5729511380195618, -0.02730591781437397, 0.10655152797698975, 0.15825943648815155, -0.022362904623150826, -0.17521020770072937, -0.12723377346992493, 0.2627917528152466, 0.19333678483963013, 0.41742464900016785, -0.028196869418025017, 0.2722901403903961, 0.30631840229034424, 0.15751931071281433, 0.4075293242931366, 0.5246173143386841, -0.2398221492767334, -0.3697890043258667, 0.24885770678520203, -0.3181873857975006, 0.3183140456676483, -0.1189785897731781, -0.2710666060447693, 0.0036652609705924988, -0.2863500416278839, 0.02643391117453575, -0.07338031381368637, 0.14621950685977936, 0.08858857303857803, 0.15298737585544586, -0.1372963935136795, -0.6638756394386292, 0.08247189223766327, -0.10307297110557556, 0.13274651765823364, 0.42029309272766113, -0.15618695318698883, -0.3061102032661438, 0.34934717416763306, -0.14655789732933044, 0.4512827396392822, 0.10727821290493011, -0.04094531759619713, 0.2529236674308777, 0.09998911619186401, 0.29802730679512024, 0.13309068977832794, -0.007411820814013481, -0.29411306977272034, -0.11838312447071075, -0.002925865352153778, -0.3202727437019348, 0.10478924214839935, 0.08965039998292923, -0.42547526955604553, 0.32852575182914734, -0.061706818640232086, -0.22887223958969116, -0.1968863308429718, 0.29931408166885376, -0.028391385450959206, -0.10470603406429291, -0.05277249962091446, 0.26404276490211487, -0.08664730191230774, 0.4039345979690552, -0.025954635813832283, -0.02169051393866539, -0.294541597366333, -0.07521682977676392, -0.08542566001415253, 0.02957635000348091, -0.3079330623149872, 0.3140028715133667, -0.02926664426922798, -0.041585151106119156, 0.18267512321472168, 0.16413356363773346, 0.3153691291809082, 0.06521192938089371, -0.274575412273407, 0.2751953899860382, 0.005925849080085754, -0.05390327423810959, 0.06325524300336838, 0.14321541786193848, 0.34083715081214905, -0.15964123606681824, -0.21408289670944214, 0.14250464737415314, 0.016026850789785385, 0.00020367279648780823, -0.05841083079576492, -0.14870038628578186, 0.31791383028030396, -0.3451186716556549, -0.2828582227230072, -0.0659647136926651, 0.07420669496059418, -0.08113036304712296, 0.2171778678894043, 0.21500632166862488, 0.11861458420753479, 0.457100510597229, -0.0292564295232296, -0.21169251203536987, -0.12178529798984528, 0.06159990280866623, -0.07691600173711777, 0.03788882493972778, 0.6641801595687866, 0.22449983656406403, -0.19423702359199524, -0.31818926334381104, 0.10373281687498093, 0.11711254715919495, -0.3496961295604706, 0.1808903068304062, 0.07380890101194382, -0.09070577472448349, 0.17981672286987305, 0.20586325228214264, 0.011578604578971863, -0.1763586699962616, 0.012424055486917496, -0.4239480793476105, -0.16551844775676727, 0.07049696147441864, 0.1984473317861557, 0.2280418574810028, -0.0829738974571228, 0.11564813554286957, 0.08337320387363434, -0.010521942749619484, -0.4051007032394409, 0.054064907133579254, 0.10260000079870224, 0.09488283097743988, 0.28069448471069336, 0.11697900295257568, -0.008506452664732933, -0.08795672655105591, 0.19161076843738556, -0.22076798975467682, -0.21799854934215546, -0.3228118121623993, -0.1105612963438034, 0.0614272803068161, -0.2132682502269745, -0.1415407806634903, -0.0261734277009964, -0.1676502376794815, -0.2351371943950653, -0.23723065853118896, 0.06687186658382416, 0.01477355882525444, -0.18249566853046417, 0.2966498136520386, 0.2519700229167938, -0.3246251940727234, -0.0688207671046257, 0.13201266527175903, -0.05849476158618927, -0.03786274790763855, 0.16397884488105774, 0.163810133934021, 0.017437255010008812, 0.01894373446702957, -0.012245457619428635, 0.06508621573448181, -0.0334891676902771, -0.012525457888841629, 0.16613098978996277, -0.33318936824798584, 0.11922650039196014, 0.05032379552721977, 0.11853231489658356, 0.4464227259159088, -0.16779902577400208, 0.110787034034729, 0.08917416632175446, 0.3204841613769531, -0.4016644060611725, 0.03848577290773392, 0.27780693769454956, 0.059092748910188675, 0.19978177547454834, 0.04856216907501221, 0.0912579745054245, -0.1123526394367218, -0.07816511392593384, 0.2736540734767914, 0.4227558672428131, 0.17469340562820435, 0.3189527988433838, 0.34481948614120483, -0.10803838074207306, -0.06491874158382416, 0.005091026425361633, 0.08224258571863174, 0.19746996462345123, 0.5533194541931152, -0.16262289881706238, 0.463331013917923, 0.1992289125919342, -0.02998093143105507, -0.059328772127628326, -0.49745312333106995, 0.6389725804328918, 0.04892304539680481, 0.10231322050094604, 0.0332048200070858, 0.12041039764881134, 0.31589648127555847, -0.2002260684967041, 0.08140634000301361, -0.06325828284025192, 0.049671486020088196, 0.07329210638999939, -0.05794794484972954, -0.048705775290727615, -0.1542808711528778, -0.11668672412633896, -0.21212805807590485, 0.14666368067264557, -0.1662595123052597, -0.006288275122642517, 0.06031839922070503, -0.09376505017280579, -0.2781117260456085, 0.26661181449890137, 0.030056271702051163, -0.04129695147275925, -0.14112511277198792, 0.06243504583835602, -0.018073782324790955, -0.10246765613555908, 0.02162857912480831, 0.25128304958343506, 0.44732895493507385, 0.47780415415763855, -0.01930246129631996, 0.03289350867271423, 0.032219137996435165, -0.14933013916015625, -0.1327274739742279, -0.033222638070583344, -0.25515106320381165, 0.09313634037971497, 0.2101927101612091, 0.2837419807910919, -0.19805565476417542, -0.3625733256340027, 0.16852650046348572, -0.06332571804523468, -0.2414320707321167, 0.03533415496349335, 0.03935582935810089, -0.08342152833938599, -0.1914633959531784, 0.024326227605342865, -0.39363569021224976, -0.03346319869160652, 0.6766958832740784, 0.002301771892234683, 0.04540444537997246, -0.28639206290245056, 0.13508832454681396, -0.11799062788486481, 0.4683670699596405, 0.1772851198911667, 0.2405657172203064, -0.04325944930315018, -0.09401629865169525, -0.5484197735786438, 0.23901206254959106, -0.09433944523334503, -0.24638111889362335, 0.17323686182498932, 0.08906248956918716, 0.13550889492034912, -0.11173611879348755, 0.39066892862319946, 0.16503354907035828, 0.12426715344190598, 0.12630245089530945, -0.4532778561115265, -0.4781269431114197, -0.23859508335590363, 0.2996780276298523, 0.07064639776945114, -0.4449617862701416, -0.09464316070079803, -0.22338278591632843, 0.20732280611991882, -0.43087732791900635, -0.284044086933136, 0.35570207238197327, -0.10469593107700348, 0.6081023216247559, -0.09701628983020782, 0.5240826606750488, -0.07616452872753143, -0.038980111479759216, -0.2595982551574707, -0.3249095678329468, -0.20888465642929077, 0.26421740651130676, 0.0007087737321853638, 0.07941482961177826, -0.11829958856105804, -0.14704397320747375, -0.39038777351379395, 0.338509738445282, 0.06905385851860046, -0.051590945571660995, -0.09580561518669128, 0.21069246530532837, 0.022326625883579254, 0.1527448445558548, -0.07839846611022949, -0.0575718954205513, -0.13785675168037415, 0.2182488888502121, -0.2796330749988556, -0.13690166175365448, 0.471383273601532, -0.15098737180233002, -0.18442513048648834, -0.24239479005336761, 0.23933230340480804, -0.15334659814834595, -0.03394126147031784, -0.3946496844291687, 0.09606986492872238, 0.427255243062973, 0.0941678136587143, -0.09918130934238434, 0.41027891635894775, 0.047646407037973404, 0.159359410405159, 0.036874379962682724, 0.2993599474430084, -0.033182524144649506, -0.16821719706058502, -0.1669044941663742, 0.04535149782896042 ]
https://github.com/huggingface/datasets/issues/5434
sample_dataset module not found
Hi! This issue is related to the [SetFit](https://github.com/huggingface/setfit) project, so can you please open it there?
null
16
sample_dataset module not found Hi! This issue is related to the [SetFit](https://github.com/huggingface/setfit) project, so can you please open it there?
[ -0.4776780903339386, -0.31958678364753723, -0.13657552003860474, -0.001249171793460846, 0.23095941543579102, -0.10028718411922455, 0.32931146025657654, 0.27492204308509827, 0.08685438334941864, 0.1796143800020218, 0.27831169962882996, 0.10071352869272232, -0.18187396228313446, 0.7102677822113037, 0.20608901977539062, -0.12646746635437012, -0.23706886172294617, 0.1705877184867859, -0.28809085488319397, -0.0059120915830135345, 0.19088804721832275, 0.3497956693172455, -0.22456666827201843, 0.02692554146051407, -0.3192930519580841, -0.0813378393650055, 0.06338109821081161, 0.2745984196662903, -0.2978218197822571, -0.32420140504837036, 0.1866203099489212, -0.08069644868373871, -0.23274509608745575, 0.25356727838516235, -0.00009699647489469498, 0.06819608807563782, 0.24487772583961487, -0.27203357219696045, -0.263905793428421, -0.0871429294347763, -0.09546618163585663, 0.007637087255716324, -0.08096946775913239, -0.0200594961643219, -0.31869935989379883, 0.037164583802223206, -0.003115737810730934, -0.176774799823761, 0.25428563356399536, 0.3253381848335266, 0.4114087224006653, 0.44312936067581177, 0.20792321860790253, -0.23003622889518738, 0.12117515504360199, 0.3760800361633301, -0.12190937250852585, 0.16058586537837982, 0.22114184498786926, 0.054799072444438934, 0.1971987634897232, 0.20917285978794098, 0.05025786906480789, 0.032082024961709976, 0.371500164270401, -0.032887641340494156, -0.2747292220592499, -0.18244099617004395, 0.21536988019943237, 0.2330590784549713, 0.5809772610664368, -0.32674118876457214, -0.07220592349767685, -0.15920716524124146, -0.035982098430395126, -0.0973781943321228, 0.24778756499290466, -0.060550227761268616, -0.09562087059020996, 0.1931430697441101, 0.03140762075781822, -0.25634947419166565, -0.10507602989673615, 0.07159198075532913, 0.19765892624855042, -0.0667833536863327, -0.2433987259864807, -0.015731491148471832, 0.13796286284923553, -0.03554467111825943, -0.2511814832687378, 0.27961841225624084, -0.226946622133255, 0.060128092765808105, -0.0625285655260086, -0.14264938235282898, 0.1049509197473526, 0.07935315370559692, 0.3501409888267517, 0.16339705884456635, 0.006828018464148045, -0.011514950543642044, 0.16587623953819275, 0.13859282433986664, 0.07396624237298965, 0.06687159836292267, 0.0999123603105545, 0.05698302388191223, 0.365653932094574, 0.16452769935131073, 0.10654883086681366, -0.0021735019981861115, 0.10848551243543625, -0.40035107731819153, -0.21928805112838745, 0.1796697974205017, 0.34737110137939453, -0.10248349606990814, -0.06234584003686905, -0.1189616397023201, 0.2062014639377594, -0.17200076580047607, -0.0792929157614708, 0.3418232798576355, -0.061255328357219696, -0.2807159125804901, -0.03329484164714813, 0.04780486971139908, -0.4144057333469391, -0.33110475540161133, -0.32479044795036316, 0.2719370722770691, -0.14887671172618866, -0.15990951657295227, 0.26072657108306885, -0.11465269327163696, 0.5513296127319336, -0.061278264969587326, 0.09216437488794327, 0.07695841044187546, 0.22585533559322357, 0.13868136703968048, -0.13869711756706238, 0.2847902476787567, 0.01225510984659195, 0.054247140884399414, 0.07864092290401459, 0.10470438003540039, -0.21778127551078796, 0.02998114749789238, -0.29182547330856323, -0.294305682182312, -0.09333959221839905, 0.3053819537162781, -0.19219020009040833, -0.11869686841964722, -0.11630064994096756, 0.026804916560649872, 0.13277406990528107, -0.00851675495505333, -0.0891144648194313, -0.09137994796037674, -0.04596716910600662, -0.20353715121746063, 0.2683429718017578, 0.42626243829727173, -0.25530633330345154, -0.17080383002758026, 0.14136993885040283, -0.1581299602985382, -0.03127399832010269, -0.07805466651916504, -0.19873963296413422, 0.16556766629219055, -0.3469599783420563, 0.2749285101890564, 0.3313838839530945, -0.2876269817352295, -0.3982408344745636, -0.18257229030132294, -0.26224589347839355, -0.38885727524757385, -0.015044160187244415, -0.10096507519483566, 0.007828363217413425, 0.1508149653673172, -0.0805196464061737, 0.40266191959381104, 0.03873243182897568, 0.11770526319742203, -0.12259364128112793, -0.268442839384079, -0.18129673600196838, 0.10650929808616638, -0.05368538573384285, -0.12761810421943665, 0.1836039423942566, -0.08428661525249481, 0.13890933990478516, -0.1345050036907196, 0.07030574232339859, 0.32416069507598877, 0.3684164881706238, 0.12691091001033783, 0.05500001460313797, -0.1920383870601654, -0.15657249093055725, 0.026634283363819122, 0.0445120707154274, 0.1769285500049591, -0.06323620676994324, 0.09124855697154999, -0.31023940443992615, -0.016481924802064896, -0.21489189565181732, -0.2799978256225586, 0.262155681848526, 0.22732391953468323, 0.11082963645458221, 0.04090244695544243, -0.4094599485397339, 0.18098945915699005, -0.05389179289340973, 0.038356173783540726, -0.5614631175994873, 0.20423662662506104, -0.022552723065018654, -0.36936917901039124, 0.27576324343681335, 0.10826990008354187, -0.09302984923124313, -0.3103463053703308, -0.1537177860736847, 0.26359790563583374, 0.22996804118156433, 0.00891830027103424, 0.16574859619140625, -0.03612610697746277, 0.005553591996431351, -0.4303540587425232, -0.024959208443760872, -0.28413093090057373, -0.0833459347486496, 0.22904202342033386, 0.04561980068683624, 0.21376463770866394, -0.14676102995872498, -0.09342943876981735, -0.02650786191225052, 0.1546141356229782, 0.30251625180244446, -0.11424620449542999, 0.05890914797782898, -0.1536131650209427, 0.28110554814338684, -0.06052683666348457, 0.29216068983078003, -0.06182044744491577, -0.18769097328186035, 0.12497399747371674, 0.41962042450904846, 0.041078489273786545, 0.2993885278701782, 0.04338181018829346, -0.043106354773044586, -0.13537505269050598, -0.033054471015930176, 0.26607847213745117, 0.48099613189697266, 0.273449569940567, -0.1262018084526062, -0.0793449804186821, 0.08376738429069519, -0.08522619307041168, 0.1969938725233078, -0.21096263825893402, 0.00651022931560874, 0.10405468195676804, 0.04836082085967064, -0.32488250732421875, -0.37199223041534424, -0.053461574018001556, -0.09693071246147156, 0.14351321756839752, -0.29411375522613525, -0.02166939154267311, -0.1335846185684204, 0.10666658729314804, -0.03809820115566254, 0.05905019864439964, -0.21651314198970795, 0.005267128348350525, 0.0700288936495781, -0.17530056834220886, 0.07791103422641754, 0.2609943747520447, 0.19965898990631104, 0.2360749989748001, 0.12424398958683014, 0.0073789507150650024, 0.03425784409046173, -0.05723382905125618, -0.20321783423423767, 0.23161748051643372, 0.03895890712738037, 0.23713575303554535, 0.3612196147441864, -0.423531711101532, -0.08742773532867432, -0.2492750585079193, -0.28958967328071594, 0.24963493645191193, 0.03002730756998062, 0.42049649357795715, 0.5477681159973145, 0.27748817205429077, -0.0024532489478588104, 0.026141852140426636, 0.34706369042396545, -0.11312156915664673, -0.26170703768730164, -0.06747335195541382, -0.08809708058834076, -0.1526487171649933, -0.09751906991004944, -0.25846627354621887, -0.3471388816833496, -0.3042617440223694, 0.11700750142335892, -0.00548887625336647, 0.012937650084495544, 0.36462435126304626, 0.3029780089855194, 0.1488213986158371, -0.12448181211948395, 0.099761463701725, -0.27848151326179504, -0.4858112633228302, 0.0906708687543869, -0.447752982378006, -0.4916134178638458, 0.08570456504821777, 0.1385258287191391, 0.23972934484481812, -0.025141622871160507, -0.456066370010376, -0.35903051495552063, -0.061542071402072906, 0.18876008689403534, -0.05992314964532852, 0.20944418013095856, 0.20481231808662415, 0.07766377180814743, -0.1770671159029007, -0.3371339738368988, -0.2430018037557602, 0.327095091342926, 0.005535140633583069, 0.23024344444274902, -0.01993221789598465, 0.30116137862205505, -0.12246459722518921, 0.5109347701072693, 0.17926043272018433, -0.22019200026988983, 0.20054782927036285, -0.2619457542896271, 0.27316123247146606, -0.25479674339294434, -0.2494446337223053, 0.2658288776874542, 0.23469385504722595, 0.17333349585533142, 0.12109903991222382, 0.046920038759708405, 0.1624392569065094, -0.31329837441444397, -0.07417541742324829, 0.03392695635557175, -0.2054247409105301, -0.05725027620792389, 0.37122708559036255, 0.286661297082901, -0.08796007931232452, -0.09679606556892395, -0.30891117453575134, -0.00557559821754694, 0.34318187832832336, 0.241745725274086, -0.09174167364835739, 0.18668633699417114, -0.5883281230926514, -0.19500140845775604, -0.33458632230758667, 0.21050597727298737, -0.02037642151117325, 0.1521693617105484, -0.2913101017475128, 0.009667381644248962, 0.07141250371932983, 0.07884474098682404, 0.5270740985870361, -0.1495688259601593, -0.06144651025533676, 0.00937485322356224, -0.05508218705654144, -0.24802035093307495, -0.01525898464024067, 0.07884640991687775, 0.2742033004760742, 0.004537394270300865, 0.11332757771015167, -0.21261003613471985, -0.1889948546886444, 0.4260380268096924, 0.18337397277355194, -0.10679496079683304, 0.03155093267560005, -0.32014530897140503, -0.4429173171520233, -0.27548786997795105, -0.13293755054473877, 0.10224208980798721, 0.014696946367621422, 0.4203203320503235, -0.12470066547393799, -0.008526552468538284, -0.23725295066833496, -0.0025253593921661377, 0.06792967021465302, 0.37206998467445374, 0.1014946699142456, 0.05726097896695137, 0.37398532032966614, 0.12736588716506958, 0.2111230045557022, 0.46956682205200195, -0.28672266006469727, -0.1872471272945404, 0.288877010345459, -0.1966986209154129, 0.22844013571739197, 0.16629314422607422, -0.14717449247837067, 0.16063745319843292, -0.04687413573265076, 0.21204064786434174, -0.2439039647579193, 0.17762117087841034, 0.29111137986183167, 0.21057207882404327, 0.10629871487617493, -0.4561578333377838, 0.07544868439435959, -0.2515409588813782, 0.2510067820549011, 0.41437798738479614, 0.028853602707386017, -0.18308304250240326, 0.09413881599903107, -0.030161216855049133, 0.6601130366325378, 0.1246066465973854, -0.04121214523911476, 0.22567623853683472, -0.019253410398960114, 0.30921289324760437, -0.02852635085582733, 0.057286337018013, -0.3019402325153351, -0.24174948036670685, -0.006583621725440025, -0.31835681200027466, 0.18340930342674255, -0.09807093441486359, -0.18281428515911102, 0.03421153500676155, -0.006609015166759491, -0.2084997296333313, -0.24415574967861176, 0.025657549500465393, 0.10986223816871643, -0.09136947989463806, -0.2003277987241745, 0.27975499629974365, -0.18958160281181335, 0.4538937509059906, -0.04080914705991745, -0.12834426760673523, -0.15055866539478302, -0.10788112878799438, -0.18750351667404175, -0.09723826497793198, -0.420889675617218, 0.11686457693576813, 0.2837965190410614, -0.0714031308889389, 0.042754825204610825, 0.08357132226228714, 0.3708140254020691, 0.22225776314735413, -0.1457364857196808, 0.26176509261131287, -0.13962998986244202, -0.06420572847127914, -0.06903160363435745, 0.16993771493434906, 0.21867336332798004, -0.26351943612098694, -0.3247416615486145, -0.006325364112854004, -0.07177669554948807, -0.0936654731631279, 0.03381071984767914, -0.274070143699646, 0.19427667558193207, -0.30896779894828796, -0.16702070832252502, -0.02724536508321762, 0.29365667700767517, -0.20518414676189423, 0.2216159701347351, 0.23012220859527588, 0.0827660784125328, 0.04573722928762436, 0.18724003434181213, -0.2739832401275635, -0.109405517578125, 0.12581035494804382, -0.05980689078569412, 0.04350420832633972, 0.3782050907611847, 0.2302841991186142, -0.23494264483451843, -0.35477215051651, 0.14067763090133667, 0.21383707225322723, -0.5068549513816833, 0.19529730081558228, 0.1012544184923172, -0.17698907852172852, 0.07140176743268967, 0.28050145506858826, 0.11062005907297134, -0.18983963131904602, 0.024640347808599472, -0.33889684081077576, -0.3822619915008545, 0.11847875267267227, -0.07049818336963654, 0.20258291065692902, 0.16662022471427917, 0.15682868659496307, 0.1161101758480072, 0.0027741026133298874, -0.4860001802444458, -0.025721043348312378, -0.0847916379570961, -0.04555457830429077, 0.32407763600349426, -0.11105536669492722, 0.15566037595272064, -0.04527934268116951, 0.2332417368888855, -0.09392595291137695, -0.4093281924724579, -0.3496742844581604, -0.20255227386951447, 0.04872402548789978, -0.3751939833164215, -0.0005527655594050884, 0.08712825924158096, -0.0960046723484993, -0.28044649958610535, -0.02176644653081894, 0.2184409201145172, -0.10033394396305084, -0.09120561182498932, 0.09596557915210724, -0.049181919544935226, -0.3453978896141052, 0.010850537568330765, 0.13722346723079681, 0.01977260410785675, -0.055017754435539246, 0.14825041592121124, 0.002357032150030136, -0.030599363148212433, -0.0987657979130745, 0.08108001202344894, 0.16125434637069702, -0.005425944924354553, 0.13650768995285034, 0.005902756005525589, -0.17846404016017914, -0.04448871687054634, 0.014808522537350655, 0.2375807762145996, 0.0021105408668518066, -0.22385752201080322, 0.060098715126514435, 0.23267820477485657, 0.37642255425453186, -0.43692129850387573, -0.05402115359902382, 0.24171093106269836, 0.11411897093057632, 0.22830674052238464, 0.101657435297966, 0.23636189103126526, -0.004513278603553772, 0.050548382103443146, 0.25264132022857666, 0.3278723955154419, 0.1400758922100067, 0.09047776460647583, 0.3966309130191803, -0.29057061672210693, -0.08254441618919373, 0.25922930240631104, 0.2079351246356964, 0.3117629289627075, 0.4247678518295288, -0.026274122297763824, 0.4743776321411133, -0.02499256283044815, 0.11745784431695938, -0.05329953879117966, -0.5297098159790039, 0.5826111435890198, 0.17334498465061188, 0.07028704881668091, -0.029799871146678925, 0.08599060028791428, 0.5063132643699646, -0.2438758760690689, -0.14028577506542206, -0.16940005123615265, 0.25295960903167725, -0.1007884219288826, -0.07700663805007935, 0.03993590921163559, -0.08805397152900696, -0.11979313939809799, -0.03404109925031662, 0.045269813388586044, 0.04211443290114403, 0.2180480808019638, -0.06821152567863464, -0.048439979553222656, -0.1258620172739029, -0.07524244487285614, 0.055277638137340546, -0.15502336621284485, -0.14016400277614594, 0.2034703493118286, -0.07139186561107635, -0.14323188364505768, -0.013938117772340775, 0.43528780341148376, 0.24241535365581512, 0.11841965466737747, 0.04099348187446594, -0.05733659490942955, 0.029877979308366776, 0.031006978824734688, -0.18332159519195557, -0.004936054348945618, 0.009524829685688019, 0.11068491637706757, 0.11103501915931702, 0.28200531005859375, -0.2510565221309662, -0.20965887606143951, 0.06467703729867935, -0.05310631915926933, -0.19645626842975616, -0.1730949878692627, -0.10943064093589783, 0.021637216210365295, -0.2746083438396454, -0.01797771453857422, -0.42600515484809875, -0.048144835978746414, 0.4623527526855469, -0.10472171753644943, 0.08714582771062851, -0.21398690342903137, 0.17739546298980713, -0.2175295501947403, 0.5585440993309021, 0.04056992009282112, -0.026021473109722137, 0.0982639268040657, -0.288696825504303, -0.4136936366558075, 0.2787531912326813, -0.08029064536094666, -0.11941590160131454, 0.13217732310295105, -0.024387968704104424, 0.17374178767204285, -0.07814022153615952, 0.3448261618614197, 0.014614973217248917, 0.09526661038398743, -0.06712876260280609, -0.45810168981552124, -0.20593306422233582, -0.30737149715423584, 0.1977042555809021, 0.14758583903312683, -0.19190064072608948, 0.01673923432826996, -0.02342810109257698, 0.20392325520515442, -0.32175666093826294, -0.10859034955501556, 0.1327395737171173, -0.16170860826969147, 0.31498658657073975, -0.023574167862534523, 0.3847966492176056, -0.16437256336212158, -0.07821033149957657, -0.03711932525038719, -0.25981763005256653, -0.1299818903207779, 0.26379144191741943, 0.0549461767077446, 0.21517495810985565, -0.14431150257587433, -0.19555477797985077, -0.4107353091239929, 0.36948105692863464, 0.32151252031326294, -0.07174846529960632, -0.2284853160381317, 0.32636451721191406, -0.052359968423843384, -0.041938669979572296, 0.25447553396224976, 0.09593094885349274, -0.16174794733524323, -0.1017535999417305, -0.22512485086917877, -0.016008716076612473, 0.5899409055709839, -0.1830677092075348, -0.13857577741146088, -0.24071632325649261, 0.26410770416259766, -0.014310762286186218, -0.15535739064216614, -0.5288441777229309, 0.2193974256515503, 0.1906478852033615, 0.12790918350219727, -0.09065767377614975, 0.5273021459579468, -0.06757324934005737, 0.12878119945526123, 0.18944592773914337, 0.45975643396377563, 0.15163901448249817, -0.1560240387916565, 0.09042055904865265, -0.09297643601894379 ]
https://github.com/huggingface/datasets/issues/5433
Support latest Docker image in CI benchmarks
Sorry, it was us:[^1] https://github.com/iterative/cml/pull/1317 & https://github.com/iterative/cml/issues/1319#issuecomment-1385599559; should be fixed with [v0.18.17](https://github.com/iterative/cml/releases/tag/v0.18.17). [^1]: More or less, see https://github.com/yargs/yargs/issues/873.
Once we find out the root cause of: - #5431 we should revert the temporary pin on the Docker image version introduced by: - #5432
18
Support latest Docker image in CI benchmarks Once we find out the root cause of: - #5431 we should revert the temporary pin on the Docker image version introduced by: - #5432 Sorry, it was us:[^1] https://github.com/iterative/cml/pull/1317 & https://github.com/iterative/cml/issues/1319#issuecomment-1385599559; should be fixed with [v0.18.17](https://github.com/iterative/cml/releases/tag/v0.18.17). [^1]: More or less, see https://github.com/yargs/yargs/issues/873.
[ -0.6130563616752625, -0.2923939824104309, -0.10609756410121918, -0.16350775957107544, 0.13340243697166443, -0.20803946256637573, 0.33740749955177307, 0.2859817445278168, -0.15508387982845306, 0.4208762049674988, 0.21680963039398193, 0.21651791036128998, -0.010054857470095158, -0.011116944253444672, -0.11422161757946014, 0.3743729591369629, -0.05128004401922226, 0.372691810131073, -0.09822170436382294, 0.04395267367362976, -0.2031967043876648, 0.1353657990694046, -0.08511949330568314, 0.010073810815811157, -0.11592698842287064, 0.06775780022144318, 0.21258269250392914, -0.07797008007764816, -0.37470144033432007, -0.2881236970424652, 0.2881103456020355, 0.13522596657276154, -0.11262129247188568, 0.4705953598022461, -0.00009985976066673175, 0.08856329321861267, 0.5005598664283752, 0.05196027457714081, -0.024427764117717743, -0.15457184612751007, -0.10319485515356064, -0.20084084570407867, -0.029452823102474213, -0.11728516966104507, -0.36656731367111206, -0.13940410315990448, -0.13453663885593414, 0.017111189663410187, 0.4295946955680847, 0.07692082971334457, 0.3236290514469147, 0.3688448369503021, -0.3921279311180115, -0.13084059953689575, 0.21381598711013794, -0.1795044094324112, -0.23183433711528778, 0.18026313185691833, 0.5679572224617004, -0.17726510763168335, -0.11135812848806381, 0.36416828632354736, 0.14904800057411194, 0.1282237470149994, -0.3365814983844757, -0.03807978332042694, 0.7991117835044861, -0.2593032121658325, 0.3078886568546295, -0.011636711657047272, 0.13153323531150818, 0.1601988524198532, -0.08698723465204239, -0.05595390126109123, 0.006635494064539671, -0.25330308079719543, 0.1285562813282013, -0.06991840898990631, 0.0662912130355835, -0.07467731833457947, -0.17329062521457672, 0.04873287305235863, -0.16403253376483917, -0.21549303829669952, -0.08841844648122787, 0.33825650811195374, -0.011983091942965984, 0.06688989698886871, 0.16429203748703003, -0.01975555345416069, 0.4175616204738617, 0.29199180006980896, -0.2607673704624176, -0.08609673380851746, 0.009362626820802689, -0.15811631083488464, 0.17437513172626495, -0.020772822201251984, -0.20076540112495422, 0.036781493574380875, -0.04044052213430405, 0.2958604097366333, 0.5059090256690979, 0.20887908339500427, -0.139403834939003, 0.2485058456659317, -0.07413607090711594, 0.3310563564300537, 0.5151203274726868, 0.4738152325153351, -0.018503179773688316, 0.09123854339122772, -0.02048913761973381, -0.30022144317626953, -0.07557955384254456, 0.036253921687603, 0.013882901519536972, -0.0755588635802269, -0.16574308276176453, -0.027011293917894363, 0.06772196292877197, 0.2629309892654419, 0.1558615118265152, 0.2874358594417572, 0.26465272903442383, 0.12373103201389313, 0.07172997295856476, -0.025883372873067856, -0.29840174317359924, 0.04358215257525444, -0.2629329562187195, 0.006221728399395943, -0.17954687774181366, -0.08037923276424408, -0.02959001064300537, 0.19931046664714813, 0.28995460271835327, 0.09823255985975266, 0.0721193179488182, -0.0087885782122612, 0.34992319345474243, 0.09154000878334045, 0.02248813956975937, 0.2856905460357666, 0.015369836241006851, -0.18729671835899353, 0.19550557434558868, -0.19830046594142914, -0.051498331129550934, -0.0731845274567604, -0.028417088091373444, -0.09359726309776306, 0.10007050633430481, 0.3343909680843353, -0.04532099515199661, 0.2419271320104599, -0.16970860958099365, 0.14550882577896118, 0.08100587129592896, 0.13596202433109283, 0.07763862609863281, -0.3405940532684326, -0.17082898318767548, 0.2152373492717743, 0.02144181914627552, 0.06419737637042999, 0.18889375030994415, -0.17814123630523682, 0.06498100608587265, -0.07021617889404297, 0.24557316303253174, -0.09598253667354584, -0.1537855863571167, -0.22755765914916992, -0.08928389102220535, -0.12334093451499939, -0.08165707439184189, -0.5717666149139404, -0.4769567549228668, 0.050976529717445374, -0.2859719693660736, -0.03560345247387886, -0.054444096982479095, 0.12719647586345673, 0.47651657462120056, -0.030351916328072548, -0.2164008617401123, 0.1795922815799713, -0.20002231001853943, 0.1970212608575821, -0.37526455521583557, -0.08906988054513931, -0.4290306568145752, 0.27678343653678894, 0.2122381031513214, -0.0691550150513649, -0.03449302166700363, -0.07811475545167923, -0.13371220231056213, -0.005179312080144882, 0.17108124494552612, -0.08836301416158676, 0.5805800557136536, -0.276584267616272, 0.24094906449317932, 0.4236982464790344, -0.23393481969833374, 0.27273377776145935, -0.2202524095773697, 0.2505752146244049, 0.33667874336242676, -0.08008672297000885, -0.15185967087745667, 0.08007889986038208, -0.26002272963523865, -0.2404516041278839, 0.2576097548007965, 0.07076944410800934, 0.06247900053858757, -0.06966687738895416, 0.12183471024036407, 0.04576665908098221, -0.1329691857099533, 0.008465318940579891, 0.47536298632621765, 0.13545557856559753, -0.35987696051597595, -0.2619524598121643, 0.29822322726249695, -0.1770748496055603, 0.028368588536977768, -0.2096368968486786, -0.13488438725471497, 0.24642738699913025, 0.05109172314405441, 0.49284327030181885, 0.17197568714618683, 0.221942737698555, 0.25734564661979675, -0.047795213758945465, -0.21819107234477997, 0.3163885474205017, -0.14790087938308716, 0.008646093308925629, 0.017333388328552246, 0.23738256096839905, 0.00928947702050209, 0.18725645542144775, 0.03583025932312012, 0.00105227530002594, 0.280997633934021, -0.11470534652471542, -0.16178210079669952, -0.2609167695045471, 0.16208907961845398, -0.2184019535779953, -0.06518281996250153, -0.33974358439445496, -0.026773102581501007, 0.10723462700843811, -0.03947653993964195, 0.31759488582611084, 0.0986851155757904, 0.16871827840805054, 0.12913112342357635, -0.10144026577472687, 0.1903182566165924, 0.385486364364624, -0.09748071432113647, 0.09382777661085129, -0.01460648700594902, -0.045569486916065216, -0.036972567439079285, -0.19399912655353546, 0.2619136571884155, 0.01958022266626358, 0.3228902518749237, 0.2946491241455078, 0.363271027803421, -0.2977364659309387, -0.18831956386566162, -0.07130778580904007, 0.049067601561546326, 0.1313943713903427, 0.05102362111210823, -0.0422435998916626, 0.033291012048721313, 0.04561832547187805, 0.12442155927419662, 0.037086691707372665, 0.1572870910167694, -0.37916216254234314, 0.18469592928886414, 0.3182385563850403, -0.22091275453567505, 0.3645281493663788, 0.04124552384018898, 0.4031168222427368, 0.21809597313404083, 0.2843763530254364, -0.1987006664276123, -0.24071168899536133, -0.29958251118659973, 0.2089804857969284, -0.10304240137338638, -0.3505099415779114, 0.2652260363101959, -0.09620701521635056, 0.022733278572559357, -0.23378077149391174, -0.6641314625740051, 0.16117633879184723, -0.10541923344135284, 0.4565228819847107, 0.11524614691734314, 0.16599243879318237, -0.13426820933818817, 0.11578485369682312, 0.2358323484659195, -0.3904018998146057, -0.165967658162117, -0.27714237570762634, -0.3714272677898407, -0.11206437647342682, -0.38203951716423035, -0.10135162621736526, 0.1396915763616562, -0.36849910020828247, -0.1205746978521347, 0.04421799257397652, 0.03178710117936134, 0.08583275973796844, 0.15056411921977997, -0.034878697246313095, 0.22307439148426056, -0.378523051738739, -0.11024345457553864, -0.23241393268108368, 0.14218486845493317, -0.2757757008075714, -0.14721737802028656, -0.0431051030755043, -0.019495176151394844, 0.3628532588481903, -0.0779818743467331, -0.42760926485061646, -0.363044410943985, -0.012822406366467476, 0.18165217339992523, 0.11092725396156311, -0.34901687502861023, 0.07382050156593323, 0.09058747440576553, -0.24712231755256653, -0.25498253107070923, -0.005846282467246056, 0.17333295941352844, 0.051732633262872696, 0.07083193957805634, 0.17678838968276978, 0.05746004730463028, 0.22633767127990723, 0.5176088213920593, -0.1271103173494339, -0.13749830424785614, 0.06520988792181015, 0.08040246367454529, 0.19543135166168213, -0.14438998699188232, 0.008618367835879326, -0.016066130250692368, 0.33449095487594604, -0.08633081614971161, 0.3957362771034241, 0.06304791569709778, -0.2219371646642685, -0.06570711731910706, 0.2439763844013214, 0.18602004647254944, -0.1628105789422989, -0.05130215734243393, 0.20141834020614624, 0.16247732937335968, 0.11122104525566101, -0.014302186667919159, 0.00002817995846271515, -0.1348855197429657, 0.08055752515792847, 0.042624346911907196, 0.04168581962585449, -0.08135922998189926, -0.3819156885147095, 0.0452069491147995, -0.27973511815071106, 0.0696190893650055, 0.08619406074285507, 0.1782766580581665, -0.05009295791387558, -0.03465738892555237, 0.06538265198469162, -0.3004332184791565, 0.17024902999401093, -0.1840517818927765, 0.09697048366069794, 0.11396990716457367, -0.10665873438119888, -0.406276136636734, -0.2639324367046356, -0.13634179532527924, 0.2774723768234253, 0.3578159809112549, 0.4527587890625, -0.02243848145008087, 0.16455703973770142, -0.1286369264125824, -0.3843470811843872, -0.04551010578870773, -0.055217444896698, -0.26348182559013367, -0.27252671122550964, -0.12745051085948944, 0.16661252081394196, -0.09534606337547302, -0.0264207161962986, -0.18956226110458374, -0.35582977533340454, 0.23210376501083374, -0.19850242137908936, -0.30251508951187134, 0.44790929555892944, 0.17546093463897705, -0.23077739775180817, 0.31665974855422974, 0.14108806848526, -0.13750775158405304, 0.29166415333747864, 0.14594683051109314, -0.029541175812482834, -0.09696054458618164, 0.1510053277015686, -0.1665164679288864, -0.12635278701782227, 0.38007086515426636, 0.10638787597417831, 0.05483527109026909, -0.2652069926261902, 0.28273940086364746, -0.15370020270347595, 0.20092053711414337, -0.07321716099977493, 0.1295662522315979, 0.17880851030349731, 0.08243393898010254, 0.11190736293792725, 0.0015688315033912659, -0.1412750780582428, 0.16344042122364044, 0.03958198428153992, -0.23875723779201508, 0.08988616615533829, 0.2814684212207794, 0.6501989364624023, -0.010618448257446289, -0.3159306049346924, 0.11874116212129593, 0.07774314284324646, 0.0731886699795723, 0.0016493387520313263, 0.2131999135017395, -0.29260385036468506, -0.05900576710700989, 0.18969017267227173, -0.06254515796899796, 0.18291738629341125, -0.3349994421005249, -0.3598734140396118, 0.0504017136991024, -0.04306430742144585, 0.47306594252586365, -0.1125829741358757, -0.09969882667064667, -0.23677387833595276, -0.11657935380935669, 0.2732962369918823, 0.29275086522102356, -0.028015367686748505, 0.1400439292192459, -0.12286898493766785, 0.119752436876297, -0.27631306648254395, -0.24063901603221893, -0.08018409460783005, -0.016290631145238876, -0.39034542441368103, 0.15990740060806274, 0.10836215317249298, -0.1777147650718689, -0.158247172832489, -0.06611572206020355, 0.0736074224114418, 0.08777564764022827, -0.05282516032457352, 0.4949716627597809, 0.1613294780254364, -0.06268525868654251, 0.04270046204328537, -0.12765319645404816, -0.20341727137565613, -0.18497097492218018, -0.24383026361465454, -0.16237324476242065, -0.03121824935078621, -0.1533341407775879, -0.04521866887807846, -0.025943055748939514, 0.25225645303726196, 0.3128557503223419, 0.030232444405555725, -0.14325988292694092, -0.21446865797042847, -0.28665798902511597, 0.2866828143596649, -0.41511285305023193, -0.031790103763341904, 0.14054834842681885, 0.1141049861907959, -0.1278965175151825, 0.042623769491910934, 0.1311618983745575, -0.05698346346616745, 0.06108599156141281, 0.1697324961423874, 0.09562952816486359, -0.10407229512929916, -0.3656677305698395, -0.04247916862368584, 0.07456295192241669, 0.01357877254486084, 0.22591818869113922, -0.2827454209327698, -0.32711029052734375, 0.22343163192272186, 0.31664198637008667, 0.2808239459991455, 0.26289382576942444, -0.06494230031967163, -0.05240897834300995, -0.1450740545988083, -0.09086327254772186, -0.37470611929893494, 0.13099370896816254, -0.4125916361808777, -0.1135454773902893, -0.014798293821513653, 0.03332500904798508, -0.46333467960357666, 0.09324044734239578, -0.42585980892181396, 0.3026747405529022, 0.310105562210083, -0.1262059509754181, 0.2727283239364624, 0.129779651761055, 0.16647614538669586, 0.2971028685569763, -0.3507130444049835, -0.33939871191978455, -0.10176607966423035, 0.03782333433628082, -0.08792196959257126, -0.22474105656147003, 0.025297172367572784, 0.25587570667266846, -0.272691547870636, 0.029535571113228798, 0.05433276668190956, -0.08458654582500458, -0.06183888018131256, -0.22242237627506256, -0.2430611103773117, 0.2409384846687317, 0.1919080764055252, 0.10971575975418091, -0.07849866151809692, 0.46747297048568726, -0.05279237776994705, 0.16151458024978638, 0.0855274423956871, -0.13853015005588531, 0.06983868777751923, 0.04366513714194298, -0.06620773673057556, 0.10480406880378723, 0.3331271708011627, 0.09045634418725967, 0.1415792852640152, 0.4649846851825714, 0.2626818120479584, -0.00586409866809845, -0.29906192421913147, -0.22284114360809326, -0.003658020868897438, 0.41832780838012695, -0.01567549630999565, 0.009920675307512283, -0.20973120629787445, 0.06870243698358536, 0.25893712043762207, 0.20932790637016296, 0.4630272686481476, -0.2466728836297989, -0.0750432014465332, 0.30663251876831055, 0.5971059799194336, -0.4468226432800293, 0.038354210555553436, -0.17113086581230164, -0.3934870660305023, 0.15715250372886658, 0.16811080276966095, -0.2115003615617752, 0.13350489735603333, -0.0034480318427085876, -0.13640671968460083, 0.2904135584831238, 0.2727808356285095, 0.16013100743293762, 0.2899593412876129, -0.07824555039405823, -0.00682082399725914, 0.39963698387145996, -0.11260123550891876, 0.09248020499944687, 0.17313794791698456, 0.27277180552482605, -0.012417537160217762, 0.0020860228687524796, -0.2929905652999878, -0.09276820719242096, -0.25140267610549927, -0.18297994136810303, -0.1690160036087036, -0.055264782160520554, -0.2313643991947174, 0.17179210484027863, 0.10409770905971527, 0.3006022572517395, -0.13495442271232605, 0.16096869111061096, -0.18791554868221283, 0.033896856009960175, -0.29303041100502014, 0.14069484174251556, 0.15785640478134155, -0.22299210727214813, 0.27429449558258057, 0.41057443618774414, 0.005483545362949371, 0.06220976263284683, 0.11758340895175934, 0.4252772331237793, 0.1738578826189041, -0.12259408831596375, -0.08218506723642349, -0.03691729158163071, -0.10886324942111969, -0.2595130503177643, 0.062105439603328705, -0.01942598819732666, -0.38064444065093994, 0.027913056313991547, 0.2776036262512207, -0.372036874294281, 0.10319610685110092, 0.0005486384034156799, 0.11430658400058746, 0.47682395577430725, -0.3405742943286896, 0.03494417667388916, 0.0934566929936409, -0.092399001121521, 0.14771611988544464, -0.09939119219779968, -0.16119812428951263, 0.035249263048172, -0.18721574544906616, 0.15531620383262634, -0.1543854922056198, 0.16224965453147888, -0.15597443282604218, 0.3736855685710907, 0.08193058520555496, -0.3389091491699219, -0.08600078523159027, -0.40776532888412476, -0.11520048975944519, 0.21700483560562134, -0.07167559862136841, -0.019997231662273407, -0.2786392271518707, 0.4367072284221649, -0.23615527153015137, -0.009725816547870636, 0.3690948486328125, -0.4100804328918457, 0.40927746891975403, -0.06534639000892639, -0.32585692405700684, 0.25622275471687317, 0.2886558175086975, -0.3173178434371948, 0.10665695369243622, -0.40001410245895386, 0.11877898871898651, -0.22229012846946716, 0.2582978308200836, -0.1310678869485855, -0.09466245770454407, 0.0173637755215168, 0.10001114010810852, 0.3822576403617859, 0.23783838748931885, 0.0769176334142685, -0.12909385561943054, -0.24146075546741486, -0.20696261525154114, -0.42528876662254333, -0.12214972823858261, -0.2652519643306732, 0.038738373667001724, 0.4293392598628998, -0.05778031796216965, -0.1578448861837387, -0.3166615068912506, -0.27171289920806885, 0.07623711228370667, -0.08373377472162247, -0.29215207695961, 0.031050419434905052, -0.07850863039493561, 0.1211511418223381, -0.1327001452445984, 0.0483914315700531, 0.22941581904888153, -0.16560149192810059, -0.3361588716506958, -0.5482370257377625, 0.3596441149711609, -0.14065726101398468, -0.20050951838493347, -0.1531379520893097, 0.19214293360710144, 0.04137808084487915, 0.16491778194904327, -0.0908045694231987, -0.062376540154218674, 0.06941308081150055, 0.02574426308274269, -0.23571959137916565, 0.2677824795246124, 0.3047068417072296, 0.08042150735855103, -0.05217381566762924, -0.060637637972831726, 0.22465106844902039, -0.04680661857128143, -0.12576423585414886, 0.036985307931900024 ]
https://github.com/huggingface/datasets/issues/5433
Support latest Docker image in CI benchmarks
Hi @0x2b3bfa0, thanks a lot for the investigation, the context about the the root cause and for fixing it!! We are reviewing your PR to unpin the container image.
Once we find out the root cause of: - #5431 we should revert the temporary pin on the Docker image version introduced by: - #5432
29
Support latest Docker image in CI benchmarks Once we find out the root cause of: - #5431 we should revert the temporary pin on the Docker image version introduced by: - #5432 Hi @0x2b3bfa0, thanks a lot for the investigation, the context about the the root cause and for fixing it!! We are reviewing your PR to unpin the container image.
[ -0.6018890142440796, -0.35305994749069214, -0.182864710688591, 0.09429202973842621, 0.13937310874462128, -0.2540074288845062, 0.3253415822982788, 0.2550433278083801, -0.04308389127254486, 0.422741174697876, 0.23625300824642181, 0.2828248143196106, 0.1454455405473709, 0.17262423038482666, -0.20304222404956818, 0.2142462581396103, -0.13008850812911987, 0.41926857829093933, -0.15473370254039764, -0.00954199954867363, -0.14236445724964142, 0.16820485889911652, -0.028049562126398087, -0.001506708562374115, -0.11346696317195892, 0.012581082060933113, 0.34154781699180603, -0.18148565292358398, -0.277039498090744, -0.20494519174098969, 0.19069378077983856, 0.11802320182323456, -0.09864513576030731, 0.5380899310112, -0.0000978079333435744, 0.08833542466163635, 0.4824373126029968, 0.10160788893699646, 0.060999441891908646, 0.011164866387844086, -0.25109046697616577, -0.049349844455718994, -0.029176015406847, -0.1781262457370758, -0.3995201885700226, -0.07607993483543396, -0.14838947355747223, 0.03990383446216583, 0.4439621567726135, 0.085696280002594, 0.35874876379966736, 0.5297003984451294, -0.22257307171821594, -0.005278387106955051, 0.29741472005844116, -0.2571580410003662, -0.2749546766281128, 0.16010501980781555, 0.44656938314437866, -0.14479121565818787, -0.19548413157463074, 0.3050401210784912, 0.13076388835906982, 0.21951830387115479, -0.4380650520324707, -0.15797051787376404, 0.5707594156265259, -0.37863889336586, 0.37752822041511536, 0.15750141441822052, 0.18996110558509827, 0.2055639624595642, 0.06202869117259979, 0.10877617448568344, -0.05092640221118927, -0.12348229438066483, 0.09113459289073944, -0.08882841467857361, 0.174673929810524, 0.011916154995560646, -0.09188144654035568, 0.13080854713916779, -0.1963198184967041, -0.23172183334827423, -0.22441086173057556, 0.27149057388305664, -0.14373689889907837, 0.1331373155117035, 0.11389709264039993, 0.01326962374150753, 0.39606180787086487, 0.25775647163391113, -0.2526024281978607, -0.2199467122554779, 0.14533214271068573, -0.17581036686897278, 0.12122151255607605, 0.018434125930070877, -0.34259966015815735, 0.020712431520223618, -0.017407473176717758, 0.4411315321922302, 0.3725035488605499, 0.16843843460083008, -0.2326592206954956, 0.21255815029144287, -0.09929358214139938, 0.3081497550010681, 0.46226125955581665, 0.49598321318626404, -0.09753961861133575, 0.06127330660820007, 0.02977779135107994, -0.15655067563056946, -0.14922021329402924, 0.0211749617010355, -0.07290203869342804, -0.08780578523874283, -0.23754040896892548, 0.02416340261697769, 0.03757684677839279, 0.17876584827899933, 0.15338991582393646, 0.18582683801651, 0.2596905827522278, 0.2921990156173706, 0.11831444501876831, -0.09657533466815948, -0.4207710921764374, -0.021091558039188385, -0.26521873474121094, -0.006656637415289879, -0.20172473788261414, -0.1325213760137558, -0.052955374121665955, 0.16589167714118958, 0.2929801642894745, 0.054502055048942566, 0.06245952099561691, 0.03873644769191742, 0.3819348216056824, 0.02246233820915222, -0.028110593557357788, 0.3194975256919861, 0.012387946248054504, -0.22327445447444916, 0.14239387214183807, -0.14895567297935486, 0.07902539521455765, -0.04484330117702484, -0.07091260701417923, -0.036269061267375946, -0.18376867473125458, 0.33419880270957947, -0.07240553200244904, 0.246938556432724, -0.11564325541257858, -0.004409581422805786, 0.05766569823026657, 0.17478859424591064, 0.11884821206331253, -0.37104785442352295, -0.23271530866622925, 0.18507497012615204, 0.06416749209165573, -0.051047831773757935, 0.08203767240047455, -0.07474812120199203, 0.20747435092926025, -0.220618337392807, 0.2272118330001831, -0.08353348076343536, -0.2043069750070572, -0.0467044934630394, -0.18198272585868835, -0.2292460799217224, -0.18941745162010193, -0.5259131193161011, -0.5489541292190552, 0.016382496803998947, -0.41344577074050903, -0.08216358721256256, 0.02071773260831833, 0.12324286252260208, 0.40547335147857666, 0.05993444100022316, -0.094367116689682, 0.07104888558387756, -0.057758353650569916, 0.1264854520559311, -0.4409026801586151, -0.057584017515182495, -0.2911869287490845, 0.33633360266685486, 0.20089073479175568, 0.006723038852214813, -0.02148105949163437, -0.08009275794029236, -0.09256861358880997, 0.02689855918288231, 0.03550171107053757, -0.04432586580514908, 0.4852975606918335, -0.22347043454647064, 0.1880752593278885, 0.35976657271385193, -0.2681998908519745, 0.2300105094909668, -0.2635374665260315, 0.20096592605113983, 0.3445065915584564, -0.06763595342636108, -0.15043920278549194, -0.0030351243913173676, -0.19807074964046478, -0.17476943135261536, 0.3174155354499817, 0.012531563639640808, 0.014783013612031937, -0.11233094334602356, 0.163188174366951, -0.08525485545396805, -0.20551517605781555, 0.04072829335927963, 0.3379998207092285, 0.19790326058864594, -0.29551801085472107, -0.14165832102298737, 0.2410573661327362, -0.19370514154434204, 0.06776631623506546, -0.2722076177597046, -0.11780721694231033, 0.07092195749282837, 0.07171754539012909, 0.42892682552337646, 0.12245049327611923, 0.2843559682369232, 0.244452565908432, -0.10434343665838242, -0.101434625685215, 0.3095090985298157, -0.10855192691087723, -0.06737586110830307, 0.05784153565764427, 0.2897142767906189, -0.08669450879096985, 0.15020447969436646, -0.09103929996490479, -0.04175721853971481, 0.30331501364707947, -0.12144532799720764, -0.1360149383544922, -0.2103608399629593, 0.1969173699617386, 0.0871303379535675, -0.08354774117469788, -0.13540375232696533, -0.055888086557388306, 0.1318158060312271, -0.05597623065114021, 0.26674947142601013, 0.04289904236793518, 0.14668002724647522, 0.1201033666729927, -0.08738425374031067, 0.2655965983867645, 0.36484137177467346, 0.006258159875869751, 0.1576368361711502, 0.036938536912202835, -0.08508029580116272, 0.06996924430131912, -0.1861170083284378, 0.15128110349178314, 0.025301247835159302, 0.3652535378932953, 0.291437029838562, 0.37260597944259644, -0.33314430713653564, -0.2084890902042389, -0.10462863743305206, 0.04355073720216751, 0.1175139769911766, -0.03990347310900688, -0.06394711136817932, 0.061416007578372955, 0.0349167138338089, 0.09443952143192291, 0.13698983192443848, 0.16478928923606873, -0.2814924120903015, 0.11825170367956161, 0.3616414964199066, -0.0540914312005043, 0.27060410380363464, 0.025832831859588623, 0.2955525517463684, 0.14085814356803894, 0.29672202467918396, -0.11448997259140015, -0.09240514039993286, -0.3385430872440338, 0.21966756880283356, -0.12624023854732513, -0.15156278014183044, 0.2656788229942322, -0.1095251739025116, -0.0625198557972908, -0.2571115791797638, -0.6325618624687195, 0.18600958585739136, -0.11825674772262573, 0.40794554352760315, 0.14482374489307404, 0.2863810062408447, -0.1774887889623642, 0.08720112591981888, 0.12255924195051193, -0.17515213787555695, -0.12978488206863403, -0.3187551498413086, -0.3762612044811249, 0.02520696632564068, -0.2516978085041046, -0.050015054643154144, 0.19935937225818634, -0.2525412142276764, 0.02314455434679985, 0.05724130943417549, 0.0908007100224495, -0.12278730422258377, 0.08120816946029663, 0.004335700534284115, 0.24950039386749268, -0.3870302438735962, -0.18148265779018402, -0.4061899781227112, 0.04407434165477753, -0.19687314331531525, -0.1202821284532547, -0.10760733485221863, 0.05569911748170853, 0.4392372667789459, -0.08002059906721115, -0.4850160479545593, -0.43468207120895386, -0.13931456208229065, 0.29682862758636475, -0.026669137179851532, -0.2780485153198242, 0.1671661138534546, 0.06570715457201004, -0.2623019516468048, -0.2122102975845337, 0.0482998751103878, 0.17497935891151428, -0.01728203520178795, 0.11540649831295013, 0.17220303416252136, 0.008853930979967117, 0.18951012194156647, 0.48115968704223633, -0.09282515943050385, -0.2525183856487274, 0.06601346284151077, 0.026931457221508026, 0.21369709074497223, -0.23450782895088196, 0.08883951604366302, -0.02495691180229187, 0.24616464972496033, -0.06983007490634918, 0.256370484828949, 0.01894286833703518, -0.10392872989177704, -0.058502428233623505, 0.1687859445810318, 0.14177155494689941, -0.12473434209823608, -0.02309838868677616, 0.07646910846233368, 0.13474048674106598, -0.02214517816901207, -0.01312430202960968, 0.030899997800588608, -0.13451915979385376, 0.0865287035703659, 0.007116600871086121, 0.07527836412191391, -0.14845779538154602, -0.530985951423645, -0.06246349960565567, -0.31478482484817505, 0.12904290854930878, -0.007622126489877701, 0.16512709856033325, -0.08641822636127472, 0.10252932459115982, 0.18794837594032288, -0.25049710273742676, 0.20554259419441223, -0.2137300968170166, 0.2801092863082886, 0.15833716094493866, -0.11211303621530533, -0.3451799154281616, -0.22657401859760284, -0.2542453408241272, 0.35006478428840637, 0.29350677132606506, 0.37354108691215515, 0.019007906317710876, 0.07009036839008331, -0.000019613653421401978, -0.3473801612854004, -0.023769615218043327, -0.11900059133768082, -0.30369997024536133, -0.2522828280925751, -0.036128800362348557, 0.08699306100606918, 0.053832679986953735, -0.025932567194104195, -0.2808055579662323, -0.42156460881233215, 0.07589495182037354, -0.2668151259422302, -0.2848435640335083, 0.2673187851905823, 0.12854135036468506, -0.11465354263782501, 0.23217597603797913, 0.1113738939166069, -0.10147860646247864, 0.21341954171657562, 0.0917806476354599, -0.04827043041586876, -0.05611860752105713, 0.14972925186157227, -0.06606302410364151, -0.2074451446533203, 0.28131794929504395, 0.19892600178718567, 0.06391245871782303, -0.25007545948028564, 0.34366661310195923, -0.1857684999704361, 0.17003124952316284, -0.04435904324054718, 0.15194843709468842, 0.20100781321525574, 0.1639874279499054, 0.1796942949295044, 0.08257827162742615, -0.1676056683063507, 0.32166987657546997, 0.07209538668394089, -0.24221651256084442, 0.08900757879018784, 0.26954811811447144, 0.7193870544433594, -0.08644679188728333, -0.28764989972114563, -0.00592292845249176, -0.15703710913658142, 0.12606604397296906, -0.0029232166707515717, 0.15826858580112457, -0.29780417680740356, -0.13070468604564667, 0.1357293277978897, -0.06965310126543045, 0.12365154922008514, -0.37189310789108276, -0.26692795753479004, 0.08214399218559265, -0.24391505122184753, 0.39551159739494324, -0.14940933883190155, -0.03757418319582939, -0.15275856852531433, -0.046697136014699936, 0.31399083137512207, 0.3059176206588745, -0.08281604945659637, 0.20927047729492188, -0.12462473660707474, 0.17598199844360352, -0.11795143783092499, -0.14010846614837646, -0.04348663240671158, -0.14261102676391602, -0.3879702687263489, 0.24328964948654175, 0.04952702671289444, -0.22715407609939575, -0.1290973722934723, -0.05507104471325874, 0.02708350121974945, 0.04320560023188591, -0.02322269417345524, 0.45839032530784607, 0.283298134803772, -0.06837943941354752, 0.09133869409561157, -0.10425104200839996, -0.24052050709724426, -0.09782175719738007, -0.3699953854084015, -0.16432008147239685, -0.0650455430150032, -0.07728859037160873, -0.05997159332036972, 0.026171941310167313, 0.3283466100692749, 0.22217434644699097, 0.11469735205173492, -0.04019506275653839, -0.20693282783031464, -0.11511416733264923, 0.32390910387039185, -0.4492005705833435, -0.0676591694355011, 0.11941829323768616, 0.2894439995288849, -0.1960512101650238, 0.09632506966590881, 0.3458752930164337, 0.05227931961417198, -0.01981293223798275, 0.16091561317443848, 0.055810052901506424, -0.1779356151819229, -0.34207582473754883, 0.09673858433961868, 0.11301935464143753, 0.06692443042993546, 0.12488387525081635, -0.27258774638175964, -0.32144415378570557, 0.14408119022846222, 0.28718388080596924, 0.18633830547332764, 0.30173319578170776, 0.006636861711740494, -0.09917841851711273, -0.2511787712574005, -0.20696528255939484, -0.4201471507549286, 0.17390061914920807, -0.3248075246810913, -0.14840711653232574, 0.05564001947641373, 0.018552523106336594, -0.4717687666416168, 0.21539908647537231, -0.40798020362854004, 0.2528129816055298, 0.3073621988296509, -0.1401524841785431, 0.08201581984758377, 0.1451372653245926, 0.21982041001319885, 0.3274734616279602, -0.4399264454841614, -0.3631317913532257, 0.024423353374004364, 0.043565258383750916, -0.15052655339241028, -0.23971498012542725, -0.029092486947774887, 0.2079772651195526, -0.26329505443573, 0.16197870671749115, 0.08649113774299622, 0.012144539505243301, -0.06659990549087524, -0.21366120874881744, -0.3269953727722168, 0.23009717464447021, 0.1204807311296463, 0.1087036207318306, -0.06762091815471649, 0.44081711769104004, -0.05946863815188408, 0.08875983953475952, 0.1680968552827835, -0.13813303411006927, 0.014677231200039387, -0.0591878667473793, -0.053704455494880676, 0.20028573274612427, 0.2174985110759735, 0.09834189713001251, 0.14412415027618408, 0.35644403100013733, 0.14772604405879974, -0.04913689196109772, -0.2759222984313965, -0.2721109986305237, -0.0004161205142736435, 0.46700775623321533, 0.006674818694591522, -0.039927057921886444, -0.1476263552904129, 0.10595971345901489, 0.17819614708423615, 0.23073703050613403, 0.4527083933353424, -0.2378498911857605, -0.046310603618621826, 0.2820514440536499, 0.4037021994590759, -0.5472284555435181, 0.01987643539905548, -0.29702335596084595, -0.3995753824710846, 0.013334345072507858, 0.22227555513381958, -0.12505458295345306, 0.043341875076293945, 0.027897698804736137, 0.01415853202342987, 0.3596910238265991, 0.25269192457199097, 0.24591149389743805, 0.24471309781074524, 0.04109194502234459, -0.05931027606129646, 0.49727606773376465, -0.16823384165763855, 0.11007565259933472, 0.22754870355129242, 0.2201606035232544, -0.050468385219573975, -0.00018505286425352097, -0.24142935872077942, -0.10963474214076996, -0.3072414994239807, -0.19272463023662567, -0.24842235445976257, 0.000048138201236724854, -0.1571052372455597, 0.1514340192079544, 0.11029018461704254, 0.37990450859069824, -0.010463885962963104, 0.2549871802330017, -0.29047179222106934, 0.11064688116312027, -0.3682541251182556, 0.13009442389011383, 0.23754754662513733, -0.1715541034936905, 0.2427929788827896, 0.33835652470588684, 0.1448533833026886, 0.07627851516008377, 0.18475882709026337, 0.34878969192504883, -0.003566417843103409, -0.1806550770998001, -0.13382966816425323, 0.023364577442407608, -0.09490460902452469, -0.21632257103919983, -0.0810466930270195, -0.03684183210134506, -0.30928048491477966, -0.06931059062480927, 0.29852351546287537, -0.3392026722431183, 0.09985257685184479, 0.06400621682405472, 0.18726107478141785, 0.30572018027305603, -0.39726242423057556, 0.01745031774044037, -0.01958836242556572, -0.15775446593761444, 0.02992159128189087, -0.09996657073497772, 0.032149653881788254, -0.045183997601270676, -0.22861209511756897, 0.1579124927520752, -0.009035125374794006, 0.18044190108776093, -0.2487129271030426, 0.3178378641605377, -0.0605928860604763, -0.34746408462524414, -0.042437247931957245, -0.5071911811828613, 0.016333498060703278, 0.22108322381973267, -0.056252676993608475, -0.11810063570737839, -0.21734143793582916, 0.3922882676124573, -0.2979879677295685, -0.02644948661327362, 0.37497222423553467, -0.3848629593849182, 0.3661437928676605, -0.0528554767370224, -0.3442874252796173, 0.2814016044139862, 0.20312447845935822, -0.25841769576072693, 0.04718851298093796, -0.31111377477645874, 0.1172492504119873, 0.03352249786257744, 0.3151125907897949, -0.12451910972595215, -0.018686145544052124, -0.08380962908267975, 0.09194270521402359, 0.40154650807380676, 0.18299514055252075, 0.08141234517097473, -0.11207892745733261, -0.06633257865905762, -0.04764525219798088, -0.32163873314857483, -0.1368972361087799, -0.10437286645174026, 0.06254991888999939, 0.3395559787750244, 0.003845609724521637, -0.06409542262554169, -0.305380254983902, -0.2714349031448364, 0.07952552288770676, 0.06497644633054733, -0.3638213276863098, 0.008806467056274414, -0.0004892311990261078, 0.11573159694671631, -0.10072756558656693, 0.1366499811410904, 0.304227352142334, -0.21984104812145233, -0.3441227078437805, -0.4601554870605469, 0.2695621848106384, -0.19823189079761505, -0.23565298318862915, -0.051739659160375595, 0.2542579770088196, -0.05396241694688797, 0.11038949340581894, -0.13773931562900543, -0.06919104605913162, 0.11750496923923492, -0.148389995098114, -0.21083731949329376, 0.25303107500076294, 0.23178884387016296, 0.09664523601531982, -0.07477850466966629, -0.07361292839050293, 0.19212797284126282, -0.047418318688869476, -0.2108405977487564, 0.036075420677661896 ]
https://github.com/huggingface/datasets/issues/5430
Support Apache Beam >= 2.44.0
Some of the shard files now have 0 number of rows. We have opened an issue in the Apache Beam repo: - https://github.com/apache/beam/issues/25041
Once we find out the root cause of: - #5426 we should revert the temporary pin on apache-beam introduced by: - #5429
23
Support Apache Beam >= 2.44.0 Once we find out the root cause of: - #5426 we should revert the temporary pin on apache-beam introduced by: - #5429 Some of the shard files now have 0 number of rows. We have opened an issue in the Apache Beam repo: - https://github.com/apache/beam/issues/25041
[ -0.0971207320690155, -0.17724694311618805, -0.11105601489543915, 0.13440090417861938, 0.05978311598300934, -0.3304857611656189, 0.3070109486579895, 0.5164264440536499, -0.14478285610675812, 0.47725218534469604, 0.07314278185367584, -0.0887066125869751, -0.03046070784330368, 0.024754585698246956, 0.00014629215002059937, 0.07660090923309326, 0.015580594539642334, 0.15677222609519958, -0.12888149917125702, -0.23938754200935364, -0.04383173957467079, 0.21287521719932556, -0.200795978307724, -0.2485351413488388, -0.23881573975086212, 0.31827518343925476, 0.17273658514022827, 0.12057675421237946, -0.06732171028852463, -0.19562150537967682, -0.1064068004488945, -0.21879005432128906, -0.15569940209388733, 0.11616785079240799, -0.0001013373548630625, 0.047001153230667114, 0.5749622583389282, -0.0316743403673172, -0.17822350561618805, 0.17520901560783386, -0.4181106388568878, -0.2010977417230606, 0.020778706297278404, -0.17649304866790771, -0.0035986416041851044, -0.05315449461340904, -0.06030258536338806, 0.18640613555908203, 0.32820358872413635, 0.13189354538917542, 0.35199931263923645, 0.33552974462509155, 0.17095838487148285, -0.12655821442604065, 0.8546650409698486, -0.004170924425125122, 0.006056161597371101, -0.12029102444648743, 0.06146436184644699, 0.15390393137931824, -0.33257952332496643, 0.3815166652202606, 0.1583821028470993, 0.00977163016796112, -0.1430588662624359, -0.2043597400188446, 0.08020397275686264, -0.09528174996376038, 0.2283552885055542, 0.046203747391700745, 0.08695796132087708, 0.05714791640639305, 0.297229528427124, 0.07856977730989456, 0.166787788271904, 0.051712073385715485, 0.3156575560569763, 0.11019618064165115, 0.1023104190826416, -0.10086897015571594, 0.0633711889386177, 0.03043534979224205, -0.18065738677978516, -0.10437662899494171, -0.06250487267971039, -0.22251877188682556, -0.050194643437862396, -0.01749289035797119, 0.11371786892414093, -0.2395908087491989, 0.10685881227254868, 0.111391581594944, -0.27983593940734863, 0.03428330644965172, -0.2784164249897003, -0.00030002743005752563, 0.2622673511505127, 0.34484216570854187, 0.05246340483427048, -0.12272080779075623, 0.15569625794887543, 0.47551801800727844, 0.3703863322734833, 0.09905926138162613, -0.34621286392211914, 0.16931462287902832, 0.4700073003768921, -0.19285303354263306, 0.13669458031654358, -0.06677504628896713, 0.06768020987510681, 0.04928547143936157, 0.14920522272586823, -0.4518338441848755, -0.296191930770874, -0.08503983169794083, -0.13166865706443787, -0.09903834760189056, 0.17867308855056763, 0.24465864896774292, -0.06588488072156906, 0.1548403948545456, -0.037682946771383286, 0.28948891162872314, 0.5238853693008423, 0.17214319109916687, 0.17319978773593903, -0.18582837283611298, -0.29270052909851074, -0.8624465465545654, -0.2660304307937622, 0.15676672756671906, -0.26462864875793457, -0.11846109479665756, 0.11377617716789246, 0.11024284362792969, -0.0869215652346611, 0.0970579981803894, 0.2523099184036255, 0.027413085103034973, 0.03783649951219559, 0.19499196112155914, 0.10535251349210739, 0.4145401418209076, 0.14519870281219482, 0.0641242116689682, 0.04833337664604187, -0.058696817606687546, 0.1781770884990692, 0.11831311881542206, -0.05404670536518097, -0.19132478535175323, -0.07360690832138062, 0.3580869138240814, -0.04464729502797127, 0.5002164840698242, -0.3147120475769043, -0.11724691092967987, -0.07883342355489731, -0.1051521748304367, -0.11531544476747513, -0.25871115922927856, 0.11821509897708893, -0.22960899770259857, 0.19747434556484222, 0.40638017654418945, 0.056093957275152206, 0.07095243036746979, -0.10862784087657928, -0.18650183081626892, -0.1419987678527832, -0.06777667999267578, -0.09063029289245605, -0.16100704669952393, -0.20544961094856262, 0.2983282208442688, 0.3746929466724396, 0.046803731471300125, -0.36521705985069275, 0.2095828652381897, -0.11202507466077805, -0.3936539888381958, -0.02613893896341324, 0.03896164521574974, 0.16273441910743713, -0.018300820142030716, -0.2761034369468689, -0.23307232558727264, 0.19015495479106903, 0.05305563658475876, -0.5146560072898865, 0.050984255969524384, -0.5211461186408997, 0.15780888497829437, 0.27215883135795593, -0.018005050718784332, 0.41083410382270813, -0.20951983332633972, 0.10482513159513474, -0.05008799955248833, 0.21721944212913513, 0.3950729966163635, 0.05116724967956543, -0.1265963315963745, 0.16914255917072296, 0.11238303035497665, -0.3474365472793579, 0.11659782379865646, -0.47321370244026184, 0.07670958340167999, 0.1973060667514801, -0.0735548734664917, -0.15864533185958862, 0.07599252462387085, 0.021547313779592514, -0.09213292598724365, 0.31939971446990967, -0.10601174831390381, -0.043703343719244, 0.005099032074213028, -0.1063741147518158, -0.07610416412353516, -0.24524493515491486, -0.10677643865346909, -0.5090329051017761, 0.3284326493740082, -0.13033892214298248, -0.18258842825889587, 0.11919689178466797, -0.07809735089540482, 0.2843954563140869, -0.1932099163532257, 0.06360837072134018, 0.2832556366920471, -0.08250514417886734, 0.07026080787181854, 0.2537665367126465, 0.275822252035141, 0.18917112052440643, -0.14737512171268463, -0.01220465637743473, 0.02724633365869522, 0.002369048073887825, -0.04506785422563553, 0.10842277854681015, 0.06662765145301819, 0.09490393102169037, 0.02822597324848175, -0.0611504428088665, 0.059180840849876404, 0.22397199273109436, -0.12574197351932526, -0.003958556801080704, -0.3509092330932617, 0.21833819150924683, 0.45162245631217957, -0.4857417941093445, 0.150991290807724, 0.16528993844985962, 0.10291314870119095, 0.20297303795814514, -0.06752590835094452, -0.021449103951454163, 0.12179214507341385, -0.23803475499153137, -0.09993329644203186, 0.3342387080192566, 0.2709179222583771, 0.04437156766653061, 0.22548776865005493, 0.007825300097465515, -0.1343088150024414, 0.07350398600101471, -0.3402809202671051, 0.05241867154836655, 0.00007048994302749634, -0.004826003685593605, 0.22483855485916138, 0.2497282475233078, -0.21284063160419464, -0.2261906862258911, -0.06474671512842178, 0.022733332589268684, 0.26113349199295044, -0.20797838270664215, -0.36740437150001526, -0.18692530691623688, -0.011698467656970024, -0.21765191853046417, 0.39934051036834717, -0.26785627007484436, -0.28853777050971985, 0.31083714962005615, 0.09394539892673492, -0.3674648106098175, 0.2276477813720703, 0.363391250371933, 0.004636034369468689, 0.22611825168132782, 0.45357635617256165, -0.40075209736824036, -0.04897647351026535, -0.18051254749298096, 0.1541980803012848, 0.05488090217113495, 0.13244125247001648, 0.01885872706770897, -0.1235131323337555, -0.16538548469543457, -0.44038769602775574, -0.1671181470155716, 0.1844376176595688, 0.05257048457860947, -0.1296033263206482, 0.06765137612819672, 0.166913241147995, -0.34904396533966064, 0.09415753930807114, 0.22019825875759125, -0.14061114192008972, -0.22841836512088776, 0.2926875650882721, 0.06646731495857239, 0.10688192397356033, -0.21299758553504944, -0.029275767505168915, 0.34886616468429565, -0.30083850026130676, -0.14602774381637573, 0.0722038745880127, 0.21503384411334991, -0.4905485212802887, 0.2686068117618561, -0.042700283229351044, -0.20271313190460205, -0.3702000081539154, -0.07146497070789337, -0.12607568502426147, 0.18939580023288727, -0.3378821313381195, -0.5878206491470337, 0.21426904201507568, -0.1334700882434845, 0.010226603597402573, 0.3169911503791809, -0.23471271991729736, -0.13251276314258575, 0.016504518687725067, -0.00926540419459343, -0.08476327359676361, -0.07389737665653229, 0.43439212441444397, 0.09529347717761993, -0.25371670722961426, -0.15388163924217224, 0.3756884038448334, 0.15341494977474213, -0.3036969304084778, 0.1581449657678604, -0.013738971203565598, -0.06453242152929306, 0.1887340098619461, 0.6283949613571167, -0.03942957893013954, -0.04971989616751671, -0.0017497614026069641, 0.04450390487909317, 0.21804381906986237, -0.19176435470581055, 0.17729146778583527, 0.039954498410224915, 0.20878200232982635, 0.14413610100746155, 0.3267838954925537, -0.006769523024559021, 0.1845342516899109, -0.14870376884937286, -0.06971985846757889, -0.23597252368927002, -0.23295441269874573, 0.2494066208600998, 0.018063874915242195, 0.3100895583629608, -0.1093137264251709, -0.03135376423597336, 0.2369026243686676, -0.17689666152000427, 0.15514206886291504, -0.040620461106300354, -0.016709931194782257, -0.14406073093414307, -0.002995707094669342, 0.16416171193122864, -0.11747059971094131, 0.5484027862548828, 0.03357727453112602, -0.08643677830696106, -0.056642577052116394, -0.35055452585220337, 0.3412500321865082, 0.04968930408358574, 0.5195998549461365, -0.015623563900589943, 0.40047770738601685, 0.19664044678211212, 0.16718098521232605, -0.4278523623943329, -0.08295267820358276, -0.13741527497768402, -0.2314111292362213, 0.39593756198883057, -0.015087254345417023, -0.1978042721748352, 0.142218217253685, 0.02904452756047249, -0.20339897274971008, -0.20941445231437683, -0.024605635553598404, -0.2370217740535736, 0.021571941673755646, -0.07261381298303604, -0.34660661220550537, -0.06447619199752808, -0.025545639917254448, -0.1757170408964157, -0.12265203893184662, -0.07116155326366425, -0.40727344155311584, -0.23684097826480865, 0.03345833718776703, 0.23228773474693298, -0.14264275133609772, -0.032978810369968414, 0.004713129252195358, 0.31051257252693176, 0.2693454325199127, -0.1265796571969986, 0.19874358177185059, 0.15554818511009216, 0.1097678393125534, -0.09164661914110184, -0.03563224524259567, 0.24428392946720123, -0.1374189704656601, 0.05237264558672905, -0.10837507247924805, 0.24447984993457794, 0.03560161963105202, 0.07684534788131714, -0.035311296582221985, -0.18865108489990234, 0.19050005078315735, 0.26533642411231995, 0.3360174596309662, -0.357766717672348, -0.14812585711479187, -0.04788276553153992, 0.2534511089324951, -0.02098170854151249, 0.3610297441482544, 0.12429049611091614, 0.8092646598815918, -0.1556246429681778, -0.03686269000172615, 0.1724107265472412, 0.054495908319950104, 0.22099217772483826, -0.40498030185699463, 0.3004950284957886, -0.39874958992004395, -0.03683696687221527, 0.1950005739927292, 0.025689829140901566, 0.12950949370861053, 0.15400253236293793, 0.1136384904384613, 0.10963746160268784, 0.052556201815605164, 0.456346333026886, -0.11526481807231903, -0.12061489373445511, -0.06402741372585297, 0.0969914048910141, -0.0456513985991478, 0.2606906592845917, -0.04371216893196106, -0.0482865534722805, -0.0989740863442421, -0.005927868187427521, 0.045457806438207626, -0.2722478210926056, 0.04863394796848297, 0.10798022896051407, 0.08136589080095291, 0.2586328387260437, -0.023303091526031494, -0.5671055316925049, -0.2617797255516052, 0.07811842113733292, -0.20450259745121002, 0.1562672257423401, -0.04977073520421982, 0.44506269693374634, 0.2380225956439972, -0.12258397787809372, -0.12921105325222015, 0.22831390798091888, -0.061890363693237305, -0.1531745195388794, -0.21291139721870422, 0.1177801787853241, -0.028415288776159286, -0.13983610272407532, -0.292261004447937, 0.3063102066516876, 0.28058338165283203, -0.07552486658096313, 0.21468698978424072, -0.00010222196578979492, -0.12573227286338806, 0.05151544138789177, 0.3140794634819031, -0.09256358444690704, -0.19723471999168396, -0.009729854762554169, 0.12214697897434235, -0.09241686016321182, 0.06353265047073364, 0.5640633702278137, -0.01916222646832466, -0.16621527075767517, 0.03325492888689041, 0.1463545262813568, -0.15696614980697632, -0.36031365394592285, 0.08584798127412796, 0.16320204734802246, -0.3944753408432007, 0.008089715614914894, 0.004995670169591904, 0.02019985020160675, 0.04022394120693207, 0.10152462124824524, 0.016955014318227768, 0.17299288511276245, -0.057677485048770905, 0.06214262545108795, -0.1013476774096489, 0.05014674738049507, -0.2843998372554779, 0.019440997391939163, -0.05630658194422722, 0.0013296613469719887, 0.1167878806591034, 0.06748323142528534, -0.43677279353141785, 0.06342457979917526, -0.14510691165924072, 0.25109654664993286, 0.3702658712863922, -0.08019230514764786, -0.03360097482800484, -0.051518701016902924, 0.23628899455070496, 0.15064740180969238, -0.25324076414108276, -0.33521711826324463, 0.27525773644447327, 0.03063070774078369, -0.18229109048843384, 0.23759502172470093, -0.3619566559791565, -0.05422792211174965, -0.07307323813438416, 0.018952637910842896, 0.13752499222755432, 0.00783158466219902, -0.17534951865673065, 0.1002986803650856, 0.10722525417804718, 0.16517725586891174, 0.18328961730003357, 0.10234181582927704, -0.05336053669452667, 0.2695252299308777, -0.13757842779159546, -0.16127020120620728, 0.023309070616960526, -0.04035893827676773, -0.0394630990922451, 0.11312559247016907, -0.3561742901802063, -0.07074449211359024, 0.37206897139549255, -0.0346362367272377, -0.18282222747802734, 0.035161640495061874, 0.37609127163887024, -0.3089374899864197, -0.24297353625297546, -0.2709487974643707, 0.14059978723526, 0.4013313353061676, -0.18536405265331268, -0.06884685158729553, 0.22336311638355255, 0.3330356478691101, -0.01486443355679512, -0.08460641652345657, 0.039103057235479355, -0.6556110382080078, 0.13294023275375366, 0.43928614258766174, 0.013223780319094658, -0.41136693954467773, -0.12943731248378754, -0.10233604907989502, -0.12284453213214874, -0.22021804749965668, -0.050865426659584045, -0.04670633003115654, 0.14987629652023315, 0.5237651467323303, -0.14831161499023438, 0.4921049177646637, -0.11185287684202194, 0.09866516292095184, -0.06834522634744644, -0.2734750211238861, -0.10419677197933197, 0.6211103200912476, 0.029577292501926422, 0.1254422664642334, 0.1080596074461937, 0.1682058572769165, 0.6295502185821533, -0.10644121468067169, -0.20112566649913788, -0.03503386303782463, -0.1521781086921692, 0.2508350908756256, -0.11166778951883316, -0.1662851870059967, -0.19081076979637146, 0.07758018374443054, 0.30488425493240356, 0.2738741636276245, 0.46720603108406067, 0.4125847816467285, -0.20767654478549957, 0.011281026527285576, 0.30820804834365845, 0.035244107246398926, 0.24635416269302368, -0.1652931272983551, -0.005562910810112953, 0.1588936746120453, 0.05382810905575752, 0.3250550925731659, -0.13546474277973175, 0.06964576244354248, 0.027687231078743935, 0.17704328894615173, 0.03165125101804733, 0.07740670442581177, -0.08057504892349243, -0.4385777413845062, 0.0899265706539154, 0.2064805030822754, 0.20098672807216644, 0.005997177213430405, 0.2748657166957855, -0.3806051015853882, -0.05925336107611656, 0.030338145792484283, 0.3108416497707367, -0.04028710722923279, -0.05650315433740616, -0.10396049916744232, -0.41427624225616455, -0.2908443510532379, -0.10592368990182877, -0.4439457058906555, -0.21321997046470642, -0.15285955369472504, 0.011466747149825096, -0.026188265532255173, -0.371616393327713, 0.14270955324172974, -0.1740429401397705, 0.2733643651008606, -0.11162659525871277, -0.16044795513153076, -0.06564746052026749, -0.6360005736351013, -0.3054446280002594, 0.21530529856681824, -0.10444346070289612, 0.24753960967063904, -0.1743232160806656, 0.42527318000793457, -0.05885273963212967, -0.12721490859985352, 0.2472338229417801, -0.3698410391807556, -0.20125867426395416, 0.06977671384811401, -0.22775593400001526, 0.23245994746685028, -0.03930600732564926, -0.35978999733924866, 0.03242925554513931, -0.18886080384254456, 0.22413988411426544, -0.0451202355325222, 0.3089502155780792, 0.07928021252155304, -0.18780043721199036, 0.13076187670230865, -0.14495185017585754, 0.2718818783760071, 0.23635068535804749, -0.06935842335224152, -0.12612000107765198, 0.0327262207865715, -0.19031569361686707, -0.12578687071800232, 0.1053338274359703, 0.10684290528297424, 0.11857731640338898, 0.23535391688346863, -0.010472013615071774, 0.06264355033636093, -0.09930571913719177, 0.2186044156551361, -0.025854891166090965, 0.25668758153915405, -0.1731167882680893, 0.004525244235992432, -0.06559988111257553, 0.15643136203289032, -0.11346805840730667, -0.05168551951646805, 0.1244494765996933, -0.19263842701911926, -0.26778876781463623, -0.42334645986557007, 0.24021020531654358, -0.47736793756484985, -0.17051328718662262, 0.17496895790100098, 0.41015976667404175, 0.01664600893855095, -0.01232810877263546, -0.22773396968841553, -0.24107325077056885, 0.16696441173553467, 0.20492690801620483, 0.01918049156665802, -0.06878572702407837, -0.19513028860092163, -0.17270249128341675, -0.0627855658531189, -0.24421891570091248, 0.23167943954467773, 0.03529294580221176, -0.07483859360218048, -0.3255907893180847 ]
https://github.com/huggingface/datasets/issues/5428
Load/Save FAISS index using fsspec
Hi! Sure, feel free to submit a PR. Maybe if we want to be consistent with the existing API, it would be cleaner to directly add support for `fsspec` paths in `Dataset.load_faiss_index`/`Dataset.save_faiss_index` in the same manner as it was done in `Dataset.load_from_disk`/`Dataset.save_to_disk`.
### Feature request From what I understand `faiss` already support this [link](https://github.com/facebookresearch/faiss/wiki/Index-IO,-cloning-and-hyper-parameter-tuning#generic-io-support) I would like to use a stream as input to `Dataset.load_faiss_index` and `Dataset.save_faiss_index`. ### Motivation In my case, I'm saving faiss index in cloud storage and use `fsspec` to load them. It would be ideal if I could send the stream directly instead of copying the file locally (or mounting the bucket) and then load the index. ### Your contribution I can submit the PR
42
Load/Save FAISS index using fsspec ### Feature request From what I understand `faiss` already support this [link](https://github.com/facebookresearch/faiss/wiki/Index-IO,-cloning-and-hyper-parameter-tuning#generic-io-support) I would like to use a stream as input to `Dataset.load_faiss_index` and `Dataset.save_faiss_index`. ### Motivation In my case, I'm saving faiss index in cloud storage and use `fsspec` to load them. It would be ideal if I could send the stream directly instead of copying the file locally (or mounting the bucket) and then load the index. ### Your contribution I can submit the PR Hi! Sure, feel free to submit a PR. Maybe if we want to be consistent with the existing API, it would be cleaner to directly add support for `fsspec` paths in `Dataset.load_faiss_index`/`Dataset.save_faiss_index` in the same manner as it was done in `Dataset.load_from_disk`/`Dataset.save_to_disk`.
[ -0.3019087016582489, -0.01689211279153824, 0.0011662375181913376, 0.02637380361557007, -0.0360608771443367, -0.14312449097633362, 0.1445278376340866, 0.08800782263278961, 0.3042910695075989, 0.39370518922805786, -0.07668682187795639, -0.024885402992367744, 0.1213657334446907, 0.5802853107452393, 0.037743519991636276, 0.027893580496311188, 0.20534415543079376, 0.033628396689891815, 0.10626015067100525, 0.1883116513490677, -0.024111293256282806, 0.039778806269168854, 0.15826500952243805, 0.0868293046951294, 0.11795743554830551, 0.3755110502243042, -0.12678074836730957, 0.448624849319458, -0.2843085825443268, -0.20894111692905426, -0.014952907338738441, 0.10503426194190979, 0.2584381401538849, 0.005176164209842682, -0.0001272319641429931, 0.09054072201251984, 0.3220330476760864, -0.2274947464466095, -0.4330301582813263, -0.14773131906986237, -0.4677976667881012, 0.38676270842552185, 0.1254807412624359, -0.29496169090270996, -0.037934280931949615, -0.278246134519577, 0.1370515674352646, -0.2272176891565323, 0.35718709230422974, 0.4962044060230255, -0.006324596703052521, -0.08496697247028351, -0.08565974235534668, -0.038801487535238266, 0.19979003071784973, 0.23894791305065155, -0.013549508526921272, -0.2660802900791168, 0.19546067714691162, 0.4515547752380371, 0.13915249705314636, -0.03233738988637924, -0.2638474404811859, -0.2965509295463562, 0.2277803122997284, -0.15210570394992828, 0.34509503841400146, -0.11007630825042725, -0.06524690985679626, 0.13295279443264008, 0.21452224254608154, -0.15243855118751526, -0.33012259006500244, -0.0798976719379425, -0.061622992157936096, -0.18252886831760406, -0.12231376022100449, -0.20846587419509888, -0.03717712312936783, 0.296159952878952, 0.34854018688201904, -0.3528851866722107, -0.33426082134246826, 0.061384908854961395, 0.3336833119392395, -0.40381181240081787, 0.07185002416372299, 0.038331154733896255, 0.2164153903722763, -0.10610932111740112, -0.08180356025695801, -0.37383922934532166, 0.004843469709157944, -0.00015019439160823822, -0.09168899059295654, 0.13414932787418365, 0.15526923537254333, -0.27270427346229553, -0.08567343652248383, 0.2723108232021332, 0.10681749880313873, 0.287754625082016, -0.2800283432006836, 0.31280964612960815, 0.18282797932624817, -0.1730823814868927, 0.025081776082515717, -0.3996143937110901, 0.15500672161579132, 0.0036310257855802774, 0.05823514237999916, -0.34297123551368713, 0.0915336087346077, 0.18459418416023254, -0.5945693850517273, -0.09262412786483765, -0.10086770355701447, -0.3421954810619354, -0.3651384115219116, -0.15171606838703156, 0.054674357175827026, -0.04230881482362747, 0.32310864329338074, 0.4089798927307129, 0.30528023838996887, 0.3168884217739105, 0.09757107496261597, 0.2019224762916565, -0.043187517672777176, -0.1931813359260559, -0.006305673625320196, -0.011825691908597946, 0.1500692069530487, 0.4544961750507355, 0.11964109539985657, -0.39712902903556824, 0.007411099039018154, -0.39665770530700684, 0.2918465733528137, 0.1446714550256729, 0.016398103907704353, -0.05386291816830635, 0.13542790710926056, 0.2499665468931198, 0.07295003533363342, 0.025738289579749107, -0.09401507675647736, -0.12827852368354797, -0.2527448832988739, 0.23932930827140808, -0.20615366101264954, -0.35508155822753906, 0.016291124746203423, -0.021248754113912582, 0.101712666451931, -0.14540813863277435, -0.41203877329826355, 0.2362297624349594, -0.4565413296222687, -0.15754544734954834, -0.07454989105463028, 0.1590449959039688, -0.08860493451356888, -0.21984298527240753, 0.3318013846874237, 0.2599725127220154, -0.08134586364030838, -0.35113587975502014, -0.2922087609767914, 0.03191597759723663, 0.17588095366954803, 0.25601837038993835, -0.04842536896467209, 0.18503502011299133, -0.078580841422081, 0.5934634804725647, 0.739231526851654, -0.5324318408966064, 0.1636902093887329, 0.4000582695007324, 0.06906585395336151, -0.2689703106880188, 0.16652974486351013, 0.21018029749393463, 0.40837743878364563, -0.05207859352231026, 0.24906505644321442, 0.510407030582428, -0.06245962530374527, 0.1909792721271515, -0.09772840142250061, -0.6998040676116943, -0.05074848234653473, 0.19947540760040283, -0.15599198639392853, 0.09468454867601395, 0.3857969045639038, -0.553970992565155, 0.21722286939620972, -0.3468621075153351, 0.13784940540790558, -0.030486181378364563, 0.48806232213974, 0.18466952443122864, 0.1520841419696808, -0.2522549033164978, 0.029832828789949417, 0.03633049875497818, 0.00535530224442482, -0.389893114566803, 0.2788723111152649, -0.11635078489780426, 0.040290459990501404, 0.18492074310779572, 0.12097693979740143, 0.15434546768665314, -0.17520752549171448, -0.14552301168441772, -0.07942881435155869, -0.12730272114276886, -0.5555394291877747, 0.1940554678440094, -0.34100350737571716, -0.146151602268219, -0.027647338807582855, 0.43235355615615845, 0.0912817120552063, -0.07636934518814087, -0.014410467818379402, 0.020887520164251328, 0.26496121287345886, 0.05843675136566162, 0.010875471867620945, 0.23785561323165894, 0.11613817512989044, 0.20509283244609833, 0.4482736885547638, 0.5474162101745605, 0.13641992211341858, -0.1770593523979187, 0.10590539872646332, 0.12974461913108826, 0.058143965899944305, -0.10199543833732605, -0.17760571837425232, 0.29131537675857544, 0.01866372488439083, 0.381544291973114, 0.29793989658355713, -0.10610607266426086, 0.13575387001037598, 0.04318143054842949, -0.20689557492733002, 0.059011876583099365, -0.015861015766859055, -0.1324617862701416, 0.125014990568161, -0.23684968054294586, -0.15489980578422546, 0.3275569975376129, -0.09998053312301636, -0.05718816816806793, -0.1690272092819214, 0.3030056953430176, -0.14474856853485107, -0.02857283502817154, 0.15100884437561035, -0.27748772501945496, 0.26398685574531555, 0.2736491560935974, 0.09419670701026917, -0.22594475746154785, 0.2057780772447586, -0.13590289652347565, 0.500644326210022, -0.13001827895641327, -0.025733353570103645, 0.00475621223449707, 0.018444091081619263, 0.07726273685693741, -0.24293863773345947, 0.02185392752289772, -0.12562784552574158, -0.3853955566883087, -0.44239816069602966, 0.02812330611050129, -0.04869253188371658, -0.31424766778945923, -0.003431730903685093, -0.42248353362083435, 0.12481524050235748, -0.10076207667589188, 0.06926587224006653, 0.4844033122062683, -0.2270210087299347, -0.20268282294273376, -0.2911333441734314, 0.6426668167114258, 0.06357421725988388, -0.39405086636543274, -0.47116732597351074, 0.09061148762702942, -0.032219283282756805, -0.11085774004459381, 0.138462632894516, 0.3925042450428009, 0.08910570293664932, 0.5452817678451538, 0.1649358719587326, -0.570227324962616, 0.06084110587835312, 0.09844787418842316, 0.37627512216567993, 0.22540126740932465, -0.09883269667625427, 0.13681159913539886, 0.2343970686197281, -0.15732650458812714, -0.0012432824587449431, -0.003241032361984253, -0.1257595419883728, -0.17616963386535645, -0.05879290774464607, 0.10332184284925461, -0.14717136323451996, 0.300133615732193, -0.25727415084838867, -0.22221751511096954, 0.21478897333145142, -0.17262870073318481, 0.20417436957359314, -0.06569550931453705, -0.03660338371992111, 0.20503142476081848, 0.1086878553032875, -0.16977044939994812, -0.12573140859603882, -0.29601532220840454, 0.26651543378829956, -0.24110397696495056, -0.30332568287849426, -0.012575488537549973, 0.24170030653476715, -0.37396255135536194, 0.29650622606277466, -0.07935415953397751, -0.11540064215660095, -0.07094462215900421, 0.27815353870391846, 0.034840941429138184, 0.13627435266971588, 0.2040327936410904, -0.048130497336387634, 0.026698404923081398, -0.12449973076581955, 0.06495293974876404, 0.228361576795578, 0.4222276210784912, 0.23308908939361572, 0.043250635266304016, 0.10871971398591995, -0.10068386793136597, 0.6867607235908508, 0.15930216014385223, -0.028741080313920975, 0.5586039423942566, -0.035871706902980804, 0.02108743041753769, -0.13715699315071106, -0.06770651787519455, 0.21290196478366852, -0.19034409523010254, -0.30310094356536865, 0.16600564122200012, 0.12926085293293, -0.05129026621580124, -0.13933001458644867, 0.1850774884223938, -0.13784971833229065, -0.08301065862178802, -0.002398373559117317, 0.30361780524253845, 0.3238004744052887, -0.05655887350440025, 0.004359081387519836, -0.13534681499004364, -0.03320950269699097, 0.16103972494602203, 0.5561017990112305, 0.36817559599876404, 0.00043857365380972624, 0.3863334655761719, -0.09224342554807663, -0.5330988764762878, 0.26824361085891724, 0.07139764726161957, -0.0780005231499672, -0.29277732968330383, -0.11026932299137115, 0.09156164526939392, -0.2844918668270111, 0.5123025178909302, -0.05414077639579773, -0.09134052693843842, 0.10901282727718353, 0.5072510242462158, -0.21059148013591766, 0.16077657043933868, 0.23066791892051697, 0.1534545123577118, 0.1021522581577301, 0.1759307086467743, -0.2898363769054413, -0.21334633231163025, -0.10866796970367432, -0.16582366824150085, -0.18026888370513916, -0.05888661369681358, 0.01661520078778267, -0.21585145592689514, -0.19738289713859558, -0.1616005003452301, 0.005844825878739357, 0.059785474091768265, -0.27056923508644104, 0.06976987421512604, -0.11212791502475739, 0.28859201073646545, 0.06206849217414856, -0.2742348909378052, 0.07784231752157211, 0.062398988753557205, -0.043688517063856125, 0.19761675596237183, 0.10309907793998718, 0.2564348876476288, 0.17819981276988983, 0.1957603394985199, -0.06284920871257782, 0.0389191135764122, 0.285670667886734, 0.14701873064041138, 0.44587934017181396, 0.10623040050268173, 0.15658274292945862, 0.4349615275859833, -0.06938104331493378, -0.37511900067329407, 0.25358930230140686, -0.04046475887298584, -0.07502003759145737, -0.0882842093706131, -0.3570568561553955, 0.5614940524101257, -0.03276018798351288, -0.07801629602909088, 0.42082810401916504, 0.3033921420574188, -0.27046486735343933, 0.6516927480697632, 0.23374539613723755, 0.9252501726150513, -0.08309061825275421, 0.18462307751178741, 0.1882091760635376, -0.3286965489387512, -0.22563058137893677, -0.4330796003341675, -0.2209034115076065, -0.13493463397026062, 0.021763460710644722, -0.08990750461816788, -0.1037682294845581, 0.2160036861896515, 0.1637340486049652, -0.08988545835018158, 0.028876395896077156, 0.43483930826187134, -0.07117900252342224, 0.23893016576766968, 0.3533875644207001, -0.017983557656407356, -0.3443785607814789, -0.10458613187074661, 0.01760008931159973, 0.02430984377861023, -0.25835248827934265, 0.20095962285995483, -0.37438565492630005, 0.14074064791202545, -0.04436150938272476, -0.14229846000671387, 0.22734946012496948, -0.436637282371521, 0.11546012759208679, -0.44410499930381775, 0.23473955690860748, -0.01541527733206749, -0.27213937044143677, -0.11428281664848328, -0.4943706691265106, -0.2093632072210312, 0.2498236745595932, 0.2603110671043396, 0.17366348206996918, -0.1994609832763672, -0.3396631181240082, 0.13181470334529877, -0.040239378809928894, -0.03115154802799225, 0.20952749252319336, -0.05190538242459297, -0.6442980766296387, -0.06035803258419037, -0.17986445128917694, 0.24368125200271606, 0.04640752077102661, -0.2470763623714447, 0.24376344680786133, -0.05982483923435211, 0.06120486184954643, -0.08683274686336517, 0.16697679460048676, -0.05328317731618881, 0.08563341200351715, -0.18940548598766327, 0.16582956910133362, 0.023125208914279938, 0.26127371191978455, -0.3191405236721039, -0.1497877687215805, 0.11701982468366623, -0.28734350204467773, -0.04384604096412659, 0.06723061203956604, -0.11620587110519409, 0.05248722434043884, 0.4950132668018341, -0.008785190992057323, 0.0216296948492527, -0.26740455627441406, -0.14705441892147064, 0.46882057189941406, -0.20790837705135345, -0.21237832307815552, -0.3942728042602539, -0.18752962350845337, -0.1948915719985962, 0.16640110313892365, -0.033817339688539505, 0.30746498703956604, -0.0062775276601314545, -0.15711674094200134, -0.22086019814014435, -0.3458802103996277, -0.11180900037288666, 0.1609654277563095, 0.33995965123176575, 0.036179978400468826, 0.17683449387550354, -0.048365116119384766, 0.4352456331253052, -0.1912427395582199, -0.1474730521440506, -0.20491844415664673, -0.16944783926010132, -0.017728084698319435, -0.14893753826618195, 0.26320570707321167, 0.2196464240550995, 0.09570090472698212, -0.4876362681388855, -0.4020884037017822, -0.12526199221611023, -0.050241705030202866, -0.0296599343419075, 0.2608303725719452, -0.24378080666065216, -0.1845533400774002, 0.26190274953842163, -0.09527168422937393, -0.15588396787643433, 0.4034963846206665, 0.43622317910194397, 0.5495725274085999, -0.03558046370744705, 0.3960328698158264, -0.42583224177360535, 0.011254936456680298, 0.05624650791287422, 0.253726989030838, 0.7411500811576843, 0.08064930140972137, 0.17252245545387268, -0.06384409219026566, -0.39243581891059875, 0.009063582867383957, 0.14989419281482697, 0.3777293264865875, -0.18476097285747528, 0.1707608997821808, 0.21582937240600586, -0.02621369995176792, 0.1976778209209442, -0.005177400540560484, 0.2058662474155426, -0.4826680123806, -0.07002338021993637, -0.1969699263572693, 0.27753469347953796, -0.05100765451788902, -0.09883144497871399, -0.02570437639951706, -0.28517594933509827, 0.4305587410926819, -0.010020211338996887, -0.46983012557029724, 0.2236091047525406, 0.11515295505523682, -0.16700288653373718, -0.15162456035614014, 0.2515493631362915, 0.35138416290283203, -0.012318432331085205, 0.34198153018951416, 0.2548210620880127, -0.008094269782304764, 0.0003091394901275635, -0.3527265191078186, 0.331866592168808, -0.29286158084869385, -0.12082917988300323, 0.4032198488712311, 0.34110304713249207, 0.5181615948677063, 0.08264405280351639, -0.37599217891693115, -0.14937831461429596, 0.2719556391239166, 0.1597643792629242, -0.3695203959941864, 0.15895317494869232, -0.027390439063310623, -0.104404017329216, 0.09106335043907166, 0.010064221918582916, 0.0967719554901123, -0.14286716282367706, 0.19245225191116333, 0.2504483461380005, 0.08966892212629318, -0.356537789106369, 0.4457152783870697, 0.28282126784324646, -0.17307372391223907, -0.001208847388625145, -0.1088966429233551, -0.23113605380058289, 0.275325208902359, -0.20358283817768097, 0.020083867013454437, 0.23306553065776825, -0.13843858242034912, 0.24356016516685486, 0.010486958548426628, -0.06586399674415588, 0.0020954757928848267, -0.3007254898548126, 0.20388591289520264, -0.12546458840370178, 0.4208020269870758, 0.017775168642401695, 0.03532873094081879, -0.4100976884365082, -0.1055694967508316, 0.30703067779541016, -0.3087364733219147, 0.05607880279421806, 0.24156269431114197, 0.07859031111001968, -0.16548363864421844, -0.07221568375825882, -0.4199414551258087, 0.023783084005117416, 0.15584662556648254, -0.4729043245315552, 0.06704305857419968, 0.3121543228626251, -0.02792615443468094, 0.05609910935163498, 0.30424490571022034, 0.07394082099199295, 0.2106882929801941, -0.15325403213500977, -0.23223797976970673, -0.3121647536754608, -0.25784626603126526, 0.3235298693180084, 0.37842443585395813, 0.18979665637016296, 0.46016114950180054, 0.04936673492193222, -0.0036996938288211823, 0.14014242589473724, -0.15147212147712708, 0.3822275400161743, 0.46618545055389404, -0.11886486411094666, 0.12138941884040833, -0.059571534395217896, 0.32397040724754333, -0.021265819668769836, -0.20771393179893494, 0.14214877784252167, 0.33522844314575195, -0.09546391665935516, 0.29830217361450195, -0.2632743716239929, 0.032345470041036606, -0.423334002494812, 0.472610205411911, -0.15037502348423004, 0.06097850203514099, -0.31795352697372437, -0.200922891497612, 0.11045394092798233, 0.02595667913556099, -0.12277057766914368, -0.47336170077323914, -0.38615748286247253, 0.1484740972518921, -0.2574593424797058, -0.14161314070224762, -0.5135958790779114, 0.05506037175655365, -0.07680821418762207, -0.8652816414833069, -0.22122764587402344, 0.019772903993725777, -0.4970901906490326, 0.29416710138320923, -0.3714258372783661, 0.08753331005573273, -0.17903269827365875, 0.3536405563354492, -0.0484488308429718, 0.07159661501646042, 0.5875216126441956, -0.43681880831718445, 0.2153591811656952, -0.09339843690395355, 0.3714306354522705, 0.32872164249420166, 0.3860523998737335, -0.40928617119789124, -0.14571991562843323, 0.11489295214414597, 0.019946737214922905, 0.10610911250114441, 0.1537778228521347, -0.020377276465296745, 0.003062024712562561, -0.25440242886543274, -0.051125407218933105, 0.3580563962459564, 0.038512781262397766, -0.0988801121711731, -0.3375774025917053 ]
https://github.com/huggingface/datasets/issues/5427
Unable to download dataset id_clickbait
Thanks for reporting, @ilos-vigil. We have transferred this issue to the corresponding dataset on the Hugging Face Hub: https://huggingface.co/datasets/id_clickbait/discussions/1
### Describe the bug I tried to download dataset `id_clickbait`, but receive this error message. ``` FileNotFoundError: Couldn't find file at https://md-datasets-cache-zipfiles-prod.s3.eu-west-1.amazonaws.com/k42j7x2kpn-1.zip ``` When i open the link using browser, i got this XML data. ```xml <?xml version="1.0" encoding="UTF-8"?> <Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist</Message><BucketName>md-datasets-cache-zipfiles-prod</BucketName><RequestId>NVRM6VEEQD69SD00</RequestId><HostId>W/SPDxLGvlCGi0OD6d7mSDvfOAUqLAfvs9nTX50BkJrjMny+X9Jnqp/Li2lG9eTUuT4MUkAA2jjTfCrCiUmu7A==</HostId></Error> ``` ### Steps to reproduce the bug Code snippet: ``` from datasets import load_dataset load_dataset('id_clickbait', 'annotated') load_dataset('id_clickbait', 'raw') ``` Link to Kaggle notebook: https://www.kaggle.com/code/ilosvigil/bug-check-on-id-clickbait-dataset ### Expected behavior Successfully download and load `id_newspaper` dataset. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.15.65+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 8.0.0 - Pandas version: 1.3.5
19
Unable to download dataset id_clickbait ### Describe the bug I tried to download dataset `id_clickbait`, but receive this error message. ``` FileNotFoundError: Couldn't find file at https://md-datasets-cache-zipfiles-prod.s3.eu-west-1.amazonaws.com/k42j7x2kpn-1.zip ``` When i open the link using browser, i got this XML data. ```xml <?xml version="1.0" encoding="UTF-8"?> <Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist</Message><BucketName>md-datasets-cache-zipfiles-prod</BucketName><RequestId>NVRM6VEEQD69SD00</RequestId><HostId>W/SPDxLGvlCGi0OD6d7mSDvfOAUqLAfvs9nTX50BkJrjMny+X9Jnqp/Li2lG9eTUuT4MUkAA2jjTfCrCiUmu7A==</HostId></Error> ``` ### Steps to reproduce the bug Code snippet: ``` from datasets import load_dataset load_dataset('id_clickbait', 'annotated') load_dataset('id_clickbait', 'raw') ``` Link to Kaggle notebook: https://www.kaggle.com/code/ilosvigil/bug-check-on-id-clickbait-dataset ### Expected behavior Successfully download and load `id_newspaper` dataset. ### Environment info - `datasets` version: 2.8.0 - Platform: Linux-5.15.65+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 8.0.0 - Pandas version: 1.3.5 Thanks for reporting, @ilos-vigil. We have transferred this issue to the corresponding dataset on the Hugging Face Hub: https://huggingface.co/datasets/id_clickbait/discussions/1
[ -0.29217204451560974, 0.007942423224449158, -0.043164677917957306, 0.3713671565055847, 0.2508448362350464, 0.2711386978626251, 0.31262531876564026, 0.33434680104255676, -0.01812366209924221, -0.07456441223621368, -0.16542407870292664, 0.1588071584701538, 0.15100619196891785, 0.2888796925544739, 0.05267619341611862, 0.015324827283620834, 0.05891050398349762, -0.06245116889476776, 0.006045415997505188, 0.03393542021512985, -0.2181883454322815, 0.15107083320617676, -0.09045016765594482, -0.08640594780445099, -0.17155171930789948, -0.02419758401811123, -0.19381725788116455, 0.19185668230056763, -0.20536291599273682, -0.3194790482521057, 0.6293697953224182, -0.0619298480451107, 0.12291884422302246, 0.44386252760887146, -0.00011484919377835467, -0.07640776038169861, 0.3273310661315918, -0.09165173023939133, -0.3650527596473694, -0.29017287492752075, -0.5013898611068726, -0.5187112092971802, -0.17661097645759583, -0.34807610511779785, 0.004308611154556274, 0.10012967139482498, 0.09842894226312637, -0.02532229572534561, 0.1252775490283966, 0.27405762672424316, 0.16610920429229736, 0.3002380132675171, 0.23285864293575287, -0.146802619099617, 0.5880479216575623, -0.04409625381231308, -0.15653803944587708, 0.3278593420982361, 0.11903263628482819, 0.22226428985595703, 0.14310497045516968, 0.2972427010536194, -0.03661315515637398, 0.08729052543640137, 0.05784780904650688, 0.12754571437835693, 0.2200806736946106, -0.3649897575378418, 0.26989227533340454, 0.22466987371444702, 0.6127610206604004, -0.3702206611633301, -0.5550442934036255, -0.1638951599597931, 0.09520532190799713, 0.03080839104950428, 0.10044034570455551, 0.3996860980987549, 0.031997520476579666, 0.08616877347230911, -0.11909355223178864, -0.1603682041168213, -0.03888385742902756, 0.0932486429810524, -0.009262602776288986, 0.03398832306265831, -0.05406355485320091, 0.023431718349456787, 0.015522617846727371, -0.2714451551437378, 0.39552968740463257, -0.18149806559085846, -0.14664171636104584, 0.15010708570480347, -0.3196948170661926, -0.0200653038918972, 0.0029536262154579163, 0.2438805103302002, 0.1987822949886322, 0.23160575330257416, -0.1060006394982338, -0.15547415614128113, -0.06609654426574707, 0.01742231473326683, 0.34471380710601807, 0.10190922021865845, -0.1247975155711174, 0.2631925046443939, 0.15121924877166748, 0.3064943253993988, 0.12225408852100372, -0.07173062860965729, -0.0326523557305336, -0.10389584302902222, 0.2155430167913437, -0.0349627360701561, 0.3357241749763489, -0.02731887623667717, -0.5170572996139526, 0.0850895419716835, -0.42356738448143005, 0.15508930385112762, -0.07487696409225464, 0.16275781393051147, -0.214447483420372, -0.007281508296728134, 0.08018814027309418, 0.10234241187572479, -0.08703984320163727, -0.174301415681839, -0.2856554687023163, 0.361014723777771, -0.08803780376911163, -0.26812803745269775, 0.24058552086353302, -0.45848020911216736, 0.22223018109798431, -0.027443278580904007, -0.21833436191082, 0.07407654076814651, -0.1162378340959549, -0.050208937376737595, -0.2837139666080475, 0.3819037675857544, 0.09676963090896606, 0.22336570918560028, -0.12850303947925568, 0.0032337531447410583, -0.032536886632442474, 0.10253012180328369, -0.36061424016952515, -0.109996497631073, -0.0005842465907335281, 0.10131753236055374, -0.6288789510726929, -0.13495716452598572, -0.07018349319696426, -0.09061624109745026, -0.030012287199497223, -0.09097998589277267, 0.11000481992959976, 0.025336604565382004, -0.08990192413330078, -0.1754085272550583, 0.1841549277305603, 0.6922519207000732, -0.1463758647441864, -0.06130063906311989, -0.28466835618019104, 0.03911144286394119, 0.14383763074874878, 0.020748788490891457, -0.16800563037395477, 0.2141686975955963, -0.34616655111312866, 0.2327517420053482, 0.2629440128803253, -0.6981764435768127, -0.8434668183326721, 0.09664200246334076, -0.2078944742679596, 0.12978549301624298, 0.12782268226146698, 0.15408146381378174, 0.05947408825159073, -0.07185182720422745, -0.18849298357963562, 0.14870180189609528, -0.03790568560361862, -0.03582232818007469, -0.2098381668329239, -0.3466281592845917, 0.3089442849159241, 0.19035141170024872, 0.0667954757809639, 0.05428050830960274, 0.2876158654689789, 0.3726731538772583, 0.06940311938524246, 0.27221834659576416, 0.15002304315567017, 0.19771786034107208, 0.37548431754112244, -0.19162289798259735, 0.21013395488262177, -0.2608005702495575, -0.6319007277488708, 0.22651392221450806, -0.03726045787334442, 0.01050570234656334, -0.41658347845077515, -0.2111508846282959, -0.6783230900764465, -0.06450208276510239, -0.13954919576644897, -0.3583536744117737, 0.08780816197395325, 0.052947212010622025, 0.24210119247436523, 0.16781266033649445, -0.018361803144216537, 0.4123077392578125, 0.18695291876792908, 0.17300920188426971, -0.43359509110450745, 0.2696973383426666, -0.04160871356725693, 0.009254742413759232, 0.17457115650177002, 0.08935816586017609, 0.1790599822998047, -0.03889717534184456, -0.011613624170422554, 0.41004708409309387, -0.02921445108950138, 0.2659655213356018, 0.4919227063655853, 0.08314387500286102, 0.32371291518211365, -0.3663210868835449, 0.009210767224431038, 0.40619006752967834, 0.2512647211551666, 0.14401179552078247, -0.1680760681629181, 0.06828917562961578, -0.2626798152923584, -0.09825631231069565, -0.02577267587184906, 0.027902116999030113, 0.32836639881134033, -0.026623954996466637, 0.046846985816955566, -0.06358378380537033, 0.122862309217453, -0.008022751659154892, 0.4997408986091614, 0.009065123274922371, -0.15668931603431702, 0.36996856331825256, 0.3484030067920685, -0.1110508143901825, 0.10584738850593567, 0.05281716212630272, -0.14827588200569153, -0.007339382544159889, 0.16520774364471436, 0.5236567258834839, 0.4126371145248413, 0.055908411741256714, 0.10370439291000366, -0.09417803585529327, 0.16901737451553345, -0.18581919372081757, 0.2099878489971161, 0.04175611957907677, -0.070065438747406, 0.3134101331233978, 0.23259751498699188, 0.10556366294622421, -0.09172430634498596, 0.004453826695680618, 0.2608470916748047, 0.3300236761569977, -0.2247244417667389, 0.022184288129210472, -0.2420540153980255, -0.3794432580471039, 0.0876791924238205, -0.11943868547677994, -0.1774897277355194, -0.36950311064720154, -0.1071818470954895, 0.2637787461280823, 0.026791568845510483, -0.06871175020933151, -0.3712362051010132, 0.28072547912597656, 0.16803285479545593, 0.04401800408959389, -0.3912985026836395, -0.07960699498653412, -0.13348162174224854, 0.04625025764107704, 0.07009469717741013, 0.2343316227197647, 0.2149021029472351, -0.31397345662117004, 0.3548579812049866, -0.6935461759567261, -0.18427294492721558, 0.024815870448946953, -0.01671762764453888, 0.4811122417449951, 0.3312554359436035, 0.40873783826828003, -0.3834856152534485, -0.06584528088569641, 0.25059032440185547, 0.11906048655509949, -0.27631306648254395, 0.061973586678504944, 0.006370965391397476, 0.018977748230099678, 0.018422286957502365, -0.21398407220840454, -0.41052159667015076, -0.4098207652568817, 0.1292722225189209, -0.19829170405864716, -0.05058170109987259, 0.12943468987941742, -0.20154109597206116, 0.1253623068332672, 0.2931635081768036, -0.11621531844139099, -0.13585270941257477, -0.5400710105895996, 0.6115099191665649, -0.20069347321987152, -0.40751129388809204, 0.26067984104156494, -0.03914836421608925, 0.05702021345496178, 0.03402414172887802, -0.4371427297592163, 0.257448673248291, -0.11992307007312775, 0.24041306972503662, 0.12969660758972168, 0.2425263524055481, 0.12516558170318604, -0.040207166224718094, 0.07742351293563843, -0.23190459609031677, 0.019722580909729004, -0.062145523726940155, 0.17998963594436646, 0.4347364604473114, 0.06283048540353775, -0.23210817575454712, 0.1629413664340973, 0.43759357929229736, 0.2758125364780426, -0.034680236130952835, 0.35968270897865295, -0.07387559860944748, 0.3407936692237854, 0.11047098785638809, -0.495819628238678, -0.2626250088214874, 0.04248563200235367, 0.012265481054782867, -0.0048873573541641235, 0.021123632788658142, 0.22109414637088776, -0.3621375262737274, -0.2662043571472168, -0.44153788685798645, -0.30614161491394043, -0.2602517008781433, -0.05076790601015091, -0.07844192534685135, 0.20664212107658386, 0.049949415028095245, 0.07826358079910278, -0.2936500310897827, 0.29761946201324463, 0.33750447630882263, 0.06489129364490509, 0.2651185393333435, 0.05875976011157036, -0.24121177196502686, -0.2898935377597809, 0.14856436848640442, -0.05302521586418152, 0.25407466292381287, 0.14065346121788025, 0.10726108402013779, 0.10779596865177155, -0.19679264724254608, 0.9215335845947266, -0.4894433617591858, 0.5315960645675659, 0.016678377985954285, 0.08673357963562012, -0.23617246747016907, -0.08287394046783447, -0.3006369471549988, 0.17400090396404266, 0.028955236077308655, -0.019954152405261993, -0.525593101978302, 0.1129065454006195, 0.23413321375846863, -0.10552102327346802, -0.032069094479084015, -0.21820174157619476, -0.07163643836975098, -0.030415073037147522, -0.21217980980873108, -0.12122074514627457, -0.020470203831791878, 0.24088744819164276, -0.04011945426464081, 0.07728590071201324, -0.1348819136619568, -0.07864208519458771, -0.07322053611278534, -0.06589940190315247, 0.3710800111293793, 0.14256155490875244, 0.46988892555236816, 0.0859125554561615, -0.14216287434101105, 0.40759408473968506, 0.855577290058136, -0.038331154733896255, -0.7582492232322693, 0.06101018935441971, -0.043019235134124756, -0.2353491485118866, 0.2796286940574646, -0.02568643167614937, -0.1675092577934265, 0.10276005417108536, -0.11421455442905426, -0.019916150718927383, 0.008411049842834473, 0.1307271122932434, -0.05013320967555046, -0.032763171941041946, -0.1586562544107437, 0.40786826610565186, -0.10363003611564636, 0.05787286162376404, 0.14215350151062012, 0.08592803031206131, -0.0900101587176323, -0.04477494955062866, 0.01998107135295868, 1.0517499446868896, 0.06275361031293869, 0.02915993332862854, 0.176591694355011, 0.09844070672988892, 0.7128527760505676, -0.04184523597359657, -0.023006871342658997, -0.2023250162601471, -0.131341353058815, -0.1671985238790512, -0.01927909627556801, 0.06762342900037766, 0.04847998917102814, -0.060958366841077805, 0.11934979259967804, -0.11921659111976624, 0.45786064863204956, -0.1154743880033493, 0.16637536883354187, -0.35421812534332275, -0.01475757360458374, -0.3062196373939514, 0.09783618152141571, -0.2553243041038513, 0.5227580666542053, -0.1410641074180603, -0.16332614421844482, -0.4067928194999695, -0.05151478573679924, -0.3870844841003418, 0.22948575019836426, -0.1518619954586029, 0.14993244409561157, -0.18760839104652405, -0.2782387137413025, -0.2538948655128479, 0.16797253489494324, 0.09825952351093292, 0.10770116746425629, -0.4263041019439697, 0.33753669261932373, 0.012298930436372757, -0.27524641156196594, 0.1784227192401886, 0.08685818314552307, 0.3060661554336548, -0.10442010313272476, -0.33089959621429443, 0.12311642616987228, -0.16164416074752808, 0.05492401868104935, 0.35363900661468506, 0.04814614728093147, -0.21354879438877106, -0.2885940372943878, -0.3388863801956177, -0.07444724440574646, 0.06689457595348358, -0.10444438457489014, 0.09081225097179413, 0.14621391892433167, 0.11379475146532059, -0.199862539768219, -0.13127756118774414, -0.14693807065486908, -0.045786816626787186, 0.5884757041931152, -0.19161251187324524, -0.20340386033058167, 0.08076201379299164, 0.05734947696328163, -0.3466033935546875, -0.13005584478378296, 0.21579515933990479, 0.13026826083660126, -0.34830591082572937, 0.07990006357431412, -0.229653000831604, 0.3010987639427185, -0.01577497087419033, 0.2537778913974762, 0.265182763338089, -0.09779203683137894, 0.1547277867794037, -0.6680576801300049, 0.03640246391296387, 0.31934255361557007, 0.05444355681538582, 0.03674766421318054, -0.0750938355922699, -0.45322519540786743, 0.2527351975440979, -0.24082574248313904, -0.23811517655849457, 0.16923536360263824, -0.28445640206336975, -0.08105453103780746, 0.166928231716156, 0.22790297865867615, 0.24462632834911346, -0.24554206430912018, 0.00909617729485035, 0.22778365015983582, -0.30351558327674866, -0.14379802346229553, -0.11105525493621826, 0.16888980567455292, 0.06794832646846771, -0.022192472591996193, -0.058387868106365204, -0.3092549443244934, -0.1325487196445465, 0.042686931788921356, 0.06312303245067596, 0.15246689319610596, 0.0021020323038101196, 0.0032236743718385696, 0.3611067831516266, 0.10142149031162262, -0.3819059133529663, 0.13855251669883728, 0.09150021523237228, 0.15407930314540863, -0.03772968426346779, 0.1108454167842865, 0.14255712926387787, 0.11215461790561676, 0.01734483242034912, -0.17503228783607483, -0.035510867834091187, 0.18305590748786926, 0.494952529668808, -0.18471306562423706, 0.19035890698432922, 0.28663232922554016, 0.11710624396800995, 0.4783797562122345, -0.31049200892448425, -0.03772397339344025, 0.12401262670755386, 0.15020190179347992, -0.38059213757514954, -0.18168064951896667, 0.10554079711437225, 0.04805655777454376, -0.08345669507980347, 0.03178705275058746, 0.06849445402622223, -0.04686349630355835, -0.0037681609392166138, 0.2316073179244995, 0.7650818228721619, -0.18379825353622437, 0.2172587364912033, 0.6474636197090149, -0.10603004693984985, 0.1841525137424469, 0.09707342088222504, 0.26086029410362244, -0.014134407043457031, 0.6168373227119446, -0.15752741694450378, 0.16680414974689484, 0.4317047894001007, 0.24381287395954132, -0.06837569922208786, -0.32524940371513367, 0.020765122026205063, 0.18554896116256714, -0.20116928219795227, 0.08978448808193207, 0.10528837144374847, 0.3768918514251709, -0.08190513402223587, 0.04075903818011284, -0.2301388382911682, 0.08860968053340912, -0.08972559869289398, 0.23920762538909912, -0.0819987878203392, -0.24398517608642578, -0.17877227067947388, 0.028216082602739334, -0.019086863845586777, -0.4185401201248169, 0.40368762612342834, 0.14950792491436005, -0.09595362842082977, -0.3390975892543793, -0.19814401865005493, 0.05159561336040497, 0.26048317551612854, -0.4144767224788666, 0.06096620112657547, 0.23504488170146942, -0.3748839199542999, 0.04500247910618782, 0.41712769865989685, 0.36368006467819214, 0.10085946321487427, 0.06924225389957428, 0.08421537280082703, 0.08992236852645874, -0.23615874350070953, 0.046577341854572296, 0.2614893317222595, 0.10683217644691467, -0.24853791296482086, 0.12081030011177063, 0.12663313746452332, -0.14505234360694885, 0.033809419721364975, 0.22021420300006866, 0.214324951171875, -0.1237383782863617, -0.024722829461097717, -0.46795377135276794, 0.0690126046538353, -0.040793322026729584, -0.034831635653972626, -0.3481620252132416, -0.17341330647468567, 0.08287625014781952, -0.03444956615567207, 0.07484623789787292, -0.2106013000011444, 0.07417646795511246, -0.11472135782241821, 0.410034716129303, 0.3962763249874115, -0.06897743791341782, -0.2201501876115799, 0.03609246015548706, -0.6050657033920288, 0.10683129727840424, -0.07152886688709259, -0.22207829356193542, 0.027833258733153343, 0.10944058001041412, -0.3315271735191345, 0.2436632215976715, 0.14048075675964355, 0.24320730566978455, 0.3332935571670532, 0.29572412371635437, -0.30463165044784546, -0.22534127533435822, -0.014255210757255554, -0.08042189478874207, -0.03911665454506874, -0.2574695348739624, 0.2810591161251068, -0.24523720145225525, -0.0935669019818306, 0.1475965678691864, -0.36791399121284485, 0.18844889104366302, -0.16492445766925812, 0.4598709046840668, -0.09897612780332565, 0.31785184144973755, -0.04984462261199951, -0.12278881669044495, -0.32168909907341003, -0.279889851808548, 0.010380604304373264, 0.42390334606170654, 0.07495443522930145, 0.05420813709497452, -0.19714359939098358, -0.12559573352336884, -0.1271478235721588, -0.04355262592434883, -0.03863973915576935, 0.11997608840465546, -0.27435633540153503, -0.0024416763335466385, -0.21918678283691406, 0.14882072806358337, 0.02149861678481102, -0.07096703350543976, -0.17755010724067688, 0.06306535005569458, -0.09224885702133179, -0.4988662302494049, 0.3861931562423706, -0.2882366478443146, -0.19784779846668243, -0.08028057217597961, 0.2340300977230072, 0.06902442872524261, -0.11117757111787796, -0.4401373267173767, 0.1828155517578125, 0.26292553544044495, 0.09567613899707794, -0.1986134648323059, 0.08062753081321716, -0.11496379971504211, 0.024971213191747665, 0.10757678747177124, 0.41114649176597595, 0.13972368836402893, -0.06506402045488358, 0.3276764750480652, -0.11011902242898941 ]
https://github.com/huggingface/datasets/issues/5425
Sort on multiple keys with datasets.Dataset.sort()
Hi! `Dataset.sort` calls `df.sort_values` internally, and `df.sort_values` brings all the "sort" columns in memory, so sorting on multiple keys could be very expensive. This makes me think that maybe we can replace `df.sort_values` with `pyarrow.compute.sort_indices` - the latter can also sort on multiple keys and currently loads the data into memory; however, there is a plan to eventually implement "memory-map" friendly kernels for the Arrow compute ops (using the Acero execution engine). So to address this issue, you should replace `df.sort_values` with `pyarrow.compute.sort_indices` in `Dataset.sort` and adjust the signature of this function (deprecate the `kind` parameter, etc.). PS: Feel free to ping us if you need some additional help/pointers
### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add.
109
Sort on multiple keys with datasets.Dataset.sort() ### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add. Hi! `Dataset.sort` calls `df.sort_values` internally, and `df.sort_values` brings all the "sort" columns in memory, so sorting on multiple keys could be very expensive. This makes me think that maybe we can replace `df.sort_values` with `pyarrow.compute.sort_indices` - the latter can also sort on multiple keys and currently loads the data into memory; however, there is a plan to eventually implement "memory-map" friendly kernels for the Arrow compute ops (using the Acero execution engine). So to address this issue, you should replace `df.sort_values` with `pyarrow.compute.sort_indices` in `Dataset.sort` and adjust the signature of this function (deprecate the `kind` parameter, etc.). PS: Feel free to ping us if you need some additional help/pointers
[ -0.1080060750246048, 0.06251595914363861, -0.17726768553256989, 0.06900624185800552, 0.35974574089050293, -0.07434117048978806, 0.13469411432743073, 0.19574306905269623, -0.03912978619337082, 0.1555032730102539, -0.062489837408065796, 0.4349202811717987, -0.001666518859565258, 0.1752358227968216, 0.07489338517189026, -0.2783713936805725, -0.06717460602521896, 0.064289391040802, 0.021350789815187454, 0.15798886120319366, -0.1991269886493683, -0.1366632878780365, -0.26803022623062134, -0.013958178460597992, 0.14681802690029144, -0.23410353064537048, -0.19497106969356537, -0.07011250406503677, -0.008439332246780396, -0.3470252752304077, 0.028889289125800133, 0.2885097563266754, -0.210568368434906, 0.2879031002521515, -0.00009403056174051017, -0.18369042873382568, -0.01875293254852295, -0.006481768563389778, -0.16306789219379425, -0.285055935382843, -0.042310625314712524, 0.03756507486104965, -0.19101019203662872, -0.22413209080696106, -0.11187170445919037, -0.4249756336212158, -0.052660904824733734, -0.33784687519073486, 0.13188490271568298, -0.08296286314725876, 0.37015098333358765, 0.07760157436132431, 0.1488950103521347, 0.12459738552570343, 0.2947213053703308, 0.19793196022510529, -0.12085960060358047, -0.23740041255950928, 0.16817450523376465, 0.10708357393741608, -0.056810833513736725, 0.1225445419549942, -0.13560627400875092, -0.30297502875328064, 0.3053959906101227, -0.027378760278224945, -0.09124042838811874, 0.054387692362070084, 0.06958328187465668, 0.19618067145347595, 0.4114154577255249, -0.48411986231803894, -0.5130536556243896, -0.24241739511489868, 0.24392038583755493, -0.25842583179473877, 0.14174550771713257, 0.029748819768428802, 0.06507492065429688, -0.1235092282295227, 0.18869233131408691, -0.048016950488090515, -0.07590053230524063, 0.2462896853685379, -0.04789828136563301, 0.20831093192100525, -0.115439273416996, 0.0006048306822776794, 0.29796138405799866, -0.2672373652458191, -0.02162916213274002, -0.4048551917076111, 0.22455158829689026, 0.14397598803043365, -0.3850233852863312, -0.07588965445756912, 0.18711093068122864, 0.1952092945575714, 0.21989983320236206, -0.10166014730930328, -0.0355021134018898, 0.15674424171447754, 0.11232347041368484, -0.04140300303697586, 0.2599985897541046, 0.33827081322669983, 0.0850742757320404, 0.247942253947258, 0.27166521549224854, 0.012637075036764145, 0.08582374453544617, -0.01659419760107994, 0.25247564911842346, -0.35083919763565063, 0.14356264472007751, 0.15645363926887512, -0.12652340531349182, 0.02319474145770073, -0.07595311850309372, -0.14459151029586792, 0.15639525651931763, -0.02394203282892704, 0.31947413086891174, 0.40934911370277405, 0.1291208565235138, 0.18838638067245483, -0.20109619200229645, -0.09559719264507294, 0.11534484475851059, 0.26070958375930786, -0.13810862600803375, -0.114592045545578, -0.08311240375041962, 0.08605010062456131, 0.15288588404655457, -0.20876041054725647, -0.1310129314661026, 0.2529858946800232, 0.1786700189113617, 0.0311758890748024, 0.06788821518421173, -0.19314903020858765, 0.24047031998634338, 0.3202763497829437, -0.1988532841205597, 0.0038539450615644455, -0.16320288181304932, 0.035049065947532654, -0.30530381202697754, 0.32945993542671204, -0.13320893049240112, -0.325461745262146, 0.19766944646835327, 0.3026943504810333, 0.015789411962032318, 0.09067332744598389, -0.5279403924942017, 0.17570076882839203, 0.2027977854013443, -0.11167296767234802, 0.07149145007133484, 0.01742883399128914, -0.11230434477329254, -0.3050297796726227, 0.08122331649065018, -0.07611028850078583, -0.25833505392074585, 0.06931200623512268, -0.38246428966522217, 0.11721639335155487, -0.1355859637260437, 0.04474395513534546, -0.21721981465816498, -0.00699983537197113, 0.051851846277713776, 0.23378978669643402, 0.37729522585868835, -0.30663126707077026, -0.4640675485134125, 0.09374638646841049, -0.05924336984753609, -0.08746418356895447, -0.028362296521663666, 0.40126246213912964, 0.33045294880867004, -0.20663322508335114, -0.02376939356327057, 0.11916173994541168, -0.048864029347896576, 0.18655283749103546, -0.026862118393182755, -0.17836572229862213, 0.10614287853240967, 0.10553033649921417, 0.11800654232501984, -0.42336487770080566, 0.13214987516403198, -0.3243344724178314, 0.18583709001541138, -0.13321740925312042, -0.15267404913902283, 0.1170596331357956, 0.09491541981697083, 0.14157460629940033, 0.1734272986650467, -0.24910783767700195, -0.2692756652832031, 0.3464255928993225, 0.17992645502090454, -0.3359224200248718, -0.3244493007659912, -0.29631268978118896, 0.02152852714061737, -0.005941290408372879, -0.13441576063632965, 0.2837689518928528, 0.29765206575393677, -0.1567285656929016, -0.21894963085651398, -0.08260630816221237, -0.24744011461734772, 0.22851063311100006, 0.009229732677340508, -0.19704660773277283, -0.1689751297235489, 0.29645755887031555, -0.17477652430534363, 0.22540046274662018, 0.012822341173887253, 0.0038841143250465393, 0.15153621137142181, 0.08726143091917038, -0.03547767549753189, 0.3999769687652588, 0.13434500992298126, -0.01940646767616272, -0.11432463675737381, 0.2097272127866745, 0.16467154026031494, 0.20870977640151978, -0.00441223569214344, 0.031016390770673752, 0.014042780734598637, 0.07682608813047409, -0.3554575741291046, 0.6017233729362488, -0.23171024024486542, 0.2725834548473358, 0.15615299344062805, -0.0140011515468359, -0.0387185700237751, 0.19854819774627686, -0.026044614613056183, -0.2435225248336792, 0.11658710241317749, 0.07478553056716919, -0.006356276571750641, 0.178488090634346, -0.3146052956581116, 0.4138574004173279, 0.4709712564945221, 0.04662067070603371, 0.3825296461582184, -0.007887959480285645, 0.1489628553390503, 0.1921355426311493, 0.14775708317756653, 0.3463185131549835, 0.18475660681724548, 0.4106598198413849, -0.05473319813609123, -0.28525638580322266, 0.025752119719982147, 0.014702221378684044, 0.16284045577049255, 0.07351703196763992, 0.04434056207537651, 0.275179386138916, 0.27677416801452637, 0.10310187935829163, -0.34431013464927673, -0.0002782084047794342, 0.27984845638275146, -0.03694082051515579, -0.2541312277317047, 0.04052095115184784, -0.39535245299339294, -0.12487474083900452, 0.10082688927650452, -0.02480924502015114, -0.2416328489780426, -0.10771167278289795, 0.22400715947151184, -0.0740390419960022, -0.14521004259586334, 0.0775056779384613, -0.15907108783721924, 0.22506634891033173, 0.03881458193063736, -0.31566697359085083, -0.1115124374628067, -0.15660424530506134, -0.034618087112903595, 0.17540831863880157, 0.2778061628341675, 0.23089659214019775, 0.6133107542991638, 0.41513171792030334, -0.2098986953496933, -0.17938272655010223, -0.4874396026134491, -0.1953831911087036, -0.1676500290632248, 0.08578737080097198, 0.1746092587709427, -0.22804798185825348, -0.24102149903774261, -0.11869212985038757, 0.001611917745321989, 0.040158711373806, -0.3762882649898529, 0.07494672387838364, -0.0313173346221447, -0.07745758444070816, -0.2764483392238617, -0.19640854001045227, 0.10443481802940369, -0.26207977533340454, 0.14006134867668152, -0.10285171866416931, 0.2920301556587219, -0.17618417739868164, -0.07026050239801407, -0.05508677661418915, -0.013835186138749123, -0.039594583213329315, -0.2507723569869995, 0.09179872274398804, 0.3144385814666748, -0.1133652850985527, -0.11898915469646454, -0.21604636311531067, 0.006207333877682686, -0.22183379530906677, 0.24178148806095123, -0.15437456965446472, -0.2361905723810196, -0.15126954019069672, 0.3032781779766083, -0.035202205181121826, 0.14510227739810944, 0.4386759400367737, 0.1100408062338829, -0.1960657685995102, -0.1263163834810257, -0.18152126669883728, -0.07079944759607315, 0.143504798412323, 0.12623150646686554, -0.11820762604475021, 0.35650908946990967, 0.418508917093277, 0.44295012950897217, -0.26403337717056274, 0.11536979675292969, 0.05836861953139305, 0.17688220739364624, 0.16319675743579865, -0.10971730202436447, -0.2376062273979187, 0.11921630054712296, 0.10691597312688828, 0.3553432822227478, 0.08851087838411331, 0.21920660138130188, -0.04017585515975952, 0.0748162716627121, -0.08338014036417007, -0.03750120848417282, -0.23815618455410004, 0.08049207180738449, -0.11184456944465637, 0.1680040955543518, 0.016950953751802444, 0.09912057965993881, -0.3556884825229645, -0.1551530361175537, 0.006111396476626396, -0.11378908157348633, -0.13970836997032166, -0.1884702891111374, -0.10213115811347961, 0.05126190185546875, -0.4897308945655823, 0.10023485124111176, 0.26445692777633667, -0.1056765466928482, 0.2891111969947815, 0.027806006371974945, 0.0036002174019813538, -0.4398234486579895, 0.6304491758346558, -0.001116149127483368, 0.061885759234428406, 0.008179925382137299, -0.12781362235546112, -0.49841174483299255, 0.26373347640037537, -0.037027131766080856, 0.14963524043560028, -0.4328727424144745, 0.4211345314979553, -0.49023300409317017, -0.15730372071266174, -0.22044304013252258, 0.06812909245491028, -0.08792812377214432, -0.42377495765686035, -0.311108261346817, -0.1689395308494568, 0.03768870234489441, 0.14698976278305054, 0.05917365103960037, -0.03140651434659958, -0.32971665263175964, -0.11220571398735046, -0.10723309218883514, -0.14774452149868011, -0.0943603515625, -0.13477572798728943, 0.3125435709953308, 0.06977742165327072, 0.05213453248143196, 0.37152203917503357, 0.038492053747177124, 0.05947268754243851, 0.2076001912355423, 0.04965807497501373, -0.044685691595077515, -0.24446964263916016, -0.03523368760943413, -0.12526655197143555, 0.19781646132469177, -0.18571752309799194, 0.21364808082580566, -0.025026880204677582, -0.00823037326335907, 0.03827318176627159, -0.2538518011569977, 0.23597685992717743, -0.12207571417093277, -0.2997356653213501, -0.3422631621360779, 0.6480220556259155, 0.041288670152425766, -0.31256332993507385, 0.44483739137649536, 0.6407371759414673, -0.22298724949359894, 0.13155114650726318, 0.4528186321258545, 0.692333459854126, -0.35470807552337646, 0.10733957588672638, 0.24052852392196655, -0.3757324814796448, 0.31714046001434326, 0.002665448933839798, 0.33032745122909546, -0.45787402987480164, -0.29751160740852356, 0.05403447896242142, -0.016469135880470276, -0.054159097373485565, 0.2666628956794739, -0.291608989238739, 0.12755493819713593, -0.10365267843008041, -0.005045443773269653, -0.16883745789527893, 0.22600126266479492, -0.06276855617761612, -0.25358816981315613, -0.2974754571914673, 0.25233548879623413, 0.06992755085229874, -0.32448527216911316, -0.14853698015213013, 0.16703327000141144, 0.32940179109573364, -0.19231197237968445, -0.10171224921941757, -0.16260778903961182, -0.3857901990413666, 0.2544298768043518, -0.17125314474105835, -0.0603945255279541, 0.3218774199485779, 0.20291365683078766, 0.2002210021018982, 0.05999375879764557, 0.1324806958436966, 0.24642157554626465, 0.17057840526103973, 0.43961572647094727, 0.0764402374625206, -0.31852197647094727, 0.08402205258607864, -0.0592789500951767, -0.15968096256256104, -0.21092787384986877, 0.31928542256355286, -0.5298601388931274, -0.12912318110466003, 0.20635952055454254, -0.16576063632965088, 0.14411397278308868, 0.12079443037509918, 0.22391197085380554, 0.027800757437944412, -0.20867988467216492, 0.267306387424469, 0.008972324430942535, 0.12029706686735153, 0.5540990233421326, -0.2853398025035858, 0.15660220384597778, 0.03335760906338692, 0.3850201964378357, 0.06193005293607712, 0.141200453042984, 0.05529741942882538, 0.18445196747779846, -0.40346759557724, -0.28270816802978516, -0.029889516532421112, 0.1698191612958908, -0.056662335991859436, 0.24254876375198364, -0.13810114562511444, -0.03769269585609436, 0.31292495131492615, 0.21341173350811005, -0.025585122406482697, -0.13585388660430908, -0.0851873829960823, -0.010599978268146515, -0.09030858427286148, 0.15766018629074097, 0.30947741866111755, 0.154898002743721, -0.10616441071033478, -0.012068243697285652, -0.14577186107635498, 0.2162303775548935, -0.48038890957832336, 0.14449159801006317, 0.012135351076722145, 0.1345495879650116, 0.12656404078006744, 0.0488235205411911, -0.014588692225515842, -0.02675219066441059, 0.2663816809654236, -0.08936252444982529, -0.07391081005334854, -0.4428595304489136, -0.167645663022995, 0.0006657689809799194, -0.18073967099189758, 0.255786269903183, 0.01838136836886406, -0.4668206572532654, -0.24278151988983154, -0.1486894190311432, 0.16372936964035034, 0.36362478137016296, -0.11605027318000793, 0.13712048530578613, 0.08209962397813797, 0.02340896800160408, 0.179647296667099, 0.2421741634607315, -0.036592938005924225, -0.23221589624881744, 0.12505528330802917, 0.49510473012924194, 0.0015400177799165249, 0.02670978754758835, -0.11018551886081696, 0.0946483165025711, 0.0478072352707386, 0.04403598979115486, 0.1976793110370636, -0.12752684950828552, -0.33698734641075134, 0.32247546315193176, 0.4291325509548187, 0.2088654786348343, 0.0538063608109951, -0.17228847742080688, 0.02046373300254345, 0.33405813574790955, -0.4605019688606262, -0.36988741159439087, -0.07542076706886292, 0.24401238560676575, 0.19201286137104034, 0.15340125560760498, -0.13442416489124298, 0.0845126211643219, -0.01398942619562149, -0.002354556694626808, 0.05547540634870529, -0.2740486264228821, 0.3090974986553192, 0.3142058551311493, 0.17712973058223724, -0.27473321557044983, 0.22478269040584564, -0.11981259286403656, -0.006577230989933014, 0.43060511350631714, 0.03606002405285835, 0.41023728251457214, 0.25621819496154785, -0.07933112978935242, 0.19842064380645752, -0.09446414560079575, 0.16785477101802826, 0.1706824004650116, -0.0561194121837616, -0.08100741356611252, 0.3979020416736603, 0.2197820246219635, 0.09748713672161102, -0.30386435985565186, -0.22316671907901764, 0.015856599435210228, -0.09864155203104019, 0.005760913714766502, -0.09833376109600067, -0.17088663578033447, 0.04056242108345032, -0.1291654407978058, -0.09352396428585052, -0.09084524214267731, 0.4710439443588257, 0.14012280106544495, 0.26828479766845703, -0.6331988573074341, 0.2502230405807495, 0.08765970170497894, 0.5899756550788879, -0.008116714656352997, -0.1291014850139618, 0.3263359069824219, -0.09410730004310608, -0.05037884786725044, -0.06578465551137924, -0.0236179418861866, 0.060564782470464706, -0.17171385884284973, 0.08801022171974182, -0.09751234948635101, 0.025891652330756187, -0.0312003493309021, -0.21401792764663696, -0.10288581252098083, 0.06233863905072212, 0.38823848962783813, 0.25855734944343567, -0.19557620584964752, 0.10392410308122635, 0.26606041193008423, 0.19698265194892883, -0.12809336185455322, 0.1596849113702774, -0.08771108835935593, -0.2549399137496948, 0.05976378172636032, 0.16815873980522156, 0.08483681827783585, -0.26490676403045654, 0.09703773260116577, -0.21584352850914001, -0.09313933551311493, -0.3918028771877289, 0.18613535165786743, 0.14504846930503845, 0.42333507537841797, 0.09953400492668152, 0.05916353315114975, -0.15306945145130157, -0.005827225744724274, -0.610059380531311, -0.023160316050052643, 0.014253456145524979, 0.09019108861684799, 0.1508316993713379, 0.35169851779937744, -0.029163382947444916, -0.11252298951148987, 0.2910139262676239, -0.33972641825675964, 0.04843628406524658, 0.07620374858379364, -0.4589621424674988, 0.034737907350063324, 0.045379817485809326, -0.13954134285449982, -0.1556764394044876, -0.38564983010292053, -0.11517275869846344, -0.09338200092315674, 0.22504344582557678, -0.2352849394083023, 0.21945637464523315, -0.0424463227391243, -0.013603366911411285, 0.1582023948431015, 0.0015133172273635864, 0.06271050870418549, 0.08784392476081848, 0.0148072000592947, 0.0935576856136322, 0.1869126260280609, -0.35935041308403015, 0.04210038483142853, 0.08974151313304901, 0.15223799645900726, -0.16810643672943115, -0.13931666314601898, -0.011953912675380707, 0.0052459947764873505, 0.008824583142995834, 0.11514977365732193, -0.3489660620689392, 0.05280783772468567, 0.12706512212753296, -0.023658622056245804, -0.40787363052368164, 0.25217416882514954, -0.029332198202610016, 0.16445918381214142, -0.03901762515306473, -0.23481254279613495, 0.2387588918209076, -0.17787928879261017, -0.12916043400764465, -0.12103801965713501, 0.17876803874969482, 0.3520415723323822, 0.02171197161078453, -0.07356642931699753, -0.10700089484453201, 0.2871693968772888, 0.13828226923942566, -0.09741151332855225, 0.2942734956741333, -0.3396746814250946, -0.113091379404068, -0.16607514023780823, -0.050164833664894104, -0.07243066281080246, -0.21987324953079224, -0.05910039693117142, -0.24805259704589844 ]
https://github.com/huggingface/datasets/issues/5425
Sort on multiple keys with datasets.Dataset.sort()
@mariosasko If I understand the code right, using `pyarrow.compute.sort_indices` would also require changes to the `select` method if it is meant to sort multiple keys. That's because `select` only accepts 1D input for `indices`, not an iterable or similar which would be required for multiple keys unless you want some looping over selects. Doesn't seem that straight-forward but I might be missing something here...
### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add.
64
Sort on multiple keys with datasets.Dataset.sort() ### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add. @mariosasko If I understand the code right, using `pyarrow.compute.sort_indices` would also require changes to the `select` method if it is meant to sort multiple keys. That's because `select` only accepts 1D input for `indices`, not an iterable or similar which would be required for multiple keys unless you want some looping over selects. Doesn't seem that straight-forward but I might be missing something here...
[ -0.023224934935569763, 0.14701536297798157, -0.16095459461212158, 0.0437161922454834, 0.3155261278152466, -0.01964324340224266, 0.20779173076152802, 0.21705663204193115, -0.2556999623775482, 0.16988101601600647, -0.062441498041152954, 0.42477181553840637, 0.021939245983958244, 0.20094767212867737, 0.16004015505313873, -0.3069275915622711, -0.10347055643796921, 0.03935747593641281, 0.1534304916858673, 0.13863520324230194, -0.1802625209093094, -0.11595821380615234, -0.32217830419540405, 0.08232543617486954, 0.07412507385015488, -0.19280682504177094, -0.2905312478542328, -0.005499400198459625, -0.09969483315944672, -0.30849960446357727, 0.0093724075704813, 0.3429658114910126, -0.1796090453863144, 0.2792154848575592, -0.00009777498780749738, -0.23147474229335785, -0.05717097222805023, -0.06750917434692383, -0.09638023376464844, -0.2963687777519226, 0.0233929380774498, 0.02760477550327778, -0.18246802687644958, -0.2556193768978119, -0.13979578018188477, -0.45059970021247864, -0.06768923997879028, -0.09925878047943115, 0.03563278168439865, -0.08303184062242508, 0.32757991552352905, 0.10451707988977432, 0.13483507931232452, 0.16294799745082855, 0.3289191424846649, 0.1328960657119751, -0.11953145265579224, -0.1145799458026886, 0.2813117206096649, 0.02349417470395565, 0.04786517098546028, 0.02856549806892872, -0.1944890320301056, -0.35200780630111694, 0.32839298248291016, 0.03631356358528137, -0.019267328083515167, -0.007030423730611801, 0.03808934614062309, 0.16228798031806946, 0.5409795641899109, -0.5123026371002197, -0.4559883773326874, -0.24386942386627197, 0.2803148329257965, -0.2247747927904129, 0.08578111976385117, 0.029318932443857193, -0.0038170861080288887, -0.13549430668354034, 0.01080751046538353, 0.043624650686979294, -0.12302061170339584, 0.2796289026737213, -0.03447278216481209, 0.193949356675148, 0.005417606793344021, -0.003995925188064575, 0.2937003970146179, -0.21927420794963837, 0.06513625383377075, -0.4394659996032715, 0.32396215200424194, 0.22822654247283936, -0.40644529461860657, -0.14646698534488678, 0.2111702859401703, 0.29570236802101135, 0.23926880955696106, -0.13927924633026123, -0.175872340798378, 0.10976609587669373, 0.20705121755599976, 0.021209806203842163, 0.22831323742866516, 0.34119725227355957, 0.10880018770694733, 0.13431473076343536, 0.2984028458595276, -0.05534018948674202, 0.11180426180362701, 0.03317635506391525, 0.20706966519355774, -0.36742103099823, 0.15908581018447876, 0.2080543041229248, -0.045016855001449585, 0.014700468629598618, -0.09006436169147491, -0.13360187411308289, -0.019496005028486252, -0.11163659393787384, 0.294453889131546, 0.38279592990875244, 0.18047215044498444, -0.025041058659553528, -0.35979127883911133, -0.08909796178340912, 0.0563468337059021, 0.2532481253147125, -0.1302907019853592, -0.01911044865846634, -0.02784055843949318, 0.05693201720714569, 0.13760487735271454, -0.3096776008605957, -0.15279094874858856, 0.3263230323791504, 0.2614264488220215, 0.03671053797006607, 0.007264535874128342, -0.08029459416866302, 0.2023608386516571, 0.30915793776512146, -0.12120868265628815, -0.004409370943903923, -0.17137043178081512, -0.13567644357681274, -0.2969629168510437, 0.4146195948123932, -0.18137148022651672, -0.3745831251144409, 0.1614513248205185, 0.25595828890800476, -0.08240936696529388, 0.04522399976849556, -0.41233161091804504, 0.24256350100040436, 0.2124684453010559, -0.11302883923053741, 0.016982458531856537, -0.03546366095542908, -0.04956943169236183, -0.3435993194580078, 0.08822733163833618, -0.029556140303611755, -0.373505175113678, 0.0899684727191925, -0.23944082856178284, 0.10720057785511017, -0.17068207263946533, 0.06178192049264908, -0.22299353778362274, 0.09393644332885742, 0.10638251900672913, 0.359738826751709, 0.25404152274131775, -0.21823713183403015, -0.5354211926460266, 0.014742430299520493, -0.038938988000154495, -0.0399332270026207, 0.013983085751533508, 0.3657243549823761, 0.2681173086166382, -0.2042660415172577, 0.02377099171280861, 0.14564910531044006, -0.1061350405216217, 0.21091212332248688, -0.059416819363832474, -0.12547874450683594, 0.2661340534687042, 0.16335660219192505, 0.12758038938045502, -0.4081854820251465, 0.10170340538024902, -0.3228144347667694, 0.21795958280563354, -0.20820224285125732, -0.22349651157855988, 0.018945034593343735, 0.14987249672412872, 0.08259103447198868, 0.18863718211650848, -0.26584285497665405, -0.18540546298027039, 0.34002017974853516, 0.13820397853851318, -0.21858859062194824, -0.35634124279022217, -0.3340650200843811, 0.021782103925943375, -0.03502452373504639, -0.21735601127147675, 0.2679063379764557, 0.2768118977546692, -0.1778780221939087, -0.11144612729549408, -0.05990020930767059, -0.24880868196487427, 0.10814671218395233, 0.11184316873550415, -0.18392424285411835, -0.22542929649353027, 0.42513978481292725, -0.23475979268550873, 0.11527839303016663, 0.013668030500411987, 0.005484692752361298, 0.23023781180381775, 0.016510076820850372, 0.07531654089689255, 0.3589390218257904, 0.07097047567367554, -0.11850538849830627, -0.13875877857208252, 0.1926030069589615, 0.18583324551582336, 0.19257992506027222, 0.0431629978120327, 0.0030790921300649643, -0.003019609721377492, 0.11371173709630966, -0.3399888575077057, 0.6612098813056946, -0.35956501960754395, 0.18733477592468262, 0.08651269972324371, -0.032077137380838394, -0.1124362125992775, 0.1814577281475067, -0.039631493389606476, -0.05510510504245758, 0.10673873871564865, 0.13634584844112396, -0.06734888255596161, 0.15083423256874084, -0.2918267548084259, 0.4734482765197754, 0.5488920211791992, -0.12510691583156586, 0.28362417221069336, 0.0076175257563591, 0.22911903262138367, 0.1828819215297699, 0.12239900976419449, 0.18746210634708405, 0.07357798516750336, 0.4228457808494568, -0.09859716892242432, -0.2220204770565033, -0.06461068242788315, 0.04986436665058136, 0.1331908106803894, 0.11272945255041122, -0.10002200305461884, 0.30957093834877014, 0.24911589920520782, 0.13411785662174225, -0.3513365685939789, 0.022283826023340225, 0.3386344611644745, 0.013647066429257393, -0.29679960012435913, 0.10276719182729721, -0.3580125570297241, -0.20285996794700623, 0.13060832023620605, -0.2265550047159195, -0.3373529613018036, -0.08322001248598099, 0.2873280644416809, -0.05874285474419594, -0.029499536380171776, 0.03517904877662659, 0.03535853698849678, 0.1823199987411499, 0.11368882656097412, -0.3722623586654663, -0.10043796896934509, -0.1478319615125656, -0.06358818709850311, 0.16063961386680603, 0.31324338912963867, 0.2618083357810974, 0.5010380744934082, 0.3563627004623413, -0.20220544934272766, -0.15179306268692017, -0.5436652302742004, -0.20169124007225037, -0.2900005578994751, 0.23086944222450256, 0.14159327745437622, -0.23435552418231964, -0.26876962184906006, -0.1581205278635025, 0.062098369002342224, 0.11860960721969604, -0.3812868297100067, 0.16868741810321808, -0.005249720066785812, -0.1878836750984192, -0.23324082791805267, -0.19601523876190186, 0.0030197687447071075, -0.1249152272939682, 0.1274746209383011, -0.11990293860435486, 0.3492867946624756, -0.1772850900888443, -0.05356548726558685, -0.06343817710876465, 0.0331045426428318, -0.10025140643119812, -0.1926903873682022, 0.061036717146635056, 0.34355127811431885, -0.09558620303869247, -0.1386108100414276, -0.20986434817314148, 0.037865832448005676, -0.3895252048969269, 0.16171838343143463, -0.008214034140110016, -0.2979651093482971, -0.0885908380150795, 0.4350178837776184, 0.04746328666806221, 0.1633501946926117, 0.45840102434158325, 0.10285599529743195, -0.10737437754869461, -0.0939607322216034, -0.25079378485679626, -0.12692391872406006, 0.2978111803531647, 0.11959951370954514, -0.10959739238023758, 0.3668292760848999, 0.4140886068344116, 0.46974992752075195, -0.2664855718612671, 0.13877451419830322, 0.11594728380441666, 0.1593492329120636, 0.06866462528705597, -0.04795301705598831, -0.31023794412612915, 0.1289435774087906, 0.08328785747289658, 0.2753288745880127, 0.18754304945468903, 0.21565118432044983, -0.05080943554639816, 0.059045083820819855, -0.15872013568878174, -0.07844536006450653, -0.18960347771644592, 0.06865683197975159, 0.014062490314245224, 0.13100460171699524, 0.0788210928440094, 0.10375640541315079, -0.3109494149684906, -0.18313682079315186, -0.04723174870014191, -0.0657677948474884, -0.13311463594436646, -0.14220812916755676, -0.02821865677833557, -0.09559806436300278, -0.5041660070419312, 0.07284268736839294, 0.31863856315612793, -0.19910891354084015, 0.3067125380039215, 0.03879857063293457, 0.06446493417024612, -0.4731906056404114, 0.7298950552940369, -0.04454120993614197, 0.03586694225668907, 0.11564905941486359, -0.10076238214969635, -0.42328065633773804, 0.18080028891563416, -0.06324218958616257, 0.2098948061466217, -0.38371506333351135, 0.39978480339050293, -0.48049771785736084, -0.08181237429380417, -0.11735878884792328, 0.1629030704498291, -0.0821613296866417, -0.5000481009483337, -0.3598138988018036, -0.26730087399482727, 0.0502220019698143, 0.16906648874282837, -0.030923830345273018, 0.039316847920417786, -0.37900081276893616, -0.05772463232278824, 0.06608400493860245, -0.05619737133383751, -0.06480520963668823, -0.04171481728553772, 0.2611503303050995, 0.092768095433712, 0.06000349298119545, 0.36227357387542725, -0.006836056709289551, 0.09008939564228058, 0.13528603315353394, 0.11149723827838898, -0.01760862022638321, -0.2928202450275421, -0.11382376402616501, -0.021496079862117767, 0.15901899337768555, -0.17126193642616272, 0.16529890894889832, -0.06582111120223999, -0.026877395808696747, 0.12725131213665009, -0.3612418472766876, 0.28662726283073425, -0.09610169380903244, -0.297864705324173, -0.3164740800857544, 0.6882597804069519, -0.06414930522441864, -0.2853100895881653, 0.2879837155342102, 0.5988028049468994, -0.16230125725269318, 0.12022331357002258, 0.39254727959632874, 0.6931690573692322, -0.3824194669723511, 0.03706316649913788, 0.3058812618255615, -0.25757986307144165, 0.25207895040512085, -0.052375659346580505, 0.4314398765563965, -0.5134844779968262, -0.3712499141693115, 0.00009225867688655853, 0.0019541308283805847, -0.06147234886884689, 0.26269447803497314, -0.33553987741470337, 0.20050907135009766, -0.11516381055116653, 0.012554168701171875, -0.10682862251996994, 0.1677236258983612, -0.017751267179846764, -0.11009562015533447, -0.3120565414428711, 0.20650774240493774, 0.0574658028781414, -0.24956583976745605, -0.17267414927482605, 0.08585963398218155, 0.2637006938457489, -0.15557953715324402, -0.06035354360938072, -0.16246217489242554, -0.268379807472229, 0.19508737325668335, -0.14841526746749878, -0.13901610672473907, 0.28827518224716187, 0.19229677319526672, 0.14201727509498596, 0.005654033273458481, 0.11633390933275223, 0.14233645796775818, 0.14951074123382568, 0.43413466215133667, 0.06385262310504913, -0.34390199184417725, 0.14611250162124634, -0.03976732864975929, -0.24135571718215942, -0.17004933953285217, 0.3582433760166168, -0.5285781621932983, -0.20485302805900574, 0.1630783975124359, -0.11380243301391602, 0.12864068150520325, 0.18420012295246124, 0.15812572836875916, 0.06280763447284698, -0.26322489976882935, 0.23448942601680756, -0.009504072368144989, 0.060329046100378036, 0.62847900390625, -0.4344891607761383, 0.20594707131385803, 0.016536522656679153, 0.3510761260986328, 0.06323814392089844, 0.19095997512340546, 0.03897199407219887, 0.2594405710697174, -0.41152435541152954, -0.22209367156028748, -0.01942700520157814, 0.0987880527973175, 0.0183926522731781, 0.17773056030273438, -0.12112144380807877, 0.14762647449970245, 0.2870641052722931, 0.21604007482528687, -0.006582170724868774, -0.18770509958267212, -0.09432246536016464, -0.038639090955257416, -0.005737666040658951, 0.10913962870836258, 0.5111338496208191, 0.10420215129852295, -0.02586887776851654, 0.08875103294849396, -0.030452528968453407, 0.11074705421924591, -0.4531484842300415, 0.16227465867996216, -0.016636690124869347, 0.15722408890724182, 0.1288061887025833, 0.01621932163834572, -0.10567163676023483, -0.061724722385406494, 0.22901448607444763, -0.1168738454580307, -0.03878536447882652, -0.4205226004123688, -0.16955290734767914, -0.006223052740097046, -0.15609022974967957, 0.24855005741119385, 0.07478052377700806, -0.38923031091690063, -0.27126455307006836, -0.1333925873041153, 0.1741635501384735, 0.35012978315353394, -0.08562442660331726, 0.1912892758846283, 0.1768653690814972, -0.054421328008174896, 0.17047764360904694, 0.16404590010643005, -0.052739426493644714, -0.28417283296585083, 0.22499477863311768, 0.5212043523788452, -0.09119603782892227, 0.09051911532878876, -0.13118784129619598, 0.12625308334827423, 0.02637367695569992, -0.030188582837581635, 0.23214587569236755, -0.20441021025180817, -0.31191059947013855, 0.24590246379375458, 0.5023757219314575, 0.22086189687252045, 0.01091618649661541, -0.16695354878902435, 0.07792770862579346, 0.3023752272129059, -0.5009664297103882, -0.3712905943393707, 0.04141981154680252, 0.23134265840053558, 0.09553110599517822, 0.15397611260414124, -0.09059793502092361, 0.12058310210704803, -0.03085997700691223, -0.04455989599227905, 0.193047434091568, -0.10187706351280212, 0.19873076677322388, 0.39887359738349915, 0.11176888644695282, -0.22435171902179718, 0.2916237413883209, -0.1628275215625763, -0.11804712563753128, 0.4017332196235657, -0.06284811347723007, 0.2676750719547272, 0.07823289930820465, -0.1325925886631012, 0.15324607491493225, -0.0164067130535841, 0.20533084869384766, 0.1327849179506302, 0.05819132179021835, -0.15900984406471252, 0.41018831729888916, 0.28664714097976685, 0.12548837065696716, -0.21743786334991455, -0.27345767617225647, 0.18586675822734833, -0.04010093957185745, 0.025321993976831436, -0.049024466425180435, -0.2223377227783203, 0.11116153001785278, -0.09825187921524048, -0.11746527254581451, -0.18440571427345276, 0.4183143973350525, 0.14672113955020905, 0.2967849671840668, -0.7072168588638306, 0.3045949637889862, 0.02966734580695629, 0.563573956489563, -0.028375349938869476, -0.1434560865163803, 0.40168535709381104, -0.10092400014400482, -0.07565459609031677, -0.13545286655426025, 0.06425293534994125, 0.05646269768476486, -0.2740722894668579, 0.027002666145563126, -0.17508317530155182, 0.05330836772918701, 0.030134055763483047, -0.21766069531440735, -0.163906529545784, 0.13444462418556213, 0.3924252390861511, 0.22865700721740723, -0.1964169591665268, 0.08782554417848587, 0.34889936447143555, 0.19412019848823547, -0.16313143074512482, -0.0017846599221229553, -0.07769923657178879, -0.3013676106929779, 0.1268465667963028, 0.13781335949897766, 0.07793190330266953, -0.17987005412578583, 0.04727046564221382, -0.005067122168838978, -0.09852953255176544, -0.33452725410461426, 0.17891579866409302, 0.09310553967952728, 0.379672110080719, 0.08487127721309662, 0.08321943134069443, -0.2142474502325058, 0.03459426760673523, -0.62861168384552, -0.04056919366121292, 0.05769932270050049, 0.05237293243408203, 0.192344069480896, 0.32360249757766724, -0.009942471981048584, -0.06110779196023941, 0.30164241790771484, -0.361893892288208, 0.057939209043979645, 0.16245654225349426, -0.4487893879413605, 0.008548155426979065, 0.017106369137763977, -0.1846255362033844, -0.2312972992658615, -0.3004826307296753, -0.053137268871068954, -0.2069394886493683, 0.21730047464370728, -0.3937484622001648, 0.2535523474216461, -0.02225220762193203, 0.022655734792351723, 0.06263542920351028, -0.0026700831949710846, 0.21771761775016785, 0.12535211443901062, 0.12575359642505646, 0.16611798107624054, 0.28390929102897644, -0.3783041536808014, 0.06015801057219505, 0.06120411306619644, 0.12603725492954254, -0.06072186678647995, -0.16792722046375275, -0.03610285371541977, 0.11295679956674576, 0.012512695044279099, 0.1044597402215004, -0.3389570116996765, 0.03415565937757492, 0.079472117125988, -0.011841971427202225, -0.442980021238327, 0.16863863170146942, -0.06893773376941681, 0.22345229983329773, -0.036490216851234436, -0.20943580567836761, 0.2535041570663452, -0.2769987881183624, -0.16111059486865997, -0.16498953104019165, 0.06980713456869125, 0.28213798999786377, 0.024111922830343246, 0.09819995611906052, -0.0556647814810276, 0.3099837601184845, 0.12207440286874771, -0.12557022273540497, 0.426301509141922, -0.30386883020401, -0.09220841526985168, -0.11357817053794861, -0.18912887573242188, -0.0009399391710758209, -0.2059815675020218, -0.11441206932067871, -0.2803621292114258 ]
https://github.com/huggingface/datasets/issues/5425
Sort on multiple keys with datasets.Dataset.sort()
@MichlF No, it doesn't require modifying select because sorting on multiple keys also returns a 1D array. It's easier to understand with an example: ```python >>> import pyarrow as pa >>> import pyarrow.compute as pc >>> table = pa.table({ ... "name": ["John", "Eve", "Peter", "John"], ... "surname": ["Johnson", "Smith", "Smith", "Doe"], ... "age": [20, 40, 30, 50], ... }) >>> indices = pc.sort_indices(table, sort_keys=[("name", "ascending"), ("surname", "ascending")]) >>> print(indices) [ 1, 3, 0, 2 ] ```
### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add.
76
Sort on multiple keys with datasets.Dataset.sort() ### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add. @MichlF No, it doesn't require modifying select because sorting on multiple keys also returns a 1D array. It's easier to understand with an example: ```python >>> import pyarrow as pa >>> import pyarrow.compute as pc >>> table = pa.table({ ... "name": ["John", "Eve", "Peter", "John"], ... "surname": ["Johnson", "Smith", "Smith", "Doe"], ... "age": [20, 40, 30, 50], ... }) >>> indices = pc.sort_indices(table, sort_keys=[("name", "ascending"), ("surname", "ascending")]) >>> print(indices) [ 1, 3, 0, 2 ] ```
[ -0.05690890550613403, 0.10141076147556305, -0.21444390714168549, -0.04086395353078842, 0.2572186589241028, 0.016521252691745758, 0.13104653358459473, 0.1736159473657608, -0.13526873290538788, 0.12119153887033463, -0.09460056573152542, 0.4578700065612793, -0.03541899845004082, 0.19050554931163788, 0.11100988835096359, -0.2755025029182434, -0.09974584728479385, 0.03645794093608856, 0.08320419490337372, 0.10690601170063019, -0.18139423429965973, -0.14286403357982635, -0.279180109500885, 0.09720880538225174, 0.11371824890375137, -0.17539995908737183, -0.2119850069284439, 0.04816054552793503, -0.06547562777996063, -0.2535535991191864, 0.06004227697849274, 0.3350936770439148, -0.24218153953552246, 0.2638952434062958, -0.00009303454135078937, -0.2709506154060364, -0.10582436621189117, -0.0985126867890358, -0.11609077453613281, -0.29017502069473267, -0.014198407530784607, 0.008821127936244011, -0.2316451072692871, -0.21522337198257446, -0.18925181031227112, -0.43237850069999695, -0.11633142828941345, -0.1654033660888672, 0.11777494847774506, -0.06936071068048477, 0.37981829047203064, 0.06301380693912506, 0.09486334025859833, 0.06860559433698654, 0.23076415061950684, 0.12649351358413696, -0.09988095611333847, -0.11048418283462524, 0.24092471599578857, 0.03431721776723862, 0.10411212593317032, 0.04061579331755638, -0.1778612583875656, -0.35345131158828735, 0.24148955941200256, -0.009364013560116291, -0.005394250154495239, 0.0325770303606987, 0.16255466639995575, 0.12234663963317871, 0.40846696496009827, -0.5063190460205078, -0.45785263180732727, -0.29741188883781433, 0.2924656569957733, -0.13526399433612823, 0.1304187923669815, 0.08688794076442719, 0.07686871290206909, -0.1154642105102539, -0.04460190609097481, 0.05040159076452255, -0.06433813273906708, 0.27114319801330566, -0.055068861693143845, 0.17460861802101135, -0.06370803713798523, 0.005057252943515778, 0.2738493084907532, -0.2887570858001709, 0.10614752769470215, -0.4516984522342682, 0.33155006170272827, 0.18187084794044495, -0.3746735453605652, -0.19488930702209473, 0.16269835829734802, 0.24458175897598267, 0.19821038842201233, -0.14083051681518555, -0.20380009710788727, 0.07501021027565002, 0.14905531704425812, -0.0035448260605335236, 0.24952912330627441, 0.22059333324432373, 0.10251742601394653, 0.12811259925365448, 0.1766703873872757, -0.04721159487962723, 0.09565624594688416, 0.0789235532283783, 0.2162848711013794, -0.33588770031929016, 0.08706215023994446, 0.19795510172843933, -0.07073638588190079, 0.015069391578435898, -0.11773275583982468, -0.15150833129882812, 0.07906550914049149, -0.052051302045583725, 0.21920271217823029, 0.39352157711982727, 0.1195756047964096, 0.08482752740383148, -0.3262813091278076, -0.0706925094127655, 0.05626887083053589, 0.20821613073349, -0.14340561628341675, -0.0039266739040613174, 0.007770352065563202, 0.032618507742881775, 0.17543642222881317, -0.13748203217983246, -0.1763746738433838, 0.2784995436668396, 0.16892777383327484, 0.046139590442180634, 0.03368189185857773, -0.1124594509601593, 0.2399473488330841, 0.3361852467060089, -0.09327048808336258, -0.005026102066040039, -0.04973671957850456, -0.08554369956254959, -0.30614152550697327, 0.40162840485572815, -0.10783881694078445, -0.33922648429870605, 0.1581105887889862, 0.3194008469581604, -0.011483957059681416, 0.04250615835189819, -0.42984268069267273, 0.29075753688812256, 0.226854145526886, -0.11699561774730682, -0.012072890996932983, 0.0015025660395622253, -0.12005291879177094, -0.3057602047920227, 0.053270816802978516, -0.08790349960327148, -0.35393041372299194, 0.04882323741912842, -0.2579894959926605, 0.13349831104278564, -0.12668761610984802, -0.014328684657812119, -0.1668485403060913, 0.08382561802864075, 0.12886066734790802, 0.23767082393169403, 0.23555779457092285, -0.1946236938238144, -0.5441923141479492, -0.0022196555510163307, -0.062329478561878204, -0.020280124619603157, -0.012764044106006622, 0.32703110575675964, 0.31127846240997314, -0.18040330708026886, 0.030368149280548096, 0.16455614566802979, -0.08739414066076279, 0.21373532712459564, 0.004685744643211365, -0.09467212855815887, 0.18812230229377747, 0.12171463668346405, 0.11174776405096054, -0.30901965498924255, 0.12029118090867996, -0.21719813346862793, 0.1848146766424179, -0.15298663079738617, -0.2316337376832962, 0.08053189516067505, 0.09622617065906525, 0.09266713261604309, 0.10489349812269211, -0.274596244096756, -0.1781845986843109, 0.2929326891899109, 0.16561327874660492, -0.31050506234169006, -0.28426307439804077, -0.3271999955177307, -0.0758700892329216, -0.05530019849538803, -0.19692490994930267, 0.30644041299819946, 0.32849404215812683, -0.19263803958892822, -0.04670041427016258, -0.14070701599121094, -0.21035492420196533, 0.13724754750728607, 0.09376396983861923, -0.22041232883930206, -0.23044101893901825, 0.37037143111228943, -0.23322807252407074, 0.061983730643987656, 0.0601586177945137, 0.02501099556684494, 0.19283470511436462, 0.10201213508844376, 0.08456684648990631, 0.34470075368881226, 0.04400983825325966, -0.13656416535377502, -0.09596764296293259, 0.19320490956306458, 0.12208804488182068, 0.18666094541549683, 0.033173516392707825, -0.004900017753243446, 0.0018201093189418316, 0.1217334195971489, -0.4367789626121521, 0.6753462553024292, -0.3345893919467926, 0.20438894629478455, 0.12086217105388641, 0.021133555099368095, -0.10995731502771378, 0.1768542379140854, 0.028261380270123482, -0.11439481377601624, 0.08583690226078033, 0.1302938163280487, -0.08844266086816788, 0.12925228476524353, -0.3044258952140808, 0.4908180236816406, 0.430647611618042, -0.084626704454422, 0.36645618081092834, 0.007272727787494659, 0.24657213687896729, 0.1481499969959259, 0.10175524652004242, 0.21951265633106232, 0.16667547821998596, 0.4169574975967407, -0.023922983556985855, -0.20871061086654663, -0.03798309341073036, 0.044004589319229126, 0.10578824579715729, 0.020041733980178833, -0.19534125924110413, 0.34512123465538025, 0.2632102370262146, 0.15031227469444275, -0.3255012631416321, 0.024840913712978363, 0.2885001301765442, -0.028732003644108772, -0.2600859999656677, 0.10165015608072281, -0.3591430187225342, -0.19060257077217102, 0.16391359269618988, -0.1683035045862198, -0.20639865100383759, -0.11921949684619904, 0.28730636835098267, -0.0552029050886631, -0.08164633810520172, 0.09438484907150269, -0.004040643572807312, 0.1578649878501892, 0.08274217694997787, -0.3067755103111267, -0.06056977063417435, -0.08806686848402023, -0.028338074684143066, 0.21851323544979095, 0.24383576214313507, 0.2538837492465973, 0.5678390860557556, 0.2795814573764801, -0.24525146186351776, -0.17608405649662018, -0.4789872169494629, -0.2920825481414795, -0.23975734412670135, 0.15458126366138458, 0.1785215139389038, -0.19950340688228607, -0.2654799222946167, -0.1590052843093872, 0.04623037949204445, 0.10475818812847137, -0.3655228018760681, 0.13265272974967957, -0.013043999671936035, -0.13354045152664185, -0.2189016342163086, -0.23292672634124756, 0.018543431535363197, -0.11443932354450226, 0.12028814852237701, -0.08076485991477966, 0.36298221349716187, -0.16526703536510468, -0.054387856274843216, -0.1453852504491806, -0.03695482015609741, -0.018264081329107285, -0.25108256936073303, 0.16262280941009521, 0.25899627804756165, -0.06732358038425446, -0.10662223398685455, -0.16481143236160278, 0.003759292885661125, -0.34369444847106934, 0.046803172677755356, 0.05820444971323013, -0.25184908509254456, -0.1225460022687912, 0.33977845311164856, 0.013291101902723312, 0.13790757954120636, 0.46630433201789856, 0.11058324575424194, -0.1828315705060959, -0.0986037328839302, -0.17745262384414673, -0.18554505705833435, 0.3024170994758606, 0.0532115176320076, -0.15260189771652222, 0.298330694437027, 0.3953973650932312, 0.3344051241874695, -0.23898403346538544, 0.1757647693157196, 0.043566763401031494, 0.14562204480171204, 0.023146171122789383, -0.08184244483709335, -0.31754976511001587, 0.09738989174365997, 0.10173913091421127, 0.32890254259109497, 0.17668595910072327, 0.20268675684928894, -0.0025456734001636505, 0.10704004764556885, -0.0800066590309143, -0.16238564252853394, -0.16181357204914093, 0.0316430926322937, 0.02815883606672287, 0.056820549070835114, 0.10083945095539093, 0.002750806510448456, -0.2935347557067871, -0.17645668983459473, -0.04800723120570183, -0.05264769494533539, -0.1831408441066742, -0.16380611062049866, -0.12060467898845673, -0.024856816977262497, -0.3800874650478363, 0.06817899644374847, 0.21711044013500214, -0.14833964407444, 0.27425503730773926, 0.030346542596817017, -0.005950964987277985, -0.4309740960597992, 0.64482581615448, -0.026717597618699074, 0.05852283909916878, 0.05740447714924812, -0.1609840989112854, -0.40887102484703064, 0.23981629312038422, -0.06098975986242294, 0.15443700551986694, -0.3952811360359192, 0.35731202363967896, -0.46205276250839233, -0.05318740755319595, -0.0355447381734848, 0.15515249967575073, -0.036398254334926605, -0.45710480213165283, -0.35102570056915283, -0.24114033579826355, 0.03159195929765701, 0.17943505942821503, -0.0645398274064064, 0.06335804611444473, -0.3240750730037689, -0.010355737060308456, -0.029149552807211876, -0.13116037845611572, -0.03060552477836609, -0.08049757778644562, 0.2306841015815735, 0.10130281001329422, 0.08542698621749878, 0.32590627670288086, 0.059138208627700806, 0.04430224746465683, 0.23657339811325073, 0.10071483254432678, -0.027196094393730164, -0.20164179801940918, -0.06348288804292679, -0.12627196311950684, 0.21768486499786377, -0.1482468992471695, 0.19146767258644104, -0.08562620729207993, 0.017753124237060547, 0.15212082862854004, -0.33092665672302246, 0.19864127039909363, -0.14895346760749817, -0.2619514763355255, -0.3269684910774231, 0.6738506555557251, -0.04022569581866264, -0.2850772738456726, 0.20709200203418732, 0.5231473445892334, -0.18015657365322113, 0.030113082379102707, 0.3221549391746521, 0.7560118436813354, -0.32066214084625244, 0.045217256993055344, 0.18874403834342957, -0.2677065134048462, 0.12907801568508148, -0.0017701201140880585, 0.4077433943748474, -0.5214911699295044, -0.3784855008125305, 0.01157081313431263, 0.016696076840162277, -0.013736262917518616, 0.3553953766822815, -0.35965800285339355, 0.18796953558921814, -0.15407626330852509, -0.05883071944117546, -0.07433738559484482, 0.1783117800951004, -0.019637128338217735, -0.16652266681194305, -0.37242451310157776, 0.23343175649642944, 0.09734296798706055, -0.2806188464164734, -0.12160220742225647, 0.2041419893503189, 0.24379876255989075, -0.12825244665145874, -0.06187751889228821, -0.1376015990972519, -0.2879990041255951, 0.14022418856620789, -0.08647927641868591, -0.12235665321350098, 0.26054665446281433, 0.20735123753547668, 0.07554030418395996, 0.09820552170276642, 0.14620082080364227, 0.17051416635513306, 0.14561808109283447, 0.4533463418483734, 0.07806147634983063, -0.3267359733581543, 0.05356215313076973, 0.01362587884068489, -0.18924695253372192, -0.1282508373260498, 0.3471272587776184, -0.41711288690567017, -0.22878816723823547, 0.21316435933113098, -0.12267492711544037, 0.0891856923699379, 0.04786563292145729, 0.1367264837026596, 0.07977063953876495, -0.26818475127220154, 0.28468793630599976, -0.03894321620464325, 0.10405779629945755, 0.5760113000869751, -0.41776835918426514, 0.13048630952835083, -0.03235124424099922, 0.4351489543914795, 0.12391768395900726, 0.17537164688110352, 0.016147898510098457, 0.22301055490970612, -0.4261612892150879, -0.2937178909778595, -0.010347478091716766, 0.10070781409740448, -0.016213983297348022, 0.11722462624311447, -0.09157384186983109, 0.08155764639377594, 0.32531264424324036, 0.22088868916034698, -0.011026263236999512, -0.07942604273557663, -0.06338298320770264, -0.022388167679309845, 0.11206100136041641, 0.11543934047222137, 0.5077861547470093, 0.08213646709918976, -0.011908063665032387, 0.09623751044273376, -0.0802772045135498, 0.15115363895893097, -0.48926135897636414, 0.12474467605352402, -0.0003927256911993027, 0.13906022906303406, 0.03965804725885391, 0.034305475652217865, -0.10948499292135239, -0.05257374793291092, 0.285902738571167, -0.15957549214363098, -0.01069774478673935, -0.4919857382774353, -0.09508202970027924, -0.03203953802585602, -0.13833457231521606, 0.30190426111221313, 0.055088311433792114, -0.3002980351448059, -0.28169888257980347, -0.07698596268892288, 0.20273925364017487, 0.3631744384765625, -0.06533508002758026, 0.18526187539100647, 0.14699026942253113, -0.04953235387802124, 0.1861686408519745, 0.13478273153305054, -0.11809128522872925, -0.3163880705833435, 0.13667860627174377, 0.46786677837371826, -0.026975132524967194, 0.0905809998512268, -0.16849066317081451, 0.14876699447631836, 0.02412763237953186, -0.023202668875455856, 0.20993784070014954, -0.21453218162059784, -0.25243663787841797, 0.28759247064590454, 0.44992366433143616, 0.21953581273555756, 0.016560902819037437, -0.26604893803596497, 0.05811178311705589, 0.341182678937912, -0.4884953796863556, -0.33423927426338196, 0.04370896890759468, 0.26349109411239624, 0.16366071999073029, 0.1849329024553299, -0.15510277450084686, 0.06376959383487701, -0.0029962286353111267, -0.004463206976652145, 0.14745910465717316, -0.09327346086502075, 0.24292196333408356, 0.3780151605606079, 0.18059487640857697, -0.21827520430088043, 0.22550486028194427, -0.18787792325019836, -0.11021190136671066, 0.4112483859062195, -0.004681646823883057, 0.3114534914493561, 0.12648315727710724, -0.14897696673870087, 0.13523152470588684, -0.06312914192676544, 0.18379636108875275, 0.13070917129516602, -0.01241970807313919, -0.17630010843276978, 0.364956259727478, 0.21646177768707275, 0.060558777302503586, -0.22912706434726715, -0.25087788701057434, 0.11428575217723846, -0.016163509339094162, 0.016492774710059166, -0.04069734364748001, -0.1955837905406952, 0.03923686593770981, -0.1466009020805359, -0.11065258085727692, -0.16643553972244263, 0.4292163848876953, 0.034406427294015884, 0.3395500183105469, -0.7127445340156555, 0.31731075048446655, 0.013348257169127464, 0.4901387393474579, 0.0011074505746364594, -0.1135634258389473, 0.40020954608917236, -0.0044434815645217896, 0.029512157663702965, -0.0908554419875145, 0.0070830173790454865, 0.03673055022954941, -0.23478329181671143, -0.023054759949445724, -0.20832231640815735, 0.023082846775650978, 0.044296443462371826, -0.20233206450939178, -0.18088889122009277, 0.12028487026691437, 0.36608606576919556, 0.3035641014575958, -0.2465183585882187, 0.10013491660356522, 0.36115631461143494, 0.15507212281227112, -0.1600378304719925, -0.013614237308502197, -0.1009187400341034, -0.2615048587322235, 0.1325131058692932, 0.19011059403419495, 0.07636044174432755, -0.26794174313545227, 0.017768926918506622, -0.008141485042870045, -0.0472756065428257, -0.29945141077041626, 0.20362526178359985, 0.1466943323612213, 0.33885708451271057, 0.038203343749046326, 0.06701286882162094, -0.15704603493213654, 0.019188545644283295, -0.4412866234779358, -0.009562335908412933, 0.04398278892040253, -0.025908056646585464, 0.10543522983789444, 0.2920825481414795, -0.004744991660118103, -0.012405000627040863, 0.22147761285305023, -0.3335598111152649, 0.0013645784929394722, 0.19892962276935577, -0.4233592748641968, -0.007869575172662735, 0.08668633550405502, -0.08370592445135117, -0.2425328642129898, -0.35938727855682373, -0.07385003566741943, -0.16982531547546387, 0.27388957142829895, -0.3238236904144287, 0.21412432193756104, 0.02360721305012703, 0.06770427525043488, -0.06718938052654266, -0.01247408427298069, 0.2321813851594925, 0.0777391567826271, 0.087376169860363, 0.19989874958992004, 0.2175242304801941, -0.4003419280052185, 0.1227586567401886, 0.10803554952144623, 0.17055317759513855, -0.0347842313349247, -0.03831423446536064, 0.07020336389541626, 0.13967664539813995, 0.05158021301031113, 0.14328280091285706, -0.3166077435016632, 0.06583088636398315, 0.1502598226070404, 0.009212489239871502, -0.46133267879486084, 0.17794373631477356, -0.054186806082725525, 0.2923462390899658, -0.013036958873271942, -0.2418069839477539, 0.17587026953697205, -0.13562527298927307, -0.17156557738780975, -0.18931272625923157, 0.11860541254281998, 0.16792228817939758, 0.021120060235261917, 0.10163969546556473, -0.0827874019742012, 0.2969439923763275, 0.10052251070737839, -0.03992817550897598, 0.3730103373527527, -0.32851290702819824, -0.08513645827770233, -0.11109520494937897, -0.08973821997642517, -0.060288481414318085, -0.17437496781349182, -0.152133971452713, -0.2733840048313141 ]
https://github.com/huggingface/datasets/issues/5425
Sort on multiple keys with datasets.Dataset.sort()
Thanks for clarifying. I can prepare a PR to address this issue. This would be my first PR here so I have a few maybe silly questions but: - What is the preferred input type of `sort_keys` for the sort method? A sequence with name, order tuples like pyarrow's `sort_indices` requires? - What about backwards compatability: is it supposed to also accept the old way of calling sort() or should both `column` and `kind` be deprecated? - If `sort_keys` is provided in the same format as for pyarrow's `sort_indices` - i.e. along with order for each column -, `reverse` doesn't make much sense either and should be deprecated as well I assume.
### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add.
112
Sort on multiple keys with datasets.Dataset.sort() ### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add. Thanks for clarifying. I can prepare a PR to address this issue. This would be my first PR here so I have a few maybe silly questions but: - What is the preferred input type of `sort_keys` for the sort method? A sequence with name, order tuples like pyarrow's `sort_indices` requires? - What about backwards compatability: is it supposed to also accept the old way of calling sort() or should both `column` and `kind` be deprecated? - If `sort_keys` is provided in the same format as for pyarrow's `sort_indices` - i.e. along with order for each column -, `reverse` doesn't make much sense either and should be deprecated as well I assume.
[ 0.11508440971374512, 0.1414814293384552, -0.10742218792438507, 0.019289661198854446, 0.3736000657081604, -0.035536449402570724, 0.1930682510137558, 0.1085553765296936, -0.16140493750572205, 0.07203352451324463, -0.02655572071671486, 0.329670786857605, -0.05473189055919647, 0.2641133964061737, 0.13587813079357147, -0.4411252737045288, -0.030827559530735016, -0.07022027671337128, 0.13909590244293213, 0.17251721024513245, -0.23636919260025024, -0.162318617105484, -0.2934401035308838, 0.03620470315217972, 0.09827184677124023, -0.1947716474533081, -0.30932652950286865, 0.01990639790892601, -0.15456072986125946, -0.30483511090278625, 0.09654879570007324, 0.3231630027294159, -0.12646687030792236, 0.34572070837020874, -0.0001010291525744833, -0.2682191729545593, -0.002908147871494293, -0.08610519021749496, -0.07803699374198914, -0.40751028060913086, -0.012565091252326965, -0.028635863214731216, -0.18256494402885437, -0.23598593473434448, -0.07507631182670593, -0.4455348551273346, -0.0678303986787796, -0.1405683010816574, 0.10038645565509796, -0.07277306914329529, 0.3059193193912506, -0.036213748157024384, 0.2537955641746521, 0.1499190777540207, 0.2513507902622223, 0.2584274411201477, -0.14787176251411438, -0.2274741381406784, 0.33267319202423096, 0.15631003677845, 0.016597934067249298, 0.05649891495704651, -0.1828707605600357, -0.40176212787628174, 0.4158712923526764, -0.08173462748527527, -0.1275518834590912, -0.045636460185050964, -0.054986558854579926, 0.09601172804832458, 0.6198346614837646, -0.47250381112098694, -0.5550196170806885, -0.27811112999916077, 0.2507585883140564, -0.1889483481645584, 0.07438962906599045, -0.014656174927949905, 0.12473234534263611, -0.15509171783924103, 0.060941100120544434, -0.08867282420396805, -0.11613878607749939, 0.3015335500240326, -0.06576759368181229, 0.09193678945302963, -0.06161852180957794, -0.07054390758275986, 0.11235207319259644, -0.27803635597229004, 0.05351152643561363, -0.48993486166000366, 0.3796038031578064, 0.21540531516075134, -0.3790266811847687, -0.14721110463142395, 0.28980687260627747, 0.39700809121131897, 0.26405069231987, -0.08439061045646667, -0.28892290592193604, 0.048876479268074036, 0.0001489771530032158, -0.06346040964126587, 0.26871347427368164, 0.41997814178466797, 0.10420791804790497, 0.17649629712104797, 0.3139951229095459, -0.005190435331314802, 0.1674073338508606, 0.015795327723026276, 0.2585209012031555, -0.29551681876182556, 0.1399749517440796, 0.2622676193714142, -0.050014153122901917, -0.056604914367198944, 0.003070281818509102, -0.12703454494476318, 0.16964471340179443, -0.16378387808799744, 0.34063395857810974, 0.33252984285354614, 0.15633682906627655, 0.21514323353767395, -0.25854629278182983, -0.10388636589050293, 0.1370384395122528, 0.23341530561447144, -0.0899268239736557, -0.01291147992014885, -0.08788508176803589, 0.04675415903329849, 0.14488080143928528, -0.24352335929870605, -0.18485891819000244, 0.34122633934020996, 0.22121672332286835, 0.0687561109662056, -0.07104895263910294, -0.1109623908996582, 0.23301541805267334, 0.2117360681295395, -0.28020599484443665, 0.007806852459907532, -0.066462442278862, 0.003529973328113556, -0.2899322807788849, 0.39617687463760376, -0.2202792763710022, -0.41504988074302673, 0.062168799340724945, 0.2093057930469513, -0.08465906977653503, 0.054360512644052505, -0.45190826058387756, 0.1963302195072174, 0.12950117886066437, -0.10769826173782349, 0.059204086661338806, -0.06379695236682892, -0.031188905239105225, -0.3888559341430664, 0.011809440329670906, 0.0011862963438034058, -0.304563969373703, 0.11632455885410309, -0.3383267819881439, 0.09670354425907135, -0.146778404712677, 0.06755552440881729, -0.1715555489063263, 0.15326717495918274, 0.14739973843097687, 0.15430179238319397, 0.4043084979057312, -0.23323209583759308, -0.40688955783843994, 0.07133663445711136, 0.03028634935617447, 0.021001214161515236, -0.022910691797733307, 0.35483449697494507, 0.3057667016983032, -0.27613359689712524, 0.08478738367557526, 0.06765857338905334, -0.16588963568210602, 0.12131500989198685, -0.09375259280204773, -0.1633358597755432, 0.23941409587860107, 0.17339767515659332, 0.16050200164318085, -0.2801947593688965, 0.11018352955579758, -0.3682384192943573, 0.08642001450061798, -0.14763551950454712, -0.20323888957500458, -0.020906515419483185, 0.13282868266105652, 0.2600186765193939, 0.11924194544553757, -0.2695242762565613, -0.26363253593444824, 0.3139159083366394, 0.26491209864616394, -0.2361374795436859, -0.2675234079360962, -0.25598934292793274, -0.009748784825205803, -0.053061798214912415, -0.08265992999076843, 0.316719651222229, 0.21540136635303497, -0.294375479221344, -0.17435741424560547, 0.030263513326644897, -0.2819949686527252, 0.22808562219142914, 0.0059391167014837265, -0.1721276193857193, -0.2664412558078766, 0.34773337841033936, -0.18828244507312775, 0.23203006386756897, 0.05434214323759079, 0.09700416773557663, 0.24736279249191284, 0.04816557094454765, 0.01711561530828476, 0.3514736592769623, 0.1312214881181717, -0.1157289445400238, -0.2071891725063324, 0.34056252241134644, 0.24617041647434235, 0.3197835385799408, 0.03706734627485275, -0.06617505848407745, 0.017951317131519318, 0.07026026397943497, -0.38909947872161865, 0.6458753943443298, -0.3721579313278198, 0.1265915036201477, 0.07284542173147202, 0.0314401239156723, -0.14452846348285675, 0.20152875781059265, -0.0980478972196579, -0.07869640737771988, 0.1064026951789856, 0.07163269817829132, -0.21163025498390198, 0.08074597269296646, -0.3065868020057678, 0.3690219223499298, 0.5265704989433289, -0.0502563938498497, 0.30377641320228577, 0.05419841781258583, 0.32176119089126587, 0.14415523409843445, 0.17108726501464844, 0.3527810573577881, 0.25837287306785583, 0.3882998526096344, -0.12929818034172058, -0.24269986152648926, -0.04309277608990669, 0.030362673103809357, 0.1879819631576538, 0.11976465582847595, -0.17886611819267273, 0.23273178935050964, 0.2505532205104828, 0.28679245710372925, -0.21683013439178467, 0.024510275572538376, 0.2817845046520233, -0.03616667538881302, -0.2998391389846802, -0.02732957899570465, -0.36770397424697876, -0.2291632890701294, 0.18774381279945374, -0.1130378246307373, -0.3030623495578766, -0.15338601171970367, 0.19817008078098297, -0.11714951694011688, -0.06280748546123505, 0.05328842252492905, -0.09441868960857391, 0.2329009771347046, -0.049162834882736206, -0.32399511337280273, -0.09162817150354385, -0.08684877306222916, -0.023998327553272247, 0.12084312736988068, 0.33120793104171753, 0.2058916538953781, 0.6495189070701599, 0.3547457158565521, -0.17644256353378296, -0.22731779515743256, -0.5870054960250854, -0.2313467562198639, -0.2622556686401367, 0.17876480519771576, 0.24443908035755157, -0.2501150369644165, -0.25198110938072205, -0.131455197930336, 0.06356623023748398, 0.05158165097236633, -0.2767827808856964, 0.06570567190647125, -0.057300545275211334, -0.17386242747306824, -0.25528693199157715, -0.1548566222190857, 0.026001321151852608, -0.1893586367368698, 0.13453170657157898, -0.11798807978630066, 0.2630058526992798, -0.1848752498626709, -0.14596043527126312, -0.09769755601882935, 0.10843879729509354, -0.007665576413273811, -0.21957708895206451, 0.007310446351766586, 0.3695621192455292, -0.07268550992012024, -0.16645042598247528, -0.12924699485301971, 0.1019897609949112, -0.4278886318206787, 0.17458851635456085, -0.08140142261981964, -0.355459988117218, -0.12032471597194672, 0.41873955726623535, 0.09981890022754669, 0.25876161456108093, 0.4704756736755371, 0.11203569918870926, -0.04739154502749443, -0.04186846688389778, -0.3975350260734558, -0.15725061297416687, 0.28825968503952026, 0.1669943779706955, 0.07038506865501404, 0.4335706830024719, 0.42984920740127563, 0.4263609051704407, -0.26227349042892456, 0.1566755175590515, 0.11778482794761658, 0.3368813395500183, 0.14592444896697998, -0.09603681415319443, -0.33213353157043457, 0.15977028012275696, 0.02160590887069702, 0.30238449573516846, 0.11918865144252777, 0.29717203974723816, 0.038800109177827835, -0.04559968039393425, -0.11868350207805634, 0.002897486090660095, -0.20769242942333221, 0.05769997090101242, -0.10488401353359222, 0.2388911247253418, 0.005315236747264862, 0.07728234678506851, -0.3283247947692871, -0.12289651483297348, -0.04174239933490753, 0.034853942692279816, -0.04218185693025589, -0.1561793088912964, -0.16836243867874146, 0.07293661683797836, -0.49173277616500854, 0.09106222540140152, 0.3532208800315857, -0.09191242605447769, 0.2503417134284973, 0.033721789717674255, 0.002854451537132263, -0.36582183837890625, 0.6542696356773376, -0.0566595122218132, -0.07631120830774307, 0.0957936942577362, -0.10552974045276642, -0.3675638735294342, 0.2703683078289032, 0.095590740442276, 0.20145808160305023, -0.4304664731025696, 0.43240728974342346, -0.4258144795894623, -0.14716459810733795, -0.1731121838092804, 0.06742259114980698, -0.0487951934337616, -0.49091836810112, -0.2169102132320404, -0.2659091353416443, 0.04996291548013687, 0.08582060784101486, 0.08162763714790344, -0.0995645821094513, -0.43373775482177734, 0.038269881159067154, 0.013162951916456223, -0.031114645302295685, 0.008662812411785126, -0.19478610157966614, 0.18618717789649963, 0.06575746834278107, 0.0657876580953598, 0.41475364565849304, 0.025174792855978012, 0.0020443182438611984, 0.13417038321495056, -0.031246844679117203, -0.06964355707168579, -0.2892570197582245, -0.02918900176882744, -0.047606922686100006, 0.18930098414421082, -0.13854162395000458, 0.1852303147315979, -0.12454189360141754, -0.1033598780632019, 0.038743551820516586, -0.48833590745925903, 0.3443390429019928, -0.16163839399814606, -0.3764437735080719, -0.4342735707759857, 0.5988588333129883, -0.03459789603948593, -0.3277847170829773, 0.3303103446960449, 0.6584879159927368, -0.19656941294670105, 0.1019759401679039, 0.40821802616119385, 0.7604034543037415, -0.3437453508377075, 0.11390198767185211, 0.22600054740905762, -0.27618008852005005, 0.3656846582889557, 0.028312183916568756, 0.2659456133842468, -0.40192848443984985, -0.3564431071281433, -0.038912251591682434, 0.00937763974070549, 0.06408891826868057, 0.14006651937961578, -0.3346027135848999, 0.2332141101360321, -0.08958624303340912, -0.020095501095056534, -0.05708828568458557, 0.20600950717926025, -0.017122792080044746, -0.2009446918964386, -0.42422133684158325, 0.20173002779483795, 0.08374845236539841, -0.40028318762779236, -0.24713250994682312, 0.16246867179870605, 0.36028334498405457, -0.14833016693592072, -0.1397957056760788, -0.2803710997104645, -0.2233165204524994, 0.1852818876504898, -0.04727977141737938, -0.09155885875225067, 0.5085038542747498, 0.3372092545032501, 0.316994309425354, -0.003952004015445709, 0.13111023604869843, 0.1327272206544876, 0.14252200722694397, 0.4522070288658142, 0.039142705500125885, -0.287894070148468, 0.20083297789096832, -0.04451528936624527, -0.0870141088962555, -0.18830332159996033, 0.37040671706199646, -0.5875632762908936, -0.4114084243774414, 0.11749415099620819, -0.026558391749858856, 0.04451054334640503, 0.02458987757563591, 0.20784811675548553, 0.1549685001373291, -0.2046385556459427, 0.2064991295337677, 0.0970887839794159, 0.10678833723068237, 0.6417056918144226, -0.5009814500808716, 0.286845862865448, 0.05375326797366142, 0.3024345338344574, -0.007548071444034576, 0.05754627287387848, -0.04083050787448883, 0.2934412360191345, -0.4306712746620178, -0.18124708533287048, 0.045923180878162384, 0.04442548751831055, 0.03688916563987732, 0.19825293123722076, -0.11347302794456482, 0.09638433158397675, 0.19298462569713593, 0.26848313212394714, 0.05388849228620529, -0.2324105203151703, 0.01857795938849449, -0.020844105631113052, 0.004302948713302612, 0.15474969148635864, 0.39791029691696167, 0.09205865859985352, -0.12054216861724854, -0.004346102476119995, 0.005378467962145805, 0.058140821754932404, -0.4140346944332123, 0.21069198846817017, 0.03268410265445709, 0.10365414619445801, 0.18704025447368622, 0.014680672436952591, -0.12485162168741226, -0.10736553370952606, 0.18463881313800812, -0.16597391664981842, -0.07132510840892792, -0.35081273317337036, -0.23492977023124695, 0.019210174679756165, -0.0922871008515358, 0.21282772719860077, 0.04459419101476669, -0.4949305057525635, -0.2861168086528778, -0.05860739201307297, 0.06419162452220917, 0.5148316025733948, -0.14203551411628723, 0.2505623996257782, 0.10105213522911072, -0.004062950611114502, 0.14579810202121735, 0.26109135150909424, -0.03270552307367325, -0.19081713259220123, 0.27275869250297546, 0.48007550835609436, -0.0667918398976326, 0.07474924623966217, -0.2105560600757599, 0.20304229855537415, 0.051923446357250214, 0.08157631754875183, 0.3003738224506378, -0.1289118081331253, -0.2609405815601349, 0.36903488636016846, 0.4067746102809906, 0.1925015151500702, -0.09186235070228577, -0.12744222581386566, 0.15746137499809265, 0.2570846378803253, -0.4154297113418579, -0.3256571590900421, -0.01795237511396408, 0.2782727777957916, 0.04789941385388374, 0.18888339400291443, -0.12150983512401581, 0.126006618142128, -0.013705797493457794, -0.019322257488965988, 0.1753113567829132, -0.24085839092731476, 0.31285858154296875, 0.38020646572113037, 0.1168297678232193, -0.19654662907123566, 0.2545093297958374, -0.12450656294822693, -0.21734949946403503, 0.30472254753112793, 0.10527871549129486, 0.3061869740486145, 0.15500310063362122, -0.06684820353984833, 0.22955107688903809, -0.04333037883043289, 0.31677767634391785, 0.19813449680805206, -0.017686501145362854, -0.07354182749986649, 0.29748278856277466, 0.20789507031440735, 0.03276243433356285, -0.3035888373851776, -0.1795627921819687, 0.0603637769818306, -0.0343526154756546, 0.02469884604215622, -0.043765999376773834, -0.21871811151504517, 0.04756829887628555, -0.13704659044742584, -0.25035813450813293, -0.06767705082893372, 0.4147539734840393, 0.1522214412689209, 0.30536946654319763, -0.7260331511497498, 0.22171786427497864, -0.03389981389045715, 0.6598386168479919, 0.02042953297495842, -0.18132995069026947, 0.32967713475227356, -0.10034419596195221, 0.009836861863732338, -0.055059075355529785, 0.023869287222623825, 0.13416554033756256, -0.181284561753273, 0.03373789042234421, -0.18295948207378387, 0.06615851819515228, 0.17925328016281128, -0.11139927804470062, -0.15149617195129395, 0.15908917784690857, 0.3211199939250946, 0.18552044034004211, -0.12033124268054962, 0.2099967747926712, 0.18785999715328217, 0.219784677028656, -0.297733336687088, 0.3341236710548401, -0.07968313992023468, -0.2886000871658325, 0.17634594440460205, 0.21051916480064392, 0.08880382031202316, -0.3121345639228821, 0.05862995237112045, -0.06896864622831345, -0.0837247371673584, -0.304479718208313, 0.17073629796504974, 0.18349385261535645, 0.2578624188899994, 0.19906307756900787, 0.04510589689016342, -0.15043778717517853, 0.0009976178407669067, -0.6283462047576904, -0.1627398133277893, 0.22587935626506805, 0.06513489037752151, 0.2098294496536255, 0.20371530950069427, -0.005538448691368103, -0.07211504876613617, 0.12557268142700195, -0.5618959665298462, -0.01986083760857582, 0.0821695625782013, -0.3475252091884613, -0.03846370056271553, 0.13074524700641632, -0.13799650967121124, -0.259732723236084, -0.241509348154068, -0.12338326871395111, -0.0007984023541212082, 0.15597262978553772, -0.36279869079589844, 0.29307645559310913, -0.08343374729156494, 0.0006547421216964722, -0.03951801359653473, 0.1429666131734848, 0.07229595631361008, 0.15837028622627258, 0.027965592220425606, 0.1550857573747635, 0.23783057928085327, -0.34580767154693604, 0.04566193372011185, -0.052957747131586075, 0.1916062831878662, -0.16625402867794037, -0.19750942289829254, -0.03336778283119202, 0.1221901997923851, 0.010089877992868423, 0.10390760004520416, -0.5222961902618408, 0.0800892561674118, 0.13587069511413574, -0.12039424479007721, -0.3744441270828247, 0.28085944056510925, -0.06943343579769135, 0.3206285536289215, -0.026850588619709015, -0.0711190402507782, 0.2103533148765564, -0.20586740970611572, -0.178484246134758, -0.14380328357219696, 0.0167878195643425, 0.2263161540031433, 0.01075194962322712, -0.030870627611875534, -0.16561466455459595, 0.3038690388202667, 0.08551639318466187, -0.14178575575351715, 0.47822195291519165, -0.2865985035896301, -0.22520701587200165, -0.14964862167835236, -0.1697644144296646, -0.04534658044576645, -0.17247124016284943, 0.025530744343996048, -0.1107303574681282 ]
https://github.com/huggingface/datasets/issues/5425
Sort on multiple keys with datasets.Dataset.sort()
I think we can have the following signature: ```python def sort( self, column_names: Union[str, Sequence[str]], reverse: Union[bool, Sequence[bool]] = False, kind="deprecated", null_placement: str = "last", keep_in_memory: bool = False, load_from_cache_file: bool = True, indices_cache_file_name: Optional[str] = None, writer_batch_size: Optional[int] = 1000, new_fingerprint: Optional[str] = None, ) -> "Dataset": ``` So we should: * rename`column` to `column_names`. `column` is a positional argument, so it's OK to rename it (not marked as positional-only with "/", but still should be fine) * deprecate `kind` * keep `reverse` instead of introducing `sort_keys`, but we should allow passing a list of booleans that defines the sort order of each column from `column_names` to it (`reverse = False` would be equal to `[False] * len(column_names)` and `reverse = True` to `[True] * len(column_names)`)
### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add.
127
Sort on multiple keys with datasets.Dataset.sort() ### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add. I think we can have the following signature: ```python def sort( self, column_names: Union[str, Sequence[str]], reverse: Union[bool, Sequence[bool]] = False, kind="deprecated", null_placement: str = "last", keep_in_memory: bool = False, load_from_cache_file: bool = True, indices_cache_file_name: Optional[str] = None, writer_batch_size: Optional[int] = 1000, new_fingerprint: Optional[str] = None, ) -> "Dataset": ``` So we should: * rename`column` to `column_names`. `column` is a positional argument, so it's OK to rename it (not marked as positional-only with "/", but still should be fine) * deprecate `kind` * keep `reverse` instead of introducing `sort_keys`, but we should allow passing a list of booleans that defines the sort order of each column from `column_names` to it (`reverse = False` would be equal to `[False] * len(column_names)` and `reverse = True` to `[True] * len(column_names)`)
[ 0.06601080298423767, 0.13722801208496094, -0.16857987642288208, -0.07267683744430542, 0.35078465938568115, 0.057556502521038055, 0.17645317316055298, 0.23617905378341675, -0.028036050498485565, 0.040990330278873444, -0.07484530657529831, 0.34253013134002686, -0.10433489829301834, 0.24846886098384857, 0.06544407457113266, -0.2928808033466339, -0.0917656347155571, -0.025217831134796143, 0.09921102970838547, 0.12063322961330414, -0.26335400342941284, -0.0971217229962349, -0.2238379269838333, 0.006043948233127594, 0.15091104805469513, -0.1978222280740738, -0.270668089389801, 0.024467650800943375, -0.10685339570045471, -0.2816636562347412, -0.029335040599107742, 0.4193302094936371, -0.22022689878940582, 0.3539011776447296, -0.00009601497004041448, -0.2351515293121338, -0.09236043691635132, -0.07815005630254745, -0.09365463256835938, -0.3709004521369934, -0.025647679343819618, -0.10977080464363098, -0.2853444218635559, -0.2710873484611511, -0.17869478464126587, -0.40557751059532166, -0.09600013494491577, -0.23833124339580536, 0.13928347826004028, 0.04526763781905174, 0.34860721230506897, -0.047602906823158264, 0.09031759202480316, 0.12264475226402283, 0.09424196183681488, 0.18319998681545258, -0.1361638307571411, -0.27631011605262756, 0.1384265422821045, 0.03912685811519623, 0.0746922418475151, 0.09253491461277008, -0.1720665544271469, -0.37613770365715027, 0.27298521995544434, -0.01902647316455841, -0.09094514697790146, 0.03892194479703903, 0.05931656435132027, 0.10603251308202744, 0.3995950520038605, -0.4760068953037262, -0.5310515761375427, -0.2570120394229889, 0.2759297490119934, -0.21971140801906586, 0.10109807550907135, 0.017522012814879417, 0.15303288400173187, -0.15120002627372742, 0.06095978245139122, -0.020834149792790413, -0.07407087087631226, 0.2351023405790329, -0.06098146364092827, 0.14733383059501648, -0.06612245738506317, -0.040075719356536865, 0.18912507593631744, -0.3138594627380371, -0.08856464922428131, -0.47807538509368896, 0.358535498380661, 0.2193998247385025, -0.3293645679950714, -0.09960688650608063, 0.2907364070415497, 0.31173422932624817, 0.18449077010154724, -0.10545384883880615, -0.2942044138908386, 0.02650868520140648, 0.07260540127754211, -0.031227044761180878, 0.19177640974521637, 0.32116585969924927, 0.13114967942237854, 0.22413671016693115, 0.2694000005722046, 0.02671918086707592, 0.05426347628235817, 0.011711055412888527, 0.22486363351345062, -0.31300896406173706, 0.08065840601921082, 0.2425357699394226, -0.0055360738188028336, -0.03441303223371506, -0.03246692568063736, -0.06319499015808105, 0.2210133969783783, -0.05712233856320381, 0.33036720752716064, 0.4023224413394928, 0.10932744294404984, 0.17836534976959229, -0.20641598105430603, -0.07525832206010818, 0.1672055572271347, 0.2903946042060852, -0.16743463277816772, 0.010604656301438808, -0.0035235323011875153, 0.054823219776153564, 0.1270381659269333, -0.1855289489030838, -0.13743551075458527, 0.2690083682537079, 0.20054282248020172, -0.025235533714294434, 0.044476427137851715, -0.11678063869476318, 0.16214147210121155, 0.23964163661003113, -0.14688800275325775, 0.039357930421829224, -0.001797318458557129, -0.09839193522930145, -0.33435341715812683, 0.2819586396217346, -0.17772862315177917, -0.3570612967014313, 0.07976464927196503, 0.3012324273586273, -0.08231960237026215, 0.12458185851573944, -0.45057907700538635, 0.15221677720546722, 0.26633894443511963, -0.016590474173426628, 0.026371903717517853, -0.016662191599607468, -0.1769189089536667, -0.2817629873752594, 0.060063548386096954, -0.04222288727760315, -0.1883220076560974, 0.03107205033302307, -0.3299180567264557, 0.17336151003837585, -0.18007251620292664, 0.007895000278949738, -0.11233336478471756, 0.11506083607673645, 0.026478515937924385, 0.12618644535541534, 0.39435043931007385, -0.3425137400627136, -0.41458240151405334, 0.09273190051317215, -0.06351876258850098, 0.028827128931879997, -0.00904855877161026, 0.2844226658344269, 0.2543224096298218, -0.32546451687812805, 0.047843631356954575, 0.10617706179618835, -0.06758532673120499, 0.202781543135643, -0.055249378085136414, -0.16932031512260437, 0.14149437844753265, 0.09597514569759369, 0.2114996612071991, -0.2177819311618805, 0.019342437386512756, -0.2708624601364136, 0.10346294939517975, -0.1433188021183014, -0.21987363696098328, 0.10908142477273941, 0.09718915075063705, 0.21565745770931244, 0.1441969871520996, -0.25050774216651917, -0.18587177991867065, 0.3143303692340851, 0.3619763255119324, -0.243061363697052, -0.29686683416366577, -0.33219707012176514, -0.055699508637189865, -0.13616332411766052, -0.1904231756925583, 0.29550907015800476, 0.300534188747406, -0.0967445969581604, -0.16620124876499176, 0.014727547764778137, -0.22547025978565216, 0.26631078124046326, -0.025414008647203445, -0.19993264973163605, -0.23614774644374847, 0.3188948929309845, -0.1563349813222885, 0.24189144372940063, 0.0431380569934845, 0.10887500643730164, 0.2049388289451599, 0.13521423935890198, 0.008458416908979416, 0.30587077140808105, 0.11885109543800354, -0.05302019417285919, -0.11760427802801132, 0.29920434951782227, 0.09917815774679184, 0.3487793803215027, -0.010639877989888191, -0.02705269306898117, -0.04269584268331528, 0.12729623913764954, -0.3673487901687622, 0.6699398159980774, -0.2519114911556244, 0.2120075821876526, 0.11158476769924164, 0.03621520847082138, -0.044920675456523895, 0.16811655461788177, -0.07462210953235626, -0.16729633510112762, 0.16494573652744293, 0.036598481237888336, -0.09895500540733337, 0.10248179733753204, -0.2473757266998291, 0.36343440413475037, 0.5126040577888489, -0.019394222646951675, 0.3088267743587494, 0.03485532104969025, 0.3027573525905609, 0.17163297533988953, 0.09320711344480515, 0.41148635745048523, 0.21616432070732117, 0.38360413908958435, -0.11517991125583649, -0.17293798923492432, -0.06223820894956589, 0.05887966603040695, 0.1292266994714737, 0.10232825577259064, -0.2516378164291382, 0.3304332196712494, 0.21357478201389313, 0.16990679502487183, -0.3040783703327179, -0.0647013857960701, 0.30043095350265503, 0.007964999414980412, -0.3074726462364197, -0.0029647089540958405, -0.2825991213321686, -0.1438010185956955, 0.08012733608484268, -0.08820487558841705, -0.20905619859695435, -0.2497282475233078, 0.19078531861305237, -0.055039335042238235, -0.11364966630935669, 0.09362222999334335, -0.16306056082248688, 0.24316121637821198, -0.010220659896731377, -0.3629325330257416, 0.02212192863225937, -0.0961487665772438, 0.083209328353405, 0.18025946617126465, 0.2447955161333084, 0.20676814019680023, 0.5915291905403137, 0.2786177396774292, -0.17420677840709686, -0.1418278068304062, -0.569832980632782, -0.25951889157295227, -0.23232679069042206, 0.11319062113761902, 0.2393285483121872, -0.17783521115779877, -0.17746640741825104, -0.17284981906414032, 0.0856134444475174, 0.1515546590089798, -0.2757357358932495, 0.08245515078306198, 0.030050378292798996, -0.14902624487876892, -0.26259100437164307, -0.12605121731758118, 0.058803312480449677, -0.2569965720176697, 0.0819091871380806, -0.1132030338048935, 0.29145681858062744, -0.17570005357265472, -0.19274981319904327, -0.0775788277387619, 0.1231585294008255, 0.04787067323923111, -0.266856849193573, -0.04151500016450882, 0.3488615155220032, -0.14558091759681702, -0.054642174392938614, -0.12221601605415344, 0.03009297326207161, -0.29573896527290344, 0.05104460567235947, -0.054768599569797516, -0.4392477571964264, -0.11888685822486877, 0.2752291262149811, 0.047715816646814346, 0.15226133167743683, 0.347979336977005, 0.15017913281917572, -0.09779871255159378, -0.0956912487745285, -0.25692254304885864, -0.14389339089393616, 0.2154315710067749, 0.12883830070495605, -0.055700547993183136, 0.4659113883972168, 0.40294724702835083, 0.34432101249694824, -0.14963549375534058, 0.13361655175685883, 0.09984491765499115, 0.1951272338628769, 0.12740862369537354, -0.038687437772750854, -0.37230029702186584, 0.1414908468723297, 0.18320351839065552, 0.3325044512748718, 0.12901508808135986, 0.2972586750984192, 0.2083151489496231, 0.052721522748470306, -0.014155156910419464, -0.056349173188209534, -0.2504626512527466, 0.034369293600320816, -0.11634482443332672, 0.13054858148097992, -0.0001965407282114029, 0.07581404596567154, -0.34168311953544617, -0.14055541157722473, -0.021188797429203987, 0.09454209357500076, -0.1516837775707245, -0.13492776453495026, -0.19242431223392487, 0.06312096863985062, -0.49050647020339966, 0.05483403429389, 0.28001147508621216, -0.09938365966081619, 0.2294073849916458, 0.02561851590871811, -0.09737153351306915, -0.36200714111328125, 0.6443302035331726, -0.1619456708431244, -0.0037478506565093994, 0.07926289737224579, -0.15519461035728455, -0.4157562851905823, 0.22847993671894073, 0.09545710682868958, 0.1581067442893982, -0.4183216691017151, 0.4916943907737732, -0.36470749974250793, -0.11897556483745575, -0.14309373497962952, 0.07449249923229218, -0.07084496319293976, -0.42642784118652344, -0.34462788701057434, -0.26482683420181274, -0.016746941953897476, 0.11200832575559616, 0.03990147262811661, -0.04033825919032097, -0.370229035615921, 0.03167993202805519, -0.01183481328189373, -0.1518586277961731, 0.09080750495195389, -0.12967774271965027, 0.28713399171829224, 0.16853156685829163, 0.11251761019229889, 0.3497409224510193, -0.0015166141092777252, -0.0774700939655304, 0.18506315350532532, -0.12879760563373566, -0.17415529489517212, -0.33286646008491516, -0.10046524554491043, -0.11949620395898819, 0.13524793088436127, -0.17394642531871796, 0.22059977054595947, -0.1271659880876541, 0.02504701167345047, -0.007466218434274197, -0.23503872752189636, 0.2671557664871216, -0.09924891591072083, -0.37379148602485657, -0.4606624245643616, 0.5504596829414368, 0.04823784902691841, -0.2787731885910034, 0.3837152421474457, 0.5659656524658203, -0.267521470785141, 0.09122849255800247, 0.26462841033935547, 0.6384764313697815, -0.3386681079864502, 0.049287520349025726, 0.16181695461273193, -0.31071949005126953, 0.3469823896884918, 0.03427717834711075, 0.28297072649002075, -0.4158225357532501, -0.3728437125682831, -0.012208782136440277, 0.042119305580854416, -0.009507648646831512, 0.2143482118844986, -0.33455777168273926, 0.22619588673114777, -0.18609490990638733, 0.02847708947956562, -0.15434570610523224, 0.23393383622169495, -0.06956609338521957, -0.2094995528459549, -0.3869783282279968, 0.25530433654785156, 0.053711552172899246, -0.3263757526874542, -0.09740344434976578, 0.25881415605545044, 0.33307045698165894, -0.16489802300930023, -0.11172381788492203, -0.2006552517414093, -0.13140006363391876, 0.20727017521858215, -0.1789359748363495, 0.003547854721546173, 0.33205583691596985, 0.28375348448753357, 0.2751121520996094, 0.17506203055381775, 0.162906676530838, 0.15205742418766022, 0.12548446655273438, 0.5286145806312561, 0.06421440094709396, -0.2783842980861664, 0.0720917209982872, 0.014691613614559174, -0.07492156326770782, -0.21629172563552856, 0.40226274728775024, -0.49101871252059937, -0.32780390977859497, 0.15310879051685333, -0.04875299334526062, 0.0395367331802845, -0.036807529628276825, 0.19487911462783813, 0.09108191728591919, -0.22770892083644867, 0.2689194977283478, 0.03613196313381195, 0.041760627180337906, 0.5617213249206543, -0.5013455748558044, 0.14217306673526764, 0.09485219419002533, 0.3960340917110443, 0.01865990087389946, 0.07572910934686661, 0.04599619656801224, 0.18756256997585297, -0.41381627321243286, -0.23815366625785828, 0.016453616321086884, 0.11534341424703598, 0.012319274246692657, 0.21763335168361664, -0.12241580337285995, 0.005800321698188782, 0.2746564447879791, 0.2068643420934677, -0.059098705649375916, -0.13359421491622925, -0.0022785738110542297, -0.06985851377248764, 0.02655685506761074, 0.12159153819084167, 0.40974247455596924, 0.16254913806915283, -0.06172667443752289, 0.0661613717675209, -0.08730348199605942, 0.11237417906522751, -0.4680446982383728, 0.13908861577510834, -0.03504220023751259, 0.10585852712392807, 0.24455516040325165, 0.07164691388607025, -0.05827905982732773, -0.0839613527059555, 0.2856977880001068, -0.13771815598011017, -0.07312050461769104, -0.4329225718975067, -0.23859642446041107, -0.020205363631248474, -0.12046640366315842, 0.2866227924823761, 0.05526455119252205, -0.4260447025299072, -0.23165616393089294, -0.11364226788282394, 0.08719870448112488, 0.44653239846229553, -0.09187372028827667, 0.2659696638584137, -0.002167675644159317, -0.10733922570943832, 0.21379537880420685, 0.12654954195022583, -0.04500541090965271, -0.274958074092865, 0.24634529650211334, 0.4635167717933655, -0.03325360268354416, 0.13160954415798187, -0.19466106593608856, 0.15746790170669556, 0.06420622766017914, 0.07340605556964874, 0.18293461203575134, -0.12671685218811035, -0.2403050810098648, 0.38238459825515747, 0.4172818064689636, 0.21933165192604065, -0.10728896409273148, -0.18339109420776367, 0.08854127675294876, 0.3263387382030487, -0.42736542224884033, -0.3462463617324829, 0.011234164237976074, 0.2699275314807892, 0.20330825448036194, 0.20734231173992157, -0.22740350663661957, 0.07152709364891052, -0.04223240166902542, -0.012456666678190231, 0.1970576047897339, -0.26564180850982666, 0.3614926040172577, 0.3660675883293152, 0.12183597683906555, -0.18377022445201874, 0.09959492832422256, -0.14899574220180511, -0.1367199420928955, 0.39605873823165894, 0.14292848110198975, 0.30575600266456604, 0.15255126357078552, -0.06290218234062195, 0.1942044496536255, -0.05555947124958038, 0.3062182068824768, 0.1808094084262848, -0.09781515598297119, -0.01278870552778244, 0.3480762839317322, 0.141377791762352, 0.0290604867041111, -0.28274211287498474, -0.20838662981987, 0.11217734217643738, -0.06903614848852158, -0.04329356923699379, -0.0031928643584251404, -0.13965968787670135, -0.0028578713536262512, -0.14481668174266815, -0.08350984752178192, -0.08834391832351685, 0.3524455726146698, 0.07935705035924911, 0.327657550573349, -0.6709925532341003, 0.192915141582489, 0.05786239728331566, 0.5856942534446716, -0.057889342308044434, -0.15144553780555725, 0.3779785633087158, -0.04513222724199295, 0.039310432970523834, -0.15204426646232605, 0.00999869778752327, 0.06363946199417114, -0.06572410464286804, 0.05967893823981285, -0.07719865441322327, 0.05318748950958252, 0.03181053698062897, -0.17557229101657867, -0.1896161437034607, 0.10663628578186035, 0.3931382894515991, 0.28678378462791443, -0.22452959418296814, 0.14583052694797516, 0.19112251698970795, 0.14467929303646088, -0.16545288264751434, 0.3657701015472412, -0.029537834227085114, -0.25425809621810913, 0.09436950832605362, 0.22155117988586426, 0.016249388456344604, -0.34416839480400085, 0.06781713664531708, -0.02725346013903618, -0.027522921562194824, -0.3457082509994507, 0.20017802715301514, 0.21956570446491241, 0.21305860579013824, 0.15329383313655853, 0.024323493242263794, -0.16294468939304352, -0.022717952728271484, -0.5278210043907166, -0.06517872959375381, 0.08515720814466476, 0.014244349673390388, 0.08158650994300842, 0.21841396391391754, -0.05607111006975174, -0.10831482708454132, 0.17131821811199188, -0.413530558347702, -0.0065358346328139305, 0.012703947722911835, -0.4070926010608673, -0.04633842036128044, 0.12384063005447388, -0.11464312672615051, -0.14087164402008057, -0.3535115420818329, -0.21741746366024017, -0.03454352542757988, 0.2350425124168396, -0.31654417514801025, 0.2418673038482666, -0.09710107743740082, -0.08470644056797028, -0.022258922457695007, 0.021529236808419228, 0.13342273235321045, 0.04423413425683975, 0.021948670968413353, 0.1227860227227211, 0.17825600504875183, -0.4219173789024353, 0.10203032940626144, 0.035764001309871674, 0.23397710919380188, -0.15221869945526123, -0.10512210428714752, -0.024512270465493202, 0.010055226273834705, 0.031684450805187225, 0.05311959981918335, -0.43320226669311523, 0.12572267651557922, 0.13826021552085876, 0.008535320870578289, -0.4293019771575928, 0.25481998920440674, -0.03750082850456238, 0.36111944913864136, 0.08710989356040955, -0.21607379615306854, 0.2610733211040497, -0.14621466398239136, -0.1779942363500595, -0.08709164708852768, 0.1647871434688568, 0.1453879177570343, 0.054163411259651184, -0.06834878027439117, -0.1278306543827057, 0.3011587858200073, 0.1576593518257141, -0.09931261837482452, 0.4272516369819641, -0.26923418045043945, -0.08134037256240845, -0.10685350000858307, -0.21427205204963684, -0.05719057470560074, -0.19905976951122284, 0.004720218479633331, -0.18894939124584198 ]
https://github.com/huggingface/datasets/issues/5425
Sort on multiple keys with datasets.Dataset.sort()
I am pretty much done with the PR. Just one clarification: `Sequence` in `arrow_dataset.py` is a custom dataclass from `features.py` instead of the `type.hinting` class `Sequence` from Python. Do you suggest using that custom `Sequence` class somehow ? Otherwise signature currently reads instead: ```Python def sort( self, column_names: Union[str, List[str]], reverse: Union[bool, List[bool]] = False, kind = "deprecated", null_placement: str = "last", keep_in_memory: bool = False, load_from_cache_file: bool = True, indices_cache_file_name: Optional[str] = None, writer_batch_size: Optional[int] = 1000, new_fingerprint: Optional[str] = None, ) ``` Also, to maintain backwards compatibility, I added conditionals for `null_placement`, because pyarrow's `null_placement` only accepts `at_start` and `at_end`, and not `last` and `first`. If that is all good, I think I can open the PR.
### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add.
119
Sort on multiple keys with datasets.Dataset.sort() ### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add. I am pretty much done with the PR. Just one clarification: `Sequence` in `arrow_dataset.py` is a custom dataclass from `features.py` instead of the `type.hinting` class `Sequence` from Python. Do you suggest using that custom `Sequence` class somehow ? Otherwise signature currently reads instead: ```Python def sort( self, column_names: Union[str, List[str]], reverse: Union[bool, List[bool]] = False, kind = "deprecated", null_placement: str = "last", keep_in_memory: bool = False, load_from_cache_file: bool = True, indices_cache_file_name: Optional[str] = None, writer_batch_size: Optional[int] = 1000, new_fingerprint: Optional[str] = None, ) ``` Also, to maintain backwards compatibility, I added conditionals for `null_placement`, because pyarrow's `null_placement` only accepts `at_start` and `at_end`, and not `last` and `first`. If that is all good, I think I can open the PR.
[ 0.05497751012444496, 0.10999909043312073, -0.16999320685863495, 0.010580737143754959, 0.25775980949401855, -0.014488905668258667, 0.15814895927906036, 0.20468533039093018, -0.06443106383085251, -0.013975679874420166, 0.06072346121072769, 0.4184730350971222, -0.13011512160301208, 0.2602280378341675, 0.006435425020754337, -0.35786452889442444, -0.0990518257021904, 0.01770329475402832, 0.10534410923719406, 0.1569395214319229, -0.2222784012556076, -0.07890869677066803, -0.25345778465270996, 0.018597185611724854, 0.09499480575323105, -0.1996302306652069, -0.2139613926410675, -0.06969860941171646, -0.08624055981636047, -0.43726199865341187, 0.0697624459862709, 0.34188252687454224, -0.18570232391357422, 0.28282371163368225, -0.0000977161034825258, -0.2952650785446167, 0.0312977209687233, -0.012311961501836777, -0.10208982229232788, -0.30029457807540894, -0.07760581374168396, -0.10655456781387329, -0.10120540857315063, -0.22631841897964478, -0.1275625079870224, -0.5327631831169128, -0.17241379618644714, -0.32776719331741333, 0.2723057270050049, 0.0378379262983799, 0.33961251378059387, -0.027442310005426407, 0.16407303512096405, 0.12439138442277908, 0.237906813621521, 0.15608379244804382, -0.15092654526233673, -0.2555827796459198, 0.229021817445755, 0.05524328351020813, 0.0033048614859580994, 0.15819577872753143, -0.12909157574176788, -0.3489537239074707, 0.39298105239868164, -0.09230323135852814, -0.055839456617832184, -0.029962770640850067, 0.005433328449726105, 0.14076782763004303, 0.4907858669757843, -0.4070242643356323, -0.46306106448173523, -0.31255584955215454, 0.24002882838249207, -0.2657262980937958, 0.097542405128479, -0.004969147965312004, 0.11052341759204865, -0.1788879781961441, 0.15739977359771729, 0.02080671861767769, -0.1495966613292694, 0.26791080832481384, -0.012879669666290283, 0.12541785836219788, -0.07232831418514252, -0.012000732123851776, 0.19060271978378296, -0.3143424391746521, 0.010931484401226044, -0.37046194076538086, 0.28089267015457153, 0.27320486307144165, -0.4130818545818329, -0.10155083239078522, 0.2776185870170593, 0.17194753885269165, 0.1669703722000122, 0.14829963445663452, -0.2554701268672943, 0.10739248245954514, 0.03521038964390755, -0.11363067477941513, 0.2181670218706131, 0.41524648666381836, 0.19615978002548218, 0.21908442676067352, 0.16586008667945862, 0.06250499933958054, 0.09598246216773987, 0.05224335938692093, 0.14752933382987976, -0.4139179587364197, 0.16796046495437622, 0.2821275591850281, -0.038917191326618195, -0.03436017781496048, 0.026591463014483452, 0.00551953399553895, 0.1778392791748047, -0.06975679844617844, 0.28466302156448364, 0.34908872842788696, 0.1618829220533371, 0.14543108642101288, -0.21300257742404938, -0.03855995088815689, 0.17607203125953674, 0.3515261709690094, -0.13512840867042542, -0.1153385192155838, -0.05967243015766144, 0.07787618786096573, 0.08313928544521332, -0.13399535417556763, -0.12669488787651062, 0.22612085938453674, 0.10510976612567902, -0.03414023667573929, 0.09643827378749847, -0.1064818799495697, 0.2068956047296524, 0.20116937160491943, -0.2901492118835449, 0.15914011001586914, -0.01750776916742325, 0.1070195883512497, -0.2622755765914917, 0.2381725311279297, -0.20850977301597595, -0.3836659789085388, 0.13026492297649384, 0.2855531871318817, -0.030598599463701248, 0.14178943634033203, -0.40189799666404724, 0.09019175171852112, 0.250916451215744, -0.04830818623304367, 0.08472520112991333, -0.018345631659030914, -0.13460944592952728, -0.3118690252304077, 0.019631745293736458, 0.0024019479751586914, -0.17259415984153748, 0.0726616233587265, -0.3476082980632782, 0.17937026917934418, -0.17224690318107605, -0.022136393934488297, -0.1884678602218628, 0.01670730859041214, 0.031858302652835846, 0.16707003116607666, 0.4387527108192444, -0.30366092920303345, -0.4939928948879242, 0.12010522186756134, -0.08885116875171661, -0.021459897980093956, -0.01241796463727951, 0.3644885718822479, 0.3269937038421631, -0.26479560136795044, 0.020601246505975723, 0.1466839760541916, 0.016528796404600143, 0.1300377994775772, -0.037860408425331116, -0.2098212093114853, 0.11083821207284927, 0.05221458151936531, 0.1149393767118454, -0.381818562746048, 0.03291846066713333, -0.4552055895328522, 0.17826950550079346, -0.12057200074195862, -0.13731534779071808, 0.1828690618276596, 0.10108506679534912, 0.211003839969635, 0.16861286759376526, -0.271467000246048, -0.2207185924053192, 0.3250892758369446, 0.2111130654811859, -0.3091942369937897, -0.45530974864959717, -0.25051867961883545, -0.12216746062040329, -0.037816569209098816, -0.300263375043869, 0.23524045944213867, 0.2823123335838318, -0.15658976137638092, -0.14985084533691406, -0.01460077241063118, -0.21462273597717285, 0.29070234298706055, -0.00950375571846962, -0.18104518949985504, -0.27462098002433777, 0.3711077868938446, -0.1309731900691986, 0.2702459394931793, 0.04130251705646515, 0.15903237462043762, 0.1740674078464508, 0.12312836945056915, -0.035169027745723724, 0.3021099269390106, 0.17851664125919342, -0.09697239100933075, -0.15694057941436768, 0.21255889534950256, 0.148051455616951, 0.05222068354487419, -0.015067363157868385, 0.04044656082987785, -0.03663736581802368, 0.11518653482198715, -0.39703088998794556, 0.6897212862968445, -0.30285215377807617, 0.3214876055717468, 0.1034587025642395, 0.05512937903404236, -0.09008722007274628, 0.23089760541915894, -0.10133880376815796, -0.1619293987751007, 0.12116926908493042, 0.0783063992857933, 0.0026719532907009125, 0.08938022702932358, -0.20704524219036102, 0.4638679325580597, 0.4939221143722534, 0.08578763902187347, 0.28000426292419434, 0.002771154046058655, 0.08856719732284546, 0.16403642296791077, 0.15543559193611145, 0.46683481335639954, 0.13929763436317444, 0.370861291885376, -0.09494145214557648, -0.2223966419696808, -0.02254987508058548, 0.0663498044013977, 0.13335171341896057, 0.10790573060512543, -0.020951833575963974, 0.2927319407463074, 0.2921719253063202, 0.14472615718841553, -0.23682573437690735, -0.1120082288980484, 0.24244451522827148, -0.07044276595115662, -0.22971773147583008, 0.07660838961601257, -0.31523746252059937, -0.2004401683807373, 0.05895159766077995, -0.21876755356788635, -0.178965762257576, -0.19369249045848846, 0.21167726814746857, -0.1252024620771408, -0.06772437691688538, 0.09110870957374573, -0.22384855151176453, 0.10092315822839737, 0.11198027431964874, -0.4180006682872772, 0.011116757988929749, -0.14924393594264984, 0.05676151067018509, 0.15544705092906952, 0.22740662097930908, 0.2618391215801239, 0.6300013661384583, 0.4081146717071533, -0.14559638500213623, -0.170907661318779, -0.47951415181159973, -0.2909797728061676, -0.20195190608501434, -0.005920000374317169, 0.22407539188861847, -0.2248266488313675, -0.17554675042629242, -0.18532317876815796, 0.06000379100441933, 0.10628858208656311, -0.3077452480792999, 0.11681777238845825, -0.026935571804642677, -0.06334947794675827, -0.1907593011856079, -0.18417108058929443, 0.0417802669107914, -0.25208404660224915, 0.22978445887565613, 0.07287448644638062, 0.3123463988304138, -0.12834082543849945, -0.14224079251289368, -0.03332721069455147, 0.06509915739297867, -0.008735071867704391, -0.19781728088855743, 0.18496394157409668, 0.3210044205188751, -0.13007454574108124, -0.07342615723609924, -0.09359131753444672, -0.09150734543800354, -0.3069915473461151, 0.16444361209869385, -0.10300800949335098, -0.2945168912410736, -0.15062251687049866, 0.33880776166915894, 0.006725497543811798, 0.12382443994283676, 0.43783387541770935, 0.21997833251953125, -0.11523974686861038, -0.1261611133813858, -0.1362294703722, -0.03592114895582199, 0.12872952222824097, 0.11180757731199265, -0.03201769292354584, 0.4042183756828308, 0.3531392812728882, 0.5051999688148499, -0.10045427083969116, 0.11441534757614136, 0.08259321749210358, 0.21103203296661377, 0.05905434861779213, -0.1382032334804535, -0.2632145285606384, -0.013189258985221386, 0.12481401860713959, 0.3803519010543823, 0.05146847665309906, 0.2863781452178955, 0.08955632150173187, 0.08865804970264435, 0.009195588529109955, 0.03739383816719055, -0.213323175907135, 0.038632526993751526, -0.1981244832277298, 0.19189918041229248, -0.043234944343566895, 0.08452101796865463, -0.39575207233428955, -0.16755717992782593, -0.00777685921639204, -0.043089255690574646, -0.17326539754867554, -0.16971136629581451, -0.233540341258049, 0.0924345850944519, -0.46323442459106445, 0.022643715143203735, 0.2663819193840027, -0.06885077804327011, 0.2935245633125305, -0.01697700284421444, -0.037147581577301025, -0.42051464319229126, 0.5225645899772644, -0.1190221980214119, -0.009530439972877502, 0.06338335573673248, -0.0548141747713089, -0.4883763790130615, 0.24813033640384674, 0.05650312826037407, 0.1608724147081375, -0.5036645531654358, 0.4305475950241089, -0.40727901458740234, -0.1598242223262787, -0.17199359834194183, 0.08861338347196579, -0.08289320021867752, -0.3478325307369232, -0.2955840229988098, -0.1183004379272461, -0.06420886516571045, 0.11455696076154709, 0.10505042225122452, -0.06028898060321808, -0.3919132351875305, -0.08510081470012665, -0.07733035832643509, -0.14803546667099, -0.10085557401180267, -0.17024466395378113, 0.3712040185928345, 0.0674811601638794, 0.12196081876754761, 0.36028358340263367, 0.05528303608298302, 0.0065245432779192924, 0.20336557924747467, -0.014529429376125336, -0.21020916104316711, -0.2888224124908447, -0.1591697633266449, -0.12575894594192505, 0.20264682173728943, -0.2436506599187851, 0.26271820068359375, -0.08213819563388824, -0.013789884746074677, 0.0754740908741951, -0.27477893233299255, 0.2628495395183563, -0.13082724809646606, -0.3575405478477478, -0.41823333501815796, 0.5965774655342102, -0.012152357026934624, -0.291853666305542, 0.46767476201057434, 0.5866448283195496, -0.20488601922988892, 0.18569763004779816, 0.3177354335784912, 0.6662872433662415, -0.19198544323444366, 0.12430563569068909, 0.23411911725997925, -0.32345980405807495, 0.37741348147392273, 0.11722017824649811, 0.2706295847892761, -0.4938719570636749, -0.35477206110954285, -0.008976439014077187, -0.026059484109282494, -0.04612104594707489, 0.1993291974067688, -0.30035844445228577, 0.22259195148944855, -0.17742523550987244, -0.11121803522109985, -0.19926512241363525, 0.1749388426542282, 0.03179948031902313, -0.18973959982395172, -0.30823591351509094, 0.22631770372390747, 0.08457652479410172, -0.25011298060417175, -0.15735897421836853, 0.15382061898708344, 0.24920669198036194, -0.19378475844860077, -0.14108756184577942, -0.16978126764297485, -0.33177152276039124, 0.24082355201244354, -0.1652635633945465, -0.10751107335090637, 0.35750871896743774, 0.20420734584331512, 0.1925363838672638, 0.033621810376644135, 0.10277839750051498, 0.13490405678749084, 0.24976056814193726, 0.3874717652797699, 0.043469980359077454, -0.33415719866752625, 0.12362109869718552, -0.056196294724941254, -0.07414519041776657, -0.1307506263256073, 0.29059362411499023, -0.5488347411155701, -0.07090979069471359, 0.18185067176818848, -0.04446486383676529, 0.08569962531328201, -0.05895945057272911, 0.2538464665412903, -0.018993476405739784, -0.23947106301784515, 0.26262110471725464, 0.04108642041683197, 0.06476325541734695, 0.47579434514045715, -0.4371682107448578, 0.15659022331237793, 0.10588152706623077, 0.317857027053833, 0.041231669485569, 0.06564909219741821, 0.17010006308555603, 0.2643054723739624, -0.3975028991699219, -0.28233012557029724, 0.005892984569072723, 0.22737225890159607, -0.2330227494239807, 0.17222648859024048, -0.11286525428295135, -0.012104138731956482, 0.3596220910549164, 0.26695993542671204, 0.01925949938595295, -0.06809764355421066, -0.007756005972623825, -0.07475269585847855, -0.0775056853890419, 0.1332176774740219, 0.2865717113018036, 0.1484093964099884, -0.27897346019744873, -0.0462355762720108, -0.05821583420038223, 0.10911987721920013, -0.44383904337882996, 0.16368183493614197, -0.011036008596420288, 0.13437533378601074, 0.17868688702583313, 0.05890258774161339, -0.049807630479335785, -0.0013508563861250877, 0.2356993854045868, -0.13822004199028015, -0.1586453765630722, -0.4200448989868164, -0.17712359130382538, -0.006013244390487671, -0.13973012566566467, 0.20648495852947235, 0.022121239453554153, -0.4623449444770813, -0.25403833389282227, -0.08100597560405731, 0.04442155733704567, 0.3305605351924896, -0.08858402073383331, 0.19334028661251068, 0.06903817504644394, -0.036311790347099304, 0.0652463510632515, 0.23543381690979004, -0.06970115005970001, -0.25158780813217163, 0.1719229370355606, 0.4591670036315918, -0.031641896814107895, 0.036364905536174774, -0.21549440920352936, 0.16188552975654602, -0.010911710560321808, 0.026416271924972534, 0.22421956062316895, -0.1540358066558838, -0.32315510511398315, 0.31954726576805115, 0.4424619674682617, 0.2556972801685333, -0.022249437868595123, -0.18071874976158142, 0.025342285633087158, 0.3190237581729889, -0.43081286549568176, -0.3587576150894165, -0.05210293456912041, 0.23074066638946533, 0.169051393866539, 0.14840327203273773, -0.11444356292486191, 0.08320935070514679, 0.044978998601436615, 0.045328423380851746, 0.012402045540511608, -0.33756357431411743, 0.424300879240036, 0.4030105173587799, 0.22980646789073944, -0.2647801339626312, 0.21549710631370544, -0.16983668506145477, -0.007963299751281738, 0.3497260808944702, 0.07850246876478195, 0.301889568567276, 0.39478859305381775, -0.13468103110790253, 0.18366532027721405, -0.06511519849300385, 0.13771888613700867, 0.1384473592042923, -0.028221383690834045, -0.08326313644647598, 0.4055289924144745, 0.23846232891082764, 0.07936090975999832, -0.34838688373565674, -0.20854541659355164, 0.05313505604863167, -0.020072076469659805, -0.05085447430610657, 0.0484696626663208, -0.2068224996328354, -0.0028462931513786316, -0.20048926770687103, -0.12659507989883423, -0.09555843472480774, 0.44672924280166626, 0.08458547294139862, 0.3332592844963074, -0.7456421852111816, 0.29295873641967773, 0.126656174659729, 0.6264200806617737, -0.005465272814035416, -0.10299468785524368, 0.31186139583587646, -0.0755254328250885, -0.03152129426598549, -0.1744859367609024, -0.004518155008554459, 0.06439173221588135, -0.20179708302021027, 0.11419709026813507, -0.03514029458165169, 0.017589246854186058, 0.055377036333084106, -0.19098855555057526, -0.14119523763656616, -0.06292444467544556, 0.38267892599105835, 0.24745610356330872, -0.22808454930782318, 0.21909108757972717, 0.2198127806186676, 0.13006557524204254, -0.1526705026626587, 0.37120306491851807, -0.13133619725704193, -0.3194810450077057, 0.09653181582689285, 0.2571399211883545, 0.061322398483753204, -0.25296854972839355, 0.13274770975112915, -0.02510169707238674, -0.03995254263281822, -0.33996281027793884, 0.1842830926179886, 0.04495927691459656, 0.32927897572517395, 0.1770828366279602, 0.13482189178466797, -0.15389984846115112, -0.05861769616603851, -0.6116362810134888, -0.0797630175948143, 0.06491789221763611, 0.03215915709733963, 0.18570907413959503, 0.2941516935825348, -0.0892910584807396, -0.11614084243774414, 0.26921677589416504, -0.3773981034755707, 0.07867640256881714, 0.11645536124706268, -0.4881551265716553, 0.03580433875322342, 0.2271425873041153, -0.08072076737880707, -0.21385712921619415, -0.33827903866767883, -0.18993337452411652, -0.07221776992082596, 0.22224199771881104, -0.1953786015510559, 0.1508284956216812, -0.048433318734169006, -0.00356857106089592, 0.12830820679664612, 0.01833353377878666, 0.08107312023639679, 0.13848376274108887, -0.017596065998077393, 0.06720302999019623, 0.12375357002019882, -0.3002915680408478, 0.1567697823047638, 0.08614940941333771, 0.32577136158943176, -0.15567496418952942, -0.03940744325518608, -0.04173833504319191, -0.05459757149219513, 0.0779125764966011, 0.05756860598921776, -0.4942674934864044, 0.15185301005840302, 0.08458975702524185, 0.0404563844203949, -0.38855645060539246, 0.2407364845275879, -0.02980095148086548, 0.2677921652793884, 0.04423566162586212, -0.24994321167469025, 0.22898955643177032, -0.15446169674396515, -0.16136705875396729, -0.04048559069633484, 0.2045426368713379, 0.3835480809211731, 0.04009632021188736, -0.023830238729715347, -0.13960270583629608, 0.3126124441623688, 0.1575651466846466, -0.12609180808067322, 0.33870136737823486, -0.31928735971450806, -0.05513860657811165, -0.09990044683218002, -0.02383895218372345, -0.0711684450507164, -0.16704939305782318, -0.07286842912435532, -0.20737332105636597 ]
https://github.com/huggingface/datasets/issues/5425
Sort on multiple keys with datasets.Dataset.sort()
I meant `typing.Sequence` (`datasets.Sequence` is a feature type). Regarding `null_placement`, I think we can support both `at_start` and `at_end`, and `last` and `first` (for backward compatibility; convert internally to `at_end` and `at_start` respectively).
### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add.
33
Sort on multiple keys with datasets.Dataset.sort() ### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add. I meant `typing.Sequence` (`datasets.Sequence` is a feature type). Regarding `null_placement`, I think we can support both `at_start` and `at_end`, and `last` and `first` (for backward compatibility; convert internally to `at_end` and `at_start` respectively).
[ 0.02541567012667656, 0.0421115905046463, -0.15855026245117188, 0.08235688507556915, 0.2454751431941986, 0.004766426980495453, 0.21588291227817535, 0.14735998213291168, -0.11042693257331848, 0.054425954818725586, 0.0009615541202947497, 0.24596276879310608, 0.010052447207272053, 0.31489434838294983, 0.09255088865756989, -0.33687731623649597, -0.11342897266149521, 0.019760459661483765, 0.03499269858002663, 0.21421165764331818, -0.25799450278282166, -0.05034318566322327, -0.3823676109313965, -0.004306681454181671, 0.06514395773410797, -0.20227093994617462, -0.2384932041168213, 0.0010122135281562805, -0.017734093591570854, -0.38289424777030945, 0.04595371335744858, 0.45718783140182495, -0.25481295585632324, 0.35956069827079773, -0.00009576293814461678, -0.3234422206878662, 0.07106977701187134, -0.1163492351770401, -0.18269862234592438, -0.3400915265083313, -0.1098896786570549, -0.0025175437331199646, -0.198316752910614, -0.2397874891757965, -0.12795990705490112, -0.2674061954021454, -0.05586206912994385, -0.3892674446105957, 0.04345409572124481, 0.0028997035697102547, 0.3329937756061554, 0.10872361063957214, 0.07407930493354797, 0.060229379683732986, 0.31492850184440613, 0.22443094849586487, -0.16158650815486908, -0.3141613006591797, 0.32917600870132446, 0.1313730627298355, -0.04690498858690262, 0.1422778218984604, -0.10932942479848862, -0.4318541884422302, 0.3900066912174225, 0.025466136634349823, -0.11844293028116226, -0.06622964888811111, -0.004970263689756393, 0.17013011872768402, 0.5252541899681091, -0.5031977295875549, -0.45729127526283264, -0.3275696039199829, 0.2455606907606125, -0.2535427510738373, 0.1708674430847168, -0.017816035076975822, 0.1665990799665451, -0.16366921365261078, 0.05983194708824158, -0.0014794610906392336, -0.1743951439857483, 0.21095488965511322, -0.06303855776786804, 0.1819431483745575, -0.025365926325321198, -0.11045894771814346, 0.10747818648815155, -0.3803737759590149, -0.023887090384960175, -0.5145825743675232, 0.35041868686676025, 0.21463945508003235, -0.37610703706741333, -0.1541622132062912, 0.2004055678844452, 0.4145667254924774, 0.2876078486442566, -0.06083963066339493, -0.26075050234794617, 0.14721061289310455, -0.081214539706707, -0.04404359310865402, 0.21966552734375, 0.33319416642189026, 0.24856609106063843, 0.04517177864909172, 0.3181092143058777, 0.09088709205389023, 0.12343862652778625, 0.06130821257829666, 0.3146546185016632, -0.30282849073410034, -0.016755733639001846, 0.2695847749710083, -0.126166433095932, -0.030386636033654213, 0.007621461525559425, -0.014313272200524807, 0.20522576570510864, -0.07495925575494766, 0.3333161771297455, 0.362320214509964, 0.15572169423103333, 0.16679927706718445, -0.21313504874706268, -0.10156799852848053, 0.11002693325281143, 0.08306169509887695, -0.11901424080133438, -0.08406642079353333, -0.09556988626718521, 0.0695880725979805, 0.15992434322834015, -0.26347869634628296, -0.07201530784368515, 0.29811397194862366, 0.05302397534251213, 0.15559569001197815, 0.040906764566898346, -0.17038191854953766, 0.16540856659412384, 0.22056667506694794, -0.2221064567565918, 0.07014162093400955, -0.15909071266651154, 0.010714851319789886, -0.2949904203414917, 0.31769436597824097, -0.05955108255147934, -0.27699148654937744, 0.0758611410856247, 0.28396034240722656, -0.05366083234548569, 0.15171784162521362, -0.4127252995967865, 0.28437986969947815, 0.20121365785598755, -0.024993497878313065, 0.04988262057304382, -0.07106221467256546, -0.25320810079574585, -0.2512563467025757, -0.01312459446489811, 0.1978032886981964, -0.2902202904224396, 0.11887039244174957, -0.36389487981796265, 0.04704974964261055, -0.1808527410030365, -0.01710653305053711, -0.10890188813209534, 0.12138277292251587, -0.02117275632917881, 0.33274197578430176, 0.32683515548706055, -0.11829577386379242, -0.3121338486671448, 0.11794479191303253, -0.040784284472465515, -0.05987925827503204, -0.028912223875522614, 0.36756861209869385, 0.23279091715812683, -0.32755932211875916, 0.05942431092262268, 0.03736434131860733, -0.055884093046188354, 0.13211962580680847, -0.05058445781469345, -0.13958846032619476, 0.20542581379413605, 0.07718327641487122, 0.06783632189035416, -0.36061638593673706, -0.015516303479671478, -0.26562678813934326, 0.07583941519260406, -0.20144200325012207, -0.14805613458156586, 0.17170462012290955, 0.03138088434934616, 0.27191847562789917, 0.0948401615023613, -0.3961181342601776, -0.44144415855407715, 0.30647265911102295, 0.14463810622692108, -0.18747831881046295, -0.26166194677352905, -0.289068341255188, -0.01970730721950531, 0.0006055273115634918, -0.1421157717704773, 0.27468857169151306, 0.2635136544704437, -0.0132937952876091, -0.20124903321266174, 0.045016754418611526, -0.3231244385242462, 0.31767675280570984, -0.01748667284846306, -0.1640128493309021, -0.37882310152053833, 0.32929056882858276, -0.18490740656852722, 0.28423652052879333, 0.07886901497840881, 0.16611814498901367, 0.22794777154922485, -0.001236896961927414, 0.07481791824102402, 0.4101625680923462, 0.2170146256685257, -0.07241708040237427, -0.12429875880479813, 0.21663282811641693, 0.29685458540916443, 0.24803918600082397, -0.07221811264753342, 0.04728563874959946, 0.030598323792219162, 0.07671388238668442, -0.5003416538238525, 0.7180092334747314, -0.2894095182418823, 0.15000364184379578, 0.13803139328956604, -0.05757053196430206, -0.05085588991641998, 0.19370289146900177, -0.04336690902709961, -0.24386590719223022, 0.26571106910705566, 0.13607163727283478, -0.10184985399246216, 0.23854896426200867, -0.4477390646934509, 0.32553917169570923, 0.4619605541229248, 0.008986398577690125, 0.25632405281066895, 0.10261207818984985, 0.2138192057609558, 0.10992621630430222, 0.1854667365550995, 0.2676783502101898, 0.19866715371608734, 0.3821786642074585, -0.11237162351608276, -0.18662545084953308, -0.021912086755037308, -0.015056096948683262, 0.20272943377494812, -0.031285859644412994, -0.2313818633556366, 0.27616655826568604, 0.24560393393039703, 0.208600252866745, -0.2942749261856079, -0.03377236798405647, 0.24763351678848267, 0.021782662719488144, -0.3498176038265228, -0.06349150091409683, -0.3058544397354126, -0.29131442308425903, 0.1177850216627121, 0.004148345440626144, -0.24157127737998962, -0.22686351835727692, 0.28362274169921875, -0.09752070903778076, -0.12678654491901398, 0.032805606722831726, -0.14685270190238953, 0.28937602043151855, 0.0388786643743515, -0.20685900747776031, -0.16173893213272095, -0.07805085927248001, 0.09390731155872345, 0.18841834366321564, 0.35163554549217224, 0.3448489308357239, 0.5639646649360657, 0.3015263080596924, -0.25308114290237427, -0.18219688534736633, -0.5989540219306946, -0.17405062913894653, -0.20385614037513733, 0.08123604208230972, 0.3216795325279236, -0.14006775617599487, -0.09800422191619873, -0.1194687932729721, -0.014059027656912804, 0.11742459237575531, -0.4333588778972626, 0.00006348267197608948, -0.014605340547859669, -0.06955498456954956, -0.3460732400417328, -0.17160263657569885, 0.13370689749717712, -0.23872606456279755, 0.14843665063381195, -0.12430629134178162, 0.26308563351631165, -0.0847734659910202, -0.3108627498149872, -0.052256155759096146, 0.10306623578071594, -0.000887187197804451, -0.23032285273075104, 0.023891214281320572, 0.4310590624809265, -0.19482725858688354, -0.22280274331569672, -0.0669984370470047, -0.03323843330144882, -0.38570937514305115, 0.136381596326828, -0.14764156937599182, -0.3585371673107147, -0.09461799263954163, 0.30558374524116516, 0.09186854958534241, 0.09856774657964706, 0.39941951632499695, 0.18471843004226685, -0.09171142429113388, -0.14762833714485168, -0.3266526758670807, -0.06694712489843369, 0.16366088390350342, 0.07252602279186249, -0.021526571363210678, 0.39103174209594727, 0.30729940533638, 0.2930140793323517, -0.10522651672363281, 0.10174877941608429, 0.13821521401405334, 0.24458102881908417, 0.042172424495220184, -0.20468369126319885, -0.19639651477336884, 0.022711295634508133, 0.1662106215953827, 0.4281504154205322, 0.18762873113155365, 0.2131996750831604, 0.06103716045618057, 0.05998396873474121, 0.03744581714272499, -0.006100855767726898, -0.17174479365348816, 0.022911904379725456, -0.15803547203540802, 0.2634965181350708, -0.0345621183514595, 0.038500189781188965, -0.26918038725852966, -0.12617364525794983, -0.041541241109371185, 0.013444311916828156, -0.12584784626960754, -0.22865000367164612, -0.2773115336894989, 0.225845605134964, -0.38390547037124634, 0.08639165014028549, 0.327764630317688, -0.1429479867219925, 0.21891023218631744, 0.06877030432224274, -0.08699244260787964, -0.35175105929374695, 0.6035152673721313, -0.2367607206106186, -0.03189365565776825, 0.06725779175758362, -0.2575724124908447, -0.4102482497692108, 0.34424880146980286, 0.07905979454517365, 0.15321260690689087, -0.29580995440483093, 0.44126543402671814, -0.4718412160873413, -0.1870409995317459, -0.1421596109867096, 0.034920986741781235, -0.029071785509586334, -0.4383874535560608, -0.188839390873909, -0.04294462874531746, -0.05218154937028885, 0.07252063602209091, 0.0258177537471056, -0.0660858228802681, -0.24433617293834686, -0.12965624034404755, -0.03959006071090698, -0.142735555768013, 0.0001498013734817505, -0.12606866657733917, 0.29532480239868164, 0.13900066912174225, 0.14438694715499878, 0.3640548884868622, 0.04165111482143402, 0.06550317257642746, 0.10650251060724258, -0.09531225264072418, -0.07548508048057556, -0.19541531801223755, -0.12666650116443634, -0.034828849136829376, 0.23609280586242676, -0.0831102654337883, 0.2919173538684845, -0.0923483818769455, -0.05312724411487579, -0.016218826174736023, -0.2551073729991913, 0.2812466323375702, -0.0873681902885437, -0.3097040057182312, -0.40287497639656067, 0.5194323658943176, -0.10776291787624359, -0.22148235142230988, 0.270627498626709, 0.49498385190963745, -0.33184733986854553, 0.07105273753404617, 0.30351078510284424, 0.6922154426574707, -0.2560061812400818, 0.09064088016748428, 0.0920017659664154, -0.17317605018615723, 0.3615790009498596, 0.08341385424137115, 0.26737087965011597, -0.5234596729278564, -0.20505312085151672, -0.08285600692033768, 0.05227840319275856, 0.0003957822918891907, 0.07745297253131866, -0.39366671442985535, 0.2470802217721939, -0.0878618061542511, 0.013219352811574936, -0.1925441175699234, 0.1975284367799759, -0.02546028234064579, -0.25340306758880615, -0.3801887631416321, 0.20231974124908447, 0.08559969067573547, -0.29643625020980835, -0.20693179965019226, 0.15811245143413544, 0.299614816904068, -0.025597618892788887, -0.13469399511814117, -0.2645431458950043, -0.2714717388153076, 0.10107069462537766, -0.11869393289089203, -0.07043647766113281, 0.4826619327068329, 0.388380229473114, 0.3775443434715271, 0.1097758412361145, 0.0793757289648056, 0.0583953894674778, 0.07174010574817657, 0.4173698425292969, 0.03916815668344498, -0.29690107703208923, 0.15719284117221832, -0.0726267397403717, 0.007112592458724976, -0.23855876922607422, 0.34367814660072327, -0.48037588596343994, -0.10680173337459564, 0.09745533764362335, -0.0325455442070961, 0.09411938488483429, -0.03111414425075054, 0.24466124176979065, 0.08619818091392517, -0.25758787989616394, 0.25247666239738464, 0.060574427247047424, 0.059555020183324814, 0.45965301990509033, -0.43590590357780457, 0.2146742045879364, -0.012492481619119644, 0.3745294213294983, -0.0010128654539585114, 0.13164302706718445, 0.09377792477607727, 0.3848062753677368, -0.4703562259674072, -0.2431875467300415, 0.055825620889663696, 0.1146768182516098, -0.07676452398300171, 0.21875198185443878, -0.1389424353837967, -0.052187688648700714, 0.24999424815177917, 0.4733014702796936, -0.0248819962143898, -0.17264476418495178, 0.014899786561727524, 0.013178437948226929, -0.13612499833106995, 0.05055541917681694, 0.2796539068222046, 0.24819159507751465, -0.10762949287891388, 0.08755171298980713, -0.029874639585614204, 0.10401912033557892, -0.46662014722824097, 0.14892347157001495, -0.11546802520751953, 0.11150091886520386, 0.30437609553337097, 0.026172492653131485, -0.12075435370206833, -0.02921069972217083, 0.23280805349349976, -0.0344412624835968, -0.14600101113319397, -0.40059489011764526, -0.21652428805828094, -0.0009191036224365234, -0.16056272387504578, 0.24218642711639404, 0.08661063760519028, -0.4160125255584717, -0.29581335186958313, -0.1397012323141098, 0.07979103922843933, 0.3617405295372009, -0.046764567494392395, 0.23762832581996918, 0.1929962933063507, -0.018199674785137177, 0.004979733377695084, 0.170649453997612, -0.01301373541355133, -0.22509638965129852, 0.17584629356861115, 0.40865421295166016, -0.23353953659534454, 0.041852064430713654, -0.06599419564008713, 0.25875914096832275, 0.039048608392477036, 0.04378654062747955, 0.2482006549835205, -0.06250760704278946, -0.35837945342063904, 0.4390496015548706, 0.3817252218723297, 0.20066316425800323, -0.08523543179035187, -0.13763172924518585, 0.05744705721735954, 0.28491905331611633, -0.4219799339771271, -0.3299957811832428, 0.0010659564286470413, 0.22268904745578766, 0.16985462605953217, 0.13765503466129303, -0.03654038906097412, 0.14702950417995453, 0.026338178664445877, 0.03956897556781769, 0.015845421701669693, -0.18903419375419617, 0.3910229802131653, 0.27301207184791565, 0.1357429474592209, -0.13741324841976166, 0.23967118561267853, -0.05320348963141441, -0.07391398400068283, 0.37719225883483887, 0.24072504043579102, 0.36078327894210815, 0.16962841153144836, -0.028041411191225052, 0.16471761465072632, -0.08049167692661285, 0.3024183213710785, 0.2796240746974945, 0.051496077328920364, -0.08250498026609421, 0.3930526077747345, 0.05716091766953468, 0.05998065322637558, -0.3285330533981323, -0.21739983558654785, 0.057471562176942825, -0.08905526995658875, -0.08751341700553894, -0.07295960187911987, -0.17485563457012177, 0.0637473464012146, -0.1111077070236206, -0.1935701221227646, -0.0700327455997467, 0.4497678279876709, 0.12058136612176895, 0.3382372260093689, -0.6881882548332214, 0.326749324798584, 0.03054659813642502, 0.6082625389099121, -0.06026352569460869, -0.008464673534035683, 0.348077654838562, -0.05811792612075806, 0.013842340558767319, -0.024814119562506676, -0.06516727805137634, 0.06654568016529083, -0.13721217215061188, 0.06831953674554825, -0.10333795845508575, 0.03706899285316467, 0.09008774161338806, -0.18574640154838562, -0.1566571742296219, 0.090521439909935, 0.5013472437858582, 0.2107350081205368, -0.1835242211818695, 0.17290428280830383, 0.2918490171432495, 0.1794155389070511, -0.24639275670051575, 0.28138235211372375, -0.028815601021051407, -0.22655466198921204, 0.06289927661418915, 0.10872577875852585, 0.034604571759700775, -0.21257658302783966, 0.08343994617462158, -0.113227978348732, -0.00686244759708643, -0.28202110528945923, 0.19437803328037262, 0.24615928530693054, 0.3061894476413727, 0.15355180203914642, -0.03546863794326782, -0.15383993089199066, -0.2115926444530487, -0.6540707945823669, -0.10734628885984421, 0.1748782992362976, 0.17311784625053406, 0.22029712796211243, 0.24669064581394196, -0.127750426530838, -0.1537589281797409, 0.16005569696426392, -0.48995718359947205, 0.0679769217967987, 0.0716334730386734, -0.4858704209327698, 0.0422094501554966, 0.12024442851543427, -0.19029507040977478, -0.25391197204589844, -0.22808101773262024, -0.05288154259324074, -0.08885741978883743, 0.1931837797164917, -0.2365257889032364, 0.2997087836265564, -0.07516521215438843, 0.010802995413541794, 0.008256077766418457, 0.026330649852752686, 0.025601066648960114, 0.08947648853063583, 0.06469777226448059, 0.14447171986103058, 0.19173043966293335, -0.2926512062549591, 0.045320767909288406, 0.08740710467100143, 0.295014351606369, -0.16446341574192047, -0.1393803209066391, 0.005223043728619814, 0.07853268086910248, 0.12923291325569153, 0.09615214914083481, -0.5178356766700745, 0.18021048605442047, 0.02555225044488907, -0.05117763951420784, -0.34048351645469666, 0.2314143180847168, -0.08288584649562836, 0.25119099020957947, -0.031084321439266205, -0.20635545253753662, 0.17648960649967194, -0.10460683703422546, -0.15809877216815948, -0.11574417352676392, 0.027143269777297974, 0.2863549590110779, 0.07318643480539322, -0.12340787798166275, -0.09568262100219727, 0.36800310015678406, 0.06262168288230896, -0.19782142341136932, 0.43357938528060913, -0.2812859117984772, -0.20034700632095337, -0.16814029216766357, -0.13818366825580597, 0.0857544094324112, -0.20513486862182617, 0.018857181072235107, -0.237890362739563 ]
https://github.com/huggingface/datasets/issues/5425
Sort on multiple keys with datasets.Dataset.sort()
> I meant typing.Sequence (datasets.Sequence is a feature type). Sorry, I actually meant `typing.Sequence` and not `type.hinting`. However, the issue is still that `dataset.Sequence` is imported in `arrow_dataset.py` so I cannot import and use `typing.Sequence` for the `sort`'s signature without overwriting the `dataset.Sequence` import. The latter is used in the `align_labels_with_mapping` method so it's a necessary import for `arrow_dataset.py`. To import `typing.Sequence` as something else than `Sequence` to avoid overwriting may only be confusing and doesn't seem good practice!? The other solution is to keep `List` type hinting as in the signature I posted in my previous post but this excludes other Sequence types and may cause problems further down the line. Please advise, Thanks for all the clarifications!
### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add.
119
Sort on multiple keys with datasets.Dataset.sort() ### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add. > I meant typing.Sequence (datasets.Sequence is a feature type). Sorry, I actually meant `typing.Sequence` and not `type.hinting`. However, the issue is still that `dataset.Sequence` is imported in `arrow_dataset.py` so I cannot import and use `typing.Sequence` for the `sort`'s signature without overwriting the `dataset.Sequence` import. The latter is used in the `align_labels_with_mapping` method so it's a necessary import for `arrow_dataset.py`. To import `typing.Sequence` as something else than `Sequence` to avoid overwriting may only be confusing and doesn't seem good practice!? The other solution is to keep `List` type hinting as in the signature I posted in my previous post but this excludes other Sequence types and may cause problems further down the line. Please advise, Thanks for all the clarifications!
[ 0.0753103494644165, 0.08347347378730774, -0.10561510920524597, 0.025613337755203247, 0.3077031373977661, 0.03900536894798279, 0.2000204622745514, 0.20026621222496033, 0.0951324850320816, -0.0224170982837677, 0.030367432162165642, 0.3968810737133026, -0.14236189424991608, 0.32774579524993896, -0.031417060643434525, -0.354764461517334, -0.05666852742433548, -0.1306811273097992, 0.15019811689853668, 0.20042388141155243, -0.1982504427433014, -0.09934903681278229, -0.275862455368042, 0.00009674578905105591, 0.10730886459350586, -0.23707982897758484, -0.1518794298171997, -0.1850225031375885, -0.03345000743865967, -0.4965452253818512, 0.06295576691627502, 0.33674824237823486, -0.07453887164592743, 0.24619373679161072, -0.00010183087579207495, -0.22335323691368103, 0.1844223141670227, -0.02917155809700489, -0.16189178824424744, -0.33824217319488525, -0.15999442338943481, -0.12685588002204895, -0.035904064774513245, -0.22623100876808167, -0.1315155327320099, -0.5155068635940552, -0.1443549394607544, -0.31071335077285767, 0.2514137029647827, -0.010577843524515629, 0.3103942275047302, 0.050685398280620575, 0.19400806725025177, 0.12423437088727951, 0.19072861969470978, 0.1258741170167923, -0.13351331651210785, -0.22902247309684753, 0.32785630226135254, 0.21025103330612183, -0.006217636168003082, 0.16599135100841522, -0.13362881541252136, -0.42791038751602173, 0.39997434616088867, -0.0652068629860878, 0.020621061325073242, -0.06555408984422684, -0.09663490206003189, 0.08294463157653809, 0.4979838728904724, -0.38823631405830383, -0.5118809342384338, -0.36299556493759155, 0.29034122824668884, -0.2544400990009308, 0.17327851057052612, -0.12015289068222046, 0.06581272184848785, -0.17302122712135315, 0.18319125473499298, -0.09140527993440628, -0.12497900426387787, 0.2890225648880005, 0.04832329601049423, 0.15470504760742188, -0.07829838246107101, 0.014362618327140808, 0.11452388018369675, -0.38746052980422974, 0.04861375316977501, -0.3978218734264374, 0.31647399067878723, 0.21461202204227448, -0.4459213614463806, -0.07969461381435394, 0.18957248330116272, 0.2833765149116516, 0.20125210285186768, 0.14464886486530304, -0.2214854210615158, 0.12203572690486908, -0.057226404547691345, -0.14938026666641235, 0.3175494968891144, 0.380590558052063, 0.22569984197616577, 0.1977502405643463, 0.16871222853660583, 0.12690168619155884, 0.1729927510023117, 0.011059019714593887, 0.1291302591562271, -0.3979870676994324, 0.17820094525814056, 0.303727924823761, -0.008818406611680984, -0.025863468647003174, 0.08692866563796997, -0.08035415410995483, 0.12400778383016586, -0.09727878868579865, 0.32406049966812134, 0.4012432396411896, 0.13268499076366425, 0.17817208170890808, -0.19670730829238892, 0.03996125981211662, 0.2647463381290436, 0.25584468245506287, -0.06928399950265884, -0.13464175164699554, -0.08468055725097656, 0.0899910032749176, 0.04779369756579399, -0.21194647252559662, -0.07657045125961304, 0.26734039187431335, 0.152300626039505, 0.04366809129714966, -0.05835062265396118, -0.09225919842720032, 0.23056012392044067, 0.20239804685115814, -0.32640203833580017, 0.21728219091892242, -0.07264646887779236, 0.03968606889247894, -0.28799280524253845, 0.2512204051017761, -0.1894095242023468, -0.28846752643585205, 0.13387714326381683, 0.20192591845989227, -0.06313946843147278, 0.09662513434886932, -0.6264912486076355, 0.030611813068389893, 0.23124727606773376, -0.028364436700940132, 0.09211660176515579, -0.08271311968564987, -0.07803589105606079, -0.26462939381599426, -0.03751957416534424, 0.04931943863630295, -0.10065411031246185, 0.0004812479019165039, -0.2929671108722687, 0.12139907479286194, -0.1390468180179596, 0.13260605931282043, -0.15181313455104828, 0.010576456785202026, 0.024456320330500603, 0.2540084719657898, 0.44804611802101135, -0.3247268795967102, -0.42331215739250183, 0.11087754368782043, 0.02887018769979477, 0.01890006847679615, 0.011780902743339539, 0.36496442556381226, 0.2438090741634369, -0.30499526858329773, -0.01915312558412552, 0.1122351586818695, 0.0009457282721996307, 0.13945327699184418, -0.05059424415230751, -0.20590877532958984, 0.14918546378612518, 0.0547187440097332, -0.025067832320928574, -0.40158548951148987, 0.007701516151428223, -0.4443807303905487, 0.13173705339431763, -0.15665680170059204, -0.1289188414812088, 0.1933690756559372, -0.03511599078774452, 0.1904926598072052, 0.09924274682998657, -0.32261863350868225, -0.37506476044654846, 0.28497785329818726, 0.1384807825088501, -0.27529701590538025, -0.566291093826294, -0.3065413236618042, -0.06756351888179779, 0.007362211123108864, -0.33422017097473145, 0.26907265186309814, 0.20610395073890686, -0.11284053325653076, -0.20389509201049805, 0.02004595845937729, -0.26504483819007874, 0.21892203390598297, 0.008542338386178017, -0.1754102110862732, -0.39404675364494324, 0.26677608489990234, -0.08933652192354202, 0.28476518392562866, -0.014805750921368599, 0.1392427682876587, 0.21601569652557373, 0.08989274501800537, 0.011908989399671555, 0.2784706652164459, 0.18453706800937653, -0.11542747914791107, -0.27855175733566284, 0.2285880148410797, 0.23411071300506592, 0.04316459968686104, -0.12996171414852142, 0.029872437939047813, -0.022039208561182022, 0.12384030967950821, -0.44388875365257263, 0.6198706030845642, -0.335531622171402, 0.41241422295570374, 0.07388721406459808, 0.058994658291339874, -0.028260068967938423, 0.22351747751235962, -0.18661454319953918, -0.22400858998298645, 0.14023013412952423, 0.14472581446170807, 0.00481896847486496, 0.09329087287187576, -0.322168231010437, 0.37344858050346375, 0.5821736454963684, 0.09146013855934143, 0.29370397329330444, 0.010089840739965439, 0.09644883126020432, 0.18226280808448792, 0.15725399553775787, 0.4192744791507721, 0.10868073254823685, 0.34663617610931396, -0.07377777993679047, -0.19788740575313568, -0.003653949126601219, 0.045821983367204666, 0.1343468278646469, 0.10594715178012848, -0.036246076226234436, 0.27815893292427063, 0.33867767453193665, 0.1595996767282486, -0.1880379021167755, -0.058569326996803284, 0.20189332962036133, -0.13832081854343414, -0.30194222927093506, 0.058697834610939026, -0.4148186445236206, -0.24323323369026184, -0.026152871549129486, -0.26041561365127563, -0.27708426117897034, -0.21501106023788452, 0.18936696648597717, -0.11505690217018127, -0.12087041139602661, 0.17878501117229462, -0.10681745409965515, 0.061049968004226685, 0.05264592170715332, -0.529130220413208, -0.07528044283390045, -0.13889551162719727, 0.09753537178039551, 0.08455437421798706, 0.32495570182800293, 0.3136087954044342, 0.5765093564987183, 0.37223342061042786, -0.21568292379379272, -0.19198429584503174, -0.45674335956573486, -0.23333987593650818, -0.15537004172801971, 0.01910093054175377, 0.3176687955856323, -0.1714920550584793, -0.09294751286506653, -0.155108243227005, 0.05354299396276474, 0.158536896109581, -0.3610652983188629, 0.03110956773161888, -0.03178129345178604, -0.020387953147292137, -0.20237815380096436, -0.1741456687450409, 0.024288702756166458, -0.34638142585754395, 0.2504652738571167, 0.05199316516518593, 0.22920043766498566, -0.014775396324694157, -0.2319694310426712, -0.02063727378845215, 0.014854107052087784, 0.02689116820693016, -0.1633320152759552, 0.26887306571006775, 0.38767799735069275, -0.17640163004398346, -0.1207280308008194, -0.017651662230491638, -0.09932377934455872, -0.266105592250824, 0.14934633672237396, -0.010627947747707367, -0.20421048998832703, -0.19098979234695435, 0.34590157866477966, 0.07870756834745407, 0.18074004352092743, 0.5041332244873047, 0.21958456933498383, -0.058440979570150375, -0.11077744513750076, -0.22164544463157654, -0.005098752677440643, 0.0047596897929906845, 0.1859959363937378, 0.06270745396614075, 0.42705395817756653, 0.26528024673461914, 0.45461970567703247, 0.0018995124846696854, 0.0700872465968132, 0.13019375503063202, 0.2345028966665268, 0.06453172862529755, -0.21284210681915283, -0.1844852864742279, -0.15508092939853668, 0.14256146550178528, 0.3906930685043335, -0.022063851356506348, 0.1771649718284607, 0.10165727138519287, 0.1359829306602478, -0.009690366685390472, 0.10536273568868637, -0.2536616325378418, 0.09337656944990158, -0.20325112342834473, 0.19333891570568085, 0.028913572430610657, 0.08252102881669998, -0.3051624000072479, -0.18194270133972168, -0.0038565187714993954, -0.009043075144290924, -0.09948460012674332, -0.20829343795776367, -0.24690674245357513, 0.10110796242952347, -0.4891318082809448, 0.09286782145500183, 0.39606261253356934, 0.016011709347367287, 0.26599574089050293, -0.06816541403532028, -0.014211386442184448, -0.3275892734527588, 0.5593985319137573, -0.21127280592918396, -0.1118234395980835, 0.055587124079465866, -0.11121256649494171, -0.44385889172554016, 0.3059893548488617, 0.09070295095443726, 0.16857820749282837, -0.46625828742980957, 0.40872475504875183, -0.46248742938041687, -0.1884486973285675, -0.19518913328647614, 0.2107454240322113, -0.029163477942347527, -0.3780929446220398, -0.2687951922416687, -0.11703880876302719, -0.10277203470468521, 0.020822100341320038, 0.21349917352199554, 0.0029521058313548565, -0.26771482825279236, 0.010144513100385666, -0.1610921174287796, -0.13862244784832, -0.13838833570480347, -0.18761911988258362, 0.35760563611984253, 0.13590897619724274, 0.09704995155334473, 0.43053072690963745, 0.13717156648635864, 0.08301422744989395, 0.2106536626815796, -0.05944950506091118, -0.2872254252433777, -0.32259663939476013, -0.13675808906555176, -0.13866814970970154, 0.19966574013233185, -0.1975998878479004, 0.34102141857147217, -0.04376348853111267, -0.07087749242782593, 0.07571923732757568, -0.3420535922050476, 0.19094900786876678, -0.055388208478689194, -0.4613454341888428, -0.4209563434123993, 0.5982915759086609, 0.0320904515683651, -0.3051793575286865, 0.42420145869255066, 0.429174542427063, -0.29471373558044434, 0.22552798688411713, 0.27567899227142334, 0.6464007496833801, -0.2256433218717575, 0.18939949572086334, 0.24998348951339722, -0.26239073276519775, 0.4883898198604584, 0.29458075761795044, 0.209686279296875, -0.45722323656082153, -0.3677254617214203, -0.02506265416741371, -0.054684922099113464, -0.03362660109996796, 0.12470027804374695, -0.2966575622558594, 0.3362402021884918, -0.27792298793792725, -0.1468161791563034, -0.1757626086473465, 0.18571779131889343, 0.03669099882245064, -0.2846153974533081, -0.44971027970314026, 0.15125462412834167, 0.10931020975112915, -0.23729798197746277, -0.1518356204032898, 0.0883159413933754, 0.3441997170448303, -0.1808239072561264, -0.18345850706100464, -0.18570595979690552, -0.2626890540122986, 0.17022205889225006, -0.09732750058174133, -0.01742228865623474, 0.5669774413108826, 0.2944163680076599, 0.33570361137390137, -0.013845428824424744, 0.10658186674118042, 0.09632833302021027, 0.210189551115036, 0.37559494376182556, 0.024387482553720474, -0.3764057457447052, 0.16973066329956055, -0.04390205442905426, 0.0230562761425972, -0.10983151942491531, 0.288709431886673, -0.5932160019874573, -0.1465262621641159, 0.19777019321918488, -0.029429301619529724, 0.06806206703186035, -0.12495976686477661, 0.24863781034946442, 0.051230538636446, -0.19615128636360168, 0.20842257142066956, 0.08193383365869522, 0.04248512536287308, 0.48332008719444275, -0.4090094566345215, 0.206710547208786, 0.06890083849430084, 0.357837975025177, 0.0027085207402706146, -0.03841197490692139, 0.20826320350170135, 0.38771724700927734, -0.42380911111831665, -0.22148770093917847, 0.06282304972410202, 0.26595625281333923, -0.31075695157051086, 0.212806835770607, -0.06546332687139511, 0.001976698637008667, 0.24325132369995117, 0.4353070855140686, -0.06524352729320526, -0.09858476370573044, -0.03052077442407608, -0.028561633080244064, -0.177077516913414, 0.22687184810638428, 0.2706402838230133, 0.1120460033416748, -0.2540424168109894, 0.06937378644943237, -0.09504874050617218, -0.031067421659827232, -0.3937389552593231, 0.19982072710990906, -0.05358162149786949, 0.13978010416030884, 0.15823495388031006, 0.1558099091053009, 0.10487142950296402, -0.02098236232995987, 0.1709035485982895, -0.06290619820356369, -0.13057199120521545, -0.369731068611145, -0.2004740685224533, -0.002032056450843811, -0.15490806102752686, 0.25266948342323303, 0.034071024507284164, -0.5000559091567993, -0.20463690161705017, -0.07647182792425156, 0.020457521080970764, 0.36641088128089905, -0.041662923991680145, 0.1719345599412918, 0.09290625154972076, 0.021515455096960068, -0.02858906425535679, 0.21895553171634674, -0.09062755107879639, -0.1841260939836502, 0.10406241565942764, 0.41598260402679443, -0.146934375166893, 0.03394343703985214, -0.21887634694576263, 0.1642450988292694, 0.016142606735229492, 0.07121798396110535, 0.18144115805625916, -0.11684709787368774, -0.3029371201992035, 0.40690040588378906, 0.4624185264110565, 0.24599668383598328, -0.12416426092386246, -0.17675673961639404, 0.07995408028364182, 0.2545226216316223, -0.4264834225177765, -0.3577377200126648, -0.0722278505563736, 0.1784643828868866, 0.17577892541885376, 0.2643323242664337, -0.11026816070079803, 0.14313967525959015, 0.13974100351333618, 0.027974065393209457, -0.05313175171613693, -0.4697377681732178, 0.46223971247673035, 0.4641166925430298, 0.23149307072162628, -0.22973741590976715, 0.29199522733688354, -0.10638386011123657, -0.025294966995716095, 0.3411967158317566, 0.04529662802815437, 0.30813518166542053, 0.3932340443134308, -0.07956063747406006, 0.23209959268569946, -0.06493315100669861, 0.17296555638313293, 0.2591893672943115, 0.06761592626571655, -0.01299285888671875, 0.4314126670360565, 0.19488900899887085, 0.0991179347038269, -0.3908451199531555, -0.1213308572769165, 0.0900939404964447, 0.026660267263650894, -0.0674980878829956, -0.01787872239947319, -0.1167333796620369, -0.07532250881195068, -0.2270808070898056, -0.19472700357437134, -0.06404352188110352, 0.41657236218452454, 0.07787171006202698, 0.3367530107498169, -0.8388385772705078, 0.21336111426353455, 0.0934726744890213, 0.6804895997047424, -0.002291891723871231, -0.040526680648326874, 0.18609724938869476, -0.08801250159740448, 0.0399419330060482, -0.14306624233722687, 0.019795112311840057, 0.08069667965173721, -0.10968482494354248, 0.154792919754982, -0.12039236724376678, 0.04120192676782608, 0.07427721470594406, -0.18067339062690735, -0.06968672573566437, -0.05884230509400368, 0.3839527368545532, 0.16054077446460724, -0.17909692227840424, 0.30885037779808044, 0.17871835827827454, 0.22412805259227753, -0.19150204956531525, 0.5061227679252625, -0.10472632944583893, -0.23237136006355286, 0.014859482645988464, 0.21020762622356415, 0.02483898401260376, -0.1209438294172287, 0.17797742784023285, -0.07592063397169113, -0.037632569670677185, -0.32175546884536743, 0.1601022183895111, 0.09332059323787689, 0.3873954713344574, 0.17281635105609894, 0.1339750587940216, -0.13469034433364868, 0.04109327495098114, -0.5925536155700684, -0.16830676794052124, 0.1568991243839264, 0.10533365607261658, 0.2774088382720947, 0.2586491107940674, -0.08300589770078659, -0.05297116935253143, 0.27859610319137573, -0.3967530131340027, 0.010983939282596111, 0.11001858860254288, -0.37514516711235046, -0.018486347049474716, 0.2249591052532196, -0.0422993004322052, -0.15435104072093964, -0.3847073018550873, -0.12580953538417816, -0.04904313012957573, 0.14109420776367188, -0.23872296512126923, 0.23211398720741272, -0.08291788399219513, 0.028077470138669014, 0.0666799321770668, 0.11931715905666351, 0.11009635031223297, 0.1485891342163086, -0.06717891991138458, 0.03495610132813454, -0.019241847097873688, -0.3838743567466736, 0.29880696535110474, 0.07557408511638641, 0.3374615013599396, -0.21206913888454437, -0.07742765545845032, -0.12500327825546265, -0.06642597168684006, 0.016340147703886032, 0.10721747577190399, -0.5628058910369873, 0.20004338026046753, 0.010699160397052765, 0.04130970686674118, -0.3647117614746094, 0.284126877784729, -0.11877799034118652, 0.24723361432552338, 0.007490582764148712, -0.21312163770198822, 0.29850831627845764, -0.20113781094551086, -0.20626646280288696, 0.00831360463052988, 0.11326327919960022, 0.3183180093765259, -0.05328892916440964, -0.12473007291555405, -0.144364595413208, 0.31129562854766846, 0.14950866997241974, -0.20810499787330627, 0.30526331067085266, -0.2681298851966858, -0.050537921488285065, -0.17513945698738098, 0.018280312418937683, 0.015846796333789825, -0.17984913289546967, -0.08231035619974136, -0.2525416612625122 ]
https://github.com/huggingface/datasets/issues/5425
Sort on multiple keys with datasets.Dataset.sort()
You can avoid the name collision by renaming `typing.Sequence` to `Sequence_` when importing: ```python from typing import Sequence as Sequence_ ```
### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add.
21
Sort on multiple keys with datasets.Dataset.sort() ### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to pandas and be able to specify multiple columns for sorting. We’re already using pandas under the hood to do the sorting in datasets. The suggested workaround: > convert your dataset to pandas and use `df.sort_values()` ### Motivation Preserved ordering when sorting is very handy when one needs to sort on multiple columns, A and B, so that e.g. whenever A is equal for two or more rows, B is kept sorted. Having a parameter to do this in πŸ€—datasets would be cleaner than going through pandas and back, and it wouldn't add much complexity to the library. Alternatives: - the possibility to specify multiple keys to sort by with decreasing priority (suggested solution), - the ability to provide a key function for sorting, so that one can manually specify the sorting criteria. ### Your contribution I'll be happy to contribute by submitting a PR. Will get documented on `CONTRIBUTING.MD`. Would love to get thoughts on this, if anyone has anything to add. You can avoid the name collision by renaming `typing.Sequence` to `Sequence_` when importing: ```python from typing import Sequence as Sequence_ ```
[ -0.00019793584942817688, -0.030909940600395203, -0.21666118502616882, -0.004868805408477783, 0.23341327905654907, 0.065778948366642, 0.14013485610485077, 0.21374519169330597, -0.002911064773797989, 0.09664606302976608, -0.058280348777770996, 0.2569771707057953, -0.04670356214046478, 0.33062544465065, 0.027998048812150955, -0.24457556009292603, -0.0717366561293602, 0.059294551610946655, 0.061363086104393005, 0.15196388959884644, -0.2536800503730774, 0.03264344111084938, -0.3260344862937927, 0.0028737112879753113, 0.13180513679981232, -0.17984595894813538, -0.14807258546352386, -0.002550356090068817, -0.028886662796139717, -0.3682951033115387, 0.03085593320429325, 0.48945316672325134, -0.15963923931121826, 0.3473047614097595, -0.00009415068052476272, -0.29887497425079346, 0.07969097048044205, -0.09639713913202286, -0.06268046796321869, -0.36754512786865234, -0.13935314118862152, -0.022714432328939438, -0.19873785972595215, -0.21213090419769287, -0.20975175499916077, -0.3240129053592682, -0.06727752834558487, -0.3213343322277069, 0.19887199997901917, 0.02111586183309555, 0.379991739988327, -0.0025158394128084183, 0.1009761244058609, 0.08997930586338043, 0.2451743185520172, 0.11116418242454529, -0.07725706696510315, -0.19464300572872162, 0.28886157274246216, 0.11978821456432343, 0.0969524011015892, 0.07612328231334686, -0.18489569425582886, -0.35554203391075134, 0.3515477478504181, -0.08764924854040146, -0.05416540056467056, -0.0970977246761322, 0.04495614394545555, 0.1740284264087677, 0.4022987186908722, -0.4830070436000824, -0.4158599376678467, -0.28456220030784607, 0.21852296590805054, -0.2753126919269562, 0.23123279213905334, -0.04076316952705383, 0.10562857985496521, -0.12205764651298523, 0.05012361332774162, 0.03258713334798813, -0.09662321954965591, 0.24383074045181274, -0.05483115836977959, 0.20529192686080933, -0.1011163741350174, -0.08398758620023727, 0.2107509821653366, -0.3662533760070801, -0.0163433700799942, -0.44167250394821167, 0.36741048097610474, 0.19005154073238373, -0.38637274503707886, -0.15823963284492493, 0.20675143599510193, 0.3287528157234192, 0.18210211396217346, -0.048823267221450806, -0.24118618667125702, 0.11609534174203873, 0.08065621554851532, -0.05291584134101868, 0.20721827447414398, 0.30990979075431824, 0.2109273076057434, 0.06828480213880539, 0.33207523822784424, 0.09572920948266983, 0.013782382011413574, 0.10189101099967957, 0.2538716197013855, -0.39025139808654785, 0.03171702101826668, 0.24696576595306396, -0.06566257774829865, -0.086829274892807, -0.037011053413152695, 0.005965148564428091, 0.16206884384155273, -0.09182603657245636, 0.2598690092563629, 0.3964938819408417, 0.05299654230475426, 0.05725853890180588, -0.16382893919944763, -0.0405900776386261, 0.08484993875026703, 0.24216732382774353, -0.14165236055850983, -0.04616406932473183, -0.015861619263887405, 0.06727752834558487, 0.11911167204380035, -0.23224034905433655, -0.08990343660116196, 0.28642645478248596, 0.15338072180747986, 0.023472242057323456, 0.0021937619894742966, -0.07977470755577087, 0.153574138879776, 0.23867978155612946, -0.09856449067592621, 0.09438438713550568, -0.09595941007137299, -0.08271700888872147, -0.31269681453704834, 0.21589234471321106, -0.15030810236930847, -0.25647789239883423, 0.11977937817573547, 0.33131247758865356, -0.08499071002006531, 0.1506635546684265, -0.34785863757133484, 0.12800398468971252, 0.21148499846458435, -0.06871189922094345, -0.03715357929468155, -0.05455543100833893, -0.23205746710300446, -0.2451440840959549, -0.010323183611035347, -0.028165623545646667, -0.21485494077205658, 0.024166934192180634, -0.18317830562591553, 0.13074485957622528, -0.13827916979789734, 0.0738430917263031, -0.12213562428951263, 0.046572089195251465, -0.020855428650975227, 0.21182627975940704, 0.32284778356552124, -0.24837295711040497, -0.4153393507003784, 0.11544652283191681, -0.07423172891139984, -0.022056162357330322, 0.014173828065395355, 0.32835543155670166, 0.2813536524772644, -0.34233787655830383, 0.1769024282693863, 0.1952509582042694, 0.02671641670167446, 0.18892037868499756, -0.02520427294075489, -0.1665353626012802, 0.09035918116569519, 0.022933147847652435, 0.02067902311682701, -0.29979851841926575, 0.02049749344587326, -0.23762714862823486, 0.12706595659255981, -0.188690647482872, -0.2759995460510254, 0.29919886589050293, -0.004620693624019623, 0.2831164002418518, 0.11037761718034744, -0.30348849296569824, -0.231693834066391, 0.2739206850528717, 0.1578044444322586, -0.22025719285011292, -0.3599402904510498, -0.343311071395874, -0.13025635480880737, -0.11296796053647995, -0.2753742039203644, 0.3149648904800415, 0.3168853223323822, -0.007247060537338257, -0.06360036134719849, 0.05614978447556496, -0.2375454306602478, 0.37440168857574463, 0.032149218022823334, -0.19600172340869904, -0.46632081270217896, 0.2541367709636688, -0.18801742792129517, 0.17484331130981445, 0.10299515724182129, 0.1503356695175171, 0.1980692744255066, 0.021915242075920105, 0.05484341084957123, 0.31743526458740234, 0.1097552552819252, -0.038249894976615906, -0.22245779633522034, 0.16896621882915497, 0.20248953998088837, 0.1952507197856903, -0.009558210149407387, 0.08054414391517639, -0.006934816483408213, 0.12355836480855942, -0.2973203659057617, 0.6987653970718384, -0.3025963008403778, 0.20330220460891724, 0.18368326127529144, -0.03850962221622467, -0.04833344370126724, 0.12125362455844879, -0.09634999185800552, -0.190680593252182, 0.2802867889404297, 0.1396285742521286, -0.04151350259780884, 0.13695521652698517, -0.3014468252658844, 0.32051342725753784, 0.5302290320396423, -0.022263556718826294, 0.29403677582740784, 0.029760092496871948, 0.133660688996315, 0.18361422419548035, 0.05259742587804794, 0.4377185106277466, 0.18511147797107697, 0.3903551399707794, -0.045770976692438126, -0.11042965203523636, -0.03275235742330551, -0.02282749116420746, 0.1436329483985901, 0.06852491945028305, -0.1447499692440033, 0.29956960678100586, 0.2535993158817291, 0.16613642871379852, -0.35395705699920654, -0.051059287041425705, 0.16623741388320923, -0.041494086384773254, -0.31957682967185974, 0.0224138293415308, -0.3542030453681946, -0.26782405376434326, -0.011742043308913708, -0.131297305226326, -0.28107357025146484, -0.28112268447875977, 0.21275530755519867, -0.03852934017777443, -0.09209907054901123, 0.08702287822961807, 0.002303486689925194, 0.11012646555900574, 0.019472910091280937, -0.3851390779018402, 0.0053535327315330505, -0.10205812007188797, 0.050629325211048126, 0.20305760204792023, 0.30067580938339233, 0.27659687399864197, 0.6186715364456177, 0.2039170116186142, -0.22746683657169342, -0.08462637662887573, -0.5428345203399658, -0.26148828864097595, -0.20161597430706024, 0.03857218474149704, 0.24865518510341644, -0.13054580986499786, -0.0033908672630786896, -0.27205830812454224, -0.021751129999756813, 0.14238563179969788, -0.3956379294395447, 0.06732652336359024, -0.04473899304866791, -0.09877627342939377, -0.25215235352516174, -0.23523098230361938, 0.037653446197509766, -0.25586172938346863, 0.13767944276332855, -0.05267063528299332, 0.2374952882528305, -0.07616902887821198, -0.276843786239624, -0.017549648880958557, 0.07074832171201706, 0.10793472081422806, -0.22378435730934143, 0.11090321838855743, 0.37098002433776855, -0.20080925524234772, -0.18208496272563934, -0.02710132487118244, -0.0456688217818737, -0.28836047649383545, 0.038582153618335724, -0.10519395023584366, -0.2910917401313782, -0.21999993920326233, 0.23085597157478333, 0.10222654044628143, 0.14877718687057495, 0.40972980856895447, 0.10904620587825775, -0.1300741583108902, -0.10441236197948456, -0.1580672264099121, -0.12513470649719238, 0.08662250638008118, 0.08783278614282608, -0.03927309811115265, 0.48175501823425293, 0.3276596665382385, 0.2724081873893738, -0.11803227663040161, 0.11928460001945496, 0.14843952655792236, 0.1919809877872467, 0.049832187592983246, -0.18128836154937744, -0.24101506173610687, -0.04092567041516304, 0.12179452180862427, 0.3628305196762085, 0.204789400100708, 0.18294790387153625, 0.06999868899583817, 0.004910711199045181, -0.04431455582380295, -0.015650033950805664, -0.21299302577972412, -0.007512366399168968, -0.03903060406446457, 0.11969849467277527, 0.08023762702941895, -0.03178953751921654, -0.2887936234474182, -0.20072311162948608, -0.049678634852170944, 0.03751341998577118, -0.24232834577560425, -0.16128383576869965, -0.23508867621421814, 0.07399918138980865, -0.46839678287506104, 0.13932952284812927, 0.3358938992023468, -0.03141059726476669, 0.2110697478055954, -0.044366464018821716, -0.04412800073623657, -0.3318963944911957, 0.5897122025489807, -0.19224107265472412, 0.0024098120629787445, 0.05413560941815376, -0.2519962191581726, -0.36684170365333557, 0.253896564245224, -0.00509609654545784, 0.04353563115000725, -0.254884272813797, 0.42414242029190063, -0.37718385457992554, -0.1641135811805725, -0.0851740762591362, 0.1656600534915924, -0.036008208990097046, -0.400096595287323, -0.33940550684928894, -0.1788921058177948, -0.13795173168182373, 0.003425978124141693, 0.080038882791996, 0.023757554590702057, -0.2711024582386017, -0.0598728284239769, -0.07114124298095703, -0.18858855962753296, 0.09843479096889496, -0.06431743502616882, 0.24715572595596313, 0.1730438619852066, 0.09949037432670593, 0.3298845887184143, 0.04319062456488609, -0.08704619854688644, 0.12266252934932709, -0.08579917252063751, -0.23244348168373108, -0.24903357028961182, -0.1387832760810852, -0.08998217433691025, 0.19301697611808777, -0.16861823201179504, 0.2107025384902954, -0.0845995545387268, -0.03916122764348984, 0.025232303887605667, -0.25262144207954407, 0.2016146332025528, -0.04102842137217522, -0.4276324212551117, -0.4046061336994171, 0.5628264546394348, 0.07022403180599213, -0.23807068169116974, 0.2595970034599304, 0.4703146815299988, -0.284457266330719, 0.1345463991165161, 0.16429933905601501, 0.7000340819358826, -0.26784610748291016, 0.10208463668823242, 0.13875380158424377, -0.24944880604743958, 0.4081075191497803, 0.10302244126796722, 0.2843095660209656, -0.4728285074234009, -0.3841214179992676, -0.06732267141342163, 0.03095068410038948, 0.016739387065172195, 0.1049022525548935, -0.35869067907333374, 0.3208799362182617, -0.1152096837759018, -0.07722291350364685, -0.1776028424501419, 0.20200374722480774, 0.02677379548549652, -0.2110735923051834, -0.429408997297287, 0.24080857634544373, 0.11824189871549606, -0.17359086871147156, -0.13229653239250183, 0.1775999367237091, 0.30727896094322205, -0.15560747683048248, -0.07836535573005676, -0.17050263285636902, -0.2281208336353302, 0.14217214286327362, -0.17540541291236877, -0.010937988758087158, 0.3449385464191437, 0.3465230166912079, 0.42347609996795654, 0.11102747917175293, 0.08530236780643463, 0.06233962997794151, 0.08957761526107788, 0.4289786219596863, 0.04096279665827751, -0.27478721737861633, 0.14048774540424347, -0.07987891882658005, -0.013580851256847382, -0.14310741424560547, 0.39408496022224426, -0.4555269479751587, -0.14877282083034515, 0.21272295713424683, -0.11486075818538666, 0.08344802260398865, -0.12798546254634857, 0.23496149480342865, 0.13739871978759766, -0.23615267872810364, 0.2867143154144287, 0.018607888370752335, 0.028821654617786407, 0.43470320105552673, -0.37884455919265747, 0.07197839021682739, 0.008968517184257507, 0.4300571084022522, 0.1219136044383049, -0.00967978686094284, 0.09435740113258362, 0.3444563150405884, -0.48129910230636597, -0.2446693778038025, 0.037784360349178314, 0.11405329406261444, -0.07504553347826004, 0.178236722946167, -0.110538050532341, -0.06999411433935165, 0.32004737854003906, 0.38369420170783997, -0.06626389920711517, -0.18576189875602722, 0.03563347086310387, -0.03744809329509735, -0.015125860460102558, 0.08123071491718292, 0.3348526954650879, 0.20328398048877716, -0.026398882269859314, 0.06843265891075134, -0.07311423867940903, 0.03867654874920845, -0.48176050186157227, 0.1415802538394928, -0.09984814375638962, 0.10397115349769592, 0.2023424357175827, 0.05121268704533577, -0.0825859010219574, 0.00025297608226537704, 0.29157882928848267, -0.024306409060955048, -0.13744549453258514, -0.45552799105644226, -0.18656544387340546, -0.01767861843109131, -0.2107507288455963, 0.33501261472702026, 0.07690592110157013, -0.3891604542732239, -0.22816982865333557, -0.11667603254318237, 0.14702610671520233, 0.31643301248550415, -0.012190014123916626, 0.22152407467365265, 0.14907024800777435, -0.07376762479543686, 0.12842369079589844, 0.20239832997322083, -0.08950529992580414, -0.191620334982872, 0.13391853868961334, 0.3797675669193268, -0.1835511475801468, 0.1068343073129654, -0.16694195568561554, 0.1474018394947052, 0.03478996455669403, 0.03719375282526016, 0.1723555326461792, -0.1681179404258728, -0.26886600255966187, 0.3958934247493744, 0.42852815985679626, 0.23969188332557678, -0.10365486890077591, -0.19743797183036804, 0.038175489753484726, 0.32036545872688293, -0.4529723823070526, -0.4101022183895111, 0.09216271340847015, 0.23632781207561493, 0.19965222477912903, 0.22372856736183167, -0.08267202973365784, 0.11741803586483002, 0.09652477502822876, 0.07000550627708435, 0.10391609370708466, -0.2559024691581726, 0.466966837644577, 0.342224657535553, 0.1774551421403885, -0.1717069000005722, 0.12652967870235443, -0.10260754823684692, -0.062234051525592804, 0.46213990449905396, 0.07697334885597229, 0.3383371829986572, 0.20500212907791138, -0.08135446906089783, 0.1684659719467163, -0.10185311734676361, 0.2996199429035187, 0.2351139634847641, -0.020676016807556152, -0.027087874710559845, 0.4995094835758209, 0.07016042619943619, -0.005186225287616253, -0.2773320972919464, -0.22246021032333374, 0.08151738345623016, -0.032443054020404816, -0.10519908368587494, 0.09437747299671173, -0.10553574562072754, -0.026135757565498352, -0.16799479722976685, -0.1018953025341034, -0.049351125955581665, 0.3895932137966156, 0.13236293196678162, 0.3649866580963135, -0.7124843597412109, 0.23103898763656616, -0.059221357107162476, 0.5054802894592285, -0.026776110753417015, -0.0650545135140419, 0.2762172222137451, 0.012925487011671066, 0.03294769302010536, -0.15209802985191345, 0.0166989266872406, 0.03454282134771347, -0.1571235954761505, 0.07454916834831238, -0.15463627874851227, 0.007948840036988258, 0.009682204574346542, -0.15729275345802307, -0.14420393109321594, 0.17550882697105408, 0.43019920587539673, 0.28448373079299927, -0.22840385138988495, 0.12357382476329803, 0.3397342264652252, 0.11037811636924744, -0.2185163050889969, 0.29063481092453003, -0.12899914383888245, -0.18426409363746643, -0.027084168046712875, 0.22299164533615112, -0.07430972158908844, -0.11390119045972824, 0.07720160484313965, -0.06664331257343292, -0.009620779193937778, -0.2887958586215973, 0.19644607603549957, 0.15796388685703278, 0.3258568346500397, 0.10014896094799042, 0.054776571691036224, -0.08178889006376266, -0.10948535799980164, -0.6085555553436279, -0.04113566130399704, 0.10861898958683014, 0.12264777719974518, 0.10774514824151993, 0.22175979614257812, -0.06932046264410019, -0.08630494773387909, 0.1998080611228943, -0.37470266222953796, -0.05650755763053894, 0.028824716806411743, -0.4556176960468292, -0.07573629915714264, 0.14116258919239044, -0.1616218537092209, -0.1870158314704895, -0.28862684965133667, -0.11865389347076416, -0.16349665820598602, 0.26179587841033936, -0.2625446915626526, 0.2733832895755768, -0.09426750242710114, -0.04291988164186478, -0.02774340659379959, 0.0777650848031044, 0.15696193277835846, 0.020363610237836838, -0.005091512575745583, 0.160963773727417, 0.10886920988559723, -0.3279520273208618, 0.19222906231880188, 0.11042237281799316, 0.27450963854789734, -0.18299978971481323, -0.11099381744861603, 0.0360373891890049, 0.10377320647239685, 0.10423307120800018, 0.055016592144966125, -0.5093207359313965, 0.1679435819387436, 0.1211010292172432, 0.12432144582271576, -0.37217018008232117, 0.3118908405303955, -0.0823865532875061, 0.30602189898490906, 0.039301782846450806, -0.2519099712371826, 0.23024976253509521, -0.16601505875587463, -0.23895856738090515, -0.06742746382951736, 0.14316298067569733, 0.2478581666946411, 0.005770397372543812, -0.08291473984718323, -0.05086836218833923, 0.27094072103500366, 0.10228506475687027, -0.1799914687871933, 0.4590173661708832, -0.2759888172149658, -0.08645066618919373, -0.13278354704380035, -0.12562023103237152, 0.07781101763248444, -0.2489377111196518, 0.012936722487211227, -0.23773367702960968 ]
https://github.com/huggingface/datasets/issues/5424
When applying `ReadInstruction` to custom load it's not DatasetDict but list of Dataset?
Hi! You can get a `DatasetDict` if you pass a dictionary with read instructions as follows: ```python instructions = [ ReadInstruction(split_name="train", from_=0, to=10, unit='%', rounding='closest'), ReadInstruction(split_name="dev", from_=0, to=10, unit='%', rounding='closest'), ReadInstruction(split_name="test", from_=0, to=5, unit='%', rounding='closest') ] dataset = load_dataset('csv', data_dir="data/", data_files={"train":"train.tsv", "dev":"dev.tsv", "test":"test.tsv"}, delimiter="\t", split={inst.split_name: inst for inst in instructions}) ```
### Describe the bug I am loading datasets from custom `tsv` files stored locally and applying split instructions for each split. Although the ReadInstruction is being applied correctly and I was expecting it to be `DatasetDict` but instead it is a list of `Dataset`. ### Steps to reproduce the bug Steps to reproduce the behaviour: 1. Import `from datasets import load_dataset, ReadInstruction` 2. Instruction to load the dataset ``` instructions = [ ReadInstruction(split_name="train", from_=0, to=10, unit='%', rounding='closest'), ReadInstruction(split_name="dev", from_=0, to=10, unit='%', rounding='closest'), ReadInstruction(split_name="test", from_=0, to=5, unit='%', rounding='closest') ] ``` 3. Load `dataset = load_dataset('csv', data_dir="data/", data_files={"train":"train.tsv", "dev":"dev.tsv", "test":"test.tsv"}, delimiter="\t", split=instructions)` ### Expected behavior **Current behaviour** ![Screenshot from 2023-01-16 10-45-27](https://user-images.githubusercontent.com/25720695/212614754-306898d8-8c27-4475-9bb8-0321bd939561.png) : **Expected behaviour** ![Screenshot from 2023-01-16 10-45-42](https://user-images.githubusercontent.com/25720695/212614813-0d336bf7-5266-482e-bb96-ef51f64de204.png) ### Environment info ``datasets==2.8.0 `` `Python==3.8.5 ` `Platform - Ubuntu 20.04.4 LTS`
51
When applying `ReadInstruction` to custom load it's not DatasetDict but list of Dataset? ### Describe the bug I am loading datasets from custom `tsv` files stored locally and applying split instructions for each split. Although the ReadInstruction is being applied correctly and I was expecting it to be `DatasetDict` but instead it is a list of `Dataset`. ### Steps to reproduce the bug Steps to reproduce the behaviour: 1. Import `from datasets import load_dataset, ReadInstruction` 2. Instruction to load the dataset ``` instructions = [ ReadInstruction(split_name="train", from_=0, to=10, unit='%', rounding='closest'), ReadInstruction(split_name="dev", from_=0, to=10, unit='%', rounding='closest'), ReadInstruction(split_name="test", from_=0, to=5, unit='%', rounding='closest') ] ``` 3. Load `dataset = load_dataset('csv', data_dir="data/", data_files={"train":"train.tsv", "dev":"dev.tsv", "test":"test.tsv"}, delimiter="\t", split=instructions)` ### Expected behavior **Current behaviour** ![Screenshot from 2023-01-16 10-45-27](https://user-images.githubusercontent.com/25720695/212614754-306898d8-8c27-4475-9bb8-0321bd939561.png) : **Expected behaviour** ![Screenshot from 2023-01-16 10-45-42](https://user-images.githubusercontent.com/25720695/212614813-0d336bf7-5266-482e-bb96-ef51f64de204.png) ### Environment info ``datasets==2.8.0 `` `Python==3.8.5 ` `Platform - Ubuntu 20.04.4 LTS` Hi! You can get a `DatasetDict` if you pass a dictionary with read instructions as follows: ```python instructions = [ ReadInstruction(split_name="train", from_=0, to=10, unit='%', rounding='closest'), ReadInstruction(split_name="dev", from_=0, to=10, unit='%', rounding='closest'), ReadInstruction(split_name="test", from_=0, to=5, unit='%', rounding='closest') ] dataset = load_dataset('csv', data_dir="data/", data_files={"train":"train.tsv", "dev":"dev.tsv", "test":"test.tsv"}, delimiter="\t", split={inst.split_name: inst for inst in instructions}) ```
[ -0.018154535442590714, -0.21285168826580048, -0.08146777749061584, 0.4585762023925781, 0.15075650811195374, 0.18857413530349731, 0.3720724880695343, 0.2850267291069031, 0.6990030407905579, 0.2172621637582779, -0.38054004311561584, 0.26292750239372253, -0.13858652114868164, 0.11160587519407272, 0.04381880909204483, 0.08580897748470306, -0.12192719429731369, 0.13956253230571747, -0.08215098083019257, -0.2002752721309662, -0.28727754950523376, 0.29683682322502136, -0.31953054666519165, -0.26800739765167236, 0.18295103311538696, 0.044559575617313385, -0.06938658654689789, 0.34423235058784485, 0.03509010374546051, -0.43121951818466187, 0.49168646335601807, 0.1508590131998062, 0.19886739552021027, 0.4428856670856476, -0.00012019780115224421, 0.24802358448505402, 0.24457737803459167, -0.1192295029759407, -0.2054009735584259, -0.12245936691761017, -0.2197362780570984, -0.2884025573730469, 0.4716881215572357, -0.28742021322250366, -0.10797412693500519, 0.2733294665813446, -0.25901877880096436, -0.3495695888996124, 0.3254527747631073, 0.3309076726436615, 0.11791771650314331, -0.019805680960416794, -0.08662991225719452, 0.2877044677734375, 0.38505661487579346, 0.2669069766998291, -0.2952638268470764, -0.04274217411875725, 0.22163008153438568, 0.08896757662296295, -0.015437722206115723, 0.039637960493564606, -0.11046543717384338, 0.17479310929775238, 0.06438565254211426, 0.13538168370723724, 0.10681919008493423, -0.05578329414129257, -0.32750049233436584, 0.0753166675567627, 0.7178117632865906, -0.11802534013986588, -0.24205926060676575, -0.39049839973449707, -0.1768369823694229, -0.2662239372730255, 0.08038783073425293, 0.14562790095806122, 0.025051753968000412, 0.297451376914978, -0.21390919387340546, 0.2241220325231552, -0.10987371951341629, 0.02785702422261238, -0.13174457848072052, -0.03239182382822037, -0.19516818225383759, 0.21984243392944336, 0.014920532703399658, 0.15467560291290283, 0.45143818855285645, -0.07511276006698608, -0.25971490144729614, 0.08546686172485352, -0.6026578545570374, -0.04445592686533928, -0.03943203389644623, 0.17383000254631042, -0.013740148395299911, 0.2715441584587097, 0.23900194466114044, 0.20559054613113403, -0.34343481063842773, 0.05505247041583061, 0.3122609853744507, 0.20618921518325806, 0.2641836702823639, 0.5339542627334595, -0.1471308469772339, 0.20835767686367035, -0.19942283630371094, 0.06780559569597244, 0.13413560390472412, -0.13623623549938202, -0.11996327340602875, 0.10634353756904602, 0.09505154937505722, -0.3208671510219574, -0.5125259757041931, -0.17100220918655396, -0.22041210532188416, -0.17507344484329224, 0.22124218940734863, 0.1280878782272339, 0.025913383811712265, 0.23168250918388367, 0.2965335249900818, -0.013178959488868713, -0.04297972097992897, -0.3266473710536957, -0.17875637114048004, -0.1331842988729477, -0.21017828583717346, 0.12828537821769714, 0.16063813865184784, 0.07799889147281647, 0.27970704436302185, -0.009727618657052517, -0.2813223600387573, -0.43038156628608704, -0.005575663410127163, -0.3302857279777527, 0.40749675035476685, 0.21529050171375275, 0.2143631875514984, 0.11309493333101273, 0.1629825085401535, -0.3655635714530945, -0.12413983047008514, 0.31392499804496765, -0.5421149730682373, -0.2726360559463501, 0.26932454109191895, 0.07982630282640457, -0.28853899240493774, 0.053178973495960236, -0.052001260221004486, 0.08647012710571289, 0.23012256622314453, -0.04339718446135521, -0.046545542776584625, -0.1794786900281906, -0.5111979246139526, -0.1412135660648346, 0.13042713701725006, 0.6927303075790405, -0.8101463913917542, 0.20253944396972656, 0.02566549740731716, -0.1759815663099289, 0.26691949367523193, 0.5315999984741211, -0.19861875474452972, 0.5331923365592957, -0.3775187134742737, -0.06579168885946274, 0.19145041704177856, -0.23333729803562164, -0.456510990858078, 0.6164138317108154, -0.03302915021777153, 0.13535074889659882, 0.10484379529953003, 0.002795560285449028, 0.16205689311027527, 0.027197344228625298, 0.2395661473274231, 0.07055342942476273, 0.1282293051481247, 0.0621459037065506, -0.16234906017780304, -0.028316829353570938, 0.1960461586713791, 0.0843430608510971, -0.14060258865356445, 0.25006288290023804, 0.19541510939598083, -0.28525295853614807, 0.6361597180366516, 0.04129142314195633, -0.02617352269589901, 0.5008217096328735, -0.022018279880285263, 0.5868465900421143, 0.2219855934381485, 0.05292613059282303, -0.4514749050140381, 0.17055895924568176, 0.1422571986913681, -0.2553802728652954, -0.022079385817050934, -0.13642001152038574, -0.3847816586494446, 0.0328356996178627, -0.4618287980556488, 0.1942272186279297, 0.040032148361206055, 0.1940614879131317, -0.26995810866355896, -0.12893347442150116, -0.02925139293074608, 0.53742516040802, -0.5659449696540833, 0.13619332015514374, -0.39196717739105225, 0.4366198778152466, 0.18080101907253265, -0.10118735581636429, -0.07179722189903259, 0.14749576151371002, 0.22109171748161316, -0.22206078469753265, -0.11218297481536865, 0.47220921516418457, 0.6458126306533813, -0.08128948509693146, -0.27471548318862915, -0.11571185290813446, 0.11076493561267853, -0.31882062554359436, -0.2508198916912079, 0.07467111200094223, 0.37165477871894836, -0.28444406390190125, -0.13806593418121338, 0.11031673103570938, -0.3262052834033966, 0.28173357248306274, -0.30505192279815674, -0.05170460790395737, 0.08311692625284195, -0.08578836172819138, -0.2542797923088074, -0.33590811491012573, -0.08753691613674164, 0.22432342171669006, 0.3658996522426605, 0.012512240558862686, -0.07518640905618668, -0.04997549206018448, 0.49220332503318787, -0.01585461013019085, -0.1292150318622589, -0.08622284978628159, 0.07892032712697983, 0.01942581683397293, -0.05030561983585358, 0.16992346942424774, 0.37423163652420044, 0.08196097612380981, 0.06424634903669357, 0.12996602058410645, 0.39472469687461853, -0.09100047498941422, 0.15901246666908264, 0.2727136015892029, 0.12818118929862976, 0.20443570613861084, -0.07519766688346863, 0.15350843966007233, -0.2722766399383545, -0.016880568116903305, -0.1892385482788086, 0.040030721575021744, -0.6979170441627502, -0.07314573973417282, -0.4072197675704956, 0.2222491204738617, -0.45326054096221924, -0.34635603427886963, 0.029425639659166336, -0.23976017534732819, -0.47769540548324585, -0.07504904270172119, -0.15491145849227905, -0.07844636589288712, -0.15931019186973572, -0.04416622221469879, 0.02036820910871029, -0.1741059571504593, 0.07314300537109375, 0.14464309811592102, -0.21590441465377808, -0.08075468987226486, 0.09207130968570709, -0.009750524535775185, 0.0450446754693985, -0.2739611566066742, -0.2349415421485901, -0.08156751841306686, -0.14819036424160004, 0.10367564857006073, -0.24917374551296234, 0.02468886971473694, 0.2285548746585846, 0.16038364171981812, 0.10701853036880493, -0.1380833387374878, -0.03248254954814911, 0.16531285643577576, -0.08585803210735321, -0.10159212350845337, 0.010797444730997086, -0.05953032150864601, -0.26601505279541016, -0.5375251173973083, -0.3412534296512604, -0.26847806572914124, 0.13031798601150513, 0.3762086033821106, 0.04495282098650932, 0.18124528229236603, -0.11151699721813202, 0.14028145372867584, 0.3324500620365143, 0.02317371591925621, -0.03184500336647034, -0.3305368721485138, 0.20297765731811523, -0.18345779180526733, -0.17628923058509827, 0.133780375123024, 0.07558567821979523, 0.015329422429203987, 0.1842750608921051, -0.5511765480041504, 0.5751372575759888, -0.28244784474372864, 0.022919390350580215, -0.11537806689739227, 0.11362043768167496, 0.2675672769546509, 0.017876265570521355, 0.19898320734500885, -0.26704156398773193, -0.3796841502189636, 0.3693637251853943, -0.2765813171863556, 0.11200764775276184, 0.13070474565029144, 0.33222144842147827, 0.05585116520524025, 0.4567396640777588, 0.05886029824614525, 0.033004362136125565, 0.3106803297996521, -0.12418868392705917, 0.21201395988464355, -0.3642645478248596, -0.1441461443901062, -0.1372503936290741, 0.03676286339759827, -0.30884480476379395, 0.5526466369628906, -0.079422727227211, -0.17485858500003815, -0.013247493654489517, -0.027515724301338196, -0.39825931191444397, -0.11088976263999939, -0.1388946920633316, -0.08822144567966461, 0.29188984632492065, -0.08214262872934341, 0.2311137318611145, 0.05732293799519539, -0.06205502524971962, 0.03189455345273018, 0.3048437237739563, 0.08968545496463776, -0.022172149270772934, -0.46191054582595825, -0.20630595088005066, 0.054830603301525116, 0.06451157480478287, 0.010921955108642578, 0.31651419401168823, 0.038213688880205154, -0.08527849614620209, 0.13305558264255524, 0.1848398894071579, 0.3734130859375, 0.08436119556427002, 0.17262838780879974, 0.12886615097522736, -0.13460534811019897, -0.21347253024578094, -0.3045237958431244, -0.10260353982448578, 0.2173626720905304, 0.1196901947259903, 0.0859643965959549, 0.04398762434720993, -0.22883179783821106, 0.242738738656044, 0.2298627495765686, -0.15195618569850922, -0.29421138763427734, -0.05169512704014778, -0.24647396802902222, 0.13692334294319153, -0.09846772998571396, 0.21289823949337006, 0.010962296277284622, -0.18781808018684387, -0.31159505248069763, -0.04026468098163605, -0.20625340938568115, -0.11250990629196167, -0.17020075023174286, 0.30959197878837585, 0.22789636254310608, 0.11240348219871521, 0.21571578085422516, 0.11740145087242126, 0.07669421285390854, 0.8284046053886414, -0.17043547332286835, -0.6095373034477234, -0.010340459644794464, -0.38678452372550964, 0.11020368337631226, 0.16382861137390137, -0.14787279069423676, -0.10872427374124527, 0.07005217671394348, -0.3663684129714966, -0.014432870782911777, -0.13871046900749207, 0.04654604196548462, -0.08974708616733551, -0.290980726480484, -0.7268632650375366, 0.3927622139453888, 0.046782802790403366, -0.17495563626289368, 0.3474961221218109, -0.1422727406024933, -0.5424743294715881, 0.47797930240631104, 0.054352860897779465, 0.5059105753898621, 0.038190118968486786, -0.03219674155116081, 0.52000892162323, 0.029459312558174133, -0.24382710456848145, 0.02317439764738083, -0.10755721479654312, -0.43673673272132874, -0.1264011561870575, -0.12742383778095245, -0.1162479817867279, 0.3178469240665436, 0.3296327590942383, -0.01131625846028328, 0.10191316157579422, -0.1304495930671692, -0.13435325026512146, -0.005431264638900757, -0.09614896774291992, 0.3693998157978058, -0.21762721240520477, -0.06977563351392746, 0.03921719640493393, -0.06935341656208038, 0.03471344709396362, 0.1485385298728943, -0.08104902505874634, -0.11575838923454285, -0.12885555624961853, -0.1360124945640564, 0.06442133337259293, -0.2508648931980133, 0.14701339602470398, -0.10893891751766205, -0.22056323289871216, 0.4836653769016266, 0.5107501149177551, 0.2529241442680359, 0.27758702635765076, -0.09800542145967484, 0.10573238134384155, 0.1792135238647461, 0.264137864112854, -0.21400471031665802, 0.038916412740945816, 0.07387825846672058, 0.18729469180107117, -0.21626076102256775, -0.2067890465259552, -0.3001056909561157, -0.13271571695804596, -0.003718078136444092, 0.2448257952928543, 0.41034364700317383, -0.5169227719306946, -0.27128100395202637, 0.09327264130115509, 0.2648767828941345, -0.07448619604110718, 0.02436630055308342, -0.011643700301647186, -0.13251154124736786, 0.08352462947368622, -0.24146457016468048, -0.41656264662742615, 0.016843494027853012, 0.2751762568950653, 0.41644543409347534, 0.11892323195934296, 0.6313620805740356, 0.167898491024971, 0.02743241935968399, -0.24308103322982788, 0.41689372062683105, 0.0007870784029364586, 0.0822969600558281, 0.12635235488414764, -0.19237343966960907, 0.39795899391174316, 0.2582307755947113, 0.41606616973876953, 0.05318013206124306, -0.10901365429162979, -0.3416596055030823, -0.2815452814102173, -0.23441262543201447, -0.18676207959651947, -0.10132360458374023, 0.28299814462661743, 0.30392515659332275, -0.02598872035741806, 0.06043583154678345, -0.15286436676979065, -0.16963088512420654, -0.0499945729970932, -0.12594285607337952, 0.18846739828586578, 0.08802583813667297, 0.1602431684732437, -0.20567388832569122, 0.053249791264534, 0.0574493482708931, 0.026152832433581352, 0.07957228273153305, -0.11408621817827225, -0.2439928948879242, 0.14143620431423187, 0.05906761437654495, 0.37446242570877075, -0.302182674407959, -0.21770387887954712, -0.18383778631687164, -0.19723272323608398, 0.20987653732299805, 0.2520213723182678, 0.015718739479780197, 0.5858420133590698, 0.1797083467245102, 0.12380753457546234, -0.3310369849205017, 0.26976457238197327, -0.2781100273132324, -0.03227633237838745, 0.036674585193395615, 0.20248910784721375, -0.10638464987277985, -0.0765877440571785, -0.35601967573165894, -0.0012275800108909607, 0.015545174479484558, 0.4290604889392853, 0.2001180648803711, -0.43663489818573, 0.23899054527282715, -0.0022667027078568935, 0.17922720313072205, 0.20023733377456665, -0.21787908673286438, -0.2578096091747284, -0.07428290694952011, 0.08518805354833603, 0.003287389874458313, -0.047733910381793976, 0.49304166436195374, -0.05103246495127678, 0.14779512584209442, 0.2424580454826355, 0.24858203530311584, -0.04251014068722725, 0.014792144298553467, -0.0092588160187006, 0.4615311026573181, -0.017991572618484497, 0.22787858545780182, 0.4182675778865814, -0.13459526002407074, 0.03344367817044258, -0.15215861797332764, -0.13496336340904236, -0.008443586528301239, 0.6018484830856323, 0.03515622764825821, 0.24667726457118988, 0.050773315131664276, 0.0537949874997139, 0.009954981505870819, -0.6091387867927551, 0.21775096654891968, -0.11841005086898804, -0.5037545561790466, 0.08822259306907654, 0.04898735135793686, 0.15572839975357056, -0.11341781169176102, -0.06297096610069275, 0.008482752367854118, -0.14477066695690155, -0.09300202876329422, 0.029215723276138306, -0.3953115940093994, -0.06666050106287003, -0.05397699028253555, -0.17052845656871796, -0.01099911704659462, -0.03617732971906662, 0.17570972442626953, -0.00786937028169632, -0.039784133434295654, -0.2685212194919586, -0.03068532794713974, 0.14353999495506287, 0.09845557808876038, -0.32027897238731384, 0.1836041361093521, -0.3919203281402588, 0.19427067041397095, 0.2806300222873688, -0.23852868378162384, 0.004061702638864517, 0.2134382426738739, 0.2566838562488556, -0.3988497257232666, 0.15729784965515137, -0.1561763882637024, -0.18364207446575165, 0.40374279022216797, -0.40205931663513184, 0.1498982459306717, 0.5567154884338379, 0.0781373679637909, -0.01398217398673296, 0.14678910374641418, 0.18565241992473602, 0.11682567000389099, -0.4575176537036896, 0.25000157952308655, -0.029600240290164948, -0.3541383445262909, -0.056196071207523346, -0.016222558915615082, -0.2943510413169861, -0.11252211034297943, 0.39401182532310486, 0.048537563532590866, 0.35753703117370605, 0.08557149767875671, 0.026483792811632156, -0.0856374055147171, 0.5006228089332581, 0.22906269133090973, 0.20700091123580933, -0.07382656633853912, -0.18914435803890228, -0.25170692801475525, 0.07883675396442413, 0.10223010182380676, -0.16218893229961395, 0.11230210959911346, 0.09165313094854355, 0.13633334636688232, 0.15902696549892426, 0.028435036540031433, -0.14053910970687866, 0.045793935656547546, 0.303213894367218, -0.07835575193166733, -0.15608903765678406, -0.1087048351764679, 0.20776380598545074, -0.11873495578765869, -0.377183735370636, 0.09935653209686279, 0.2948119044303894, -0.06789865344762802, -0.09832763671875, 0.07656212151050568, 0.15157051384449005, 0.20279660820960999, 0.21867609024047852, 0.14440876245498657, 0.4773205816745758, -0.18130561709403992, 0.244950532913208, -0.32223179936408997, -0.23421207070350647, -0.09320810437202454, 0.38008826971054077, 0.052442919462919235, 0.445801317691803, -0.26042458415031433, -0.021896187216043472, -0.12163062393665314, 0.021842416375875473, 0.25870829820632935, 0.21064011752605438, -0.3338954448699951, 0.10020286589860916, -0.29078829288482666, 0.16755425930023193, 0.24100638926029205, 0.323552668094635, 0.168592631816864, 0.04079699516296387, -0.012051738798618317, -0.1371481716632843, 0.4023565649986267, -0.19924895465373993, -0.2248762547969818, 0.21113276481628418, 0.03772040456533432, -0.017324648797512054, 0.007010922767221928, -0.3550155758857727, -0.03759539872407913, 0.685736894607544, -0.4275706112384796, -0.1219729632139206, 0.23192144930362701, 0.16401629149913788, 0.20388416945934296, -0.009154796600341797, 0.046514250338077545, 0.40645113587379456, -0.08581212908029556, 0.09997212886810303, -0.3892427682876587 ]
https://github.com/huggingface/datasets/issues/5422
Datasets load error for saved github issues
I can confirm that the error exists! I'm trying to read 3 parquet files locally: ```python from datasets import load_dataset, Features, Value, ClassLabel review_dataset = load_dataset( "parquet", data_files={ "train": os.path.join(sentiment_analysis_data_path, "train.parquet"), "validation": os.path.join(sentiment_analysis_data_path, "validation.parquet"), "test": os.path.join(sentiment_analysis_data_path, "test.parquet"), }, ) ``` But you can fix it, by specifying `features` for `load_dataset()` function like this: ```python from datasets import load_dataset, Features, Value, ClassLabel features = Features( { "label": ClassLabel( num_classes=3, names=["negative", "neutral", "positive"], ), "text": Value(dtype="string"), } ) review_dataset = load_dataset( "parquet", data_files={ "train": os.path.join(sentiment_analysis_data_path, "train.parquet"), "validation": os.path.join(sentiment_analysis_data_path, "validation.parquet"), "test": os.path.join(sentiment_analysis_data_path, "test.parquet"), }, features=features, ) print(review_dataset) ```
### Describe the bug Loading a previously downloaded & saved dataset as described in the HuggingFace course: issues_dataset = load_dataset("json", data_files="issues/datasets-issues.jsonl", split="train") Gives this error: datasets.builder.DatasetGenerationError: An error occurred while generating the dataset A work-around I found was to use streaming. ### Steps to reproduce the bug Reproduce by executing the code provided: https://huggingface.co/course/chapter5/5?fw=pt From the heading: 'let’s create a function that can download all the issues from a GitHub repository' ### Expected behavior No error ### Environment info Datasets version 2.8.0. Note that version 2.6.1 gives the same error (related to null timestamp). **[EDIT]** This is the complete error trace confirming the issue is related to the timestamp (`Couldn't cast array of type timestamp[s] to null`) ``` Using custom data configuration default-950028611d2860c8 Downloading and preparing dataset json/default to [...]/.cache/huggingface/datasets/json/default-950028611d2860c8/0.0.0/0f7e3662623656454fcd2b650f34e886a7db4b9104504885bd462096cc7a9f51... Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<?, ?it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 500.63it/s] Generating train split: 2619 examples [00:00, 7155.72 examples/s]Traceback (most recent call last): File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1831, in _prepare_split_single writer.write_table(table) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\arrow_writer.py", line 567, in write_table pa_table = table_cast(pa_table, self._schema) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2282, in table_cast return cast_table_to_schema(table, schema) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2241, in cast_table_to_schema arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2241, in <listcomp> arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1807, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1807, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2035, in cast_array_to_feature arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2035, in <listcomp> arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1809, in wrapper return func(array, *args, **kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2101, in cast_array_to_feature return array_cast(array, feature(), allow_number_to_str=allow_number_to_str) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1809, in wrapper return func(array, *args, **kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1990, in array_cast raise TypeError(f"Couldn't cast array of type {array.type} to {pa_type}") TypeError: Couldn't cast array of type timestamp[s] to null The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode coro = func() File "<input>", line 1, in <module> File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "[...]\PycharmProjects\TransformersTesting\dataset_issues.py", line 20, in <module> issues_dataset = load_dataset("json", data_files="issues/datasets-issues.jsonl", split="train") File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\load.py", line 1757, in load_dataset builder_instance.download_and_prepare( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 860, in download_and_prepare self._download_and_prepare( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 953, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1706, in _prepare_split for job_id, done, content in self._prepare_split_single( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1849, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset Generating train split: 2619 examples [00:19, 7155.72 examples/s] ```
95
Datasets load error for saved github issues ### Describe the bug Loading a previously downloaded & saved dataset as described in the HuggingFace course: issues_dataset = load_dataset("json", data_files="issues/datasets-issues.jsonl", split="train") Gives this error: datasets.builder.DatasetGenerationError: An error occurred while generating the dataset A work-around I found was to use streaming. ### Steps to reproduce the bug Reproduce by executing the code provided: https://huggingface.co/course/chapter5/5?fw=pt From the heading: 'let’s create a function that can download all the issues from a GitHub repository' ### Expected behavior No error ### Environment info Datasets version 2.8.0. Note that version 2.6.1 gives the same error (related to null timestamp). **[EDIT]** This is the complete error trace confirming the issue is related to the timestamp (`Couldn't cast array of type timestamp[s] to null`) ``` Using custom data configuration default-950028611d2860c8 Downloading and preparing dataset json/default to [...]/.cache/huggingface/datasets/json/default-950028611d2860c8/0.0.0/0f7e3662623656454fcd2b650f34e886a7db4b9104504885bd462096cc7a9f51... Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<?, ?it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 500.63it/s] Generating train split: 2619 examples [00:00, 7155.72 examples/s]Traceback (most recent call last): File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1831, in _prepare_split_single writer.write_table(table) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\arrow_writer.py", line 567, in write_table pa_table = table_cast(pa_table, self._schema) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2282, in table_cast return cast_table_to_schema(table, schema) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2241, in cast_table_to_schema arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2241, in <listcomp> arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1807, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1807, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2035, in cast_array_to_feature arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2035, in <listcomp> arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1809, in wrapper return func(array, *args, **kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2101, in cast_array_to_feature return array_cast(array, feature(), allow_number_to_str=allow_number_to_str) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1809, in wrapper return func(array, *args, **kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1990, in array_cast raise TypeError(f"Couldn't cast array of type {array.type} to {pa_type}") TypeError: Couldn't cast array of type timestamp[s] to null The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode coro = func() File "<input>", line 1, in <module> File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "[...]\PycharmProjects\TransformersTesting\dataset_issues.py", line 20, in <module> issues_dataset = load_dataset("json", data_files="issues/datasets-issues.jsonl", split="train") File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\load.py", line 1757, in load_dataset builder_instance.download_and_prepare( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 860, in download_and_prepare self._download_and_prepare( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 953, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1706, in _prepare_split for job_id, done, content in self._prepare_split_single( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1849, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset Generating train split: 2619 examples [00:19, 7155.72 examples/s] ``` I can confirm that the error exists! I'm trying to read 3 parquet files locally: ```python from datasets import load_dataset, Features, Value, ClassLabel review_dataset = load_dataset( "parquet", data_files={ "train": os.path.join(sentiment_analysis_data_path, "train.parquet"), "validation": os.path.join(sentiment_analysis_data_path, "validation.parquet"), "test": os.path.join(sentiment_analysis_data_path, "test.parquet"), }, ) ``` But you can fix it, by specifying `features` for `load_dataset()` function like this: ```python from datasets import load_dataset, Features, Value, ClassLabel features = Features( { "label": ClassLabel( num_classes=3, names=["negative", "neutral", "positive"], ), "text": Value(dtype="string"), } ) review_dataset = load_dataset( "parquet", data_files={ "train": os.path.join(sentiment_analysis_data_path, "train.parquet"), "validation": os.path.join(sentiment_analysis_data_path, "validation.parquet"), "test": os.path.join(sentiment_analysis_data_path, "test.parquet"), }, features=features, ) print(review_dataset) ```
[ -0.4710150957107544, 0.07906512916088104, 0.059535037726163864, 0.4664856791496277, 0.22032460570335388, 0.09920280426740646, 0.3799690008163452, 0.2986510694026947, 0.09120248258113861, -0.014517247676849365, 0.041823916137218475, 0.09861104935407639, -0.28378358483314514, 0.18024848401546478, 0.02369016781449318, -0.13746581971645355, 0.05341869965195656, 0.12191446125507355, -0.07544931769371033, 0.25002288818359375, -0.10295635461807251, 0.2531818151473999, -0.22357182204723358, -0.08464734256267548, -0.2708287537097931, -0.025525780394673347, 0.054685212671756744, 0.3749394714832306, -0.010557318106293678, -0.40976569056510925, 0.27910488843917847, -0.037118006497621536, 0.026367206126451492, 0.6492112278938293, -0.00012075250560883433, 0.15625952184200287, 0.3618277907371521, -0.189560204744339, -0.5131369233131409, -0.14753328263759613, -0.1677110344171524, 0.0008539948612451553, 0.05150127410888672, -0.16494418680667877, -0.23667141795158386, 0.18253576755523682, -0.05174309015274048, -0.39248010516166687, 0.5979457497596741, 0.5063511729240417, 0.148142009973526, 0.6537630558013916, 0.18979522585868835, -0.07199627161026001, 0.25783368945121765, 0.1898990273475647, -0.13888318836688995, 0.4292421340942383, 0.07501010596752167, 0.11377832293510437, 0.06625844538211823, 0.2724989354610443, -0.06634990125894547, -0.10827499628067017, 0.39812329411506653, 0.02122257649898529, -0.13256603479385376, -0.19404536485671997, -0.12143302708864212, 0.1824284791946411, 0.2765694856643677, -0.2729957699775696, -0.493316650390625, -0.5837548971176147, 0.04941359907388687, -0.10022807121276855, 0.24763953685760498, 0.2650580108165741, -0.18652668595314026, 0.20645977556705475, -0.4778006970882416, -0.08270129561424255, -0.2502595782279968, 0.0036613494157791138, 0.42531296610832214, -0.17101559042930603, -0.25693756341934204, 0.13060401380062103, -0.0962887704372406, -0.04340263456106186, -0.24059005081653595, -0.27743619680404663, -0.12200257182121277, 0.30824774503707886, -0.20565609633922577, -0.05657880753278732, 0.0728505551815033, -0.07156803458929062, 0.25112059712409973, 0.1722176969051361, -0.06515343487262726, 0.02900616265833378, 0.06986847519874573, -0.030411213636398315, 0.4080553650856018, 0.18176385760307312, 0.07586324959993362, 0.02874964475631714, 0.22332923114299774, 0.3678697943687439, 0.06951509416103363, -0.06710603088140488, -0.03096722438931465, 0.050705164670944214, -0.21029406785964966, -0.15924522280693054, 0.4278433322906494, -0.24701209366321564, -0.30605587363243103, 0.16668394207954407, -0.23548623919487, -0.040937718003988266, 0.12534743547439575, 0.3848901391029358, -0.170050248503685, 0.07377207279205322, 0.015366483479738235, 0.2095656394958496, -0.18247056007385254, -0.2798668146133423, -0.25741878151893616, -0.2404295951128006, 0.026105541735887527, 0.14199481904506683, 0.13576915860176086, -0.5905315279960632, 0.30728012323379517, 0.1618921160697937, -0.10440874099731445, -0.19780109822750092, -0.19078490138053894, 0.05615583434700966, -0.06343594938516617, 0.3909296691417694, -0.03632204979658127, 0.08320415765047073, 0.24364373087882996, -0.3264555335044861, -0.10491850227117538, 0.04689726233482361, -0.09145095199346542, -0.4455202519893646, -0.10748015344142914, 0.12819531559944153, -0.3193679451942444, 0.24109573662281036, -0.5857294201850891, 0.2032507359981537, 0.2655174732208252, -0.1589484065771103, -0.0678890272974968, 0.05161384120583534, -0.18980126082897186, -0.1673014909029007, 0.3837369978427887, 0.5222494006156921, -0.12518081068992615, -0.35862430930137634, -0.022541478276252747, -0.3069389760494232, 0.016417115926742554, 0.14528264105319977, -0.06198131665587425, 0.19296173751354218, -0.21238744258880615, 0.07473480701446533, -0.023920871317386627, -0.025269895792007446, -0.24318084120750427, 0.22580470144748688, -0.13029557466506958, 0.3396966755390167, -0.06413405388593674, -0.015721431002020836, 0.27362480759620667, -0.20227696001529694, 0.18575304746627808, 0.16702808439731598, -0.16668269038200378, 0.13863396644592285, -0.34703320264816284, -0.23735952377319336, -0.10490931570529938, 0.18546830117702484, -0.09364679455757141, 0.28176218271255493, 0.02594173699617386, 0.16875234246253967, 0.1592182219028473, -0.07335029542446136, 0.1880529522895813, 0.47125566005706787, 0.2186751514673233, 0.04246353358030319, -0.1423347294330597, -0.28257590532302856, -0.7540937066078186, 0.2959003150463104, 0.2599126100540161, 0.18756505846977234, -0.055514171719551086, -0.11318711191415787, -0.39627915620803833, 0.148609921336174, -0.18907909095287323, -0.14033323526382446, -0.020623615011572838, 0.0873151570558548, 0.20489585399627686, 0.17420955002307892, -0.2787225544452667, 0.5823856592178345, -0.3830776512622833, 0.19699181616306305, -0.4865703582763672, 0.35415568947792053, -0.0385446771979332, -0.2975667119026184, 0.17345863580703735, 0.14655275642871857, 0.09856440126895905, -0.21574154496192932, -0.08552692085504532, 0.4313356280326843, -0.10947543382644653, 0.2146150916814804, -0.18704256415367126, -0.061639800667762756, 0.18928800523281097, -0.11946536600589752, -0.1445121169090271, 0.29352620244026184, 0.19465768337249756, -0.03661034256219864, -0.24168360233306885, 0.5297573804855347, -0.08659380674362183, 0.11227358132600784, -0.0639224424958229, -0.03579722344875336, 0.15876054763793945, 0.11048398911952972, -0.16625191271305084, -0.2655973434448242, 0.17822737991809845, -0.07219575345516205, 0.3827269375324249, 0.0009665451943874359, -0.39090806245803833, 0.050951965153217316, 0.31724289059638977, 0.0394231341779232, -0.21955657005310059, 0.26238736510276794, -0.23541268706321716, -0.21620827913284302, 0.09621983766555786, 0.2464313954114914, 0.3757237493991852, 0.10762155801057816, -0.11301486194133759, 0.13989807665348053, -0.106153704226017, -0.06259608268737793, 0.228286013007164, -0.06201201677322388, 0.09524371474981308, 0.1629069745540619, -0.048402804881334305, 0.053720030933618546, -0.26213064789772034, 0.02057432383298874, -0.08415178954601288, 0.3441903293132782, -0.6843589544296265, -0.016046833246946335, -0.09234452992677689, -0.21559831500053406, -0.14569838345050812, 0.00046013761311769485, -0.36442142724990845, -0.2601059675216675, -0.11828868091106415, 0.35222917795181274, -0.2164633721113205, 0.19175486266613007, 0.06163820996880531, 0.3338760733604431, 0.10552512109279633, 0.030539346858859062, -0.3444615602493286, -0.23550669848918915, -0.23459270596504211, -0.02430449239909649, 0.24320213496685028, -0.07818304747343063, 0.28294745087623596, -0.33926212787628174, -0.28871434926986694, -0.22487540543079376, -0.1558300405740738, 0.10749362409114838, -0.3402235507965088, 0.5670412182807922, 0.03128959238529205, 0.4133981466293335, 0.12277340888977051, -0.21571289002895355, 0.32833003997802734, -0.10754362493753433, -0.40166833996772766, -0.021240614354610443, 0.11864785104990005, 0.07198207825422287, -0.2660396695137024, -0.10599026829004288, -0.03393255174160004, -0.3536131680011749, 0.3357046842575073, -0.10986769199371338, 0.10736978054046631, 0.28193211555480957, 0.14252841472625732, 0.2572067379951477, -0.09576261043548584, 0.0549730509519577, -0.11959713697433472, -0.599755048751831, 0.12048792093992233, -0.228473499417305, -0.32017260789871216, 0.07496742904186249, 0.02903776988387108, -0.05229729786515236, 0.1102556362748146, -0.44346725940704346, -0.07445394992828369, 0.08964697271585464, 0.10504110157489777, 0.002492554485797882, -0.21113212406635284, 0.10598692297935486, -0.015262112021446228, 0.061156101524829865, -0.1928054690361023, -0.3233874440193176, 0.0526704266667366, -0.007030438631772995, 0.17757219076156616, 0.09964314103126526, 0.5407940149307251, -0.12842002511024475, 0.7764057517051697, 0.6103956699371338, -0.05036955699324608, 0.2803941071033478, -0.251946359872818, 0.43508440256118774, -0.27599650621414185, -0.23476383090019226, 0.12442047148942947, 0.023042738437652588, -0.04954878240823746, 0.16136817634105682, 0.13542596995830536, 0.1488121896982193, -0.19075249135494232, -0.02271508425474167, -0.33737897872924805, -0.31601762771606445, -0.07928640395402908, -0.1820306032896042, 0.2985343635082245, 0.06934966146945953, 0.1364256739616394, 0.012794002890586853, -0.10508593916893005, -0.19976294040679932, 0.2907159924507141, 0.17146217823028564, -0.004622935317456722, -0.28243324160575867, 0.3092584013938904, -0.5356295704841614, 0.17256098985671997, 0.10804703086614609, 0.20270179212093353, -0.07074221223592758, -0.05392160639166832, -0.00964038074016571, -0.053729746490716934, 0.5436320304870605, -0.05554192513227463, 0.2044299989938736, 0.1880374699831009, -0.03846091404557228, -0.5903502702713013, 0.03264098986983299, 0.09162141382694244, 0.1268557757139206, 0.20061692595481873, 0.6637795567512512, -0.5139530897140503, -0.2763478457927704, 0.248619943857193, 0.1979115754365921, 0.013273488730192184, 0.00417931005358696, -0.17807458341121674, -0.1737672984600067, -0.2988329529762268, 0.069007508456707, 0.10277602821588516, 0.31568095088005066, -0.03972060978412628, 0.13194571435451508, -0.09170167148113251, 0.1904798448085785, -0.1022440493106842, -0.027351897209882736, 0.44098567962646484, -0.11639685183763504, 0.5029733180999756, 0.19052036106586456, -0.18056179583072662, 0.29990994930267334, 0.7375673651695251, 0.12129122018814087, -0.2579021453857422, -0.038160428404808044, 0.11998607218265533, -0.022154338657855988, 0.4536016583442688, 0.037467580288648605, -0.09226828068494797, 0.4712859094142914, 0.2990803122520447, -0.4449567496776581, 0.19291651248931885, 0.20879317820072174, -0.1328776329755783, -0.24103641510009766, -0.4633826017379761, 0.2269277274608612, -0.021604176610708237, 0.14879046380519867, 0.3531491756439209, 0.18047025799751282, -0.14992386102676392, 0.03867987170815468, -0.10337517410516739, 0.7988141775131226, -0.008143976330757141, 0.26936009526252747, 0.5667595863342285, -0.3033931255340576, 0.25504428148269653, 0.06843177229166031, -0.03759347274899483, -0.40955817699432373, 0.041588347405195236, 0.01566837914288044, -0.06280156224966049, 0.1202865019440651, 0.08684392273426056, -0.16109813749790192, 0.1288905143737793, 0.11581306159496307, 0.5223597288131714, -0.08650971204042435, 0.02110002189874649, -0.19122089445590973, -0.1691100001335144, -0.597387433052063, 0.10978516936302185, -0.27334320545196533, 0.16338136792182922, 0.017969103530049324, -0.08311944454908371, -0.17737635970115662, -0.27986085414886475, -0.6108459234237671, 0.2165704071521759, -0.08006324619054794, -0.0021618660539388657, 0.13502220809459686, -0.3413681983947754, -0.03681357204914093, 0.13210941851139069, 0.1700543463230133, -0.03929365053772926, -0.23494526743888855, 0.18415232002735138, -0.37828463315963745, 0.042690977454185486, -0.03258126229047775, 0.05479396879673004, 0.26734620332717896, -0.09042142331600189, 0.02180815488100052, -0.10008852928876877, -0.46101829409599304, -0.27980154752731323, 0.17110994458198547, 0.13169579207897186, -0.3908904194831848, -0.21135465800762177, -0.3004835844039917, 0.09631256014108658, 0.249923974275589, -0.4295208752155304, 0.0771661251783371, 0.08317254483699799, 0.001472030533477664, -0.029644399881362915, -0.1501171737909317, -0.3371743857860565, -0.17628973722457886, 0.6996058225631714, -0.20662394165992737, 0.05694393813610077, 0.5159640312194824, 0.21232037246227264, -0.058095477521419525, -0.15069085359573364, 0.2013435661792755, 0.22733502089977264, -0.7285991907119751, 0.4037943184375763, -0.13236422836780548, 0.13110573589801788, -0.04556962847709656, 0.3855845332145691, 0.12127524614334106, -0.15415138006210327, 0.1443333923816681, -0.2410263866186142, -0.3101571500301361, 0.18457677960395813, -0.070338174700737, 0.2513830363750458, 0.270295649766922, 0.10203363001346588, -0.03496366739273071, -0.1294597089290619, -0.25515007972717285, 0.058281511068344116, -0.39033323526382446, 0.10257670283317566, 0.30302920937538147, -0.02322205901145935, 0.40260300040245056, -0.2488381266593933, 0.025436056777834892, 0.034875061362981796, -0.2772950232028961, -0.10933464765548706, -0.22464917600154877, 0.13704971969127655, 0.03377922251820564, -0.14627507328987122, -0.0740741714835167, -0.003795091062784195, -0.2764021158218384, -0.1134752407670021, 0.34578272700309753, 0.24251243472099304, 0.02936854213476181, 0.0004338044673204422, 0.21882247924804688, 0.21560561656951904, -0.13411134481430054, 0.026871059089899063, -0.04448205232620239, 0.3514642119407654, -0.04203617200255394, 0.1929512470960617, -0.18828019499778748, -0.0641360729932785, -0.18381862342357635, 0.2321184277534485, 0.04664383828639984, -0.03546823561191559, 0.47323259711265564, -0.4008561372756958, -0.019676504656672478, 0.22133523225784302, 0.34019148349761963, 0.3618514835834503, -0.20424827933311462, -0.03444105386734009, 0.06952781230211258, 0.06266377121210098, -0.08455561101436615, 0.02031436190009117, 0.1804070919752121, -0.04732669144868851, -0.0629875510931015, 0.1145872101187706, 0.03640731796622276, 0.08584246039390564, -0.0351928249001503, 0.21072015166282654, 0.5775513648986816, 0.16190902888774872, 0.31874585151672363, 0.21615222096443176, -0.011864736676216125, 0.15059883892536163, -0.013450952246785164, 0.1125761866569519, 0.3454400897026062, 0.0014117136597633362, -0.1349445879459381, 0.05958843231201172, -0.06458193808794022, 0.28901341557502747, 0.014996767044067383, -0.3909645974636078, -0.10718932747840881, 0.1761271357536316, -0.28594502806663513, 0.14075039327144623, 0.04950511455535889, 0.5517999529838562, -0.38735878467559814, -0.2041415125131607, -0.0958382710814476, 0.25274062156677246, -0.08020644634962082, 0.000054924748837947845, -0.11744601279497147, -0.17026855051517487, -0.12922954559326172, 0.15814150869846344, -0.16648471355438232, -0.010736778378486633, 0.2588706612586975, 0.03455125167965889, -0.03932102024555206, -0.4313390552997589, 0.022208821028470993, 0.2907595634460449, 0.15998154878616333, -0.1903262585401535, 0.3252948820590973, 0.26577824354171753, -0.09352424740791321, 0.21821095049381256, 0.379281610250473, 0.6300908923149109, 0.06740862131118774, 0.20235054194927216, 0.019340384751558304, 0.22638623416423798, -0.021847721189260483, 0.06703200191259384, 0.2577468752861023, 0.16068020462989807, 0.00008205696940422058, 0.33549243211746216, 0.08515045046806335, -0.1007281094789505, 0.009932514280080795, -0.03329922631382942, 0.3402625620365143, -0.30160069465637207, 0.27865520119667053, -0.3910883963108063, -0.10177236795425415, -0.11397586762905121, -0.051369212567806244, -0.12958265841007233, 0.1622609794139862, 0.17722256481647491, 0.098089300096035, 0.07020414620637894, -0.11736191064119339, 0.06292615085840225, 0.04868491739034653, 0.6603038311004639, 0.3783593475818634, -0.06754446774721146, -0.19771148264408112, -0.43100643157958984, -0.6669738292694092, -0.11719740182161331, -0.13711246848106384, 0.25901779532432556, 0.2541532516479492, 0.1274634152650833, -0.02068977802991867, 0.1233287826180458, 0.06567972898483276, -0.3689911365509033, -0.06679732352495193, 0.06043580546975136, -0.2554960548877716, -0.08794905245304108, 0.03324210271239281, -0.05801495909690857, 0.05541164427995682, -0.2442149817943573, 0.2499694526195526, -0.027928486466407776, -0.0731578916311264, 0.10527726262807846, 0.11150729656219482, -0.09685234725475311, -0.41939324140548706, 0.3021272122859955, -0.04910378158092499, -0.06560026109218597, -0.02698960341513157, -0.36334508657455444, -0.27452877163887024, -0.22744354605674744, -0.1761534959077835, 0.1650976836681366, -0.19308479130268097, 0.6510999202728271, -0.22150272130966187, -0.02466907724738121, -0.34624236822128296, 0.16149333119392395, 0.1547941416501999, 0.09203051775693893, -0.21108365058898926, 0.17863811552524567, -0.2431105375289917, 0.2337968498468399, 0.17578117549419403, 0.12056784331798553, -0.09241436421871185, 0.3693394958972931, -0.2831079065799713, -0.2887561619281769, 0.547147274017334, -0.14137068390846252, -0.07126519083976746, 0.1583806872367859, 0.04386146366596222, 0.22981330752372742, -0.3831351399421692, -0.7105954885482788, 0.13267678022384644, 0.39288127422332764, -0.19102269411087036, -0.20504648983478546, 0.0822456032037735, -0.10183346271514893, 0.011967208236455917, 0.03757890686392784, 0.1754949986934662, 0.06469011306762695, -0.182908833026886, 0.3985804617404938, -0.17636391520500183 ]
https://github.com/huggingface/datasets/issues/5422
Datasets load error for saved github issues
@Extremesarova I think this is a different issue, but understand using features could be a work-around. It seems the field `closed_at` is `null` in many cases. I've not found a way to specify only a single feature without (succesfully) specifiying the full and quite detailed set of expected features. Using this features set gives an error the column names don't match. `features = Features({'closed_at': Value(dtype='timestamp[s]', id=None)})`
### Describe the bug Loading a previously downloaded & saved dataset as described in the HuggingFace course: issues_dataset = load_dataset("json", data_files="issues/datasets-issues.jsonl", split="train") Gives this error: datasets.builder.DatasetGenerationError: An error occurred while generating the dataset A work-around I found was to use streaming. ### Steps to reproduce the bug Reproduce by executing the code provided: https://huggingface.co/course/chapter5/5?fw=pt From the heading: 'let’s create a function that can download all the issues from a GitHub repository' ### Expected behavior No error ### Environment info Datasets version 2.8.0. Note that version 2.6.1 gives the same error (related to null timestamp). **[EDIT]** This is the complete error trace confirming the issue is related to the timestamp (`Couldn't cast array of type timestamp[s] to null`) ``` Using custom data configuration default-950028611d2860c8 Downloading and preparing dataset json/default to [...]/.cache/huggingface/datasets/json/default-950028611d2860c8/0.0.0/0f7e3662623656454fcd2b650f34e886a7db4b9104504885bd462096cc7a9f51... Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<?, ?it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 500.63it/s] Generating train split: 2619 examples [00:00, 7155.72 examples/s]Traceback (most recent call last): File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1831, in _prepare_split_single writer.write_table(table) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\arrow_writer.py", line 567, in write_table pa_table = table_cast(pa_table, self._schema) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2282, in table_cast return cast_table_to_schema(table, schema) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2241, in cast_table_to_schema arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2241, in <listcomp> arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1807, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1807, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2035, in cast_array_to_feature arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2035, in <listcomp> arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1809, in wrapper return func(array, *args, **kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2101, in cast_array_to_feature return array_cast(array, feature(), allow_number_to_str=allow_number_to_str) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1809, in wrapper return func(array, *args, **kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1990, in array_cast raise TypeError(f"Couldn't cast array of type {array.type} to {pa_type}") TypeError: Couldn't cast array of type timestamp[s] to null The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode coro = func() File "<input>", line 1, in <module> File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "[...]\PycharmProjects\TransformersTesting\dataset_issues.py", line 20, in <module> issues_dataset = load_dataset("json", data_files="issues/datasets-issues.jsonl", split="train") File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\load.py", line 1757, in load_dataset builder_instance.download_and_prepare( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 860, in download_and_prepare self._download_and_prepare( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 953, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1706, in _prepare_split for job_id, done, content in self._prepare_split_single( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1849, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset Generating train split: 2619 examples [00:19, 7155.72 examples/s] ```
66
Datasets load error for saved github issues ### Describe the bug Loading a previously downloaded & saved dataset as described in the HuggingFace course: issues_dataset = load_dataset("json", data_files="issues/datasets-issues.jsonl", split="train") Gives this error: datasets.builder.DatasetGenerationError: An error occurred while generating the dataset A work-around I found was to use streaming. ### Steps to reproduce the bug Reproduce by executing the code provided: https://huggingface.co/course/chapter5/5?fw=pt From the heading: 'let’s create a function that can download all the issues from a GitHub repository' ### Expected behavior No error ### Environment info Datasets version 2.8.0. Note that version 2.6.1 gives the same error (related to null timestamp). **[EDIT]** This is the complete error trace confirming the issue is related to the timestamp (`Couldn't cast array of type timestamp[s] to null`) ``` Using custom data configuration default-950028611d2860c8 Downloading and preparing dataset json/default to [...]/.cache/huggingface/datasets/json/default-950028611d2860c8/0.0.0/0f7e3662623656454fcd2b650f34e886a7db4b9104504885bd462096cc7a9f51... Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<?, ?it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 500.63it/s] Generating train split: 2619 examples [00:00, 7155.72 examples/s]Traceback (most recent call last): File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1831, in _prepare_split_single writer.write_table(table) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\arrow_writer.py", line 567, in write_table pa_table = table_cast(pa_table, self._schema) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2282, in table_cast return cast_table_to_schema(table, schema) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2241, in cast_table_to_schema arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2241, in <listcomp> arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1807, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1807, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2035, in cast_array_to_feature arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2035, in <listcomp> arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()] File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1809, in wrapper return func(array, *args, **kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 2101, in cast_array_to_feature return array_cast(array, feature(), allow_number_to_str=allow_number_to_str) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1809, in wrapper return func(array, *args, **kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\table.py", line 1990, in array_cast raise TypeError(f"Couldn't cast array of type {array.type} to {pa_type}") TypeError: Couldn't cast array of type timestamp[s] to null The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode coro = func() File "<input>", line 1, in <module> File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "[...]\PycharmProjects\TransformersTesting\dataset_issues.py", line 20, in <module> issues_dataset = load_dataset("json", data_files="issues/datasets-issues.jsonl", split="train") File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\load.py", line 1757, in load_dataset builder_instance.download_and_prepare( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 860, in download_and_prepare self._download_and_prepare( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 953, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1706, in _prepare_split for job_id, done, content in self._prepare_split_single( File "[...]\miniconda3\envs\HuggingFace\lib\site-packages\datasets\builder.py", line 1849, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset Generating train split: 2619 examples [00:19, 7155.72 examples/s] ``` @Extremesarova I think this is a different issue, but understand using features could be a work-around. It seems the field `closed_at` is `null` in many cases. I've not found a way to specify only a single feature without (succesfully) specifiying the full and quite detailed set of expected features. Using this features set gives an error the column names don't match. `features = Features({'closed_at': Value(dtype='timestamp[s]', id=None)})`
[ -0.4710150957107544, 0.07906512916088104, 0.059535037726163864, 0.4664856791496277, 0.22032460570335388, 0.09920280426740646, 0.3799690008163452, 0.2986510694026947, 0.09120248258113861, -0.014517247676849365, 0.041823916137218475, 0.09861104935407639, -0.28378358483314514, 0.18024848401546478, 0.02369016781449318, -0.13746581971645355, 0.05341869965195656, 0.12191446125507355, -0.07544931769371033, 0.25002288818359375, -0.10295635461807251, 0.2531818151473999, -0.22357182204723358, -0.08464734256267548, -0.2708287537097931, -0.025525780394673347, 0.054685212671756744, 0.3749394714832306, -0.010557318106293678, -0.40976569056510925, 0.27910488843917847, -0.037118006497621536, 0.026367206126451492, 0.6492112278938293, -0.00012075250560883433, 0.15625952184200287, 0.3618277907371521, -0.189560204744339, -0.5131369233131409, -0.14753328263759613, -0.1677110344171524, 0.0008539948612451553, 0.05150127410888672, -0.16494418680667877, -0.23667141795158386, 0.18253576755523682, -0.05174309015274048, -0.39248010516166687, 0.5979457497596741, 0.5063511729240417, 0.148142009973526, 0.6537630558013916, 0.18979522585868835, -0.07199627161026001, 0.25783368945121765, 0.1898990273475647, -0.13888318836688995, 0.4292421340942383, 0.07501010596752167, 0.11377832293510437, 0.06625844538211823, 0.2724989354610443, -0.06634990125894547, -0.10827499628067017, 0.39812329411506653, 0.02122257649898529, -0.13256603479385376, -0.19404536485671997, -0.12143302708864212, 0.1824284791946411, 0.2765694856643677, -0.2729957699775696, -0.493316650390625, -0.5837548971176147, 0.04941359907388687, -0.10022807121276855, 0.24763953685760498, 0.2650580108165741, -0.18652668595314026, 0.20645977556705475, -0.4778006970882416, -0.08270129561424255, -0.2502595782279968, 0.0036613494157791138, 0.42531296610832214, -0.17101559042930603, -0.25693756341934204, 0.13060401380062103, -0.0962887704372406, -0.04340263456106186, -0.24059005081653595, -0.27743619680404663, -0.12200257182121277, 0.30824774503707886, -0.20565609633922577, -0.05657880753278732, 0.0728505551815033, -0.07156803458929062, 0.25112059712409973, 0.1722176969051361, -0.06515343487262726, 0.02900616265833378, 0.06986847519874573, -0.030411213636398315, 0.4080553650856018, 0.18176385760307312, 0.07586324959993362, 0.02874964475631714, 0.22332923114299774, 0.3678697943687439, 0.06951509416103363, -0.06710603088140488, -0.03096722438931465, 0.050705164670944214, -0.21029406785964966, -0.15924522280693054, 0.4278433322906494, -0.24701209366321564, -0.30605587363243103, 0.16668394207954407, -0.23548623919487, -0.040937718003988266, 0.12534743547439575, 0.3848901391029358, -0.170050248503685, 0.07377207279205322, 0.015366483479738235, 0.2095656394958496, -0.18247056007385254, -0.2798668146133423, -0.25741878151893616, -0.2404295951128006, 0.026105541735887527, 0.14199481904506683, 0.13576915860176086, -0.5905315279960632, 0.30728012323379517, 0.1618921160697937, -0.10440874099731445, -0.19780109822750092, -0.19078490138053894, 0.05615583434700966, -0.06343594938516617, 0.3909296691417694, -0.03632204979658127, 0.08320415765047073, 0.24364373087882996, -0.3264555335044861, -0.10491850227117538, 0.04689726233482361, -0.09145095199346542, -0.4455202519893646, -0.10748015344142914, 0.12819531559944153, -0.3193679451942444, 0.24109573662281036, -0.5857294201850891, 0.2032507359981537, 0.2655174732208252, -0.1589484065771103, -0.0678890272974968, 0.05161384120583534, -0.18980126082897186, -0.1673014909029007, 0.3837369978427887, 0.5222494006156921, -0.12518081068992615, -0.35862430930137634, -0.022541478276252747, -0.3069389760494232, 0.016417115926742554, 0.14528264105319977, -0.06198131665587425, 0.19296173751354218, -0.21238744258880615, 0.07473480701446533, -0.023920871317386627, -0.025269895792007446, -0.24318084120750427, 0.22580470144748688, -0.13029557466506958, 0.3396966755390167, -0.06413405388593674, -0.015721431002020836, 0.27362480759620667, -0.20227696001529694, 0.18575304746627808, 0.16702808439731598, -0.16668269038200378, 0.13863396644592285, -0.34703320264816284, -0.23735952377319336, -0.10490931570529938, 0.18546830117702484, -0.09364679455757141, 0.28176218271255493, 0.02594173699617386, 0.16875234246253967, 0.1592182219028473, -0.07335029542446136, 0.1880529522895813, 0.47125566005706787, 0.2186751514673233, 0.04246353358030319, -0.1423347294330597, -0.28257590532302856, -0.7540937066078186, 0.2959003150463104, 0.2599126100540161, 0.18756505846977234, -0.055514171719551086, -0.11318711191415787, -0.39627915620803833, 0.148609921336174, -0.18907909095287323, -0.14033323526382446, -0.020623615011572838, 0.0873151570558548, 0.20489585399627686, 0.17420955002307892, -0.2787225544452667, 0.5823856592178345, -0.3830776512622833, 0.19699181616306305, -0.4865703582763672, 0.35415568947792053, -0.0385446771979332, -0.2975667119026184, 0.17345863580703735, 0.14655275642871857, 0.09856440126895905, -0.21574154496192932, -0.08552692085504532, 0.4313356280326843, -0.10947543382644653, 0.2146150916814804, -0.18704256415367126, -0.061639800667762756, 0.18928800523281097, -0.11946536600589752, -0.1445121169090271, 0.29352620244026184, 0.19465768337249756, -0.03661034256219864, -0.24168360233306885, 0.5297573804855347, -0.08659380674362183, 0.11227358132600784, -0.0639224424958229, -0.03579722344875336, 0.15876054763793945, 0.11048398911952972, -0.16625191271305084, -0.2655973434448242, 0.17822737991809845, -0.07219575345516205, 0.3827269375324249, 0.0009665451943874359, -0.39090806245803833, 0.050951965153217316, 0.31724289059638977, 0.0394231341779232, -0.21955657005310059, 0.26238736510276794, -0.23541268706321716, -0.21620827913284302, 0.09621983766555786, 0.2464313954114914, 0.3757237493991852, 0.10762155801057816, -0.11301486194133759, 0.13989807665348053, -0.106153704226017, -0.06259608268737793, 0.228286013007164, -0.06201201677322388, 0.09524371474981308, 0.1629069745540619, -0.048402804881334305, 0.053720030933618546, -0.26213064789772034, 0.02057432383298874, -0.08415178954601288, 0.3441903293132782, -0.6843589544296265, -0.016046833246946335, -0.09234452992677689, -0.21559831500053406, -0.14569838345050812, 0.00046013761311769485, -0.36442142724990845, -0.2601059675216675, -0.11828868091106415, 0.35222917795181274, -0.2164633721113205, 0.19175486266613007, 0.06163820996880531, 0.3338760733604431, 0.10552512109279633, 0.030539346858859062, -0.3444615602493286, -0.23550669848918915, -0.23459270596504211, -0.02430449239909649, 0.24320213496685028, -0.07818304747343063, 0.28294745087623596, -0.33926212787628174, -0.28871434926986694, -0.22487540543079376, -0.1558300405740738, 0.10749362409114838, -0.3402235507965088, 0.5670412182807922, 0.03128959238529205, 0.4133981466293335, 0.12277340888977051, -0.21571289002895355, 0.32833003997802734, -0.10754362493753433, -0.40166833996772766, -0.021240614354610443, 0.11864785104990005, 0.07198207825422287, -0.2660396695137024, -0.10599026829004288, -0.03393255174160004, -0.3536131680011749, 0.3357046842575073, -0.10986769199371338, 0.10736978054046631, 0.28193211555480957, 0.14252841472625732, 0.2572067379951477, -0.09576261043548584, 0.0549730509519577, -0.11959713697433472, -0.599755048751831, 0.12048792093992233, -0.228473499417305, -0.32017260789871216, 0.07496742904186249, 0.02903776988387108, -0.05229729786515236, 0.1102556362748146, -0.44346725940704346, -0.07445394992828369, 0.08964697271585464, 0.10504110157489777, 0.002492554485797882, -0.21113212406635284, 0.10598692297935486, -0.015262112021446228, 0.061156101524829865, -0.1928054690361023, -0.3233874440193176, 0.0526704266667366, -0.007030438631772995, 0.17757219076156616, 0.09964314103126526, 0.5407940149307251, -0.12842002511024475, 0.7764057517051697, 0.6103956699371338, -0.05036955699324608, 0.2803941071033478, -0.251946359872818, 0.43508440256118774, -0.27599650621414185, -0.23476383090019226, 0.12442047148942947, 0.023042738437652588, -0.04954878240823746, 0.16136817634105682, 0.13542596995830536, 0.1488121896982193, -0.19075249135494232, -0.02271508425474167, -0.33737897872924805, -0.31601762771606445, -0.07928640395402908, -0.1820306032896042, 0.2985343635082245, 0.06934966146945953, 0.1364256739616394, 0.012794002890586853, -0.10508593916893005, -0.19976294040679932, 0.2907159924507141, 0.17146217823028564, -0.004622935317456722, -0.28243324160575867, 0.3092584013938904, -0.5356295704841614, 0.17256098985671997, 0.10804703086614609, 0.20270179212093353, -0.07074221223592758, -0.05392160639166832, -0.00964038074016571, -0.053729746490716934, 0.5436320304870605, -0.05554192513227463, 0.2044299989938736, 0.1880374699831009, -0.03846091404557228, -0.5903502702713013, 0.03264098986983299, 0.09162141382694244, 0.1268557757139206, 0.20061692595481873, 0.6637795567512512, -0.5139530897140503, -0.2763478457927704, 0.248619943857193, 0.1979115754365921, 0.013273488730192184, 0.00417931005358696, -0.17807458341121674, -0.1737672984600067, -0.2988329529762268, 0.069007508456707, 0.10277602821588516, 0.31568095088005066, -0.03972060978412628, 0.13194571435451508, -0.09170167148113251, 0.1904798448085785, -0.1022440493106842, -0.027351897209882736, 0.44098567962646484, -0.11639685183763504, 0.5029733180999756, 0.19052036106586456, -0.18056179583072662, 0.29990994930267334, 0.7375673651695251, 0.12129122018814087, -0.2579021453857422, -0.038160428404808044, 0.11998607218265533, -0.022154338657855988, 0.4536016583442688, 0.037467580288648605, -0.09226828068494797, 0.4712859094142914, 0.2990803122520447, -0.4449567496776581, 0.19291651248931885, 0.20879317820072174, -0.1328776329755783, -0.24103641510009766, -0.4633826017379761, 0.2269277274608612, -0.021604176610708237, 0.14879046380519867, 0.3531491756439209, 0.18047025799751282, -0.14992386102676392, 0.03867987170815468, -0.10337517410516739, 0.7988141775131226, -0.008143976330757141, 0.26936009526252747, 0.5667595863342285, -0.3033931255340576, 0.25504428148269653, 0.06843177229166031, -0.03759347274899483, -0.40955817699432373, 0.041588347405195236, 0.01566837914288044, -0.06280156224966049, 0.1202865019440651, 0.08684392273426056, -0.16109813749790192, 0.1288905143737793, 0.11581306159496307, 0.5223597288131714, -0.08650971204042435, 0.02110002189874649, -0.19122089445590973, -0.1691100001335144, -0.597387433052063, 0.10978516936302185, -0.27334320545196533, 0.16338136792182922, 0.017969103530049324, -0.08311944454908371, -0.17737635970115662, -0.27986085414886475, -0.6108459234237671, 0.2165704071521759, -0.08006324619054794, -0.0021618660539388657, 0.13502220809459686, -0.3413681983947754, -0.03681357204914093, 0.13210941851139069, 0.1700543463230133, -0.03929365053772926, -0.23494526743888855, 0.18415232002735138, -0.37828463315963745, 0.042690977454185486, -0.03258126229047775, 0.05479396879673004, 0.26734620332717896, -0.09042142331600189, 0.02180815488100052, -0.10008852928876877, -0.46101829409599304, -0.27980154752731323, 0.17110994458198547, 0.13169579207897186, -0.3908904194831848, -0.21135465800762177, -0.3004835844039917, 0.09631256014108658, 0.249923974275589, -0.4295208752155304, 0.0771661251783371, 0.08317254483699799, 0.001472030533477664, -0.029644399881362915, -0.1501171737909317, -0.3371743857860565, -0.17628973722457886, 0.6996058225631714, -0.20662394165992737, 0.05694393813610077, 0.5159640312194824, 0.21232037246227264, -0.058095477521419525, -0.15069085359573364, 0.2013435661792755, 0.22733502089977264, -0.7285991907119751, 0.4037943184375763, -0.13236422836780548, 0.13110573589801788, -0.04556962847709656, 0.3855845332145691, 0.12127524614334106, -0.15415138006210327, 0.1443333923816681, -0.2410263866186142, -0.3101571500301361, 0.18457677960395813, -0.070338174700737, 0.2513830363750458, 0.270295649766922, 0.10203363001346588, -0.03496366739273071, -0.1294597089290619, -0.25515007972717285, 0.058281511068344116, -0.39033323526382446, 0.10257670283317566, 0.30302920937538147, -0.02322205901145935, 0.40260300040245056, -0.2488381266593933, 0.025436056777834892, 0.034875061362981796, -0.2772950232028961, -0.10933464765548706, -0.22464917600154877, 0.13704971969127655, 0.03377922251820564, -0.14627507328987122, -0.0740741714835167, -0.003795091062784195, -0.2764021158218384, -0.1134752407670021, 0.34578272700309753, 0.24251243472099304, 0.02936854213476181, 0.0004338044673204422, 0.21882247924804688, 0.21560561656951904, -0.13411134481430054, 0.026871059089899063, -0.04448205232620239, 0.3514642119407654, -0.04203617200255394, 0.1929512470960617, -0.18828019499778748, -0.0641360729932785, -0.18381862342357635, 0.2321184277534485, 0.04664383828639984, -0.03546823561191559, 0.47323259711265564, -0.4008561372756958, -0.019676504656672478, 0.22133523225784302, 0.34019148349761963, 0.3618514835834503, -0.20424827933311462, -0.03444105386734009, 0.06952781230211258, 0.06266377121210098, -0.08455561101436615, 0.02031436190009117, 0.1804070919752121, -0.04732669144868851, -0.0629875510931015, 0.1145872101187706, 0.03640731796622276, 0.08584246039390564, -0.0351928249001503, 0.21072015166282654, 0.5775513648986816, 0.16190902888774872, 0.31874585151672363, 0.21615222096443176, -0.011864736676216125, 0.15059883892536163, -0.013450952246785164, 0.1125761866569519, 0.3454400897026062, 0.0014117136597633362, -0.1349445879459381, 0.05958843231201172, -0.06458193808794022, 0.28901341557502747, 0.014996767044067383, -0.3909645974636078, -0.10718932747840881, 0.1761271357536316, -0.28594502806663513, 0.14075039327144623, 0.04950511455535889, 0.5517999529838562, -0.38735878467559814, -0.2041415125131607, -0.0958382710814476, 0.25274062156677246, -0.08020644634962082, 0.000054924748837947845, -0.11744601279497147, -0.17026855051517487, -0.12922954559326172, 0.15814150869846344, -0.16648471355438232, -0.010736778378486633, 0.2588706612586975, 0.03455125167965889, -0.03932102024555206, -0.4313390552997589, 0.022208821028470993, 0.2907595634460449, 0.15998154878616333, -0.1903262585401535, 0.3252948820590973, 0.26577824354171753, -0.09352424740791321, 0.21821095049381256, 0.379281610250473, 0.6300908923149109, 0.06740862131118774, 0.20235054194927216, 0.019340384751558304, 0.22638623416423798, -0.021847721189260483, 0.06703200191259384, 0.2577468752861023, 0.16068020462989807, 0.00008205696940422058, 0.33549243211746216, 0.08515045046806335, -0.1007281094789505, 0.009932514280080795, -0.03329922631382942, 0.3402625620365143, -0.30160069465637207, 0.27865520119667053, -0.3910883963108063, -0.10177236795425415, -0.11397586762905121, -0.051369212567806244, -0.12958265841007233, 0.1622609794139862, 0.17722256481647491, 0.098089300096035, 0.07020414620637894, -0.11736191064119339, 0.06292615085840225, 0.04868491739034653, 0.6603038311004639, 0.3783593475818634, -0.06754446774721146, -0.19771148264408112, -0.43100643157958984, -0.6669738292694092, -0.11719740182161331, -0.13711246848106384, 0.25901779532432556, 0.2541532516479492, 0.1274634152650833, -0.02068977802991867, 0.1233287826180458, 0.06567972898483276, -0.3689911365509033, -0.06679732352495193, 0.06043580546975136, -0.2554960548877716, -0.08794905245304108, 0.03324210271239281, -0.05801495909690857, 0.05541164427995682, -0.2442149817943573, 0.2499694526195526, -0.027928486466407776, -0.0731578916311264, 0.10527726262807846, 0.11150729656219482, -0.09685234725475311, -0.41939324140548706, 0.3021272122859955, -0.04910378158092499, -0.06560026109218597, -0.02698960341513157, -0.36334508657455444, -0.27452877163887024, -0.22744354605674744, -0.1761534959077835, 0.1650976836681366, -0.19308479130268097, 0.6510999202728271, -0.22150272130966187, -0.02466907724738121, -0.34624236822128296, 0.16149333119392395, 0.1547941416501999, 0.09203051775693893, -0.21108365058898926, 0.17863811552524567, -0.2431105375289917, 0.2337968498468399, 0.17578117549419403, 0.12056784331798553, -0.09241436421871185, 0.3693394958972931, -0.2831079065799713, -0.2887561619281769, 0.547147274017334, -0.14137068390846252, -0.07126519083976746, 0.1583806872367859, 0.04386146366596222, 0.22981330752372742, -0.3831351399421692, -0.7105954885482788, 0.13267678022384644, 0.39288127422332764, -0.19102269411087036, -0.20504648983478546, 0.0822456032037735, -0.10183346271514893, 0.011967208236455917, 0.03757890686392784, 0.1754949986934662, 0.06469011306762695, -0.182908833026886, 0.3985804617404938, -0.17636391520500183 ]