index
int64
0
731k
package
stringlengths
2
98
name
stringlengths
1
76
docstring
stringlengths
0
281k
code
stringlengths
4
8.19k
signature
stringlengths
2
42.8k
embed_func_code
sequencelengths
768
768
730,091
mmengine.fileio.backends.http_backend
get
Read bytes from a given ``filepath``. Args: filepath (str): Path to read data. Returns: bytes: Expected bytes object. Examples: >>> backend = HTTPBackend() >>> backend.get('http://path/of/file') b'hello world'
def get(self, filepath: str) -> bytes: """Read bytes from a given ``filepath``. Args: filepath (str): Path to read data. Returns: bytes: Expected bytes object. Examples: >>> backend = HTTPBackend() >>> backend.get('http://path/of/file') b'hello world' """ return urlopen(filepath).read()
(self, filepath: str) -> bytes
[ 0.01376148872077465, -0.08237195760011673, -0.039968304336071014, 0.03617203235626221, -0.015408927574753761, -0.015274625271558762, -0.032608550041913986, 0.03892970085144043, 0.048277128487825394, -0.07370499521493912, 0.057266414165496826, 0.05776780843734741, -0.024460889399051666, -0.0016642268747091293, 0.028633207082748413, -0.022652287036180496, -0.001712351804599166, -0.010762074962258339, 0.008138706907629967, -0.025535305961966515, -0.030549250543117523, 0.00853713694959879, 0.05089154094457626, 0.032304130494594574, -0.02001996710896492, 0.032608550041913986, -0.02992250770330429, -0.05089154094457626, -0.009884634055197239, 0.021900195628404617, 0.06621988862752914, -0.04945898801088333, 0.004561794456094503, 0.009750332683324814, -0.000844984024297446, 0.040756210684776306, 0.019500665366649628, 0.010341261513531208, -0.020413918420672417, -0.009083298966288567, -0.03796272724866867, -0.005703362636268139, 0.06038222461938858, -0.011487306095659733, 0.004852782469242811, 0.010565098375082016, -0.059343621134757996, -0.017468227073550224, -0.03620784729719162, 0.019840896129608154, 0.05984501540660858, 0.03846412152051926, 0.009624984115362167, -0.021721126511693, 0.00932056549936533, 0.016071485355496407, -0.04788317531347275, 0.035222962498664856, -0.010941144078969955, 0.0925431028008461, -0.0023413333110511303, -0.06002408638596535, 0.028937624767422676, -0.07105476409196854, -0.007189638912677765, 0.04684457182884216, 0.0037089763209223747, -0.029671810567378998, 0.005913768894970417, -0.03396947681903839, 0.039968304336071014, 0.017772644758224487, -0.05132130905985832, -0.04444504156708717, -0.005927199497818947, -0.0013687622267752886, -0.004584178328514099, 0.01155893411487341, -0.026054607704281807, 0.04770410433411598, 0.022186707705259323, -0.049387358129024506, 0.0550459548830986, 0.005569060333073139, 0.02055717445909977, -0.04286922886967659, 0.03350389748811722, -0.029403205960989, -0.02652018703520298, 0.056944090873003006, -0.003447087248787284, 0.010421843267977238, -0.036601800471544266, 0.031247621402144432, 0.0623161755502224, -0.08666962385177612, 0.019214153289794922, 0.061313383281230927, -0.0034448488149791956, 0.009222077205777168, -0.030764134600758553, 0.04494643583893776, -0.014119626954197884, -0.007896963506937027, -0.010636726394295692, -0.0074358596466481686, 0.0374971479177475, 0.005537723191082478, 0.00790591724216938, -0.045877598226070404, -0.03207134082913399, -0.028525765985250473, -0.041508302092552185, 0.04637899249792099, -0.013671953231096268, 0.007046383339911699, -0.0036530171055346727, -0.004049208480864763, 0.015767065808176994, 0.0001273771486012265, -0.021273452788591385, 0.012311025522649288, -0.015077648684382439, 0.003619441529735923, 0.07209336757659912, 0.052001774311065674, 0.009463821537792683, -0.037568774074316025, 0.006468884646892548, 0.030817855149507523, 0.03699574992060661, 0.01555218268185854, 0.0038768539670854807, 0.04530457407236099, -0.023834146559238434, 0.02241949737071991, 0.02891971915960312, 0.03307412937283516, 0.056478507816791534, 0.05536827817559242, 0.043478067964315414, -0.024478795006871223, 0.06543198227882385, -0.02125554531812668, 0.0109948655590415, -0.02326112426817417, 0.053541768342256546, -0.09934774041175842, -0.04043388366699219, 0.05193014442920685, 0.023869959637522697, 0.007883532904088497, -0.013725674711167812, -0.0150418346747756, 0.032769713550806046, -0.002659181598573923, -0.007395568769425154, 0.018354620784521103, -0.05515339598059654, 0.020270664244890213, -0.03121180832386017, 0.04834875464439392, -0.001354212872684002, -0.04899340495467186, 0.009472774341702461, 0.029224136844277382, -0.03892970085144043, 0.015767065808176994, 0.014289743266999722, -0.028955532237887383, -0.10249935835599899, 0.028418324887752533, -0.08194218575954437, 0.008340160362422466, 0.12269839644432068, -0.057158973067998886, 0.024084843695163727, 0.05447293072938919, 0.035760171711444855, 0.026341117918491364, 0.01583869382739067, -0.06471570581197739, -0.01165742240846157, 0.03721063584089279, 0.061528269201517105, 0.010412889532744884, 0.009311611764132977, 0.025374142453074455, 0.03649435564875603, 0.04222457855939865, -0.03667342662811279, -0.021130196750164032, -0.0034157501067966223, -0.0000026274597075826023, 0.00010044677765108645, -0.11295701563358307, 0.06013152748346329, -0.010018936358392239, -0.03785528615117073, 0.026860419660806656, 0.01283032726496458, -0.022240428254008293, 0.020324384793639183, 0.0030822332482784986, -0.02528460882604122, 0.00437824847176671, 0.014907533302903175, -0.005412374623119831, -0.025947164744138718, 0.055833857506513596, -0.013663000427186489, -0.01394951157271862, -0.04426597058773041, -0.009884634055197239, 0.0150418346747756, 0.009168356657028198, -0.06127757206559181, 0.027397628873586655, -0.026484373956918716, 0.02498019114136696, 0.07341848313808441, 0.060883618891239166, -0.039216212928295135, 0.009445914067327976, 0.05429386347532272, -0.005712315905839205, -0.0005257367738522589, 0.0020011013839393854, -0.09626774489879608, -0.020145315676927567, 0.007932777516543865, -0.007234406191855669, 0.11045004427433014, -0.004340196028351784, 0.07442127168178558, 0.01091428380459547, -0.015211950987577438, 0.02438926137983799, 0.003917144611477852, 0.04473155364394188, 0.045877598226070404, 0.010636726394295692, 0.001930592698045075, 0.07037430256605148, -0.04491062089800835, -0.008340160362422466, 0.03678086772561073, 0.05039014667272568, -0.032608550041913986, -0.05268223583698273, 0.042833417654037476, -0.027863208204507828, -0.00032764117349870503, -0.04541201516985893, 0.0007593664340674877, 0.04079202562570572, 0.02358344942331314, -0.08358962833881378, -0.009553356096148491, 0.0303522739559412, -0.0008779999916441739, 0.024836935102939606, 0.017110086977481842, 0.002166740596294403, -0.008205858059227467, -0.03207134082913399, -0.011147074401378632, 0.015292532742023468, 0.028095999732613564, 0.010045796632766724, -0.016760902479290962, 0.06442919373512268, 0.014334511011838913, -0.022437404841184616, -0.020055780187249184, -0.08989287167787552, 0.04659387469291687, 0.04759666323661804, 0.009974169544875622, -0.022992519661784172, -0.11202585697174072, 0.00789248663932085, 0.03140878304839134, -0.02336856536567211, -0.020002059638500214, -0.01616101898252964, -0.014236022718250751, -0.02395949512720108, -0.028991347178816795, -0.0008326729875989258, 0.03674505278468132, -0.02614414133131504, -0.046880386769771576, -0.058340832591056824, 0.06002408638596535, -0.029170416295528412, -0.061850592494010925, -0.03253692016005516, 0.08172730356454849, 0.006249524187296629, -0.006383826490491629, -0.00453269574791193, 0.03439924493432045, 0.012570676393806934, -0.013663000427186489, -0.012328932993113995, 0.014844859018921852, -0.057911064475774765, -0.03771203011274338, 0.0030576111748814583, 0.03391575813293457, -0.0361541248857975, 0.009857773780822754, 0.036548078060150146, 0.008125277236104012, 0.0017145901219919324, -0.003507523098960519, 0.06439337879419327, 0.03273389860987663, 0.009257891215384007, 0.004396155476570129, -0.003767173970118165, 0.04319155588746071, -0.010027890093624592, 0.010090564377605915, 0.012212537229061127, 0.013689860701560974, 0.024478795006871223, -0.024568330496549606, 0.031874366104602814, 0.09017938375473022, 0.04025481641292572, 0.045125506818294525, -0.04770410433411598, -0.016223693266510963, -0.021416708827018738, -0.004861736204475164, -0.0342559888958931, -0.01693997159600258, 0.006621093489229679, 0.051679447293281555, -0.05676501989364624, 0.03774784505367279, 0.026860419660806656, 0.0036239183973520994, 0.01246323436498642, -0.00011457647633505985, -0.026000887155532837, 0.0018656799802556634, -0.046092480421066284, -0.022920891642570496, -0.025517398491501808, -0.030065763741731644, -0.004156650044023991, -0.06442919373512268, 0.011773817241191864, 0.0011275780852884054, -0.004946793895214796, -0.015525322407484055, 0.015149276703596115, -0.011388817802071571, 0.010797888971865177, -0.06500221788883209, 0.01759357564151287, -0.05730222910642624, -0.013842069543898106, 0.04501806199550629, 0.049709685146808624, -0.03860737755894661, 0.03961016610264778, 0.0022641094401478767, 0.010762074962258339, -0.02492646872997284, 0.05121386796236038, -0.010233820416033268, -0.05239572376012802, -0.028418324887752533, -0.06980127841234207, 0.038249239325523376, 0.08058126270771027, 0.007632835768163204, 0.02236577682197094, -0.023762518540024757, 0.0012792275520041585, 0.018112875521183014, -0.02390577457845211, -0.00041437792242504656, 0.0005567941116169095, -0.029779251664876938, -0.008935566060245037, 0.04093528166413307, -0.03140878304839134, -0.009535448625683784, -0.013689860701560974, -0.030065763741731644, -0.03382622078061104, 0.04423015937209129, 0.03620784729719162, 0.03950272500514984, 0.011326143518090248, -0.01858741044998169, 0.011890212073922157, -0.06210128962993622, 0.028024371713399887, -0.025302516296505928, 0.04322737082839012, 0.02609042078256607, 0.019500665366649628, -0.021004848182201385, -0.0669003501534462, -0.03235785290598869, 0.0263053048402071, -0.03882225975394249, -0.0331815704703331, 0.044767364859580994, 0.003279209602624178, -0.022079264745116234, -0.03846412152051926, 0.03550947457551956, -0.012096142396330833, -0.04269016161561012, 0.002715140813961625, 0.020413918420672417, -0.028095999732613564, 0.010081610642373562, -0.01080684270709753, 0.027809487655758858, -0.021022755652666092, 0.003487377893179655, 0.04845619574189186, 0.06156408041715622, -0.06793895363807678, -0.03846412152051926, -0.030495529994368553, 0.027379721403121948, 0.018497874960303307, -0.03536621853709221, -0.00284272781573236, 0.0601673386991024, -0.014361371286213398, -0.017960667610168457, 0.014406138099730015, 0.0011650706874206662, -0.016904156655073166, -0.008953473530709743, -0.035975053906440735, -0.025535305961966515, -0.02125554531812668, 0.0404696986079216, -0.07334685325622559, -0.03935946896672249, -0.051142238080501556, 0.08265846222639084, -0.02784530259668827, -0.02252693846821785, 0.005694408901035786, -0.008407311514019966, -0.000548120413441211, -0.05085572972893715, 0.018605317920446396, 0.013161606155335903, 0.016501251608133316, 0.03656598553061485, -0.1276407092809677, -0.00690760463476181, -0.03321738541126251, -0.025123445317149162, 0.048062246292829514, 0.005215398035943508, -0.0040604001842439175, 0.025517398491501808, -0.015131370164453983, -0.05490269884467125, -0.028239253908395767, 0.015793927013874054, 0.01842624880373478, 0.026663443073630333, 0.02034229040145874, -0.025463677942752838, -0.07012360543012619, -0.03072831965982914, -0.03196389973163605, -0.04580596834421158, 0.04548364505171776, 0.005546676926314831, -0.03214297071099281, -0.002321187872439623, 0.03882225975394249, 0.07334685325622559, -0.04874270781874657, 0.007476150058209896, 0.08638311177492142, -0.0025226410944014788, -0.006750918924808502, -0.012508002109825611, 0.03839249163866043, -0.030477622523903847, -0.01805020123720169, -0.0154447415843606, 0.03583180159330368, -0.023923680186271667, -0.06052548065781593, 0.03488273173570633, 0.06256686896085739, -0.01732497103512287, -0.012158816680312157, 0.004132027737796307, 0.00014871159510221332, 0.014173348434269428, -0.008183474652469158, 0.01853368990123272, 0.05171526223421097, 0.0033150233794003725, -0.008004405535757542, -0.03771203011274338, 0.0040268246084451675, -0.022723915055394173, 0.036709241569042206, -0.012311025522649288, 0.04021900147199631, 0.042045511305332184, 0.020413918420672417, 0.0014806806575506926, -0.004816968459635973, 0.005712315905839205, -0.02635902538895607, -0.036548078060150146, -0.05128549411892891, -0.046772945672273636, 0.036709241569042206, 0.053326886147260666, -0.007525394205003977, 0.037353891879320145, -0.004651329480111599, -0.014549394138157368, -0.04473155364394188, -0.01626846008002758, -0.02379833161830902, -0.04648643359541893, -0.000604359433054924, 0.03266226872801781, 0.0004208132450003177, -0.018220318481326103, -0.03665551915764809, -0.031928084790706635, -0.021631591022014618, -0.02929576486349106, -0.03404110670089722, 0.05214502662420273, -0.007874580100178719, -0.003961911890655756, -0.039001330733299255, 0.0050452821888029575, -0.033521804958581924, 0.03235785290598869, 0.02870483510196209, -0.022777635604143143, 0.002681565238162875, -0.026717163622379303, -0.015587996691465378, 0.05304037407040596, -0.0014851574087515473, -0.05902129411697388, 0.036601800471544266, -0.024998096749186516, 0.06063292175531387, 0.047739919275045395, 0.03950272500514984, 0.01964391954243183, -0.09540820866823196, 0.04136504605412483, 0.07800266146659851, 0.045232947915792465, 0.023332752287387848, 0.07220080494880676, 0.043800391256809235, 0.034220173954963684, -0.013170558959245682, 0.015910321846604347, -0.009678704664111137, 0.0040268246084451675, -0.03002994880080223, -0.05569060519337654, 0.04301248490810394, 0.0011561171850189567, -0.003409035038203001, 0.010090564377605915, 0.02943902090191841, -0.031337156891822815, -0.044552482664585114, 0.015605904161930084, -0.05257479473948479, -0.008622194640338421, -0.0034403721801936626, 0.037998542189598083, 0.033682964742183685, -0.06038222461938858, 0.016904156655073166, 0.01805020123720169, 0.003888045670464635, 0.028310881927609444, -0.005600397475063801, -0.003290401538833976, -0.015104508958756924, 0.007323941215872765, 0.09275798499584198, 0.006057024467736483, -0.03667342662811279, 0.011854398995637894, 0.010278587229549885, -0.004602085333317518, -0.03721063584089279, -0.008089463226497173, 0.018202411010861397, 0.010153238661587238, 0.044695738703012466, -0.033521804958581924, -0.02587553858757019, -0.061062686145305634, 0.004910979885607958, 0.044373415410518646, -0.03350389748811722, 0.003017320530489087, 0.08029475063085556, -0.004861736204475164, 0.014495673589408398, 0.02120182476937771, -0.0024151995312422514, -0.036619704216718674, 0.03146250545978546, 0.028669022023677826, 0.0029456927441060543, 0.024532517418265343, 0.01659078523516655, 0.04953061416745186, -0.04526875913143158, 0.06919243931770325, 0.020897407084703445, 0.03146250545978546, 0.005569060333073139, -0.020807871595025063, 0.016734041273593903, -0.04329899698495865, -0.010242773219943047, 0.009302658960223198, -0.0031650527380406857, -0.014585208147764206, -0.002983744954690337, 0.047739919275045395, -0.05193014442920685, 0.00447897519916296, 0.01067254040390253, 0.032035525888204575, 0.018166597932577133, -0.038428306579589844, 0.0034381337463855743, 0.11281376332044601, -0.027863208204507828, 0.018041249364614487, 0.026430653408169746, 0.012015561573207378, 0.005954059772193432, 0.017736829817295074, -0.0388580746948719, -0.03289506211876869, -0.0022562751546502113, -0.031247621402144432, -0.0014762039063498378, 0.028310881927609444, -0.018551597371697426, 0.019608106464147568, 0.0898212417960167, -0.017817411571741104, -0.058806411921978, -0.00045746652176603675, -0.008170044049620628, -0.01756671443581581, -0.06568267941474915, 0.010815795511007309, 0.013116838410496712, 0.018605317920446396, -0.002072729170322418, -0.013931604102253914, 0.022562753409147263, -0.021452521905303, 0.017038458958268166, 0.0006888578645884991, 0.027039488777518272, 0.012821373529732227, -0.0410069078207016, -0.026430653408169746, -0.021649498492479324, -0.011908119544386864, 0.010690446943044662, 0.005689932499080896, 0.0501752644777298, 0.0058734784834086895, -0.030531343072652817, 0.016528110951185226, 0.0555831603705883, 0.004156650044023991, -0.06038222461938858, 0.024622051045298576, 0.002813628874719143, 0.013555558398365974, -0.02465786598622799, -0.03617203235626221, -0.019124619662761688, -0.05995245650410652, -0.014576254412531853, -0.03531249985098839, -0.033682964742183685, -0.011782770976424217, -0.034596219658851624, 0.02539204992353916, -0.025517398491501808, -0.11374492198228836, 0.03162366896867752, -0.028991347178816795, -0.001723543624393642, -0.04014737531542778, -0.008178997784852982, 0.030602971091866493, 0.017163807526230812, 0.003071041312068701, 0.008908705785870552, -0.02635902538895607, -0.022168800234794617, -0.05959431827068329, 0.010985911823809147, 0.03774784505367279, -0.013098930940032005, 0.04713108390569687, -0.03531249985098839, -0.06471570581197739, -0.04011156037449837, -0.032769713550806046, -0.07101894915103912, 0.10615237802267075, 0.022276241332292557, -0.011755910702049732, -0.0036910693161189556, -0.0036239183973520994, -0.0321071557700634, 0.03540203347802162, -0.05447293072938919, 0.03140878304839134, -0.01885601505637169, 0.026663443073630333, 0.028883904218673706, -0.029671810567378998, -0.00422827759757638, -0.008232718333601952, 0.04899340495467186, 0.018274039030075073, 0.023082053288817406, -0.050927355885505676, -0.011496259830892086, -0.05128549411892891, -0.01006370410323143, -0.005466095637530088, 0.06002408638596535, -0.009302658960223198, -0.004248423036187887, -0.03579598665237427, 0.042152952402830124, -0.021434614434838295, 0.06202966347336769 ]
730,093
mmengine.fileio.backends.http_backend
get_text
Read text from a given ``filepath``. Args: filepath (str): Path to read data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Returns: str: Expected text reading from ``filepath``. Examples: >>> backend = HTTPBackend() >>> backend.get_text('http://path/of/file') 'hello world'
def get_text(self, filepath, encoding='utf-8') -> str: """Read text from a given ``filepath``. Args: filepath (str): Path to read data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Returns: str: Expected text reading from ``filepath``. Examples: >>> backend = HTTPBackend() >>> backend.get_text('http://path/of/file') 'hello world' """ return urlopen(filepath).read().decode(encoding)
(self, filepath, encoding='utf-8') -> str
[ -0.009768260642886162, -0.06801603734493256, 0.0056430017575621605, 0.060003772377967834, 0.025836918503046036, 0.011497781611979008, -0.03522574156522751, -0.009812381118535995, 0.093464694917202, -0.031766701489686966, 0.04588523507118225, 0.011497781611979008, -0.04482634738087654, -0.018689408898353577, 0.013492024503648281, -0.0006993086426518857, -0.05248565226793289, -0.01792171411216259, 0.031096071004867554, -0.03457276150584221, -0.05135617032647133, -0.030760755762457848, 0.02368384227156639, 0.026595789939165115, -0.01740991696715355, -0.007240160834044218, -0.05905076861381531, -0.07772253453731537, -0.018159965053200722, 0.012918459251523018, 0.04539108648896217, -0.06854548305273056, -0.014197951182723045, -0.00009223925007972866, -0.046767644584178925, 0.040837861597537994, -0.005334158893674612, -0.0539328008890152, -0.009538834914565086, -0.033478572964668274, -0.0494854636490345, 0.051179688423871994, 0.04546168074011803, -0.0028810633812099695, -0.017912890762090683, -0.02601340040564537, -0.06272158771753311, -0.0391436368227005, -0.042567379772663116, 0.006040085572749376, 0.031501978635787964, 0.056156471371650696, -0.032666757702827454, -0.01024476159363985, -0.039673082530498505, -0.011047753505408764, -0.0316784605383873, 0.02950773760676384, -0.006904845591634512, 0.008581421338021755, 0.0009088806691579521, -0.06734541058540344, 0.03857889398932457, -0.000035813372960546985, -0.00208799890242517, 0.033337388187646866, 0.04637938365340233, -0.033090315759181976, 0.042108528316020966, -0.05230917036533356, 0.05562702566385269, 0.016774583607912064, -0.02322498895227909, -0.07504001259803772, 0.022572007030248642, -0.007323989644646645, -0.028166476637125015, 0.01886589080095291, -0.0014471497852355242, 0.03436098247766495, -0.005819483194500208, 0.00794608797878027, 0.06060380861163139, 0.007487235125154257, 0.03903774917125702, -0.10094752162694931, 0.019536521285772324, -0.027972346171736717, -0.0032075545750558376, 0.04203793779015541, 0.017206963151693344, -0.04952076077461243, -0.00178136199247092, 0.05216798558831215, 0.021530764177441597, -0.040943749248981476, 0.027460549026727676, 0.016042184084653854, -0.018901187926530838, -0.000981127843260765, -0.041649676859378815, 0.04457927122712135, 0.016448091715574265, -0.014533266425132751, 0.028837107121944427, -0.06473348289728165, -0.007160744164139032, -0.0150538869202137, 0.05749773234128952, -0.021071912720799446, -0.018371742218732834, -0.05439165234565735, -0.00712544796988368, 0.0344315767288208, 0.026578141376376152, -0.04556756839156151, -0.05612117424607277, -0.0058106593787670135, 0.011868393048644066, -0.028784161433577538, -0.00003477929931250401, -0.006587178446352482, -0.0646628886461258, -0.02403680421411991, 0.03331974148750305, 0.030390145257115364, 0.016924593597650528, -0.029931291937828064, 0.04344978928565979, 0.0021089559886604548, 0.0025325121823698282, 0.01616572216153145, 0.046979423612356186, 0.0033332977909594774, 0.015530387870967388, 0.020824838429689407, -0.011736031621694565, 0.05089731514453888, 0.06667477637529373, 0.05135617032647133, 0.01358908973634243, -0.036990560591220856, 0.026048695668578148, -0.03234909102320671, -0.008925560861825943, 0.004414247814565897, 0.04980313032865524, -0.10377122461795807, -0.027601733803749084, 0.017824649810791016, 0.05368572846055031, -0.008629954420030117, -0.03635522723197937, -0.02052481845021248, 0.022589655593037605, 0.0011515429941937327, 0.0043502734042704105, 0.05227387323975563, -0.06254510581493378, 0.05096790939569473, -0.02317204512655735, 0.06145092099905014, 0.010024159215390682, 0.0006910360534675419, 0.010791854932904243, 0.025642788037657738, -0.011656614951789379, -0.047932423651218414, -0.019254151731729507, -0.04877953603863716, -0.04034371301531792, -0.021866079419851303, -0.09141750633716583, 0.022042561322450638, 0.06738070398569107, -0.003988485783338547, 0.042355604469776154, 0.0664982944726944, 0.029878348112106323, 0.05979199334979057, -0.015468618832528591, -0.08972328901290894, -0.04807360842823982, 0.017780529335141182, 0.05809776857495308, -0.0070063224993646145, 0.004001722205430269, 0.011188938282430172, 0.01065066922456026, 0.02528982423245907, -0.000033176485885633156, -0.06293337047100067, -0.010633021593093872, 0.012777273543179035, -0.02281908132135868, -0.0801226794719696, 0.0646628886461258, -0.019430633634328842, -0.059897881001234055, -0.00026003472157754004, 0.03903774917125702, -0.0025920746847987175, 0.017780529335141182, 0.032631464302539825, -0.018477631732821465, 0.03872007876634598, -0.009821205399930477, 0.010933039709925652, -0.05255624279379845, 0.056156471371650696, -0.016412796452641487, -0.030531330034136772, -0.025589844211935997, 0.01951887458562851, 0.027866456657648087, 0.009168223477900028, -0.06861607730388641, 0.04309682548046112, 0.007310753688216209, 0.01298022735863924, 0.022942617535591125, 0.036919966340065, -0.03741411492228508, 0.018742354586720467, 0.057109471410512924, -0.007028382737189531, 0.010765382088720798, 0.04719120264053345, -0.018689408898353577, -0.022572007030248642, 0.012071346864104271, -0.022448468953371048, 0.052803318947553635, 0.008722607046365738, 0.08216986805200577, -0.013297894969582558, -0.0301077738404274, -0.014921526424586773, 0.03552576154470444, 0.010315353982150555, 0.027301715686917305, -0.002534718019887805, -0.004383363761007786, 0.04680294170975685, -0.026348713785409927, -0.007588712032884359, 0.0014570768689736724, 0.05601528659462929, 0.02620752900838852, -0.05368572846055031, 0.041649676859378815, -0.0018872509244829416, 0.0040502543561160564, -0.01049183588474989, -0.03716704249382019, 0.03903774917125702, 0.022166099399328232, -0.047932423651218414, -0.025536898523569107, 0.042002640664577484, 0.013147884979844093, -0.0069180820137262344, -0.036425817757844925, 0.006004788912832737, -0.003386242315173149, -0.05308568850159645, -0.05008549988269806, 0.05859191715717316, 0.01756875030696392, -0.015653925016522408, 0.017224611714482307, 0.07871083170175552, 0.012080171145498753, -0.05492109805345535, -0.05110909417271614, -0.04832068458199501, 0.023101450875401497, 0.04366156831383705, 0.016474565491080284, -0.014771516434848309, -0.09247639775276184, 0.04344978928565979, 0.020560115575790405, -0.04376745596528053, 0.0249368604272604, -0.02341911941766739, 0.005444459617137909, -0.006048909388482571, -0.003633316606283188, -0.010677141137421131, 0.022589655593037605, -0.021107207983732224, 0.007672540843486786, -0.0126007916405797, 0.04475575312972069, -0.021018968895077705, -0.03492572531104088, -0.017365796491503716, 0.026525195688009262, -0.03709644824266434, 0.026789918541908264, 0.020136559382081032, -0.026807567104697227, -0.028078235685825348, -0.031096071004867554, -0.01528331357985735, -0.0015078153228387237, -0.028272364288568497, 0.012265476398169994, -0.0069886744022369385, 0.012689032591879368, -0.05785069614648819, 0.031290203332901, 0.07934616506099701, -0.03393742814660072, 0.033690351992845535, -0.009247640147805214, 0.0008200883166864514, 0.012512550689280033, -0.03790826350450516, 0.025130990892648697, -0.038049448281526566, 0.048391275107860565, -0.007293105591088533, 0.006891609635204077, -0.017851121723651886, 0.017930539324879646, -0.006900433450937271, -0.006397461052983999, 0.01916591078042984, 0.056050579994916916, 0.03988485783338547, 0.024160342290997505, -0.07256926596164703, -0.052344467490911484, -0.030443089082837105, 0.016995185986161232, -0.06783955544233322, -0.0150538869202137, 0.0067460122518241405, 0.042108528316020966, -0.07638127356767654, -0.02986069954931736, 0.007981384173035622, 0.004645880311727524, 0.06632181257009506, 0.01751580648124218, -0.029419496655464172, 0.0360022634267807, -0.05665061995387077, 0.0058283074758946896, -0.013650857843458652, -0.03960248827934265, -0.00793285109102726, -0.07574594020843506, 0.03999074921011925, -0.02666638232767582, -0.02656049281358719, -0.005126792937517166, 0.0033597699366509914, -0.04941486939787865, 0.012371365912258625, -0.045602865517139435, 0.03924952447414398, -0.020966023206710815, -0.005457696039229631, 0.0353492796421051, 0.10567723214626312, -0.012327245436608791, 0.06078029051423073, 0.017939362674951553, 0.0011372037697583437, -0.00576653890311718, 0.07892260700464249, -0.0046105836518108845, -0.013094940222799778, -0.032119665294885635, -0.07341638207435608, -0.021971968933939934, 0.06307455152273178, -0.0009601706406101584, 0.04348508641123772, -0.03999074921011925, -0.00970649253576994, 0.0033730061259120703, -0.011118345893919468, -0.010068279691040516, 0.0003027763741556555, -0.005457696039229631, -0.04182615876197815, 0.05530935898423195, -0.008656426332890987, 0.010597724467515945, -0.025483954697847366, -0.02214845083653927, -0.004844421986490488, 0.03238438814878464, 0.03381389006972313, 0.05414457991719246, 0.013430255465209484, -0.02813117951154709, 0.016474565491080284, -0.07211041450500488, 0.003650964703410864, -0.007690188940614462, 0.10412418842315674, -0.003637728514149785, 0.031219609081745148, -0.019907133653759956, -0.009106454439461231, -0.012856690213084221, 0.03189023956656456, -0.005395927466452122, -0.050473760813474655, 0.018389390781521797, -0.007857847027480602, -0.03543752059340477, -0.03517279773950577, 0.013933228328824043, 0.009538834914565086, -0.043167419731616974, 0.018936485052108765, -0.019942428916692734, -0.013403783552348614, 0.013297894969582558, -0.007544591557234526, 0.03356681391596794, -0.029384199529886246, 0.04203793779015541, 0.04637938365340233, 0.042108528316020966, -0.10518307983875275, -0.07228689640760422, -0.021177802234888077, -0.01530978549271822, 0.027548789978027344, -0.04888542369008064, 0.011056576855480671, 0.010006511583924294, -0.07059267163276672, 0.01627161167562008, 0.029172422364354134, 0.009777084924280643, 0.006454817485064268, 0.03589637205004692, -0.028201771900057793, -0.01222135592252016, -0.0308313500136137, -0.0028678271919488907, -0.059086065739393234, -0.022589655593037605, 0.014012644998729229, 0.05428576469421387, 0.013050819747149944, -0.02154841274023056, -0.0146303316578269, 0.03826122730970383, 0.005060612224042416, -0.02333087846636772, 0.06268629431724548, -0.05492109805345535, 0.053615134209394455, 0.03808474540710449, -0.10977160185575485, 0.03988485783338547, -0.031290203332901, -0.026401659473776817, 0.055379949510097504, -0.05601528659462929, -0.007076915353536606, -0.012556671164929867, 0.01100363302975893, -0.07440467923879623, -0.025536898523569107, 0.005973904859274626, 0.027354659512639046, -0.02266024798154831, 0.01168308686465025, 0.0017615077085793018, -0.0069180820137262344, -0.0009331468609161675, -0.03356681391596794, -0.007725485600531101, 0.009750613011419773, -0.004193645901978016, -0.010059455409646034, 0.02687815949320793, -0.004659116268157959, 0.029895996674895287, -0.03843770921230316, 0.028519438579678535, 0.03833182156085968, 0.03487278148531914, -0.003933335654437542, -0.015080359764397144, 0.018265854567289352, -0.045814644545316696, 0.039567191153764725, 0.0036178743466734886, 0.03245498239994049, -0.028607679530978203, -0.040837861597537994, 0.02220139466226101, 0.09762966632843018, 0.006106266286224127, 0.030143070966005325, -0.005559172946959734, 0.03670819103717804, 0.03776707872748375, -0.0016004681820049882, 0.019907133653759956, 0.05308568850159645, 0.027901753783226013, 0.011268354952335358, -0.013818515464663506, -0.028078235685825348, -0.02585456520318985, 0.05177972465753555, -0.007571063935756683, 0.021424876525998116, -0.02038363367319107, 0.010280057787895203, -0.027972346171736717, -0.018689408898353577, 0.03614344820380211, -0.02008361555635929, -0.06430992484092712, 0.005038551986217499, -0.07482822984457016, 0.04796772077679634, 0.01295375544577837, -0.01543332263827324, 0.0357375405728817, 0.015777461230754852, -0.02458389848470688, -0.04705001413822174, -0.03524339199066162, -0.0017637137789279222, -0.001130585791543126, 0.061839181929826736, 0.018389390781521797, 0.015733342617750168, -0.047332387417554855, -0.011718383058905602, -0.002075865864753723, -0.036390520632267, -0.009406473487615585, -0.015274489298462868, 0.045814644545316696, 0.05248565226793289, 0.005210621748119593, -0.030037181451916695, -0.0020593206863850355, -0.026489900425076485, 0.05993317812681198, 0.06173329055309296, -0.042355604469776154, 0.04574405029416084, -0.016465740278363228, -0.03540222346782684, 0.043873343616724014, -0.014453849755227566, -0.03430803865194321, 0.041367307305336, 0.004244384355843067, 0.04556756839156151, 0.02170724608004093, 0.06490996479988098, -0.021530764177441597, -0.06078029051423073, 0.03984956443309784, 0.041296713054180145, 0.05682710185647011, -0.0062209791503846645, 0.012124291621148586, 0.023648545145988464, 0.0714750811457634, -0.014842108823359013, 0.02260730229318142, 0.03843770921230316, 0.030407793819904327, -0.046520572155714035, -0.03421979770064354, 0.036990560591220856, 0.017630519345402718, 0.02920771762728691, -0.000903917127288878, 0.0252015832811594, -0.02701934427022934, -0.012689032591879368, 0.025360416620969772, -0.02138957940042019, 0.022095507010817528, 0.0018023191951215267, 0.04729709029197693, 0.03245498239994049, -0.0217954870313406, 0.02904888428747654, 0.03144903481006622, -0.018565872684121132, 0.005868015810847282, -0.010527132079005241, 0.004341449122875929, 0.003361976006999612, -0.0061680348590016365, 0.09304114431142807, 0.024142693728208542, -0.05273272469639778, -0.00311710755340755, 0.014515617862343788, -0.012627264484763145, -0.05679180473089218, -0.009159399196505547, -0.05114439129829407, 0.029684217646718025, 0.04122611880302429, 0.014233247376978397, -0.05672121047973633, 0.02733701281249523, -0.015733342617750168, 0.07189863920211792, 0.00021701731020584702, 0.02453095279633999, 0.07609889656305313, 0.008532889187335968, 0.028678273782134056, 0.027195826172828674, -0.06268629431724548, -0.04193204641342163, 0.015495091676712036, -0.0010059456108137965, -0.010059455409646034, -0.009309408254921436, 0.022483766078948975, 0.05057964846491814, -0.016465740278363228, 0.008471120148897171, 0.0004505797987803817, 0.02514863945543766, -0.03406096249818802, -0.05410928279161453, -0.005272390320897102, -0.05333276465535164, -0.051285576075315475, 0.0032075545750558376, -0.00630039582028985, -0.04172026738524437, -0.016765760257840157, 0.05700358375906944, -0.0353492796421051, -0.0037568537518382072, 0.04087315872311592, 0.022289635613560677, 0.0025192759931087494, -0.03139609098434448, 0.013271422125399113, 0.08753491193056107, -0.049097202718257904, 0.04344978928565979, 0.044191014021635056, 0.02509569562971592, 0.007628420367836952, 0.028219420462846756, -0.03335503861308098, 0.005731242708861828, -0.03907304257154465, -0.027142882347106934, -0.004511313047260046, 0.056050579994916916, -0.00570477033033967, 0.05453283712267876, 0.09762966632843018, 0.014824461191892624, -0.04122611880302429, 0.04062608256936073, 0.010791854932904243, 0.029631273820996284, -0.058380138128995895, 0.013871460221707821, 0.019889485090970993, 0.026648733764886856, 0.012812569737434387, -0.028148828074336052, -0.04023782163858414, -0.006375400815159082, -0.009247640147805214, -0.011321299709379673, 0.01840703934431076, 0.054779913276433945, 0.0005457144579850137, -0.05552113801240921, 0.005144441034644842, -0.03946130350232124, 0.016059832647442818, 0.04994431510567665, 0.015080359764397144, 0.01738344505429268, -0.05181502178311348, 0.037943560630083084, 0.032066721469163895, 0.018618816509842873, -0.05463872849941254, 0.02008361555635929, -0.04860305413603783, 0.011877217330038548, -0.03812004253268242, -0.040131933987140656, -0.03086664527654648, -0.057603619992733, -0.04577934741973877, -0.046626459807157516, -0.032772649079561234, 0.023895619437098503, -0.023295581340789795, 0.07249867171049118, -0.01088009588420391, -0.07581652700901031, 0.043026234954595566, -0.00806521251797676, -0.014003821648657322, -0.012106643058359623, 0.0075137075036764145, 0.03570224344730377, 0.011630143038928509, -0.014480321668088436, 0.027389956638216972, -0.012256653048098087, -0.01840703934431076, -0.032878536731004715, 0.004056872799992561, 0.023754434660077095, 0.0016655458603054285, 0.009812381118535995, -0.04772064462304115, -0.060815587639808655, -0.01932474412024021, -0.00930058490484953, -0.05463872849941254, 0.06289806962013245, 0.017683465033769608, -0.04623819887638092, -0.017092250287532806, -0.06265099346637726, -0.03974367305636406, 0.06201566383242607, -0.026842864230275154, 0.008360819891095161, -0.02574867755174637, 0.018777649849653244, 0.013544969260692596, -0.022695543244481087, 0.02271319180727005, -0.022130802273750305, 0.045602865517139435, -0.006688655819743872, 0.04193204641342163, 0.013915580697357655, -0.0011156951077282429, -0.05622706189751625, 0.031060775741934776, -0.0048753065057098866, 0.0620509572327137, 0.020313041284680367, 0.004438514355570078, -0.03903774917125702, 0.006834253203123808, -0.026242826133966446, 0.03462570533156395 ]
730,094
mmengine.fileio.file_client
HardDiskBackend
Raw hard disks storage backend.
class HardDiskBackend(LocalBackend): """Raw hard disks storage backend.""" def __init__(self) -> None: print_log( '"HardDiskBackend" is the alias of "LocalBackend" ' 'and the former will be deprecated in future.', logger='current', level=logging.WARNING) @property def name(self): return self.__class__.__name__
() -> None
[ 0.01938740909099579, -0.05122910067439079, -0.031208116561174393, 0.027442868798971176, 0.02011149562895298, -0.029234981164336205, -0.065348781645298, 0.06408163160085678, 0.037055112421512604, -0.07092424482107162, 0.016644932329654694, -0.004896633327007294, -0.024691341444849968, -0.007992101833224297, -0.0036928397603332996, 0.013676178641617298, -0.03680168464779854, 0.005023348145186901, 0.0006369696347974241, -0.044169262051582336, -0.007485241629183292, 0.03303643316030502, 0.06824512779712677, -0.0076753138564527035, -0.015558802522718906, 0.10817848145961761, 0.011295745149254799, -0.028456589207053185, 0.013151216320693493, -0.04967231675982475, -0.030049579218029976, -0.01951412484049797, 0.0089334137737751, 0.028402281925082207, 0.019767554476857185, 0.0035118181258440018, 0.0031882422044873238, 0.020600253716111183, -0.10072039812803268, -0.02029251679778099, -0.006991957779973745, -0.01353136170655489, -0.006095901131629944, -0.044820938259363174, 0.014155886135995388, 0.06476951390504837, 0.04554502293467522, -0.007200132589787245, 0.026863599196076393, 0.0012728078290820122, -0.002155287889763713, 0.028782427310943604, -0.03231234848499298, 0.03444840386509895, -0.05072224140167236, 0.004670356400310993, 0.04543641209602356, -0.0020749596878886223, -0.10419601202011108, 0.050468809902668, -0.03209512308239937, -0.0030886803288012743, 0.05007056146860123, -0.004928311798721552, 0.0027832065243273973, -0.031932201236486435, -0.028547098860144615, 0.011476767249405384, -0.02148725837469101, 0.055971864610910416, -0.002245798707008362, -0.05687697231769562, -0.01666303537786007, 0.00403225515037775, -0.005091231316328049, 0.0008315677987411618, -0.05524777993559837, 0.018500402569770813, -0.026809291914105415, 0.014744206331670284, 0.007688890676945448, -0.02550593763589859, -0.017903031781315804, -0.00087116623762995, 0.004792545922100544, -0.044314078986644745, -0.013169318437576294, -0.0043739331886172295, -0.008901734836399555, 0.003136198502033949, -0.0243655014783144, 0.04174357280135155, 0.03405015543103218, 0.056152887642383575, 0.014481724239885807, -0.09601383656263351, -0.042214225977659225, 0.0012388662435114384, -0.0282574649900198, 0.0191520806401968, -0.01728755794465542, 0.028963448479771614, 0.021288136020302773, -0.010110054165124893, 0.004473495297133923, -0.041345324367284775, 0.008910786360502243, -0.03754387050867081, 0.005475901998579502, -0.012490487657487392, 0.008082612417638302, 0.0128434794023633, -0.010607863776385784, -0.0070281620137393475, -0.004527801647782326, 0.02756958268582821, -0.0016314567765221, -0.025125792250037193, 0.042033206671476364, -0.04905684292316437, -0.07400161027908325, 0.021469157189130783, -0.06382820010185242, -0.022645797580480576, 0.011657788418233395, 0.008412976749241352, 0.04456750676035881, -0.02280871570110321, -0.042033206671476364, -0.002758315997198224, 0.037000805139541626, 0.02778680995106697, -0.05122910067439079, 0.019043467938899994, 0.05488573759794235, -0.000013355643204704393, 0.027279948815703392, 0.05604427307844162, 0.014445520006120205, 0.06820892542600632, -0.0408746674656868, -0.019894268363714218, -0.010870344936847687, 0.0152420150116086, 0.03126242384314537, 0.055971864610910416, -0.001651821774430573, -0.05379960685968399, -0.017703907564282417, -0.03844897821545601, 0.0021258718334138393, 0.007476190570741892, -0.009892827831208706, 0.04862239211797714, -0.02016580104827881, 0.02257338911294937, -0.06915023177862167, -0.013875302858650684, 0.009431223385035992, 0.010906549170613289, -0.053509972989559174, -0.05662354454398155, 0.02463703416287899, -0.02034682407975197, -0.042540065944194794, 0.022138936445116997, -0.05850616842508316, -0.05430646613240242, -0.010725527070462704, 0.023369884118437767, 0.00021255890897009522, -0.024238787591457367, -0.004468969535082579, 0.025759367272257805, 0.0074988179840147495, 0.029126368463039398, 0.0452553890645504, 0.03294592350721359, -0.009883777238428593, -0.06455228477716446, 0.049201659858226776, -0.0032606509048491716, -0.05101187527179718, 0.022084631025791168, 0.027587685734033585, -0.01942361332476139, 0.01582128368318081, 0.03075556270778179, 0.05593566223978996, 0.06194557622075081, -0.003982474096119404, 0.039607517421245575, 0.009331661276519299, -0.029832351952791214, 0.05680456385016441, -0.05343756452202797, 0.09094522893428802, -0.052134208381175995, 0.005195318721234798, 0.07849095016717911, -0.04330035671591759, 0.05991813540458679, 0.015993254259228706, -0.02289922721683979, 0.008177649229764938, 0.06578323245048523, 0.025886083021759987, 0.02317075990140438, -0.07298789173364639, 0.02985045500099659, -0.05608047917485237, 0.012155598029494286, -0.06676074862480164, 0.08160451799631119, 0.05014296993613243, -0.017197048291563988, -0.02574126608669758, 0.05151873454451561, 0.021541565656661987, 0.013359391130506992, 0.05535639077425003, 0.001983317546546459, -0.018844343721866608, -0.041164301335811615, -0.01711558923125267, -0.014861869625747204, 0.04558122903108597, -0.02322506532073021, 0.017550040036439896, -0.026573965325951576, -0.018455147743225098, 0.006933125667273998, -0.02463703416287899, 0.005394442472606897, 0.0627782791852951, 0.043445173650979996, 0.018952956423163414, -0.02930738963186741, 0.007254438940435648, -0.019115876406431198, -0.0033647383097559214, -0.00619546277448535, -0.009811368770897388, 0.008517064154148102, -0.0230440441519022, -0.032656289637088776, -0.02029251679778099, 0.04804312065243721, 0.03852138668298721, -0.0522790253162384, -0.007874437607824802, -0.01618332788348198, -0.002681381767615676, -0.010508301667869091, 0.023297473788261414, -0.042576272040605545, -0.05640631914138794, -0.042540065944194794, -0.011875013820827007, -0.005960134789347649, -0.07704277336597443, 0.0020376238971948624, -0.07135869562625885, 0.04282969981431961, 0.005638821516185999, 0.0019301424035802484, 0.003373789368197322, -0.012164648622274399, 0.016228582710027695, 0.03967992588877678, 0.12099480628967285, 0.04771728441119194, -0.052170414477586746, 0.011331949383020401, -0.012345670722424984, -0.05238763988018036, -0.0050369249656796455, 0.057383835315704346, -0.06571082770824432, -0.007706992793828249, -0.018808139488101006, -0.04967231675982475, -0.0007778269937261939, 0.00684714037925005, 0.0036113800015300512, -0.06781067699193954, -0.03902824968099594, -0.038014527410268784, 0.003195030614733696, -0.054921939969062805, -0.012128444388508797, 0.05951988697052002, -0.03772489354014397, 0.028076443821191788, 0.06484191864728928, -0.010444943793118, -0.09333471208810806, -0.015070044435560703, 0.02103470452129841, -0.007525971159338951, -0.0006833563675172627, 0.004747290164232254, -0.007525971159338951, 0.07516015321016312, -0.000027736603442463093, -0.0361500047147274, 0.021740689873695374, -0.03939029201865196, 0.011449613608419895, 0.004747290164232254, 0.0017264931229874492, 0.020636457949876785, 0.03815934434533119, 0.0478258952498436, 0.03290972113609314, 0.06382820010185242, 0.003613642882555723, -0.002991381334140897, 0.011893115937709808, 0.05930266156792641, -0.034538913518190384, 0.05941127613186836, -0.03423117846250534, 0.04594327136874199, 0.0017638287972658873, -0.006584659218788147, 0.0373990535736084, 0.021469157189130783, 0.017658652737736702, 0.025705061852931976, -0.04876720905303955, 0.001795507618226111, 0.035262998193502426, -0.06038879230618477, -0.03939029201865196, -0.0106712207198143, 0.02691790647804737, -0.009069180116057396, -0.04369860514998436, -0.057383835315704346, 0.04301072284579277, 0.0026044477708637714, -0.013006399385631084, 0.02994096651673317, -0.03993335738778114, 0.0135042080655694, 0.01825602352619171, -0.04688458517193794, 0.022464774549007416, 0.0452553890645504, -0.03808693587779999, -0.02604900300502777, -0.05503055453300476, 0.030049579218029976, 0.05861477926373482, -0.07392920553684235, -0.025795571506023407, 0.026773087680339813, -0.046232905238866806, -0.008530640974640846, 0.023822437971830368, -0.026899803429841995, -0.007598380092531443, 0.030918482691049576, -0.017631499096751213, -0.03993335738778114, 0.059447478502988815, -0.024347400292754173, 0.017224201932549477, -0.006661593448370695, -0.03312694653868675, -0.06161973997950554, 0.027460969984531403, 0.026773087680339813, 0.0040684593841433525, 0.0017366756219416857, -0.004568531643599272, 0.0011381730437278748, -0.028148852288722992, 0.03099089115858078, 0.04424167051911354, -0.008394874632358551, 0.0261395126581192, 0.010825089178979397, 0.015196760185062885, 0.03245716542005539, -0.000581531785428524, 0.011838809587061405, 0.05238763988018036, -0.010725527070462704, 0.011431511491537094, -0.03596898540854454, -0.045726045966148376, 0.04109189286828041, -0.029325492680072784, -0.03332607075572014, -0.05343756452202797, 0.009557938203215599, -0.0392092689871788, 0.009241150692105293, -0.012997347861528397, -0.04091087356209755, -0.03971612825989723, 0.02688170224428177, -0.01005574781447649, -0.004774443805217743, 0.07128629088401794, 0.011802605353295803, -0.0063764844089746475, 0.03035731613636017, 0.0037810876965522766, 0.03242095932364464, -0.06657972931861877, -0.0027492649387568235, 0.05593566223978996, 0.027623889967799187, 0.02930738963186741, -0.0374714620411396, 0.021306237205863, 0.02427499182522297, -0.05408924072980881, 0.0426848828792572, 0.026085207238793373, -0.009109909646213055, 0.03511818125844002, 0.0222113449126482, -0.0530393160879612, 0.012372823432087898, -0.0028556149918586016, 0.0063764844089746475, 0.019278796389698982, -0.0004980921512469649, -0.0273885615170002, -0.007127723656594753, 0.0196046344935894, -0.01618332788348198, 0.04514677822589874, -0.013413697481155396, -0.028782427310943604, -0.020147699862718582, 0.007598380092531443, -0.05644252151250839, 0.010725527070462704, -0.005245099775493145, 0.03502767160534859, -0.026175716891884804, -0.0817493349313736, 0.013866251334547997, 0.007693416438996792, 0.003550285240635276, 0.0009588485700078309, -0.017604347318410873, 0.04286590591073036, -0.013495157472789288, 0.03729044273495674, -0.06419024616479874, -0.015785079449415207, -0.03964371979236603, 0.0016054349252954125, 0.03372431546449661, -0.030936583876609802, 0.08565939962863922, -0.013160266913473606, -0.038412775844335556, 0.046051885932683945, 0.025252507999539375, 0.04279349744319916, 0.03323555737733841, 0.014590337872505188, 0.013839097693562508, 0.02385864220559597, 0.05604427307844162, -0.03797832131385803, -0.022645797580480576, -0.012762019410729408, 0.016735443845391273, -0.04196079820394516, -0.01526916865259409, -0.027913523837924004, -0.04511057212948799, -0.040295399725437164, -0.030827971175312996, 0.019025364890694618, 0.03242095932364464, 0.015024789609014988, -0.04931027069687843, 0.043771013617515564, 0.02280871570110321, 0.06730381399393082, -0.029995271936058998, -0.0204373337328434, 0.045364003628492355, -0.026157615706324577, -0.002590870950371027, -0.019278796389698982, 0.03383293002843857, -0.006209039594978094, 0.024474114179611206, -0.02011149562895298, 0.008892684243619442, 0.015232964418828487, -0.05115669220685959, -0.02838418073952198, 0.004652254283428192, 0.05289449915289879, -0.03844897821545601, 0.0178668275475502, 0.055609822273254395, 0.0009288668516092002, 0.022428570315241814, -0.008268159814178944, 0.0017921134131029248, 0.0222113449126482, -0.016735443845391273, -0.03080986998975277, 0.03578796237707138, -0.09087282419204712, 0.024745646864175797, 0.04891202598810196, 0.05861477926373482, 0.0003662858216557652, -0.002155287889763713, 0.03415876626968384, -0.03575175628066063, 0.003907802980393171, -0.0182831771671772, -0.013875302858650684, 0.012101290747523308, 0.022682001814246178, 0.1079612597823143, 0.02628432959318161, 0.036729272454977036, 0.020582150667905807, 0.012852530926465988, 0.0013146690325811505, 0.0765359178185463, -0.07005534321069717, -0.02400345914065838, 0.021921711042523384, -0.07135869562625885, 0.025161996483802795, -0.03155205771327019, 0.04521918669342995, -0.04753626137971878, -0.0030185345094650984, -0.08138729631900787, -0.026320533826947212, -0.0071865557692945, 0.04688458517193794, -0.02244667336344719, 0.06151112541556358, -0.051301509141922, -0.003466562833636999, -0.06466089934110641, 0.012037933804094791, -0.0023917474318295717, 0.020636457949876785, 0.021288136020302773, 0.004905684385448694, 0.014201140962541103, -0.00809166394174099, 0.027859218418598175, 0.01666303537786007, 0.01909777522087097, 0.04666735604405403, -0.02199411951005459, 0.011051366105675697, 0.014155886135995388, -0.02499907650053501, -0.04471232369542122, -0.007557650096714497, 0.014762308448553085, 0.06766586005687714, 0.031877897679805756, -0.024926668033003807, 0.06397301703691483, 0.05930266156792641, 0.04645013064146042, -0.020545946434140205, -0.03676547855138779, -0.02975994348526001, 0.06281448155641556, -0.07733240723609924, 0.012101290747523308, -0.045726045966148376, -0.04445889592170715, 0.030592642724514008, 0.009164215996861458, -0.06183696538209915, -0.02604900300502777, -0.03725423663854599, 0.007077943067997694, 0.037055112421512604, -0.05289449915289879, 0.03319935500621796, -0.023424189537763596, -0.0749429240822792, -0.04141773283481598, 0.0383041612803936, 0.00014411013398785144, -0.032674390822649, 0.019133979454636574, -0.010761731304228306, -0.016862157732248306, 0.08956946432590485, -0.022084631025791168, -0.005299406126141548, -0.03491905704140663, -0.0522790253162384, -0.015531649813055992, -0.04891202598810196, 0.040983282029628754, -0.015006687492132187, 0.03779730200767517, 0.042576272040605545, -0.03167877346277237, 0.017061281949281693, -0.029814250767230988, 0.04677597060799599, -0.000267148221610114, -0.04438648745417595, 0.04380721598863602, 0.005009771790355444, 0.02248287759721279, -0.04156254976987839, -0.026954110711812973, 0.040114376693964005, -0.02532491646707058, -0.013766689226031303, 0.017749164253473282, -0.024745646864175797, 0.008888158947229385, -0.01311501208692789, -0.0130697563290596, -0.034756138920784, -0.05933886766433716, -0.04044021666049957, -0.005896777380257845, 0.03251147270202637, 0.013730484992265701, -0.02769629843533039, 0.04804312065243721, -0.03278300538659096, -0.02601279877126217, -0.023188861086964607, -0.057383835315704346, -0.038231752812862396, -0.017224201932549477, 0.007983050309121609, -0.01702507771551609, -0.03899204358458519, 0.06498674303293228, -0.001542077399790287, 0.03162446618080139, 0.00598728796467185, 0.059447478502988815, 0.006249769125133753, -0.008951515890657902, 0.04927406832575798, -0.04301072284579277, 0.0014674060512334108, -0.055465005338191986, 0.014572235755622387, 0.06129390001296997, 0.026411045342683792, 0.016590625047683716, -0.010345381684601307, -0.009838521480560303, -0.03680168464779854, -0.050034359097480774, 0.030230600386857986, 0.0195684302598238, 0.006362907588481903, -0.0801563486456871, -0.04807932674884796, -0.009177792817354202, 0.04228663444519043, -0.011549175716936588, 0.056333910673856735, 0.005738383624702692, 0.020364925265312195, -0.008670932613313198, -0.02925308421254158, 0.03808693587779999, -0.010734578594565392, 0.08254583179950714, 0.022229447960853577, 0.014572235755622387, -0.018663322553038597, -0.08102525025606155, -0.020238209515810013, -0.007802029140293598, 0.04196079820394516, 0.059085436165332794, -0.018093105405569077, -0.04127291589975357, 0.05698558688163757, -0.07907021790742874, 0.011603482067584991, 0.0019482445204630494, 0.04243145510554314, 0.0128253772854805, -0.030103884637355804, -0.025650754570961, 0.04264868050813675, 0.011015161871910095, -0.015151504427194595, -0.03062884695827961, 0.018391789868474007, -0.05618909001350403, 0.042214225977659225, 0.030248701572418213, 0.05325654149055481, -0.013477055355906487, 0.04301072284579277, -0.03660256043076515, -0.003946269862353802, -0.04127291589975357, -0.012626253999769688, 0.027442868798971176, 0.009155165404081345, 0.009404069744050503, 0.04333656281232834, 0.010644068010151386, 0.009539836086332798, 0.0031113079749047756, -0.04894822835922241, -0.012897785753011703, -0.0059013026766479015, 0.055283982306718826, -0.008069035597145557, 0.009503631852567196, -0.0765359178185463, 0.021089011803269386, 0.020690763369202614, -0.03707321360707283, 0.058071717619895935, -0.013730484992265701, 0.024075867608189583, 0.05919405072927475, 0.031515851616859436, -0.014689899049699306, -0.0035027670674026012, 0.000308019487420097, 0.03146154806017876, 0.0016620041569694877, 0.046377722173929214, 0.03993335738778114, -0.0009000165737234056, 0.08037357032299042, 0.0565149299800396, -0.04387962445616722, -0.050903260707855225, 0.06896921247243881, 0.01729661040008068, -0.0435175821185112, 0.013458953239023685, -0.0025320390705019236, -0.02577747032046318, -0.03844897821545601, -0.051301509141922, -0.029597025364637375, 0.02601279877126217, -0.0031588261481374502, -0.02856520190834999, -0.018020696938037872, -0.01579413004219532, 0.0130697563290596 ]
730,095
mmengine.fileio.file_client
__init__
null
def __init__(self) -> None: print_log( '"HardDiskBackend" is the alias of "LocalBackend" ' 'and the former will be deprecated in future.', logger='current', level=logging.WARNING)
(self) -> NoneType
[ -0.00003683979230117984, -0.03332159295678139, 0.00833500362932682, 0.02444320358335972, 0.019654029980301857, -0.02079606242477894, -0.02790614403784275, 0.06605374813079834, 0.00765807181596756, -0.049033764749765396, 0.008882994763553143, 0.008850760757923126, -0.0018650145502761006, -0.02486686035990715, -0.009288232773542404, 0.01055460050702095, -0.034334685653448105, -0.0037576588802039623, -0.004844432696700096, -0.019635610282421112, -0.014791176654398441, 0.015518763102591038, 0.04523926600813866, 0.028679778799414635, -0.012746568769216537, 0.08428944647312164, -0.013814922422170639, -0.025069478899240494, 0.012976816855370998, -0.042844679206609726, -0.030153371393680573, -0.01885276474058628, -0.011374286375939846, 0.03626877814531326, 0.01558323297649622, -0.011558485217392445, 0.01627397909760475, -0.010563810355961323, -0.0976991355419159, -0.0036747693084180355, 0.0243326835334301, -0.008431707508862019, -0.006216715089976788, -0.03440836817026138, -0.003317883936688304, 0.06616427004337311, 0.05842791125178337, 0.021385500207543373, -0.006004886236041784, 0.0035112928599119186, -0.015260884538292885, 0.048960085958242416, -0.024037964642047882, 0.023411689326167107, -0.06399071961641312, 0.014072800986468792, 0.07625836879014969, -0.03359789028763771, -0.07386378198862076, 0.022748572751879692, -0.02193809673190117, 0.030540188774466515, 0.040523771196603775, 0.01023225300014019, 0.0023358731996268034, -0.04111320897936821, -0.027593005448579788, 0.01924879290163517, -0.01928563229739666, 0.07611101120710373, 0.01882513426244259, -0.06292236596345901, -0.04118688777089119, -0.0029909308068454266, -0.014966165646910667, -0.009315862320363522, -0.06008570268750191, 0.031221725046634674, -0.029545513913035393, 0.0230801310390234, -0.011015098541975021, 0.007271254435181618, -0.007552157621830702, 0.029453415423631668, 0.028311381116509438, -0.0475970134139061, -0.0036264171358197927, 0.021017102524638176, -0.012378170154988766, 0.017517320811748505, -0.06130141764879227, 0.03641613572835922, 0.02232491411268711, 0.05640172213315964, 0.006428543943911791, -0.07810036092996597, -0.03893966227769852, -0.02536419779062271, 0.008988909423351288, 0.029637614265084267, -0.0074600582011044025, -0.024277424439787865, 0.010002003982663155, -0.04229208454489708, 0.0007154978811740875, -0.05850159004330635, -0.007091660052537918, -0.023595888167619705, 0.020261885598301888, -0.002011222532019019, 0.020519765093922615, 0.022748572751879692, 0.0006798093090765178, -0.007846876047551632, -0.016467386856675148, 0.03299003466963768, -0.00766728213056922, -0.05684380233287811, 0.050396837294101715, -0.031498022377491, -0.06679054349660873, -0.013860972598195076, -0.07633205503225327, -0.014781966805458069, 0.01946983113884926, -0.026635169982910156, 0.010241462849080563, -0.012276860885322094, 0.0025005009956657887, -0.016043730080127716, 0.0823000967502594, -0.0013469549594447017, -0.05124415084719658, 0.0037921962793916464, 0.04833380877971649, -0.04372883588075638, 0.02261963300406933, 0.03573460131883621, -0.0032741366885602474, 0.0694061741232872, -0.03765026852488518, -0.05444921553134918, -0.03871862217783928, -0.008012655191123486, 0.01368598360568285, 0.08112122118473053, 0.00004673329385695979, -0.025069478899240494, -0.014929326251149178, -0.010913788340985775, 0.015104315243661404, -0.0009054530528374016, -0.03564250096678734, 0.011217717081308365, -0.004439195152372122, -0.004941137507557869, -0.030079690739512444, -0.011613745242357254, 0.04638129845261574, -0.004720098339021206, -0.03776078671216965, -0.056622762233018875, 0.02650623209774494, -0.02239859476685524, -0.039160698652267456, 0.036618754267692566, -0.06811677664518356, -0.015371403656899929, -0.014128061011433601, 0.007427823264151812, -0.005148360971361399, -0.03041124902665615, -0.00908561423420906, 0.02383534610271454, 0.008859970606863499, 0.05990150570869446, 0.0543755367398262, 0.05334402248263359, -0.02501421980559826, -0.041886843740940094, 0.03632403537631035, 0.011724264360964298, -0.04369199648499489, 0.04251312091946602, 0.02168021909892559, -0.010066473856568336, 0.014864856377243996, 0.0144043592736125, 0.016697635874152184, 0.06218557059764862, 0.026672011241316795, 0.047928571701049805, 0.027703525498509407, -0.03101910650730133, 0.054043978452682495, -0.002590297954156995, 0.06122773513197899, -0.06487487256526947, 0.02343010902404785, 0.05566492676734924, -0.010959838517010212, 0.04756017401814461, -0.016808155924081802, -0.03584511950612068, 0.03857126459479332, 0.06531695276498795, 0.01731470227241516, 0.040486931800842285, -0.07054820656776428, 0.03101910650730133, -0.03037440963089466, 0.00887378491461277, -0.057948995381593704, 0.04457614943385124, 0.012332120910286903, -0.022527534514665604, -0.01266367919743061, 0.05846475064754486, -0.023485368117690086, 0.01089536864310503, 0.08075282722711563, -0.005047051701694727, -0.024535302072763443, -0.03473992645740509, -0.03166380152106285, 0.026561491191387177, 0.08185802400112152, -0.008721821010112762, 0.011411125771701336, -0.01813438907265663, -0.01996716856956482, -0.00824750866740942, -0.03735554963350296, 0.022490693256258965, 0.0386449433863163, 0.03438994660973549, 0.010002003982663155, -0.010840109549462795, -0.010941418819129467, -0.05304930359125137, -0.018226487562060356, 0.0083165830001235, 0.007137709762901068, 0.02254595421254635, 0.005327954888343811, -0.0243326835334301, -0.03549513965845108, 0.05444921553134918, 0.02840348146855831, -0.0255852360278368, -0.006709447130560875, -0.020906582474708557, 0.0013527111150324345, -0.02597205340862274, -0.009039564058184624, -0.04984423890709877, -0.01372282300144434, -0.019672449678182602, -0.007483082823455334, -0.014422778971493244, -0.0643959566950798, 0.007828456349670887, -0.0769214853644371, 0.03461098670959473, 0.0007586695137433708, 0.018051499500870705, 0.018309377133846283, -0.03553197905421257, 0.004968767054378986, 0.04763385280966759, 0.14839068055152893, 0.030779646709561348, -0.02908501774072647, 0.021845998242497444, -0.033082135021686554, -0.0608224980533123, -0.009946743957698345, 0.02061186358332634, -0.049181122332811356, 0.04756017401814461, 0.042697321623563766, -0.04719177633523941, 0.010287512093782425, 0.04343411698937416, -0.008288953453302383, -0.06428544223308563, -0.020519765093922615, -0.03560566157102585, -0.012608419172465801, -0.065095916390419, -0.03194010257720947, 0.08244745433330536, 0.0012847877806052566, 0.06579586863517761, 0.06483803689479828, 0.007542947772890329, -0.044023554772138596, 0.013022867031395435, -0.0017752175917848945, 0.0032395992893725634, -0.012774198316037655, -0.024535302072763443, -0.0033293962478637695, 0.06365916132926941, 0.018115967512130737, -0.017471272498369217, 0.00884154997766018, -0.029213955625891685, 0.031221725046634674, -0.004526689648628235, 0.015445083379745483, 0.042844679206609726, 0.06388020515441895, 0.05120731145143509, 0.006746286991983652, 0.05713852122426033, -0.014247789978981018, -0.01924879290163517, 0.006304209586232901, 0.0672694593667984, -0.030171791091561317, 0.054301854223012924, -0.018014658242464066, 0.03586353734135628, -0.016614746302366257, -0.01756337098777294, 0.05389661714434624, 0.01685420610010624, 0.04092901200056076, 0.021367080509662628, -0.059385746717453, -0.00703179556876421, 0.014984586276113987, -0.06531695276498795, -0.018051499500870705, -0.02851399965584278, -0.01828174665570259, -0.05124415084719658, -0.06096985936164856, -0.05710167810320854, -0.001353862346149981, -0.003232691902667284, -0.029932331293821335, 0.03573460131883621, -0.013363635167479515, 0.006166060455143452, 0.006083170883357525, -0.06063830107450485, 0.01465302798897028, 0.03523726388812065, -0.02809034287929535, -0.02050134539604187, -0.06973773241043091, 0.04243944212794304, 0.05691748112440109, -0.06789574027061462, -0.055443890392780304, 0.027537746354937553, -0.023927446454763412, 0.021735478192567825, 0.00017354996816720814, 0.009854644536972046, -0.0159240011125803, 0.014966165646910667, 0.01609898917376995, -0.04483402892947197, 0.06214873120188713, -0.043028879910707474, 0.024480042979121208, -0.016973935067653656, -0.008629721589386463, -0.07526370137929916, 0.024922119453549385, 0.02820086106657982, -0.013538624159991741, 0.03278741613030434, -0.004386237822473049, 0.011724264360964298, -0.03055860847234726, 0.009421776980161667, 0.014183320105075836, -0.0005784998647868633, 0.010536180809140205, -0.0057838475331664085, -0.0114479660987854, 0.032400596886873245, -0.00874945055693388, 0.028606100007891655, 0.07467426359653473, -0.002714632311835885, 0.02053818479180336, -0.02444320358335972, -0.018585676327347755, 0.025493137538433075, 0.01425699982792139, -0.02247227355837822, -0.03343211114406586, 0.005148360971361399, -0.046602338552474976, 0.012516319751739502, -0.021274980157613754, -0.028808718547225, -0.05094943568110466, 0.019635610282421112, -0.01875145547091961, -0.001703840447589755, 0.04708125442266464, 0.030798066407442093, -0.003258019220083952, 0.04623394086956978, 0.03048492968082428, 0.005240460392087698, -0.06413807719945908, -0.005327954888343811, 0.0436551533639431, 0.017158133909106255, 0.019027752801775932, -0.009140873327851295, 0.009946743957698345, -0.007064030505716801, -0.05334402248263359, 0.02984023280441761, 0.04715493693947792, 0.00896127987653017, 0.044207751750946045, 0.016163459047675133, -0.0772898867726326, 0.017176553606987, 0.046639177948236465, -0.02783246338367462, -0.017692310735583305, 0.044355109333992004, -0.005447684321552515, 0.01089536864310503, 0.014201740734279156, -0.01935931108891964, 0.0411500483751297, -0.008947464637458324, -0.031111204996705055, 0.00016189362213481218, 0.007915950380265713, -0.07279542833566666, 0.042771000415086746, -0.0003701247915159911, 0.014395149424672127, 0.007386378478258848, -0.0726112350821495, 0.023964285850524902, -0.006723262369632721, 0.005949626676738262, 0.0275561660528183, -0.009094824083149433, 0.011254556477069855, -0.027316706255078316, 0.007169944699853659, -0.07135868072509766, -0.018410686403512955, -0.02368798665702343, 0.00732651399448514, 0.013805712573230267, -0.03711609169840813, 0.08789974451065063, -0.03693189099431038, -0.02483002096414566, 0.035937219858169556, 0.050286319106817245, 0.06715894490480423, 0.029140276834368706, -0.010757219977676868, -0.006433148868381977, 0.03310055285692215, 0.061632975935935974, -0.05120731145143509, -0.014035961590707302, -0.031369082629680634, 0.0014356006868183613, -0.041850004345178604, -0.038018666207790375, -0.01785808987915516, -0.01835542730987072, -0.0511704720556736, -0.0382765457034111, 0.02475634030997753, 0.017848879098892212, -0.016789736226201057, -0.06384336203336716, 0.02121972106397152, -0.011742684058845043, 0.06384336203336716, -0.0142201604321599, -0.03461098670959473, 0.03269531577825546, -0.03846074268221855, -0.04159212484955788, -0.014247789978981018, 0.01490169670432806, -0.017259443178772926, 0.01913827285170555, -0.009094824083149433, 0.034187328070402145, 0.008183038793504238, -0.04210788384079933, -0.03052176907658577, 0.015408243983983994, 0.04063429310917854, -0.039050180464982986, 0.015389823354780674, 0.04612342268228531, -0.010278302244842052, 0.012396590784192085, 0.011272977106273174, 0.0084961773827672, -0.0021413129288703203, 0.013317584991455078, -0.02190125733613968, 0.02543787658214569, -0.0990990474820137, 0.02365114726126194, 0.044060394167900085, 0.03138750419020653, -0.009223762899637222, 0.032142721116542816, 0.03527410328388214, -0.07537421584129333, 0.023338008671998978, -0.052901942282915115, -0.000499064102768898, 0.00830276869237423, 0.02000400796532631, 0.08082650601863861, -0.00432867556810379, -0.0006711749592795968, 0.013907021842896938, -0.004941137507557869, -0.011982142925262451, 0.11692950129508972, -0.03960277885198593, -0.022656472399830818, 0.010545390658080578, -0.08414208889007568, 0.0318480022251606, -0.04693389683961868, 0.04159212484955788, -0.07986867427825928, -0.004243483766913414, -0.061780333518981934, -0.043102558702230453, 0.024590561166405678, 0.01885276474058628, -0.02042766474187374, 0.0769214853644371, -0.06270132958889008, -0.022840671241283417, -0.045460306107997894, 0.00899811927229166, -0.0018074524123221636, 0.035403043031692505, 0.01468986738473177, 0.013483364135026932, 0.014542508870363235, -0.023245910182595253, 0.011871623806655407, -0.013695193454623222, 0.024774761870503426, 0.03602931648492813, -0.030540188774466515, 0.014634608291089535, 0.0155648123472929, -0.034187328070402145, -0.026414131745696068, 0.007750171702355146, -0.0368582122027874, 0.03652665391564369, 0.035403043031692505, -0.0651327520608902, 0.05087575316429138, 0.05872263014316559, 0.07647941261529922, 0.004153686575591564, -0.01599767990410328, -0.020261885598301888, 0.07596365362405777, -0.0486653670668602, 0.02562207542359829, -0.02972971275448799, -0.03348737210035324, 0.03956593945622444, -0.011134827509522438, -0.03674769401550293, -0.025382617488503456, -0.040413253009319305, -0.005507549270987511, 0.03706083074212074, -0.05824371427297592, -0.02319064922630787, -0.02039082534611225, -0.009836224839091301, -0.033616311848163605, 0.0561806857585907, 0.013538624159991741, -0.03667401522397995, 0.036195095628499985, 0.002972510876134038, -0.019580349326133728, 0.07242703437805176, -0.02175389789044857, 0.025566816329956055, -0.0014206345658749342, -0.0526072233915329, 0.016375288367271423, -0.05735955759882927, 0.03387419134378433, -0.009541506879031658, 0.023024870082736015, 0.023890605196356773, -0.046749696135520935, 0.041886843740940094, -0.00442077498883009, 0.06734314560890198, 0.03367157280445099, -0.041702646762132645, 0.052975621074438095, 0.005691748112440109, 0.03457414731383324, -0.037263449281454086, -0.010683540254831314, 0.010121732950210571, -0.08421576768159866, -0.004432287532836199, 0.03302687406539917, -0.009771754965186119, -0.00003406961332075298, -0.02694830857217312, -0.02984023280441761, -0.03481360524892807, -0.04262363910675049, -0.037834469228982925, -0.01664237678050995, 0.04756017401814461, 0.04000801593065262, -0.0155648123472929, 0.030429668724536896, -0.018521206453442574, -0.027427226305007935, -0.017913348972797394, -0.04383935406804085, -0.055333368480205536, -0.023448528721928596, 0.035974059253931046, -0.004655628930777311, -0.028532419353723526, 0.035016223788261414, -0.014505668543279171, 0.0551123321056366, -0.022177554666996002, 0.04888640716671944, -0.026027314364910126, 0.0013469549594447017, 0.046491820365190506, -0.026450971141457558, 0.0016957817133516073, -0.039418578147888184, 0.006870621349662542, 0.08274217694997787, 0.036121416836977005, -0.007446243427693844, 0.013953072018921375, -0.027850883081555367, -0.048996925354003906, -0.03197694197297096, 0.03438994660973549, -0.0010315142571926117, 0.01596084050834179, -0.03033757023513317, -0.0386449433863163, 0.00009123604831984267, 0.03982381522655487, 0.021367080509662628, 0.062996044754982, -0.0014655330451205373, 0.019543509930372238, 0.0069074612110853195, -0.03532936051487923, -0.022527534514665604, -0.016900254413485527, 0.09932008385658264, -0.01738838292658329, 0.03691347315907478, -0.020188206806778908, -0.08053179085254669, -0.036545075476169586, -0.000744278950151056, 0.029784973710775375, 0.052717745304107666, -0.005001001991331577, -0.025179998949170113, 0.01782125048339367, -0.09755177050828934, 0.026598330587148666, -0.018797503784298897, 0.04977056011557579, 0.022417014464735985, -0.031719062477350235, 0.00785148050636053, 0.014072800986468792, -0.004351700656116009, -0.03963961824774742, -0.044134072959423065, -0.011015098541975021, -0.05397029593586922, 0.04111320897936821, 0.03206903859972954, 0.042955197393894196, -0.039234381169080734, 0.00720217963680625, -0.016688426956534386, -0.026598330587148666, -0.07611101120710373, -0.02569575607776642, 0.0008956674719229341, 0.0030692152213305235, 0.004945742432028055, 0.02000400796532631, 0.005521364044398069, 0.06616427004337311, 0.030577028170228004, -0.04980739951133728, -0.02429584413766861, 0.02300645038485527, 0.0013734335079789162, -0.014431988820433617, -0.00038566658622585237, -0.07913187891244888, 0.029029756784439087, 0.024516882374882698, -0.03960277885198593, 0.011567695066332817, -0.001268670428544283, 0.05002843961119652, 0.03523726388812065, 0.03986065462231636, -0.01764626055955887, -0.008049494586884975, 0.03339527174830437, 0.0012352843768894672, 0.018880393356084824, 0.036802954971790314, 0.03521884232759476, -0.011779523454606533, 0.07124815881252289, 0.028992917388677597, -0.04442879185080528, -0.049107443541288376, 0.06859569251537323, 0.0037668689619749784, -0.06060146167874336, 0.02937973476946354, 0.022730153053998947, -0.017692310735583305, -0.051796749234199524, -0.04884956777095795, -0.03606615588068962, 0.06251712888479233, 0.020980263128876686, 0.009817805141210556, 0.022711733356118202, -0.01524246484041214, 0.005986466538161039 ]
730,096
mmengine.fileio.backends.local_backend
copy_if_symlink_fails
Create a symbolic link pointing to src named dst. If failed to create a symbolic link pointing to src, directly copy src to dst instead. Args: src (str or Path): Create a symbolic link pointing to src. dst (str or Path): Create a symbolic link named dst. Returns: bool: Return True if successfully create a symbolic link pointing to src. Otherwise, return False. Examples: >>> backend = LocalBackend() >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> backend.copy_if_symlink_fails(src, dst) True >>> src = '/path/of/dir' >>> dst = '/path1/of/dir1' >>> backend.copy_if_symlink_fails(src, dst) True
def copy_if_symlink_fails( self, src: Union[str, Path], dst: Union[str, Path], ) -> bool: """Create a symbolic link pointing to src named dst. If failed to create a symbolic link pointing to src, directly copy src to dst instead. Args: src (str or Path): Create a symbolic link pointing to src. dst (str or Path): Create a symbolic link named dst. Returns: bool: Return True if successfully create a symbolic link pointing to src. Otherwise, return False. Examples: >>> backend = LocalBackend() >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> backend.copy_if_symlink_fails(src, dst) True >>> src = '/path/of/dir' >>> dst = '/path1/of/dir1' >>> backend.copy_if_symlink_fails(src, dst) True """ try: os.symlink(src, dst) return True except Exception: if self.isfile(src): self.copyfile(src, dst) else: self.copytree(src, dst) return False
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> bool
[ 0.01876330003142357, -0.012605859898030758, 0.0026962272822856903, 0.0009169284603558481, -0.03298361226916313, -0.006927121430635452, 0.005467545241117477, 0.013394312001764774, 0.0557548813521862, 0.006847337819635868, 0.05714406073093414, 0.003909412305802107, 0.06168704852461815, -0.02742689661681652, -0.023371996358036995, 0.020068002864718437, 0.01488674059510231, 0.03403488174080849, -0.0062935431487858295, 0.0488089881837368, 0.007363586686551571, 0.04163781926035881, 0.046443626284599304, -0.009705479256808758, -0.01476471871137619, 0.08162364363670349, -0.0038202418945729733, 0.0098650474101305, -0.009780569933354855, 0.05650578811764717, -0.014642695896327496, -0.002865181304514408, 0.07471529394388199, 0.01733657717704773, 0.0349547453224659, 0.011817406862974167, -0.042463816702365875, 0.001153346966020763, -0.10377541184425354, -0.08973344415426254, 0.0015487467171624303, 0.010371909476816654, -0.02066872827708721, 0.035949695855379105, 0.036419011652469635, -0.04404072463512421, -0.048508625477552414, -0.001859669340774417, -0.02789621241390705, -0.048996713012456894, -0.028215348720550537, 0.055266790091991425, 0.0036935261450707912, 0.029003800824284554, -0.007030371576547623, 0.004198042210191488, 0.007617017719894648, 0.05305161327123642, -0.08868217468261719, 0.003754537319764495, 0.01929832249879837, -0.01603187434375286, -0.02370990440249443, 0.005706897005438805, 0.005307977087795734, -0.08590381592512131, -0.042463816702365875, -0.0651412233710289, -0.006434338632971048, 0.022621087729930878, -0.05635560676455498, 0.07786910980939865, -0.04092445969581604, -0.0005743268993683159, 0.032664474099874496, 0.024948900565505028, 0.04343999922275543, -0.011789247393608093, 0.05766969546675682, -0.029022574424743652, -0.058946236968040466, -0.07325102388858795, -0.01837846077978611, -0.015834761783480644, -0.008640129119157791, 0.025230491533875465, 0.028553256765007973, -0.03927246108651161, -0.02275249734520912, 0.0359872430562973, -0.022958995774388313, -0.01209899690002203, 0.03157566115260124, -0.06213759630918503, 0.0030106697231531143, 0.014961831271648407, 0.008776231668889523, -0.03752660006284714, 0.036869559437036514, 0.03576196730136871, 0.013647743500769138, 0.009297173470258713, -0.020293274894356728, 0.006124589126557112, 0.060861051082611084, 0.017956076189875603, -0.00007589739107061177, -0.0024897276889532804, -0.04235118255019188, -0.0768178328871727, -0.011789247393608093, 0.0073260413482785225, 0.04558008536696434, -0.016914190724492073, -0.019936593249440193, -0.026413170620799065, 0.05368988588452339, -0.060861051082611084, -0.007227484602481127, -0.0015417069662362337, 0.009743024595081806, 0.029379256069660187, 0.0098650474101305, -0.04858371615409851, 0.062024958431720734, -0.019786411896348, 0.052901431918144226, -0.02399149350821972, 0.013666516169905663, 0.038239963352680206, -0.024047812446951866, 0.001603891490958631, -0.014210924506187439, 0.04141254723072052, -0.032664474099874496, -0.010428227484226227, -0.03356556594371796, 0.044528812170028687, -0.003576196962967515, -0.04554253816604614, 0.015975557267665863, -0.07343874871730804, -0.021081726998090744, 0.04212591052055359, 0.01337553933262825, 0.009930751286447048, -0.025474537163972855, 0.028665892779827118, 0.07310084253549576, 0.0038577872328460217, 0.04723208025097847, 0.0015288006979972124, -0.0605606883764267, 0.06559176743030548, -0.07786910980939865, 0.011901883408427238, -0.05556715279817581, -0.019486049190163612, 0.04603062942624092, 0.014154606498777866, -0.032927293330430984, -0.06773185729980469, -0.01613512448966503, -0.003233595285564661, 0.02881607413291931, 0.004679092206060886, -0.02275249734520912, -0.02282758802175522, 0.03394101932644844, 0.05248843505978584, 0.0027196931187063456, 0.0045946151949465275, 0.10152269154787064, 0.006481270305812359, 0.007846983149647713, -0.008072255179286003, 0.06386467814445496, 0.00039363978430628777, -0.030336663126945496, -0.03683201223611832, 0.025981398299336433, -0.03816487267613411, 0.006697156000882387, 0.00026560420519672334, -0.0016613828483968973, 0.021006636321544647, -0.06705603748559952, 0.013553880155086517, -0.0032946066930890083, 0.005500397179275751, 0.006654917728155851, 0.05008552968502045, 0.02307163178920746, -0.004449126776307821, -0.026713533326983452, -0.03504860773682594, 0.03442910686135292, -0.016304079443216324, -0.006260691210627556, 0.09221144020557404, -0.009808729402720928, -0.006842644419521093, 0.018491096794605255, 0.03816487267613411, -0.005735056009143591, -0.03752660006284714, -0.002851101802662015, 0.06769430637359619, -0.0559050627052784, -0.015853533521294594, -0.029473118484020233, -0.05515415593981743, 0.0012554234126582742, 0.0604855976998806, 0.016322851181030273, 0.0360998772084713, 0.012634018436074257, 0.027858667075634003, -0.021494727581739426, 0.027614623308181763, -0.0030740275979042053, -0.008067562244832516, -0.024066584184765816, 0.029717164114117622, 0.03855909779667854, -0.007462142966687679, 0.03125652298331261, 0.010146637447178364, 0.035912152379751205, -0.001128121162764728, -0.006110509857535362, 0.006481270305812359, 0.0098650474101305, -0.01929832249879837, 0.0652914047241211, -0.02397272177040577, 0.06112387031316757, -0.016351010650396347, -0.012408746406435966, -0.0037850430235266685, -0.03138793259859085, 0.027051441371440887, 0.032213930040597916, 0.019063664600253105, 0.048771440982818604, -0.006209066137671471, -0.025268036872148514, -0.011563975363969803, -0.036193739622831345, -0.046406082808971405, -0.0010090318974107504, 0.07253766059875488, -0.07809437811374664, -0.031782157719135284, -0.005218807142227888, -0.059884872287511826, -0.004428007639944553, -0.02654458023607731, 0.02188895270228386, 0.04512954130768776, -0.00744806369766593, -0.0051624891348183155, -0.015862921252846718, -0.02027450129389763, -0.05185016244649887, -0.05973469093441963, -0.014248469844460487, 0.054065339267253876, 0.025925081223249435, 0.041525185108184814, 0.12682826817035675, -0.015834761783480644, -0.01731780357658863, 0.029191529378294945, 0.04171290993690491, -0.0013352073729038239, 0.010653499513864517, 0.029642073437571526, 0.060861051082611084, -0.010747363790869713, 0.01954236812889576, 0.0031796239782124758, -0.008142652921378613, -0.04933462291955948, -0.03003629855811596, -0.01443619653582573, 0.0032734873238950968, -0.029698390513658524, -0.026882488280534744, -0.001050097169354558, 0.024517130106687546, 0.030561935156583786, -0.0010542037198320031, 0.037808191031217575, 0.016679532825946808, 0.05507906526327133, -0.006481270305812359, -0.026450715959072113, -0.0020133706275373697, -0.03912227973341942, -0.03309624642133713, 0.00599787337705493, -0.01489612739533186, 0.04997289180755615, -0.03427892550826073, -0.03934755176305771, 0.002860488137230277, 0.008846628479659557, -0.0016672492492944002, 0.004608694929629564, 0.015196490101516247, -0.0488465316593647, 0.0037709635216742754, -0.0020297968294471502, 0.037113603204488754, 0.031237751245498657, 0.0011721196351572871, -0.013797924853861332, -0.03534897044301033, 0.0006007259944453835, -0.06078596040606499, 0.06668058782815933, -0.013591425493359566, 0.018979186192154884, -0.017045600339770317, -0.011066499166190624, 0.06604231148958206, -0.0015323206316679716, -0.011676611378788948, 0.026319308206439018, 0.01864127814769745, 0.00976179726421833, 0.009649161249399185, 0.010137250646948814, -0.058495692908763885, -0.0008664768538437784, -0.025643490254878998, -0.05541697144508362, -0.0013211278710514307, -0.011610906571149826, 0.049634985625743866, 0.00037692036130465567, 0.01269033644348383, -0.05751951411366463, 0.0488089881837368, 0.008968651294708252, -0.06461559236049652, 0.018941640853881836, -0.04730717092752457, 0.08335073292255402, -0.013431857340037823, 0.06089859828352928, -0.0076076313853263855, -0.03264570236206055, -0.028027622029185295, -0.010343750938773155, -0.007654563058167696, -0.029942436143755913, 0.032908521592617035, -0.07261275500059128, 0.060598235577344894, 0.02720162458717823, -0.02188895270228386, -0.02205790765583515, 0.016698304563760757, 0.0028792608063668013, 0.009339411742985249, 0.012849904596805573, -0.04948480427265167, -0.008804390206933022, 0.005387761164456606, -0.015327898785471916, 0.03285220265388489, -0.0581953302025795, 0.049409713596105576, -0.031444251537323, 0.059922415763139725, -0.039647914469242096, 0.016961123794317245, 0.016182055696845055, 0.05215052515268326, -0.042013272643089294, -0.01498999074101448, 0.017402280122041702, 0.051174346357584, -0.009808729402720928, 0.0174210537225008, -0.03679446503520012, 0.03983564302325249, -0.02141963690519333, -0.02554962784051895, 0.00020561959536280483, 0.05256352573633194, -0.01641671545803547, 0.018819618970155716, -0.05139961838722229, 0.0180123932659626, 0.04006091505289078, -0.02187018096446991, 0.07997164875268936, -0.04111218452453613, 0.041750457137823105, -0.02417922019958496, 0.03581828624010086, -0.030580706894397736, 0.03157566115260124, 0.011104044504463673, -0.00216941861435771, 0.014351719059050083, 0.07415211200714111, -0.0028018236625939608, 0.010306205600500107, -0.05417797341942787, -0.02042468450963497, -0.021100500598549843, 0.06596722453832626, -0.019786411896348, -0.05462852120399475, -0.0442659966647625, -0.00910944677889347, -0.027295487001538277, -0.03771432861685753, 0.021231908351182938, 0.003738111350685358, 0.000804878945928067, -0.05451588332653046, 0.02695757895708084, 0.02815903164446354, -0.05308916047215462, 0.012052064761519432, 0.031782157719135284, 0.005655271932482719, 0.07295066118240356, 0.005439386237412691, 0.025286810472607613, -0.03863418847322464, 0.020161865279078484, -0.04997289180755615, -0.020293274894356728, -0.0098650474101305, 0.011958201415836811, -0.014445582404732704, -0.006218452472239733, 0.01731780357658863, -0.07479038834571838, -0.03583705797791481, -0.024779947474598885, -0.030299117788672447, -0.0012190514244139194, 0.06607986241579056, -0.04047391191124916, 0.0360998772084713, 0.011620293371379375, 0.03752660006284714, -0.021757544949650764, -0.0442284494638443, -0.051286980509757996, -0.04527972266077995, -0.04167536646127701, 0.05252597853541374, 0.019730094820261, 0.018716368824243546, 0.0512118898332119, -0.05046098306775093, 0.0021964043844491243, 0.02324058674275875, 0.03767678141593933, 0.01853802800178528, 0.024610992521047592, 0.023897631093859673, -0.018575573340058327, -0.0033086861949414015, 0.060635779052972794, 0.061987411230802536, 0.027821121737360954, -0.05699387937784195, -0.022377043962478638, -0.0042473203502595425, -0.015036922879517078, 0.04974761977791786, 0.007753119803965092, -0.013591425493359566, 0.01676400937139988, 0.006959973834455013, 0.004937216639518738, -0.02746444195508957, 0.007659256458282471, 0.0255683995783329, -0.00685672415420413, 0.026863714680075645, 0.016670146957039833, -0.038972098380327225, -0.015177717432379723, -0.03889700770378113, -0.039873186498880386, -0.011826792731881142, -0.047344718128442764, 0.058458149433135986, -0.023390768095850945, -0.03998582437634468, 0.010465772822499275, -0.00020840615616180003, -0.04272663593292236, -0.005810146685689688, -0.03163197636604309, 0.06495349854230881, 0.008898253552615643, -0.0028675280045717955, -0.004810500890016556, -0.004477285780012608, -0.021269453689455986, 0.05507906526327133, -0.01558133028447628, 0.06773185729980469, 0.08057237416505814, 0.0021307000424712896, 0.0010946823749691248, -0.032232705503702164, -0.015891078859567642, -0.022714952006936073, 0.011817406862974167, -0.03878437355160713, 0.0360998772084713, -0.02789621241390705, -0.03482333570718765, 0.024967674165964127, 0.012483837082982063, 0.026150353252887726, 0.028008848428726196, -0.032702021300792694, 0.015553171746432781, -0.008137959986925125, -0.024085357785224915, -0.025286810472607613, 0.03227024897933006, 0.05218806862831116, 0.03703851252794266, 0.0010043387301266193, -0.04235118255019188, -0.04272663593292236, -0.01463331002742052, -0.004913751035928726, -0.02305286005139351, -0.018979186192154884, -0.01815318875014782, -0.012343041598796844, -0.037113603204488754, 0.0009884992614388466, 0.025587173178792, -0.06859540194272995, 0.009470820426940918, 0.04099955037236214, 0.03718869388103485, 0.033828381448984146, 0.018613118678331375, 0.07388930022716522, 0.02789621241390705, 0.01794668845832348, 0.027164079248905182, 0.030787207186222076, -0.02746444195508957, -0.07163657248020172, 0.03750782832503319, -0.015553171746432781, 0.0030834139324724674, -0.044754087924957275, 0.026375625282526016, -0.04032373055815697, 0.0419381819665432, -0.017158236354589462, -0.002684494247660041, 0.002834675833582878, -0.02279004268348217, 0.013882402330636978, 0.01301885861903429, -0.02725794166326523, 0.009630388580262661, -0.0419381819665432, 0.023597268387675285, 0.03212006762623787, -0.07373911887407303, 0.04028618708252907, -0.016200829297304153, 0.04599308222532272, 0.021588589996099472, -0.05537942796945572, -0.04542990401387215, 0.004805807955563068, -0.06067332625389099, -0.07388930022716522, -0.06022278219461441, 0.05188770592212677, -0.002766624791547656, -0.02840307541191578, 0.008114494383335114, -0.034109972417354584, -0.019204458221793175, -0.07126112282276154, 0.021494727581739426, 0.013722834177315235, -0.03472946956753731, -0.025756126269698143, -0.03403488174080849, -0.03658796846866608, 0.026657216250896454, 0.007077303249388933, -0.03542406111955643, -0.04948480427265167, -0.001201451988890767, -0.03840891644358635, -0.003921145107597113, 0.051737524569034576, 0.015553171746432781, -0.025962626561522484, 0.02442326582968235, -0.026450715959072113, -0.02376622147858143, -0.014126447029411793, 0.022170543670654297, 0.04171290993690491, 0.028534485027194023, 0.0015499199507758021, 0.02489258348941803, 0.04614326357841492, -0.03170706704258919, -0.00907659437507391, 0.0220954529941082, 0.030355434864759445, -0.08072255551815033, 0.009165764786303043, -0.011085271835327148, -0.01698928140103817, 0.05192525312304497, 0.019617458805441856, -0.039460189640522, -0.07373911887407303, 0.008208357729017735, -0.0007778932340443134, 0.09754288196563721, 0.022020362317562103, -0.06671813130378723, -0.013628970831632614, 0.010099705308675766, 0.017627554014325142, -0.027746031060814857, -0.014971218071877956, 0.005950941704213619, -0.06634267419576645, 0.012023906223475933, 0.009217389859259129, 0.01254954095929861, 0.014511287212371826, 0.02862834744155407, -0.01876330003142357, 0.10550250113010406, 0.028083939105272293, 0.00574913527816534, -0.06649285554885864, -0.006373327225446701, 0.03904718905687332, 0.01648242026567459, -0.025211719796061516, -0.03114388883113861, 0.014351719059050083, 0.024930128827691078, 0.040136005729436874, 0.034072428941726685, -0.0652538612484932, -0.058983784168958664, -0.016088193282485008, -0.04790789633989334, 0.005307977087795734, -0.05740687623620033, 0.009409809485077858, 0.009541218169033527, 0.0003962797054555267, 0.007696801796555519, -0.02187018096446991, -0.00004282519148546271, -0.0743773877620697, -0.020987864583730698, -0.01782466657459736, -0.0007338947616517544, 0.020612411201000214, -0.03230779618024826, 0.026225443929433823, 0.05624297261238098, -0.026319308206439018, 0.007485609035938978, -0.037808191031217575, 0.028478166088461876, 0.05530433729290962, 0.07310084253549576, 0.06641776859760284, -0.08019691705703735, -0.035949695855379105, -0.005251659080386162, 0.050160620361566544, -0.037320103496313095, -0.007987778633832932, 0.0359872430562973, 0.0442284494638443, 0.013535107485949993, -0.06236286833882332, 0.008644822053611279, -0.05166243389248848, -0.08545327186584473, -0.05962205305695534, 0.04565517604351044, 0.002466261852532625, 0.005275125149637461, -0.038934554904699326, 0.026563351973891258, -0.009128219448029995, -0.029829800128936768, -0.10520213842391968, 0.012070837430655956, -0.01068165898323059, -0.010503318160772324, -0.02718285098671913, 0.029698390513658524, -0.04832089692354202, -0.03931000828742981, 0.02025572955608368, -0.02748321369290352, -0.062024958431720734, -0.04726962745189667, -0.029604528099298477, 0.03994827717542648, -0.014107674360275269, -0.004188655875623226, 0.06134914234280586, 0.01429540105164051, 0.04163781926035881, -0.008954571560025215, -0.01420153770595789, 0.04693171754479408, 0.07839474081993103, 0.01782466657459736, 0.012389973737299442, 0.07227484881877899, -0.03870927914977074, 0.036174967885017395, -0.040361277759075165, 0.02840307541191578, -0.008818469941616058, -0.03170706704258919, 0.044341087341308594, 0.015759671106934547, 0.031725842505693436, 0.046443626284599304, -0.03561178594827652, -0.024704856798052788, 0.038239963352680206, 0.07967128604650497, -0.03690710291266441, -0.019044890999794006, -0.007973698899149895, 0.018491096794605255, -0.01467085536569357, -0.03510492667555809, 0.03326520323753357, 0.0026962272822856903, 0.008100414648652077, 0.013281675986945629, 0.007757813204079866, -0.07505320012569427, 0.003503452753648162 ]
730,097
mmengine.fileio.backends.local_backend
copyfile
Copy a file src to dst and return the destination file. src and dst should have the same prefix. If dst specifies a directory, the file will be copied into dst using the base filename from src. If dst specifies a file that already exists, it will be replaced. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to dst. Returns: str: The destination file. Raises: SameFileError: If src and dst are the same file, a SameFileError will be raised. Examples: >>> backend = LocalBackend() >>> # dst is a file >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> # src will be copied to '/path1/of/file1' >>> backend.copyfile(src, dst) '/path1/of/file1' >>> # dst is a directory >>> dst = '/path1/of/dir' >>> # src will be copied to '/path1/of/dir/file' >>> backend.copyfile(src, dst) '/path1/of/dir/file'
def copyfile( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Copy a file src to dst and return the destination file. src and dst should have the same prefix. If dst specifies a directory, the file will be copied into dst using the base filename from src. If dst specifies a file that already exists, it will be replaced. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to dst. Returns: str: The destination file. Raises: SameFileError: If src and dst are the same file, a SameFileError will be raised. Examples: >>> backend = LocalBackend() >>> # dst is a file >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> # src will be copied to '/path1/of/file1' >>> backend.copyfile(src, dst) '/path1/of/file1' >>> # dst is a directory >>> dst = '/path1/of/dir' >>> # src will be copied to '/path1/of/dir/file' >>> backend.copyfile(src, dst) '/path1/of/dir/file' """ return shutil.copy(src, dst)
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> str
[ -0.04016052559018135, -0.051974665373563766, -0.0034489361569285393, 0.013154082000255585, -0.058844227343797684, -0.038518622517585754, 0.02811991609632969, 0.0313282273709774, 0.0343855619430542, -0.054843273013830185, -0.01651337370276451, -0.012918176129460335, -0.017324887216091156, 0.0332154706120491, -0.021344715729355812, 0.029422113671898842, 0.030629949644207954, -0.032989002764225006, -0.03115837648510933, 0.03578212112188339, 0.017683465033769608, -0.014286426827311516, 0.06952602416276932, 0.027591489255428314, 0.0034701675176620483, 0.01011562068015337, -0.023666024208068848, -0.05080457404255867, -0.0066053494811058044, -0.002236382570117712, 0.04635068029165268, -0.027214039117097855, 0.027138549834489822, -0.025779735296964645, -0.0511065311729908, -0.012134970165789127, -0.03315885365009308, -0.01620197854936123, -0.12350115925073624, -0.11640512943267822, 0.008492591790854931, -0.08039654046297073, 0.0756029412150383, 0.039443373680114746, 0.06333586573600769, -0.012361439876258373, -0.012323695234954357, -0.018013732507824898, 0.023967983201146126, 0.00821894221007824, 0.00014051111065782607, 0.0885494276881218, -0.02487385831773281, -0.008393512107431889, -0.011719777248799801, 0.056655026972293854, -0.009992949664592743, 0.0033026747405529022, -0.0958719328045845, 0.06578928232192993, 0.014937525615096092, -0.03855636715888977, 0.015135686844587326, -0.005520184990018606, -0.004291118122637272, -0.019306492060422897, -0.03978307545185089, -0.018740320578217506, 0.04567127302289009, -0.009879715740680695, 0.0012385030277073383, 0.06280744075775146, -0.021023884415626526, 0.01964619569480419, 0.006095794029533863, 0.05423935502767563, 0.003404113929718733, -0.003288520500063896, 0.05699472874403, -0.013937287032604218, -0.04257619380950928, -0.057032473385334015, -0.021401332691311836, -0.03615957126021385, -0.010870518162846565, -0.06031627580523491, -0.015314974822103977, -0.08485043048858643, -0.015305538661777973, 0.04453892633318901, -0.007666923571377993, 0.004366607870906591, -0.013456040062010288, -0.0201368797570467, 0.043444328010082245, -0.0643172338604927, -0.019702814519405365, 0.029025793075561523, -0.009181436151266098, 0.05099329724907875, -0.03447992354631424, 0.00835104938596487, -0.014550641179084778, -0.00376504915766418, 0.0520501546561718, -0.012257641181349754, 0.02402460016310215, 0.021344715729355812, -0.004807750694453716, -0.0073555284179747105, -0.010087312199175358, 0.01305971946567297, 0.03095078095793724, 0.001378866727463901, 0.01358814723789692, -0.028648344799876213, -0.01575847715139389, -0.03410247713327408, 0.0004470406274776906, 0.03782034292817116, -0.0015463595045730472, 0.030799800530076027, -0.011361201293766499, -0.021590055897831917, 0.036216188222169876, -0.020872903987765312, 0.040877677500247955, -0.04812468960881233, -0.038235537707805634, 0.015097941271960735, -0.02527017891407013, -0.008384075947105885, 0.04578450694680214, 0.056655026972293854, 0.013003102503716946, 0.0032554937060922384, 0.006124102510511875, 0.06522310525178909, -0.0002229305391665548, 0.07458382844924927, 0.06620447337627411, -0.07141326367855072, 0.010219419375061989, 0.02091064862906933, 0.03780147060751915, -0.041443850845098495, -0.012927612289786339, -0.036121826618909836, 0.00046325911534950137, 0.04484088718891144, -0.026421397924423218, 0.01646619290113449, -0.0442747138440609, 0.016494501382112503, -0.008634135127067566, -0.020778542384505272, -0.00007666923193028197, -0.0353291817009449, -0.012493547052145004, -0.018155274912714958, -0.03381938859820366, -0.03193214535713196, 0.047143321484327316, -0.05756090208888054, 0.03966984152793884, 0.04102865606546402, -0.02041996642947197, 0.03151695430278778, 0.01722108945250511, -0.0322718508541584, -0.02659124881029129, -0.025666501373052597, 0.017843879759311676, -0.0073744007386267185, 0.011833012104034424, -0.045520294457674026, 0.048388902097940445, 0.005539057310670614, 0.011710341088473797, -0.03325321525335312, 0.0654873251914978, -0.040877677500247955, -0.018079785630106926, 0.017117291688919067, 0.03293238580226898, 0.00634113559499383, 0.0025619319640100002, 0.04072669893503189, 0.022439315915107727, 0.022156229242682457, 0.023571660742163658, 0.008563363924622536, 0.003698995802551508, -0.03059220500290394, -0.004772365093231201, -0.07533872872591019, 0.03799019381403923, -0.05922167748212814, 0.008634135127067566, 0.04548254981637001, 0.015013015829026699, -0.028063299134373665, 0.06352458894252777, 0.047067832201719284, 0.0018117530271410942, 0.0066053494811058044, 0.020268986001610756, 0.08318965882062912, -0.05201241001486778, -0.022571422159671783, -0.010162802413105965, -0.029478730633854866, 0.022948870435357094, -0.00565229170024395, 0.014267554506659508, 0.009974077343940735, -0.01945747248828411, -0.004621385596692562, -0.03330983221530914, 0.0697147473692894, 0.007190394680947065, 0.008945530280470848, -0.03540467470884323, -0.003364010015502572, 0.029233388602733612, -0.05869324877858162, 0.019967027008533478, 0.022175101563334465, 0.0038004349917173386, -0.046010978519916534, 0.00008581056317780167, -0.01257847249507904, 0.04435020312666893, -0.03378164395689964, 0.021797653287649155, -0.004338299389928579, 0.023137595504522324, -0.015003579668700695, -0.025326797738671303, -0.03578212112188339, -0.0007778978324495256, 0.006864845287054777, 0.039934054017066956, 0.07971712946891785, 0.008200069889426231, -0.06197705119848251, -0.03057333268225193, -0.02517581731081009, 0.026270419359207153, 0.003347496734932065, 0.05174819380044937, 0.04182129725813866, -0.09640035778284073, 0.01714560016989708, 0.01534328330308199, 0.04280266538262367, -0.008346331305801868, -0.020570944994688034, 0.009313542395830154, 0.06220351904630661, -0.03057333268225193, -0.05623983219265938, -0.008478437550365925, -0.058844227343797684, -0.017702337354421616, -0.04133061692118645, -0.08175535500049591, 0.019683942198753357, 0.021344715729355812, -0.008327458053827286, 0.12606781721115112, 0.02715742215514183, -0.012880431488156319, 0.004366607870906591, 0.04906830936670303, -0.06480791419744492, -0.05756090208888054, 0.07428187131881714, 0.06118441000580788, -0.02223171852529049, 0.058919716626405716, -0.010691230185329914, -0.033290959894657135, -0.07205493003129959, -0.014220373705029488, 0.03340419754385948, -0.0073555284179747105, -0.09647584706544876, -0.010549686849117279, -0.025043711066246033, 0.009228616952896118, 0.026421397924423218, -0.05450356751680374, -0.009021020494401455, -0.028346385806798935, -0.03817892074584961, -0.009860843420028687, -0.047143321484327316, 0.01087995432317257, -0.019306492060422897, -0.010653484612703323, 0.012031172402203083, -0.0006345853325910866, 0.03378164395689964, -0.03181891143321991, -0.03306449204683304, 0.027666978538036346, 0.022156229242682457, -0.04929478093981743, 0.01693800278007984, 0.011181913316249847, -0.09670231491327286, 0.003132822923362255, -0.010209983214735985, -0.002663371153175831, 0.03589535504579544, -0.021401332691311836, 0.00987027958035469, -0.01582453027367592, -0.05386190861463547, -0.061108916997909546, 0.04555803909897804, -0.02934662438929081, 0.08960628509521484, 0.05272956192493439, -0.0009223898523487151, 0.07296080142259598, -0.004031622316688299, 0.0028686088044196367, 0.00828971341252327, 0.0066195037215948105, 0.064996637403965, -0.025421159341931343, 0.016013253480196, -0.029516475275158882, -0.002757733454927802, -0.008700189180672169, 0.007600869983434677, 0.021514566615223885, -0.0044161477126181126, 0.07356472313404083, -0.005076682660728693, 0.005435259081423283, -0.05457906052470207, 0.014956398867070675, 0.010672357864677906, -0.0402737595140934, -0.004104753024876118, 0.008563363924622536, 0.024100089445710182, -0.02830864116549492, 0.008558645844459534, 0.025572137907147408, -0.041066400706768036, -0.010219419375061989, 0.035555653274059296, 0.004479842260479927, -0.0029464575927704573, 0.027025315910577774, -0.027987809851765633, 0.08326514810323715, 0.009794789366424084, 0.0043784030713140965, -0.036310549825429916, -0.03419683873653412, 0.01442797016352415, -0.004366607870906591, 0.018504414707422256, -0.07288531213998795, 0.018032604828476906, -0.0037933578714728355, -0.0022399211302399635, 0.047520771622657776, -0.03921690210700035, -0.020268986001610756, 0.00430999044328928, 0.04080218821763992, -0.013276752084493637, 0.0006286877323873341, 0.002550136763602495, 0.09723074734210968, -0.04008503630757332, -0.030724311247467995, 0.040424738079309464, 0.008747369982302189, 0.017419250681996346, 0.01945747248828411, -0.04136836156249046, 0.013890106230974197, -0.07390442490577698, 0.0008215403649955988, 0.015465954318642616, 0.01272945199161768, 0.004626103676855564, -0.02230720967054367, -0.05774962529540062, 0.0313282273709774, 0.01639070361852646, -0.021873142570257187, 0.0168436411768198, -0.020948393270373344, 0.006251491606235504, 0.0019650915637612343, 0.00005282068013912067, -0.09602291136980057, 0.0016607735306024551, 0.09156901389360428, 0.03817892074584961, 0.064996637403965, 0.04091542214155197, -0.01693800278007984, 0.002061812672764063, -0.05473003908991814, -0.007648051250725985, -0.025779735296964645, 0.018881862983107567, -0.02991279773414135, -0.09066314250230789, 0.030629949644207954, -0.026459142565727234, -0.06775201112031937, 0.0035857611801475286, -0.00366596900857985, -0.04242521524429321, 0.029516475275158882, -0.03704657405614853, 0.006534577812999487, -0.005543775390833616, -0.010606303811073303, -0.01662660762667656, 0.021892014890909195, -0.0030101521406322718, 0.026043949648737907, 0.011285711079835892, 0.05439033359289169, -0.0027081933803856373, 0.018674267455935478, -0.02442092075943947, 0.035272564738988876, 0.025666501373052597, -0.04937027022242546, -0.05125751346349716, 0.041255123913288116, 0.001411893405020237, -0.10485520213842392, -0.024251068010926247, -0.06261871010065079, -0.056730516254901886, 0.024760624393820763, 0.010408143512904644, -0.06578928232192993, 0.01672097109258175, 0.023684896528720856, 0.01514512300491333, -0.00489267660304904, -0.019013971090316772, -0.047634005546569824, -0.059485889971256256, -0.0003756792575586587, 0.02249593287706375, -0.002955893985927105, 0.05944814532995224, 0.12833251059055328, -0.03283802419900894, 0.011295147240161896, 0.04076444357633591, 0.02904466539621353, 0.04178355261683464, -0.017324887216091156, 0.013927850872278214, -0.00024032856163103133, 0.003991518169641495, -0.04948350414633751, 0.026327036321163177, 0.06363782286643982, -0.01618310622870922, -0.031573571264743805, 0.016645479947328568, -0.030139265581965446, 0.06458144634962082, 0.031196121126413345, 0.0005989046767354012, -0.022477060556411743, 0.0038287437055259943, 0.024081217125058174, 0.01955183409154415, 0.046010978519916534, 0.020344477146863937, 0.0164850652217865, 0.025855224579572678, -0.006954489275813103, 0.028704961761832237, -0.03578212112188339, -0.0586555041372776, -0.06979023665189743, 0.059032950550317764, -0.05382416024804115, -0.019910410046577454, -0.02470400743186474, 0.04514284431934357, -0.00861998088657856, -0.0036777642089873552, -0.03691446781158447, 0.02185427024960518, -0.037291914224624634, 0.03106401488184929, -0.0332154706120491, -0.021892014890909195, -0.017919369041919708, 0.013314497657120228, -0.02364715188741684, 0.03859411180019379, -0.036027465015649796, 0.018334561958909035, 0.05657953768968582, -0.006921462714672089, -0.024571899324655533, -0.014390225522220135, -0.010153365321457386, -0.04491637647151947, -0.004963448271155357, -0.0035975563805550337, 0.04257619380950928, -0.026666739955544472, -0.037348534911870956, 0.03466864675283432, 0.011927373707294464, 0.002434543101117015, -0.013314497657120228, 0.006194874178618193, -0.009521139785647392, -0.0045270235277712345, 0.006260927766561508, 0.01938198320567608, 0.01657942682504654, 0.051823683083057404, -0.034612029790878296, -0.019023407250642776, -0.013578711077570915, 0.01714560016989708, -0.020967265591025352, -0.008634135127067566, 0.01966506987810135, -0.01992928236722946, -0.02051432803273201, -0.0586555041372776, -0.04472765326499939, 0.03648040071129799, 0.03638603910803795, -0.030516713857650757, -0.006053330842405558, -0.030818672850728035, -0.01681533269584179, -0.010238291695713997, 0.002965330146253109, 0.07541421800851822, -0.004022186156362295, 0.02459077164530754, 0.0030361018143594265, 0.029422113671898842, 0.006062767002731562, -0.04786047339439392, 0.019183821976184845, 0.041066400706768036, -0.008653007447719574, 0.01723996177315712, 0.019108332693576813, 0.0216655470430851, 0.010276036337018013, -0.040613461285829544, 0.040500227361917496, 0.03663137927651405, -0.04759626090526581, 0.010700666345655918, 0.01742868684232235, 0.0036730461288243532, 0.02876157872378826, 0.019259311258792877, -0.013069155625998974, 0.047822728753089905, -0.04699234291911125, 0.028912559151649475, 0.037858087569475174, 0.05057810619473457, -0.024628518149256706, 0.026327036321163177, -0.03531030938029289, -0.025779735296964645, -0.058278053998947144, -0.04314236715435982, 0.004015109036117792, 0.02600620500743389, 0.03817892074584961, 0.010464760474860668, -0.006930898874998093, -0.04246295988559723, -0.10417579859495163, -0.07307403534650803, 0.053031519055366516, -0.012635089457035065, -0.008851168677210808, -0.012087789364159107, -0.01224820502102375, 0.0034843217581510544, 0.05824030935764313, 0.03353630378842354, -0.03096965327858925, -0.038027942180633545, 0.020929520949721336, -0.01723996177315712, -0.01224820502102375, 0.021439077332615852, -0.024005727842450142, -0.03695221245288849, 0.051823683083057404, 0.008794550783932209, 0.01514512300491333, 0.0022977180778980255, -0.0226091668009758, 0.06612898409366608, 0.007766003720462322, 0.06212802976369858, -0.013956159353256226, 0.048766352236270905, 0.0028992765583097935, -0.03457428514957428, -0.022250590845942497, 0.0012514778645709157, -0.05707021802663803, -0.0035810430999845266, -0.027025315910577774, -0.05167270451784134, 0.008072680793702602, 0.03410247713327408, 0.006213746499270201, -0.05820256471633911, -0.007605588063597679, 0.0027129114605486393, 0.020174624398350716, 0.026534631848335266, -0.011134731583297253, 0.0034796036779880524, 0.01808922179043293, 0.005326742306351662, -0.07873576879501343, -0.01138950977474451, -0.021590055897831917, -0.061033427715301514, 0.01400334108620882, -0.036121826618909836, 0.009483394213020802, 0.01662660762667656, -0.04635068029165268, 0.01590001955628395, 0.09428664296865463, -0.024836113676428795, 0.06397752463817596, -0.02362827956676483, 0.024175578728318214, 0.05012516677379608, 0.026251545175909996, 0.027100805193185806, 0.020080262795090675, -0.0066289398819208145, 0.020193496719002724, 0.015465954318642616, 0.0014519973192363977, -0.05382416024804115, -0.017466431483626366, -0.03978307545185089, -0.048653118312358856, 0.012172715738415718, -0.06914857029914856, -0.03293238580226898, 0.03502722457051277, 0.021627800539135933, 0.04397275671362877, -0.018174147233366966, 0.012144407257437706, -0.04457667097449303, 0.0925503820180893, -0.028138788416981697, 0.010077876038849354, -0.05106878653168678, -0.010804464109241962, 0.06175057962536812, -0.018221328034996986, -0.023496171459555626, -0.03200763463973999, -0.030629949644207954, 0.018853554502129555, 0.04570901766419411, 0.016117053106427193, -0.024345431476831436, 0.009823097847402096, 0.043255601078271866, 0.04729430377483368, -0.018193019554018974, -0.02242044359445572, 0.03625393286347389, -0.018929043784737587, -0.018759192898869514, 0.03685785084962845, -0.01712672784924507, 0.030441224575042725, -0.013361678458750248, 0.017872188240289688, -0.04178355261683464, 0.0782073363661766, -0.035178203135728836, 0.043746285140514374, -0.015862274914979935, 0.022854508832097054, 0.04842664673924446, -0.0003096257569268346, -0.0019143718527629972, -0.031384844332933426, -0.007063006050884724, -0.02725178375840187, 0.012587908655405045, -0.008247250691056252, -0.08424651622772217, 0.01448458805680275, -0.016985183581709862, 0.008124579675495625, -0.00861998088657856, -0.03208312764763832, -0.0560511089861393, 0.005496594589203596, 0.04351981729269028, -0.02185427024960518, 0.029969414696097374, 0.03634829446673393, 0.00978535320609808, -0.021590055897831917, -0.03315885365009308, 0.04740753769874573, 0.033951494842767715, 0.0052701253443956375, 0.025911841541528702, 0.041255123913288116, -0.000581801519729197, 0.03657476231455803, 0.009908024221658707, 0.038688477128744125, -0.02545890398323536, -0.007284756749868393, -0.005619265139102936, -0.009601347148418427, 0.061297643929719925, 0.02145794965326786, -0.008502027951180935, 0.022760147228837013, 0.050955552607774734, 0.010106184519827366, -0.061108916997909546, -0.005487157963216305, 0.004784160293638706, 0.023533916100859642, 0.011804702691733837, -0.044878631830215454, 0.04861537367105484, 0.04261393845081329, 0.039443373680114746, 0.015484826639294624, 0.0440482459962368, -0.021306969225406647, 0.019089460372924805 ]
730,098
mmengine.fileio.backends.local_backend
copyfile_from_local
Copy a local file src to dst and return the destination file. Same as :meth:`copyfile`. Args: src (str or Path): A local file to be copied. dst (str or Path): Copy file to dst. Returns: str: If dst specifies a directory, the file will be copied into dst using the base filename from src. Raises: SameFileError: If src and dst are the same file, a SameFileError will be raised. Examples: >>> backend = LocalBackend() >>> # dst is a file >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> # src will be copied to '/path1/of/file1' >>> backend.copyfile_from_local(src, dst) '/path1/of/file1' >>> # dst is a directory >>> dst = '/path1/of/dir' >>> # src will be copied to >>> backend.copyfile_from_local(src, dst) '/path1/of/dir/file'
def copyfile_from_local( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Copy a local file src to dst and return the destination file. Same as :meth:`copyfile`. Args: src (str or Path): A local file to be copied. dst (str or Path): Copy file to dst. Returns: str: If dst specifies a directory, the file will be copied into dst using the base filename from src. Raises: SameFileError: If src and dst are the same file, a SameFileError will be raised. Examples: >>> backend = LocalBackend() >>> # dst is a file >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> # src will be copied to '/path1/of/file1' >>> backend.copyfile_from_local(src, dst) '/path1/of/file1' >>> # dst is a directory >>> dst = '/path1/of/dir' >>> # src will be copied to >>> backend.copyfile_from_local(src, dst) '/path1/of/dir/file' """ return self.copyfile(src, dst)
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> str
[ -0.038665737956762314, -0.015993382781744003, -0.017277801409363747, 0.009942347183823586, -0.015755528584122658, -0.057085245847702026, 0.018096022307872772, 0.034783944487571716, 0.05202368646860123, -0.024698883295059204, -0.03813294321298599, -0.0351264551281929, -0.02298632450401783, 0.007149926852434874, -0.030502548441290855, 0.05415486916899681, -0.004809431731700897, -0.025136535987257957, -0.01618366688489914, 0.009799634106457233, 0.020379433408379555, -0.04387952387332916, 0.10222064703702927, 0.04749492555856705, 0.005903565790504217, -0.020683886483311653, -0.03737180680036545, -0.05590548366308212, -0.012035472318530083, -0.014299853704869747, 0.060396190732717514, 0.018210193142294884, 0.020113034173846245, -0.00822503212839365, -0.03137785568833351, -0.026373382657766342, -0.0009823419386520982, -0.020208176225423813, -0.07211769372224808, -0.11797617375850677, -0.010760569013655186, -0.03373738005757332, 0.0577702671289444, 0.04292810335755348, 0.07558086514472961, -0.01582212746143341, 0.0333377830684185, -0.06435409933328629, 0.05267065390944481, 0.0030611963011324406, -0.009105096571147442, 0.08935743570327759, -0.02936084382236004, 0.007654179818928242, -0.018600275740027428, 0.03681998327374458, 0.010636883787810802, -0.032709844410419464, -0.1071680337190628, 0.01761079765856266, -0.029398901388049126, -0.03312847018241882, 0.023709405213594437, 0.007996691390872002, -0.025326820090413094, -0.04075886681675911, -0.041253603994846344, 0.0011720313923433423, 0.029075417667627335, 0.0012166292872279882, -0.023443007841706276, 0.05990144982933998, -0.03447948768734932, 0.03428920358419418, -0.0018100779270753264, 0.050805866718292236, 0.03552605211734772, -0.015622328966856003, 0.03048352152109146, 0.010208744555711746, -0.015441559255123138, -0.050120845437049866, -0.011740531772375107, -0.03584953397512436, -0.06035813316702843, -0.06020590662956238, -0.031929679214954376, -0.06427798420190811, 0.02703937701880932, 0.03301430121064186, 0.007387781981378794, 0.032405391335487366, -0.02372843399643898, -0.034346289932727814, 0.03248150274157524, -0.06085287034511566, -0.008648415096104145, 0.01644054986536503, -0.025821559131145477, 0.04056858271360397, -0.0407969206571579, 0.0026425712276250124, -0.024527626112103462, -0.010950853116810322, 0.04570625349879265, 0.011778589338064194, 0.023290779441595078, 0.004188629798591137, 0.021064454689621925, 0.008429587818682194, 0.014613823033869267, 0.0035678278654813766, 0.006531503517180681, 0.017696425318717957, 0.024755967780947685, -0.004966416396200657, 0.011436077766120434, -0.04399369657039642, -0.027743428945541382, 0.024508599191904068, -0.007235554978251457, 0.03636329993605614, -0.020170120522379875, -0.047799378633499146, 0.025954758748412132, -0.0067646014504134655, 0.07230797410011292, -0.0687686949968338, -0.042471423745155334, 0.014023941941559315, -0.0014937305822968483, 0.02072194404900074, 0.0022620027884840965, 0.09133639186620712, 0.02408997341990471, -0.004557305481284857, -0.014271311461925507, 0.07371608167886734, -0.0015638978220522404, 0.08372502774000168, 0.075048066675663, -0.06736058741807938, 0.010817654430866241, 0.02736286073923111, 0.045896537601947784, -0.018267277628183365, -0.015270303003489971, -0.06427798420190811, -0.004512113053351641, 0.02846650965511799, 0.00001637112654861994, -0.009847205132246017, -0.04399369657039642, 0.05640022084116936, -0.013462604023516178, -0.02251061424612999, -0.021502109244465828, -0.02193976193666458, 0.030198095366358757, -0.028561651706695557, -0.0568569041788578, -0.02039846032857895, 0.09065137058496475, -0.02662075310945511, 0.030141009017825127, 0.02936084382236004, -0.01384317222982645, 0.013015436008572578, -0.025079451501369476, -0.01360531710088253, 0.005737067200243473, 0.00757806608453393, 0.026221156120300293, -0.01524176076054573, 0.011645389720797539, -0.0672844722867012, 0.032081909477710724, -0.01386220008134842, 0.020531659945845604, -0.009157424792647362, 0.04741881042718887, -0.017915252596139908, 0.003513121046125889, 0.022339358925819397, 0.024984309449791908, 0.0009912614477798343, -0.011921302415430546, 0.015898240730166435, 0.0033347296994179487, 0.016725976020097733, 0.04007384181022644, 0.022472558543086052, -0.011978386901319027, -0.03210093453526497, 0.007368753664195538, -0.04132971912622452, 0.045896537601947784, -0.06751281768083572, -0.009166939184069633, 0.019466068595647812, 0.028694849461317062, -0.012929808348417282, 0.029132504016160965, 0.039464931935071945, -0.031663283705711365, 0.0336422361433506, -0.01015165913850069, 0.07946266233921051, -0.030179066583514214, 0.02736286073923111, -0.02384260483086109, -0.0072973971255123615, 0.0014913519844412804, 0.004578712396323681, -0.005213785916566849, 0.024375399574637413, -0.05426903814077377, 0.050387244671583176, 0.004264743532985449, 0.051338665187358856, -0.019380440935492516, -0.013167663477361202, -0.022548671811819077, 0.0010418057208880782, 0.027381889522075653, -0.05434515327215195, 0.008995682932436466, 0.017791567370295525, 0.0017006646376103163, -0.011493162252008915, 0.008367745205760002, -0.025650303810834885, 0.021806564182043076, -0.02572641707956791, 0.005280385259538889, -0.007359239738434553, 0.03579244762659073, -0.02899930439889431, -0.023119524121284485, -0.04844634607434273, 0.004619147628545761, 0.0026520853862166405, 0.05141477659344673, 0.037771403789520264, -0.00028215572820045054, -0.053698185831308365, -0.0382661409676075, -0.02357620559632778, 0.043156445026397705, 0.006973914336413145, 0.006179478019475937, 0.058341119438409805, -0.09620766341686249, 0.025973785668611526, 0.027077434584498405, 0.004816567525267601, -0.012672924436628819, -0.028276225551962852, -0.015317874029278755, 0.04281393438577652, -0.03316652774810791, -0.07230797410011292, 0.0011601386358961463, -0.024965280666947365, -0.016250265762209892, -0.043955639004707336, -0.059026144444942474, 0.021445022895932198, 0.03799974545836449, -0.007977662608027458, 0.14248476922512054, 0.018847644329071045, -0.0022310817148536444, 0.0031206600833684206, 0.05940671265125275, -0.04993056133389473, -0.06378325074911118, 0.0648868978023529, 0.0437653549015522, -0.0012546861544251442, 0.016231238842010498, -0.018333878368139267, -0.05483989045023918, -0.056818846613168716, -0.020912228152155876, 0.033661264926195145, -0.01844804920256138, -0.11455105990171432, -0.0021656714379787445, -0.02641144022345543, 0.02646852470934391, 0.03716249391436577, -0.03204385191202164, -0.030179066583514214, -0.029703356325626373, -0.055486857891082764, -0.016231238842010498, -0.03194870799779892, 0.0016328758792951703, 0.009723519906401634, -0.03444143012166023, -0.01410005521029234, -0.0003353758074808866, 0.02816205471754074, -0.014223740436136723, -0.0404924675822258, 0.021635308861732483, -0.0029065904673188925, -0.04551596939563751, 0.0005880969692952931, 0.008948111906647682, -0.0732593983411789, 0.006431604269891977, -0.03373738005757332, 0.0028019340243190527, 0.03486005589365959, -0.014014427550137043, 0.013928799889981747, 0.006046278867870569, -0.0440698079764843, -0.026430469006299973, 0.059292539954185486, -0.0485224574804306, 0.07847318053245544, 0.01618366688489914, -0.01210207212716341, 0.09270644187927246, 0.004026888404041529, -0.0004097055643796921, 0.0349932536482811, 0.007197497878223658, 0.047380752861499786, -0.027914684265851974, -0.005618139635771513, -0.0013938314514234662, 0.007192740682512522, -0.02700132131576538, -0.01608852483332157, 0.03569730743765831, -0.046162933111190796, 0.09841496497392654, -0.027534116059541702, 0.012159157544374466, -0.04186251387000084, 0.0007807596703059971, 0.04418398067355156, -0.028694849461317062, 0.009347708895802498, 0.03628718852996826, 0.03733374923467636, -0.035887591540813446, -0.0020859900396317244, 0.022891182452440262, -0.03385154902935028, -0.023423979058861732, 0.029018333181738853, 0.013224748894572258, 0.005484940484166145, 0.05430709570646286, -0.023747462779283524, 0.053545959293842316, 0.0018112672260031104, -0.007363996468484402, -0.044678717851638794, -0.011597818695008755, -0.009204995818436146, 0.0267920084297657, -0.010798625648021698, -0.0705573633313179, 0.013919285498559475, 0.00032110451138578355, -0.0021514000836759806, 0.06382130086421967, -0.031225629150867462, -0.024755967780947685, -0.008762584999203682, 0.05579131469130516, -0.029646269977092743, -0.007692236918956041, 0.02509848028421402, 0.07915820926427841, -0.024070944637060165, 0.005261356942355633, 0.049169424921274185, 0.021597251296043396, 0.030198095366358757, 0.04760909453034401, -0.05289899557828903, -0.013215234503149986, -0.05468766391277313, -0.0014521059347316623, 0.004569198004901409, 0.0705573633313179, 0.03459366038441658, -0.009423822164535522, -0.059558939188718796, 0.012482640333473682, 0.004985444713383913, 0.025954758748412132, 0.006883529014885426, -0.010789111256599426, -0.014233254827558994, -0.029855582863092422, -0.02155919373035431, -0.08235497772693634, 0.03301430121064186, 0.06492495536804199, 0.021977819502353668, 0.026544639840722084, 0.05111032351851463, 0.008891026489436626, 0.043841470032930374, -0.05255648121237755, 0.0035416637547314167, -0.032614704221487045, 0.023347865790128708, -0.030331293120980263, -0.093467578291893, 0.040149956941604614, -0.010208744555711746, -0.044526491314172745, -0.008572300896048546, 0.003915096633136272, -0.07687480002641678, 0.018267277628183365, -0.029912669211626053, -0.01676403358578682, 0.007045270875096321, -0.03541187942028046, 0.0023309809621423483, 0.010399028658866882, -0.022377416491508484, 0.05990144982933998, -0.013776572421193123, 0.031929679214954376, 0.029436958953738213, 0.05103420838713646, -0.02435637079179287, 0.011169679462909698, 0.02804788388311863, -0.0329001285135746, -0.05407875403761864, 0.02920861728489399, -0.010456114076077938, -0.10313400626182556, -0.020760001614689827, -0.093467578291893, -0.03116854466497898, 0.0031634739134460688, 0.032919157296419144, -0.07051930576562881, 0.01220672857016325, -0.0011791670694947243, 0.0020836114417761564, -0.018057966604828835, -0.0007397296139970422, -0.049055252224206924, -0.03531673923134804, 0.007287883199751377, 0.06618082523345947, -0.005346984602510929, 0.058911971747875214, 0.1211729496717453, -0.023328837007284164, 0.023062439635396004, 0.010693969205021858, 0.038304198533296585, 0.030388379469513893, -0.020550688728690147, 0.011321906931698322, -0.007991934195160866, -0.009166939184069633, -0.023747462779283524, 0.05499212071299553, 0.06564803421497345, -0.03288109973073006, -0.021235711872577667, 0.012216242030262947, -0.03689609840512276, 0.04840828850865364, 0.021368909627199173, -0.018628818914294243, 0.009062282741069794, 0.006560046225786209, 0.015089533291757107, -0.006493446417152882, 0.02304341085255146, 0.06576219946146011, 0.01714460179209709, 0.04749492555856705, -0.03444143012166023, 0.04155805706977844, -0.04403175413608551, -0.056286051869392395, -0.06526746600866318, 0.06686585396528244, -0.04680990055203438, 0.0025141292717307806, -0.02762925811111927, 0.024032888934016228, 0.02563127502799034, 0.012159157544374466, -0.021958790719509125, 0.022815069183707237, -0.03164425492286682, 0.021368909627199173, 0.005366012919694185, -0.045896537601947784, -0.029551127925515175, 0.031244657933712006, -0.03813294321298599, 0.018781045451760292, -0.015936298295855522, -0.010789111256599426, 0.03278595954179764, 0.022967297583818436, -0.026925208047032356, -0.014651879668235779, -0.00880539882928133, -0.05076781287789345, -0.032024823129177094, -0.017211200669407845, 0.05974922329187393, -0.03558313474059105, -0.07150878012180328, 0.04121554642915726, 0.0023286023642867804, 0.04418398067355156, -0.04391758143901825, 0.01336746197193861, 0.0008140593999996781, 0.01012311689555645, 0.020893199369311333, 0.017572741955518723, 0.05312733352184296, 0.06443021446466446, -0.02467985451221466, -0.058873917907476425, -0.03544993698596954, -0.008467644453048706, -0.017696425318717957, -0.03242442011833191, 0.04353701323270798, -0.011007938534021378, 0.0010305076139047742, -0.07036707550287247, -0.022662842646241188, 0.04928359389305115, 0.008596086874604225, -0.03927464783191681, -0.009599835611879826, -0.046048764139413834, -0.022757984697818756, -0.012901265174150467, 0.006398304365575314, 0.03310944139957428, -0.0019611159805208445, 0.03723860904574394, -0.004738075193017721, 0.022320330142974854, -0.005694253370165825, -0.012882237322628498, 0.004799917805939913, 0.07344967871904373, -0.022757984697818756, -0.00809183344244957, 0.018200678750872612, -0.004079216625541449, 0.009166939184069633, -0.03853254020214081, 0.0333377830684185, 0.01268243882805109, -0.03712443634867668, 0.006188991945236921, 0.012691953219473362, 0.017639340832829475, 0.009847205132246017, -0.0020110656041651964, -0.006193749140948057, 0.061081212013959885, -0.06085287034511566, 0.021635308861732483, 0.017848653718829155, 0.056286051869392395, -0.04471677541732788, 0.007649423088878393, -0.011883244849741459, -0.02610698528587818, -0.0759233757853508, -0.01033242978155613, 0.011464620009064674, -0.010066031478345394, 0.04399369657039642, 0.024242199957370758, 0.0032966728322207928, -0.08326834440231323, -0.06964399665594101, -0.07002456486225128, 0.02863776497542858, -0.0036011275369673967, 0.0022096747998148203, -0.020760001614689827, -0.04719046875834465, 0.0026877636555582285, 0.054763779044151306, -0.005285142455250025, -0.035183537751436234, -0.02245352976024151, 0.011321906931698322, -0.003850875422358513, -0.01761079765856266, -0.005822694860398769, -0.031187571585178375, -0.017410999163985252, 0.10496073961257935, -0.010655912570655346, 0.0333377830684185, -0.011635876260697842, 0.023271752521395683, 0.06325045228004456, 0.01213061437010765, 0.04665767401456833, -0.02268187142908573, 0.053393732756376266, 0.014908763580024242, -0.04829411581158638, 0.0007070245337672532, -0.012929808348417282, -0.04159611463546753, 0.019380440935492516, -0.03505033999681473, -0.030711861327290535, 0.0006219912902452052, 0.05385041609406471, 0.026430469006299973, -0.049169424921274185, -0.02936084382236004, -0.010446599684655666, 0.03314749896526337, 0.009005197323858738, -0.04159611463546753, -0.004619147628545761, 0.023690376430749893, 0.004994959104806185, -0.058188892900943756, -0.02858067862689495, 0.0032062879763543606, -0.05076781287789345, 0.02810496836900711, -0.017791567370295525, -0.020017892122268677, 0.006003465037792921, -0.028961246833205223, 0.01513710431754589, 0.05556297302246094, 0.0057703666388988495, 0.06047230213880539, -0.01676403358578682, 0.029817527160048485, 0.031511057168245316, 0.0009240673971362412, 0.004971173591911793, 0.035145483911037445, 0.025669332593679428, 0.024280257523059845, 0.04954999312758446, 0.0069834282621741295, -0.032709844410419464, -0.01312960684299469, -0.04757103696465492, -0.05678078904747963, 0.02408997341990471, -0.04886496812105179, -0.029855582863092422, 0.018276792019605637, 0.0317203663289547, 0.043422844260931015, -0.029988782480359077, 0.0011458673980087042, -0.01881910301744938, 0.029494043439626694, 0.01175956055521965, 0.009423822164535522, -0.016059981659054756, -0.005251842550933361, 0.053660131990909576, -0.0028970763087272644, -0.05099615082144737, -0.0024475299287587404, 0.0013629102613776922, 0.03280498832464218, 0.039464931935071945, 0.060814812779426575, 0.004200522787868977, -0.013538717292249203, 0.02941793017089367, 0.043575070798397064, -0.043955639004707336, -0.04513540118932724, 0.040035784244537354, -0.009690220467746258, -0.01455673761665821, 0.018543191254138947, -0.05373624339699745, 0.028866104781627655, -0.03522159531712532, 0.012282841838896275, -0.02831428125500679, 0.05898808687925339, -0.032557617872953415, 0.04026412591338158, -0.012587296776473522, 0.006212777458131313, 0.029551127925515175, 0.012872722931206226, 0.034079890698194504, 0.005532511509954929, -0.033299725502729416, -0.020265262573957443, 0.0193518977612257, 0.0032705089543014765, -0.11614944785833359, -0.009875747375190258, -0.015831641852855682, 0.02256770059466362, -0.012368469499051571, -0.03822808712720871, -0.05145283415913582, -0.025402933359146118, 0.033451952040195465, -0.017962824553251266, 0.019104529172182083, 0.027191605418920517, 0.02077902853488922, -0.0030017325188964605, -0.027191605418920517, 0.04897914081811905, 0.05034918710589409, -0.018533676862716675, 0.03649650141596794, 0.039464931935071945, -0.009005197323858738, 0.034879084676504135, 0.025060422718524933, -0.0010067221010103822, -0.011455105617642403, -0.0034584144596010447, -0.028904162347316742, -0.019542181864380836, 0.07695090770721436, 0.02995072491466999, -0.009480907581746578, 0.021749477833509445, 0.01792476698756218, 0.0065219891257584095, -0.04897914081811905, -0.020227205008268356, 0.009157424792647362, 0.0007676776149310172, 0.024851109832525253, -0.046581558883190155, 0.004933116491883993, 0.037200551480054855, 0.04155805706977844, -0.007706508040428162, 0.032253164798021317, -0.024813054129481316, 0.0017422892851755023 ]
730,099
mmengine.fileio.backends.local_backend
copyfile_to_local
Copy the file src to local dst and return the destination file. Same as :meth:`copyfile`. If dst specifies a directory, the file will be copied into dst using the base filename from src. If dst specifies a file that already exists, it will be replaced. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to to local dst. Returns: str: If dst specifies a directory, the file will be copied into dst using the base filename from src. Examples: >>> backend = LocalBackend() >>> # dst is a file >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> # src will be copied to '/path1/of/file1' >>> backend.copyfile_to_local(src, dst) '/path1/of/file1' >>> # dst is a directory >>> dst = '/path1/of/dir' >>> # src will be copied to >>> backend.copyfile_to_local(src, dst) '/path1/of/dir/file'
def copyfile_to_local( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Copy the file src to local dst and return the destination file. Same as :meth:`copyfile`. If dst specifies a directory, the file will be copied into dst using the base filename from src. If dst specifies a file that already exists, it will be replaced. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to to local dst. Returns: str: If dst specifies a directory, the file will be copied into dst using the base filename from src. Examples: >>> backend = LocalBackend() >>> # dst is a file >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> # src will be copied to '/path1/of/file1' >>> backend.copyfile_to_local(src, dst) '/path1/of/file1' >>> # dst is a directory >>> dst = '/path1/of/dir' >>> # src will be copied to >>> backend.copyfile_to_local(src, dst) '/path1/of/dir/file' """ return self.copyfile(src, dst)
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> str
[ -0.049807704985141754, -0.024123823270201683, -0.007277099881321192, 0.010501854121685028, -0.008718251250684261, -0.049997955560684204, 0.016190357506275177, 0.03466372936964035, 0.05094921216368675, -0.04364357516169548, -0.03072553314268589, -0.03658526390790939, -0.0304972305893898, -0.0004943552776239812, -0.02549363113939762, 0.05346052348613739, -0.007025017403066158, -0.031733863055706024, -0.021688610315322876, 0.00875154510140419, 0.026273660361766815, -0.048437897115945816, 0.1030399277806282, 0.031353361904621124, -0.0021415124647319317, -0.023857472464442253, -0.023172568529844284, -0.0704689621925354, -0.018321169540286064, -0.007015504874289036, 0.05235707014799118, 0.010206964798271656, 0.01549594197422266, -0.028138119727373123, -0.040789809077978134, -0.015267640352249146, -0.002466128207743168, -0.0158193688839674, -0.0640384778380394, -0.13051216304302216, -0.014811038039624691, -0.039115600287914276, 0.047182243317365646, 0.040751758962869644, 0.0882764533162117, -0.022677917033433914, 0.032799266278743744, -0.054183479398489, 0.05334637314081192, -0.005531547125428915, -0.0029631590005010366, 0.10273552685976028, -0.025817057117819786, 0.005008357111364603, -0.011091631837189198, 0.026235610246658325, 0.013127317652106285, -0.0384497232735157, -0.10555124282836914, 0.019557800143957138, -0.011186757124960423, -0.030592357739806175, 0.026578061282634735, 0.014744450338184834, -0.020413929596543312, -0.020661255344748497, -0.05056871101260185, -0.003969111014157534, 0.028842048719525337, 0.012118986807763577, -0.020547104999423027, 0.03298952057957649, -0.030059654265642166, 0.03626183420419693, 0.004573157988488674, 0.065902940928936, 0.038925349712371826, -0.013498306274414062, 0.039001449942588806, 0.003381711198017001, -0.02693953737616539, -0.04539388418197632, -0.01146262139081955, -0.025779007002711296, -0.04196936637163162, -0.06769129633903503, -0.023838447406888008, -0.07720384746789932, 0.009645724669098854, 0.04200741648674011, -0.00008836266351863742, 0.027110764756798744, -0.0075149135664105415, -0.034720804542303085, 0.04231181740760803, -0.057760197669267654, -0.0066207339987158775, 0.017750415951013565, -0.027415165677666664, 0.047144193202257156, -0.03742236644029617, 0.01157677173614502, -0.012166549451649189, -0.01329854317009449, 0.058711450546979904, -0.0052984897047281265, 0.022487664595246315, 0.006482801865786314, 0.0077194334007799625, 0.014772987924516201, 0.0035933651961386204, 0.004228327888995409, 0.0054649594239890575, 0.010654054582118988, 0.028176169842481613, -0.015724243596196175, -0.002111785812303424, -0.03569108247756958, -0.024314073845744133, 0.02751029096543789, -0.012727790512144566, 0.03411199897527695, -0.023686246946454048, -0.04417627677321434, 0.013859783299267292, -0.013022678904235363, 0.06400042772293091, -0.049236953258514404, -0.0343022495508194, 0.005997661966830492, -0.02269694209098816, 0.0077574835158884525, -0.004758652299642563, 0.09824560582637787, 0.019881226122379303, -0.0012086882488802075, -0.0015410329215228558, 0.06354382634162903, 0.017017949372529984, 0.08340603113174438, 0.06255452334880829, -0.07594818621873856, 0.004397175740450621, 0.012299725785851479, 0.048057395964860916, -0.03283732011914253, -0.01670403592288494, -0.054183479398489, -0.01761724054813385, 0.015467404387891293, 0.00010827955702552572, -0.006401945371180773, -0.056047938764095306, 0.03538668155670166, -0.00021210011618677527, -0.0006031550583429635, -0.015771806240081787, -0.02303939312696457, 0.027757616713643074, -0.028899123892188072, -0.05524888262152672, -0.013308055698871613, 0.08310162276029587, -0.024123823270201683, 0.034911055117845535, 0.029393775388598442, -0.003044015495106578, 0.03064943291246891, -0.008984602056443691, -0.007890659384429455, 0.0008240245515480638, -0.0007526804110966623, 0.022069113329052925, -0.005621916148811579, 0.0061546191573143005, -0.057341642677783966, 0.03793604299426079, -0.014972751960158348, 0.021840812638401985, 0.01541984174400568, 0.06647369265556335, -0.035557907074689865, -0.006363895256072283, 0.03045918047428131, 0.03289439529180527, -0.018245069310069084, -0.013317568227648735, 0.028290320187807083, -0.024161873385310173, 0.024180898442864418, 0.05064481124281883, 0.006539877504110336, 0.004080883227288723, -0.032685115933418274, -0.006297307088971138, -0.035101305693387985, 0.038506798446178436, -0.05996710807085037, -0.023781372234225273, 0.00758625753223896, 0.035900358110666275, -0.024428226053714752, 0.04550803452730179, 0.04322502017021179, -0.021498359739780426, 0.025550706312060356, -0.009469741955399513, 0.06776739656925201, -0.02534143067896366, 0.02246863953769207, -0.011072606779634953, -0.013802708126604557, 0.01142457127571106, -0.0107016172260046, 0.0026611355133354664, 0.009369860403239727, -0.047372493892908096, 0.0553249828517437, 0.0013436474837362766, 0.06552243232727051, -0.03770774230360985, -0.023324768990278244, -0.010796742513775826, 0.009236685000360012, 0.024751652032136917, -0.040942009538412094, 0.013707582838833332, 0.025474606081843376, -0.005631428677588701, -0.02564583159983158, 0.011491158977150917, -0.029165474697947502, 0.019805125892162323, -0.024827752262353897, 0.010378190316259861, -0.01517251506447792, 0.026692211627960205, -0.016076207160949707, -0.015828881412744522, -0.05159606412053108, 0.008680201135575771, 0.008856182917952538, 0.048171546310186386, 0.04451872780919075, -0.003419761313125491, -0.050378456711769104, -0.03369344770908356, -0.030402105301618576, 0.049693554639816284, 0.0019524506060406566, 0.02575998194515705, 0.04493727907538414, -0.10692104697227478, 0.02239253930747509, 0.021802762523293495, 0.0048894500359892845, -0.00787163432687521, -0.014173697680234909, -0.015943031758069992, 0.040980059653520584, -0.03340807184576988, -0.0693274587392807, 0.006216450594365597, -0.017103562131524086, -0.014620787464082241, -0.04238791763782501, -0.05992905795574188, 0.017455527558922768, 0.04410017654299736, 0.0006694456096738577, 0.14428633451461792, 0.023781372234225273, -0.005122507456690073, -0.00463261129334569, 0.059206102043390274, -0.056428439915180206, -0.06795764714479446, 0.0716104656457901, 0.049617454409599304, -0.003538668155670166, 0.031695812940597534, -0.013755145482718945, -0.05368882417678833, -0.0606139600276947, -0.018406782299280167, 0.03350319713354111, -0.019900251179933548, -0.10463804006576538, -0.012556564062833786, -0.026463910937309265, 0.022183263674378395, 0.047144193202257156, -0.04177911579608917, -0.03519643098115921, -0.023781372234225273, -0.05970075726509094, -0.008898989297449589, -0.028556670993566513, 0.008214086294174194, 0.0017300947802141309, -0.024922877550125122, -0.011082119308412075, -0.008014322258532047, 0.03076358325779438, -0.011938248760998249, -0.020356854423880577, 0.01578131876885891, -0.008742032572627068, -0.05543913319706917, 0.00767187075689435, 0.025284355506300926, -0.0867544412612915, -0.003269938752055168, -0.0365472137928009, 0.012185574509203434, 0.027110764756798744, -0.032799266278743744, 0.006002418231219053, -0.005997661966830492, -0.050492607057094574, -0.028918148949742317, 0.04497532919049263, -0.03321782127022743, 0.08911355584859848, 0.03603353351354599, -0.016989411786198616, 0.09406008571386337, -0.004549376666545868, 0.0036718437913805246, 0.02208813838660717, 0.0063971891067922115, 0.047486644238233566, -0.031505562365055084, -0.01549594197422266, -0.008718251250684261, 0.005288977175951004, -0.028138119727373123, -0.02250668965280056, 0.04234986752271652, -0.02224033884704113, 0.0859934389591217, -0.020471004769206047, 0.01616181991994381, -0.03099188394844532, 0.004473275970667601, 0.054183479398489, -0.035900358110666275, 0.0067681786604225636, 0.022335464134812355, 0.05167216435074806, -0.023305743932724, -0.014430536888539791, 0.012575589120388031, -0.03607158362865448, -0.011377008631825447, 0.036204759031534195, 0.016799161210656166, -0.01329854317009449, 0.05973880738019943, -0.03841167315840721, 0.059396352618932724, -0.0026207072660326958, 0.004706333391368389, -0.04512752965092659, -0.009883537888526917, -0.0161998700350523, 0.032532915472984314, -0.009740849956870079, -0.05958660691976547, 0.02121298387646675, 0.004171252716332674, -0.00523665826767683, 0.0636579766869545, -0.02553168125450611, -0.03327489644289017, -0.006126081570982933, 0.057684097439050674, -0.025018002837896347, -0.0019512615399435163, 0.02182178758084774, 0.07785069942474365, -0.0352344810962677, -0.004468519706279039, 0.03860192373394966, 0.021574459969997406, 0.027909817174077034, 0.05254732072353363, -0.05433567985892296, -0.011158219538629055, -0.06548438221216202, 0.007705164607614279, 0.01861605793237686, 0.05167216435074806, 0.021878862753510475, -0.0077955336309969425, -0.056694790720939636, 0.02322964370250702, 0.0031272503547370434, 0.0380692183971405, 0.0087134949862957, -0.02128908410668373, -0.012461438775062561, -0.017407964915037155, -0.012965603731572628, -0.08135131746530533, 0.03542473167181015, 0.06575074046850204, 0.027643466368317604, 0.04299671947956085, 0.04588853567838669, -0.009032164700329304, 0.040219057351350784, -0.05136776342988014, -0.017874078825116158, -0.007724189665168524, 0.017455527558922768, -0.0378979928791523, -0.07868780195713043, 0.026578061282634735, -0.02315354347229004, -0.04527973383665085, -0.004539863672107458, 0.007838340476155281, -0.06361992657184601, 0.01377417054027319, -0.04314891993999481, -0.004585048649460077, -0.0027800423558801413, -0.031353361904621124, 0.013127317652106285, 0.01650427281856537, -0.018245069310069084, 0.059206102043390274, -0.004513704217970371, 0.032152414321899414, 0.032000213861465454, 0.0606139600276947, -0.017664803192019463, 0.011472133919596672, 0.03496813029050827, -0.023762347176671028, -0.047981295734643936, 0.023990647867321968, -0.014335410669445992, -0.09367957711219788, -0.0005520250997506082, -0.09307077527046204, -0.03213338926434517, 0.005736066959798336, 0.031695812940597534, -0.06757714599370956, 0.014221260324120522, 0.015077389776706696, 0.008447143249213696, -0.025398505851626396, -0.007286612410098314, -0.054183479398489, -0.04611683636903763, 0.006088030990213156, 0.06852839887142181, -0.015638630837202072, 0.06814789772033691, 0.1223694309592247, -0.030097704380750656, 0.012718277983367443, -0.0005059486720710993, 0.03186703845858574, 0.029584025964140892, -0.02296329289674759, 0.0012283078394830227, -0.006335357669740915, -0.00941742304712534, -0.02781469188630581, 0.04687783867120743, 0.06719664484262466, -0.025474606081843376, -0.023686246946454048, 0.01769334077835083, -0.026920512318611145, 0.04573633521795273, 0.018853871151804924, -0.010083301924169064, 0.011529209092259407, 0.012813403271138668, 0.01888240873813629, -0.0011813396122306585, 0.017588702961802483, 0.058977801352739334, 0.018597032874822617, 0.03649013862013817, -0.03683258965611458, 0.03725114092230797, -0.025037027895450592, -0.07035481184720993, -0.07644284516572952, 0.06559853255748749, -0.049769654870033264, -0.01366002019494772, -0.03304659575223923, 0.038811199367046356, 0.014611274935305119, 0.026273660361766815, -0.016418660059571266, 0.028765946626663208, -0.03668038919568062, 0.01911071129143238, -0.00659219641238451, -0.039686352014541626, -0.03829752281308174, 0.040485408157110214, -0.035367656499147415, 0.02766249142587185, -0.015153490006923676, -0.009883537888526917, 0.02534143067896366, 0.017246250063180923, -0.019862201064825058, -0.009997689165174961, -0.009750362485647202, -0.06381017714738846, -0.039343900978565216, -0.00922717247158289, 0.0450894795358181, -0.03388369828462601, -0.058407049626111984, 0.048590097576379776, 0.002290146192535758, 0.04181716591119766, -0.06027150899171829, 0.006382920313626528, 0.0076623582281172276, 0.012556564062833786, 0.030097704380750656, 0.011662384495139122, 0.04364357516169548, 0.0734749287366867, -0.01873020827770233, -0.0507589615881443, -0.05171021446585655, -0.009921588003635406, -0.010834792628884315, -0.03787896782159805, 0.03331294655799866, -0.019976353272795677, -0.008199816569685936, -0.06936550885438919, -0.028727896511554718, 0.047600794583559036, 0.012566076591610909, -0.032951470464468, -0.015048852190375328, -0.029165474697947502, -0.028537645936012268, -0.01754114031791687, 0.015067877247929573, 0.04642123728990555, -0.009236685000360012, 0.03825947269797325, -0.01888240873813629, 0.03652818873524666, -0.002167672151699662, -0.01538179162889719, 0.008589831180870533, 0.07408373057842255, -0.026920512318611145, -0.009208147414028645, 0.0171511247754097, 0.014154672622680664, 0.011995323933660984, -0.051900465041399, 0.047791045159101486, 0.029013274237513542, -0.03626183420419693, 0.0037217848002910614, 0.007410275284200907, 0.014849088154733181, 0.021422259509563446, -0.0011581528233364224, -0.0027919330168515444, 0.057341642677783966, -0.06156521663069725, 0.01911071129143238, 0.009098753333091736, 0.06247841939330101, -0.04695393890142441, 0.011700434610247612, -0.008095178753137589, -0.01697038672864437, -0.07202901691198349, -0.028233245015144348, 0.018245069310069084, 0.01329854317009449, 0.04581243544816971, 0.018663620576262474, 0.006834766361862421, -0.08317772299051285, -0.08211231976747513, -0.06122276559472084, 0.03700381517410278, -0.016218895092606544, -0.010292577557265759, -0.01726527512073517, -0.047296393662691116, 0.006145106628537178, 0.058140698820352554, -0.000991088687442243, -0.041626911610364914, -0.025018002837896347, 0.006221206858754158, -0.012014348991215229, -0.0127848656848073, -0.017217712476849556, -0.029565000906586647, -0.021726662293076515, 0.0894179567694664, -0.008133228868246078, 0.04322502017021179, -0.004468519706279039, 0.013165367767214775, 0.05212876573204994, 0.013393668457865715, 0.05212876573204994, -0.0069774542935192585, 0.05581963434815407, 0.020413929596543312, -0.057075291872024536, 0.003800263162702322, -0.01528666540980339, -0.03738431632518768, 0.00395484222099185, -0.047981295734643936, -0.040333207696676254, -0.004903718829154968, 0.05399322509765625, 0.01880630850791931, -0.04307281970977783, -0.020394904538989067, -0.010967968963086605, 0.027453215792775154, -0.005564840976148844, -0.03746041655540466, 0.01138652116060257, 0.035557907074689865, -0.008285430260002613, -0.056694790720939636, -0.022221313789486885, 0.00686806021258235, -0.04486117884516716, 0.010225989855825901, -0.0333319716155529, -0.013869295828044415, 0.00886569544672966, -0.03361734747886658, 0.007705164607614279, 0.07016456127166748, 0.0006260446389205754, 0.057227492332458496, -0.016028644517064095, 0.023876497521996498, 0.03179093822836876, 0.008456655777990818, 0.024865802377462387, 0.01894899643957615, 0.011567259207367897, 0.03091578371822834, 0.047943245619535446, -0.001164098153822124, -0.04170301556587219, -0.020052453503012657, -0.04653538763523102, -0.05391712486743927, 0.023857472464442253, -0.05467813089489937, -0.029488900676369667, 0.02296329289674759, 0.024675551801919937, 0.04299671947956085, -0.020680280402302742, -0.00635438272729516, -0.022183263674378395, 0.029907453805208206, -0.010654054582118988, 0.013679045252501965, -0.016019131988286972, -0.019652925431728363, 0.05178631469607353, -0.016104744747281075, -0.05064481124281883, -0.002004769630730152, -0.001954828854650259, 0.03458762913942337, 0.04664953798055649, 0.0545639805495739, 0.007396006491035223, 0.0033936018589884043, 0.024656526744365692, 0.04196936637163162, -0.026996612548828125, -0.028157144784927368, 0.0348539799451828, -0.011824098415672779, -0.01631402038037777, 0.011947761289775372, -0.047068092972040176, 0.032038263976573944, -0.030440155416727066, 0.019748050719499588, -0.04527973383665085, 0.06597904115915298, -0.03565303236246109, 0.032380715012550354, -0.024199923500418663, -0.011681409552693367, 0.020299779251217842, 0.010463804006576538, 0.026501961052417755, 0.007524426095187664, -0.02315354347229004, -0.008166522718966007, 0.02182178758084774, 0.01761724054813385, -0.10326822847127914, -0.011015531606972218, -0.020223679021000862, 0.027491265907883644, -0.009065458551049232, -0.04501337930560112, -0.0439479760825634, -0.023895522579550743, 0.022373514249920845, -0.02341989427804947, 0.019938301295042038, 0.047981295734643936, 0.01566716842353344, -0.009289003908634186, -0.024409200996160507, 0.05247122049331665, 0.03867802396416664, -0.03629988431930542, 0.03000257909297943, 0.050264306366443634, -0.008228355087339878, 0.03449250012636185, 0.012252163141965866, 0.017712365835905075, -0.011681409552693367, 0.00004741410884889774, -0.024770677089691162, -0.010863331146538258, 0.06084226071834564, 0.038164347410202026, -0.012566076591610909, 0.031581662595272064, 0.018787283450365067, 0.014801525510847569, -0.04299671947956085, -0.007258074823766947, 0.020033428445458412, 0.004989332053810358, 0.030135754495859146, -0.0549444817006588, -0.0028632772155106068, 0.028556670993566513, 0.0316387377679348, -0.002324629109352827, 0.035786207765340805, -0.026273660361766815, 0.009731337428092957 ]
730,100
mmengine.fileio.backends.local_backend
copytree
Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. src and dst should have the same prefix and dst must not already exist. TODO: Whether to support dirs_exist_ok parameter. Args: src (str or Path): A directory to be copied. dst (str or Path): Copy directory to dst. Returns: str: The destination directory. Raises: FileExistsError: If dst had already existed, a FileExistsError will be raised. Examples: >>> backend = LocalBackend() >>> src = '/path/of/dir1' >>> dst = '/path/of/dir2' >>> backend.copytree(src, dst) '/path/of/dir2'
def copytree( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. src and dst should have the same prefix and dst must not already exist. TODO: Whether to support dirs_exist_ok parameter. Args: src (str or Path): A directory to be copied. dst (str or Path): Copy directory to dst. Returns: str: The destination directory. Raises: FileExistsError: If dst had already existed, a FileExistsError will be raised. Examples: >>> backend = LocalBackend() >>> src = '/path/of/dir1' >>> dst = '/path/of/dir2' >>> backend.copytree(src, dst) '/path/of/dir2' """ return shutil.copytree(src, dst)
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> str
[ -0.03543170168995857, -0.023278705775737762, -0.00973984133452177, -0.04442530870437622, -0.017095603048801422, 0.019392460584640503, 0.033764783293008804, 0.03223354369401932, 0.06454462558031082, -0.05217841640114784, 0.006338165607303381, -0.025352662429213524, -0.03465639054775238, 0.0017262778710573912, -0.034772686660289764, -0.010679906234145164, 0.007593200076371431, -0.00999181717634201, -0.015399610623717308, 0.026922667399048805, -0.014042816124856472, -0.020972156897187233, 0.08528418838977814, 0.03229169547557831, -0.06291647255420685, -0.030508479103446007, 0.006120109464973211, -0.01726035587489605, -0.04492925852537155, 0.027930570766329765, 0.050511498004198074, -0.004230289254337549, 0.034249354153871536, -0.01731850393116474, -0.059853993356227875, -0.011338920332491398, -0.04702259972691536, -0.009754378348588943, -0.08109750598669052, -0.12273169308900833, -0.037932079285383224, -0.06008658558130264, 0.02134042978286743, 0.04845692217350006, 0.08070985227823257, -0.03062477521598339, 0.02337561920285225, -0.04078134521842003, 0.038416650146245956, -0.047720376402139664, 0.009609008207917213, 0.08939333260059357, -0.0539228655397892, -0.04155665636062622, 0.013965285383164883, 0.05578361079096794, -0.014246335253119469, -0.03105119615793228, -0.028589583933353424, 0.03486960381269455, 0.008707708679139614, 0.005170353688299656, -0.008184374310076237, 0.023336853832006454, -0.042603328824043274, -0.02114660106599331, -0.08660221099853516, -0.02746538445353508, 0.03746689483523369, 0.012249910272657871, -0.10009261965751648, 0.01855900138616562, 0.01947968266904354, 0.006386622320860624, -0.004966834560036659, 0.06776215881109238, 0.01868498884141445, -0.02804686687886715, 0.023898955434560776, 0.004639750346541405, -0.07532144337892532, -0.054969534277915955, -0.03643960505723953, -0.022600309923291206, 0.018365174531936646, -0.005868133623152971, -0.021960677579045296, -0.029500575736165047, -0.014314175583422184, -0.0002784758689813316, -0.023550065234303474, -0.017444493249058723, 0.011358303017914295, 0.01877221278846264, 0.010011200793087482, -0.0004685178864747286, 0.011338920332491398, 0.030721688643097878, -0.0208558589220047, 0.029384277760982513, -0.015060411766171455, 0.050007544457912445, -0.07311180233955383, -0.01538991928100586, 0.04147912561893463, -0.007724033668637276, -0.01790967956185341, 0.024577351287007332, 0.04268085956573486, -0.020662032067775726, 0.035412319004535675, -0.0012986455112695694, 0.07128982245922089, -0.0005339347408153117, -0.009904595091938972, 0.002648170804604888, -0.033260833472013474, -0.03781578317284584, -0.05024013668298721, 0.01818103715777397, 0.005407792516052723, 0.031962186098098755, 0.03876553848385811, -0.022813519462943077, 0.034966517239809036, 0.026515629142522812, 0.08202788233757019, -0.011135401204228401, -0.06415696442127228, -0.0030721689108759165, -0.018946656957268715, 0.005727608222514391, 0.01207546517252922, 0.054736942052841187, 0.07993453741073608, 0.000018086167983710766, 0.004610676318407059, 0.01391682866960764, -0.0033944074530154467, 0.008974222466349602, 0.06656043231487274, -0.060435473918914795, 0.02006116695702076, 0.03624577820301056, 0.03207848221063614, -0.028085632249712944, -0.02494562417268753, 0.01961536332964897, 0.034249354153871536, 0.036207012832164764, -0.0018740715458989143, 0.02258092537522316, -0.01755109801888466, 0.040665049105882645, -0.045549508184194565, 0.0006317571387626231, -0.02653501182794571, -0.023976486176252365, 0.03223354369401932, -0.01466306485235691, -0.050085075199604034, -0.04578210040926933, 0.04275839030742645, -0.06803352385759354, 0.050356436520814896, 0.031884655356407166, 0.014246335253119469, -0.000996395479887724, -0.044464074075222015, -0.015564363449811935, -0.02804686687886715, -0.02401525154709816, -0.0013991936575621367, -0.02027437649667263, -0.02523636631667614, -0.03934702277183533, 0.031400084495544434, 0.04667370766401291, -0.02839575707912445, -0.017735233530402184, 0.058419667184352875, 0.01697930507361889, -0.002553679747506976, 0.017308812588453293, 0.0039032052736729383, -0.014604916796088219, 0.0031036660075187683, 0.06074560061097145, 0.007680422160774469, 0.026728838682174683, -0.006987488362938166, 0.0366528183221817, 0.0038983593694865704, -0.023336853832006454, 0.031458236277103424, -0.024461055174469948, 0.043843824416399, -0.04140159487724304, 0.01373269222676754, 0.10947388410568237, 0.008644714951515198, -0.015302696265280247, 0.10389164090156555, 0.009933669120073318, 0.016368748620152473, -0.01740572601556778, -0.064699687063694, 0.08016713708639145, -0.015225165523588657, -0.060435473918914795, 0.014905349351465702, 0.01861714944243431, 0.039443936198949814, -0.024926241487264633, -0.03264058381319046, -0.020662032067775726, -0.03601318597793579, -0.005746990907937288, 0.005558009259402752, 0.014217261224985123, 0.008320054039359093, 0.004155181348323822, -0.03816467151045799, -0.02783365733921528, -0.017599554732441902, -0.06884759664535522, -0.026069825515151024, -0.03422997146844864, 0.06249004974961281, -0.05652015656232834, 0.012996146455407143, -0.02236771583557129, 0.031962186098098755, -0.028647733852267265, 0.0402386300265789, -0.04613099247217178, 0.035276640206575394, -0.06159844249486923, 0.01567096821963787, -0.0016245183069258928, -0.02674822136759758, -0.025837231427431107, 0.033260833472013474, 0.051092978566884995, 0.04969742149114609, -0.025488341227173805, 0.01010811422020197, -0.0352378748357296, 0.0610944889485836, 0.006483536213636398, -0.06280016899108887, 0.016514118760824203, -0.09691384434700012, 0.0011284406064078212, 0.015041029080748558, 0.048069268465042114, 0.023395001888275146, 0.01567096821963787, 0.0006747626466676593, 0.07140611857175827, 0.003721491666510701, -0.07063081115484238, -0.03136131912469864, -0.010234102606773376, -0.038726773113012314, -0.0517519935965538, -0.03500528261065483, -0.023976486176252365, 0.026922667399048805, 0.006788814906030893, 0.13350851833820343, 0.00977376103401184, 0.017056837677955627, 0.005960201378911734, 0.07307303696870804, -0.013005837798118591, -0.053302615880966187, 0.07094093412160873, 0.038222819566726685, -0.019721968099474907, 0.01448861975222826, -0.019440917298197746, -0.057062871754169464, -0.09606100618839264, -0.01789029687643051, 0.012288675643503666, 0.013267505913972855, -0.05423298850655556, 0.009342494420707226, -0.02955872379243374, 0.04128529876470566, 0.011106327176094055, -0.04775914549827576, -0.00647384487092495, 0.021379195153713226, -0.028415139764547348, 0.00023547036107629538, -0.01862684078514576, 0.0023198751732707024, 0.038862451910972595, -0.03977344185113907, 0.017066529020667076, 0.01942153461277485, 0.05210088565945625, -0.004581602290272713, -0.022193271666765213, 0.04380505904555321, 0.010912499390542507, -0.052372243255376816, 0.019789807498455048, -0.056054968386888504, -0.06966166943311691, 0.016262143850326538, -0.03207848221063614, -0.018006592988967896, -0.003910473547875881, 0.013829605653882027, -0.026690073311328888, -0.033764783293008804, -0.028415139764547348, -0.07032068818807602, 0.03636207431554794, -0.025042537599802017, 0.032543670386075974, -0.015428684651851654, -0.006018349900841713, 0.048418156802654266, 0.04837939143180847, 0.0633041262626648, -0.013926520012319088, -0.01398466806858778, -0.004828732460737228, 0.01847177930176258, 0.02560463920235634, 0.022328950464725494, 0.038571711629629135, 0.014362632296979427, -0.030237119644880295, -0.04291345179080963, 0.013383802026510239, 0.08474146574735641, -0.019751042127609253, 0.04054875299334526, -0.00790332444012165, 0.061869800090789795, 0.03938578814268112, -0.015196091495454311, 0.0008576875552535057, 0.023608213290572166, 0.06477721780538559, 0.005238193552941084, 0.03492775186896324, 0.01567096821963787, -0.02465488202869892, -0.022484011948108673, 0.028628351166844368, 0.04206060990691185, 0.007447829004377127, 0.010408546775579453, -0.06563005596399307, 0.04682876914739609, 0.06066806986927986, -0.009933669120073318, -0.0026772450655698776, -0.02488747611641884, 0.004368391819298267, -0.04376629367470741, -0.013829605653882027, -0.022561542689800262, 0.008935457095503807, 0.01983826421201229, 0.014808435924351215, 0.01948937401175499, -0.04019986465573311, 0.00622186902910471, -0.0005884487763978541, 0.010311633348464966, -0.038571711629629135, 0.009599316865205765, 0.007593200076371431, 0.04989124834537506, -0.018810978159308434, -0.002839575754478574, 0.0013519481290131807, 0.04473543167114258, -0.017289429903030396, 0.0704369843006134, -0.0005893573397770524, -0.030372800305485725, -0.061792269349098206, -0.06353671848773956, -0.013674544170498848, -0.00003128878597635776, 0.024209078401327133, -0.06047423928976059, -0.06338165700435638, 0.054620642215013504, 0.014256026595830917, -0.02128227986395359, 0.0015263931127265096, 0.019218016415834427, 0.00020836477051489055, 0.020739562809467316, -0.00037614686880260706, -0.05400039628148079, 0.02000301703810692, 0.06803352385759354, 0.012627874501049519, 0.032039716839790344, 0.002437383169308305, -0.006570758763700724, 0.000669916975311935, -0.0035664294846355915, 0.0338035486638546, -0.01811319775879383, -0.026069825515151024, -0.008145608939230442, -0.03550923243165016, 0.00446045957505703, -0.026806369423866272, -0.03678849712014198, -0.04372752830386162, -0.00855749286711216, -0.018219802528619766, 0.06663796305656433, -0.02940366044640541, -0.005180045031011105, -0.016581960022449493, 0.0015263931127265096, 0.007612582761794329, -0.005853596143424511, 0.022173888981342316, 0.029423043131828308, 0.005514397751539946, 0.0653974637389183, 0.02091400884091854, 0.0024446516763418913, -0.016795169562101364, -0.012753861956298351, 0.05221718177199364, -0.06384684145450592, -0.06407943367958069, 0.04392135515809059, -0.0010072982404381037, -0.08450887352228165, -0.0018813400529325008, -0.061869800090789795, -0.039734676480293274, -0.017657702788710594, 0.0161749217659235, -0.007442983333021402, 0.023627595975995064, 0.01826825924217701, 0.029209833592176437, -0.05120927840471268, -0.036846645176410675, -0.051170509308576584, -0.03775763511657715, -0.004322357475757599, 0.010941573418676853, 0.0269614327698946, -0.027562297880649567, 0.14637868106365204, 0.021883146837353706, 0.004981371574103832, 0.02294919826090336, 0.08381109684705734, 0.004605830647051334, -0.027368471026420593, -0.038067758083343506, 0.04376629367470741, 0.003963776398450136, -0.0038208283949643373, 0.024577351287007332, 0.04702259972691536, -0.03062477521598339, -0.053535208106040955, -0.041595421731472015, -0.0503176674246788, 0.006318782921880484, -0.02380204014480114, 0.04702259972691536, 0.048069268465042114, -0.020603884011507034, -0.061792269349098206, -0.026011675596237183, 0.027349088340997696, 0.0567915141582489, 0.006759740877896547, 0.031458236277103424, -0.0007674365187995136, 0.017599554732441902, -0.03831973671913147, -0.0560937337577343, -0.07059204578399658, 0.019886720925569534, -0.0805547907948494, 0.005097668152302504, -0.05256607010960579, 0.009080827236175537, -0.03293132409453392, 0.0016790323425084352, -0.039424553513526917, 0.0032296539284288883, -0.048495687544345856, 0.0359356552362442, -0.008761011995375156, 0.03558676317334175, -0.0013713309308514, 0.03862985968589783, -0.006028041243553162, -0.007161933463066816, -0.04989124834537506, -0.01089311670511961, 0.06578511744737625, -0.008383047766983509, 0.012569725513458252, 0.01085435040295124, -0.011707192286849022, -0.07287921011447906, -0.037137385457754135, 0.009696230292320251, 0.07532144337892532, 0.007549588568508625, 0.0036148864310234785, 0.06159844249486923, 0.03333836421370506, 0.06869253516197205, -0.0005142490845173597, 0.01415911316871643, -0.021611787378787994, 0.013267505913972855, -0.0007613794296048582, 0.048999641090631485, 0.03033403493463993, 0.033822931349277496, 0.009778606705367565, 0.015690350905060768, -0.005868133623152971, -0.027271555736660957, -0.02688390016555786, -0.02616673894226551, 0.004487111233174801, 0.01442078035324812, 0.016203995794057846, -0.010156570933759212, 0.01448861975222826, 0.05810954421758652, 0.024906858801841736, -0.007481749169528484, -0.015341461636126041, -0.021088453009724617, -0.011842872016131878, 0.04868951812386513, 0.00751082319766283, 0.029074154794216156, -0.017502641305327415, 0.019285855814814568, 0.01969289407134056, 0.00622186902910471, -0.005688842851668596, -0.015942327678203583, -0.028938474133610725, 0.026283035054802895, 0.05675274878740311, -0.01183318067342043, 0.0025415655691176653, 0.031884655356407166, 0.014033124782145023, -0.04287468641996384, 0.0424482636153698, 0.025643404573202133, -0.03816467151045799, -0.003144854214042425, 0.0043998886831104755, 0.018074432387948036, -0.025120068341493607, -0.022115739062428474, -0.03434626758098602, 0.02271660603582859, -0.005514397751539946, 0.020797710865736008, 0.02236771583557129, 0.04082011058926582, -0.026728838682174683, -0.02316240966320038, -0.004215752240270376, 0.012715096585452557, -0.03539293631911278, -0.025856614112854004, 0.044386543333530426, 0.0488833449780941, 0.05039520189166069, 0.048146799206733704, 0.028589583933353424, -0.06563005596399307, -0.09916225075721741, -0.028744647279381752, 0.04330110549926758, -0.00877554900944233, 0.008310362696647644, -0.018966039642691612, 0.002231441205367446, 0.03510219603776932, 0.050589028745889664, -0.023259323090314865, 0.016446279361844063, -0.027581680566072464, 0.011435833759605885, 0.0039056281093508005, 0.029287364333868027, 0.0004900206113234162, 0.021960677579045296, -0.03895936533808708, 0.0417117178440094, -0.01775461621582508, 0.020158080384135246, -0.051015447825193405, -0.013422567397356033, 0.047565314918756485, 0.02372450940310955, 0.02876402996480465, -0.027019580826163292, 0.006178257521241903, -0.012046391144394875, -0.0610944889485836, -0.022852284833788872, -0.01036009006202221, -0.0532250851392746, -0.015293004922568798, 0.001548198750242591, -0.02608920820057392, 0.005587083287537098, -0.007060173898935318, -0.0611332543194294, -0.01409127376973629, -0.001914048450998962, 0.008286134339869022, -0.0022132699377834797, 0.0044677285477519035, -0.013858679682016373, 0.011406759731471539, -0.018452396616339684, 0.0008661674801260233, -0.05004630982875824, -0.06097819283604622, -0.03758319094777107, 0.003961353562772274, -0.06718067824840546, -0.02186376415193081, -0.03725368157029152, -0.004986217245459557, -0.013034912757575512, 0.036342691630125046, 0.031148109585046768, 0.07830639183521271, 0.03746689483523369, -0.023743892088532448, 0.04768161103129387, 0.04089764505624771, -0.007161933463066816, 0.015418993309140205, -0.006541684735566378, -0.017483258619904518, 0.026438096538186073, 0.0560937337577343, -0.013655160553753376, -0.01963474601507187, -0.0030552090611308813, -0.07508885115385056, -0.059582632035017014, 0.03564491122961044, -0.06597894430160522, -0.02011931501328945, -0.027853040024638176, -0.029287364333868027, 0.03357095643877983, -0.023239940404891968, 0.013257814571261406, -0.011009412817656994, 0.021321047097444534, 0.04198307916522026, -0.005650077480822802, 0.006057115271687508, -0.04473543167114258, 0.06555252522230148, -0.0013047027168795466, -0.0359356552362442, 0.009836755692958832, -0.04221567139029503, 0.03853294625878334, 0.027581680566072464, 0.054465580731630325, 0.007065019570291042, -0.022832902148365974, 0.03333836421370506, 0.06295523792505264, -0.02762044593691826, -0.05155816674232483, 0.0010678694816306233, -0.002732970518991351, -0.02531389705836773, -0.005732453893870115, -0.06485474854707718, 0.07656193524599075, -0.026980815455317497, -0.012240218929946423, 0.0266125425696373, 0.029093537479639053, -0.01232744101434946, 0.044464074075222015, -0.025585254654288292, 0.0029461809899657965, 0.04198307916522026, -0.028725264593958855, -0.028201930224895477, -0.02294919826090336, -0.00609588110819459, -0.011203240603208542, -0.022464629262685776, -0.018888508901000023, -0.11924279481172562, -0.019741350784897804, -0.029752550646662712, -0.009264963679015636, 0.0316520631313324, 0.015942327678203583, -0.033609721809625626, 0.04632481932640076, 0.022852284833788872, -0.02234833315014839, 0.031516384333372116, 0.06954537332057953, -0.009875521063804626, -0.012414664030075073, -0.018820669502019882, 0.027930570766329765, 0.04609222710132599, 0.00247251451946795, 0.021262897178530693, 0.062296219170093536, 0.02006116695702076, 0.051286809146404266, -0.0004018896142952144, 0.020371289923787117, -0.02436414174735546, -0.006672518327832222, -0.028279460966587067, -0.007050482556223869, 0.043611232191324234, 0.0352184921503067, -0.021049687638878822, 0.02438352443277836, 0.019218016415834427, 0.008635023608803749, -0.04140159487724304, -0.025294514372944832, 0.01947968266904354, 0.003881399519741535, -9.606206958778785e-7, 0.007220081519335508, -0.009410334751009941, -0.018733447417616844, 0.03128378838300705, 0.017425110563635826, 0.034191206097602844, 0.008460578508675098, 0.002548834076151252 ]
730,101
mmengine.fileio.backends.local_backend
copytree_from_local
Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. Same as :meth:`copytree`. Args: src (str or Path): A local directory to be copied. dst (str or Path): Copy directory to dst. Returns: str: The destination directory. Examples: >>> backend = LocalBackend() >>> src = '/path/of/dir1' >>> dst = '/path/of/dir2' >>> backend.copytree_from_local(src, dst) '/path/of/dir2'
def copytree_from_local( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. Same as :meth:`copytree`. Args: src (str or Path): A local directory to be copied. dst (str or Path): Copy directory to dst. Returns: str: The destination directory. Examples: >>> backend = LocalBackend() >>> src = '/path/of/dir1' >>> dst = '/path/of/dir2' >>> backend.copytree_from_local(src, dst) '/path/of/dir2' """ return self.copytree(src, dst)
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> str
[ -0.023909160867333412, -0.0028553486336022615, -0.01667841710150242, -0.020971963182091713, -0.005523614585399628, -0.00851693656295538, 0.030213844031095505, 0.03543344885110855, 0.0636080950498581, -0.047069989144802094, -0.010719834826886654, -0.04534883052110672, -0.03384324908256531, -0.008142771199345589, -0.03210337832570076, 0.021420961245894432, -0.013647678308188915, -0.012899347580969334, -0.007123171351850033, 0.003615371882915497, -0.011486873961985111, -0.034254830330610275, 0.10588876903057098, 0.04269225522875786, -0.04620940983295441, -0.03339425101876259, -0.005785530433058739, -0.021795125678181648, -0.03322587534785271, 0.005701343063265085, 0.060801856219768524, 0.010083753615617752, 0.02405882626771927, -0.014742111787199974, -0.03947443515062332, -0.02664056606590748, -0.017903808504343033, -0.017417393624782562, -0.06061477214097977, -0.12242687493562698, -0.022356374189257622, -0.018998241052031517, 0.02054167352616787, 0.05328113213181496, 0.09526247531175613, -0.020466839894652367, 0.05601254105567932, -0.08171769231557846, 0.05874394625425339, -0.027314065024256706, -0.0020555704832077026, 0.08186735957860947, -0.0625978484749794, -0.006370163522660732, 0.008984643034636974, 0.029091348871588707, 0.006262591108679771, -0.05649895593523979, -0.051821887493133545, 0.005397333763539791, -0.023553702980279922, 0.0014533981448039412, 0.010008920915424824, 0.022038333117961884, -0.05470295995473862, -0.034572869539260864, -0.0779760405421257, 0.0027197138406336308, 0.0034844139590859413, 0.014152800664305687, -0.09339164942502975, 0.020261049270629883, 0.00337918009608984, 0.019943008199334145, -0.014190217480063438, 0.05047489330172539, 0.043365754187107086, -0.02445169910788536, 0.002838979009538889, 0.009298007003962994, -0.042841922491788864, -0.04725707322359085, -0.018530534580349922, -0.035321202129125595, -0.029278431087732315, -0.014021843671798706, -0.031860172748565674, -0.020653922110795975, 0.019886882975697517, -0.019269511103630066, -0.007506690453737974, 0.023553702980279922, -0.011786205694079399, 0.005715374369174242, 0.021813834086060524, -0.006917380262166262, 0.006599339656531811, 0.020242340862751007, -0.04650874063372612, 0.017314497381448746, -0.023460162803530693, 0.03258979320526123, -0.07614263147115707, -0.010457918979227543, 0.048978231847286224, 0.024245908483862877, -0.0005507245077751577, 0.013600907288491726, 0.044039253145456314, 0.0015679863281548023, 0.02102808840572834, 0.004377733450382948, 0.04171942546963692, 0.006922057364135981, 0.002820270601660013, 0.013423178344964981, -0.023404037579894066, -0.03739781677722931, -0.03242142125964165, 0.003365148790180683, 0.00626726821064949, 0.031766630709171295, 0.014283758588135242, -0.0425800085067749, 0.0064683821983635426, 0.030176429077982903, 0.08860233426094055, -0.0324588380753994, -0.06282234936952591, -0.0009365824516862631, 0.0015983872581273317, 0.03429224714636803, -0.015106922015547752, 0.0765916258096695, 0.08104419708251953, 0.004005906637758017, -0.019587552174925804, 0.03077509254217148, -0.007249452173709869, 0.035283785313367844, 0.06914573907852173, -0.060801856219768524, 0.018296681344509125, 0.024302033707499504, 0.0236472450196743, -0.014770173467695713, -0.02748243883252144, -0.008161479607224464, 0.005981967318803072, 0.0253871139138937, 0.002249668585136533, -0.0028600257355719805, -0.018932761624455452, 0.0743466392159462, -0.03575149178504944, 0.005776176229119301, -0.027856603264808655, -0.014236988499760628, 0.06409450620412827, -0.026266401633620262, -0.06933282315731049, -0.0336935818195343, 0.06046510487794876, -0.05010072886943817, 0.03507799282670021, 0.012665494345128536, 0.006837869994342327, -0.0330762080848217, -0.061961766332387924, -0.001532908296212554, -0.009237204678356647, -0.010036983527243137, 0.0021491118241101503, -0.005841655191034079, -0.029858388006687164, -0.06630208343267441, 0.015340776182711124, 0.019550135359168053, -0.013058368116617203, -0.005762144923210144, 0.034479327499866486, 0.01280580647289753, 0.03217821195721626, 0.008460812270641327, 0.004641987849026918, -0.013151909224689007, -0.0015212156577035785, 0.025910943746566772, 0.012356807477772236, 0.02405882626771927, 0.022824080660939217, 0.02983967959880829, -0.008881747722625732, -0.023815618827939034, 0.031991131603717804, -0.002710359636694193, 0.04306642338633537, -0.032702043652534485, -0.017548350617289543, 0.06895865499973297, 0.00791359506547451, -0.02018621563911438, 0.060539938509464264, 0.0022274525836110115, -0.015265942551195621, 0.029110057279467583, -0.06678850203752518, 0.08119386434555054, -0.0011599123245105147, -0.013329637236893177, 0.0035124763380736113, 0.025948360562324524, 0.00986860878765583, -0.01703387312591076, -0.031149258837103844, -0.005748113617300987, -0.09601080417633057, 0.03049446828663349, 0.036125656217336655, 0.013067721389234066, 0.01173943467438221, -0.01358219888061285, -0.016388438642024994, -0.01380669791251421, -0.02271183207631111, -0.06850966066122055, -0.029690014198422432, -0.025200029835104942, 0.047855738550424576, -0.04362766817212105, 0.033151041716337204, -0.0554887093603611, 0.01042985636740923, -0.038127440959215164, 0.0159207321703434, -0.041906509548425674, 0.04407666623592377, -0.056760869920253754, 0.017529642209410667, -0.010729189030826092, -0.02632252685725689, -0.017595121636986732, 0.04175684228539467, 0.018249910324811935, 0.029315847903490067, -0.019755925983190536, -0.018745679408311844, -0.03857643902301788, 0.0720268115401268, 0.014611153863370419, -0.07030565291643143, 0.03290783613920212, -0.09698363393545151, 0.015453025698661804, 0.029802262783050537, 0.018689554184675217, 0.007520721759647131, -0.008283083327114582, -0.02755727246403694, 0.05698537081480026, 0.0019327974878251553, -0.08239118754863739, -0.011982642114162445, -0.003014368936419487, -0.042617421597242355, -0.041906509548425674, -0.029989344999194145, -0.01840893179178238, 0.028735892847180367, -0.0017609152710065246, 0.1109025850892067, 0.01751093380153179, 0.028155935928225517, 0.013226741924881935, 0.06072702258825302, -0.019054366275668144, -0.07737737894058228, 0.08171769231557846, 0.01689356192946434, -0.018885992467403412, -0.027239231392741203, -0.022169291973114014, -0.057247284799814224, -0.06791099160909653, -0.026116736233234406, 0.01632295921444893, -0.0011318499455228448, -0.09241881966590881, 0.0037837461568415165, -0.037584900856018066, 0.028436560183763504, 0.021065503358840942, -0.0324588380753994, -0.018436992540955544, -0.005219605285674334, -0.047556404024362564, -0.01133720763027668, -0.008142771199345589, 0.0035662625450640917, 0.05141030624508858, -0.056087374687194824, -0.01102852076292038, 0.015265942551195621, 0.03397420421242714, -0.007104462943971157, -0.026472192257642746, 0.05118580907583237, -0.006014706566929817, -0.032795585691928864, 0.0049155959859490395, -0.05900586023926735, -0.04669582471251488, 0.0013329637004062533, -0.04115818068385124, -0.005645218305289745, -0.011702018789947033, 0.008166156709194183, -0.013722511008381844, 0.0006822669529356062, -0.03232787922024727, -0.04935239627957344, 0.05141030624508858, -0.04082142934203148, 0.04815506935119629, -0.026303818449378014, -0.003638757159933448, 0.07105398178100586, 0.058482032269239426, 0.05646153911948204, 0.009573953226208687, -0.003430627752095461, 0.001038308604620397, 0.015612045302987099, 0.001509523019194603, 0.040522098541259766, 0.051110975444316864, -0.00528976134955883, -0.023946577683091164, -0.026565734297037125, -0.04317867010831833, 0.0993034616112709, -0.03217821195721626, 0.03831452131271362, -0.018016057088971138, 0.03432966396212578, 0.06061477214097977, -0.00018225940584670752, 0.0024484440218657255, 0.0459849089384079, 0.05732211843132973, -0.016416501253843307, 0.02735147997736931, 0.010373732075095177, -0.029671305790543556, -0.025237446650862694, 0.039549268782138824, 0.037192028015851974, 0.02112162858247757, 0.03481607884168625, -0.036836568266153336, 0.047369323670864105, 0.042131006717681885, -0.017286434769630432, -0.040971096605062485, -0.0044057960622012615, -0.01737997680902481, -0.006889318116009235, -0.029465515166521072, -0.020298466086387634, 0.00452272268012166, 0.012122954241931438, 0.0018123630434274673, 0.04774348810315132, -0.03215950354933739, 0.0012394224759191275, 0.005004460457712412, 0.017641892656683922, -0.049726564437150955, -0.007109140045940876, 0.03339425101876259, 0.05410429835319519, 0.004611586686223745, 0.019269511103630066, 0.012702910229563713, 0.04871631786227226, 0.007993105798959732, 0.073111891746521, -0.019643675535917282, -0.03569536656141281, -0.041906509548425674, -0.037322983145713806, -0.011608477681875229, 0.05668603628873825, 0.04770607128739357, -0.036836568266153336, -0.06169985234737396, 0.026603149250149727, -0.008928518742322922, 0.014424070715904236, 0.009625401347875595, 0.026341235265135765, -0.013647678308188915, -0.01102852076292038, -0.022693123668432236, -0.03947443515062332, 0.028473976999521255, 0.046620991080999374, 0.012066829949617386, -0.004153234418481588, 0.030120303854346275, 0.008442103862762451, 0.024114951491355896, -0.005794884636998177, 0.048042818903923035, -0.017267726361751556, -0.010869501158595085, 0.010055691003799438, -0.05358046665787697, 0.025817403569817543, -0.016192002221941948, -0.02280537225306034, -0.02085971273481846, -0.006183080840855837, -0.04516174644231796, 0.06342101097106934, -0.028604933992028236, -0.019531426951289177, -0.005416042171418667, -0.01522852573543787, 0.03333812579512596, -0.008096001110970974, -0.002843655878677964, 0.05002589523792267, -0.0054394276812672615, 0.06046510487794876, 0.043328337371349335, 0.030831217765808105, -0.006402903236448765, -0.01317997183650732, 0.04445083439350128, -0.04325350373983383, -0.073111891746521, 0.045012082904577255, -0.013872177340090275, -0.08486068248748779, -0.006192435044795275, -0.0802958682179451, -0.015892669558525085, -0.037641026079654694, 0.031860172748565674, -0.014433424919843674, 0.013133200816810131, 0.000946521176956594, 0.01151493564248085, -0.06682591885328293, -0.012880639173090458, -0.03558311611413956, -0.02231895737349987, 0.005308469757437706, 0.0530940517783165, 0.018567951396107674, -0.005958581808954477, 0.14682245254516602, 0.011702018789947033, 0.018296681344509125, 0.01009310781955719, 0.06903348863124847, 0.011262373998761177, -0.03537732735276222, -0.04220584034919739, 0.025200029835104942, 0.011655247770249844, -0.015462379902601242, 0.04493724927306175, 0.06850966066122055, -0.03500315919518471, -0.05054972693324089, -0.04171942546963692, -0.06117602065205574, -0.01903565786778927, -0.03636886179447174, 0.022262834012508392, 0.06469317525625229, 0.006650787312537432, -0.048753734678030014, -0.04201875999569893, 0.02173900231719017, 0.06671366840600967, 0.005406687967479229, 0.04564816132187843, -0.012375515885651112, 0.040484681725502014, -0.047369323670864105, -0.06046510487794876, -0.07767670601606369, 0.03309491649270058, -0.053954631090164185, 0.016725188121199608, -0.04108334705233574, -0.0028179320506751537, -0.0032154826913028955, 0.01915726065635681, -0.023927869275212288, 0.0236472450196743, -0.04669582471251488, 0.036443695425987244, 0.011842330917716026, 0.020878421142697334, -0.0038655949756503105, 0.05743436887860298, -0.007216712459921837, -0.020485548302531242, -0.02894168347120285, -0.018483763560652733, 0.04078401252627373, 0.02334791235625744, -0.011131417006254196, 0.008329854346811771, -0.007632971275597811, -0.06776133179664612, -0.05148513987660408, 0.0024203816428780556, 0.08471101522445679, -0.01827797293663025, -0.01973721757531166, 0.04980139806866646, 0.005771499127149582, 0.10760992765426636, -0.02441428415477276, 0.024732323363423347, -0.01324545033276081, 0.02027975767850876, 0.012459702789783478, 0.049240149557590485, 0.06342101097106934, 0.06454350799322128, 0.01144945714622736, -0.035508282482624054, -0.016107814386487007, -0.039324767887592316, -0.03036351129412651, -0.03988601639866829, 0.028997808694839478, 0.006473058834671974, 0.01680001989006996, -0.034030329436063766, 0.014424070715904236, 0.06514216959476471, 0.01233809906989336, -0.01649133302271366, -0.014620508067309856, -0.040222764015197754, -0.011430748738348484, 0.03842677175998688, 0.014302466996014118, -0.008255020715296268, -0.01960626058280468, 0.0371733196079731, 0.0033277322072535753, 0.004679404199123383, -0.003157019382342696, 0.01827797293663025, -0.003928735386580229, 0.060577355325222015, 0.029858388006687164, -0.02338532917201519, 0.003383857198059559, 0.012712264433503151, 0.011131417006254196, -0.042617421597242355, 0.03139246627688408, -0.005378625821322203, -0.014367946423590183, -0.004221051931381226, -0.0019094120943918824, 0.0162668339908123, -0.015986211597919464, -0.013049013912677765, -0.02325437031686306, 0.03429224714636803, -0.02516261301934719, 0.019755925983190536, 0.021439669653773308, 0.051110975444316864, -0.044525668025016785, -0.01983075961470604, 0.013535428792238235, 0.005055908113718033, -0.04460049793124199, -0.007661033887416124, 0.04085884615778923, 0.021664168685674667, 0.05047489330172539, 0.04647132381796837, 0.024040117859840393, -0.10184778273105621, -0.07539430260658264, -0.023404037579894066, 0.02819335274398327, -0.015555921010673046, 0.001394934835843742, -0.02742631360888481, -0.01608910597860813, 0.028473976999521255, 0.03853902220726013, -0.04325350373983383, -0.009962149895727634, -0.015930086374282837, 0.001703621237538755, 0.01264678593724966, 0.022973747923970222, -0.012581306509673595, 0.000964644830673933, -0.008035198785364628, 0.0851600170135498, -0.023216955363750458, 0.030737675726413727, -0.045236580073833466, 0.012450349517166615, 0.05328113213181496, 0.014751465059816837, 0.025424528867006302, -0.034441910684108734, 0.021813834086060524, -0.004772945772856474, -0.045236580073833466, 0.0036410957109183073, -0.022337665781378746, -0.040035683661699295, 0.026827650144696236, -0.009616047143936157, -0.02293633110821247, -0.011776851490139961, 0.022075749933719635, -0.030419636517763138, -0.028361726552248, -0.016612937673926353, -0.00009777990635484457, 0.012010704725980759, 0.006697558332234621, -0.05152255669236183, -0.001611249172128737, -0.017174186185002327, -0.019587552174925804, -0.04650874063372612, -0.07969719916582108, -0.010757251642644405, -0.011318499222397804, -0.04796798527240753, -0.01680001989006996, -0.05646153911948204, -0.0013399793533608317, 0.0034727214369922876, 0.040522098541259766, 0.031673088669776917, 0.08141835778951645, 0.043814752250909805, -0.019550135359168053, 0.05365530028939247, 0.03419870510697365, -0.028530100360512733, 0.0010634477948769927, 0.02664056606590748, 0.0059913210570812225, 0.034703828394412994, 0.06850966066122055, -0.005607801955193281, -0.015303359366953373, 0.006510475650429726, -0.07603038102388382, -0.050849057734012604, 0.03401162102818489, -0.04774348810315132, -0.031055716797709465, -0.037771984934806824, -0.013413825072348118, 0.04456308111548424, -0.02347886934876442, 0.011056583374738693, -0.002511584432795644, 0.0010675402591004968, 0.0673871636390686, -0.013189325109124184, 0.019232094287872314, -0.020073967054486275, 0.05545129254460335, 0.0025326311588287354, -0.037322983145713806, 0.036836568266153336, -0.006430965382605791, 0.05073681101202965, 0.022693123668432236, 0.07041790336370468, 0.015088214538991451, -0.033020082861185074, 0.032346587628126144, 0.047107405960559845, -0.05885619670152664, -0.06098893657326698, 0.023553702980279922, 0.014845007099211216, -0.0036598038859665394, 0.003881964599713683, -0.08792883902788162, 0.06420675665140152, -0.03459157794713974, -0.00045162916649132967, 0.020242340862751007, 0.005654572509229183, -0.013086429797112942, 0.040746595710515976, -0.027014732360839844, 0.004454905167222023, 0.023179538547992706, -0.0037603608798235655, 0.017576413229107857, -0.008554353378713131, -0.016977747902274132, -0.0072447750717401505, -0.007787314709275961, -0.011842330917716026, -0.12609370052814484, -0.012029413133859634, -0.028623642399907112, 0.014648569747805595, 0.02200091816484928, 0.019091783091425896, -0.03853902220726013, 0.002018153900280595, 0.0241897851228714, -0.030419636517763138, 0.02228154055774212, 0.04826731979846954, -0.007539430167526007, -0.008301791734993458, -0.016351021826267242, 0.01689356192946434, 0.047331906855106354, -0.025798695161938667, 0.037865523248910904, 0.03618178144097328, 0.007632971275597811, 0.030924759805202484, 0.024432992562651634, 0.0018088552169501781, -0.021888667717576027, -0.008820946328341961, -0.03762231767177582, -0.01791316270828247, 0.043590251356363297, 0.04400183632969856, -0.017538996413350105, 0.024208491668105125, -0.014396008104085922, 0.0005226621287874877, -0.04344058781862259, -0.028155935928225517, 0.020242340862751007, -0.004656019154936075, 0.01216037105768919, 0.005677958019077778, -0.03365616500377655, -0.002441428368911147, 0.0289042666554451, -0.0028506715316325426, 0.02574256993830204, -0.0005954489461146295, -0.0005694327410310507 ]
730,102
mmengine.fileio.backends.local_backend
copytree_to_local
Recursively copy an entire directory tree rooted at src to a local directory named dst and return the destination directory. Args: src (str or Path): A directory to be copied. dst (str or Path): Copy directory to local dst. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. Returns: str: The destination directory. Examples: >>> backend = LocalBackend() >>> src = '/path/of/dir1' >>> dst = '/path/of/dir2' >>> backend.copytree_from_local(src, dst) '/path/of/dir2'
def copytree_to_local( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Recursively copy an entire directory tree rooted at src to a local directory named dst and return the destination directory. Args: src (str or Path): A directory to be copied. dst (str or Path): Copy directory to local dst. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. Returns: str: The destination directory. Examples: >>> backend = LocalBackend() >>> src = '/path/of/dir1' >>> dst = '/path/of/dir2' >>> backend.copytree_from_local(src, dst) '/path/of/dir2' """ return self.copytree(src, dst)
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> str
[ -0.03477182239294052, -0.0019218961242586374, -0.010745784267783165, -0.015225531533360481, -0.00810376089066267, 0.00014992893557064235, 0.03415457159280777, 0.0307503379881382, 0.0745190680027008, -0.06572791188955307, -0.003062875708565116, -0.04444209486246109, -0.04721037298440933, -0.013270902447402477, -0.037184715270996094, 0.016880888491868973, -0.011204046197235584, -0.008258074522018433, 0.0028290683403611183, 0.0202383603900671, -0.011045057326555252, -0.035220734775066376, 0.10429676622152328, 0.03185390681028366, -0.04511545971035957, -0.04578882455825806, -0.003039495088160038, -0.024446891620755196, -0.03155463561415672, 0.022277159616351128, 0.05652525648474693, 0.008688279427587986, 0.02225845493376255, -0.022987933829426765, -0.02788853645324707, -0.015178770758211613, -0.02525118924677372, -0.016525501385331154, -0.0566374808549881, -0.13646864891052246, -0.02899210713803768, -0.04081340506672859, 0.03235893324017525, 0.05293397605419159, 0.09269992262125015, -0.02699071541428566, 0.048781558871269226, -0.0793074369430542, 0.05648784711956978, -0.03464088961482048, -0.006714946124702692, 0.09539338201284409, -0.050539787858724594, 0.006588689982891083, 0.0061210752464830875, 0.0333876833319664, 0.004858515691012144, -0.05933094397187233, -0.05244765430688858, 0.0024643291253596544, -0.014598928391933441, 0.004549890290945768, 0.0008346920949406922, 0.028262628242373466, -0.05809643864631653, -0.05012828856706619, -0.07612766325473785, -0.0024222438223659992, -0.003974724095314741, 0.015608975663781166, -0.10541903972625732, 0.011213398538529873, -0.0013572514289990067, 0.021061362698674202, -0.007921392098069191, 0.0769132524728775, 0.04620032384991646, -0.03344379737973213, 0.002613965654745698, 0.02607419155538082, -0.04728519171476364, -0.03250856697559357, -0.02573750913143158, -0.019714633002877235, -0.01478597428649664, -0.021061362698674202, -0.032097067683935165, -0.015178770758211613, 0.003923286683857441, -0.013345721177756786, -0.022295864298939705, 0.01856430061161518, 0.009478548541665077, 0.008323539979755878, 0.03235893324017525, -0.004947362467646599, 0.012644299305975437, 0.021173590794205666, -0.03931703791022301, 0.020705975592136383, -0.016796717420220375, 0.03548259660601616, -0.055402979254722595, -0.017572958022356033, 0.04994124174118042, 0.005218578968197107, 0.0030090999789536, 0.010783192701637745, 0.04829523712396622, 0.000031052531994646415, 0.018751345574855804, -0.01064290851354599, 0.03535166382789612, 0.0029249293729662895, 0.005167141556739807, 0.008225341327488422, -0.032733023166656494, -0.02886117435991764, -0.02560657635331154, 0.0034533338621258736, -0.0014507743762806058, 0.0366048738360405, 0.020855611190199852, -0.039541490375995636, 0.009679622948169708, 0.024259846657514572, 0.09659047424793243, -0.023530367761850357, -0.06105176359415054, -0.023885754868388176, -0.009123161435127258, 0.017750650644302368, -0.033069707453250885, 0.08244980871677399, 0.07870889455080032, 0.0034042345359921455, -0.015216180123388767, 0.020967839285731316, 0.0033855298534035683, 0.025419531390070915, 0.057423073798418045, -0.06441859155893326, 0.00983861181885004, 0.02079949900507927, 0.024989325553178787, -0.023287208750844002, -0.028599310666322708, -0.007276083342730999, 0.011746479198336601, 0.017376558855175972, -0.002656050957739353, -0.0012917853891849518, -0.03553871065378189, 0.06685018539428711, -0.036006323993206024, 0.017554253339767456, -0.02886117435991764, -0.012298264540731907, 0.06408190727233887, -0.009263445623219013, -0.06887028366327286, -0.036754507571458817, 0.06266035884618759, -0.054018840193748474, 0.03950408473610878, 0.013897506520152092, 0.00035597162786871195, -0.015496748499572277, -0.05764752998948097, -0.004909953568130732, -0.004966067150235176, -0.019490176811814308, -0.008599433116614819, -0.008908058516681194, -0.03542648255825043, -0.062435902655124664, 0.030769042670726776, 0.020257065072655678, -0.02162249945104122, 0.005798421334475279, 0.047547053545713425, 0.008267426863312721, 0.022164933383464813, 0.014178074896335602, 0.008197284303605556, -0.029609357938170433, -0.0024386101868003607, 0.039541490375995636, 0.0046293847262859344, 0.02427855134010315, 0.02824392355978489, 0.01606723852455616, -0.005863887257874012, -0.01321478933095932, 0.018236970528960228, -0.0051577892154455185, 0.04384354501962662, -0.0457514151930809, -0.008510585874319077, 0.0683465525507927, 0.011727774515748024, -0.026279941201210022, 0.0801304429769516, 0.01221409346908331, -0.003855482442304492, 0.012728470377624035, -0.05656266584992409, 0.07870889455080032, -0.007851249538362026, -0.009969543665647507, -0.00001342565428785747, 0.019808154553174973, 0.011877411045134068, -0.02553175762295723, -0.026747556403279305, -0.01169036515057087, -0.07504279166460037, 0.03879331052303314, 0.030207904055714607, 0.028823764994740486, -0.0034463198389858007, -0.028898583725094795, -0.008061676286160946, -0.004643413238227367, -0.018059276044368744, -0.0643811821937561, -0.015449986793100834, -0.008159874938428402, 0.05431811511516571, -0.04676146060228348, 0.029609357938170433, -0.04885637387633324, 0.009763793088495731, -0.043506864458322525, 0.02051892876625061, -0.04631255194544792, 0.05042755976319313, -0.055477797985076904, 0.007612765766680241, -0.010839306749403477, -0.014206131920218468, -0.01766647957265377, 0.04605068638920784, 0.023960573598742485, 0.01690894551575184, -0.02762667089700699, -0.008197284303605556, -0.04567659646272659, 0.06984291970729828, 0.010717727243900299, -0.06449341028928757, 0.04182345047593117, -0.08798636496067047, 0.019658518955111504, 0.029927335679531097, 0.012906163930892944, 0.011662309058010578, -0.009660918265581131, -0.025774918496608734, 0.051512427628040314, -0.004767330829054117, -0.07508020102977753, 0.010764488950371742, -0.009197979234158993, -0.04028967395424843, -0.04500323161482811, -0.03972853720188141, -0.028337445110082626, 0.039129991084337234, 0.002059842459857464, 0.10706504434347153, 0.011727774515748024, 0.03492145985364914, 0.020705975592136383, 0.05948057770729065, -0.023885754868388176, -0.07975634932518005, 0.09082946181297302, 0.023455549031496048, -0.005400948692113161, -0.013570176437497139, -0.026036782190203667, -0.068421371281147, -0.07766143232584, -0.024858392775058746, 0.00686925882473588, -0.0031283418647944927, -0.07530465722084045, -0.002162717515602708, -0.04320758953690529, 0.026672737672924995, 0.02420373260974884, -0.04257163405418396, -0.024166323244571686, -0.004512480925768614, -0.047472234815359116, -0.01592695340514183, -0.01185870636254549, 0.011783888563513756, 0.046574417501688004, -0.035931508988142014, -0.006298768799751997, 0.010970238596200943, 0.03727823868393898, 0.0014870144659653306, -0.014926258474588394, 0.04077599570155144, -0.004706541076302528, -0.0497916042804718, 0.015627680346369743, -0.04743482545018196, -0.06206181272864342, -0.015515453182160854, -0.05207356438040733, -0.005073618609458208, 0.0009498422150500119, 0.004005119204521179, -0.027738898992538452, -0.021603794768452644, -0.039204809814691544, -0.05147501826286316, 0.044068001210689545, -0.04118749499320984, 0.05592670664191246, -0.01564638502895832, -0.006827173288911581, 0.06572791188955307, 0.054841842502355576, 0.06527899950742722, -0.0008931439369916916, -0.011643604375422001, -0.003967709839344025, 0.016085943207144737, -0.008005562238395214, 0.03596891462802887, 0.053869202733039856, -0.01140979677438736, -0.03492145985364914, -0.016095295548439026, -0.022295864298939705, 0.09569265693426132, -0.022987933829426765, 0.03546389192342758, -0.010352987796068192, 0.02977769821882248, 0.06845878064632416, -0.01116663683205843, -0.007757726591080427, 0.050390150398015976, 0.06688759475946426, -0.015188123099505901, 0.026747556403279305, -0.006163160782307386, -0.03101220168173313, -0.01192417275160551, 0.039691127836704254, 0.03336897864937782, 0.00488657271489501, 0.04126231372356415, -0.0481455996632576, 0.05147501826286316, 0.01656290888786316, -0.00803361926227808, -0.04073858633637428, 0.002497062087059021, -0.02113618142902851, 0.008417063392698765, -0.02880506031215191, -0.025438236072659492, 0.006808469071984291, 0.013944268226623535, -0.006579337641596794, 0.05633820965886116, -0.03768973797559738, -0.008823887445032597, 0.010137884877622128, 0.01001630537211895, -0.039129991084337234, -0.014065847732126713, 0.031143134459853172, 0.06733650714159012, -0.017226923257112503, 0.014196779578924179, 0.013467300683259964, 0.04556436836719513, -0.004776683170348406, 0.07373347133398056, -0.015496748499572277, -0.025494348257780075, -0.04530250281095505, -0.029459720477461815, -0.01088606845587492, 0.05461738631129265, 0.029740288853645325, -0.0248958021402359, -0.05854535102844238, 0.029758993536233902, -0.007570680696517229, 0.00800088606774807, 0.004386225249618292, 0.008739717304706573, -0.017610367387533188, -0.0004109163419343531, -0.01746072992682457, -0.03804512694478035, 0.034322913736104965, 0.046424780040979385, 0.018807459622621536, 0.005246635992079973, 0.036960259079933167, 0.004652765579521656, 0.01941535808146, -0.005302749574184418, 0.02538212202489376, -0.012943572364747524, -0.007168531883507967, 0.013373778201639652, -0.04275868088006973, 0.006551280617713928, -0.0226699560880661, -0.019845563918352127, -0.016488092020154, 0.0064764623530209064, -0.04242199659347534, 0.06550345569849014, -0.0366048738360405, -0.010343635454773903, -0.017629070207476616, -0.016946353018283844, 0.046349961310625076, -0.0073134927079081535, -0.010783192701637745, 0.05884462222456932, 0.008730364963412285, 0.05648784711956978, 0.05244765430688858, 0.032976184040308, 0.0028290683403611183, -0.008814535103738308, 0.04096303880214691, -0.03248986229300499, -0.06808468699455261, 0.03248986229300499, -0.01995779201388359, -0.0914280116558075, -0.002562528010457754, -0.08050452917814255, -0.024877097457647324, -0.027233876287937164, 0.042683862149715424, -0.012840697541832924, 0.02121099829673767, 0.013869449496269226, 0.0017769355326890945, -0.053532522171735764, -0.02225845493376255, -0.038288284093141556, -0.021996591240167618, 0.0029412959702312946, 0.05813384801149368, 0.019808154553174973, -0.011353682726621628, 0.1425289362668991, 0.004346477799117565, 0.02998344972729683, 0.004517157096415758, 0.07983116805553436, 0.010895420797169209, -0.043432045727968216, -0.04829523712396622, 0.030899973586201668, -0.002665403299033642, -0.012298264540731907, 0.04126231372356415, 0.0680098682641983, -0.022782184183597565, -0.06572791188955307, -0.03909258171916008, -0.0534202940762043, -0.01793769747018814, -0.0356135293841362, 0.019808154553174973, 0.08110307902097702, 0.012887459248304367, -0.049080830067396164, -0.042459405958652496, 0.028000762686133385, 0.062136631458997726, 0.013729165308177471, 0.03510850667953491, -0.017713241279125214, 0.023530367761850357, -0.030376246199011803, -0.05529075115919113, -0.07175078988075256, 0.03456607088446617, -0.06101435422897339, 0.003848468419164419, -0.04777150973677635, 0.0022807903587818146, -0.010231408290565014, 0.017198866233229637, -0.018265027552843094, 0.021323226392269135, -0.042122725397348404, 0.026167714968323708, 0.0008931439369916916, 0.0262986458837986, -0.01286875456571579, 0.06516677141189575, -0.004178136587142944, -0.018068628385663033, -0.021603794768452644, -0.02192177250981331, 0.03555741533637047, 0.018321141600608826, 0.010147237218916416, 0.006962781772017479, -0.003551532980054617, -0.06621423363685608, -0.04848228394985199, 0.0031376942060887814, 0.06812209635972977, -0.016085943207144737, -0.0030698899645358324, 0.049492333084344864, 0.016085943207144737, 0.0963660180568695, -0.024035392329096794, 0.013542119413614273, -0.0050502377562224865, 0.027738898992538452, 0.01541257742792368, 0.0372595340013504, 0.05682452768087387, 0.05211097374558449, 0.023268504068255424, -0.03247115761041641, -0.0048024021089077, -0.04444209486246109, -0.02512025646865368, -0.02998344972729683, 0.010268816724419594, 0.007051628548651934, 0.019172199070453644, -0.03707248717546463, -0.003991090692579746, 0.07582838833332062, 0.010876716114580631, -0.009866668842732906, -0.007930743508040905, -0.033350273966789246, -0.009679622948169708, 0.05308360978960991, 0.0026583890430629253, 0.009441139176487923, -0.011493966914713383, 0.03834439814090729, 0.007168531883507967, 0.009151218459010124, -0.005344835110008717, 0.008342244662344456, -0.00356556149199605, 0.058732397854328156, 0.0287302415817976, -0.03679191693663597, 0.005962086375802755, 0.023904459550976753, 0.007851249538362026, -0.05117574334144592, 0.03821346536278725, -0.002560189925134182, -0.03580057621002197, -0.0025040763430297375, -0.007785783614963293, -0.0033130496740341187, -0.009319559670984745, -0.019733337685465813, -0.023193685337901115, 0.033967524766922, -0.01367305126041174, 0.02253902517259121, 0.02141674980521202, 0.05858276039361954, -0.03636171296238899, -0.015571567229926586, 0.015150713734328747, 0.008833239786326885, -0.04750964418053627, -0.024989325553178787, 0.04163640737533569, 0.031966134905815125, 0.05514111742377281, 0.03890553489327431, 0.029964745044708252, -0.08761227130889893, -0.07751180231571198, -0.03011438064277172, 0.047547053545713425, -0.019284427165985107, -0.006579337641596794, -0.028075581416487694, -0.021454159170389175, 0.022071409970521927, 0.04335722699761391, -0.060266170650720596, 0.0014706479851156473, -0.027738898992538452, 0.0015419592382386327, 0.0076408227905631065, 0.04178604111075401, -0.013747869990766048, 0.007276083342730999, -0.019770745187997818, 0.06733650714159012, -0.030133085325360298, 0.031105725094676018, -0.039204809814691544, 0.0016471724957227707, 0.05671229958534241, 0.027252579107880592, 0.028075581416487694, -0.024166323244571686, 0.022351978346705437, 0.010998295620083809, -0.04571400582790375, 0.0052653406746685505, -0.030918678268790245, -0.043020546436309814, 0.005943381693214178, -0.008674250915646553, -0.03282654657959938, -0.008323539979755878, 0.003698831656947732, -0.03785808011889458, -0.03890553489327431, -0.0062286267057061195, 0.006078990176320076, -0.007785783614963293, -0.00788865890353918, -0.04313277080655098, 0.0049380105920135975, -0.02036929316818714, -0.02880506031215191, -0.040850814431905746, -0.07811034470796585, -0.012606889940798283, -0.011101171374320984, -0.049342695623636246, -0.01738591119647026, -0.04272127151489258, -2.7399293500707245e-8, -0.001559494761750102, 0.04713555425405502, 0.03318193182349205, 0.08619072288274765, 0.02929138019680977, -0.01967722363770008, 0.05207356438040733, 0.03649264574050903, -0.019583700224757195, 0.00939437747001648, 0.01828373223543167, -0.0006809637998230755, 0.03574446216225624, 0.058732397854328156, -0.0013151661260053515, -0.032658204436302185, 0.011428501456975937, -0.06572791188955307, -0.0671868696808815, 0.03207836300134659, -0.06292222440242767, -0.024503005668520927, -0.030432360246777534, -0.021098772063851357, 0.047883737832307816, -0.029590653255581856, -0.007495862431824207, -0.005849858745932579, 0.01321478933095932, 0.05211097374558449, -0.006948753260076046, 0.028636720031499863, -0.02914174273610115, 0.049978651106357574, -0.002431595930829644, -0.030993496999144554, 0.04519027844071388, -0.008786479011178017, 0.054355524480342865, 0.02914174273610115, 0.07459388673305511, 0.012532072141766548, -0.02573750913143158, 0.024820983409881592, 0.03935444727540016, -0.04612550511956215, -0.05147501826286316, 0.012195389717817307, 0.019995201379060745, -0.005891944281756878, 0.0018400634871795774, -0.09666529297828674, 0.07216228544712067, -0.026111600920557976, -0.004367520567029715, 0.01662837527692318, 0.013298959471285343, -0.024035392329096794, 0.02663532830774784, -0.036417827010154724, 0.007537947501987219, 0.02525118924677372, -0.005910648964345455, 0.013411187566816807, -0.017965754494071007, -0.010605499148368835, -0.006069637835025787, -0.00346034811809659, -0.0044142818078398705, -0.10489530861377716, -0.012270207516849041, -0.034603480249643326, 0.0021744079422205687, 0.018414663150906563, 0.0055786422453820705, -0.04264645278453827, 0.008608785457909107, 0.021304521709680557, -0.02461523376405239, 0.026953306049108505, 0.0671868696808815, -0.011400444433093071, -0.004428310319781303, -0.014870144426822662, 0.025288598611950874, 0.050390150398015976, -0.021790841594338417, 0.027177762240171432, 0.057423073798418045, 0.0017512167105451226, 0.03146111220121384, 0.021341931074857712, 0.01947147212922573, -0.006948753260076046, -0.011447206139564514, -0.03617466613650322, -0.009726383723318577, 0.034753117710351944, 0.043506864458322525, -0.01753554865717888, 0.03295747935771942, -0.010568090714514256, -0.0013712798245251179, -0.028356149792671204, -0.021229702979326248, 0.02803817205131054, -0.01577731780707836, 0.0008528121397830546, -0.00012508690997492522, -0.02622382715344429, -0.011952229775488377, 0.026541804894804955, 0.004584961570799351, 0.02977769821882248, -0.00385314435698092, 0.009520634077489376 ]
730,103
mmengine.fileio.backends.local_backend
exists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns: bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.exists(filepath) True
def exists(self, filepath: Union[str, Path]) -> bool: """Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns: bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.exists(filepath) True """ return osp.exists(filepath)
(self, filepath: Union[str, pathlib.Path]) -> bool
[ 0.01892116107046604, -0.07531972229480743, -0.05134440213441849, 0.014085955917835236, 0.04528671130537987, 0.007946157827973366, 0.014158939942717552, -0.005888914689421654, -0.033937666565179825, -0.01866571605205536, 0.0234826747328043, -0.0003073320258408785, 0.02536201849579811, -0.08196128904819489, -0.02158508449792862, 0.002750593004748225, 0.0458705872297287, -0.011504138819873333, -0.0007828698726370931, -0.04922785982489586, -0.009524441324174404, 0.021457362920045853, 0.07247333973646164, 0.019723987206816673, 0.026785211637616158, 0.02390233427286148, 0.011823444627225399, -0.02065453678369522, -0.023884087800979614, 0.025672201067209244, 0.006094182841479778, 0.008945128880441189, 0.01217011921107769, -0.0038681640289723873, 0.04287823289632797, 0.04050624370574951, -0.018811684101819992, 0.01566424034535885, -0.038426194339990616, -0.06918904930353165, -0.022369666025042534, 0.063094861805439, 0.004290103912353516, 0.05601539462804794, 0.005783999804407358, 0.017388490960001945, -0.07250982522964478, 0.008265463635325432, 0.014751936309039593, 0.02326372265815735, 0.0791148990392685, 0.004600286949425936, -0.04306069388985634, -0.0021610173862427473, -0.059299685060977936, -0.011458523571491241, 0.04999419301748276, 0.06904307752847672, -0.03337203711271286, 0.002684451173990965, 0.013784895651042461, -0.04083467274904251, 0.01787201315164566, -0.03638263791799545, 0.0015714416513219476, 0.004625375382602215, 0.004917312413454056, -0.06543035805225372, 0.030653374269604683, -0.01390349492430687, -0.008671438321471214, 0.024486208334565163, 0.00012779366807080805, -0.03536085784435272, 0.018455885350704193, 0.024759897962212563, 0.02065453678369522, 0.06116078048944473, -0.013748403638601303, -0.0005670532118529081, -0.0616716705262661, -0.07229087501764297, 0.00017390772700309753, -0.0062720817513763905, 0.0157463476061821, 0.05408130958676338, 0.03893708437681198, -0.012352580204606056, -0.008461608551442623, 0.10356462001800537, -0.01919485069811344, 0.02791646681725979, 0.03461276739835739, -0.017196908593177795, 0.07046627253293991, -0.0729842260479927, 0.04506776109337807, -0.045578647404909134, -0.00769527442753315, -0.030379684641957283, -0.03326256200671196, -0.023884087800979614, 0.02499709650874138, -0.011850813403725624, 0.026675734668970108, 0.04375404492020607, 0.008119495585560799, 0.016175128519535065, 0.037623368203639984, -0.027825236320495605, -0.024467961862683296, -0.04014132544398308, 0.03245973587036133, 0.008434239774942398, 0.006833148188889027, -0.05565047264099121, 0.019778724759817123, 0.0011409487342461944, -0.02704065479338169, -0.04276875779032707, -0.005916283931583166, -0.0009932697284966707, -0.019778724759817123, -0.012881715781986713, 0.0727652758359909, -0.018072718754410744, 0.04218488186597824, -0.0027688390109688044, -0.03402889519929886, 0.015536516904830933, -0.014350523240864277, 0.03477698192000389, 0.018756946548819542, 0.021712807938456535, -0.03585350140929222, 0.034904707223176956, -0.0010366040514782071, 0.007804750464856625, -0.01952327974140644, 0.07302071899175644, 0.0153631791472435, -0.03337203711271286, -0.017023570835590363, 0.006705425679683685, 0.061452716588974, 0.06710899621248245, -0.02828138694167137, -0.056708741933107376, 0.010856403969228268, 0.04736676439642906, -0.005738384556025267, -0.01566424034535885, 0.012854347005486488, 0.005113457329571247, -0.014879658818244934, -0.013994725421071053, 0.012671886011958122, 0.03592648357152939, -0.01024516113102436, -0.0150347501039505, -0.009127589873969555, 0.04036027565598488, -0.03532436490058899, -0.001507580396719277, -0.016202498227357864, 0.02806243486702442, -0.06780234724283218, 0.05667225271463394, 0.0066552492789924145, 0.05583293363451958, 0.0010058138286694884, -0.02514306642115116, -0.01663128100335598, 0.030817588791251183, 0.03224078193306923, -0.04590707644820213, 0.054701678454875946, 0.06404365599155426, 0.008046510629355907, 0.025234296917915344, 0.033937666565179825, -0.052548643201589584, -0.019559772685170174, -0.009360226802527905, 0.02758803777396679, 0.029832301661372185, -0.011622738093137741, -0.030215470120310783, 0.050760529935359955, 0.04878995567560196, -0.031383216381073, 0.015901438891887665, 0.07422495633363724, 0.01841939426958561, 0.009205135516822338, -0.05174581706523895, 0.10057226568460464, -0.027898220345377922, -0.09816378355026245, 0.04273226484656334, 0.06626968085765839, -0.02147560939192772, -0.004128170199692249, -0.007339476142078638, -0.03547033295035362, 0.0012122223852202296, -0.004734851885586977, 0.020271368324756622, 0.0013787175994366407, 0.04342561587691307, -0.03868164122104645, -0.09626619517803192, -0.006217343732714653, 0.03955744951963425, 0.04276875779032707, 0.07597658038139343, -0.057365600019693375, 0.05900774523615837, -0.009962346404790878, 0.01830991730093956, 0.1059001088142395, 0.0046573057770729065, 0.010500605218112469, 0.0025316402316093445, 0.058058951050043106, 0.008014580234885216, -0.029887041077017784, 0.03483172133564949, -0.055686965584754944, -0.013757526874542236, -0.004449756816029549, 0.03716721758246422, 0.03769635409116745, 0.02406654879450798, 0.02125665545463562, -0.0033481514547020197, 0.00931917317211628, 0.061124287545681, 0.010801665484905243, 0.011969412676990032, 0.02547149546444416, 0.013182776048779488, 0.007968964986503124, -0.01141290832310915, -0.027515053749084473, -0.026949426159262657, 0.012972946278750896, 0.010719558224081993, -0.017196908593177795, -0.05331497639417648, 0.017698675394058228, 0.04430142417550087, -0.04868047684431076, -0.02439497783780098, 0.008612138219177723, -0.02899298444390297, -0.061452716588974, -0.005916283931583166, -0.001240731799043715, 0.037988290190696716, -0.03222253546118736, 0.04262278974056244, 0.04247681796550751, 0.020362598821520805, -0.030689867213368416, -0.04152802377939224, 0.005692769773304462, 0.015481779351830482, -0.005610662512481213, -0.028208402916789055, -0.04273226484656334, 0.05313251540064812, 0.00021296569320838898, -0.014396138489246368, 0.02076401188969612, -0.008926883339881897, -0.00751737505197525, -0.015855822712183, 0.01057359017431736, 0.04254980385303497, -0.054227281361818314, -0.010637450963258743, 0.03590824082493782, -0.04893592372536659, -0.016813740134239197, 0.010500605218112469, -0.01411332469433546, 0.04408247396349907, -0.014587721787393093, -0.005957337561994791, -0.019176606088876724, 0.00797352660447359, -0.016996201127767563, 0.010062700137495995, -0.009962346404790878, 0.06809428334236145, -0.006153482478111982, -0.015682484954595566, 0.04244032874703407, -0.0760495662689209, -0.008735299110412598, 0.030361438170075417, -0.0221689585596323, 0.021439116448163986, -0.0008125196909531951, -0.007763696834445, -0.012772239744663239, 0.01726076938211918, -0.01904888264834881, 0.014268415980041027, -0.03536085784435272, 0.012024151161313057, -0.015737224370241165, 0.015682484954595566, 0.11706669628620148, 0.019778724759817123, -0.04765870049595833, -0.06948098540306091, -0.05196476727724075, 0.023811103776097298, -0.018300794064998627, 0.03879111632704735, 0.018410271033644676, 0.007763696834445, -0.038426194339990616, -0.023117752745747566, -0.0006021198350936174, 0.00925075076520443, -0.02244265004992485, 0.03287939354777336, 0.02871929295361042, -0.00900442898273468, 0.10684891045093536, -0.04287823289632797, -0.02255212515592575, -0.012124504894018173, -0.016238991171121597, 0.009113905020058155, 0.038973577320575714, 0.09166818857192993, 0.01746147684752941, -0.0455421581864357, -0.0460895374417305, 0.0032774480059742928, -0.03579876199364662, -0.003943428862839937, -0.030908819288015366, -0.006618756800889969, 0.05612486973404884, -0.011942043900489807, -0.0299052856862545, 0.005948214326053858, -0.03412012383341789, 0.030543899163603783, -0.005679084919393063, 0.00450905691832304, 0.0451042503118515, 0.06878763437271118, 0.01690497063100338, -0.018027104437351227, 0.02326372265815735, -0.03849918022751808, -0.04036027565598488, -0.023026524111628532, -0.007252807263284922, -0.027624528855085373, 0.07546568661928177, 0.025270787999033928, -0.08400484174489975, 0.053570423275232315, 0.04670990630984306, -0.024212516844272614, 0.00667805690318346, -0.033463265746831894, 0.003824829589575529, -0.039885878562927246, 0.008434239774942398, -0.04999419301748276, 0.041673991829156876, 0.001280645141378045, 0.006459103897213936, 0.04397299513220787, 0.0007919928757473826, 0.02353741228580475, 0.03488646075129509, 0.064080148935318, 0.017196908593177795, -0.006477349903434515, -0.04109011963009834, -0.04240383580327034, -0.0035762269981205463, -0.012936454266309738, -0.02353741228580475, -0.07159752398729324, 0.0005835887277498841, -0.0628759115934372, 0.030799344182014465, 0.029230182990431786, 0.010765173472464085, 0.04163750261068344, 0.030580390244722366, -0.07035679370164871, 0.001125553622841835, 0.038645148277282715, -0.026329059153795242, 0.04857100173830986, 0.02828138694167137, 0.030963558703660965, 0.0010839297901839018, -0.05634382367134094, 0.005195564590394497, -0.06331381946802139, -0.02780698984861374, -0.02822664938867092, -0.06459104269742966, 0.08663227409124374, -0.05477466061711311, -0.011996782384812832, 0.005711015779525042, -0.0037928989622741938, -0.018756946548819542, -0.01024516113102436, -0.02850034087896347, 0.045396190136671066, -0.010801665484905243, 0.028847014531493187, -0.019213097169995308, -0.01914011314511299, 0.01739761419594288, -0.014733690768480301, -0.02087348885834217, -0.09736095368862152, 0.05295005440711975, -0.03317132964730263, 0.006135236471891403, -0.03547033295035362, -0.009861993603408337, -0.07002836465835571, -0.04174697771668434, -0.003840794786810875, -0.015846699476242065, -0.011193955317139626, -0.05448272451758385, -0.000005381161372497445, 0.011184833012521267, -0.004725728649646044, -0.04791414365172386, -0.04820607975125313, 0.06856867671012878, 0.0002933623909484595, -0.041673991829156876, 0.018218686804175377, 0.08035562932491302, 0.00008260617323685437, -0.04893592372536659, -0.009606548584997654, -0.04028729349374771, -0.0018348690355196595, -0.015837576240301132, 0.010564466938376427, -0.032806411385536194, 0.06875114142894745, 0.04225786775350571, -0.06400716304779053, 0.024139532819390297, -0.009606548584997654, 0.010865526273846626, 0.007412460632622242, 0.03337203711271286, 0.04017781466245651, -0.015828454867005348, -0.0068149021826684475, -0.06338679790496826, -0.0073668453842401505, 0.030379684641957283, 0.0021678595803678036, 0.02293529361486435, 0.052220214158296585, -0.0446663461625576, -0.001196257071569562, -0.00878091435879469, -0.03514190390706062, -0.07053925096988678, 0.06900658458471298, 0.04342561587691307, -0.03100004978477955, 0.018811684101819992, 0.031182510778307915, 0.011230447329580784, -0.05419078841805458, 0.051198434084653854, -0.02817191183567047, 0.011193955317139626, -0.020161893218755722, 0.0301242396235466, -0.004217119887471199, -0.04317016899585724, 0.04218488186597824, -0.04207540675997734, -0.02211422100663185, -0.002340056700631976, 0.00785948894917965, 0.041783470660448074, 0.10144807398319244, -0.02736908383667469, -0.015217211097478867, 0.005332409869879484, 0.031656909734010696, -0.04240383580327034, 0.002565851667895913, -0.009081974625587463, 0.06338679790496826, -0.0447758212685585, 0.010783419013023376, 0.04331613704562187, 0.055249057710170746, -0.04386352002620697, -0.05601539462804794, -0.023774610832333565, -0.0031155140604823828, -0.002595501486212015, -0.04415545612573624, 0.04754922166466713, -0.011805198155343533, -0.015335810370743275, 0.02910245954990387, -0.029832301661372185, -0.029284920543432236, -0.005888914689421654, 0.005578731652349234, 0.019669249653816223, 0.014824921265244484, -0.026493273675441742, -0.007540182676166296, 0.055905915796756744, 0.024705160409212112, 0.007275614887475967, -0.028847014531493187, 0.01046411320567131, -0.023829350247979164, 0.013100668787956238, 0.010062700137495995, -0.041564516723155975, -0.0031793753150850534, 0.0153631791472435, -0.04298770800232887, -0.03218604251742363, -0.10801665484905243, 0.04550566524267197, 0.0013616119977086782, 0.016786372289061546, -0.006194536108523607, 0.0313284806907177, -0.0005810228758491576, 0.08218023926019669, 0.08327500522136688, 0.01178695261478424, -0.02855507843196392, -0.02195000648498535, -0.018620099872350693, -0.008174233138561249, -0.035068921744823456, -0.03463101387023926, 0.025179557502269745, -0.008443363010883331, -0.0470748245716095, 0.015071243047714233, -0.023117752745747566, 0.06783884018659592, -0.07619553059339523, 0.041345562785863876, 0.029120706021785736, 0.03603596240282059, -0.03333554416894913, -0.010017084889113903, -0.02163982391357422, 0.053789373487234116, 0.007608605548739433, 0.012972946278750896, 0.007321230135858059, -0.04678288847208023, -0.012078889645636082, -0.06579528003931046, 0.031985338777303696, -0.03904655948281288, -0.006892447825521231, 0.0055924165062606335, 0.03984938561916351, -0.06553983688354492, -0.03337203711271286, 0.002110840752720833, 0.019869955256581306, 0.08181531727313995, 0.011403785087168217, 0.036802295595407486, -0.0018953090766444802, 0.021110687404870987, -0.043571583926677704, 0.08517259359359741, -0.025818169116973877, -0.041455041617155075, -0.05090649798512459, -0.024905867874622345, -0.0466369204223156, 0.0016045125667005777, 0.01737024635076523, -0.016923217102885246, -0.002677608747035265, -0.045834094285964966, -0.02715013176202774, 0.029503872618079185, -0.02244265004992485, 0.029613349586725235, 0.02921193651854992, 0.08407782763242722, 0.05696418881416321, 0.0008142302976921201, -0.02477814443409443, -0.018629223108291626, -0.00797352660447359, 0.02238791063427925, -0.030270207673311234, 0.04955628886818886, 0.04218488186597824, -0.016841109842061996, -0.006226466968655586, 0.0595916211605072, -0.02368338219821453, -0.03607245534658432, -0.035889994353055954, 0.03266043961048126, -0.018811684101819992, 0.012845223769545555, -0.0153631791472435, -0.000020081353795831092, -0.07360459119081497, 0.0020732081029564142, -0.019505035132169724, 0.06448156386613846, -0.008894952945411205, -0.07415197044610977, -0.06798480451107025, -0.027843482792377472, -0.0029558611568063498, 0.02871929295361042, 0.0006095323478803039, 0.014569476246833801, -0.029814057052135468, 0.07612254470586777, 0.019340820610523224, 0.00013392319669947028, 0.04568812623620033, -0.05181879922747612, -0.01544528640806675, 0.010527974925935268, 0.018072718754410744, 0.010600958950817585, -0.023008277639746666, -0.014697198756039143, 0.032696932554244995, 0.002081190701574087, -0.0461990162730217, -0.01589231565594673, 0.03536085784435272, -0.008087564259767532, 0.014861413277685642, 0.023008277639746666, -0.0446663461625576, -0.03034319169819355, 0.04714781045913696, 0.00020626596233341843, 0.06064989045262337, -0.015454409644007683, -0.021493854001164436, 0.022424403578042984, 0.030270207673311234, -0.0603579543530941, -0.013082422316074371, -0.04736676439642906, 0.017470598220825195, -0.008311078883707523, 0.02070927433669567, 0.0029900725930929184, 0.01495264284312725, 0.00014596845721825957, -0.006194536108523607, 0.07148805260658264, -0.028372617438435555, 0.024103039875626564, -0.025088327005505562, -0.029704580083489418, -0.034101881086826324, -0.009209697134792805, 0.04083467274904251, 0.016448820009827614, -0.02277107909321785, 0.06521140784025192, 0.02687644027173519, -0.0022864588536322117, -0.03714897111058235, 0.014852290041744709, 0.020161893218755722, -0.003081302857026458, 0.007708958815783262, 0.006869640201330185, 0.02985054813325405, -0.06192711740732193, -0.020143646746873856, 0.020855242386460304, 0.010947633534669876, -0.04791414365172386, -0.0009031798108480871, 0.07203543186187744, -0.041892945766448975, 0.019286081194877625, -0.02926667407155037, 0.005035911686718464, 0.01646706648170948, 0.05196476727724075, -0.03526962548494339, 0.02910245954990387, -0.036802295595407486, -0.0025726938620209694, -0.0452137291431427, -0.03311659395694733, -0.04320666193962097, -0.014797551557421684, -0.02092822641134262, -0.029814057052135468, 0.03901007026433945, -0.004201154690235853, -0.015071243047714233, -0.05046859383583069, 0.04251331090927124, 0.003840794786810875, -0.02833612635731697, 0.007895980961620808, 0.01882993057370186, 0.013164529576897621, 0.02337319776415825, 0.017853766679763794, -0.027113640680909157, 0.03229552134871483, -0.08203426748514175, 0.04065221548080444, 0.012133627198636532, 0.05809544399380684, -0.050870005041360855, -0.03256921097636223, 0.011394661851227283, 0.027879973873496056, -0.017251646146178246, -0.032696932554244995, 0.010902018286287785, -0.002559009473770857, -0.01544528640806675, -0.031930599361658096, 0.05630733072757721, -0.05554099753499031, -0.005026788450777531, -0.05911722406744957, 0.0005371182924136519, 0.002226018812507391, -0.012991191819310188, 0.020691027864813805, -0.005177318584173918, -0.04955628886818886, 0.014158939942717552 ]
730,104
mmengine.fileio.backends.local_backend
get
Read bytes from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns: bytes: Expected bytes object. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.get(filepath) b'hello world'
def get(self, filepath: Union[str, Path]) -> bytes: """Read bytes from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns: bytes: Expected bytes object. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.get(filepath) b'hello world' """ with open(filepath, 'rb') as f: value = f.read() return value
(self, filepath: Union[str, pathlib.Path]) -> bytes
[ 0.04880329594016075, -0.09029333293437958, -0.06266951560974121, 0.04293821007013321, -0.0006533731357194483, -0.03444831818342209, -0.006163769401609898, 0.02552397921681404, 0.05274955555796623, -0.08652810007333755, 0.04909292981028557, 0.04123661294579506, -0.048513662070035934, 0.0008779524359852076, 0.015097161754965782, 0.008422007784247398, -0.002028567949309945, -0.010770756751298904, 0.022392312064766884, 0.007091502659022808, -0.008607554249465466, 0.00042511679930612445, 0.05593552812933922, 0.04891190677881241, -0.010209591127932072, 0.018808094784617424, -0.019296851009130478, -0.051084160804748535, 0.00275604659691453, 0.01205600704997778, 0.0709240734577179, -0.043046824634075165, 0.005543771665543318, 0.002875973004847765, -0.014101545326411724, 0.024727486073970795, 0.00857587531208992, 0.026229960843920708, -0.039462603628635406, -0.02842031605541706, -0.048368845134973526, 0.0021009764168411493, 0.06567446142435074, 0.003152030287310481, 0.0026859010104089975, -0.008123323321342468, -0.04330025240778923, -0.02103465422987938, -0.01669919863343239, 0.055718302726745605, 0.08681773394346237, 0.038412682712078094, -0.026935942471027374, -0.0023555373772978783, -0.015594969503581524, 0.014635558240115643, -0.03830406814813614, 0.010453970171511173, -0.04637761041522026, 0.08515233546495438, -0.01304257195442915, -0.06625372916460037, 0.024944711476564407, -0.05865084379911423, 0.011983598582446575, 0.011214258149266243, 0.007304202299565077, -0.04583454877138138, 0.008788575418293476, -0.01035440806299448, 0.031932126730680466, 0.006218075752258301, -0.053799476474523544, -0.017821529880166054, -0.026555798947811127, 0.0013327680062502623, 0.010761706158518791, 0.03701882064342499, -0.013793809339404106, 0.043372660875320435, 0.015214825049042702, -0.034683648496866226, 0.03837647661566734, 0.0031316655222326517, -0.0019878381863236427, -0.021288083866238594, 0.036439552903175354, -0.017287516966462135, -0.011521994136273861, 0.03975223749876022, 0.01166681107133627, 0.007381136529147625, -0.03236657753586769, 0.04442258179187775, 0.0718291848897934, -0.10231313854455948, 0.034882768988609314, 0.03685590252280235, -0.04051252827048302, 0.024691281840205193, -0.06534862518310547, 0.04243135079741478, 0.025324854999780655, -0.012101261876523495, 0.009096311405301094, 0.011521994136273861, 0.03339839726686478, 0.0033081609290093184, 0.04485703259706497, -0.042684782296419144, -0.024455953389406204, -0.0032176505774259567, -0.04232273995876312, 0.03830406814813614, -0.01956838369369507, 0.03471985086798668, -0.02943403460085392, 0.005661435425281525, 0.03627663478255272, 0.0035367002710700035, -0.012734835967421532, 0.022573333233594894, -0.01793014258146286, -0.025614488869905472, 0.08428343385457993, 0.08746940642595291, 0.03685590252280235, -0.0555734857916832, 0.00029019947396591306, 0.03701882064342499, 0.02892717532813549, 0.025542080402374268, 0.002027436625212431, 0.04174347221851349, -0.020835531875491142, 0.046486224979162216, 0.03747137263417244, 0.018952911719679832, 0.03408627584576607, 0.0633573904633522, 0.04931015521287918, -0.028275499120354652, 0.07038101553916931, -0.04880329594016075, 0.02543346770107746, 0.01646387204527855, 0.056732021272182465, -0.09188631922006607, -0.029633156955242157, 0.04768096283078194, 0.03053826279938221, -0.0018656488973647356, -0.02851082757115364, 0.016183288767933846, 0.03902815282344818, 0.000033446482120780274, -0.0018746999558061361, 0.02874615415930748, -0.049599789083004, 0.00204327586106956, -0.05872325226664543, 0.05354604870080948, 0.025451570749282837, -0.0700913816690445, 0.011585352011024952, 0.039969462901353836, -0.05886806920170784, 0.03095461241900921, 0.009603170678019524, -0.02355084754526615, -0.07508756220340729, 0.01951407641172409, -0.06285053491592407, 0.019731301814317703, 0.09355171769857407, -0.06053346395492554, 0.018717583268880844, 0.040114279836416245, 0.040657345205545425, 0.024492157623171806, 0.0005939755355939269, -0.04692067578434944, -0.02002093568444252, 0.01763145811855793, 0.07899761945009232, 0.03319927304983139, 0.0213966965675354, 0.014155851677060127, 0.06694161146879196, 0.031895920634269714, -0.016916424036026, 0.012481406331062317, 0.007240844890475273, 0.005308444611728191, -0.00849894154816866, -0.0873245894908905, 0.08913479745388031, -0.026519594714045525, -0.06744846701622009, 0.05865084379911423, 0.04804300516843796, -0.03589648753404617, 0.030755488201975822, -0.009394995868206024, -0.05104795843362808, 0.006702307146042585, 0.02557828463613987, 0.014508843421936035, -0.016608688980340958, 0.05101175233721733, -0.040621139109134674, -0.04087457060813904, -0.03511809930205345, -0.0037426117341965437, 0.03830406814813614, 0.002455099020153284, -0.0890623927116394, 0.03642145171761513, -0.01783963106572628, 0.049527380615472794, 0.10397852957248688, 0.052966780960559845, -0.020310569554567337, 0.013078776188194752, 0.037724800407886505, -0.009042005054652691, -0.0183736439794302, -0.02112516574561596, -0.07660813629627228, -0.015613071620464325, 0.012273232452571392, 0.010960829444229603, 0.06744846701622009, -0.020057139918208122, 0.04945497214794159, 0.0445311963558197, 0.003907793667167425, 0.018418898805975914, -0.033543214201927185, 0.03537152707576752, 0.038412682712078094, -0.000990525004453957, 0.019043421372771263, 0.07226363569498062, -0.048694681376218796, -0.02650149166584015, 0.03430350124835968, 0.023768072947859764, -0.027297984808683395, -0.04402433708310127, 0.04587075114250183, -0.008897188119590282, 0.0015794093487784266, -0.02966936118900776, 0.020093344151973724, 0.017948243767023087, 0.01455409824848175, -0.09304485470056534, -0.004120493307709694, 0.043046824634075165, -0.01437307707965374, 0.007507850881665945, 0.021939760074019432, -0.0156311746686697, -0.010155284777283669, -0.02157771773636341, -0.04076595604419708, 0.017368976026773453, 0.055211443454027176, 0.011033237911760807, -0.05959215387701988, 0.04634140804409981, -0.002860133768990636, -0.002950644353404641, -0.013114980421960354, -0.09253799915313721, 0.02222939394414425, 0.07222742587327957, -0.0009848680347204208, -0.015920808538794518, -0.1163603812456131, 0.0006465848418883979, 0.03347080573439598, -0.041164204478263855, -0.025234345346689224, -0.004032245371490717, -0.030103811994194984, -0.0719015896320343, -0.04040391370654106, -0.008204782381653786, 0.021740637719631195, -0.011494841426610947, -0.06085930019617081, -0.052821964025497437, 0.0719015896320343, -0.023496542125940323, -0.06172820180654526, -0.04826023057103157, 0.08616605401039124, -0.01783963106572628, 0.0002815726911649108, 0.003986990079283714, 0.02557828463613987, 0.041345223784446716, -0.002995899645611644, -0.01760430447757244, 0.021523412317037582, -0.05046869069337845, -0.040114279836416245, 0.014409281313419342, 0.0001324424083577469, -0.031895920634269714, 0.027533313259482384, 0.03852129355072975, 0.015088110230863094, -0.02420252375304699, 0.02172253467142582, 0.039969462901353836, 0.019405463710427284, -0.010318203829228878, 0.006856175139546394, 0.008005659095942974, 0.03146146982908249, 0.0017434597248211503, -0.002744732890278101, 0.009929008781909943, 0.013965779915452003, 0.031099429354071617, -0.013133082538843155, 0.043408866971731186, 0.061547182500362396, 0.039607420563697815, 0.03935399278998375, -0.023315520957112312, -0.0051726787351071835, -0.0012196297757327557, -0.003068308113142848, -0.007258947007358074, -0.01897101290524006, 0.00013965496327728033, 0.07986652106046677, -0.056225161999464035, 0.0329277440905571, 0.012436151504516602, 0.00445990776643157, 0.021143266931176186, 0.020057139918208122, -0.024166319519281387, 0.03151577711105347, -0.025976531207561493, -0.008001133799552917, -0.030592570081353188, -0.04768096283078194, -0.011440535075962543, -0.06513140350580215, -0.018699482083320618, -0.005032387096434832, 0.020057139918208122, 0.010924625210464, 0.007100553717464209, -0.025107629597187042, -0.0028126155957579613, -0.0530029833316803, 0.010779808275401592, -0.04326405003666878, -0.02291727438569069, 0.02731608785688877, 0.04123661294579506, -0.03783341497182846, 0.04865847900509834, 0.005806252360343933, 0.017187954857945442, -0.01350417546927929, 0.033416498452425, -0.0025614488404244184, -0.03546203672885895, -0.039100561290979385, -0.046812061220407486, 0.025125732645392418, 0.07856316864490509, 0.02157771773636341, 0.018518460914492607, -0.02474558725953102, 0.017187954857945442, 0.009114413522183895, 0.015477306209504604, -0.0002537124091759324, -0.024944711476564407, -0.023025887086987495, -0.02079932764172554, 0.011449585668742657, -0.03182351216673851, -0.003407722571864724, -0.010752654634416103, -0.02154151350259781, -0.01489803846925497, 0.04891190677881241, 0.029832281172275543, 0.05857843533158302, 0.019767506048083305, -0.009404047392308712, -0.004378448240458965, -0.06831736862659454, 0.04243135079741478, -0.02599463239312172, 0.045255281031131744, 0.015033803880214691, 0.03477415814995766, -0.03135285899043083, -0.04583454877138138, -0.03137096017599106, 0.031660594046115875, -0.01476227305829525, -0.019676996394991875, 0.01304257195442915, 0.017251312732696533, -0.021324288100004196, -0.03714553266763687, 0.03247518837451935, -0.004869468044489622, -0.057094063609838486, 0.004113704897463322, -0.0011296849697828293, -0.036892104893922806, 0.014173953793942928, 0.005195306148380041, 0.03135285899043083, -0.0013734977692365646, 0.004724651109427214, 0.050251465290784836, 0.06361082196235657, -0.06784671545028687, -0.0248360987752676, -0.025813613086938858, -0.0028895495925098658, 0.009358791634440422, -0.030646875500679016, -0.020401081070303917, 0.04246755689382553, 0.006512234918773174, -0.008408430963754654, 0.014300668612122536, 0.007204640656709671, -0.00987470243126154, -0.020582102239131927, -0.0530029833316803, -0.04163485765457153, 0.0009826052701100707, 0.049708399921655655, -0.044748421758413315, -0.046305201947689056, -0.058216392993927, 0.09203113615512848, -0.03140716627240181, -0.02411201409995556, 0.004613775759935379, -0.02970556542277336, -0.012870602309703827, -0.02943403460085392, -0.008924341760575771, -0.009648425504565239, 0.03149767592549324, 0.03899195045232773, -0.12714923918247223, 0.029216809198260307, -0.03660247102379799, -0.009856600314378738, 0.048513662070035934, -0.02474558725953102, -0.012182721868157387, 0.021179471164941788, -0.021251879632472992, -0.06560205668210983, -0.028094477951526642, 0.04409674555063248, -0.010997033677995205, 0.02291727438569069, 0.011277616024017334, -0.04206930845975876, -0.08247322589159012, -0.026917841285467148, -0.0359870009124279, -0.05506662651896477, 0.05970076471567154, 0.01023674476891756, -0.03935399278998375, 0.022012168541550636, 0.0539080910384655, 0.0700913816690445, -0.03242088481783867, -0.015413948334753513, 0.08797626942396164, -0.02916250377893448, -0.007892521098256111, -0.011657760478556156, 0.041852083057165146, -0.01019148901104927, -0.004247208125889301, -0.01202885340899229, 0.05524764582514763, -0.039462603628635406, -0.03071928396821022, 0.02286296710371971, 0.04891190677881241, -0.030339140444993973, -0.01909772865474224, -0.001159666571766138, -0.014979497529566288, 0.009974263608455658, -0.013558481819927692, -0.010644041933119297, 0.05818019062280655, -0.023713767528533936, -0.015902705490589142, -0.04949117451906204, 0.029090095311403275, -0.019532179459929466, 0.0034869194496423006, -0.010553531348705292, 0.02286296710371971, 0.01598416455090046, -0.005086693447083235, 0.0036588895600289106, -0.010490174405276775, 0.0036588895600289106, -0.031334757804870605, -0.03949880972504616, -0.06853459775447845, -0.02671871706843376, 0.02241041511297226, 0.03967982903122902, -0.00018045543401967734, 0.02154151350259781, -0.0009961818577721715, -0.0022061949130147696, -0.051084160804748535, -0.01421015802770853, -0.009947110898792744, -0.0607868917286396, -0.028438419103622437, 0.014671762473881245, -0.01039966382086277, -0.020238161087036133, -0.002473201137036085, 0.015368693508207798, -0.0316786952316761, -0.03834027424454689, -0.03406817466020584, 0.051120366901159286, -0.005982748232781887, -0.005733843892812729, -0.06552964448928833, 0.004616038873791695, -0.00891981553286314, 0.01859086938202381, -0.001159666571766138, -0.005276765674352646, 0.00805544015020132, -0.023170704022049904, -0.02599463239312172, 0.05180824548006058, -0.008385803550481796, -0.06846218556165695, 0.038267865777015686, -0.01951407641172409, 0.03399576619267464, 0.02961505576968193, 0.03596889600157738, 0.042177923023700714, -0.08095264434814453, 0.027261780574917793, 0.059302520006895065, 0.04521907493472099, -0.0024596245493739843, 0.0719015896320343, 0.03935399278998375, 0.011187105439603329, 0.017948243767023087, -0.00821835920214653, -0.009621272794902325, -0.0033647301606833935, -0.03573356941342354, -0.029596952721476555, 0.04778957739472389, 0.007525952998548746, 0.011703015305101871, 0.008630181662738323, 0.03544393554329872, -0.05408911034464836, -0.034231092780828476, 0.01306067407131195, -0.03692831099033356, 0.029651260003447533, -0.0026519594248384237, 0.04431397095322609, 0.016717299818992615, -0.049020521342754364, -0.0012807244202122092, 0.03982464596629143, -0.01487993635237217, 0.007897046394646168, -0.04326405003666878, 0.0006233914755284786, 0.0013701036805287004, -0.0029755346477031708, 0.06773810088634491, -0.013594686053693295, -0.02916250377893448, 0.02966936118900776, 0.018310286104679108, -0.004991657566279173, -0.02543346770107746, -0.0026157551910728216, 0.011304768733680248, 0.038774725049734116, 0.03529911860823631, -0.01783963106572628, -0.022156985476613045, -0.052459921687841415, 0.008322445675730705, 0.02934352494776249, -0.00888813752681017, -0.0032470664009451866, 0.05083073303103447, -0.011612504720687866, 0.013422716408967972, 0.0033081609290093184, -0.014146801084280014, -0.011431483551859856, 0.033905256539583206, 0.023387929424643517, -0.01021864265203476, 0.014780374243855476, 0.04811541363596916, 0.04688446968793869, -0.062198858708143234, 0.04282959923148155, 0.009200398810207844, 0.018274081870913506, 0.00982944667339325, -0.04293821007013321, -0.0026315946597605944, -0.022338006645441055, -0.007494274526834488, -0.0036543640308082104, -0.0026723244227468967, -0.01574883796274662, -0.021451003849506378, 0.06270571798086166, -0.02543346770107746, -0.014907089062035084, 0.016563432291150093, -0.006973838899284601, 0.013277899473905563, -0.020582102239131927, -0.005086693447083235, 0.11831540614366531, -0.0012105787172913551, 0.005091219209134579, 0.019984731450676918, -0.016002267599105835, -0.007955878041684628, -0.003493707627058029, -0.013332205824553967, -0.046812061220407486, -0.008272665552794933, -0.023768072947859764, 0.009919957257807255, 0.036439552903175354, -0.02599463239312172, 0.024166319519281387, 0.07849075645208359, -0.031425267457962036, -0.05597173050045967, -0.01745043694972992, 0.017577150836586952, -0.010788858868181705, -0.03415868431329727, 0.020129548385739326, 0.011422432959079742, 0.01933305524289608, 0.020147651433944702, -0.01664489135146141, 0.0504324845969677, -0.015676429495215416, 0.010897471569478512, 0.020455386489629745, 0.04130902141332626, 0.022881070151925087, -0.05336502566933632, -0.047137901186943054, -0.028800461441278458, 0.017622405663132668, -0.00398925319314003, -0.005887711886316538, 0.03935399278998375, 0.028945278376340866, -0.03359752148389816, -0.02411201409995556, 0.03667487949132919, -0.013576583936810493, -0.05550107732415199, 0.018627073615789413, -0.006761138793081045, 0.022301802411675453, -0.027569517493247986, -0.02336982637643814, -0.025976531207561493, -0.061366159468889236, -0.004290200769901276, -0.019206341356039047, -0.021251879632472992, -0.0026338573079556227, -0.0607868917286396, 0.014789425767958164, 0.014454537071287632, -0.10325445234775543, 0.024039605632424355, -0.03750757500529289, 0.013232643716037273, -0.05289437249302864, 0.0017762697534635663, 0.04395192861557007, 0.005408006254583597, 0.02521624229848385, 0.010001417249441147, -0.02860133722424507, -0.013531329110264778, -0.08059060573577881, 0.05231510475277901, 0.03511809930205345, -0.03522671014070511, 0.034828465431928635, -0.022338006645441055, -0.04815161973237991, -0.045074257999658585, -0.027424700558185577, -0.044603604823350906, 0.08660050481557846, 0.03714553266763687, 0.0029755346477031708, 0.022700048983097076, -0.023478439077734947, -0.007159385364502668, 0.0368196964263916, -0.03768859803676605, 0.037398964166641235, -0.015757888555526733, 0.016572484746575356, 0.03477415814995766, -0.012246078811585903, -0.011087543331086636, -0.015920808538794518, 0.039462603628635406, 0.014526945538818836, 0.010671195574104786, -0.04554491490125656, -0.007227268535643816, -0.05130138620734215, 0.011675862595438957, -0.01679876074194908, 0.049201540648937225, -0.014038188382983208, 0.024582669138908386, -0.02250092476606369, 0.026483390480279922, -0.05702165514230728, 0.04728271812200546 ]
730,105
mmengine.fileio.backends.local_backend
get_local_path
Only for unified API and do nothing. Args: filepath (str or Path): Path to be read data. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Examples: >>> backend = LocalBackend() >>> with backend.get_local_path('s3://bucket/abc.jpg') as path: ... # do something here
def copyfile_from_local( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Copy a local file src to dst and return the destination file. Same as :meth:`copyfile`. Args: src (str or Path): A local file to be copied. dst (str or Path): Copy file to dst. Returns: str: If dst specifies a directory, the file will be copied into dst using the base filename from src. Raises: SameFileError: If src and dst are the same file, a SameFileError will be raised. Examples: >>> backend = LocalBackend() >>> # dst is a file >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> # src will be copied to '/path1/of/file1' >>> backend.copyfile_from_local(src, dst) '/path1/of/file1' >>> # dst is a directory >>> dst = '/path1/of/dir' >>> # src will be copied to >>> backend.copyfile_from_local(src, dst) '/path1/of/dir/file' """ return self.copyfile(src, dst)
(self, filepath: Union[str, pathlib.Path]) -> Generator[Union[str, pathlib.Path], NoneType, NoneType]
[ -0.038663141429424286, -0.015973281115293503, -0.01721004582941532, 0.009837029501795769, -0.015697387978434563, -0.0571194626390934, 0.01802821271121502, 0.034743551164865494, 0.05198213830590248, -0.02469722367823124, -0.03816843777894974, -0.03512409329414368, -0.023022836074233055, 0.007078094873577356, -0.03053855337202549, 0.054151229560375214, -0.004804351832717657, -0.02511581964790821, -0.016211120411753654, 0.009827516041696072, 0.020397091284394264, -0.04387657716870308, 0.10213766992092133, 0.047491732984781265, 0.005969764199107885, -0.02073957957327366, -0.037369295954704285, -0.055863674730062485, -0.012072717770934105, -0.014355974271893501, 0.06039213016629219, 0.01820896938443184, 0.020111683756113052, -0.008229236118495464, -0.03133769333362579, -0.026409665122628212, -0.0009222215157933533, -0.020225845277309418, -0.07211285084486008, -0.11789213865995407, -0.010683736763894558, -0.0337541401386261, 0.05769027769565582, 0.042887166142463684, 0.07553773373365402, -0.015859117731451988, 0.03339262306690216, -0.06442588567733765, 0.05266711488366127, 0.003077639266848564, -0.00908070057630539, 0.08935143053531647, -0.029263736680150032, 0.007672692649066448, -0.01854194514453411, 0.03689361736178398, 0.01059811469167471, -0.032764729112386703, -0.10723694413900375, 0.017628641799092293, -0.029473034664988518, -0.03312624618411064, 0.023669758811593056, 0.007948586717247963, -0.02534414641559124, -0.04079418256878853, -0.0412127785384655, 0.0012236827751621604, 0.029035409912467003, 0.0011820608051493764, -0.023441432043910027, 0.05993548035621643, -0.03443911671638489, 0.03434398025274277, -0.001877740491181612, 0.050840508192777634, 0.0355236642062664, -0.015602252446115017, 0.03040536493062973, 0.01020805910229683, -0.015440521761775017, -0.050117477774620056, -0.01173022948205471, -0.03579004481434822, -0.06039213016629219, -0.06020186096429825, -0.031851425766944885, -0.06419755518436432, 0.02703756093978882, 0.033050134778022766, 0.007411069702357054, 0.03244126960635185, -0.023764893412590027, -0.034382034093141556, 0.032498348504304886, -0.06088683754205704, -0.008595508523285389, 0.016487013548612595, -0.025876905769109726, 0.040641963481903076, -0.04079418256878853, 0.0026114745996892452, -0.024583060294389725, -0.010883522219955921, 0.045741237699985504, 0.011749256402254105, 0.023251160979270935, 0.004200240597128868, 0.021101094782352448, 0.008429021574556828, 0.01465089526027441, 0.0035747233778238297, 0.00655484851449728, 0.017723778262734413, 0.024754304438829422, -0.004970839247107506, 0.011520931497216225, -0.043952684849500656, -0.02768448367714882, 0.024525979533791542, -0.007211284711956978, 0.03639891371130943, -0.020206818357110023, -0.04779616743326187, 0.025972042232751846, -0.006759390234947205, 0.07230311632156372, -0.06876406818628311, -0.04258273169398308, 0.013984945602715015, -0.001498386962339282, 0.020663470029830933, 0.0022130939178168774, 0.09140636771917343, 0.024031274020671844, -0.004573647864162922, -0.014241811819374561, 0.07371112704277039, -0.0015994686400517821, 0.08364329487085342, 0.07504303008317947, -0.06735606491565704, 0.010778873227536678, 0.027380049228668213, 0.045931506901979446, -0.018294591456651688, -0.015316844917833805, -0.0642356127500534, -0.00449516111984849, 0.02846459671854973, -0.000005894881724088918, -0.009789462201297283, -0.04406685009598732, 0.05639643222093582, -0.013461698777973652, -0.02258521132171154, -0.021557746455073357, -0.021976342424750328, 0.030253147706389427, -0.02852167747914791, -0.05681502819061279, -0.020359035581350327, 0.09072138369083405, -0.026657018810510635, 0.030100930482149124, 0.02930179052054882, -0.0138707822188735, 0.013081156648695469, -0.025077765807509422, -0.013670997694134712, 0.005693870596587658, 0.007544259540736675, 0.026181340217590332, -0.015278791077435017, 0.011682662181556225, -0.06731800734996796, 0.03206072375178337, -0.013975432142615318, 0.020530279725790024, -0.009090214036405087, 0.04741562530398369, -0.01784745417535305, 0.0035128851886838675, 0.022375913336873055, 0.024963602423667908, 0.000919843150768429, -0.011901473626494408, 0.015878144651651382, 0.0033345057163387537, 0.016715340316295624, 0.04007114842534065, 0.022432994097471237, -0.011987095698714256, -0.0321178063750267, 0.0073920427821576595, -0.041326940059661865, 0.04585539922118187, -0.06754633784294128, -0.009156809188425541, 0.019436219707131386, 0.028730975463986397, -0.013024074956774712, 0.029149573296308517, 0.03950033709406853, -0.0316421277821064, 0.033735111355781555, -0.010112922638654709, 0.07945732027292252, -0.030138984322547913, 0.02736102230846882, -0.023860029876232147, -0.007315934170037508, 0.0015316845383495092, 0.004583161324262619, -0.005237219389528036, 0.02443084307014942, -0.05426539480686188, 0.050383858382701874, 0.0042977542616426945, 0.05133521556854248, -0.019445734098553658, -0.013147751800715923, -0.022566184401512146, 0.0010613574413582683, 0.027475185692310333, -0.054341502487659454, 0.009004591964185238, 0.017809400334954262, 0.0016303877346217632, -0.011444822885096073, 0.0083957239985466, -0.025496363639831543, 0.02180509828031063, -0.02580079808831215, 0.005261003039777279, -0.007339717820286751, 0.03582809865474701, -0.02901638299226761, -0.023117970675230026, -0.04848114401102066, 0.004595053382217884, 0.0027113668620586395, 0.05152548477053642, 0.037692759186029434, -0.00031424505868926644, -0.05373263359069824, -0.03826357051730156, -0.023631703108549118, 0.04311549291014671, 0.006868796423077583, 0.006155278533697128, 0.05833720043301582, -0.09612509608268738, 0.025972042232751846, 0.027075614780187607, 0.004842406138777733, -0.012538882903754711, -0.028274325653910637, -0.01538344006985426, 0.042849112302064896, -0.033183325082063675, -0.0723792240023613, 0.0011505471775308251, -0.025001658126711845, -0.016163552179932594, -0.043952684849500656, -0.0590602308511734, 0.021462609991431236, 0.037921082228422165, -0.008053235709667206, 0.1424752026796341, 0.018827350810170174, -0.0022035802248865366, 0.0031585046090185642, 0.059440772980451584, -0.0499652624130249, -0.06370285153388977, 0.0648825392127037, 0.0438004694879055, -0.0011547093745321035, 0.01619209349155426, -0.018313618376851082, -0.05487426370382309, -0.056776974350214005, -0.02092985063791275, 0.03365900367498398, -0.018475349992513657, -0.11446725577116013, -0.002167904283851385, -0.026371611282229424, 0.026485774666070938, 0.03725513443350792, -0.031946562230587006, -0.030158011242747307, -0.02975844219326973, -0.055483128875494, -0.016249174252152443, -0.031889479607343674, 0.0016161174280568957, 0.009760920889675617, -0.034382034093141556, -0.014089594595134258, -0.00033297488698735833, 0.028122108429670334, -0.014232298359274864, -0.04048974812030792, 0.021633854135870934, -0.002875475911423564, -0.04558901861310005, 0.0006067872745916247, 0.008937997743487358, -0.07325447350740433, 0.006440685596317053, -0.0337541401386261, 0.0027565564960241318, 0.03481965884566307, -0.014032512903213501, 0.013927863910794258, 0.006107710767537355, -0.04406685009598732, -0.026371611282229424, 0.05936466529965401, -0.04851919785141945, 0.078544020652771, 0.016163552179932594, -0.012120286002755165, 0.09270020574331284, 0.004002833738923073, -0.0004685432359110564, 0.0348767414689064, 0.007235068827867508, 0.04745367914438248, -0.027988918125629425, -0.005636789370328188, -0.0014222784666344523, 0.007182743865996599, -0.02703756093978882, -0.016173066571354866, 0.035618800669908524, -0.04612177982926369, 0.0983322411775589, -0.027494212612509727, 0.01213931292295456, -0.0418597012758255, 0.0007581124664284289, 0.044219065457582474, -0.02869292162358761, 0.009332810528576374, 0.03632280230522156, 0.037331242114305496, -0.03588518127799034, -0.0020632550586014986, 0.022984780371189117, -0.03384927660226822, -0.023403378203511238, 0.028959302231669426, 0.013252400793135166, 0.005470301955938339, 0.05437955632805824, -0.02378392033278942, 0.053542360663414, 0.0018016319954767823, -0.007425339892506599, -0.044675715267658234, -0.011520931497216225, -0.009213890880346298, 0.026790209114551544, -0.010797900147736073, -0.07062873244285583, 0.013918350450694561, 0.0002947719767689705, -0.0021702826488763094, 0.06385506689548492, -0.031204504892230034, -0.02469722367823124, -0.008895186707377434, 0.0558256171643734, -0.029644278809428215, -0.007582313846796751, 0.02521095611155033, 0.07915288954973221, -0.024126408621668816, 0.005341868381947279, 0.04916612058877945, 0.021500663831830025, 0.030253147706389427, 0.04764394834637642, -0.052895437926054, -0.013185805641114712, -0.05468399077653885, -0.0014115757076069713, 0.0046021887101233006, 0.07051456719636917, 0.034610360860824585, -0.009356594644486904, -0.05955493822693825, 0.012500829063355923, 0.004966082517057657, 0.025972042232751846, 0.006835498847067356, -0.010816927067935467, -0.014137162826955318, -0.029834549874067307, -0.02161482721567154, -0.08234944939613342, 0.03303110972046852, 0.0648825392127037, 0.02190023474395275, 0.02658090926706791, 0.05110688880085945, 0.008914213627576828, 0.04391463100910187, -0.05259100720286369, 0.0035747233778238297, -0.03255543112754822, 0.023327268660068512, -0.030291201546788216, -0.0934612974524498, 0.04014725983142853, -0.010265139862895012, -0.0444473922252655, -0.0085574546828866, 0.003950509242713451, -0.07694573700428009, 0.018227996304631233, -0.029872603714466095, -0.016715340316295624, 0.0070305271074175835, -0.0355236642062664, 0.0024223923683166504, 0.010341248475015163, -0.02239494025707245, 0.05989742651581764, -0.013785160146653652, 0.03192753344774246, 0.029358871281147003, 0.05106883496046066, -0.024411816149950027, 0.011187956668436527, 0.028045998886227608, -0.03289791941642761, -0.05407512187957764, 0.029263736680150032, -0.010569574311375618, -0.1032031923532486, -0.020663470029830933, -0.0934612974524498, -0.031166449189186096, 0.003217964433133602, 0.03289791941642761, -0.07051456719636917, 0.012158339843153954, -0.0011624391190707684, 0.0020715794526040554, -0.01802821271121502, -0.0007598962401971221, -0.049013905227184296, -0.03531436622142792, 0.007292150054126978, 0.0662144348025322, -0.005356139037758112, 0.05890801548957825, 0.12116480618715286, -0.023346297442913055, 0.023117970675230026, 0.010664709843695164, 0.03830162435770035, 0.030386338010430336, -0.02051125280559063, 0.011397254653275013, -0.00795810017734766, -0.009180593304336071, -0.023650730028748512, 0.054988425225019455, 0.06571973115205765, -0.032821811735630035, -0.02125331200659275, 0.012243961915373802, -0.03689361736178398, 0.04844309017062187, 0.02148163691163063, -0.018646594136953354, 0.009037889540195465, 0.006602416280657053, 0.015098032541573048, -0.006512037478387356, 0.02304186299443245, 0.06575778126716614, 0.01710539497435093, 0.047491732984781265, -0.03455327823758125, 0.04144110158085823, -0.04402879253029823, -0.05624421685934067, -0.06518696993589401, 0.06682330369949341, -0.0467306487262249, 0.0025615282356739044, -0.027627402916550636, 0.023993218317627907, 0.025591498240828514, 0.012196394614875317, -0.021919261664152145, 0.022851591929793358, -0.03160407394170761, 0.02138650231063366, 0.005394193343818188, -0.045969560742378235, -0.029568171128630638, 0.03128061071038246, -0.03813038021326065, 0.01871318928897381, -0.015897173434495926, -0.010816927067935467, 0.03278375789523125, 0.022965753450989723, -0.026980480179190636, -0.014660408720374107, -0.00878102332353592, -0.05076440051198006, -0.03206072375178337, -0.017219558358192444, 0.059821318835020065, -0.035580746829509735, -0.07142787426710129, 0.0412127785384655, 0.0022915806621313095, 0.04410490393638611, -0.043990738689899445, 0.01343315839767456, 0.0008514643413946033, 0.01012243703007698, 0.02096790447831154, 0.01752399280667305, 0.05312376469373703, 0.06434977799654007, -0.024640141054987907, -0.058946069329977036, -0.035485610365867615, -0.008467075414955616, -0.01770475134253502, -0.032403212040662766, 0.04357214272022247, -0.010988171212375164, 0.0010102220112457871, -0.07036235183477402, -0.022699374705553055, 0.0493183396756649, 0.008571725338697433, -0.039310064166784286, -0.00956589262932539, -0.0460837259888649, -0.022699374705553055, -0.012957479804754257, 0.006331279873847961, 0.03299305588006973, -0.0019574167672544718, 0.037236105650663376, -0.00473775714635849, 0.02229980379343033, -0.005689113866537809, -0.012862344272434711, 0.004816243890672922, 0.07344474643468857, -0.02277548238635063, -0.008091289550065994, 0.018180428072810173, -0.004107483197003603, 0.009171079844236374, -0.03849189728498459, 0.03333554416894913, 0.012653045356273651, -0.03712194412946701, 0.00623138714581728, 0.012700613588094711, 0.017676210030913353, 0.009875084273517132, -0.002009741263464093, -0.006250414531677961, 0.06103905290365219, -0.06084878370165825, 0.021633854135870934, 0.0177618321031332, 0.056282270699739456, -0.044675715267658234, 0.007701233495026827, -0.011853906325995922, -0.02608620375394821, -0.07584216445684433, -0.01039833016693592, 0.01145433634519577, -0.010065355338156223, 0.04406685009598732, 0.024183491244912148, 0.0032702891621738672, -0.08333885669708252, -0.06963931769132614, -0.07001986354589462, 0.02861681394279003, -0.0035533178597688675, 0.002239256165921688, -0.02079666033387184, -0.04718729853630066, 0.0026519072707742453, 0.054760098457336426, -0.005284787155687809, -0.03518117591738701, -0.022471047937870026, 0.011425795964896679, -0.0038220761343836784, -0.01757156103849411, -0.0058270604349672794, -0.031204504892230034, -0.017409829422831535, 0.10495368391275406, -0.010664709843695164, 0.03335456922650337, -0.011654120869934559, 0.023308241739869118, 0.0632842555642128, 0.012120286002755165, 0.046616483479738235, -0.022642292082309723, 0.053428199142217636, 0.014936301857233047, -0.04829087108373642, 0.0007182743865996599, -0.012909912504255772, -0.04166942834854126, 0.019398165866732597, -0.0350479856133461, -0.030785907059907913, 0.0005951925995759666, 0.05392290651798248, 0.026466747745871544, -0.04920417442917824, -0.029377898201346397, -0.010502979159355164, 0.03312624618411064, 0.009061673656105995, -0.04159332066774368, -0.00465689180418849, 0.02368878573179245, 0.004994623363018036, -0.05814692750573158, -0.028540704399347305, 0.00323699158616364, -0.050802454352378845, 0.028065025806427002, -0.017790373414754868, -0.019978493452072144, 0.005965007469058037, -0.028940275311470032, 0.015269276686012745, 0.05559729412198067, 0.005750951822847128, 0.060468241572380066, -0.016724852845072746, 0.029815522953867912, 0.03150893747806549, 0.000990600325167179, 0.004966082517057657, 0.03518117591738701, 0.02566760778427124, 0.02427862584590912, 0.049508608877658844, 0.007011499721556902, -0.03274570032954216, -0.013166778720915318, -0.047491732984781265, -0.05681502819061279, 0.024126408621668816, -0.04886168614029884, -0.029796496033668518, 0.018275564536452293, 0.031718235462903976, 0.043343815952539444, -0.02998676709830761, 0.0010922765359282494, -0.018798811361193657, 0.029492061585187912, 0.01177779771387577, 0.009523081593215466, -0.016135012730956078, -0.005241976119577885, 0.053656525909900665, -0.002965854946523905, -0.051030781120061874, -0.0024996900465339422, 0.0014531975612044334, 0.032764729112386703, 0.03942422568798065, 0.06081072986125946, 0.004200240597128868, -0.013537807390093803, 0.02939692512154579, 0.04357214272022247, -0.04387657716870308, -0.04513236880302429, 0.039995040744543076, -0.009689569473266602, -0.014565273188054562, 0.018599025905132294, -0.05373263359069824, 0.028826111927628517, -0.035257283598184586, 0.012282016687095165, -0.028350433334708214, 0.058946069329977036, -0.03251737728714943, 0.040223367512226105, -0.012595964595675468, 0.00615052180364728, 0.029568171128630638, 0.012957479804754257, 0.03417273610830307, 0.005456031300127506, -0.03333554416894913, -0.020263900980353355, 0.019436219707131386, 0.0032702891621738672, -0.11614163964986801, -0.009903624653816223, -0.01586863212287426, 0.022547157481312752, -0.012367638759315014, -0.03835870698094368, -0.051487430930137634, -0.025515390560030937, 0.033411651849746704, -0.01789502240717411, 0.019027136266231537, 0.02713269740343094, 0.02070152387022972, -0.002975368406623602, -0.02718977816402912, 0.04893779382109642, 0.05042191222310066, -0.018513403832912445, 0.03653210401535034, 0.03946227952837944, -0.009023619815707207, 0.03485771268606186, 0.025096792727708817, -0.0010673034703359008, -0.011463849805295467, -0.003467695554718375, -0.028959302231669426, -0.019521841779351234, 0.07694573700428009, 0.029929686337709427, -0.009466000832617283, 0.021748017519712448, 0.017856968566775322, 0.0065500917844474316, -0.04889973998069763, -0.020263900980353355, 0.00910448469221592, 0.0007242203573696315, 0.024849440902471542, -0.04654037579894066, 0.00487570371478796, 0.03719805181026459, 0.041517212986946106, -0.007696476764976978, 0.03219391405582428, -0.024754304438829422, 0.001708874711766839 ]
730,106
mmengine.fileio.backends.local_backend
get_text
Read text from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Returns: str: Expected text reading from ``filepath``. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.get_text(filepath) 'hello world'
def get_text(self, filepath: Union[str, Path], encoding: str = 'utf-8') -> str: """Read text from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Returns: str: Expected text reading from ``filepath``. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.get_text(filepath) 'hello world' """ with open(filepath, encoding=encoding) as f: text = f.read() return text
(self, filepath: Union[str, pathlib.Path], encoding: str = 'utf-8') -> str
[ 0.012682536616921425, -0.07234467566013336, -0.012549223378300667, 0.07977467030286789, 0.03512360528111458, -0.001718630432151258, -0.014655573293566704, -0.02205890417098999, 0.10010938346385956, -0.03999398276209831, 0.041202690452337265, -0.005203661508858204, -0.04909483715891838, -0.00902975257486105, 0.00638570636510849, 0.008971983566880226, -0.06370597332715988, -0.032421790063381195, 0.03165746107697487, -0.00819432269781828, -0.03796762228012085, -0.025400623679161072, 0.03560353443026543, 0.03261731564998627, -0.016859686002135277, -0.00786992721259594, -0.051156748086214066, -0.06832750141620636, -0.008492056280374527, 0.006985615938901901, 0.027498086914420128, -0.04280244931578636, -0.026431579142808914, -0.006479025352746248, -0.06971395760774612, 0.04262470081448555, -0.023143185302615166, -0.05293425917625427, -0.006083529442548752, -0.04433111101388931, -0.056489281356334686, 0.07493983954191208, 0.07387333363294601, 0.007123372983187437, -0.02339203655719757, -0.04358455538749695, -0.043371252715587616, -0.049841392785310745, -0.014033445157110691, 0.027906913310289383, 0.046179719269275665, 0.059119995683431625, -0.06626559048891068, 0.017126312479376793, -0.05389411747455597, -0.029097845777869225, -0.020014766603708267, 0.012753637507557869, -0.02257438190281391, -0.014042331837117672, -0.00854982528835535, -0.05360971391201019, 0.05193885415792465, 0.0231965109705925, 0.004139377269893885, 0.004945922642946243, 0.028617918491363525, -0.03565685823559761, 0.059973202645778656, -0.051014550030231476, 0.05624042823910713, 0.006523463409394026, -0.01672637276351452, -0.06509242951869965, 0.017544027417898178, -0.010709499940276146, -0.031284183263778687, 0.03368382155895233, 0.004688183777034283, 0.02486737072467804, -0.007483318913727999, 0.01485109981149435, 0.029879949986934662, 0.001083725830540061, 0.025453949347138405, -0.07892145961523056, 0.011980419978499413, -0.017375163733959198, 0.0010142918908968568, 0.008300974033772945, 0.03034210205078125, -0.04244694858789444, -0.012415910139679909, 0.051654454320669174, 0.024120816960930824, -0.043691206723451614, 0.029595548287034035, -0.009376367554068565, -0.03496363013982773, 0.011758231557905674, -0.04628637060523033, 0.029559997841715813, 0.03336387127637863, 0.0012820294359698892, 0.03647451475262642, -0.03151525929570198, -0.005208105314522982, 0.003988288808614016, 0.09314154833555222, -0.01677080988883972, -0.009954058565199375, -0.011873769573867321, 0.0037172187585383654, 0.030448753386735916, 0.003799428464844823, -0.01705521158874035, -0.0865292102098465, -0.008314304985105991, 0.004457107279449701, -0.03899857774376869, 0.0082076545804739, 0.009634106419980526, -0.06352822482585907, -0.039211880415678024, 0.03181743621826172, 0.05588492751121521, 0.02604052796959877, -0.02888454496860504, 0.03299059346318245, -0.0025285086594522, 0.001017069211229682, 0.01228259690105915, 0.06349267065525055, -0.00009908231731969863, 0.021116822957992554, 0.032741740345954895, 0.011269415728747845, 0.04390450567007065, 0.038536425679922104, 0.06185736134648323, 0.018610533326864243, -0.0364389643073082, 0.011891544796526432, -0.03302614390850067, -0.006718989461660385, 0.022929884493350983, 0.047495078295469284, -0.09669656306505203, -0.021312350407242775, 0.02490292116999626, 0.056133780628442764, -0.016042031347751617, -0.04657077416777611, -0.01708187535405159, 0.03247511386871338, -0.001002626959234476, 0.000989851076155901, 0.06679884344339371, -0.06146631017327309, 0.050161343067884445, -0.044686611741781235, 0.04728177562355995, 0.030253227800130844, -0.01677080988883972, 0.013411316089332104, 0.029275596141815186, -0.042873550206422806, -0.03416375070810318, -0.026769306510686874, -0.051334500312805176, -0.027782488614320755, -0.023178735747933388, -0.08254758268594742, 0.026076078414916992, 0.020032541826367378, -0.007563306950032711, 0.03514138236641884, 0.06320826709270477, 0.027409210801124573, 0.039745133370161057, -0.020192518830299377, -0.10359330475330353, -0.04056278616189957, -0.00021066275076009333, 0.06171516329050064, 0.007092266343533993, 0.006790089886635542, 0.005243655759841204, 0.036723364144563675, 0.024654069915413857, 0.02655600570142269, -0.042518049478530884, -0.011287190951406956, 0.024156367406249046, -0.03382602334022522, -0.07330452650785446, 0.0735178291797638, -0.03185298666357994, -0.07565084099769592, 0.018628308549523354, 0.06146631017327309, -0.0032639536075294018, 0.0488104373216629, 0.030413202941417694, -0.03946072980761528, 0.036901116371154785, -0.0053147561848163605, 0.016530847176909447, -0.02968442440032959, 0.06800755113363266, -0.03227958828210831, -0.05026799440383911, -0.024636294692754745, 0.02637825533747673, 0.03761212155222893, 0.025791676715016365, -0.08880442380905151, 0.05094344913959503, 0.011651581153273582, 0.03736326843500137, 0.05353861302137375, 0.029240045696496964, -0.04397560656070709, 0.03345274552702904, 0.029737750068306923, -0.00027148693334311247, -0.008083228953182697, 0.03599458560347557, -0.02700038254261017, -0.02419191598892212, 0.005736914929002523, -0.008176547475159168, 0.029595548287034035, -0.011322741396725178, 0.0401361845433712, 0.024636294692754745, -0.015455452725291252, -0.019285988062620163, 0.02506289631128311, -0.006870077922940254, 0.015313251875340939, -0.02719590999186039, 0.0016897458117455244, 0.04539761692285538, -0.02419191598892212, -0.017152976244688034, -0.01971258968114853, 0.04216254875063896, 0.035265807062387466, -0.056275978684425354, 0.04152264446020126, 0.013206901960074902, 0.002397417090833187, 0.01549989078193903, -0.0155709907412529, 0.027071483433246613, 0.011304966174066067, -0.051832202821969986, -0.019268212839961052, 0.05520947277545929, 0.0200680922716856, 0.005714695900678635, -0.02918672002851963, -0.007661069743335247, 0.006945622153580189, -0.052329905331134796, -0.07735725492238998, 0.06686994433403015, 0.039531830698251724, -0.0401361845433712, -0.02968442440032959, 0.07444213330745697, 0.0006565679213963449, -0.033399421721696854, -0.04824163392186165, -0.04230474680662155, -0.002227442804723978, 0.05808904021978378, 0.008798676542937756, -0.006185736041516066, -0.09235943853855133, 0.03635008633136749, 0.013669054955244064, -0.05855119228363037, 0.0270537082105875, -0.004110492765903473, -0.0005213104886934161, -0.04426001012325287, -0.01334021519869566, -0.012371472083032131, 0.006083529442548752, -0.015597653575241566, -0.008585375733673573, -0.007576637901365757, 0.07056716084480286, -0.020832421258091927, -0.05204550549387932, -0.03995843231678009, 0.033879347145557404, -0.042553599923849106, 0.04806388169527054, 0.012940275482833385, -0.02451186813414097, -0.02037026919424534, -0.02920449525117874, -0.010736162774264812, -0.00008991703361971304, -0.017170751467347145, 0.015997594222426414, -0.00435045687481761, -0.006781202275305986, -0.05211660638451576, 0.03846532478928566, 0.07508204132318497, -0.03551465645432472, 0.014779998920857906, -0.002266325755044818, -0.023089859634637833, 0.014033445157110691, -0.04557536542415619, 0.023943064734339714, -0.02005031704902649, 0.031568583101034164, -0.0028040227480232716, -0.0024796270299702883, -0.026253828778862953, 0.014993300661444664, 0.007043384946882725, -0.0035439112689346075, 0.010878363624215126, 0.05787573754787445, 0.03503473103046417, 0.012300372123718262, -0.0627816691994667, -0.04859713464975357, -0.01889493502676487, 0.017126312479376793, -0.05328976362943649, -0.012389247305691242, 0.020174743607640266, 0.0778549537062645, -0.05769798904657364, -0.030253227800130844, 0.009749644435942173, -0.006687882822006941, 0.07664624601602554, 0.04724622517824173, -0.0354791060090065, 0.05076569691300392, -0.044686611741781235, 0.01176711916923523, -0.009376367554068565, -0.04475771263241768, -0.03494585305452347, -0.07757055759429932, 0.012211496941745281, -0.025809451937675476, 0.012584773823618889, -0.0033439414110034704, -0.005856896750628948, -0.0783526599407196, -0.0007143369875848293, -0.036723364144563675, 0.029986601322889328, -0.014397834427654743, -0.02220110595226288, 0.024298567324876785, 0.09442134946584702, -0.03171078488230705, 0.0627816691994667, 0.01168713066726923, 0.0044282227754592896, -0.0003710552991833538, 0.07113596796989441, -0.005883559584617615, 0.007056716363877058, -0.043691206723451614, -0.05453401803970337, -0.03382602334022522, 0.056453730911016464, 0.004594864323735237, 0.03761212155222893, -0.04674852266907692, 0.00019719256670214236, 0.008527605794370174, 0.029275596141815186, -0.027622511610388756, -0.022485505789518356, 0.010745050385594368, -0.048028331249952316, 0.0311419814825058, -0.002286322880536318, 0.022343305870890617, -0.012824737466871738, -0.033790472894907, 0.013660167343914509, 0.03147970885038376, 0.03277729079127312, 0.055138371884822845, 0.029293371364474297, -0.019854791462421417, 0.0028129101265221834, -0.06736764311790466, 0.0038283129688352346, -0.003923854324966669, 0.1057974174618721, -0.009598555974662304, 0.020796872675418854, -0.034234851598739624, 0.017481815069913864, -0.004445997998118401, 0.034608129411935806, 0.007367780432105064, -0.031248632818460464, 0.001543101272545755, -0.0075188688933849335, -0.02303653582930565, -0.025738351047039032, 0.005772464908659458, 0.017775103449821472, -0.0672609955072403, 0.023978615179657936, -0.03213738650083542, -0.011660467833280563, 0.020814646035432816, -0.0009909620275720954, 0.02307208441197872, -0.012202609330415726, 0.047317326068878174, 0.048526033759117126, 0.02836906537413597, -0.1114143505692482, -0.06420367956161499, -0.007385555654764175, -0.03651006519794464, 0.03115975670516491, -0.04290910065174103, -0.00012317592336330563, -0.009518568404018879, -0.054818421602249146, 0.028280191123485565, 0.017783991992473602, 0.015828730538487434, 0.013304665684700012, 0.020512470975518227, -0.027267009019851685, -0.024494092911481857, -0.004003842361271381, -0.0011476051295176148, -0.04614416882395744, -0.007150035817176104, 0.0231965109705925, 0.04777947813272476, 0.016468634828925133, -0.02982662431895733, -0.005208105314522982, 0.015979818999767303, -0.008492056280374527, -0.010478423908352852, 0.04397560656070709, -0.06587453931570053, 0.0699983611702919, 0.024014165624976158, -0.10295340418815613, 0.08169437944889069, -0.032084062695503235, -0.02701815776526928, 0.056667033582925797, -0.0783526599407196, -0.017330726608633995, -0.015855392441153526, 0.00861648190766573, -0.09335484355688095, -0.02072577178478241, 0.01875273510813713, 0.012007082812488079, -0.0404561385512352, -0.006594563834369183, -0.029648873955011368, -0.008669806644320488, 0.015482115559279919, -0.017615128308534622, -0.011127214878797531, 0.023978615179657936, 0.003730549942702055, -0.008243204094469547, 0.05062349513173103, 0.010825037956237793, 0.0042104776948690414, -0.023160960525274277, 0.019197111949324608, 0.039745133370161057, 0.008478724397718906, -0.019499288871884346, -0.021827828139066696, 0.02851126715540886, -0.038074273616075516, 0.043691206723451614, -0.0004968697321601212, 0.048845987766981125, -0.027409210801124573, -0.02120569907128811, 0.0202280692756176, 0.10871253907680511, -0.004732621368020773, 0.035567983984947205, -0.0028262415435165167, 0.031568583101034164, 0.039211880415678024, -0.009340817108750343, 0.014388946816325188, 0.05023244395852089, 0.01971258968114853, 0.014033445157110691, -0.014877761714160442, -0.01609535701572895, -0.025987202301621437, 0.03099978156387806, -0.0041860369965434074, 0.021756727248430252, -0.0444733090698719, -0.005034798290580511, -0.02337426133453846, -0.003170634154230356, 0.03818092495203018, -0.014708898961544037, -0.057626888155937195, -0.01576651819050312, -0.04742397740483284, 0.03336387127637863, 0.006674551405012608, 0.0022752133663743734, 0.014211195521056652, 0.03818092495203018, -0.018486108630895615, -0.033914897590875626, -0.03800317272543907, 0.017028549686074257, -0.00696784071624279, 0.044508859515190125, 0.0030506523326039314, 0.01460224762558937, -0.051476702094078064, 0.010025158524513245, 0.04081163927912712, -0.05890669673681259, 0.008336523547768593, -0.024778494611382484, 0.04745952785015106, 0.04550426825881004, -0.006465693935751915, -0.05240100622177124, -0.015802066773176193, -0.011393841356039047, 0.053467512130737305, 0.0454331673681736, -0.02086797170341015, 0.037078868597745895, -0.0008587597403675318, -0.050978999584913254, 0.03615456074476242, -0.010211797431111336, -0.03203073889017105, 0.03704331815242767, 0.014806661754846573, 0.022823233157396317, 0.0168952364474535, 0.05584937706589699, -0.016299771144986153, -0.047815028578042984, 0.032084062695503235, 0.03736326843500137, 0.06153741106390953, -0.025276197120547295, -0.0028773450758308172, 0.013571292161941528, 0.06729654222726822, 0.008723132312297821, 0.004239362198859453, 0.04550426825881004, 0.03099978156387806, -0.06185736134648323, -0.015153275802731514, 0.03960293158888817, 0.01756180264055729, 0.04792167991399765, -0.012309259735047817, 0.03165746107697487, -0.04091829061508179, -0.008149885572493076, 0.034430377185344696, 0.0017475149361416698, 0.04692627489566803, 0.005994653794914484, 0.05261430889368057, 0.017855092883110046, 0.00007866872329032049, 0.016459746286273003, 0.05584937706589699, -0.03034210205078125, -0.014033445157110691, -0.035887934267520905, -0.0035839052870869637, 0.013349102810025215, -0.017339613288640976, 0.0622839629650116, 0.01789953000843525, -0.03764767199754715, 0.01855720952153206, 0.031284183263778687, -0.018859384581446648, -0.05848009139299393, -0.005439181812107563, -0.056773681193590164, 0.06960730999708176, 0.02717813476920128, 0.029879949986934662, -0.05684478208422661, 0.04180704429745674, 0.0002412137109786272, 0.06679884344339371, 0.023409811779856682, 0.020779097452759743, 0.051121197640895844, 0.001533102709800005, 0.04066943749785423, 0.016513071954250336, -0.059759899973869324, -0.026236053556203842, 0.023320935666561127, -0.001242035417817533, -0.03322166949510574, -0.010753937996923923, 0.02932892180979252, 0.050481297075748444, -0.02804911509156227, -0.01677080988883972, 0.008283198811113834, 0.015624316409230232, -0.038252025842666626, -0.07778385281562805, -0.011304966174066067, -0.03446592763066292, -0.04248249903321266, -0.006634557619690895, -0.019126012921333313, -0.04330015182495117, -0.01661083474755287, 0.07678844779729843, -0.018326131626963615, -0.013829031027853489, 0.04756617918610573, -0.0005451957695186138, -0.007567750755697489, -0.014966637827455997, 0.022787682712078094, 0.07451323419809341, -0.04553981497883797, 0.04010063409805298, 0.02902674488723278, 0.008923102170228958, 0.011660467833280563, 0.014397834427654743, -0.019801465794444084, 0.0039216321893036366, -0.04489991441369057, -0.024742944166064262, 0.010718387551605701, 0.06303051859140396, -0.0022463288623839617, 0.03181743621826172, 0.07067381590604782, 0.019517064094543457, -0.03725661709904671, 0.018032843247056007, 0.023338710889220238, 0.039389628916978836, -0.04177149385213852, 0.024174140766263008, 0.0064257001504302025, 0.009527456015348434, 0.01741071417927742, -0.03099978156387806, -0.03284839168190956, -0.008971983566880226, -0.012709199450910091, 0.00037494360003620386, 0.019481513649225235, 0.06875409930944443, 0.013962344266474247, -0.05044574663043022, -0.003681668546050787, -0.012602549046278, -0.008065453730523586, 0.04191369563341141, 0.01193598285317421, 0.032101839780807495, -0.04362010583281517, 0.014362283982336521, 0.013349102810025215, 0.01638864539563656, -0.04390450567007065, 0.018486108630895615, -0.05691588297486305, 0.00559471407905221, -0.034252624958753586, -0.03245734050869942, -0.03569240868091583, -0.052187707275152206, -0.04557536542415619, -0.034768104553222656, -0.0200680922716856, 0.025898326188325882, -0.039887335151433945, 0.0682208463549614, 0.012913613580167294, -0.05520947277545929, 0.04376230761408806, 0.00029634431120939553, -0.013224677182734013, -0.01990811713039875, 0.002143010962754488, 0.04074053838849068, -0.0027595849242061377, -0.012735862284898758, 0.03617233783006668, -0.0048748222179710865, -0.01891271024942398, -0.03254621475934982, 0.01921488717198372, 0.007656625937670469, -0.013073588721454144, 0.005785796325653791, -0.05055239424109459, -0.047352876514196396, -0.012149283662438393, -0.0064434753730893135, -0.04262470081448555, 0.0444733090698719, 0.03594126179814339, -0.03647451475262642, 0.003121752757579088, -0.07877925783395767, -0.042553599923849106, 0.06729654222726822, -0.011118327267467976, 0.00896309595555067, 0.005741358734667301, -0.003930519800633192, 0.013669054955244064, -0.01168713066726923, 0.002864013658836484, -0.02685818262398243, 0.01808616891503334, -0.031906310468912125, 0.04724622517824173, 0.029097845777869225, -0.005305868573486805, -0.04209144786000252, 0.047850579023361206, -0.018646083772182465, 0.0438334085047245, 0.0021907815244048834, 0.027426986023783684, -0.026164952665567398, 0.0008076562662608922, -0.02854681760072708, 0.022503281012177467 ]
730,107
mmengine.fileio.backends.local_backend
isdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a directory. Returns: bool: Return ``True`` if ``filepath`` points to a directory, ``False`` otherwise. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/dir' >>> backend.isdir(filepath) True
def isdir(self, filepath: Union[str, Path]) -> bool: """Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a directory. Returns: bool: Return ``True`` if ``filepath`` points to a directory, ``False`` otherwise. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/dir' >>> backend.isdir(filepath) True """ return osp.isdir(filepath)
(self, filepath: Union[str, pathlib.Path]) -> bool
[ 0.006510639563202858, 0.020627954974770546, -0.011063403449952602, -0.017864445224404335, 0.050249021500349045, 0.008941590785980225, 0.0236069243401289, -0.0037213691975921392, -0.07104559987783432, -0.011035299859941006, 0.01226248499006033, -0.0087963892146945, -0.006880668923258781, -0.018482722342014313, -0.03342440724372864, -0.04163062199950218, -0.0017189962090924382, -0.009967368096113205, 0.005264718551188707, -0.05066120624542236, -0.021864507347345352, 0.053883738815784454, 0.07055847346782684, -0.0040867142379283905, -0.024712327867746353, 0.028721757233142853, 0.010566908866167068, 0.0002510284830350429, -0.04391637071967125, 0.03546659275889397, 0.0142297288402915, 0.017695825546979904, 0.009409981779754162, -0.01266530156135559, -0.002808006014674902, 0.03526049852371216, -0.012599727138876915, 0.021152552217245102, -0.06407593190670013, -0.04672671854496002, -0.06490030139684677, 0.050960976630449295, 0.002932129893451929, 0.07786537706851959, 0.008641820400953293, 0.002128838561475277, -0.05912972241640091, -0.031101185828447342, 0.010023574344813824, 0.03162578493356705, 0.06774812191724777, -0.015110304579138756, -0.03121359832584858, -0.019278988242149353, 0.017658352851867676, -0.006594949867576361, 0.05339661240577698, 0.01747099682688713, -0.0026721726171672344, 0.01005167793482542, 0.004665177781134844, -0.03484831750392914, -0.010379551909863949, -0.057143744081258774, -0.009227309376001358, 0.004716700874269009, -0.05373385548591614, -0.02394416555762291, -0.010538805276155472, 0.00796265248209238, -0.10357069224119186, 0.045077983289957047, 0.023513244464993477, -0.008655872195959091, 0.0017599804559722543, 0.023719336837530136, 0.004096082411706448, 0.058942366391420364, -0.021321173757314682, -0.011513059027493, -0.09135504812002182, -0.03456728160381317, -0.014969787560403347, 0.01980358548462391, 0.03121359832584858, 0.030951300635933876, 0.008416992612183094, 0.0142297288402915, -0.049124885350465775, 0.025480488315224648, -0.004166340921074152, -0.03503567352890968, 0.05369638279080391, 0.0021428903564810753, 0.011025932617485523, -0.010894782841205597, 0.021489795297384262, -0.016955766826868057, -0.03998188674449921, -0.019147837534546852, -0.027803709730505943, 0.008037595078349113, 0.06407593190670013, -0.024749798700213432, -0.017864445224404335, -0.017742663621902466, -0.028852906078100204, 0.011709783226251602, 0.00711486442014575, -0.030539115890860558, -0.05433339625597, -0.03867039084434509, 0.016599789261817932, 0.04500304162502289, -0.004555105697363615, 0.0024918420240283012, 0.013358521275222301, -0.052797071635723114, -0.038033377379179, -0.01855766586959362, 0.005091413855552673, 0.02156473696231842, 0.0063560702838003635, -0.02917141281068325, 0.08168745040893555, 0.002960233250632882, 0.04519039765000343, -0.013152428902685642, -0.10521943122148514, 0.0632515698671341, -0.042230162769556046, 0.040431540459394455, 0.008281159214675426, 0.020215770229697227, -0.0029180780984461308, 0.06370121985673904, 0.019204044714570045, 0.002913394244387746, -0.003070305334404111, 0.08798263221979141, 0.05830535292625427, -0.0035269868094474077, 0.010538805276155472, -0.017611514776945114, 0.054595693945884705, 0.06902214884757996, -0.04140579327940941, 0.0012974439887329936, -0.013695762492716312, 0.04466579854488373, -0.04687660560011864, -0.014763695187866688, 0.052459828555583954, 0.027091754600405693, 0.012009553611278534, 0.008459147997200489, -0.03580383583903313, 0.023756809532642365, 0.005583224818110466, -0.000620618520770222, -0.03600992634892464, -0.002850161399692297, -0.004716700874269009, -0.011503691785037518, 0.01792065240442753, 0.027447732165455818, -0.011990818195044994, 0.018229791894555092, -0.034211304038763046, 0.04238004982471466, -0.01067932229489088, -0.019822321832180023, 0.00576589722186327, 0.018745021894574165, -0.0005049844039604068, -0.014726223424077034, 0.05268465727567673, 0.08670860528945923, 0.0019543629605323076, 0.015344500541687012, 0.04279223456978798, 0.0005851964233443141, -0.012684037908911705, 0.038127053529024124, 0.017105652019381523, 0.018398411571979523, -0.012712140567600727, -0.018857436254620552, 0.03449233993887901, 0.04211774840950966, -0.08123779296875, 0.04672671854496002, 0.014388982206583023, -0.02967727556824684, -0.02527439594268799, 0.014632545411586761, 0.09180470556020737, -0.04275476187467575, -0.08063825219869614, 0.03481084480881691, 0.07973894476890564, 0.00015090983652044088, -0.02353198081254959, -0.026567157357931137, -0.010979092679917812, 0.016112662851810455, -0.06201501190662384, 0.037340156733989716, 0.023719336837530136, 0.011082138866186142, -0.01435151044279337, -0.08985619246959686, 0.033368200063705444, 0.049087412655353546, 0.026848191395401955, 0.006847881246358156, -0.037920963019132614, 0.06722352653741837, 0.003480147570371628, 0.015353867784142494, 0.09540195018053055, 0.047326263040304184, 0.014136050827801228, -0.03823946788907051, 0.04095613956451416, -0.027897387742996216, -0.03323705121874809, 0.028759228065609932, -0.037508778274059296, -0.03185060992836952, -0.007199174724519253, -0.010932253673672676, 0.00954581517726183, 0.04234257712960243, 0.036871764808893204, -0.020290713757276535, 0.02441255748271942, 0.01163484062999487, -0.03423003852367401, -0.0005729011609219015, -0.0032576618250459433, -0.038295675069093704, 0.008866648189723492, -0.009470872581005096, -0.053509026765823364, -0.02190198004245758, 0.028028538450598717, 0.00576589722186327, -0.005705006420612335, -0.010997829027473927, -0.04024418443441391, 0.012159438803792, -0.05073615163564682, -0.03623475506901741, -0.003950880840420723, 0.003302159020677209, -0.06460053473711014, 0.06703616678714752, -0.02791612409055233, 0.0043045165948569775, 0.0032763974741101265, -0.010819840244948864, -0.012337427586317062, 0.015494385734200478, 0.025517961010336876, -0.03162578493356705, 0.04163062199950218, -0.01939140073955059, 0.10079781711101532, -0.007377163507044315, 0.053059373050928116, 0.013302314095199108, 0.02778497524559498, 0.001399319153279066, 0.0340239480137825, 0.02390669472515583, -0.009569235146045685, -0.025480488315224648, 0.01825789362192154, 0.054071094840765, -0.02624865062534809, -0.008829176425933838, -0.03138222172856331, -0.050923507660627365, -0.01095099002122879, 0.006955611519515514, -0.009246044792234898, 0.03651578724384308, -0.011157081462442875, 0.046239592134952545, 0.02641727216541767, -0.02180830016732216, 0.008196848444640636, 0.030745208263397217, 0.012721508741378784, 0.04537775367498398, 0.008000124245882034, -0.044066257774829865, 0.01368639525026083, -0.07254444807767868, -0.029639804735779762, 0.05084856227040291, 0.042267635464668274, 0.015972144901752472, -0.01412668265402317, 0.0015234427992254496, -0.004288122523576021, 0.019709907472133636, 0.005695638712495565, -0.0027892703656107187, 0.00250823562964797, 0.02394416555762291, -0.021377380937337875, 0.005742477718740702, 0.08955642580986023, 0.016449904069304466, -0.03724648058414459, -0.08326124399900436, -0.0883573442697525, 0.06231478601694107, -0.04526533931493759, 0.046576835215091705, 0.009686333127319813, 0.020908989012241364, -0.08453527092933655, 0.013283578678965569, 0.029190149158239365, 0.01813611201941967, 0.038557976484298706, 0.018370307981967926, 0.016150133684277534, -0.009054004214704037, 0.07486767321825027, -0.04103108122944832, -0.0052553508430719376, -0.01818295195698738, -0.016196971759200096, -0.038557976484298706, 0.0001033388398354873, 0.08655872195959091, 0.030445437878370285, -0.06564973294734955, -0.004276413004845381, -0.007784664165228605, -0.009063372388482094, -0.0004786374047398567, -0.0027236957103013992, 0.014454556629061699, 0.11323828995227814, 0.06081593036651611, 0.03372417762875557, 0.05954190716147423, -0.024880947545170784, -0.010651218704879284, -0.038052111864089966, 0.02340083196759224, 0.03882027417421341, 0.09480240941047668, -0.007831503637135029, 0.015719212591648102, 0.04106855392456055, -0.011035299859941006, -0.00015544737107120454, -0.0012506048660725355, 0.002559758722782135, -0.03986947238445282, 0.04069383814930916, -0.0420428067445755, 0.043991316109895706, 0.06197754293680191, 0.07344376295804977, -0.006501271855086088, 0.007929865270853043, -0.012655934318900108, 0.0043443297035992146, -0.0092319929972291, 0.025517961010336876, -0.07250697910785675, 0.03141969069838524, 0.019915999844670296, -0.018435882404446602, 0.03655325993895531, 0.05433339625597, 0.04241751879453659, 0.01067932229489088, 0.06388857960700989, 0.05609454587101936, -0.018745021894574165, -0.07201985269784927, -0.06134052947163582, -0.040431540459394455, -0.006665208842605352, -0.006726099643856287, -0.04316694661974907, -0.045152924954891205, -0.0726943388581276, 0.022370370104908943, 0.00037266386789269745, -0.004260019399225712, -0.03526049852371216, 0.06328903883695602, -0.027279112488031387, -0.020740369334816933, 0.05650673061609268, -0.028721757233142853, 0.04350418969988823, 0.04069383814930916, 0.04560258239507675, -0.03230026736855507, -0.07258192449808121, 0.06362628191709518, -0.05594466254115105, 0.0016346857883036137, 0.0011071600019931793, -0.026885662227869034, 0.03653452545404434, -0.029021527618169785, -0.03364923223853111, 0.0701088160276413, -0.003318552626296878, -0.006215553265064955, -0.04608970880508423, -0.025255661457777023, -0.0017857420025393367, 0.018670078366994858, 0.021040139719843864, -0.006740151438862085, -0.028197158128023148, 0.018960481509566307, -0.025817731395363808, -0.02353198081254959, -0.015100936405360699, 0.02829083614051342, -0.046914078295230865, 0.006229605060070753, -0.0298833679407835, -0.053846269845962524, -0.018735652789473534, -0.04414119943976402, -0.005489546339958906, -0.057818226516246796, -0.0019520209170877934, -0.05609454587101936, 0.007077393122017384, -0.009911160916090012, -0.014707488007843494, 0.002873580902814865, -0.0369279719889164, 0.06089087575674057, 0.012599727138876915, -0.03582257032394409, 0.006135926581919193, 0.09525206685066223, 0.005887679290026426, -0.05470810830593109, 0.018876170739531517, -0.011063403449952602, 0.02767256088554859, -0.0015972144901752472, -0.017527204006910324, -0.02519945427775383, 0.012496680952608585, 0.04717637598514557, -0.04159315302968025, 0.011756622232496738, 0.03614107519388199, 0.00004559497028822079, 0.0020363314542919397, 0.006702680140733719, 0.030932564288377762, -0.004918109159916639, -0.004346671514213085, -0.010623116046190262, 0.01591593772172928, 0.026810720562934875, 0.04593982174992561, 0.0006370122428052127, 0.00387593824416399, -0.040618896484375, -0.004744804464280605, -0.025255661457777023, -0.02557416819036007, -0.03636590391397476, 0.027297846972942352, 0.006093771196901798, -0.028103480115532875, -0.02608002908527851, 0.07198238372802734, 0.02519945427775383, -0.052759598940610886, 0.05482052266597748, 0.005142936948686838, 0.024225199595093727, -0.06602444499731064, 0.03314337134361267, -0.0015351526672020555, -0.04286717623472214, 0.03338693454861641, -0.04125590994954109, 0.020908989012241364, 0.010332712903618813, -0.007452106103301048, 0.01307748630642891, 0.05654420331120491, -0.015447546727955341, 0.020047148689627647, 0.013068118132650852, 0.003173351287841797, -0.058155469596385956, 0.008032911457121372, -0.012815186753869057, 0.058942366391420364, -0.05661914497613907, -0.020702896639704704, 0.05631937459111214, 0.05609454587101936, -0.0008975549135357141, -0.014098579064011574, -0.02190198004245758, -0.02523692511022091, -0.003498883219435811, -0.0649377778172493, 0.006913456134498119, 0.021283702924847603, -0.026304857805371284, 0.07868974655866623, -0.014623177237808704, -0.03134474903345108, 0.001456697122193873, 0.0012166465166956186, 0.018735652789473534, 0.023850487545132637, -0.017021341249346733, 0.03022060915827751, 0.042192693799734116, 0.015025993809103966, -0.005971989594399929, 0.013461567461490631, -0.033162105828523636, -0.007264749612659216, 0.0038033376913517714, -0.021995658054947853, -0.01939140073955059, -0.017161859199404716, 0.048038214445114136, -0.015737948939204216, -0.010145356878638268, -0.06407593190670013, 0.04429108649492264, 0.03200049698352814, -0.023681866005063057, -0.002128838561475277, -0.02377554401755333, 0.014951051212847233, 0.078389972448349, 0.04938718304038048, 0.01575668528676033, -0.017189962789416313, -0.014033004641532898, -0.046576835215091705, -0.029058998450636864, -0.0311761274933815, -0.01675904169678688, 0.020702896639704704, 0.04710143432021141, -0.029696011915802956, 0.05054879188537598, -0.015353867784142494, 0.017143122851848602, -0.05186028778553009, 0.04279223456978798, -0.03732142224907875, -0.007161703426390886, -0.015363235957920551, 0.013545877300202847, 0.0337616465985775, 0.003016440197825432, 0.008449779823422432, -0.011644208803772926, 0.006585582159459591, -0.02971474640071392, -0.03870785981416702, -0.014997891150414944, 0.0012974439887329936, -0.06564973294734955, -0.05099844932556152, -0.0167215708643198, 0.028459457680583, -0.050960976630449295, -0.021752094849944115, 0.014670017175376415, 0.019147837534546852, 0.06501271575689316, 0.002124154707416892, 0.013939326629042625, -0.021658414974808693, 0.012590358965098858, -0.018079906702041626, 0.1010226458311081, -0.004236599896103144, -0.029752217233181, -0.03250635787844658, -0.01725553721189499, -0.022576462477445602, 0.0035105932038277388, -0.005283454433083534, 0.03151337057352066, 0.006103139370679855, -0.05590718984603882, -0.021208759397268295, 0.019990943372249603, 0.015513121150434017, 0.04065636917948723, 0.021620944142341614, 0.100647933781147, 0.04575246572494507, 0.015278925187885761, -0.07119548320770264, -0.009911160916090012, -0.03400520980358124, 0.005831472110003233, -0.04384142905473709, 0.05736857280135155, -0.0009660571231506765, -0.006131242495030165, -0.05227247253060341, 0.03600992634892464, -0.00927883293479681, -0.000230682737310417, -0.05193523317575455, 0.0181735847145319, 0.003388811368495226, -0.013208636082708836, -0.0231572687625885, -0.02795359492301941, -0.084085613489151, -0.03467969596385956, -0.05515776574611664, 0.06287685036659241, -0.07468031346797943, -0.04653936251997948, -0.033199578523635864, -0.005100781563669443, -0.009911160916090012, 0.02047806978225708, -0.05002419650554657, 0.01266530156135559, -0.009054004214704037, 0.05774328485131264, 0.005316241644322872, -0.01424846425652504, 0.04897499829530716, -0.037883490324020386, -0.07213226705789566, -0.014107947237789631, 0.02611750178039074, 0.04526533931493759, -0.0035995873622596264, 0.02958359755575657, -0.014426453039050102, 0.02686692774295807, -0.05283454433083534, -0.014501395635306835, -0.0007763586472719908, 0.012590358965098858, 0.009288200177252293, -0.005297506228089333, 0.007653514388948679, 0.029358768835663795, -0.013545877300202847, -0.003964932635426521, 0.08063825219869614, -0.01942887343466282, -0.026529686525464058, 0.03941981494426727, 0.0055035981349647045, -0.04934971034526825, -0.051710404455661774, -0.01592530496418476, 0.01514777634292841, -0.07520491629838943, 0.07453043013811111, -0.02252025529742241, 0.01441708579659462, -0.00804227963089943, -0.012000186368823051, 0.03990694135427475, -0.03237520903348923, 0.01760214753448963, -0.032824866473674774, -0.025873938575387, -0.02767256088554859, 0.0158784668892622, -0.01952255144715309, 0.027279112488031387, -0.03327452018857002, 0.05864259600639343, 0.0580805279314518, -0.0231572687625885, -0.02282002568244934, 0.01972864381968975, -0.0077331410720944405, -0.009072740562260151, -0.016028352081775665, 0.06505019217729568, -0.028140950947999954, -0.015241454355418682, 0.029489919543266296, 0.033030956983566284, -0.015944041311740875, -0.007634778972715139, 0.013976797461509705, 0.010295242071151733, -0.07112053781747818, 0.03025807999074459, -0.03795843571424484, -0.029452446848154068, 0.009929896332323551, 0.08948148041963577, -0.08198721706867218, 0.01896984875202179, -0.08243687450885773, -0.018323469907045364, -0.024262672290205956, -0.025461753830313683, -0.06227731332182884, -0.0071944911032915115, 0.0131617970764637, -0.025873938575387, 0.025892673060297966, -0.005742477718740702, -0.007456790190190077, -0.012552888132631779, 0.019709907472133636, -0.053883738815784454, 0.005934518296271563, -0.029152676463127136, 0.054595693945884705, 0.027091754600405693, 0.018501458689570427, 0.01808927394449711, 0.021958185359835625, 0.06280191242694855, -0.08940654247999191, 0.03419256955385208, 0.022801291197538376, 0.031026242300868034, -0.03874533250927925, 0.0024356350768357515, -0.013883119449019432, 0.03363049775362015, -0.03874533250927925, -0.053509026765823364, -0.012131336145102978, -0.01435151044279337, -0.0018384360009804368, -0.043354302644729614, 0.0074848937802016735, -0.021171288564801216, -0.05216005817055702, -0.03087635710835457, -0.014463924802839756, 0.0030492276418954134, -0.030895093455910683, 0.0008120734710246325, 0.014473292045295238, -0.059317078441381454, 0.015456913970410824 ]
730,108
mmengine.fileio.backends.local_backend
isfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns: bool: Return ``True`` if ``filepath`` points to a file, ``False`` otherwise. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.isfile(filepath) True
def isfile(self, filepath: Union[str, Path]) -> bool: """Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns: bool: Return ``True`` if ``filepath`` points to a file, ``False`` otherwise. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.isfile(filepath) True """ return osp.isfile(filepath)
(self, filepath: Union[str, pathlib.Path]) -> bool
[ 0.03299793228507042, -0.07327894121408463, -0.021027544513344765, 0.012698695063591003, 0.027451591566205025, -0.029244348406791687, 0.06401636451482773, -0.0057797739282250404, -0.03686356544494629, -0.03359551727771759, 0.04395989328622818, 0.0015266445698216558, 0.0008689502137713134, -0.037759944796562195, -0.02521064504981041, 0.01028967835009098, 0.03355817124247551, -0.044221337884664536, 0.014416754245758057, -0.011820991523563862, -0.030495543032884598, -0.0004400191246531904, 0.05538871884346008, 0.012091772630810738, 0.0239594504237175, 0.05157911032438278, -0.019888397306203842, -0.008118761703372002, 0.006036548875272274, -0.008487584069371223, 0.013053511269390583, -0.01290411502122879, 0.023604633286595345, -0.02526666782796383, 0.009131856262683868, 0.020803451538085938, -0.01485560555011034, 0.02651786431670189, -0.03673284500837326, -0.04564060643315315, -0.053857408463954926, 0.0529983788728714, -0.0016025099903345108, 0.08015117794275284, -0.04384784772992134, 0.010635157115757465, -0.07021631300449371, 0.011970387771725655, 0.03271781653165817, 0.021158266812562943, 0.06797537207603455, -0.016965830698609352, -0.03854427486658096, 0.00582646019756794, -0.031335897743701935, -0.034491896629333496, 0.025677509605884552, 0.04198039323091507, -0.05038394033908844, 0.009514683857560158, 0.02704075165092945, -0.0401129387319088, 0.035948511213064194, -0.08523065596818924, 0.007768613751977682, 0.011410151608288288, -0.021681154146790504, -0.04989840090274811, -0.005849803332239389, 0.0001930190046550706, -0.04765745624899864, 0.050720084458589554, 0.005060803610831499, -0.01194237545132637, 0.0025817567948251963, 0.0008730352856218815, 0.009276583790779114, 0.05538871884346008, -0.018795937299728394, -0.011718281544744968, -0.04332495853304863, -0.05034659057855606, -0.00711967283859849, 0.01459416188299656, 0.02011249214410782, -0.000559069390874356, 0.050794780254364014, -0.0100282346829772, -0.018870634958148003, 0.07738734036684036, 0.004059380851686001, -0.008090749382972717, 0.026928704231977463, -0.02057935670018196, 0.05602365359663963, -0.0323069728910923, 0.03985149413347244, -0.037181030958890915, -0.02061670459806919, -0.026275094598531723, -0.0491887703537941, -0.003760587889701128, 0.03734910488128662, -0.021475734189152718, 0.02188657410442829, 0.014052600599825382, 0.015042351558804512, 0.022148018702864647, 0.037722595036029816, -0.04534181207418442, -0.052624888718128204, -0.05430559813976288, 0.004248460754752159, 0.05927302688360214, -0.000945399166084826, -0.04776950180530548, 0.02130766399204731, -0.005247549153864384, -0.0031606678385287523, -0.016779085621237755, -0.0036181944888085127, -0.005882483907043934, -0.01909472979605198, -0.008342855609953403, 0.06700429320335388, -0.028254596516489983, 0.04007558897137642, -0.03277383744716644, -0.04534181207418442, 0.006405371241271496, -0.03602321073412895, 0.012539961375296116, 0.0050934841856360435, 0.0466490313410759, -0.041644249111413956, 0.05094417557120323, 0.012680021114647388, 0.004285809583961964, 0.007628554478287697, 0.07066450268030167, 0.03241902217268944, -0.020859474316239357, -0.020280562341213226, -0.0037185701075941324, 0.026013650000095367, 0.04440808296203613, -0.0009909183718264103, -0.03734910488128662, 0.003914652857929468, 0.053857408463954926, -0.0054529691115021706, -0.015798671171069145, 0.008300838060677052, 0.001765912282280624, 0.018795937299728394, -0.03178408741950989, 0.00028157723136246204, 0.02267090603709221, -0.02976723574101925, 0.0013679108815267682, -0.025360042229294777, 0.038506925106048584, -0.016723060980439186, -0.0027544964104890823, 0.017507392913103104, 0.00968275498598814, -0.07376448065042496, 0.036471400409936905, -0.006340010557323694, 0.0350334607064724, -0.03042084537446499, -0.019664302468299866, -0.0033450790215283632, 0.04216713830828667, 0.04481892287731171, -0.033950336277484894, 0.051355019211769104, 0.06730308383703232, 0.031261198222637177, 0.0386563204228878, 0.02061670459806919, -0.04209243878722191, -0.021681154146790504, 0.028217248618602753, 0.0333900973200798, 0.039814144372940063, -0.015350481495261192, -0.013165558688342571, 0.07447411119937897, 0.043026167899370193, -0.03932860493659973, 0.026779307052493095, 0.03208288177847862, -0.010196304880082607, -0.023343190550804138, -0.04855383560061455, 0.09718237072229385, -0.015583913773298264, -0.12138458341360092, 0.026723284274339676, 0.04530446231365204, -0.03288588672876358, -0.02203597128391266, -0.000440894509665668, -0.03555634617805481, 0.026741957291960716, 0.0017273960402235389, 0.012259842827916145, 0.004642960615456104, 0.05867544189095497, -0.041569553315639496, -0.09875103086233139, -0.028291946277022362, 0.05352126434445381, 0.0437358021736145, 0.0656970739364624, -0.06326938420534134, 0.07212112098932266, -0.04254062846302986, 0.04855383560061455, 0.12691225111484528, 0.04967430606484413, -0.013875192031264305, -0.006974945310503244, 0.0695066824555397, 0.015061026439070702, -0.01417398452758789, 0.04709722101688385, -0.035873815417289734, -0.004453880712389946, -0.014407416805624962, -0.0037839310243725777, 0.032736487686634064, 0.032624442130327225, 0.02128898911178112, 0.008216802962124348, 0.016657700762152672, 0.028721461072564125, -0.03542562574148178, 0.025005225092172623, 0.02915097586810589, 0.0014636180130764842, 0.013968564569950104, -0.020990196615457535, -0.08321380615234375, -0.06304528564214706, 0.03374491631984711, -0.0021942597813904285, -0.057779062539339066, -0.026928704231977463, 0.03279251232743263, 0.014108624309301376, -0.035294901579618454, -0.042652677744627, -0.0011461506364867091, 0.021531758829951286, -0.042839422821998596, 0.011335453018546104, -0.0014706209767609835, 0.0375731997191906, -0.015836019068956375, 0.03820813447237015, 0.040337033569812775, -0.008478246629238129, 0.004458549432456493, -0.05352126434445381, -0.014342055656015873, 0.015621262602508068, 0.0381147600710392, -0.03895511478185654, 0.05748027190566063, 0.036415375769138336, 0.015331806614995003, 0.011998399160802364, -0.0031583334784954786, -0.02969253808259964, -0.035929836332798004, 0.015836019068956375, 0.0014799581840634346, 0.055164627730846405, -0.057704366743564606, 0.007717258762568235, 0.0006722838734276593, -0.030738312751054764, -0.0071710278280079365, 0.001074370346032083, -0.03174673765897751, 0.030140725895762444, -0.0213263388723135, 0.012483937665820122, 0.003209688700735569, -0.005228874273598194, -0.014089949429035187, -0.006900246720761061, -0.011849002912640572, 0.06371757388114929, 0.00519152544438839, -0.03822680935263634, 0.04582735151052475, -0.08067406713962555, 0.003279718104749918, 0.04336230829358101, 0.013165558688342571, -0.014360730536282063, -0.0028992241714149714, -0.0012780396500602365, -0.024034148082137108, -0.014342055656015873, -0.03441719710826874, 0.00861363671720028, 0.011475511826574802, -0.01927213743329048, -0.031242525205016136, -0.016293546184897423, 0.10084258019924164, 0.04149485379457474, -0.011232743039727211, -0.08859207481145859, -0.039067164063453674, 0.013380316086113453, -0.028758808970451355, 0.030252773314714432, 0.01702185347676277, 0.022129343822598457, -0.033240702003240585, -0.015453191474080086, 0.01454747561365366, -0.026648584753274918, -0.022428136318922043, 0.012474600225687027, 0.04989840090274811, 0.016741735860705376, 0.07708854973316193, -0.03441719710826874, -0.03766657039523125, -0.024370290338993073, -0.00007145204290281981, -0.004540250636637211, 0.00630732998251915, 0.08044996857643127, 0.02976723574101925, -0.06058024615049362, -0.011158044449985027, -0.006834886036813259, -0.04463217779994011, -0.0013469021068885922, -0.03290456160902977, -0.006512749940156937, 0.0878450945019722, -0.008763033896684647, -0.018590515479445457, -0.0036858897656202316, -0.048068296164274216, -0.026685934513807297, -0.049412865191698074, 0.02057935670018196, 0.006185945123434067, 0.06502478569746017, 0.014995665289461613, 0.03800271451473236, 0.07888130843639374, -0.016340233385562897, -0.030794335529208183, -0.029991330578923225, -0.005364264827221632, -0.015359818935394287, 0.08896556496620178, 0.0453791618347168, -0.02963651344180107, 0.0517285093665123, 0.048852626234292984, -0.009453991428017616, 0.005219537299126387, -0.01753540337085724, -0.008352193050086498, -0.02453836053609848, -0.0005611118976958096, -0.07066450268030167, 0.0100282346829772, 0.03536960110068321, 0.026088349521160126, 0.02961783856153488, 0.018142327666282654, 0.04269002377986908, -0.009215891361236572, 0.059086281806230545, 0.015070362947881222, -0.03479069098830223, -0.03482804074883461, -0.05886218696832657, 0.020803451538085938, -0.020467309281229973, -0.0009459827560931444, -0.044258687645196915, -0.008814388886094093, -0.04433338716626167, 0.028926881030201912, 0.01929081231355667, -0.0029155644588172436, 0.012325203977525234, 0.036546096205711365, -0.007941353134810925, -0.032643117010593414, 0.023399213328957558, -0.028030501678586006, 0.06147662550210953, 0.041046664118766785, 0.059198327362537384, -0.019533582031726837, -0.044856272637844086, 0.04922612011432648, -0.05568751320242882, -0.0370316356420517, -0.03492141142487526, -0.026966052129864693, 0.061663370579481125, -0.050757430493831635, -0.03921655938029289, 0.06054289638996124, -0.027582313865423203, -0.015499877743422985, 0.005985193885862827, -0.02252150885760784, 0.000637269055005163, 0.0016865454381331801, 0.010467085987329483, 0.016965830698609352, -0.011503524146974087, 0.02902025356888771, 0.016648363322019577, -0.029375070706009865, -0.026928704231977463, 0.04474422708153725, -0.03482804074883461, 0.010112269781529903, -0.053894758224487305, -0.03305395692586899, -0.06002001091837883, -0.011064671911299229, -0.014818256720900536, -0.03790934011340141, 0.0001520225196145475, -0.057816412299871445, -0.01421133428812027, -0.0007498999475501478, -0.029897958040237427, -0.02069140411913395, -0.01813299022614956, 0.06663080304861069, 0.00027282352675683796, -0.04720926657319069, 0.01938418485224247, 0.08515595644712448, 0.0012208488769829273, -0.044258687645196915, 0.010681843385100365, -0.017273960635066032, 0.017245948314666748, 0.009005802683532238, 0.00582646019756794, -0.05818990245461464, 0.06360552459955215, 0.053259823471307755, -0.1225050613284111, 0.05677063763141632, 0.009589382447302341, -0.0013177230721339583, 0.004418865777552128, 0.028273271396756172, 0.035855140537023544, -0.0034267802257090807, -0.018011605367064476, -0.03815210983157158, -0.012502612546086311, 0.05501522868871689, 0.035799115896224976, -0.004022031556814909, 0.04635023698210716, -0.03766657039523125, -0.0041037327609956264, -0.011092684231698513, -0.04989840090274811, -0.06920789182186127, 0.04590204730629921, 0.040374379605054855, -0.03469731658697128, 0.014706209301948547, 0.01682577095925808, -0.023417888209223747, -0.05744292214512825, 0.04388519749045372, -0.0053549278527498245, 0.021139591932296753, -0.014351393096148968, 0.03985149413347244, 0.03804006054997444, -0.02840399369597435, 0.07753673940896988, -0.028833508491516113, 0.04216713830828667, 0.009626731276512146, -0.025509437546133995, 0.01264267135411501, 0.10988106578588486, -0.014687535353004932, 0.009785464964807034, 0.00630732998251915, -0.026293769478797913, -0.05942242220044136, -0.011531535536050797, -0.0005307657993398607, 0.05736822262406349, -0.029244348406791687, 0.007465152069926262, 0.03170938789844513, 0.024370290338993073, -0.0006717002834193408, -0.006858229171484709, -0.01160623412579298, -0.014080611988902092, 0.004624285735189915, -0.0827656164765358, 0.0020320245530456305, 0.00047999434173107147, -0.004850714933127165, 0.020355261862277985, -0.029393743723630905, -0.03807741031050682, -0.00803939439356327, 0.00021679987548850477, 0.03086903505027294, 0.01715257577598095, -0.011223405599594116, 0.0031770081259310246, 0.016312221065163612, 0.00615326501429081, -0.0029085613787174225, -0.013987239450216293, 0.0001248131156899035, -0.02455703541636467, -0.004267135169357061, 0.03404370695352554, -0.04956226050853729, -0.021774526685476303, 0.026032324880361557, -0.07025366276502609, -0.01998176984488964, -0.1021871492266655, 0.03294190764427185, -0.004211111459881067, -0.012231831438839436, -0.027376892045140266, 0.02392210066318512, 0.020840799435973167, 0.08605233579874039, 0.0900113433599472, 0.03348347172141075, -0.015033014118671417, -0.024276917800307274, -0.041644249111413956, -0.020336586982011795, -0.027246171608567238, -0.02769435942173004, 0.011008648201823235, -0.04175629839301109, -0.011802316643297672, 0.03301660716533661, -0.0016141815576702356, 0.04930081591010094, -0.0580778568983078, 0.05038394033908844, -0.012820079922676086, 0.031279873102903366, -0.017470043152570724, 0.01755407825112343, -0.007819968275725842, 0.014538138173520565, 0.02978591062128544, -0.003085969714447856, 0.002093884162604809, -0.02713412418961525, -0.05232609435915947, -0.03734910488128662, 0.020168516784906387, -0.0568079873919487, 0.006755519192665815, -0.027582313865423203, 0.04705987125635147, -0.0580778568983078, -0.027358219027519226, 0.027432916685938835, -0.026592561975121498, 0.06513683497905731, 0.011774305254220963, 0.004117738455533981, 0.004892732482403517, 0.027246171608567238, -0.015322470106184483, 0.09449323266744614, -0.006190613843500614, -0.024967875331640244, -0.051280319690704346, -0.002064705127850175, -0.06293323636054993, -0.018833285197615623, 0.02782508172094822, -0.013781819492578506, 0.016564328223466873, -0.014426091685891151, 0.011877015233039856, 0.030159400776028633, 0.019851049408316612, 0.030047353357076645, 0.030122052878141403, 0.09143060445785522, 0.07230786234140396, -0.012474600225687027, -0.020429959520697594, -0.01518241036683321, -0.018954670056700706, 0.015583913773298264, -0.008636980317533016, 0.08889086544513702, 0.04003823921084404, 0.010121607221662998, -0.015854693949222565, 0.04862853139638901, -0.058488696813583374, -0.03294190764427185, -0.023716680705547333, 0.024426313117146492, -0.045491207391023636, 0.002102054189890623, -0.004290478304028511, 0.004705986939370632, -0.10711722820997238, -0.005200862884521484, 0.003905315650627017, 0.04082256928086281, -0.03615393117070198, -0.04922612011432648, -0.08709810674190521, 0.0029949313029646873, -0.018048955127596855, 0.008987127803266048, -0.01264267135411501, 0.002901558531448245, -0.04930081591010094, 0.09658478200435638, -0.0009967541554942727, 0.01755407825112343, 0.06259709596633911, -0.050682734698057175, -0.041046664118766785, -0.0036952269729226828, -0.0023576621897518635, 0.060991086065769196, -0.02323114313185215, 0.0061392588540911674, 0.02194259874522686, 0.03372624143958092, -0.03544430062174797, -0.0018767924048006535, 0.02252150885760784, 0.020149841904640198, 0.012708032503724098, 0.02001911960542202, -0.04254062846302986, -0.008599631488323212, 0.03251239284873009, -0.015565238893032074, 0.09994620084762573, -0.010000222362577915, -0.028814833611249924, 0.06737778335809708, 0.029599163681268692, -0.05042129009962082, -0.011830328963696957, -0.02390342578291893, -0.007026300299912691, -0.009953536093235016, 0.033203352242708206, 0.0008158444543369114, 0.018319735303521156, 0.0010644494323059916, -0.020934171974658966, 0.02399679832160473, -0.001667870907112956, 0.019029367715120316, -0.042241837829351425, -0.02972988598048687, -0.02711544930934906, -0.011830328963696957, -0.022764278575778008, 0.013977902010083199, 0.006634134333580732, 0.03548164665699005, 0.0595344714820385, -0.0166950486600399, 0.002577088074758649, 0.014276694506406784, 0.007805962581187487, 0.008931104093790054, -0.013016162440180779, 0.02580823004245758, -0.003926324658095837, -0.05766701698303223, -0.011176719330251217, 0.03279251232743263, -0.01003757119178772, -0.028030501678586006, -0.008244814351201057, 0.029300371184945107, -0.033875636756420135, 0.025472087785601616, -0.027974478900432587, -0.04735866189002991, -0.016256196424365044, 0.06002001091837883, -0.04978635534644127, 0.007044974714517593, -0.04317556321620941, -0.008949778974056244, -0.022372113540768623, -0.04212978854775429, -0.04403459280729294, -0.011494186706840992, 0.01097129937261343, -0.018534492701292038, 0.009178542532026768, 0.006750850472599268, -0.025714857503771782, -0.038357529789209366, 0.013809830881655216, -0.03675151616334915, -0.02847869135439396, -0.010242992080748081, 0.007712590042501688, 0.01423934567719698, 0.03355817124247551, 0.014351393096148968, -0.017012516036629677, -0.009850826114416122, -0.08015117794275284, 0.024370290338993073, -0.008627642877399921, 0.07820902019739151, -0.03180276229977608, -0.0021370691247284412, 0.02655521221458912, -0.014099286869168282, -0.013286943547427654, -0.022241391241550446, -0.009617393836379051, 0.022129343822598457, 0.029393743723630905, -0.04653698205947876, 0.031317222863435745, -0.012474600225687027, -0.03824548050761223, -0.05176585912704468, 0.01226918026804924, 0.022204041481018066, -0.023063071072101593, 0.005088815465569496, -0.0017250616801902652, -0.08067406713962555, 0.03940330445766449 ]
730,109
mmengine.fileio.backends.local_backend
join_path
Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and any members of \*filepaths. Args: filepath (str or Path): Path to be concatenated. Returns: str: The result of concatenation. Examples: >>> backend = LocalBackend() >>> filepath1 = '/path/of/dir1' >>> filepath2 = 'dir2' >>> filepath3 = 'path/of/file' >>> backend.join_path(filepath1, filepath2, filepath3) '/path/of/dir/dir2/path/of/file'
def join_path(self, filepath: Union[str, Path], *filepaths: Union[str, Path]) -> str: r"""Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and any members of \*filepaths. Args: filepath (str or Path): Path to be concatenated. Returns: str: The result of concatenation. Examples: >>> backend = LocalBackend() >>> filepath1 = '/path/of/dir1' >>> filepath2 = 'dir2' >>> filepath3 = 'path/of/file' >>> backend.join_path(filepath1, filepath2, filepath3) '/path/of/dir/dir2/path/of/file' """ # TODO, if filepath or filepaths are Path, should return Path return osp.join(filepath, *filepaths)
(self, filepath: Union[str, pathlib.Path], *filepaths: Union[str, pathlib.Path]) -> str
[ -0.07908722013235092, -0.03125810623168945, -0.03753167763352394, 0.08259895443916321, -0.030544785782694817, -0.0558951273560524, -0.009446934796869755, 0.009483516216278076, -0.0017455796478316188, -0.01026999857276678, 0.02057657763361931, -0.012537994422018528, -0.03359926491975784, 0.04389669746160507, -0.014504200778901577, 0.005427643656730652, 0.04982275143265724, -0.06339414417743683, 0.030325302854180336, 0.01078212633728981, 0.011477157473564148, 0.008875363506376743, 0.03182510659098625, -0.0007819099118933082, 0.008829637430608273, 0.045652564615011215, -0.02736227586865425, 0.03819012641906738, -0.03310542553663254, -0.005866610910743475, 0.04729869216680527, -0.014193265698850155, -0.009172581136226654, -0.03431258723139763, 0.008701605722308159, 0.02950223907828331, -0.021747155115008354, 0.052676036953926086, 0.07572180032730103, -0.004474262241274118, 0.002179973991587758, 0.023850539699196815, 0.0424700565636158, -0.04828636720776558, -0.014211555942893028, 0.0060906666330993176, -0.02926446497440338, 0.04905455932021141, 0.03133126720786095, -0.0013900621561333537, 0.006488480605185032, 0.0391412228345871, -0.04290902242064476, -0.021655704826116562, 0.00037009260267950594, 0.037440225481987, 0.044847793877124786, -0.0006207267288118601, -0.04349431023001671, -0.05296868085861206, 0.02615511603653431, -0.07535599917173386, 0.04177502542734146, 0.026557501405477524, 0.02491137571632862, 0.028368240222334862, -0.03756825625896454, 0.024417538195848465, 0.025204021483659744, -0.010388885624706745, -0.02827678993344307, 0.009401209652423859, -0.04294560104608536, -0.07550232112407684, -0.0059717800468206406, 0.028770627453923225, 0.017595259472727776, 0.013836604543030262, 0.016726471483707428, -0.015674779191613197, -0.049895912408828735, -0.07316116243600845, -0.050554364919662476, -0.015098635107278824, 0.052676036953926086, 0.003271675668656826, -0.04953010752797127, -0.03729390352964401, -0.06752775609493256, 0.008527847938239574, -0.002802987117320299, 0.04053128510713577, -0.01436702348291874, 0.005432216450572014, 0.041628703474998474, -0.029776593670248985, 0.006355876103043556, -0.018555499613285065, 0.008303792215883732, 0.020485125482082367, -0.022442186251282692, -0.0737464502453804, 0.0223690252751112, -0.05461480841040611, 0.031020333990454674, -0.04111657291650772, -0.00021205305529292673, 0.024198055267333984, 0.03283107280731201, -0.0002632087271194905, -0.02728911302983761, -0.05059094354510307, 0.033818747848272324, -0.037934064865112305, -0.02043025568127632, 0.03378216549754143, -0.017741581425070763, 0.023850539699196815, 0.05691938474774361, -0.025880761444568634, 0.009419499896466732, -0.010242562741041183, -0.03623306751251221, 0.01780559867620468, 0.03968993201851845, -0.01861037127673626, 0.008431823924183846, 0.006511343643069267, -0.04236031323671341, -0.045872047543525696, -0.0491643026471138, 0.0749170333147049, 0.020155901089310646, 0.018747547641396523, 0.02068631909787655, 0.040055736899375916, -0.06566214561462402, -0.014485910534858704, 0.05318816378712654, 0.09042719751596451, 0.052676036953926086, -0.0469328872859478, 0.003966706804931164, 0.024893086403608322, 0.07974566519260406, 0.005240168422460556, 0.012757478281855583, -0.04378695785999298, -0.017942775040864944, 0.018052516505122185, -0.01942428946495056, 0.008088881149888039, -0.01581195555627346, -0.0010928448755294085, 0.04181160405278206, -0.011093061417341232, -0.0053179021924734116, 0.06449156254529953, -0.01492487732321024, -0.04528675973415375, 0.010608368553221226, -0.007110350765287876, 0.0038295297417789698, -0.005263030994683504, 0.029008401557803154, 0.0139737818390131, 0.010032224468886852, 0.05852892994880676, 0.01688193902373314, 0.01447676494717598, 0.04104341194033623, -0.03544658422470093, 0.006296432577073574, 0.01771414652466774, -0.03487958386540413, -0.04770107939839363, -0.04225056990981102, 0.049091141670942307, 0.02626485750079155, -0.028532853350043297, -0.007114923093467951, -0.04301876574754715, 0.014842570759356022, -0.004860644694417715, 0.046201273798942566, 0.008340372703969479, -0.004842354450374842, -0.007384704891592264, 0.030197270214557648, -0.008376953192055225, -0.011541173793375492, 0.018930450081825256, 0.03231894224882126, 0.020869221538305283, 0.006323867943137884, -0.08318424224853516, 0.06719852983951569, -0.07191742211580276, -0.0558951273560524, 0.08859816938638687, -0.01401950791478157, -0.008820492774248123, 0.04594521224498749, -0.034038230776786804, 0.04572572559118271, -0.004732612520456314, 0.0064427549950778484, 0.03829986974596977, 0.0059717800468206406, 0.01173322182148695, 0.02202150970697403, -0.009584112092852592, -0.01854635402560234, -0.0436040535569191, -0.005505377426743507, 0.0815746933221817, -0.03250184655189514, 0.017485518008470535, -0.04572572559118271, 0.05395635962486267, 0.028093887493014336, -0.009099419228732586, 0.026392890140414238, -0.009767015464603901, 0.018363451585173607, 0.011504593305289745, -0.026795275509357452, 0.06024821847677231, 0.036928098648786545, -0.028532853350043297, 0.03544658422470093, -0.00813460722565651, -0.0001636123633943498, -0.012976961210370064, 0.021655704826116562, -0.0447380505502224, 0.005052692722529173, 0.014540781266987324, 0.02728911302983761, 0.01719287410378456, 0.02414318360388279, -0.02101554349064827, 0.001559247262775898, -0.07458780705928802, 0.015199231915175915, -0.009702999144792557, 0.01666245423257351, -0.061199311167001724, 0.030819140374660492, -0.02436266653239727, 0.03306884691119194, 0.06427208334207535, 0.009803595952689648, 0.02926446497440338, 0.003369986079633236, 0.04111657291650772, -0.016168616712093353, -0.014403603971004486, -0.025642987340688705, 0.016616730019450188, 0.0340748131275177, 0.023850539699196815, -0.004513129126280546, -0.05490745231509209, -0.0301606897264719, -0.00950180646032095, -0.04210424795746803, -0.040165480226278305, 0.014723683707416058, -0.006154682952910662, -0.06632059067487717, 0.03729390352964401, 0.023996861651539803, 0.015848536044359207, -0.0017158578848466277, 0.0581265427172184, -0.051578618586063385, 0.046896304935216904, -0.020155901089310646, 0.020174190402030945, -0.030032657086849213, 0.018518919125199318, -0.0020142183639109135, -0.055273257195949554, 0.00417247274890542, 0.0004801201284863055, 0.004769193474203348, -0.01832687109708786, -0.033452942967414856, 0.0047874837182462215, 0.06939336657524109, 0.0206680279225111, 0.025953922420740128, 0.013260460458695889, -0.021253317594528198, -0.05183468386530876, 0.06800330430269241, -0.028349950909614563, 0.07959934324026108, -0.06727168709039688, 0.004869789816439152, 0.021930059418082237, 0.0536637119948864, -0.0009185155504383147, 0.00192848255392164, -0.10805904120206833, -0.0029584544245153666, 0.003591755870729685, 0.016735615208745003, 0.018235420808196068, -0.035483162850141525, -0.04378695785999298, -0.051578618586063385, 0.019607191905379295, 0.0771118625998497, 0.0228994432836771, 0.003964420408010483, -0.0036740622017532587, -0.04148237779736519, -0.05106649175286293, -0.018079953268170357, 0.009812740609049797, -0.008363235741853714, 0.01876583881676197, -0.03500761836767197, 0.02233244478702545, 0.002620084211230278, -0.009840176440775394, -0.0017650130903348327, -0.03191655874252319, 0.07356354594230652, 0.009314330294728279, 0.004289073403924704, -0.0064656175673007965, 0.015299827791750431, 0.027087921276688576, 0.012602010741829872, -0.0014918018132448196, 0.015802811831235886, 0.08194050192832947, 0.03954361006617546, -0.027673209086060524, -0.035153940320014954, -0.0050069671124219894, -0.03667203336954117, 0.013882330618798733, 0.03233723342418671, 0.011010754853487015, 0.0195523202419281, -0.03164220228791237, 0.018244564533233643, -0.0223690252751112, -0.018509773537516594, -0.01330618653446436, -0.009995643980801105, 0.04773765802383423, -0.06434524059295654, 0.06855200976133347, 0.022423896938562393, 0.04568914696574211, 0.04210424795746803, -0.012638591229915619, 0.009986498393118382, -0.008326655253767967, 0.034038230776786804, 0.05066410452127457, 0.06043111905455589, 0.03943386673927307, -0.07777031511068344, 0.005830029956996441, 0.008655879646539688, -0.027398856356739998, 0.07352697104215622, 0.003203087253496051, 0.02670382522046566, 0.08084308356046677, -0.01401950791478157, 0.0016244064318016171, 0.009382919408380985, 0.0010882723145186901, -0.03383703902363777, -0.0005215590936131775, 0.045213598757982254, 0.02703304961323738, -0.019972996786236763, 0.10110872983932495, 0.07118581235408783, -0.06076034530997276, 0.0016506987158209085, 0.018034227192401886, 0.010324869304895401, -0.0026360880583524704, -0.011029045097529888, -0.05607803165912628, -0.04872533306479454, -0.025862470269203186, 0.07784347981214523, -0.007947131060063839, 0.018363451585173607, -0.030032657086849213, 0.0036443404387682676, -0.051798105239868164, -0.005679135210812092, 0.032245781272649765, -0.0424700565636158, 0.07996515184640884, 0.008687888272106647, 0.023868829011917114, -0.015555892139673233, -0.02547837421298027, -0.039945993572473526, 0.0028075596783310175, -0.011623479425907135, 0.010544352233409882, 0.04517701640725136, 0.001575251342728734, -0.09481687098741531, -0.0715150386095047, 0.03848277032375336, 0.01968035288155079, -0.08245263248682022, -0.013287896290421486, -0.060943249613046646, 0.013772589154541492, -0.028185337781906128, -0.03383703902363777, 0.014211555942893028, 0.01347079873085022, 0.040165480226278305, -0.013726863078773022, -0.01280320342630148, 0.0018187407404184341, -0.0040101464837789536, -0.0030590512324124575, 0.044518567621707916, 0.030215559527277946, 0.025880761444568634, -0.05216391012072563, 0.04294560104608536, -0.05410268157720566, -0.0037129290867596865, -0.045652564615011215, -0.06397943943738937, -0.026795275509357452, 0.003932412713766098, -0.06215040758252144, -0.060284797102212906, -0.026685534045100212, -0.01178809255361557, 0.015784520655870438, -0.026978179812431335, -0.04148237779736519, 0.06010189652442932, 0.013607976026833057, -0.011385706253349781, 0.004309649579226971, 0.027910983189940453, -0.011650915257632732, 0.01865609735250473, 0.00357803818769753, 0.0019387708744034171, 0.00025463514612056315, 0.13103164732456207, -0.013022687286138535, -0.013900620862841606, 0.00005730005068471655, -0.019497450441122055, 0.006566214375197887, -0.046420756727457047, -0.0042593516409397125, 0.036379389464855194, -0.058492351323366165, -0.06577188521623611, -0.009259459562599659, 0.04627443477511406, 0.057285189628601074, 0.004833209328353405, 0.035684358328580856, 0.02703304961323738, -0.06324782222509384, -0.0658450499176979, -0.0647842064499855, -0.0240151509642601, 0.016607584431767464, 0.056370675563812256, 0.04422592371702194, 0.04078734666109085, 0.06346730887889862, 0.011367416009306908, -0.03877541795372963, 0.058967895805835724, 0.04111657291650772, -0.035684358328580856, -0.017677566036581993, -0.013525670394301414, 0.053371068090200424, -0.07206374406814575, -0.008216912858188152, -0.05483429133892059, 0.030983753502368927, 0.03701954707503319, -0.05845576897263527, -0.026118535548448563, 0.05490745231509209, -0.016909373924136162, 0.07872141152620316, -0.0007779089501127601, 0.04612811282277107, -0.04942036420106888, -0.03665374219417572, 0.0031390711665153503, -0.006026650778949261, -0.024326086044311523, -0.009268605150282383, 0.012757478281855583, -0.02300918661057949, 0.004284500610083342, -0.007979139685630798, 0.012647735886275768, 0.006689673755317926, -0.04276270046830177, 0.03478813171386719, -0.05618777498602867, 0.023100636899471283, -0.03586725890636444, -0.014056088402867317, -0.003088772762566805, 0.016305794939398766, -0.0581265427172184, 0.05183468386530876, -0.023082347586750984, 0.06679613888263702, -0.03162391111254692, 0.03954361006617546, 0.03731219470500946, 0.01889386959373951, -0.05070068687200546, 0.0023125787265598774, 0.023868829011917114, 0.015318118967115879, -0.0046617379412055016, 0.03811696544289589, -0.014238991774618626, -0.03231894224882126, 0.0031116358004510403, -0.07725818455219269, 0.006602794863283634, -0.01229107566177845, 0.08406217396259308, 0.01144972164183855, -0.0023125787265598774, 0.0026566646993160248, 0.029794882982969284, 0.07967250794172287, 0.0351722277700901, -0.0324103944003582, -0.005377345718443394, -0.04294560104608536, -0.04737185314297676, -0.0076270513236522675, 0.003049905877560377, 0.031770236790180206, -0.011385706253349781, 0.00242803618311882, 0.021033834666013718, -0.01749466359615326, 0.013955491594970226, 0.021308189257979393, 0.017750727012753487, -0.07981882989406586, 0.0026086526922881603, 0.020741188898682594, -0.0447014719247818, -0.053151585161685944, -0.0052813212387263775, -0.02359447441995144, -0.015208376571536064, -0.01771414652466774, 0.015994859859347343, 0.05015197768807411, -0.07535599917173386, 0.0380072258412838, -0.03711099922657013, -0.008774766698479652, 0.031111784279346466, 0.009593257680535316, 0.04254321753978729, 0.01889386959373951, -0.037824321538209915, -0.05172494053840637, -0.006159255281090736, -0.038738835602998734, 0.04426250234246254, 0.06306492537260056, 0.008953097276389599, -0.006941165309399366, -0.038153547793626785, 0.03553803637623787, 0.05209074914455414, -0.0257161483168602, 0.010983319953083992, -0.039616771042346954, -0.0007401852053590119, 0.061199311167001724, -0.0424334742128849, -0.0008339229389093816, -0.017266035079956055, 0.02403344213962555, -0.02068631909787655, 0.026520920917391777, 0.04305534437298775, 0.07718502730131149, 0.01139485090970993, 0.045981790870428085, -0.021308189257979393, 0.014275572262704372, -0.04784740135073662, 0.023740798234939575, 0.020850932225584984, 0.03166049346327782, -0.030215559527277946, -0.039616771042346954, -0.0055693937465548515, 0.04393327981233597, -0.04009231552481651, 0.007791663985699415, 0.010599223896861076, -0.031020333990454674, -0.01021512784063816, 0.014668812975287437, -0.004163327626883984, -0.04170186445116997, 0.0014849429717287421, 0.0015718218637630343, -0.006712536793202162, -0.05048120394349098, 0.006822278257459402, -0.030489914119243622, -0.006236989051103592, -0.07056394219398499, -0.02010102942585945, -0.023521313443779945, -0.07616077363491058, -0.05801680311560631, 0.014394458383321762, -0.009547531604766846, -0.04071418568491936, -0.06054086238145828, 0.009190871380269527, -0.019058482721447945, -0.022826282307505608, 0.0032396677415817976, -0.022862862795591354, -0.026795275509357452, 0.017531244084239006, 0.03389190882444382, 0.05410268157720566, -0.060065314173698425, 0.029081562533974648, 0.06621085107326508, 0.016955099999904633, -0.025953922420740128, 0.05183468386530876, 0.03462351858615875, -0.05830944702029228, -0.006451900117099285, 0.013690282590687275, -0.02324695885181427, 0.05070068687200546, 0.002510342514142394, 0.003987283445894718, -0.03881199657917023, -0.014897441491484642, 0.00027306831907480955, 0.07290510088205338, 0.00642903707921505, -0.00673539936542511, -0.017595259472727776, -0.0368732251226902, -0.07297825813293457, 0.017238598316907883, -0.006424464751034975, 0.024289505556225777, -0.03965334966778755, 0.021143576130270958, -0.025295471772551537, 0.018802419304847717, 0.045323342084884644, 0.02471018210053444, 0.00587118323892355, 0.01380916964262724, -0.03489787504076958, -0.009465225040912628, -0.016351519152522087, 0.0028738619294017553, 0.04371379315853119, 0.029136432334780693, -0.06346730887889862, 0.017787307500839233, -0.025533245876431465, 0.014741973951458931, 0.07027129828929901, -0.04492095485329628, -0.031898267567157745, 0.011111351661384106, 0.014449330046772957, 0.04667682200670242, 0.005926054436713457, 0.001789019093848765, -0.0037655136547982693, -0.016113746911287308, 0.03429429605603218, 0.05746809393167496, -0.020393673330545425, 0.03775116056203842, -0.05311500281095505, 0.01854635402560234, -0.02414318360388279, -0.002770978957414627, 0.004250206518918276, 0.011138787493109703, -0.002366306260228157, 0.07188083976507187, -0.05640725791454315, 0.016150327399373055, 0.010187692008912563, 0.017677566036581993, -0.008308365009725094, -0.00768649484962225, 0.042616378515958786, -0.06745459139347076, 0.017787307500839233, 0.03601358085870743, 0.007878542877733707, 0.005587683990597725, -0.01492487732321024, 0.00019990716828033328, 0.00925031490623951, 0.028898660093545914, 0.003006466431543231, -0.038043804466724396, -0.044299084693193436, 0.027417145669460297, -0.044299084693193436, 0.019954707473516464, -0.027106210589408875, 0.02280799299478531, -0.020155901089310646, -0.04159212112426758, 0.02547837421298027, -0.019369417801499367, 0.04166528210043907, -0.01390976645052433, -0.06339414417743683, 0.04525018110871315, -0.024728473275899887, -0.02827678993344307, 0.01593998819589615, -0.035592906177043915, -0.04100683331489563, -0.026447759941220284, 0.03286765143275261, -0.0019524885574355721, -0.0032693895045667887, 0.07056394219398499, 0.045103855431079865, -0.06496711075305939, 0.009103992022573948 ]
730,110
mmengine.fileio.backends.local_backend
list_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns the path relative to ``dir_path``. Args: dir_path (str or Path): Path of the directory. list_dir (bool): List the directories. Defaults to True. list_file (bool): List the path of files. Defaults to True. suffix (str or tuple[str], optional): File suffix that we are interested in. Defaults to None. recursive (bool): If set to True, recursively scan the directory. Defaults to False. Yields: Iterable[str]: A relative path to ``dir_path``. Examples: >>> backend = LocalBackend() >>> dir_path = '/path/of/dir' >>> # list those files and directories in current directory >>> for file_path in backend.list_dir_or_file(dir_path): ... print(file_path) >>> # only list files >>> for file_path in backend.list_dir_or_file(dir_path, list_dir=False): ... print(file_path) >>> # only list directories >>> for file_path in backend.list_dir_or_file(dir_path, list_file=False): ... print(file_path) >>> # only list files ending with specified suffixes >>> for file_path in backend.list_dir_or_file(dir_path, suffix='.txt'): ... print(file_path) >>> # list all files and directory recursively >>> for file_path in backend.list_dir_or_file(dir_path, recursive=True): ... print(file_path)
def list_dir_or_file(self, dir_path: Union[str, Path], list_dir: bool = True, list_file: bool = True, suffix: Optional[Union[str, Tuple[str]]] = None, recursive: bool = False) -> Iterator[str]: """Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns the path relative to ``dir_path``. Args: dir_path (str or Path): Path of the directory. list_dir (bool): List the directories. Defaults to True. list_file (bool): List the path of files. Defaults to True. suffix (str or tuple[str], optional): File suffix that we are interested in. Defaults to None. recursive (bool): If set to True, recursively scan the directory. Defaults to False. Yields: Iterable[str]: A relative path to ``dir_path``. Examples: >>> backend = LocalBackend() >>> dir_path = '/path/of/dir' >>> # list those files and directories in current directory >>> for file_path in backend.list_dir_or_file(dir_path): ... print(file_path) >>> # only list files >>> for file_path in backend.list_dir_or_file(dir_path, list_dir=False): ... print(file_path) >>> # only list directories >>> for file_path in backend.list_dir_or_file(dir_path, list_file=False): ... print(file_path) >>> # only list files ending with specified suffixes >>> for file_path in backend.list_dir_or_file(dir_path, suffix='.txt'): ... print(file_path) >>> # list all files and directory recursively >>> for file_path in backend.list_dir_or_file(dir_path, recursive=True): ... print(file_path) """ # noqa: E501 if list_dir and suffix is not None: raise TypeError('`suffix` should be None when `list_dir` is True') if (suffix is not None) and not isinstance(suffix, (str, tuple)): raise TypeError('`suffix` must be a string or tuple of strings') root = dir_path def _list_dir_or_file(dir_path, list_dir, list_file, suffix, recursive): for entry in os.scandir(dir_path): if not entry.name.startswith('.') and entry.is_file(): rel_path = osp.relpath(entry.path, root) if (suffix is None or rel_path.endswith(suffix)) and list_file: yield rel_path elif osp.isdir(entry.path): if list_dir: rel_dir = osp.relpath(entry.path, root) yield rel_dir if recursive: yield from _list_dir_or_file(entry.path, list_dir, list_file, suffix, recursive) return _list_dir_or_file(dir_path, list_dir, list_file, suffix, recursive)
(self, dir_path: Union[str, pathlib.Path], list_dir: bool = True, list_file: bool = True, suffix: Union[str, Tuple[str], NoneType] = None, recursive: bool = False) -> Iterator[str]
[ 0.02276272140443325, -0.023294838145375252, -0.035277292132377625, 0.01678134873509407, 0.050688937306404114, 0.04505245387554169, -0.014583908952772617, -0.014613470993936062, 0.030015259981155396, -0.06479985266923904, 0.03935684636235237, 0.02047659642994404, -0.01697842963039875, -0.014101062901318073, 0.008794687688350677, 0.026960523799061775, 0.011233551427721977, 0.031828396022319794, -0.026881691068410873, 0.0051733460277318954, -0.01586492732167244, 0.025443008169531822, 0.064721018075943, 0.05191083252429962, 0.0043677822686731815, -0.02607366442680359, -0.02061455138027668, 0.003961305133998394, -0.005749804433435202, 0.020791923627257347, 0.01938280276954174, 0.001545845065265894, 0.008981914259493351, 0.004323439206928015, -0.016692662611603737, 0.036578018218278885, -0.008784834295511246, 0.041465599089860916, -0.07173706591129303, -0.012051432393491268, 0.004510664846748114, -0.05143783986568451, 0.05486702919006348, 0.03732692450284958, -0.014130624942481518, 0.007907829247415066, -0.020831339061260223, -0.009706182405352592, -0.01592405140399933, -0.03159189969301224, 0.03545466437935829, 0.025896292179822922, -0.03961304947733879, -0.07071224600076675, 0.014662740752100945, -0.0028404132463037968, 0.004660938400775194, 0.031375110149383545, 0.06290788948535919, 0.020594844594597816, 0.03559261932969093, -0.0141798947006464, -0.0372086763381958, 0.00482599250972271, -0.034232769161462784, -0.015648139640688896, -0.07142173498868942, -0.0642874464392662, -0.024950308725237846, 0.06030643358826637, -0.03362182155251503, -0.0030522742308676243, 0.03545466437935829, 0.04986120015382767, -0.022841554135084152, -0.001528600580058992, -0.009809649549424648, 0.02406344935297966, -0.0529356449842453, -0.0255612563341856, -0.013460553251206875, 0.016101423650979996, 0.007454545237123966, 0.013371867127716541, 0.044973619282245636, -0.01317478809505701, 0.01613098569214344, -0.02477293647825718, 0.047180913388729095, 0.03908093273639679, -0.010622603818774223, -0.04221450164914131, 0.02217148244380951, 0.006676079705357552, -0.04702325165271759, 0.0008104908629320562, 0.023787537589669228, 0.007947244681417942, -0.02307805046439171, -0.0007002493366599083, -0.03513933718204498, 0.020180976018309593, 0.0437123104929924, -0.012061286717653275, 0.02146199531853199, -0.01912659965455532, -0.05904512107372284, 0.019727692008018494, 0.04103202372789383, -0.0003830739588011056, -0.06093708798289299, 0.036775100976228714, 0.08876476436853409, 0.0009626118699088693, -0.0363021083176136, 0.014978067949414253, -0.021225498989224434, -0.03929772228002548, -0.018742293119430542, -0.01651529036462307, 0.03543495759367943, -0.0035745357163250446, -0.01952075958251953, -0.024674396961927414, -0.011972600594162941, -0.026428407058119774, 0.05522177368402481, -0.026053955778479576, -0.02822183445096016, 0.0661005824804306, -0.017402149736881256, 0.051398422569036484, 0.03500138223171234, 0.025915998965501785, 0.05313272774219513, -0.01405179314315319, -0.020397763699293137, -0.016101423650979996, -0.0223094392567873, 0.06720422953367233, 0.05620717257261276, 0.0040672351606190205, 0.03011380136013031, 0.03334591165184975, -0.01145033910870552, 0.0013721684226766229, -0.0006204936071299016, -0.019333532080054283, 0.009459832683205605, 0.030094092711806297, -0.06661298871040344, -0.024043740704655647, 0.02660577930510044, 0.05494586005806923, 0.005833563394844532, 0.020378056913614273, -0.03945538401603699, 0.008282280527055264, -0.0033922367729246616, 0.02751234732568264, -0.01795397326350212, -0.050176527351140976, -0.012790482491254807, -0.02400432527065277, 0.0009133419371210039, 0.042766325175762177, -0.0763881504535675, 0.02406344935297966, 0.00691257556900382, -0.0075432308949530125, 0.033069998025894165, -0.032537881284952164, 0.017924411222338676, -0.01225836668163538, -0.06905677914619446, 0.04524953290820122, 0.021422579884529114, 0.03732692450284958, -0.005666045472025871, -0.02075250819325447, 0.01997404173016548, -0.023964909836649895, 0.03841086104512215, -0.03890356048941612, -0.03107949160039425, 0.06440569460391998, 0.02126491628587246, -0.014721864834427834, 0.034311600029468536, 0.030034968629479408, -0.07737354934215546, 0.02276272140443325, -0.005828636232763529, -0.06586408615112305, -0.054472871124744415, 0.016347773373126984, 0.019018204882740974, -0.03037000447511673, -0.009445051662623882, -0.02290067821741104, 0.05313272774219513, 0.029680224135518074, 0.06357795745134354, -0.008035930804908276, -0.02743351459503174, 0.04481595754623413, -0.02698023058474064, 0.07295896112918854, -0.014909090474247932, -0.019826233386993408, 0.006252358201891184, -0.050373610109090805, -0.008602535352110863, -0.03537583351135254, 0.0018734902841970325, -0.007626989856362343, -0.021678782999515533, 0.01326347328722477, -0.06373561918735504, -0.00460427813231945, 0.05805972218513489, -0.007799434941262007, -0.05593125894665718, -0.02725614234805107, 0.02211235836148262, -0.006385386921465397, -0.0072279032319784164, 0.0007119509391486645, -0.003904644399881363, -0.03165102377533913, -0.02386637032032013, -0.024694105610251427, 0.01891966536641121, 0.005020609125494957, -0.02646782249212265, -0.023511625826358795, 0.05285681411623955, -0.0025891365949064493, -0.04812689870595932, 0.005592140834778547, 0.00494177732616663, 0.017638646066188812, 0.00026482605608180165, -0.0009404403972439468, -0.0633808821439743, 0.0003242579405196011, 0.053290389478206635, 0.031315986067056656, 0.02627074345946312, 0.013628071174025536, -0.041583847254514694, 0.048087481409311295, -0.0029266357887536287, -0.02146199531853199, 0.02770942635834217, -0.012563840486109257, -0.046983834356069565, 0.05151667073369026, -0.007213122211396694, 0.04000720754265785, 0.017835726961493492, 0.0032592080533504486, -0.023945201188325882, -0.04095319285988808, 0.005528089590370655, -0.04434296488761902, -0.011292675510048866, -0.052580904215574265, 0.01801309734582901, 0.06436628103256226, 0.04343639686703682, -0.06046409532427788, -0.006089767441153526, 0.005454184953123331, 0.0348634235560894, 0.047299161553382874, 0.007149071432650089, 0.0090755270794034, -0.05790206044912338, 0.0339568592607975, -0.031375110149383545, 0.0037962505593895912, -0.03896268457174301, -0.004224899224936962, 0.018693024292588234, 0.025896292179822922, -0.041583847254514694, 0.052265577018260956, -0.040361952036619186, 0.0031458870507776737, 0.06495751440525055, -0.012287928722798824, 0.010455085895955563, -0.023649580776691437, 0.01210070215165615, -0.03415393829345703, 0.03504079580307007, -0.07252538204193115, 0.04994003474712372, -0.07130348682403564, -0.05214732885360718, 0.035080213099718094, 0.0987764224410057, 0.02477293647825718, -0.0018069758079946041, -0.05711374059319496, 0.00959778856486082, -0.020535720512270927, -0.021028419956564903, 0.006764765828847885, -0.0218561552464962, -0.012268220074474812, 0.031315986067056656, -0.02159995026886463, 0.014672594144940376, -0.04418530315160751, 0.012297782115638256, 0.017007991671562195, -0.05861154571175575, 0.01774704083800316, -0.028320373967289925, 0.08096040040254593, -0.022388270124793053, 0.028261249884963036, 0.002192513318732381, 0.03115832433104515, 0.020240100100636482, 0.058690376579761505, 0.05403929203748703, 0.022743014618754387, -0.001501502119936049, -0.04122910276055336, -0.051871415227651596, -0.009735744446516037, 0.02047659642994404, 0.043081656098365784, 0.0035252657253295183, 0.02061455138027668, 0.016091570258140564, -0.005138856824487448, -0.012455446645617485, -0.03734663128852844, -0.04103202372789383, -0.004022892564535141, 0.006296701263636351, 0.013608363457024097, 0.07370786368846893, 0.05092543363571167, 0.07808303833007812, 0.03754371032118797, 0.08395601809024811, 0.016672955825924873, 0.002385897794738412, -0.0260145403444767, 0.015086461789906025, -0.013972961343824863, -0.05396046116948128, 0.08293119817972183, -0.017855433747172356, 0.013381721451878548, 0.004897434264421463, -0.005454184953123331, 0.006395241245627403, 0.000388616812415421, -0.0009564531501382589, -0.02451673336327076, -0.006395241245627403, 0.0013167397119104862, 0.03841086104512215, 0.013046685606241226, 0.015569307841360569, -0.04304223880171776, 0.003719882108271122, -0.06342029571533203, 0.06389328837394714, -0.002470888663083315, 0.006139037199318409, -0.024437900632619858, 0.03778020665049553, 0.10303334146738052, 0.005399987567216158, 0.019757254049181938, 0.0833253562450409, 0.008755272254347801, 0.04702325165271759, 0.0038652285002171993, 0.0680713802576065, -0.0013105809921398759, -0.03291233256459236, -0.07524508237838745, -0.016948867589235306, 0.014790842309594154, 0.027236435562372208, 0.009243045002222061, -0.041859760880470276, -0.06345970928668976, 0.05214732885360718, 0.006947064772248268, -0.01918572373688221, -0.044382382184267044, -0.00039446764276362956, 0.0006522111361846328, -0.034824009984731674, 0.05991227179765701, -0.0393962599337101, -0.009735744446516037, 0.050886016339063644, 0.013371867127716541, -0.0576261468231678, 0.03559261932969093, 0.0010044913506135345, -0.06416919827461243, 0.009139577858150005, 0.0605035126209259, 0.0020816558972001076, 0.08214288204908371, -0.05163491889834404, 0.01723463274538517, 0.03234080225229263, 0.02262476645410061, -0.01756966859102249, -0.10019539296627045, 0.009760379791259766, 0.05120134353637695, 0.06921444088220596, -0.0012822507414966822, 0.019097037613391876, -0.00004176398942945525, -0.04272691160440445, 0.00590254133567214, 0.015529891476035118, -0.006365679204463959, -0.004550080746412277, -0.02861599437892437, 0.05325097590684891, -0.0363021083176136, -0.07008159160614014, -0.07130348682403564, -0.03981012850999832, -0.03994808346033096, -0.04623493179678917, -0.002828095806762576, 0.013194495812058449, 0.030527668073773384, 0.0019954333547502756, -0.002594063524156809, -0.01904776692390442, 0.04942762479186058, 0.009425343945622444, -0.06290788948535919, -0.011874061077833176, 0.007666406221687794, 0.09538664668798447, -0.014672594144940376, -0.014307997189462185, -0.012120410799980164, 0.01867331564426422, -0.010740851983428001, -0.009090308099985123, -0.008893228136003017, 0.037819623947143555, -0.013805443421006203, 0.04221450164914131, -0.040874361991882324, 0.04319990053772926, 0.005858198273926973, 0.03031088039278984, 0.01665324717760086, -0.042963407933712006, -0.08159105479717255, -0.0222306065261364, -0.05691665783524513, -0.060897670686244965, -0.017480982467532158, 0.010730997659265995, 0.007070239633321762, -0.04454004392027855, -0.058887459337711334, 0.0016382262110710144, -0.05711374059319496, -0.019432073459029198, -0.07118523865938187, 0.03429189324378967, -0.009159285575151443, -0.01697842963039875, -0.08671513199806213, 0.07721588015556335, 0.052186742424964905, -0.037681665271520615, -0.053684551268815994, 0.0444612130522728, 0.013155079446732998, -0.012691942043602467, -0.03129627928137779, -0.0675983875989914, 0.0015791022451594472, -0.07323487102985382, 0.011332090944051743, -0.02491089329123497, 0.006947064772248268, 0.03419335186481476, -0.06353854387998581, -0.0019018205348402262, 0.04694442078471184, 0.013677340932190418, 0.03310941532254219, -0.029936429113149643, -0.005542870610952377, -0.03291233256459236, 0.01186420675367117, 0.017461273819208145, 0.04741740971803665, -0.008050711825489998, 0.00674505764618516, -0.009331731125712395, -0.021363455802202225, -0.004397343844175339, -0.00018784172425512224, 0.047969233244657516, -0.0006903953617438674, -0.0539998784661293, -0.02406344935297966, -0.012800335884094238, 0.025147387757897377, 0.02431965246796608, 0.020791923627257347, -0.021560534834861755, -0.03324737027287483, 0.02081163227558136, 0.03636123239994049, -0.03789845481514931, 0.01689959689974785, -0.042963407933712006, 0.020969295874238014, 0.016278795897960663, -0.009794868528842926, 0.02966051734983921, 0.07540275156497955, -0.02782767452299595, -0.019264554604887962, 0.02562038041651249, 0.0801720842719078, -0.018249593675136566, -0.05151667073369026, 0.03783933073282242, -0.03096124343574047, 0.0011880219681188464, -0.01744156703352928, 0.12037637084722519, 0.029305772855877876, -0.007326443213969469, -0.0594392828643322, -0.003569608787074685, 0.07197356224060059, 0.037878748029470444, -0.028694825246930122, 0.020653968676924706, -0.008301988244056702, -0.029680224135518074, -0.025206511840224266, -0.05332980677485466, 0.05683782696723938, -0.10311217606067657, -0.015963466838002205, 0.06767722219228745, 0.043081656098365784, 0.03979042172431946, -0.02699993923306465, 0.03622327744960785, -0.09814576059579849, 0.06401153653860092, -0.041780926287174225, -0.03888385370373726, -0.007119509391486645, 0.008637024089694023, 0.033464156091213226, 0.010711289942264557, -0.01242588460445404, 0.0014115844387561083, -0.01307624764740467, 0.0017355344025418162, -0.06834729015827179, 0.037681665271520615, -0.023964909836649895, -0.030034968629479408, 0.008612389676272869, 0.00572516955435276, 0.029029861092567444, -0.03888385370373726, -0.005454184953123331, -0.01691930554807186, -0.036065611988306046, 0.030468543991446495, -0.01579594984650612, -0.029897011816501617, 0.011539025232195854, -0.04560427740216255, 0.0045032743364572525, 0.0426480770111084, 0.001904283999465406, -0.0321437232196331, 0.016091570258140564, 0.00533100962638855, -0.021225498989224434, -0.010868953540921211, -0.0603458471596241, 0.09246986359357834, -0.011272966861724854, -0.026034247130155563, 0.04631376266479492, -0.028773657977581024, 0.05080718547105789, 0.03310941532254219, -0.028458328917622566, 0.04000720754265785, -0.010346692055463791, -0.003057201160117984, -0.00903611071407795, 0.043081656098365784, -0.039317429065704346, -0.08442900329828262, 0.01885068789124489, 0.001230517285875976, 0.04863930493593216, -0.03831232339143753, 0.005326082929968834, -0.002638406353071332, 0.01076055970042944, 0.006444511003792286, 0.011854352429509163, 0.0008511386113241315, -0.010317130014300346, -0.015529891476035118, 0.027689717710018158, -0.008804542012512684, -0.08797644078731537, -0.01885068789124489, -0.02445760928094387, -0.003044883720576763, -0.042687494307756424, 0.009105089120566845, -0.006459292024374008, 0.013155079446732998, -0.023117465898394585, -0.023058341816067696, -0.01801309734582901, -0.01122369710355997, -0.0050501711666584015, 0.05593125894665718, -0.009543591178953648, 0.0018845760496333241, 0.012465300038456917, -0.06763780117034912, -0.0381152406334877, -0.026763442903757095, 0.05084659904241562, 0.03458751365542412, -0.04714149981737137, 0.04524953290820122, 0.04383055865764618, 0.045367781072854996, -0.01128282118588686, 0.005769512616097927, -0.04651084542274475, -0.0706334188580513, -0.014445953071117401, -0.049269963055849075, 0.016692662611603737, 0.05573417991399765, -0.050688937306404114, 0.043988220393657684, 0.021107250824570656, -0.03874589875340462, -0.03488313406705856, 0.04319990053772926, -0.0063607520423829556, 0.008789760991930962, -0.03429189324378967, 0.03389773517847061, 0.012149972841143608, -0.029818180948495865, 0.05522177368402481, 0.018101783469319344, 0.0949924886226654, 0.004675719421356916, 0.03474517539143562, -0.006001081317663193, -0.019028058275580406, 0.028143001720309258, -0.03023204766213894, -0.06381445378065109, -0.019589737057685852, 0.007942317984998226, -0.05624658986926079, -0.0024844377767294645, 0.032557591795921326, 0.0323605090379715, -0.019796671345829964, 0.0020200684666633606, 0.03172985464334488, -0.007247611414641142, -0.008439944125711918, -0.0014941116096451879, 0.006375533062964678, 0.014978067949414253, -0.009351438842713833, -0.01371675729751587, 0.0047446973621845245, 0.015391935594379902, 0.01544120628386736, 0.014830258674919605, 0.02112695947289467, -0.004288950003683567, -0.05723198875784874, -0.03789845481514931, -0.015579162165522575, 0.059872858226299286, -0.036065611988306046, 0.09034140408039093, -0.020516011863946915, 0.03535612300038338, -0.06121300160884857, -0.029956135898828506, -0.00005496680023497902, 0.022191191092133522, -0.016091570258140564, -0.02380724623799324, -0.03011380136013031, -0.0020828875713050365, 0.060779426246881485, -0.018003243952989578, -0.02400432527065277, 0.048678722232580185, -0.021619658917188644, -0.011381360702216625, -0.024024033918976784, 0.035789698362350464, 0.06539109349250793, -0.037957578897476196, 0.04020429030060768, -0.021422579884529114, 0.03381890058517456, 0.0014891845639795065, 0.010859099216759205, 0.007947244681417942, 0.029798472300171852, 0.06204073503613472, -0.04584077373147011, -0.0000720573152648285, 0.02250651828944683, 0.020910171791911125, -0.0736684501171112, 0.00812461692839861, 0.04651084542274475, -0.025778044015169144, 0.013421137817203999, -0.019028058275580406, -0.026960523799061775, -0.014662740752100945, -0.04591960459947586, -0.018771855160593987, 0.016870034858584404, -0.016091570258140564, -0.00904103834182024, 0.03037000447511673, 0.060897670686244965, -0.008439944125711918, 0.028911612927913666 ]
730,111
mmengine.fileio.backends.local_backend
put
Write bytes to a given ``filepath`` with 'wb' mode. Note: ``put`` will create a directory if the directory of ``filepath`` does not exist. Args: obj (bytes): Data to be written. filepath (str or Path): Path to write data. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.put(b'hello world', filepath)
def put(self, obj: bytes, filepath: Union[str, Path]) -> None: """Write bytes to a given ``filepath`` with 'wb' mode. Note: ``put`` will create a directory if the directory of ``filepath`` does not exist. Args: obj (bytes): Data to be written. filepath (str or Path): Path to write data. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.put(b'hello world', filepath) """ mmengine.mkdir_or_exist(osp.dirname(filepath)) with open(filepath, 'wb') as f: f.write(obj)
(self, obj: bytes, filepath: Union[str, pathlib.Path]) -> NoneType
[ 0.00020008532737847418, -0.003701165784150362, -0.09391845762729645, 0.02041475847363472, 0.018107309937477112, -0.1025846004486084, -0.028376339003443718, 0.09307298064231873, -0.06002890318632126, -0.051609355956315994, 0.027601316571235657, -0.019868720322847366, -0.023726211860775948, -0.03385432809591293, -0.029116131365299225, 0.036778271198272705, -0.004918741527944803, -0.06858935952186584, 0.015148138627409935, 0.044951219111680984, 0.013589289039373398, 0.00942355114966631, 0.06675749272108078, 0.037060096859931946, 0.01861811988055706, -0.0009307958534918725, -0.026544470340013504, 0.014663750305771828, -0.019868720322847366, -0.010172151029109955, 0.05449806898832321, -0.07052691280841827, 0.04354209080338478, 0.0025342307053506374, 0.007182155270129442, -0.018653348088264465, 0.015597298741340637, 0.03853968158364296, -0.03211053088307381, -0.0547446683049202, 0.000009873537237581331, 0.043506864458322525, 0.014522837474942207, -0.001791135291568935, 0.07884077727794647, 0.01955166645348072, 0.004980390891432762, 0.056823134422302246, 0.03073662891983986, 0.015597298741340637, 0.026385944336652756, -0.004491599276661873, -0.023814283311367035, -0.03475264832377434, -0.005200567189604044, 0.03765897825360298, 0.018353907391428947, -0.002899723593145609, -0.052032094448804855, 0.05122184380888939, -0.00807166751474142, -0.03818739950656891, 0.042731840163469315, -0.05502649396657944, 0.008186159655451775, -0.00531946262344718, -0.05974707752466202, 0.0010920751374214888, -0.012004018761217594, 0.010480398312211037, -0.005839079152792692, -0.060205042362213135, 0.044070515781641006, -0.010471590794622898, -0.0402306392788887, 0.03815217316150665, -0.00815093144774437, 0.03614416345953941, 0.030613331124186516, 0.03144119307398796, 0.008388722315430641, -0.05157412588596344, -0.016152143478393555, -0.026967208832502365, -0.01070938166230917, 0.03595040738582611, 0.024941585958003998, -0.023761440068483353, -0.016028843820095062, 0.013774237595498562, -0.026174575090408325, 0.00318815466016531, 0.011290647089481354, -0.030560487881302834, 0.042661383748054504, -0.05241960659623146, 0.02821781113743782, 0.02076704055070877, -0.032198600471019745, 0.04044200852513313, -0.038645368069410324, -0.03443559259176254, 0.02786552906036377, 0.006006413139402866, 0.014707786031067371, -0.05837317556142807, 0.03346681594848633, -0.04361254721879959, -0.005869903601706028, -0.004967180080711842, -0.015896737575531006, 0.0019419561140239239, -0.08229314535856247, -0.0027345912531018257, 0.01669817976653576, 0.022246627137064934, 0.01536831445991993, -0.019674966111779213, 0.031247438862919807, -0.02300403267145157, 0.0005628259968943894, -0.03394239768385887, -0.05051727965474129, 0.000766213983297348, 0.058831144124269485, 0.027548475190997124, 0.08243405818939209, 0.01789594069123268, -0.03216337412595749, -0.0059843952767550945, -0.02922181598842144, 0.023409157991409302, -0.023884739726781845, 0.023233016952872276, 0.005636516492813826, 0.05125707387924194, 0.033484432846307755, -0.039068106561899185, -0.019322684034705162, -0.014593293890357018, 0.03524584323167801, -0.04671263322234154, 0.007212979719042778, -0.04586715251207352, 0.07806575298309326, 0.020361917093396187, -0.0370953269302845, -0.07665662467479706, -0.0332554467022419, 0.024096108973026276, -0.015218595042824745, 0.011255418881773949, -0.017508430406451225, 0.03776466101408005, -0.011449174024164677, -0.011017628945410252, 0.0016094896709546447, 0.004247203469276428, -0.011088085360825062, 0.050024084746837616, 0.006477590650320053, 0.04005449637770653, 0.04097042977809906, 0.014214590191841125, 0.024677375331521034, 0.023250631988048553, -0.010982400737702847, 0.0544276125729084, -0.009194567799568176, 0.004698565229773521, -0.029926380142569542, -0.02471260353922844, -0.044880762696266174, 0.039209019392728806, 0.0610152930021286, -0.004694161470979452, 0.008344686590135098, -0.00942355114966631, 0.025381939485669136, 0.01877664588391781, 0.02450123243033886, 0.00873660109937191, 0.009229796007275581, 0.02221139892935753, 0.013932764530181885, 0.0027500037103891373, -0.007120505906641483, 0.06739160418510437, 0.02083749696612358, 0.01618737168610096, 0.0009632718865759671, 0.045303501188755035, 0.00857366994023323, 0.014029642567038536, 0.012338687665760517, -0.01536831445991993, 0.06686317920684814, -0.08475911617279053, -0.034981630742549896, 0.1199168935418129, 0.021806273609399796, 0.00433307234197855, 0.06570065021514893, -0.03052525967359543, 0.04047723487019539, 0.004518020432442427, 0.040723834186792374, 0.0332554467022419, -0.046959228813648224, 0.005764218978583813, 0.026544470340013504, -0.013025637716054916, -0.025012042373418808, -0.015711789950728416, 0.06633475422859192, 0.00991674605756998, -0.07426110655069351, 0.06288238614797592, 0.007358296308666468, 0.058549318462610245, 0.03617938980460167, 0.03214575722813606, -0.03808171674609184, 0.011598894372582436, 0.04555010050535202, 0.0030340312514454126, 0.0036593324039131403, -0.055273089557886124, -0.01630186289548874, -0.03440036624670029, -0.00859568826854229, 0.03351965919137001, 0.02936272881925106, -0.018371520563960075, 0.03253326937556267, 0.04019540920853615, -0.01256767101585865, 0.0086661446839571, -0.044000059366226196, -0.0035998846869915724, 0.05252528935670853, -0.041217029094696045, -0.015262629836797714, 0.03931470215320587, -0.013862308114767075, 0.012461986392736435, 0.027249034494161606, -0.034629348665475845, -0.018301064148545265, -0.07168944925069809, 0.03681349754333496, 0.013386727310717106, -0.055343545973300934, -0.015024839900434017, 0.03159972280263901, -0.02499442920088768, 0.0454091876745224, -0.03330828994512558, -0.01367735955864191, 0.041498854756355286, -0.0703507736325264, -0.020009635016322136, 0.023831896483898163, -0.00432206317782402, 0.009036040864884853, -0.014196976087987423, -0.045726239681243896, -0.008961181156337261, 0.012338687665760517, 0.04547964408993721, -0.008269826881587505, 0.043365951627492905, -0.0006258515059016645, 0.0023757037706673145, 0.01898801513016224, -0.053617365658283234, -0.02207048609852791, 0.03787034749984741, 0.006279431749135256, -0.0005551198264583945, -0.03066617250442505, -0.030243434011936188, 0.024184178560972214, -0.037412378937006, 0.032480426132678986, -0.006112097762525082, -0.009617306292057037, 0.0033488834742456675, -0.021365920081734657, -0.029380343854427338, -0.03015536442399025, 0.026192188262939453, -0.058549318462610245, 0.019005630165338516, 0.02400803752243519, 0.010084080509841442, -0.05946525186300278, -0.02228185534477234, 0.07679753750562668, -0.04160453751683235, -0.018512435257434845, 0.08363181352615356, 0.03593279421329498, 0.04484553635120392, 0.021242622286081314, -0.004874706268310547, 0.025241026654839516, -0.03378387168049812, -0.03043719008564949, 0.022000029683113098, 0.0443875677883625, -0.03804648667573929, -0.013862308114767075, 0.06256533414125443, 0.08123629540205002, 0.042309101670980453, 0.010154536925256252, -0.009731798432767391, -0.047381967306137085, 0.007723789196461439, 0.02092556841671467, -0.04547964408993721, -0.025470009073615074, -0.008679354563355446, 0.04618420824408531, -0.04484553635120392, 0.02400803752243519, 0.01303444430232048, -0.004584073089063168, -0.034981630742549896, 0.02141876332461834, 0.024888744577765465, 0.06122666224837303, 0.021894345059990883, 0.01948121003806591, -0.008494406938552856, -0.020291460677981377, 0.002705968450754881, 0.02428986318409443, 0.06432674825191498, 0.062213052064180374, -0.007996807806193829, 0.022616522386670113, 0.0209784097969532, -0.021788660436868668, 0.012690969742834568, -0.05263097584247589, -0.01475182082504034, -0.008327072486281395, 0.08490002900362015, -0.05650607869029045, 0.006275028456002474, 0.014047256670892239, -0.021929573267698288, -0.015799861401319504, -0.02413133718073368, 0.030331505462527275, -0.028112126514315605, -0.011255418881773949, -0.08560459315776825, -0.0032167776953428984, 0.014716592617332935, -0.026738226413726807, -0.014522837474942207, -0.03861013799905777, -0.01735870912671089, 0.0242722500115633, 0.0613323450088501, -0.004456371068954468, 0.020714199170470238, 0.055343545973300934, -0.020784655585885048, -0.005455972161144018, 0.04047723487019539, 0.051961638033390045, 0.010075273923575878, 0.004271422978490591, -0.024694988504052162, -0.0035052087623625994, 0.02901044674217701, 0.041639767587184906, -0.0007221787236630917, 0.025734221562743187, 0.006437958683818579, 0.04875586926937103, 0.02835872396826744, 0.0620369128882885, 0.010057659819722176, 0.017085691913962364, -0.008463582023978233, 0.010180958546698093, 0.02436031959950924, 0.009405937045812607, -0.06238919496536255, -0.00028870636015199125, -0.0144699951633811, 0.04174545034766197, 0.02849963679909706, -0.00262230122461915, -0.00977583322674036, 0.023373929783701897, -0.05227869004011154, -0.040864747017621994, 0.06474948674440384, 0.00906246155500412, 0.058056119829416275, -0.03228667005896568, 0.03808171674609184, 0.03660212829709053, 0.009934360161423683, -0.01983349211513996, 0.006015220191329718, 0.005993202328681946, -0.035703811794519424, 0.0032409969717264175, 0.014989611692726612, -0.03285032510757446, -0.07813621312379837, 0.0006902531022205949, -0.015218595042824745, -0.04333072155714035, -0.00021233264124020934, 0.03029627725481987, -0.003146321279928088, -0.03214575722813606, -0.04030109569430351, 0.010180958546698093, -0.10110501945018768, 0.023831896483898163, 0.011704578995704651, 0.058267489075660706, -0.04340117797255516, -0.004989197943359613, -0.003855289425700903, 0.01912892796099186, -0.01618737168610096, 0.0004998004878871143, -0.04808653146028519, -0.01375662349164486, 0.04089997336268425, 0.03159972280263901, -0.05115138739347458, -0.028200197964906693, 0.00174049474298954, -0.06922347098588943, 0.004751407541334629, -0.04153408110141754, -0.013571674935519695, 0.08074310421943665, 0.043154582381248474, 0.02076704055070877, -0.05330030992627144, 0.0370953269302845, 0.005262216553092003, -0.007935158908367157, -0.029891151934862137, -0.02714334987103939, -0.07158376276493073, -0.02406088076531887, -0.005455972161144018, -0.009036040864884853, 0.012004018761217594, 0.10462784022092819, -0.0478399358689785, -0.02929227240383625, -0.0025672572664916515, 0.005966781172901392, 0.003630709368735552, 0.0327446386218071, -0.02772461622953415, 0.004156930837780237, -0.010154536925256252, -0.020309073850512505, 0.022017642855644226, 0.04005449637770653, 0.021225007250905037, 0.009502815082669258, 0.030965613201260567, -0.053828734904527664, -0.05745724216103554, 0.010013624094426632, -0.020027248188853264, -0.019815878942608833, 0.052454832941293716, 0.024694988504052162, -0.005993202328681946, 0.009458779357373714, 0.029838310554623604, 0.10300733894109726, 0.005169742740690708, 0.0066185034811496735, 0.021506832912564278, -0.041287485510110855, -0.028746234253048897, -0.021295463666319847, 0.04326026514172554, -0.045303501188755035, 0.036566901952028275, -0.09941406548023224, -0.021718204021453857, -0.026879139244556427, -0.039420388638973236, -0.03875105082988739, -0.029838310554623604, -0.025470009073615074, -0.022229012101888657, -0.0164691973477602, -0.0327446386218071, -0.040653377771377563, 0.0032255847472697496, -0.03270941227674484, 0.03251565620303154, -0.04547964408993721, -0.011000014841556549, -0.020608514547348022, 0.03660212829709053, -0.02219378389418125, -0.02349722944200039, -0.04375346004962921, -0.031212210655212402, 0.01983349211513996, -0.04921383410692215, 0.08602733165025711, -0.02872862108051777, 0.0461137518286705, -0.003795841708779335, -0.025698993355035782, -0.0447046235203743, -0.005632113199681044, 0.0211369376629591, -0.015491614118218422, -0.015438771806657314, 0.014144133776426315, -0.006358695216476917, 0.059852760285139084, 0.0009462081943638623, 0.021929573267698288, -0.02686152420938015, 0.03822262957692146, -0.04005449637770653, -0.02041475847363472, -0.0519968643784523, -0.03403047099709511, -0.03825785592198372, 0.021788660436868668, -0.04192159324884415, -0.04047723487019539, -0.05079910531640053, 0.020855112001299858, -0.028323495760560036, -0.001990394899621606, -0.0381169430911541, 0.02571660652756691, 0.08060219138860703, -0.031828705221414566, 0.03475264832377434, 0.005301848519593477, -0.002536432584747672, 0.0075740693137049675, -0.005662937648594379, -0.00998720247298479, 0.05249006301164627, 0.011369911022484303, 0.022722207009792328, 0.04199204966425896, 0.029891151934862137, 0.03614416345953941, 0.008371108211576939, 0.05530831962823868, -0.049812715500593185, 0.02370859868824482, 0.09990725666284561, 0.013501218520104885, -0.030419575050473213, 0.0637630969285965, 0.03787034749984741, -0.02321540378034115, 0.025540465489029884, 0.003007610095664859, -0.029961608350276947, -0.07771347463130951, -0.002765415934845805, -0.062213052064180374, 0.01270858384668827, 0.021436376497149467, -0.035844724625349045, 0.044810306280851364, 0.03316737711429596, -0.0894092470407486, -0.012409144081175327, -0.016574881970882416, 0.035985637456178665, 0.026526857167482376, -0.01992156356573105, 0.04375346004962921, -0.024096108973026276, -0.027266649529337883, -0.05358213558793068, 0.060557324439287186, -0.010365906171500683, -0.004592880140990019, -0.044739849865436554, -0.03966698423027992, 0.03207530081272125, 0.024694988504052162, 0.06925869733095169, -0.06749728322029114, 0.012541249394416809, -0.004132711794227362, -0.01439953874796629, -0.017041655257344246, 0.03059571608901024, 0.04068860411643982, 0.04111134260892868, -0.000023565758965560235, 0.01468136440962553, -0.024818288162350655, -0.006191361229866743, -0.049883171916007996, 0.024325091391801834, -0.030842315405607224, -0.05530831962823868, -0.005861096549779177, 0.0296445544809103, -0.04188636317849159, -0.04685354605317116, 0.021735817193984985, -0.026544470340013504, 0.0035646564792841673, -0.04241478815674782, -0.040653377771377563, 0.028112126514315605, 0.010973593220114708, 0.045373957604169846, 0.03438275307416916, -0.047029685229063034, -0.03646121546626091, -0.003318058792501688, 0.029838310554623604, -0.05143321305513382, -0.016416354104876518, 0.024025652557611465, 0.011158541776239872, -0.02522341161966324, 0.010876716114580631, 0.008379914797842503, 0.019305068999528885, -0.04727628454566002, -0.031617335975170135, -0.02864054962992668, -0.022898348048329353, -0.01726183295249939, -0.005935956723988056, 0.0019166357815265656, 0.04044200852513313, 0.05587197095155716, 0.09737082570791245, -0.023867124691605568, 0.03503447398543358, 0.025329096242785454, 0.005486796610057354, -0.0429784394800663, -0.003989596851170063, -0.03130028024315834, -0.051891181617975235, 0.060768693685531616, -0.004429949913173914, -0.04653649032115936, -0.043436408042907715, -0.03494640439748764, 0.018635733053088188, 0.06503131240606308, -0.028675777837634087, -0.07140762358903885, 0.007992404513061047, 0.01658368855714798, -0.014232204295694828, -0.03179347515106201, -0.013483604416251183, 0.0017812272999435663, -0.03804648667573929, -0.01275261864066124, -0.0020410355646163225, 0.011581280268728733, -0.016812672838568687, 0.06002890318632126, 0.04153408110141754, 0.04889678210020065, -0.013598096556961536, -0.06725069135427475, -0.01812492311000824, -0.00660529313609004, -0.017948782071471214, -0.02966216951608658, -0.022546065971255302, -0.007129312958568335, 0.07130193710327148, 0.019393140450119972, 0.05086956173181534, -0.031987231224775314, -0.019639737904071808, 0.03214575722813606, -0.01389753632247448, -0.01425862591713667, 0.0050816722214221954, -0.0447046235203743, -0.002683950588107109, -0.056611765176057816, 0.04139316827058792, -0.05946525186300278, -0.017790256068110466, -0.010973593220114708, 0.019445981830358505, -0.06386877596378326, -0.011915948241949081, 0.02291596308350563, -0.026526857167482376, 0.029697397723793983, 0.0023184579331427813, -0.04678308963775635, 0.0046369158662855625, 0.007741403300315142, 0.030384346842765808, -0.056823134422302246, 0.030208205804228783, -0.08081355690956116, -0.058478862047195435, 0.013342691585421562, -0.025910362601280212, 0.008230195380747318, 0.04491599276661873, -0.023743826895952225, 0.008939162828028202, 0.009731798432767391, -0.04579669609665871, -0.013237006962299347, 0.014778242446482182, -0.019569281488656998, 0.03307930752635002, 0.06386877596378326, 0.018283450976014137, 0.019586894661188126, 0.009335480630397797, -0.06880073249340057, 0.10878477245569229, -0.010260221548378468, 0.059923216700553894, 0.02950364165008068, -0.01128184050321579, 0.03681349754333496, 0.029468413442373276, -0.041569311171770096, -0.004291238728910685, 0.05308894068002701, 0.0928616151213646, -0.01529785804450512, -0.03371341526508331, 0.03748283535242081, -0.0038156574591994286, -0.020731812343001366, -0.05802089348435402, -0.02686152420938015, 0.00262230122461915, -0.003956570290029049, 0.01225061621516943, 0.06337558478116989, -0.0505877360701561, 0.02420179359614849 ]
730,112
mmengine.fileio.backends.local_backend
put_text
Write text to a given ``filepath`` with 'w' mode. Note: ``put_text`` will create a directory if the directory of ``filepath`` does not exist. Args: obj (str): Data to be written. filepath (str or Path): Path to write data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.put_text('hello world', filepath)
def put_text(self, obj: str, filepath: Union[str, Path], encoding: str = 'utf-8') -> None: """Write text to a given ``filepath`` with 'w' mode. Note: ``put_text`` will create a directory if the directory of ``filepath`` does not exist. Args: obj (str): Data to be written. filepath (str or Path): Path to write data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.put_text('hello world', filepath) """ mmengine.mkdir_or_exist(osp.dirname(filepath)) with open(filepath, 'w', encoding=encoding) as f: f.write(obj)
(self, obj: str, filepath: Union[str, pathlib.Path], encoding: str = 'utf-8') -> NoneType
[ -0.0026687774807214737, -0.009232057258486748, -0.05640074238181114, 0.025209950283169746, 0.052645329385995865, -0.06533723324537277, 0.001397413550876081, 0.06738880276679993, -0.014508760534226894, 0.0006563279894180596, 0.010562099516391754, -0.038875482976436615, -0.0029621690046042204, -0.032668616622686386, -0.02239339053630829, 0.0376584492623806, -0.05977366119623184, -0.06050388142466545, 0.032442595809698105, 0.02188919112086296, -0.008401867933571339, -0.02314099483191967, 0.04384792596101761, 0.021211130544543266, 0.02755708247423172, -0.02251509390771389, -0.04384792596101761, 0.00043845752952620387, -0.01183998305350542, -0.023436561226844788, 0.03449416533112526, -0.07413464039564133, 0.030217166990041733, -0.022028280422091484, -0.04975922405719757, -0.021419763565063477, 0.008706125430762768, -0.04603858292102814, 0.012796223163604736, -0.08039366453886032, -0.0008943012217059731, 0.10925471037626266, 0.012587589211761951, 0.009084274992346764, 0.01713407225906849, 0.008084570057690144, -0.02387121506035328, 0.03209487348794937, 0.003933621570467949, 0.0010752261150628328, 0.003296853043138981, -0.0027622280176728964, -0.05041990056633949, -0.016238685697317123, -0.07058785855770111, 0.011674814857542515, 0.020133187994360924, 0.015977893024683, -0.026235733181238174, -0.046316761523485184, 0.025105632841587067, -0.021541466936469078, 0.06060819700360298, 0.004274825099855661, 0.004387835040688515, -0.013074401766061783, -0.01988978125154972, 0.00831058993935585, 0.01629084348678589, -0.010336079634726048, 0.029087066650390625, -0.06196431815624237, 0.0586957186460495, -0.04197021946310997, -0.009805801324546337, 0.013787235133349895, -0.029573878273367882, 0.05487075820565224, 0.041692040860652924, 0.016647260636091232, -0.020237505435943604, -0.0309126153588295, -0.011605270206928253, -0.03818003460764885, 0.009345067664980888, -0.009431998245418072, -0.007354350760579109, -0.018481500446796417, -0.00149195094127208, -0.024983929470181465, -0.0023036678321659565, -0.03863207623362541, 0.008067184127867222, -0.004772504325956106, -0.0028795849066227674, -0.0336422435939312, 0.03675436973571777, -0.04955059289932251, -0.030217166990041733, 0.030669208616018295, -0.02978251315653324, -0.008910412900149822, 0.037623677402734756, -0.002189571037888527, 0.04603858292102814, -0.0981971025466919, 0.0006128625827841461, -0.03009546361863613, 0.038771163672208786, 0.014595692045986652, -0.009901424869894981, -0.019715920090675354, -0.03755413368344307, -0.002597059588879347, 0.033937808126211166, -0.01661248691380024, -0.05135875195264816, -0.018064232543110847, 0.007354350760579109, -0.07030968368053436, 0.004481285810470581, -0.032442595809698105, -0.06283362954854965, -0.027817875146865845, 0.016012664884328842, 0.003648923011496663, 0.06822334229946136, 0.007923748344182968, 0.021106813102960587, -0.024966543540358543, -0.034876663237810135, 0.022063052281737328, 0.028548095375299454, -0.011683507822453976, 0.02953910641372204, 0.04784674569964409, -0.005867833271622658, -0.005646159406751394, 0.016890665516257286, -0.0011616136180236936, 0.03472018614411354, -0.06405065953731537, -0.016056129708886147, -0.038249578326940536, 0.0276613999158144, 0.048333559185266495, -0.03113863430917263, -0.09638893604278564, -0.03258168697357178, 0.014821711927652359, 0.017203617841005325, -0.00031811260851100087, -0.03146897256374359, -0.0050115641206502914, -0.008667007088661194, -0.012970084324479103, -0.014265354722738266, 0.02799173817038536, -0.020689545199275017, 0.0748300850391388, 0.011257546953856945, 0.058313220739364624, 0.03275554999709129, 0.06547632813453674, 0.0264965258538723, 0.05848708376288414, 0.02672254666686058, 0.002634005155414343, -0.017099300399422646, -0.018690135329961777, 0.006241635885089636, -0.04162249714136124, -0.07128330320119858, 0.053827591240406036, 0.01660379394888878, 0.030999545007944107, 0.016464704647660255, -0.00021624051441904157, 0.04826401546597481, 0.04217885434627533, -0.008788710460066795, -0.03525915741920471, -0.004263958893716335, 0.007189182098954916, 0.01051863469183445, -0.0138306999579072, -0.02230645902454853, 0.06297271698713303, -0.0022928013931959867, 0.008128035813570023, 0.030669208616018295, -0.01051863469183445, -0.0008242132607847452, 0.020689545199275017, -0.018429342657327652, -0.0073369648307561874, 0.06634563207626343, -0.09826664626598358, -0.06314657628536224, 0.07225693017244339, 0.0662413164973259, 0.0264965258538723, 0.0683276578783989, 0.0002969232155010104, 0.05361895635724068, 0.01529983151704073, 0.014734781347215176, 0.02461881935596466, -0.022236915305256844, 0.03372917324304581, 0.023314857855439186, -0.01936819590628147, -0.018359798938035965, 0.018794452771544456, 0.06679767370223999, 0.031399428844451904, -0.07837686687707901, 0.05494030565023422, 0.029330473393201828, 0.03911888599395752, 0.009631939232349396, 0.03668482229113579, -0.039605699479579926, 0.039188433438539505, 0.04826401546597481, -0.0029382631182670593, 0.015551931224763393, -0.0037141211796551943, 0.02387121506035328, -0.04363929107785225, 0.0026057525537908077, 0.011040219105780125, -0.01189214177429676, 0.021072041243314743, 0.008627887815237045, -0.0002235753054264933, -0.03692822903394699, -0.014986880123615265, -0.020324435085058212, -0.027904806658625603, 0.033937808126211166, -0.042978618294000626, -0.017325321212410927, 0.025853238999843597, 0.007006627507507801, 0.026635615155100822, -0.01818593591451645, -0.018029460683465004, 0.020272277295589447, -0.07935049384832382, 0.03988387808203697, 0.029069680720567703, -0.0635986179113388, 0.01036215852946043, -0.020550455898046494, -0.009701483882963657, 0.029730355367064476, -0.03197317197918892, -0.026687774807214737, 0.03510268032550812, -0.036337099969387054, -0.015551931224763393, -0.028426392003893852, 0.02630527876317501, 0.022880202159285545, -0.037310726940631866, -0.06332044303417206, 0.03416382893919945, -0.0073934695683419704, -0.007089211605489254, -0.022010894492268562, 0.06606745719909668, 0.01757742092013359, -0.02545335702598095, -0.023819055408239365, -0.010744654573500156, -0.03751935809850693, 0.04144863411784172, 0.009614553302526474, -0.018359798938035965, -0.016134368255734444, -0.004546483978629112, 0.021524081006646156, -0.06884924322366714, 0.06759744137525558, -0.016803735867142677, 0.004616028629243374, 0.005276703275740147, -0.005789595190435648, -0.019611602649092674, -0.018863996490836143, 0.02251509390771389, -0.02712242864072323, 0.05932161957025528, 0.01435228530317545, 0.019194334745407104, -0.05709619075059891, -0.039292749017477036, 0.02378428354859352, -0.07076171785593033, 0.028913205489516258, 0.05806981399655342, 0.007984600029885769, 0.011335784569382668, -0.013804621063172817, 0.011448794044554234, -0.001336561981588602, -0.015108583495020866, 0.02187180519104004, -0.013109173625707626, 0.023923372849822044, -0.05188033729791641, 0.0075108264572918415, 0.09263352304697037, 0.030686594545841217, 0.05987797677516937, -0.010901129804551601, -0.0501069501042366, -0.03520699962973595, -0.02314099483191967, 0.04662971571087837, -0.06679767370223999, 0.0004045001696795225, 0.0037184676621109247, 0.052645329385995865, -0.05647028610110283, 0.016560329124331474, 0.0004300361033529043, -0.0030273671727627516, -0.036128465086221695, 0.02903490699827671, 0.04503018781542778, 0.04656016826629639, -0.029695581644773483, -0.0026905101258307695, -0.015960507094860077, -0.0019907166715711355, -0.028026510030031204, 0.01808161847293377, 0.06916218996047974, 0.05678324028849602, -0.00852357130497694, -0.03891025483608246, 0.00024666631361469626, -0.008093263022601604, 0.05775686353445053, -0.0004077600606251508, -0.031955786049366, 0.014195810072124004, 0.03977956250309944, -0.04294384643435478, 0.021906577050685883, 0.004174854606389999, -0.039918649941682816, -0.0412747748196125, -0.01610828936100006, 0.012370261363685131, -0.012370261363685131, -0.019924553111195564, -0.10097888857126236, -0.05278442054986954, 0.018811838701367378, -0.032025329768657684, -0.00549403065815568, -0.025540286675095558, -0.0410313680768013, 0.020359206944704056, 0.09026900678873062, -0.01902047172188759, 0.03891025483608246, 0.07079649716615677, -0.01862058974802494, 0.005289742723107338, 0.05827844887971878, 0.05087193846702576, 0.045377910137176514, 0.0044486867263913155, -0.03272077813744545, -0.018916156142950058, 0.02166317030787468, 0.030860455706715584, 0.023697352036833763, -0.0020374420564621687, -0.015099890530109406, 0.034233372658491135, 0.047186072915792465, 0.027331063523888588, -0.0014093666104599833, 0.01476955320686102, -0.025209950283169746, 0.024584047496318817, 0.03292940929532051, 0.0363718718290329, -0.060747284442186356, 0.005168039817363024, 0.010083979927003384, 0.028982749208807945, 0.026531299576163292, 0.02072431705892086, 0.03744981437921524, 0.004007512703537941, -0.03162544593214989, -0.06898833066225052, 0.030982159078121185, 0.0029143572319298983, 0.10355204343795776, -0.037832312285900116, 0.03400735184550285, 0.02136760577559471, 0.02787003479897976, -0.017820825800299644, -0.0006318786763586104, 0.033485766500234604, -0.022132597863674164, 0.005276703275740147, 0.0015332431066781282, -0.024062462151050568, -0.047811973839998245, -0.027174588292837143, 0.00899734441190958, -0.05987797677516937, -0.011770438402891159, 0.01671680435538292, -0.0020070162136107683, -0.020046256482601166, -0.0441608764231205, 0.008971264585852623, -0.09103399515151978, 0.06252067536115646, 0.002397118601948023, 0.02482745423913002, -0.08574860543012619, -0.04694266617298126, 0.016256071627140045, -0.023436561226844788, -0.004216146655380726, -0.011648735031485558, -0.044230423867702484, -0.04082273319363594, -0.005159346852451563, 0.0768468827009201, -0.04795106500387192, -0.020167959854006767, 0.03484188765287399, -0.03280770778656006, 0.02178487367928028, -0.005320168565958738, -0.03522438555955887, 0.044543374329805374, 0.02693118155002594, 0.03852775692939758, 0.022028280422091484, 0.01347428373992443, 0.04099659621715546, -0.008636580780148506, -0.03513745591044426, 0.008401867933571339, -0.061060238629579544, -0.020550455898046494, 0.02639221027493477, -0.060538653284311295, 0.032025329768657684, 0.0748300850391388, -0.04989831522107124, 0.005102841649204493, -0.0059286849573254585, -0.01988978125154972, 0.022741112858057022, -0.01552585233002901, -0.04742947965860367, -0.016742883250117302, 0.013152639381587505, -0.061894774436950684, 0.012274637818336487, 0.025331653654575348, 0.038875482976436615, -0.020567841827869415, -0.01098806131631136, -0.04652539640665054, -0.026322664692997932, 0.03082568384706974, -0.01240503415465355, 0.01540414895862341, 0.03598937764763832, -0.0017440504161641002, 0.011014140211045742, 0.03797139972448349, -0.0011431408347561955, 0.08247999846935272, 0.002870891708880663, 0.039292749017477036, 0.015012959949672222, 0.009492849931120872, -0.0540362223982811, -0.04377838224172592, 0.03386826440691948, -0.058452311903238297, 0.06627608835697174, -0.08797403424978256, -0.02228907309472561, -0.02534903958439827, -0.03028671257197857, -0.03651096299290657, 0.014256661757826805, 0.00038657066761516035, 0.03039103001356125, -0.01476955320686102, 0.011952993459999561, -0.004194414243102074, 0.002510128542780876, -0.033085886389017105, 0.02114158496260643, -0.009962276555597782, 0.008184541016817093, 0.026444368064403534, -0.018255481496453285, -0.038979798555374146, -0.011170615442097187, -0.0276613999158144, -0.01235287543386221, -0.04861173778772354, -0.031399428844451904, 0.027400607243180275, -0.03859730437397957, 0.07156148552894592, -0.0013985002879053354, -0.04638630896806717, -0.014639156870543957, -0.012552816420793533, 0.03738027065992355, -0.0168211217969656, -0.0012398514663800597, 0.012239865027368069, 0.011805211193859577, 0.0532364584505558, -0.0009719957015477121, 0.015447613783180714, 0.0065111215226352215, 0.055600978434085846, 0.03209487348794937, -0.004859435372054577, -0.01935080997645855, -0.06957945972681046, -0.025209950283169746, 0.06804947555065155, -0.06575450301170349, -0.011135843582451344, -0.05834799259901047, 0.04958536475896835, 0.049376729875802994, 0.0034055165015161037, -0.0643983855843544, -0.011440101079642773, 0.09353760629892349, -0.024010304361581802, 0.06384202837944031, -0.0028143867384642363, 0.01089243683964014, 0.019090017303824425, -0.01041431725025177, -0.001368074445053935, 0.02978251315653324, 0.02263679727911949, 0.01288315374404192, 0.05942593887448311, 0.03915366157889366, 0.03346838057041168, 0.012039924040436745, 0.018255481496453285, -0.04186590388417244, 0.039397068321704865, 0.048855144530534744, 0.04795106500387192, -0.051184892654418945, 0.002080907579511404, 0.013283035717904568, 0.022567251697182655, 0.028582867234945297, 0.0010257841786369681, 0.012039924040436745, -0.05480121448636055, -0.019715920090675354, -0.049063779413700104, 0.02955649234354496, 0.04179636016488075, -0.008123689331114292, 0.05421008542180061, 0.023506104946136475, -0.0835927203297615, 0.009631939232349396, -0.007489093579351902, 0.024340640753507614, 0.0545230358839035, -0.026879021897912025, 0.04927241429686546, 0.00008530091145075858, 0.019733306020498276, -0.04134431853890419, 0.07872458547353745, -0.04158772528171539, -0.02828730270266533, -0.04224839806556702, -0.06307703256607056, 0.06488519161939621, 0.011101070791482925, 0.07747278362512589, -0.028478549793362617, -0.016238685697317123, -0.0002196362620452419, 0.009258137084543705, -0.023593036457896233, 0.020689545199275017, 0.01747310347855091, -0.02726151794195175, 0.01936819590628147, 0.015578010119497776, 0.02609664388000965, -0.030425801873207092, 0.01683850772678852, 0.015021652914583683, 0.03786708414554596, -0.02524472214281559, 0.007928094826638699, 0.01704714260995388, -0.01797730289399624, 0.0016636393265798688, 0.026044486090540886, -0.06259021908044815, -0.017281854525208473, -0.055913928896188736, -0.04701220989227295, 0.009405919350683689, 0.007367390673607588, 0.04047501087188721, 0.0079889465123415, -0.016881972551345825, -0.050350356847047806, -0.03322497382760048, 0.02101988159120083, -0.08387089520692825, -0.042352717369794846, 0.010570792481303215, -0.0003020847507286817, -0.04217885434627533, -0.0008388828136958182, -0.008149768225848675, -0.012787530198693275, -0.037936627864837646, -0.0028621985111385584, -0.036441415548324585, -0.008445332758128643, -0.004155294969677925, 0.012909232638776302, -0.025296879932284355, 0.046873122453689575, 0.06290317326784134, 0.07183966785669327, -0.052332378923892975, 0.06283362954854965, 0.03030409850180149, 0.012039924040436745, -0.0010888089891523123, 0.01336127333343029, -0.04815969616174698, -0.01862058974802494, 0.01830763928592205, -0.0031121247448027134, -0.031938400119543076, -0.02639221027493477, 0.006876231171190739, 0.03682391345500946, 0.07552552968263626, 0.0017483970150351524, -0.030895227566361427, 0.042874302715063095, 0.016968904063105583, 0.025835851207375526, -0.048646509647369385, 0.01047516893595457, -0.016369082033634186, -0.04878560081124306, 0.0015712752938270569, -0.01371768955141306, -0.043291568756103516, -0.015821415930986404, 0.034146443009376526, 0.02861763909459114, 0.029417403042316437, 0.03932752087712288, -0.0038162649143487215, -0.03779754042625427, 0.0024883958976715803, -0.061060238629579544, -0.024566661566495895, 0.03512006998062134, -0.03145158663392067, 0.092494435608387, -0.005898259114474058, 0.033607471734285355, -0.02820037119090557, -0.0016842854674905539, 0.03292940929532051, -0.02913922443985939, -0.054662127047777176, -0.036963000893592834, -0.06154704838991165, 0.009605860337615013, -0.04826401546597481, 0.034668028354644775, -0.08074138313531876, -0.04304816201329231, 0.008497491478919983, 0.042317941784858704, -0.05720050632953644, 0.0288262739777565, 0.02241077646613121, 0.010657723993062973, 0.04203976318240166, 0.01441313698887825, -0.08178455382585526, 0.028861045837402344, 0.014013255015015602, 0.03838866949081421, -0.06377247720956802, 0.02251509390771389, -0.04450860247015953, -0.0309126153588295, 0.01744702458381653, -0.0005666805664077401, -0.001891832915134728, 0.01862058974802494, 0.006754527799785137, -0.015221593901515007, -0.0008888680604286492, -0.04294384643435478, 0.018255481496453285, 0.027730945497751236, -0.04162249714136124, 0.018429342657327652, 0.07100512832403183, -0.01736878603696823, 0.019802849739789963, -0.0248100683093071, -0.09263352304697037, 0.09569349139928818, 0.007967213168740273, 0.045482225716114044, 0.01630822941660881, -0.015212900936603546, 0.04558654502034187, 0.02839162014424801, -0.03018239513039589, -0.02472313679754734, 0.032877251505851746, 0.07024013996124268, 0.02463620714843273, 0.02472313679754734, 0.011718280613422394, 0.015134663321077824, 0.010718575678765774, -0.06297271698713303, 0.007176142651587725, 0.01609090343117714, 0.00591999152675271, 0.0009665625402703881, 0.048333559185266495, -0.044439055025577545, 0.009484156966209412 ]
730,113
mmengine.fileio.backends.local_backend
remove
Remove a file. Args: filepath (str or Path): Path to be removed. Raises: IsADirectoryError: If filepath is a directory, an IsADirectoryError will be raised. FileNotFoundError: If filepath does not exist, an FileNotFoundError will be raised. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.remove(filepath)
def remove(self, filepath: Union[str, Path]) -> None: """Remove a file. Args: filepath (str or Path): Path to be removed. Raises: IsADirectoryError: If filepath is a directory, an IsADirectoryError will be raised. FileNotFoundError: If filepath does not exist, an FileNotFoundError will be raised. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.remove(filepath) """ if not self.exists(filepath): raise FileNotFoundError(f'filepath {filepath} does not exist') if self.isdir(filepath): raise IsADirectoryError('filepath should be a file') os.remove(filepath)
(self, filepath: Union[str, pathlib.Path]) -> NoneType
[ -0.009978171437978745, 0.025772297754883766, -0.015348173677921295, 0.001440052641555667, 0.02274354174733162, -0.04675061255693436, -0.026385480538010597, 0.04069310054183006, -0.028708146885037422, 0.004046083427965641, 0.0323500856757164, 0.01074929628521204, -0.0020474297925829887, -0.02108980342745781, -0.06566639989614487, 0.028132125735282898, 0.019175926223397255, -0.01647234335541725, -0.007423239294439554, -0.06336231529712677, 0.005165608134120703, -0.0008977102697826922, 0.014697827398777008, 0.04110189154744148, -0.0004685977764893323, 0.040247149765491486, -0.016546670347452164, -0.00404376070946455, -0.0023296335712075233, -0.026088180020451546, 0.025883784517645836, 0.02894970402121544, -0.035713307559490204, -0.015413208864629269, -0.0258280411362648, 0.04310867190361023, -0.024768905714154243, 0.015571149997413158, -0.0684536024928093, -0.030640603974461555, -0.04741954058408737, 0.042625557631254196, 0.04258839413523674, 0.025084787979722023, 0.0065266904421150684, -0.013136996887624264, -0.019138764590024948, 0.019789110869169235, -0.005174899008125067, 0.022985098883509636, 0.0394667349755764, 0.04950064793229103, -0.0554095096886158, 0.017438573762774467, 0.004989085718989372, -0.050169575959444046, 0.05403449013829231, 0.020903989672660828, -0.0025619000662118196, -0.004025179427117109, 0.05303110182285309, -0.012468068860471249, -0.02863382175564766, -0.043554626405239105, 0.0016339952126145363, -0.020792502909898758, -0.00987597368657589, -0.010767878033220768, 0.03210853040218353, -0.023431049659848213, -0.07655505836009979, 0.012003535404801369, 0.01964046061038971, -0.0038811741396784782, 0.03589911758899689, 0.0057927281595766544, 0.03194129839539528, 0.06306501477956772, 0.030250396579504013, -0.06666979193687439, 0.004097181838005781, -0.02543783374130726, -0.011864176020026207, 0.03476565703749657, 0.02842942625284195, 0.004141312558203936, 0.05548383668065071, -0.04362894967198372, -0.011585456319153309, 0.032814618200063705, 0.0006335070356726646, -0.02324523776769638, 0.010359088890254498, -0.02036513201892376, 0.06128120794892311, -0.009160593152046204, 0.011641199700534344, -0.017587224021553993, 0.013963865116238594, -0.035378843545913696, -0.002968366490676999, -0.016574541106820107, 0.053402725607156754, -0.016593122854828835, 0.01168765313923359, 0.015840578824281693, 0.03667953610420227, -0.016751063987612724, 0.03924375772476196, 0.021833056584000587, -0.08725789934396744, -0.036846768110990524, 0.003711619647219777, 0.035917699337005615, -0.005523298867046833, -0.0020032990723848343, -0.029600050300359726, -0.04597019776701927, 0.023412469774484634, -0.02861524000763893, 0.0048264991492033005, -0.063250832259655, -0.046156011521816254, -0.03454268351197243, 0.05355137586593628, 0.011734106577932835, 0.04054445028305054, -0.01716914400458336, -0.045747220516204834, 0.01375018060207367, -0.09327825158834457, -0.009578673169016838, 0.014948675408959389, 0.005839181132614613, -0.007827382534742355, 0.03576904907822609, 0.07101782411336899, -0.04247690737247467, 0.023486794903874397, 0.07878481596708298, 0.02573513425886631, 0.012337999418377876, 0.015255267731845379, 0.008482374250888824, 0.07692668586969376, -0.004536165855824947, -0.024731742218136787, -0.03523018956184387, -0.027927730232477188, 0.0012344967108219862, -0.06681844592094421, 0.015180942602455616, 0.02172156795859337, -0.006884380709379911, 0.04489247873425484, 0.022279007360339165, -0.004552424419671297, 0.03266596794128418, -0.04110189154744148, 0.01059135515242815, 0.008533473126590252, 0.07235568016767502, 0.035806212574243546, -0.02861524000763893, 0.0012437874684110284, -0.02541925199329853, 0.014930094592273235, 0.08160917460918427, -0.016909005120396614, 0.04080458730459213, -0.02233475260436535, -0.019770529121160507, 0.026924340054392815, 0.03883496671915054, -0.016825389117002487, -0.042625557631254196, 0.046676285564899445, 0.06897387653589249, -0.012207929976284504, 0.01147396769374609, 0.047159403562545776, -0.0446695052087307, 0.0021043349988758564, -0.023691188544034958, 0.05343988910317421, 0.003137921215966344, -0.03158825263381004, 0.009625125676393509, 0.056152764707803726, 0.017745165154337883, -0.005281741730868816, 0.017336376011371613, 0.02387700229883194, -0.000991778215393424, 0.05187905952334404, -0.025196276605129242, 0.06826778501272202, -0.06566639989614487, -0.0664839819073677, -0.021368524059653282, 0.03407815098762512, 0.007683377712965012, 0.012709625996649265, -0.02584662288427353, -0.03842617943882942, 0.001622381852939725, -0.01565476506948471, 0.01676035486161709, -0.012003535404801369, 0.04641614854335785, -0.001865100464783609, -0.05407165363430977, 0.03502579778432846, 0.005049475003033876, 0.02471316233277321, -0.014028900302946568, -0.07514287531375885, 0.024768905714154243, -0.0060621569864451885, 0.053291238844394684, 0.05321691185235977, 0.05113580450415611, 0.017122691497206688, -0.0037487822119146585, 0.07495706528425217, 0.02047661878168583, -0.033725105226039886, 0.04195662960410118, 0.015153069980442524, -0.026850014925003052, 0.0618014857172966, 0.00780415628105402, 0.020402293652296066, -0.0403214730322361, 0.02541925199329853, -0.018404802307486534, -0.005969250574707985, -0.01866494119167328, -0.060092002153396606, -0.00617364514619112, -0.019194507971405983, -0.030417628586292267, -0.004208669997751713, 0.08346731215715408, -0.04203095659613609, 0.017615094780921936, 0.010052496567368507, -0.003853302216157317, 0.002251824364066124, -0.06440287083387375, 0.018925078213214874, 0.023821258917450905, -0.02056952565908432, 0.02055094577372074, 0.02829935774207115, 0.00640591187402606, -0.042514070868492126, -0.005853117443621159, -0.042960021644830704, 0.03968970850110054, 0.006902961991727352, -0.04206812009215355, 0.03324199095368385, -0.008691414259374142, 0.044372204691171646, -0.01683467999100685, 0.034040987491607666, 0.029507143422961235, 0.0739908367395401, 0.0026989374309778214, 0.003676779568195343, 0.02170298621058464, 0.054814908653497696, -0.03563898056745529, 0.021981706842780113, 0.025995273143053055, -0.06458868086338043, -0.0036605210043489933, 0.03461700677871704, 0.069308340549469, -0.027017245069146156, -0.011139503680169582, 0.019008694216609, -0.007112002000212669, 0.03794306516647339, 0.04931483417749405, 0.022167520597577095, -0.01975194737315178, 0.0017210951773449779, 0.047493863850831985, 0.043145835399627686, -0.04808846861124039, -0.039541058242321014, 0.03298185020685196, 0.03121662512421608, -0.010368378832936287, -0.06369677931070328, 0.005597623996436596, 0.06901104003190994, -0.04916618391871452, 0.005950669292360544, 0.035508912056684494, 0.0336693599820137, 0.009913136251270771, -0.005286386702209711, -0.027630429714918137, 0.036698117852211, 0.0025061562191694975, -0.009248854592442513, 0.025697972625494003, 0.013620111159980297, 0.005054120440036058, -0.06128120794892311, 0.01172481570392847, 0.1073257327079773, 0.05158175528049469, 0.02831793949007988, -0.040358636528253555, -0.05273379758000374, -0.017884524539113045, -0.03606634959578514, -0.010879365727305412, -0.028187869116663933, 0.01560831256210804, -0.011808431707322598, -0.000807126285508275, -0.06484882533550262, 0.0006747343577444553, -0.014428398571908474, -0.005829890724271536, 0.07027456909418106, 0.05113580450415611, 0.047902654856443405, -0.07005159556865692, -0.03853766620159149, -0.02698008343577385, 0.05072701722383499, 0.01730850338935852, -0.00040472447290085256, 0.08629167079925537, -0.03340922296047211, -0.04173365607857704, 0.007864546030759811, 0.015896324068307877, -0.05526085942983627, -0.007451110985130072, -0.006215453147888184, -0.04069310054183006, 0.08852142840623856, 0.013471459969878197, 0.046156011521816254, 0.06704141944646835, -0.0423654206097126, -0.021572917699813843, -0.028187869116663933, 0.003249409142881632, -0.01730850338935852, 0.09379852563142776, -0.0026153214275836945, -0.04084175080060959, 0.024453023448586464, -0.032628804445266724, -0.01348075084388256, -0.021851638332009315, 0.011910629458725452, -0.07488273829221725, 0.008468438871204853, 0.0332048274576664, -0.016825389117002487, 0.009996752254664898, 0.055558159947395325, -0.051507432013750076, 0.00695406086742878, 0.031569670885801315, 0.013954575173556805, 0.02946997992694378, 0.03690250962972641, -0.03132811188697815, -0.009755195118486881, 0.018999405205249786, 0.007790220435708761, 0.04931483417749405, -0.015784835442900658, 0.019436065107584, -0.018088920041918755, 0.10368379205465317, 0.052956774830818176, -0.03101223148405552, -0.03738562390208244, -0.017689421772956848, -0.0346541702747345, -0.03660520911216736, 0.028448008000850677, -0.04567289724946022, -0.006963351275771856, -0.02491755597293377, -0.007418593857437372, -0.003537419717758894, -0.026831433176994324, -0.0045988778583705425, -0.012932602316141129, -0.002880105283111334, -0.07982537150382996, 0.010312635451555252, -0.003985694143921137, 0.05920010060071945, 0.003198310500010848, 0.06347380578517914, -0.017113400623202324, -0.045858707278966904, 0.022669216617941856, -0.007386076729744673, 0.011427514255046844, 0.004705720581114292, 0.03069634735584259, 0.05321691185235977, -0.0062851328402757645, -0.06681844592094421, 0.05139594525098801, -0.015264558605849743, -0.0208854079246521, 0.016230786219239235, -0.0702374055981636, -0.03205278515815735, -0.00240395893342793, 0.017642967402935028, 0.004317835438996553, -0.03710690513253212, -0.018367638811469078, 0.010043205693364143, -0.009736614301800728, -0.05280812457203865, -0.0077716391533613205, -0.03857482969760895, -0.018720684573054314, -0.010554192587733269, -0.06659546494483948, -0.049351997673511505, -0.02066243253648281, 0.007125937845557928, -0.032610226422548294, -0.032610226422548294, -0.012570265680551529, -0.005467554554343224, -0.026013854891061783, -0.015283139422535896, -0.010517030023038387, 0.0145120145753026, 0.02768617309629917, -0.03298185020685196, -0.004745205864310265, -0.0230594240128994, 0.07655505836009979, -0.014948675408959389, -0.03173690289258957, -0.02471316233277321, -0.08108890056610107, 0.007446466013789177, -0.016593122854828835, -0.0015619925688952208, -0.01984485425055027, 0.11631909012794495, 0.06462584435939789, -0.09914994984865189, 0.003026433289051056, 0.04210527986288071, 0.030361885204911232, -0.036846768110990524, -0.03387375548481941, -0.0036860702093690634, 0.009383568540215492, -0.05946023762226105, -0.010609935969114304, 0.028708146885037422, 0.0012193993898108602, 0.04362894967198372, -0.012709625996649265, -0.002768617356196046, 0.021740149706602097, 0.013963865116238594, 0.048014141619205475, -0.022780703380703926, -0.04203095659613609, 0.06150418519973755, 0.0446695052087307, 0.035397421568632126, 0.008556700311601162, 0.008900454267859459, 0.040247149765491486, -0.026998665183782578, 0.004738237708806992, -0.031569670885801315, 0.012077860534191132, -0.03747853264212608, 0.03173690289258957, -0.013703727163374424, -0.04240258410573006, 0.001444697962142527, -0.023189492523670197, 0.03812887892127037, 0.014093934558331966, -0.030622022226452827, -0.01209644228219986, 0.07391650974750519, 0.035694725811481476, 0.038872130215168, 0.019250251352787018, 0.04444652795791626, -0.07328474521636963, -0.03026897832751274, -0.05477774515748024, 0.08153485506772995, 0.02004924975335598, 0.011808431707322598, 0.051730409264564514, 0.012133604846894741, -0.037367042154073715, -0.015125198289752007, 0.0017094818176701665, -0.012337999418377876, -0.022204682230949402, -0.07599762082099915, -0.020829664543271065, 0.035843376070261, 0.001736192498356104, 0.006164354272186756, -0.03773866966366768, -0.022557727992534637, 0.022817866876721382, 0.02593952976167202, 0.01583128795027733, 0.03428254276514053, -0.044297877699136734, -0.018088920041918755, 0.01875784806907177, -0.047085076570510864, -0.014707118272781372, -0.013006927445530891, 0.049983762204647064, -0.02523343823850155, -0.00915130227804184, 0.05187905952334404, -0.007209553848952055, 0.029600050300359726, -0.00542574655264616, -0.07053470611572266, -0.029637211933732033, -0.03433828800916672, 0.007869190536439419, 0.05786224454641342, -0.05381151661276817, -0.013564366847276688, 0.01560831256210804, 0.028503751382231712, 0.07677803188562393, 0.04953781142830849, 0.009216336533427238, 0.008858646266162395, 0.009522928856313229, -0.025902366265654564, -0.04515261948108673, -0.012848986312747002, 0.018367638811469078, -0.0009952621767297387, 0.029414236545562744, 0.01579412631690502, 0.051507432013750076, -0.007943516597151756, 0.06484882533550262, -0.0725414901971817, 0.0015573472483083606, -0.032926108688116074, 0.05522369593381882, -0.028262194246053696, -0.04266272112727165, 0.032312922179698944, 0.019584715366363525, 0.005537234712392092, -0.03493288904428482, 0.057825081050395966, -0.037367042154073715, -0.04530126973986626, 0.004877597559243441, -0.023951327428221703, -0.03770150616765022, -0.012495940551161766, 0.016825389117002487, 0.011408933438360691, -0.07804156094789505, -0.006317650433629751, 0.01839551143348217, -0.04340597242116928, 0.09275797009468079, -0.015162360854446888, -0.03775725141167641, -0.018609195947647095, 0.028763890266418457, -0.027258804067969322, 0.022910773754119873, 0.052770961076021194, -0.02644122578203678, -0.09037956595420837, 0.04132486507296562, 0.016909005120396614, -0.0016177365323528647, 0.06804481148719788, -0.04333164915442467, -0.02854091487824917, -0.04819995537400246, -0.025660809129476547, -0.0071770367212593555, 0.02016073651611805, 0.03361361473798752, 0.029897350817918777, 0.07057186961174011, 0.010266182012856007, 0.021777313202619553, -0.028448008000850677, -0.04225393384695053, -0.027110151946544647, -0.02554932050406933, -0.0719468891620636, -0.006610306445509195, 0.011288154870271683, -0.03608493134379387, -0.00599712273105979, 0.011873465962707996, -0.00934640597552061, -0.042737048119306564, 0.04819995537400246, 0.006396621000021696, -0.08212945610284805, -0.02748177945613861, 0.00432712584733963, -0.009216336533427238, -0.07722398638725281, -0.003314443863928318, -0.03266596794128418, 0.04675061255693436, -0.05815954506397247, 0.03476565703749657, -0.08257540315389633, -0.022390495985746384, 0.03759001940488815, -0.03679102286696434, -0.04571005702018738, 0.005616205278784037, -0.05199054628610611, 0.07451111078262329, -0.0020834309980273247, -0.004900824278593063, 0.006949415430426598, -0.05083850398659706, -0.10249458998441696, 0.020941153168678284, -0.007451110985130072, 0.0618014857172966, 0.008988715708255768, -0.02252056449651718, 0.04113905131816864, 0.028448008000850677, -0.032089948654174805, 0.02127561718225479, 0.09528503566980362, -0.005467554554343224, -0.031272370368242264, 0.02551215887069702, -0.010684262029826641, 0.004770755302160978, -0.02686859481036663, 0.0018198085017502308, 0.02802063710987568, -0.010191856883466244, -0.004187765996903181, 0.048943210393190384, 0.06596370041370392, -0.030250396579504013, -0.02768617309629917, -0.024954719468951225, 0.0012054634280502796, -0.04463234171271324, 0.07246716320514679, 0.004480422008782625, -0.015060164034366608, 0.006819345988333225, -0.017066946253180504, -0.000883193570189178, 0.028503751382231712, -0.030213233083486557, -0.02779766172170639, -0.019696203991770744, -0.0309007428586483, -0.01885075308382511, -0.04043296352028847, -0.001624704571440816, 0.0055604614317417145, 0.05098715424537659, 0.007125937845557928, 0.005040184129029512, 0.013341391459107399, 0.05778792127966881, 0.014642084017395973, 0.014790734276175499, -0.022762123495340347, 0.026311155408620834, -0.032312922179698944, -0.01353649515658617, -0.016704611480236053, 0.05656155198812485, -0.026905758306384087, 0.02748177945613861, -0.016435181722044945, 0.019826272502541542, -0.01466995570808649, 0.027017245069146156, 0.03318624570965767, -0.029897350817918777, -0.015887033194303513, 0.03378084674477577, -0.03173690289258957, -0.010238309390842915, -0.01932457834482193, 0.030361885204911232, -0.00589028000831604, -0.023821258917450905, -0.03192271664738655, 0.03762718290090561, -0.04162216559052467, -0.0510614812374115, 0.063250832259655, -0.019882017746567726, -0.039949849247932434, -0.03712548688054085, 0.02406281605362892, -0.020439457148313522, -0.017689421772956848, 0.0038858195766806602, 0.041585005819797516, 0.07138945162296295, -0.007790220435708761, -0.03747853264212608, 0.0014098579995334148, 0.01565476506948471, -0.07269014418125153, 0.05284528806805611, -0.008352305740118027, 0.0080875214189291, 0.030120328068733215, -0.019714785739779472, 0.009030523709952831, -0.03078925423324108, -0.044186390936374664, -0.012681754305958748, 0.039020780473947525, -0.0068007647059857845, -0.03210853040218353, -0.025047626346349716, 0.006712503731250763, 0.0040902141481637955, -0.02904261089861393, -0.02099689655005932, 0.008203654550015926, 0.01348075084388256, -0.03586195781826973, 0.05856833606958389, 0.021758731454610825, -0.0609467439353466, 0.021480010822415352 ]
730,114
mmengine.fileio.backends.local_backend
rmtree
Recursively delete a directory tree. Args: dir_path (str or Path): A directory to be removed. Examples: >>> dir_path = '/path/of/dir' >>> backend.rmtree(dir_path)
def rmtree(self, dir_path: Union[str, Path]) -> None: """Recursively delete a directory tree. Args: dir_path (str or Path): A directory to be removed. Examples: >>> dir_path = '/path/of/dir' >>> backend.rmtree(dir_path) """ shutil.rmtree(dir_path)
(self, dir_path: Union[str, pathlib.Path]) -> NoneType
[ 0.04231157526373863, 0.021640682592988014, 0.04992622509598732, -0.07614646852016449, 0.04407156631350517, 0.023777812719345093, -0.04170096665620804, 0.025322293862700462, -0.0020731505937874317, -0.017887236550450325, 0.04827398806810379, 0.04554421082139015, 0.014268483966588974, -0.0039442614652216434, -0.04055158793926239, -0.040982604026794434, -0.032559800893068314, -0.011592581868171692, -0.0002051262854365632, -0.041305869817733765, -0.013621957041323185, 0.041305869817733765, 0.05258416756987572, 0.04206015169620514, -0.026866773143410683, 0.014241545461118221, -0.0014120321720838547, 0.026597388088703156, -0.02745942398905754, -0.00013876189768780023, 0.0339067317545414, 0.02169456146657467, -0.04184463992714882, 0.03223653510212898, -0.03710344433784485, -0.003760180901736021, -0.04080301523208618, 0.0024783520493656397, -0.11615929007530212, -0.06501184403896332, -0.019018659368157387, -0.01314604189246893, -0.016270920634269714, 0.007928931154310703, 0.036043860018253326, -0.04044383391737938, 0.018030909821391106, -0.005913024768233299, -0.026812896132469177, -0.04396381229162216, 0.022843942046165466, 0.03065613843500614, -0.03171572461724281, -0.003939771559089422, 0.014160729013383389, -0.007547300774604082, -0.03040471114218235, 0.019036617130041122, 0.05416456609964371, -0.007403627969324589, 0.06328777223825455, 0.03191327303647995, -0.0820370465517044, 0.01200564019382, -0.019467635080218315, -0.04644216224551201, -0.05420048162341118, 0.014843174256384373, 0.018318254500627518, -0.01671091839671135, -0.1505688726902008, 0.008202807046473026, -0.0235263854265213, 0.019683144986629486, -8.506006565767166e-7, 0.011718295514583588, 0.02577126957476139, -0.009787694551050663, -0.031194910407066345, -0.05096784979104996, -0.0036232429556548595, -0.02036558836698532, -0.004386503715068102, 0.010676668956875801, -0.012257067486643791, -0.0026601876597851515, 0.03624140843749046, 0.028429213911294937, 0.0007486688555218279, 0.010245651006698608, 0.03742671012878418, -0.04820215329527855, -0.0011072891065850854, 0.0013424407225102186, 0.003789364593103528, 0.006599959451705217, 0.047411952167749405, 0.004736705683171749, -0.05775637924671173, -0.0359540656208992, 0.023257000371813774, 0.023885566741228104, -0.04866908863186836, -0.035684678703546524, -0.015561536885797977, 0.0466935895383358, -0.007313832640647888, -0.032847143709659576, 0.04040791466832161, 0.03778589144349098, -0.030027570202946663, 0.005522415041923523, 0.03065613843500614, 0.061527784913778305, -0.013056246563792229, 0.005378742702305317, -0.0359540656208992, -0.0715489462018013, 0.005221600644290447, -0.0016903977375477552, 0.02415495365858078, -0.01558847539126873, -0.006442817393690348, -0.012454617768526077, 0.07018405944108963, 0.06634081900119781, 0.06601755321025848, -0.006510164123028517, -0.1008581593632698, 0.03688793629407883, -0.023831689730286598, 0.026489634066820145, 0.025501884520053864, 0.050500914454460144, 0.04328136518597603, 0.023867608979344368, 0.034912437200546265, -0.041557297110557556, 0.011188502423465252, 0.052117232233285904, 0.06041432172060013, 0.026238206773996353, 0.03026103787124157, -0.014475013129413128, 0.05470333620905876, -0.0021348849404603243, -0.05879800766706467, 0.041449543088674545, -0.035163864493370056, 0.026184329763054848, -0.09863123297691345, 0.010084019973874092, 0.09396187216043472, 0.035900186747312546, -0.013909302651882172, 0.04055158793926239, -0.04676542803645134, 0.016064390540122986, 0.008907699957489967, 0.0030126345809549093, -0.007354240398854017, -0.023759854957461357, 0.04396381229162216, -0.029057780280709267, -0.02246680110692978, 0.007681993767619133, -0.002074273070320487, 0.009195045568048954, -0.08498233556747437, -0.0012402985012158751, -0.0010983095271512866, -0.025124743580818176, -0.025358211249113083, -0.022556595504283905, -0.0695016160607338, 0.013226857408881187, 0.0015287661226466298, 0.06856774538755417, -0.032559800893068314, -0.014241545461118221, -0.008225255645811558, 0.026920650154352188, -0.011547683738172054, -0.027692891657352448, 0.03753446415066719, 0.01483419444411993, 0.020670892670750618, -0.002559168031439185, 0.008620355278253555, -0.001034891582094133, -0.08103133738040924, 0.005567312706261873, 0.0033246735110878944, -0.025789229199290276, 0.04514911025762558, 0.038216907531023026, 0.06199472025036812, -0.06925018876791, 0.019018659368157387, 0.0233467947691679, 0.00381405814550817, 0.016513368114829063, 0.06802897155284882, 0.004395483061671257, -0.033547550439834595, -0.020419467240571976, -0.03051246516406536, 0.029794102534651756, 0.0028577374760061502, -0.0006336185615509748, 0.04647808149456978, -0.026866773143410683, 0.019611308351159096, 0.006281185895204544, 0.0010629526805132627, -0.07808604836463928, 0.013442366383969784, 0.021155787631869316, -0.009787694551050663, -0.006213839165866375, 0.011933804489672184, 0.05315885692834854, -0.03588222712278366, -0.049243777990341187, 0.0010461159981787205, -0.02496311254799366, -0.08792762458324432, 0.0201500803232193, 0.026489634066820145, -0.07873257994651794, 0.03710344433784485, 0.028985943645238876, 0.07506892830133438, -0.03557692468166351, -0.030350834131240845, -0.04087485000491142, 0.0440356470644474, -0.07693666964769363, -0.04558013007044792, -0.006384450476616621, -0.02945288084447384, -0.056642916053533554, 0.026130450889468193, 0.012661146931350231, 0.015642352402210236, 0.05775637924671173, 0.06458082795143127, 0.000997851020656526, 0.024585971608757973, -0.06939385831356049, -0.07873257994651794, -0.009581165388226509, -0.023831689730286598, 0.009064842015504837, 0.04227565973997116, 0.021012116223573685, 0.005926494020968676, 0.09195045381784439, -0.027764728292822838, 0.058331068605184555, 0.017222750931978226, -0.05258416756987572, -0.025825146585702896, 0.021012116223573685, -0.01892886310815811, -0.008961577899754047, 0.011718295514583588, 0.015956636518239975, 0.056714754551649094, 0.025016989558935165, 0.06763386726379395, -0.038073234260082245, 0.08088766783475876, -0.017052140086889267, 0.034912437200546265, 0.06465266644954681, -0.043029941618442535, -0.019054576754570007, 0.030422670766711235, 0.01786927878856659, -0.055349864065647125, -0.06856774538755417, 0.020383547991514206, 0.008934639394283295, -0.0038005888927727938, 0.03710344433784485, 0.027154119685292244, -0.00014788174303248525, 0.029093699529767036, 0.05585271865129471, 0.03458917513489723, -0.03469692915678024, 0.011026871390640736, 0.03843241557478905, 0.044251155108213425, -0.02749534137547016, -0.023077409714460373, 0.029363084584474564, 0.011457888409495354, -0.025376170873641968, -0.0033695711754262447, 0.036959774792194366, -0.019808858633041382, 0.030763892456889153, 0.06278491765260696, -0.0225027184933424, 0.003021614160388708, 0.03688793629407883, 0.00856647826731205, 0.03669038787484169, -0.030602261424064636, 0.023795772343873978, -0.03254184126853943, 0.011682377196848392, 0.046118900179862976, 0.01167339738458395, 0.016908466815948486, -0.04938745126128197, -0.0756436139345169, -0.013406448066234589, -0.01409787219017744, -0.024693725630640984, 0.0032865104731172323, 0.053697630763053894, -0.07449423521757126, -0.023670058697462082, -0.026345960795879364, 0.04241933301091194, -0.010218712501227856, 0.003735487349331379, -0.004866908770054579, 0.022107619792222977, 0.06343144923448563, -0.05121927708387375, 0.07065099477767944, 0.027926359325647354, 0.05147070437669754, -0.014968887902796268, -0.042814429849386215, 0.03338591754436493, -0.00800525676459074, -0.005531394388526678, -0.0037309974431991577, 0.0005993840750306845, -0.02271822839975357, 0.023652099072933197, -0.019970489665865898, -0.006339552812278271, 0.09389003366231918, 0.021299460902810097, 0.041557297110557556, 0.08634722232818604, 0.01065871026366949, -0.004875888582319021, -0.01325379591435194, -0.003463856177404523, 0.007852604612708092, 0.08986720442771912, -0.05118335783481598, -0.032487962394952774, 0.0235263854265213, 0.012544413097202778, -0.01829131692647934, -0.004227116703987122, 0.0019496819004416466, -0.043101776391267776, -0.0783015564084053, 0.01450195163488388, 0.019880693405866623, 0.06256940960884094, 0.07197996973991394, -0.05578088015317917, -0.030835729092359543, 0.0024469236377626657, 0.04364054650068283, 0.04083893448114395, 0.011179523542523384, -0.052117232233285904, 0.028842272236943245, 0.00842280499637127, 0.022969655692577362, 0.0023863117676228285, 0.06752611696720123, -0.053733546286821365, -0.0029385534580796957, 0.02587902545928955, 0.016800712794065475, 0.009958306327462196, -0.04076709598302841, -0.003194470191374421, -0.033655304461717606, -0.03250592201948166, -0.0193060040473938, 0.007354240398854017, -0.03530753776431084, -0.010101978667080402, 0.02801615372300148, 0.022412924095988274, -0.04694501683115959, -0.009464431554079056, 0.022861899808049202, 0.019880693405866623, -0.00800525676459074, 0.0007312709931284189, -0.005446088965982199, 0.0019294779049232602, -0.0017925399588420987, 0.034625094383955, -0.015516639687120914, -0.013038286939263344, 0.039402205497026443, 0.042958103120326996, 0.040982604026794434, 0.04698093608021736, -0.00909178052097559, 0.02988389879465103, -0.008840354159474373, 0.00006696068885503337, 0.06260532885789871, 0.02088640257716179, -0.025358211249113083, -0.0038320173043757677, -0.042814429849386215, 0.0034728357568383217, 0.004857929423451424, 0.020491302013397217, -0.00933871790766716, -0.012194210663437843, -0.010119938291609287, 0.04177280515432358, 0.0037871196400374174, -0.04690910130739212, -0.045831553637981415, -0.027621055021882057, 0.009446472860872746, 0.02323904074728489, -0.07995379716157913, -0.028985943645238876, -0.04216790571808815, 0.02893206663429737, -0.06946569681167603, -0.020868442952632904, 0.05736127868294716, -0.015750106424093246, -0.021784355863928795, 0.041305869817733765, 0.008790966123342514, 0.011188502423465252, -0.04407156631350517, -0.017141936346888542, 0.03290102258324623, -0.018695395439863205, 0.03451734036207199, -0.011799111030995846, -0.09252514690160751, -0.039976898580789566, -0.02036558836698532, 0.026166370138525963, 0.003924057353287935, -0.032218579202890396, 0.015678271651268005, 0.01794111356139183, 0.04202423244714737, -0.04543645679950714, 0.03264959529042244, 0.047555625438690186, 0.06174329295754433, 0.015848882496356964, -0.004375279415398836, -0.0665922462940216, -0.006370981223881245, -0.010326467454433441, -0.0347508080303669, 0.04012056812644005, -0.004056505858898163, 0.03900710865855217, -0.05337436497211456, -0.06371879577636719, -0.04015648737549782, -0.0011415235931053758, 0.0038342622574418783, -0.023364754393696785, 0.03552304580807686, -0.014214606955647469, 0.007120772730559111, -0.009015454910695553, 0.00413507642224431, 0.018030909821391106, 0.023077409714460373, -0.025950860232114792, -0.039905060082674026, -0.011269318871200085, -0.01274196244776249, -0.030027570202946663, -0.04342503845691681, -0.053625792264938354, -0.05894167721271515, 0.0002424474951112643, -0.039617717266082764, 0.02815982699394226, 0.03234429284930229, 0.013783589005470276, -0.07165670394897461, 0.02956063486635685, 0.05746903643012047, 0.04845358058810234, 0.03489448130130768, 0.03911486268043518, -0.05323069170117378, -0.004433646332472563, -0.028429213911294937, 0.023077409714460373, -0.030943483114242554, -0.022323127835989, 0.05082417652010918, 0.007511382456868887, 0.005639148876070976, -0.004265279974788427, -0.01525623258203268, -0.013056246563792229, -0.06957344710826874, 0.008817904628813267, -0.005109356250613928, 0.06687959283590317, 0.022556595504283905, 0.006954651325941086, -0.007637096103280783, 0.049207862466573715, 0.0530870221555233, 0.06073758751153946, 0.023149246349930763, 0.015202355571091175, -0.015202355571091175, 0.019952530041337013, 0.02397536300122738, -0.01257135160267353, -0.05358987674117088, -0.0027544728945940733, 0.029219413176178932, -0.035056110471487045, -0.006276695989072323, -0.024388421326875687, -0.016692958772182465, 0.02036558836698532, -0.011404011398553848, -0.010317487642168999, 0.021227624267339706, 0.021048033609986305, 0.003650181693956256, 0.0779423788189888, -0.0662330612540245, -0.052153147757053375, 0.012382781133055687, 0.04708869010210037, -0.01674683578312397, -0.018390091136097908, -0.008714640513062477, -0.004081199411302805, 0.055313944816589355, -0.027962276712059975, -0.047627463936805725, 0.025196580216288567, 0.02514270320534706, 0.01233788300305605, 0.1178833544254303, 0.03106919676065445, 0.010389324277639389, 0.04091076925396919, 0.000057525157899362966, -0.04992622509598732, -0.006254247389733791, -0.04058750718832016, -0.005895065609365702, -0.003005899954587221, -0.011332175694406033, 0.06763386726379395, -0.02338271401822567, -0.021119870245456696, -0.029273290187120438, -0.001151625532656908, -0.002554678125306964, 0.024388421326875687, -0.0030126345809549093, -0.034948356449604034, -0.04374830424785614, -0.017572952434420586, 0.04830990731716156, -0.01283175777643919, -0.11012503504753113, 0.02120966650545597, 0.00933871790766716, -0.019575389102101326, 0.02433454431593418, -0.00002167716229450889, 0.0031428379006683826, 0.0028622273821383715, -0.005383232142776251, -0.003939771559089422, 0.009257902391254902, 0.024280667304992676, 0.004505482502281666, -0.03124878741800785, 0.058223314583301544, -0.035020191222429276, 0.0007497913320548832, 0.009356677532196045, 0.018946822732686996, 0.01619010418653488, -0.022125577554106712, -0.015130518935620785, 0.00667179562151432, 0.0007666279561817646, 0.021676601842045784, 0.019395798444747925, 0.03238020837306976, -0.0014299912145361304, -0.02749534137547016, -0.0453646183013916, -0.008840354159474373, -0.0013514203019440174, -0.07294975966215134, -0.05800780653953552, -0.002069783164188266, 0.022897819057106972, 0.0220178235322237, 0.02169456146657467, -0.00687383534386754, 0.0018733558245003223, -0.010532996617257595, 0.02253863774240017, 0.026489634066820145, -0.03444550186395645, -0.00047675726818852127, -0.014295422472059727, -0.032595716416835785, -0.06935793906450272, -0.07693666964769363, -0.034912437200546265, 0.017896216362714767, -0.04040791466832161, 0.006083636078983545, 0.026866773143410683, -0.03918669745326042, 0.013190939091145992, -0.013891343027353287, -0.052224986255168915, -0.03232633322477341, -0.017088057473301888, -0.02404719963669777, 0.0036299778148531914, -0.017079079523682594, -0.011915844865143299, 0.012957471422851086, -0.026345960795879364, 0.038216907531023026, 0.004691808018833399, 0.022843942046165466, -0.02668718248605728, -0.022107619792222977, 0.053733546286821365, 0.03658263385295868, -0.013487264513969421, 0.0011117788963019848, 0.034912437200546265, -0.014843174256384373, 0.01766274869441986, 0.00942851323634386, 0.0665922462940216, -0.0036524266470223665, -0.07032772898674011, 0.016513368114829063, 0.04547237232327461, -0.044322993606328964, -0.023652099072933197, 0.010191773995757103, 0.016199083998799324, 0.026130450889468193, -0.04798664525151253, -0.0083240307867527, 0.0440356470644474, -0.04159321263432503, 0.06590980291366577, -0.008454233407974243, 0.03624140843749046, -0.017213771119713783, 0.0002633529657032341, 0.04216790571808815, 0.05872616916894913, -0.049028269946575165, -0.06102493032813072, -0.05790005251765251, -0.022341087460517883, 0.0029340635519474745, -0.07197996973991394, -0.005145274568349123, -0.00840933620929718, 0.0621383935213089, -0.03746262565255165, 0.010012183338403702, -0.02963247150182724, 0.0006700979429297149, -0.0678134635090828, -0.0032865104731172323, -0.005751393269747496, 0.049028269946575165, 0.029578594490885735, 0.027764728292822838, 0.03588222712278366, 0.02672310173511505, -0.022359047085046768, 0.052224986255168915, -0.018318254500627518, 0.0354691706597805, -0.015355007722973824, 0.019036617130041122, -0.005181192886084318, -0.018309274688363075, -0.018874986097216606, 0.028429213911294937, -0.04532870277762413, -0.028842272236943245, -0.047735217958688736, -0.03864792734384537, 0.010981973260641098, -0.0012885634787380695, 0.021119870245456696, 0.028698598966002464, 0.016163166612386703, 0.02426270768046379, 0.0023054960183799267, -0.05017765238881111, 0.0013256041565909982, 0.00725097581744194, -0.0011729520047083497, -0.012310944497585297, -0.007026487495750189, 0.010694628581404686, 0.06863957643508911, 0.049171943217515945, -0.016459491103887558, -0.0033807954750955105, -0.004166504833847284, 0.036780182272195816, -0.06343144923448563, 0.06260532885789871, 0.019611308351159096, 0.01205951813608408, 0.02555576153099537, -0.01283175777643919, -0.04356871172785759, 0.0169533658772707, -0.05614006519317627, -0.029973693192005157, 0.05725352466106415, 0.025645555928349495, -0.027333710342645645, -0.024981070309877396, -0.061635538935661316, -0.020778648555278778, -0.03114103339612484, 0.05021356791257858, -0.03381693363189697, -0.016378674656152725, -0.07909175753593445, 0.0186415184289217, 0.017581932246685028, 0.008045664988458157, -0.019898653030395508 ]
730,115
mmengine.logging.history_buffer
HistoryBuffer
Unified storage format for different log types. ``HistoryBuffer`` records the history of log for further statistics. Examples: >>> history_buffer = HistoryBuffer() >>> # Update history_buffer. >>> history_buffer.update(1) >>> history_buffer.update(2) >>> history_buffer.min() # minimum of (1, 2) 1 >>> history_buffer.max() # maximum of (1, 2) 2 >>> history_buffer.mean() # mean of (1, 2) 1.5 >>> history_buffer.statistics('mean') # access method by string. 1.5 Args: log_history (Sequence): History logs. Defaults to []. count_history (Sequence): Counts of history logs. Defaults to []. max_length (int): The max length of history logs. Defaults to 1000000.
class HistoryBuffer: """Unified storage format for different log types. ``HistoryBuffer`` records the history of log for further statistics. Examples: >>> history_buffer = HistoryBuffer() >>> # Update history_buffer. >>> history_buffer.update(1) >>> history_buffer.update(2) >>> history_buffer.min() # minimum of (1, 2) 1 >>> history_buffer.max() # maximum of (1, 2) 2 >>> history_buffer.mean() # mean of (1, 2) 1.5 >>> history_buffer.statistics('mean') # access method by string. 1.5 Args: log_history (Sequence): History logs. Defaults to []. count_history (Sequence): Counts of history logs. Defaults to []. max_length (int): The max length of history logs. Defaults to 1000000. """ _statistics_methods: dict = dict() def __init__(self, log_history: Sequence = [], count_history: Sequence = [], max_length: int = 1000000): self.max_length = max_length self._set_default_statistics() assert len(log_history) == len(count_history), \ 'The lengths of log_history and count_histroy should be equal' if len(log_history) > max_length: warnings.warn(f'The length of history buffer({len(log_history)}) ' f'exceeds the max_length({max_length}), the first ' 'few elements will be ignored.') self._log_history = np.array(log_history[-max_length:]) self._count_history = np.array(count_history[-max_length:]) else: self._log_history = np.array(log_history) self._count_history = np.array(count_history) def _set_default_statistics(self) -> None: """Register default statistic methods: min, max, current and mean.""" self._statistics_methods.setdefault('min', HistoryBuffer.min) self._statistics_methods.setdefault('max', HistoryBuffer.max) self._statistics_methods.setdefault('current', HistoryBuffer.current) self._statistics_methods.setdefault('mean', HistoryBuffer.mean) def update(self, log_val: Union[int, float], count: int = 1) -> None: """update the log history. If the length of the buffer exceeds ``self._max_length``, the oldest element will be removed from the buffer. Args: log_val (int or float): The value of log. count (int): The accumulation times of log, defaults to 1. ``count`` will be used in smooth statistics. """ if (not isinstance(log_val, (int, float)) or not isinstance(count, (int, float))): raise TypeError(f'log_val must be int or float but got ' f'{type(log_val)}, count must be int but got ' f'{type(count)}') self._log_history = np.append(self._log_history, log_val) self._count_history = np.append(self._count_history, count) if len(self._log_history) > self.max_length: self._log_history = self._log_history[-self.max_length:] self._count_history = self._count_history[-self.max_length:] @property def data(self) -> Tuple[np.ndarray, np.ndarray]: """Get the ``_log_history`` and ``_count_history``. Returns: Tuple[np.ndarray, np.ndarray]: History logs and the counts of the history logs. """ return self._log_history, self._count_history @classmethod def register_statistics(cls, method: Callable) -> Callable: """Register custom statistics method to ``_statistics_methods``. The registered method can be called by ``history_buffer.statistics`` with corresponding method name and arguments. Examples: >>> @HistoryBuffer.register_statistics >>> def weighted_mean(self, window_size, weight): >>> assert len(weight) == window_size >>> return (self._log_history[-window_size:] * >>> np.array(weight)).sum() / \ >>> self._count_history[-window_size:] >>> log_buffer = HistoryBuffer([1, 2], [1, 1]) >>> log_buffer.statistics('weighted_mean', 2, [2, 1]) 2 Args: method (Callable): Custom statistics method. Returns: Callable: Original custom statistics method. """ method_name = method.__name__ assert method_name not in cls._statistics_methods, \ 'method_name cannot be registered twice!' cls._statistics_methods[method_name] = method return method def statistics(self, method_name: str, *arg, **kwargs) -> Any: """Access statistics method by name. Args: method_name (str): Name of method. Returns: Any: Depends on corresponding method. """ if method_name not in self._statistics_methods: raise KeyError(f'{method_name} has not been registered in ' 'HistoryBuffer._statistics_methods') method = self._statistics_methods[method_name] # Provide self arguments for registered functions. return method(self, *arg, **kwargs) def mean(self, window_size: Optional[int] = None) -> np.ndarray: """Return the mean of the latest ``window_size`` values in log histories. If ``window_size is None`` or ``window_size > len(self._log_history)``, return the global mean value of history logs. Args: window_size (int, optional): Size of statistics window. Returns: np.ndarray: Mean value within the window. """ if window_size is not None: assert isinstance(window_size, int), \ 'The type of window size should be int, but got ' \ f'{type(window_size)}' else: window_size = len(self._log_history) logs_sum = self._log_history[-window_size:].sum() counts_sum = self._count_history[-window_size:].sum() return logs_sum / counts_sum def max(self, window_size: Optional[int] = None) -> np.ndarray: """Return the maximum value of the latest ``window_size`` values in log histories. If ``window_size is None`` or ``window_size > len(self._log_history)``, return the global maximum value of history logs. Args: window_size (int, optional): Size of statistics window. Returns: np.ndarray: The maximum value within the window. """ if window_size is not None: assert isinstance(window_size, int), \ 'The type of window size should be int, but got ' \ f'{type(window_size)}' else: window_size = len(self._log_history) return self._log_history[-window_size:].max() def min(self, window_size: Optional[int] = None) -> np.ndarray: """Return the minimum value of the latest ``window_size`` values in log histories. If ``window_size is None`` or ``window_size > len(self._log_history)``, return the global minimum value of history logs. Args: window_size (int, optional): Size of statistics window. Returns: np.ndarray: The minimum value within the window. """ if window_size is not None: assert isinstance(window_size, int), \ 'The type of window size should be int, but got ' \ f'{type(window_size)}' else: window_size = len(self._log_history) return self._log_history[-window_size:].min() def current(self) -> np.ndarray: """Return the recently updated values in log histories. Returns: np.ndarray: Recently updated values in log histories. """ if len(self._log_history) == 0: raise ValueError('HistoryBuffer._log_history is an empty array! ' 'please call update first')
(log_history: Sequence = [], count_history: Sequence = [], max_length: int = 1000000)
[ 0.005093010608106852, -0.04096551984548569, -0.06010960415005684, 0.011061697266995907, 0.03160484880208969, -0.02606896683573723, -0.08261547982692719, 0.0446493960916996, -0.006019012536853552, 0.0020709228701889515, -0.036556947976350784, -0.008746691979467869, 0.04436757043004036, 0.019647344946861267, -0.04581696540117264, 0.07049693167209625, 0.03720112144947052, -0.016808947548270226, -0.03291333094239235, 0.007468407042324543, -0.01881192997097969, -0.046863749623298645, -0.05060802027583122, 0.05189637094736099, -0.0317658931016922, 0.04408574476838112, 0.010336999781429768, -0.025827402248978615, 0.011192545294761658, 0.01052823942154646, -0.03305424377322197, -0.07556980848312378, 0.02433774620294571, -0.052298977971076965, -0.03549003228545189, -0.08342069387435913, -0.0003881407610606402, 0.016949862241744995, -0.0975925549864769, -0.0006775163928978145, 0.0076546138152480125, -0.04879627749323845, 0.022284438833594322, 0.02129804529249668, 0.011313327588140965, 0.05209767445921898, 0.006778938230127096, 0.04952097311615944, -0.0070607648231089115, -0.023693570867180824, -0.00554091390222311, -0.005767381750047207, -0.01459459587931633, 0.028524884954094887, -0.002976794261485338, 0.07009431719779968, 0.05696925148367882, -0.003291333094239235, 0.007181547582149506, -0.025082575157284737, -0.0025112770963460207, 0.017372600734233856, 0.06027064844965935, -0.03534911572933197, -0.0038650515489280224, -0.029712583869695663, -0.026230011135339737, 0.014010812155902386, 0.012239329516887665, -0.008132712915539742, -0.026230011135339737, 0.008857409469783306, 0.06425648182630539, 0.02546505257487297, -0.06236421689391136, -0.00024125118216034025, -0.02216365560889244, 0.051010627299547195, 0.005842871032655239, -0.04275713488459587, 0.03530885651707649, 0.04819236323237419, 0.04364287480711937, 0.011866915971040726, 0.027498232200741768, -0.049561236053705215, 0.004748276434838772, 0.060471951961517334, -0.0193252582103014, -0.00208224612288177, -0.07403989136219025, 0.004116682335734367, 0.01715116575360298, 0.03889208287000656, -0.013890028931200504, -0.05733159929513931, -0.0653032660484314, -0.01686934009194374, 0.011112023144960403, 0.0003082479233853519, -0.056164029985666275, 0.02820279821753502, 0.011263001710176468, 0.046984534710645676, -0.06252526491880417, -0.009471389465034008, -0.01207828614860773, -0.012702330946922302, 0.010930849239230156, 0.03490624576807022, -0.06908779591321945, 0.05483542010188103, -0.017956385388970375, -0.04609879106283188, 0.003792078699916601, 0.05193663015961647, -0.022284438833594322, 0.012420504353940487, -0.05334576219320297, 0.03967716917395592, -0.008162908256053925, 0.010326934978365898, -0.009199627675116062, 0.03214837238192558, 0.011836720630526543, -0.01115228421986103, 0.024800747632980347, -0.013396832160651684, 0.0030774467159062624, -0.02747810073196888, -0.034262072294950485, -0.029954150319099426, 0.0130143528804183, 0.0735970214009285, 0.06425648182630539, -0.017463188618421555, 0.019546693190932274, 0.015842685475945473, -0.0758918970823288, 0.0326516330242157, 0.03178602457046509, 0.01914408430457115, 0.03321528807282448, -0.008062255568802357, -0.009561976417899132, -0.006149860564619303, 0.054030198603868484, 0.01380950678139925, -0.02244548127055168, -0.016295621171593666, 0.0044966451823711395, -0.029692454263567924, -0.0009153076098300517, 0.032108109444379807, 0.030095063149929047, -0.014564399607479572, -0.0180872343480587, -0.016265425831079483, 0.0014934297651052475, 0.007906245067715645, -0.01681901328265667, -0.016295621171593666, 0.0004434995644260198, -0.04549487680196762, -0.052741847932338715, 0.04609879106283188, -0.0155306626111269, 0.019284997135400772, -0.07504642009735107, 0.016949862241744995, 0.04102591052651405, -0.026230011135339737, 0.020231129601597786, 0.039294689893722534, -0.04489096254110336, 0.07669711858034134, -0.017231687903404236, 0.031383413821458817, -0.014846227131783962, 0.029148930683732033, 0.024378007277846336, -0.025082575157284737, -0.06550457328557968, -0.03544976934790611, -0.049722276628017426, -0.006205219309777021, 0.02000969462096691, -0.06019012629985809, 0.03273215517401695, 0.05596272647380829, -0.07661659270524979, -0.029289843514561653, 0.0626460462808609, -0.07931408286094666, 0.020955827087163925, 0.01316533237695694, -0.06610848754644394, 0.03810699284076691, 0.05825759842991829, -0.0002649988455232233, 0.003389469115063548, 0.031222369521856308, 0.03766412287950516, -0.07110084593296051, -0.024679964408278465, -0.0204726941883564, -0.005259087309241295, 0.03673812001943588, -0.07472433149814606, 0.014262442477047443, -0.017815472558140755, -0.03305424377322197, -0.005045200698077679, 0.038972605019807816, 0.018218081444501877, -0.0342419408261776, 0.04016030207276344, 0.005379870068281889, 0.03836869075894356, -0.02703523077070713, 0.12263486534357071, -0.08060242980718613, -0.09888090193271637, -0.0029591801576316357, -0.01465498749166727, 0.006965145003050566, 0.05137297883629799, -0.006934949196875095, 0.033275678753852844, -0.042153216898441315, 0.06602796167135239, 0.011101958341896534, -0.00594352325424552, -0.00391789386048913, 0.020281456410884857, -0.01681901328265667, -0.025384532287716866, 0.04489096254110336, -0.008635974489152431, 0.007005406077951193, -0.02077465131878853, 0.00416449224576354, 0.0621226504445076, 0.07661659270524979, -0.03488611802458763, -0.05551985651254654, 0.03808686137199402, 0.07122162729501724, -0.030376888811588287, -0.0053094131872057915, -0.013839703053236008, 0.008334017358720303, -0.03379907086491585, -0.031383413821458817, -0.0009473905665799975, -0.033114634454250336, -0.0019086208194494247, 0.05052749812602997, 0.02788071148097515, -0.0626460462808609, 0.0220630019903183, -0.027941102162003517, -0.006341100204735994, 0.009093943051993847, -0.005550979170948267, 0.028706060722470284, 0.037120599299669266, -0.020673999562859535, -0.0028232994955033064, 0.0921170637011528, 0.0006287628784775734, 0.03806673362851143, -0.056606899946928024, -0.03631538152694702, -0.025827402248978615, -0.022989004850387573, 0.0460585318505764, -0.049158625304698944, 0.01874147355556488, -0.0017563841538503766, 0.02904827892780304, -0.032691895961761475, -0.012541287578642368, -0.019456105306744576, 0.027357317507267, -0.0008001864771358669, -0.01423224713653326, -0.05825759842991829, 0.04541435465216637, -0.006411557085812092, 0.06079404056072235, 0.004189655650407076, -0.038127124309539795, 0.01872134394943714, 0.02103634923696518, 0.009033551439642906, -0.021720783784985542, 0.006084436550736427, 0.024216962978243828, 0.006859459914267063, -0.011011370457708836, -0.015198510140180588, 0.08954036235809326, 0.005470457021147013, -0.048272885382175446, -0.037402424961328506, 0.01379944197833538, -0.04303896054625511, 0.04621957615017891, -0.008615843951702118, 0.029370365664362907, 0.05793551355600357, 0.03136328235268593, -0.005676794331520796, 0.008454800583422184, -0.009275116957724094, 0.013034483417868614, 0.025787141174077988, 0.026511838659644127, 0.09139236807823181, -0.03744268789887428, 0.017060579732060432, 0.023270830512046814, -0.02649170719087124, -0.008323952555656433, -0.010316869243979454, 0.021781176328659058, -0.02574688009917736, -0.008958062157034874, -0.004612395539879799, -0.04795079678297043, -0.0241767019033432, 0.016345947980880737, 0.05398993939161301, 0.007367754355072975, 0.006426654756069183, -0.05882125347852707, 0.004848928656429052, 0.03675825148820877, -0.05833812057971954, -0.0001562471006764099, -0.010971110314130783, -0.028947625309228897, 0.06337074190378189, 0.0713021457195282, -0.06502144038677216, 0.0760529413819313, 0.006643057335168123, 0.012662069872021675, 0.0158829465508461, 0.032430198043584824, -0.025243617594242096, -0.04191165417432785, 0.04191165417432785, 0.024820877239108086, -0.02260652557015419, -0.0010656571248546243, -0.07862964272499084, 0.007206710521131754, -0.023794224485754967, -0.053023677319288254, 0.06558509171009064, -0.009798510000109673, 0.010991240851581097, 0.0003500815655570477, 0.031000934541225433, -0.00866617076098919, -0.015560858882963657, 0.002878658240661025, -0.02359291911125183, -0.00375936646014452, -0.03647642582654953, -0.008520224131643772, 0.07283206284046173, -0.05161454156041145, 0.011192545294761658, 0.003925443161278963, 0.00925498642027378, -0.05769394710659981, 0.003329077735543251, 0.07073849439620972, -0.0004878495237790048, -0.028545016422867775, 0.012470830231904984, -0.0030749302823096514, 0.04452861472964287, -0.02204287238419056, -0.03677838295698166, -0.006537372246384621, -0.01909375749528408, -0.021982481703162193, -0.026270272210240364, -0.06256552040576935, -0.02618975006043911, -0.0714631900191307, 0.019546693190932274, 0.06469935178756714, 0.06514222174882889, -0.018067102879285812, -0.03647642582654953, -0.019898977130651474, -0.018026841804385185, -0.0248812697827816, 0.025988446548581123, -0.023693570867180824, -0.02216365560889244, 0.03186654672026634, 0.00015538212028332055, -0.0400596484541893, -0.0076193856075406075, 0.02188182808458805, -0.0414687842130661, -0.05193663015961647, 0.010065238922834396, 0.0630083903670311, -0.0031630012672394514, -0.028826842084527016, -0.035288725048303604, 0.031705502420663834, 0.04154930263757706, 0.010377260856330395, 0.0649409219622612, 0.006476981099694967, 0.05556011572480202, 0.03430233150720596, 0.02490139938890934, -0.06023038551211357, -0.010266543366014957, -0.0501248873770237, 0.011283132247626781, 0.022827960550785065, 0.004770922940224409, -0.053587328642606735, -0.015268966555595398, -0.030397020280361176, -0.01918434537947178, -0.012249395251274109, 0.002009273273870349, 0.0005976235261186957, 0.04690401256084442, 0.02788071148097515, 0.023854615166783333, 0.09525741636753082, 0.02659236080944538, -0.02103634923696518, -0.007926375605165958, -0.009380802512168884, -0.02530401013791561, -0.06248500198125839, -0.028162537142634392, 0.008651072159409523, 0.023210439831018448, 0.007538863457739353, 0.036577075719833374, -0.010201118886470795, -0.0783478170633316, -0.07758285850286484, -0.015913141891360283, 0.02504231408238411, 0.01187698170542717, 0.0023326189257204533, 0.04678322747349739, -0.054875679314136505, -0.057895250618457794, -0.04416626691818237, -0.014896553009748459, 0.08414539694786072, -0.048554711043834686, -0.02677353471517563, 0.046581923961639404, 0.08519218116998672, -0.01658751256763935, -0.013416962698101997, -0.033698417246341705, -0.03077949956059456, -0.005681827198714018, 0.01632581651210785, -0.01847977750003338, -0.03130289167165756, -0.0167686864733696, -0.01508779264986515, -0.038268037140369415, -0.00022615332272835076, -0.005329543724656105, 0.00023936395882628858, 0.03520820289850235, 0.009501584805548191, -0.031242500990629196, 0.05495620146393776, -0.014584530144929886, -0.06063299626111984, 0.021217523142695427, -0.008067288435995579, 0.016174837946891785, -0.020855173468589783, 0.036275118589401245, 0.0400596484541893, 0.015138118527829647, 0.023129917681217194, -0.015691706910729408, -0.0012763980776071548, -0.005963653791695833, -0.019717801362276077, -0.0446493960916996, 0.014463747851550579, -0.00986393354833126, -0.0026119293179363012, 0.021519480273127556, -0.07085927575826645, -0.03486598655581474, -0.008021995425224304, 0.03446337580680847, -0.005500652827322483, -0.007241939194500446, -0.04505200684070587, -0.06675266474485397, -0.0653032660484314, 0.0006705964915454388, -0.008781920187175274, -0.03577185794711113, 0.02431761659681797, 0.05262106657028198, 0.01953662745654583, -0.069168321788311, 0.0025691520422697067, -0.03208798170089722, -0.026954708620905876, -0.028867103159427643, 0.016919665038585663, 0.0260287057608366, -0.032389938831329346, 0.012591613456606865, 0.03402050584554672, 0.07150345295667648, 0.04903784021735191, 0.02359291911125183, 0.05737185850739479, -0.05366785079240799, -0.05551985651254654, 0.027860580012202263, -0.03275228664278984, -0.003925443161278963, -0.003754334058612585, -0.03879142925143242, -0.017070643603801727, 0.03867064788937569, 0.012108481489121914, 0.023673441261053085, 0.025525445118546486, -0.05419124290347099, 0.01329618040472269, -0.014886487275362015, 0.06067325919866562, 0.007594222202897072, -0.009280149824917316, -0.0037417523562908173, 0.007297297939658165, -0.014121529646217823, 0.05624455213546753, -0.03224902227520943, -0.03130289167165756, 0.004051258321851492, -0.05692898854613304, 0.006819198839366436, -0.04609879106283188, 0.037825167179107666, 0.012853309512138367, 0.06357204914093018, -0.0096626291051507, 0.013316310942173004, 0.006476981099694967, 0.06852414458990097, -0.038429081439971924, -0.05539907142519951, 0.02160000242292881, 0.013578006997704506, 0.009944455698132515, 0.019385648891329765, 0.026391055434942245, -0.002878658240661025, 0.03077949956059456, 0.0065474375151097775, -0.009496552869677544, -0.0723489373922348, 0.06019012629985809, 0.05680820718407631, -0.0695306658744812, 0.04167008772492409, 0.02631053328514099, 0.03259124234318733, -0.024297485128045082, 0.04259609058499336, -0.022928614169359207, -0.054714635014534, 0.009964586235582829, 0.06155899912118912, -0.04116682708263397, -0.03452376648783684, -0.03408089652657509, 0.0538288950920105, -0.006970177870243788, 0.029249582439661026, -0.05394967645406723, -0.031403545290231705, 0.004894222132861614, -0.04895731806755066, -0.00941603071987629, 0.03689916431903839, 0.017342405393719673, 0.03838881850242615, -0.03822777420282364, 0.039254430681467056, -0.003427213756367564, 0.010558434762060642, 0.031967196613550186, -0.013859833590686321, 0.012702330946922302, 0.025243617594242096, 0.06397465616464615, 0.0451727919280529, 0.03774464502930641, 0.03957651928067207, -0.014081268571317196, -0.0033617897424846888, -0.04621957615017891, -0.053748372942209244, -0.0018671017605811357, -0.056325074285268784, -0.010246412828564644, -0.025122834369540215, 0.0035152845084667206, -0.02963206171989441, 0.051453497260808945, -0.03573159500956535, 0.02129804529249668, -0.017282014712691307, 0.016386209055781364, -0.003419664688408375, 0.017392732203006744, 0.03005480207502842, 0.01965741068124771, -0.03309450298547745, 0.02419683337211609, -0.05696925148367882, 0.006411557085812092, 0.01531929336488247, 0.014141660183668137, 0.04867549240589142, 0.06127717345952988, 0.005158434621989727, -0.006572600919753313, -0.009451258927583694, -0.056002985686063766, 0.016879405826330185, 0.0050049396231770515, 0.0460585318505764, -0.016567382961511612, 0.04509226977825165, 0.045857228338718414, -0.013104940764605999, -0.03430233150720596, 0.018077168613672256, 0.004121715202927589, 0.006326002534478903, -0.021982481703162193, -0.019486302509903908, -0.02331109158694744, 0.053305502980947495, 0.06099534407258034, 0.05322498083114624, 0.011363654397428036, -0.04012003913521767, 0.01576216332614422, 0.012964027002453804, 0.01981845498085022, -0.0011593896197155118, 0.0014984623994678259, 0.05668742209672928, 0.003545480314642191, -0.053023677319288254, 0.043159741908311844, 0.09163393080234528, -0.019284997135400772, -0.03162498027086258, 0.026250142604112625, 0.06135769188404083, -0.009692824445664883, 0.017392732203006744, 0.024579312652349472, -0.025988446548581123, 0.015047531574964523, 0.012339982204139233, 0.027256665751338005, -0.0022495808079838753, -0.028444364666938782, -0.012168873101472855, -0.07544902712106705, -0.015107923187315464, 0.03104119561612606, -0.07190605998039246, 0.013990681618452072, 0.0189729742705822, -0.0000426986298407428, 0.015681641176342964, 0.006854427512735128, -0.008887605741620064, -0.06896701455116272, 0.005676794331520796, 0.00996961910277605, 0.00434063421562314, 0.019103823229670525, 0.01653718762099743, 0.02689431793987751, -0.012108481489121914, 0.03120223991572857, 0.043723396956920624, 0.0018520038574934006, -0.010367196053266525, -0.03359776735305786, 0.0670747458934784, -0.01719142682850361, 0.003797111101448536, 0.08285704255104065, 0.04223373904824257, -0.014363095164299011, 0.005671761929988861, 0.04875601455569267, -0.0015664027305319905, 0.0007423113565891981, -0.04263634979724884, -0.017040448263287544, 0.0005485555157065392, -0.01787586323916912, 0.031967196613550186, 0.03838881850242615, -0.031101586297154427, -0.024861138314008713, -0.04996384307742119, 0.044287048280239105, 0.037120599299669266, -0.018338864669203758, -0.0566471628844738, -0.036838773638010025, 0.027961231768131256, -0.019597020000219345, -0.045978009700775146, 0.01237017847597599, -0.02248574234545231, -0.010508108884096146, -0.06252526491880417, 0.04875601455569267, -0.048152100294828415, -0.008716496638953686, 0.022687047719955444, 0.0317658931016922, -0.001177632948383689, 0.016215099021792412, -0.016356011852622032, 0.03810699284076691, -0.033396460115909576, -0.013386767357587814, -0.009602237492799759, 0.022244177758693695, 0.030235975980758667, -0.03178602457046509, 0.027156013995409012, -0.04867549240589142, 0.03391985222697258 ]
730,116
mmengine.logging.history_buffer
__getstate__
Make ``_statistics_methods`` can be resumed. Returns: dict: State dict including statistics_methods.
def __getstate__(self) -> dict: """Make ``_statistics_methods`` can be resumed. Returns: dict: State dict including statistics_methods. """ self.__dict__.update(statistics_methods=self._statistics_methods) return self.__dict__
(self) -> dict
[ 0.010019171983003616, -0.05756215378642082, 0.03303004428744316, -0.028833532705903053, 0.027050014585256577, -0.019618691876530647, -0.02210162952542305, 0.004255525302141905, 0.015824345871806145, -0.04018159955739975, -0.023273155093193054, 0.04207003116607666, 0.005695890635251999, 0.016139084473252296, -0.06889273226261139, 0.03427151218056679, -0.0005363119998946786, -0.01702210120856762, -0.04371366277337074, -0.058401454240083694, -0.01011534221470356, -0.0029288155492395163, 0.0027211755514144897, 0.01063990592956543, -0.031001729890704155, 0.027522122487425804, -0.02767949178814888, -0.06413669139146805, 0.08637820184230804, -0.0052980962209403515, -0.05518412962555885, 0.013044157065451145, -0.01888430304825306, -0.01890178769826889, 0.01995091699063778, -0.008677162230014801, 0.0019299582345411181, 0.039796918630599976, -0.07099098712205887, 0.0361599437892437, -0.018307283520698547, -0.04091598838567734, -0.026403052732348442, 0.009022500365972519, 0.04444805532693863, 0.005564749240875244, 0.025441352277994156, 0.0001564129488542676, 0.09533075988292694, -0.0720401182770729, 0.04693099111318588, -0.003569220658391714, 0.005459836684167385, 0.06857799738645554, -0.008069542236626148, -0.0020228498615324497, 0.01103332918137312, 0.003199840197339654, 0.0016031985869631171, 0.02021319791674614, -0.011181955225765705, -0.014084543101489544, 0.029725290834903717, -0.05329569801688194, 0.011216926388442516, -0.04021657258272171, -0.04493764787912369, 0.01620902679860592, -0.01490635983645916, 0.00982683151960373, 0.013262725435197353, -0.016672391444444656, 0.02154209464788437, 0.037174101918935776, -0.04399343207478523, -0.025371409952640533, -0.05039311200380325, -0.029935117810964584, -0.002725546946749091, -0.03379940614104271, -0.02260870672762394, 0.008572249673306942, -0.019793547689914703, 0.019915945827960968, -0.015422181226313114, -0.03815328702330589, 0.06448639929294586, -0.05612834542989731, -0.06179363653063774, -0.006325367372483015, -0.047770291566848755, 0.07525744289159775, 0.024846846237778664, 0.02582603320479393, 0.033921804279088974, -0.028903475031256676, -0.049413926899433136, 0.00025736421230249107, -0.03451630845665932, -0.08651808649301529, -0.053855232894420624, -0.016147827729582787, 0.013691119849681854, 0.002874173456802964, 0.02204917185008526, -0.0494488961994648, 0.03159623593091965, -0.05619828775525093, 0.010587449185550213, -0.010709847323596478, 0.005411751568317413, 0.006167998071759939, -0.025126613676548004, 0.016095371916890144, 0.04895930364727974, 0.002023942768573761, -0.004603048786520958, -0.012047485448420048, -0.009005014784634113, 0.02127981185913086, -0.022416366264224052, 0.0346212238073349, -0.020667821168899536, 0.02103501558303833, -0.0351632721722126, 0.04011165723204613, -0.012204854749143124, -0.006421537138521671, 0.05266622453927994, 0.014757732860744, -0.018779389560222626, -0.008043314330279827, 0.006959215272217989, 0.07693605124950409, 0.01944383792579174, 0.002343052299693227, 0.08085279166698456, 0.03005751594901085, -0.007177783641964197, 0.07134070247411728, 0.013629920780658722, 0.0064521366730332375, -0.021996716037392616, 0.01627022586762905, 0.07120081782341003, 0.016331424936652184, 0.022818531841039658, 0.0690675899386406, -0.015168641693890095, -0.0442032590508461, 0.07259965687990189, -0.039517153054475784, 0.012467136606574059, -0.0060412283055484295, -0.016418851912021637, -0.016611192375421524, -0.003136455314233899, 0.005997514817863703, -0.05437979847192764, -0.05140727013349533, -0.02958540804684162, 0.015500864945352077, -0.055254071950912476, -0.09071459621191025, -0.01600794307887554, 0.01251085102558136, 0.02871113456785679, -0.04514747112989426, -0.03706918656826019, -0.012965472415089607, -0.050463054329156876, -0.0696970671415329, -0.02923569828271866, 0.05745724216103554, -0.007702347822487354, 0.05567372217774391, 0.025878489017486572, 0.03568783402442932, 0.013219011947512627, -0.0032719678711146116, 0.027277326211333275, -0.04339892417192459, -0.15093454718589783, -0.0009321938850916922, -0.0191640704870224, 0.021157413721084595, 0.057597123086452484, -0.030739448964595795, 0.023343097418546677, 0.039237383753061295, -0.015850573778152466, -0.013052900321781635, 0.03386934846639633, -0.02292344532907009, -0.000949679350014776, -0.003473050659522414, -0.06200345978140831, -0.01835973933339119, -0.006067456677556038, 0.03533812612295151, -0.005695890635251999, -0.004419451579451561, 0.006019371561706066, -0.012047485448420048, -0.006793103646486998, 0.023605378344655037, -0.05189686268568039, -0.0012578606838360429, 0.01725815422832966, 0.02475941926240921, -0.04923907294869423, -0.038712821900844574, -0.0006076199351809919, 0.039831891655921936, 0.003490536008030176, -0.04200008884072304, 0.11442488431930542, 0.02876359038054943, -0.00008892998448573053, 0.008900102227926254, 0.06368206441402435, -0.0075056361965835094, -0.019531264901161194, -0.0457419790327549, -0.030005058273673058, 0.012318510562181473, -0.022486308589577675, -0.057387299835681915, -0.053645409643650055, -0.05091767758131027, 0.04710584506392479, -0.011916344985365868, -0.02636808156967163, -0.010718590579926968, -0.010709847323596478, 0.024846846237778664, -0.006845559924840927, -0.0007950422586873174, -0.021244840696454048, 0.01832476817071438, 0.012108685448765755, 0.012064971029758453, 0.048329826444387436, 0.012493365444242954, -0.058436427265405655, -0.06899765133857727, 0.044867705553770065, 0.03198091685771942, -0.019513780251145363, -0.015063729137182236, 0.039831891655921936, -0.05196680501103401, -0.03885270655155182, -0.04077610746026039, -0.004120012745261192, -0.06623494625091553, -0.013306439854204655, 0.03357209265232086, 0.03252296522259712, -0.032033372670412064, 0.042209915816783905, -0.04437811300158501, -0.05990520492196083, 0.005634691100567579, 0.0223289392888546, 0.04039142653346062, 0.04546220973134041, 0.00538989482447505, -0.05133732780814171, 0.01725815422832966, 0.0927429124712944, -0.03402671590447426, -0.05343558266758919, -0.006858673878014088, -0.02285350300371647, -0.01780020445585251, -0.008856388740241528, -0.04948386922478676, -0.03937726840376854, -0.023255668580532074, 0.06308756023645401, 0.017905116081237793, 0.0011693405685946345, 0.01292175892740488, 0.0072826966643333435, 0.0038752162363380194, -0.029393067583441734, 0.025493808090686798, 0.033642034977674484, 0.009380952455103397, 0.045916832983493805, -0.0024282941594719887, -0.00930226780474186, -0.013734833337366581, 0.07714587450027466, -0.03159623593091965, -0.0687878206372261, -0.0089044738560915, 0.01967114955186844, 0.03149132430553436, 0.033397238701581955, -0.011741490103304386, -0.03839808329939842, 0.05665290728211403, -0.03734895586967468, 0.00983557477593422, 0.05277113616466522, 0.013507522642612457, 0.018534593284130096, -0.03386934846639633, 0.0006863045273348689, 0.019863488152623177, 0.05728238448500633, 0.029637863859534264, 0.01275564730167389, -0.08218169212341309, -0.04179026186466217, -0.014521678909659386, -0.012519593350589275, 0.12127918750047684, -0.09400186687707901, 0.02264367789030075, 0.028431367129087448, 0.025406381115317345, 0.018971730023622513, 0.008191940374672413, -0.0015900845173746347, -0.026403052732348442, 0.015500864945352077, -0.02419988438487053, -0.09540069848299026, -0.04042639583349228, 0.06696933507919312, 0.02313327044248581, -0.06403177231550217, 0.03427151218056679, 0.035530466586351395, 0.02661287970840931, -0.01531726773828268, -0.04763040691614151, 0.05406505987048149, -0.02449713833630085, -0.03159623593091965, 0.009809345938265324, -0.012703190557658672, -0.02444468066096306, 0.018534593284130096, -0.01173274777829647, 0.08022331446409225, -0.06431154161691666, -0.03647468239068985, -0.009066213853657246, -0.01809745654463768, 0.10868965834379196, 0.050428081303834915, -0.037943460047245026, 0.006766875274479389, -0.011890117079019547, -0.0033397239167243242, -0.01592925935983658, 0.02152460813522339, 0.06574535369873047, -0.073578841984272, 0.012414680793881416, 0.049623750150203705, -0.008218169212341309, -0.005621577147394419, -0.0033047529868781567, 0.04392348974943161, -0.06717915832996368, -0.01462659239768982, -0.0819019228219986, -0.03192846104502678, 0.050952646881341934, 0.03537309542298317, 0.00512324133887887, -0.015876803547143936, 0.019548751413822174, -0.008607220835983753, 0.06322744488716125, 0.06396183371543884, -0.0035757776349782944, -0.013000443577766418, 0.03334478288888931, 0.0076498910784721375, 0.018045000731945038, 0.006937358528375626, -0.011793946847319603, 0.039272356778383255, -0.021979229524731636, -0.07623662799596786, -0.017494209110736847, -0.1016954705119133, 0.016995873302221298, 0.013157812878489494, 0.009992944076657295, 0.028151599690318108, -0.013629920780658722, 0.004686104599386454, -0.014460479840636253, 0.041125815361738205, -0.026175742968916893, 0.020073315128684044, -0.012545821256935596, -0.0035888918209820986, -0.048259884119033813, 0.0330825001001358, 0.01806248538196087, 0.02474193461239338, -0.08826663345098495, 0.006251053884625435, -0.04280441999435425, -0.050148315727710724, -0.021629521623253822, -0.010176541283726692, -0.02930564060807228, -0.0028872876428067684, 0.0009207190596498549, 0.04549718275666237, 0.04850468039512634, 0.05091767758131027, 0.04658127948641777, 0.021174898371100426, -0.005560378078371286, -0.006172369234263897, 0.026770247146487236, -0.045916832983493805, 0.005381152033805847, -0.006465251091867685, 0.04983357712626457, 0.04224488511681557, 0.030249856412410736, -0.010290196165442467, -0.017214441671967506, 0.013184040784835815, -0.028396395966410637, -0.0016720476560294628, -0.029952602460980415, -0.02767949178814888, 0.0742083191871643, 0.012423423118889332, 0.03252296522259712, 0.01806248538196087, 0.007357009686529636, 0.03864287957549095, -0.025668663904070854, -0.0025965915992856026, -0.0032763390336185694, 0.07532738894224167, -0.04731567203998566, -0.0045112501829862595, -0.03532063961029053, 0.06130404397845268, 0.008170084096491337, -0.013105356134474277, 0.019373895600438118, -0.008336195722222328, -0.004611791577190161, -0.026018373668193817, 0.0009474936523474753, -0.003381251823157072, -0.022818531841039658, -0.12680459022521973, 0.00813074130564928, 0.012484622187912464, -0.011619091965258121, -0.0025026071816682816, -0.016086628660559654, -0.04077610746026039, 0.03378191962838173, 0.050707850605249405, 0.027067501097917557, -0.005778946448117495, -0.05784191936254501, -0.04518244415521622, -0.0023299383465200663, -0.03175360709428787, 0.009573292918503284, -0.025895975530147552, -0.04822491481900215, 0.0341666005551815, 0.03588017448782921, -0.0047385613434016705, 0.008047685958445072, 0.02101752907037735, -0.03269781917333603, 0.03110664337873459, 0.02075524814426899, 0.04147552326321602, -0.03962206467986107, -0.024147428572177887, 0.0011551335919648409, 0.02425234019756317, 0.04210500046610832, 0.005713375750929117, 0.03804837167263031, 0.004082856234163046, 0.011916344985365868, 0.06756383925676346, 0.007155926898121834, 0.019338924437761307, -0.04294430464506149, 0.04902924597263336, 0.037698663771152496, -0.0008939444087445736, 0.023273155093193054, -0.02822154201567173, 0.0034970932174474, 0.00493090134114027, 0.013245239853858948, 0.03269781917333603, 0.010867216624319553, 0.006386566441506147, -0.0006059806910343468, -0.011286867782473564, -0.052561309188604355, -0.03913247212767601, 0.01968863420188427, -0.013140327297151089, 0.0067231617867946625, 0.017467979341745377, 0.05588354915380478, 0.03727901354432106, 0.009879288263618946, -0.023378068581223488, -0.01782643236219883, -0.0012480251025408506, -0.02610580064356327, 0.007164669688791037, 0.03783854842185974, 0.022713620215654373, -0.049413926899433136, -0.0029047729913145304, 0.04213997349143028, 0.00783785991370678, -0.003381251823157072, -0.008388652466237545, -0.05343558266758919, -0.06532569974660873, -0.00865093432366848, 0.06235317140817642, -0.020825190469622612, -0.014276882633566856, 0.002600962994620204, 0.023885145783424377, -0.0025550636928528547, -0.01025522593408823, -0.020125770941376686, -0.008589735254645348, -0.05987023562192917, 0.007588692009449005, -0.035810232162475586, -0.010141570121049881, -0.07616668939590454, 0.01053499337285757, -0.02479439042508602, 0.0522465705871582, -0.006928615737706423, 0.03035476803779602, 0.009022500365972519, -0.011627834290266037, -0.007151555269956589, -0.016829760745167732, -0.012965472415089607, -0.010368880815804005, 0.03574029356241226, 0.04476279392838478, 0.08120249956846237, -0.044028401374816895, -0.03511081635951996, 0.04014663025736809, 0.0009425758616998792, -0.0012010328937321901, 0.0028894732240587473, 0.03836311027407646, 0.014783961698412895, 0.04011165723204613, 0.0452873557806015, 0.02479439042508602, -0.04133564233779907, 0.0335371233522892, -0.028413882479071617, -0.03304753080010414, -0.04175529256463051, -0.04441308230161667, 0.028833532705903053, -0.05808671563863754, 0.0494488961994648, 0.05546389892697334, 0.033659521490335464, -0.04983357712626457, -0.0026031488087028265, 0.02769697830080986, -0.034761104732751846, 0.014740247279405594, 0.007252097129821777, 0.013227755203843117, -0.01677730493247509, -0.04955381155014038, 0.04888936132192612, -0.034761104732751846, 0.045357298105955124, 0.052806105464696884, -0.019758576527237892, 0.0014862646348774433, -0.011374295689165592, 0.004485021810978651, 0.061933521181344986, -0.0533306710422039, 0.013944658450782299, -0.039552122354507446, -0.009267296642065048, 0.05039311200380325, 0.019758576527237892, 0.05556881055235863, -0.03759375214576721, -0.0038708450738340616, -0.006911130156368017, -0.0072389827109873295, 0.019548751413822174, -0.05137229710817337, 0.04151049628853798, -0.018534593284130096, 0.01914658583700657, -0.02393760345876217, -0.013577464036643505, 0.05368037894368172, -0.033659521490335464, -0.026997558772563934, -0.05291102081537247, -0.02024816907942295, -0.014434251934289932, 0.054449740797281265, -0.06032485514879227, 0.017992544919252396, -0.0017857032362371683, 0.03752380982041359, 0.05647805333137512, -0.023605378344655037, 0.01172400452196598, 0.0023889518342912197, -0.028641192242503166, 0.03720907121896744, -0.025930944830179214, -0.030494652688503265, -0.0008032385958358645, -0.018027516081929207, -0.007431322708725929, 0.03913247212767601, -0.0072389827109873295, -0.029358096420764923, -0.003584520425647497, -0.026158256456255913, -0.00013715162640437484, -0.04602174460887909, -0.03140389546751976, 0.010185283608734608, 0.014818931929767132, 0.024304797872900963, -0.0309143029153347, -0.07183029502630234, 0.013446323573589325, -0.06410171836614609, 0.0013955587055534124, 0.08616837859153748, 0.030529623851180077, -0.08973541110754013, 0.1032341867685318, 0.0420350581407547, -0.016593707725405693, 0.09561052918434143, 0.03755877912044525, 0.029760261997580528, 0.008419252000749111, -0.04888936132192612, 0.05546389892697334, -0.016331424936652184, -0.03194594755768776, -0.0021692905575037003, 0.0003374148509465158, -0.008283738978207111, 0.06067456677556038, -0.022556250914931297, 0.020650334656238556, 0.0012982957996428013, 0.026228198781609535, -0.0013715162640437484, -0.04091598838567734, 0.01778271794319153, -0.03542555496096611, -0.031054187566041946, -0.026438023895025253, 0.0073220389895141125, 0.03414911404252052, 0.020353082567453384, -0.030931789427995682, -0.04385354742407799, -0.08358052372932434, 0.06098930537700653, -0.06606008857488632, 0.013140327297151089, 0.009153641760349274, 0.026770247146487236, -0.01025522593408823, 0.03622988611459732, 0.00836242362856865, 0.005949429702013731, -0.012965472415089607, 0.04955381155014038, -0.010596192441880703, 0.033187415450811386, 0.011181955225765705, -0.01369986217468977, 0.005236897151917219, 0.020877646282315254, -0.009529578499495983, 0.008795189671218395, -0.021472152322530746, -0.0033440953120589256, 0.028326453641057014, -0.0070510138757526875, 0.0020523564890027046, 0.019496293738484383, 0.01728438213467598, 0.004386666230857372, 0.04123072698712349, 0.024357253685593605, 0.002380209043622017, -0.00918861199170351, -0.005022699944674969, -0.03493595868349075, -0.04822491481900215, -0.07081613689661026, 0.02533644065260887, 0.006701304577291012, -0.005118870176374912, 0.028134115040302277, 0.04339892417192459, 0.004366994835436344, 0.06686442345380783, 0.038188256323337555, 0.02790680341422558, 0.022731104865670204, 0.02984769083559513, 0.012283539399504662, -0.02285350300371647, 0.01489761658012867, -0.019601207226514816, 0.0346212238073349, -0.04172031953930855, 0.03303004428744316, 0.030791904777288437, 0.011409265920519829, 0.010298939421772957, 0.020073315128684044, -0.01036013849079609, -0.020388053730130196, -0.025161584839224815, 0.005184440407902002, -0.035845205187797546, -0.0279767457395792, -0.0394122414290905, 0.01728438213467598, 0.018761904910206795, 0.01567571982741356, 0.049413926899433136, 0.0060018859803676605, -0.014923845417797565 ]
730,117
mmengine.logging.history_buffer
__init__
null
def __init__(self, log_history: Sequence = [], count_history: Sequence = [], max_length: int = 1000000): self.max_length = max_length self._set_default_statistics() assert len(log_history) == len(count_history), \ 'The lengths of log_history and count_histroy should be equal' if len(log_history) > max_length: warnings.warn(f'The length of history buffer({len(log_history)}) ' f'exceeds the max_length({max_length}), the first ' 'few elements will be ignored.') self._log_history = np.array(log_history[-max_length:]) self._count_history = np.array(count_history[-max_length:]) else: self._log_history = np.array(log_history) self._count_history = np.array(count_history)
(self, log_history: Sequence = [], count_history: Sequence = [], max_length: int = 1000000)
[ -0.04381365329027176, 0.03331700339913368, -0.06652653217315674, 0.009574160911142826, -0.017177961766719818, 0.009968233294785023, -0.07788297533988953, 0.027101412415504456, -0.007585887797176838, 0.00850837491452694, -0.016712239012122154, 0.04585566371679306, 0.015995744615793228, 0.00810534693300724, 0.007088819518685341, 0.05219664052128792, 0.06602498888969421, -0.05452524870634079, -0.027173062786459923, 0.036021772772073746, -0.016559984534978867, 0.0016053960425779223, -0.07602009177207947, 0.06054380536079407, -0.02862396463751793, 0.027764171361923218, -0.02471906878054142, -0.000604542437940836, 0.015852445736527443, 0.04435102269053459, 0.0007349668303504586, -0.030164428055286407, 0.00435718335211277, 0.015780795365571976, -0.014311982318758965, -0.07917266339063644, -0.020348450168967247, -0.0007338473224081099, -0.10661441832780838, 0.037401024252176285, 0.042201537638902664, -0.0533430315554142, -0.004473614040762186, 0.02960914373397827, -0.017894456163048744, 0.02529226429760456, 0.023106954991817474, 0.016765976324677467, -0.029465844854712486, -0.049939680844545364, -0.03195566311478615, 0.017213786020874977, -0.0032712463289499283, 0.018431827425956726, -0.03492911905050278, 0.09579534083604813, 0.058537617325782776, 0.038583241403102875, -0.006909695919603109, -0.020133500918745995, -0.05800024792551994, 0.027513397857546806, 0.0916396751999855, -0.01950656808912754, 0.016434596851468086, -0.01333575788885355, -0.030970484018325806, -0.0029868874698877335, 0.04915153980255127, -0.009403993375599384, 0.0010988118592649698, 0.022820357233285904, 0.01056829746812582, 0.033531952649354935, -0.028355278074741364, 0.02222924865782261, -0.05925411358475685, 0.06570256501436234, -0.010810114443302155, -0.024324996396899223, 0.027746258303523064, 0.04832756891846657, 0.021799352020025253, 0.016255473718047142, 0.025507211685180664, -0.038045868277549744, 0.009023355320096016, 0.032636333256959915, -0.008736757561564445, 0.006305153481662273, -0.09027833491563797, 0.020330537110567093, 0.005400578957051039, 0.013873129151761532, -0.026886465027928352, -0.024378733709454536, -0.046643804758787155, -0.018539300188422203, 0.02222924865782261, 0.0018203443614766002, -0.047826021909713745, -0.007594843860715628, -0.018396001309156418, 0.024127960205078125, -0.07387060672044754, -0.0021035836543887854, -0.009493554942309856, -0.04503169283270836, 0.0033160271123051643, 0.0071694254875183105, -0.019560305401682854, 0.09199792146682739, 0.037042777985334396, -0.016640590503811836, -0.028695613145828247, 0.053737103939056396, 0.01701674982905388, -0.018378090113401413, -0.03057641163468361, 0.0006459647556766868, 0.027585046365857124, -0.0209753829985857, -0.026599867269396782, 0.06262163817882538, 0.020509662106633186, 0.006417105905711651, 0.00410417141392827, -0.027226800099015236, 0.03451713174581528, -0.027513397857546806, 0.02821197919547558, -0.038547415286302567, 0.010550384409725666, 0.06527266651391983, 0.05932576209306717, -0.04918736219406128, 0.019309531897306442, 0.01808253489434719, -0.0716852992773056, -0.026402831077575684, -0.0027182018384337425, 0.025238526985049248, 0.0639471560716629, -0.0130312480032444, -0.00973537191748619, 0.031776539981365204, 0.028534403070807457, -0.005243845749646425, -0.01925579644739628, 0.00566926458850503, 0.01066681556403637, -0.04621390998363495, -0.009726416319608688, 0.011696776375174522, 0.0017184677999466658, -0.009726416319608688, -0.01048769149929285, -0.027423836290836334, 0.050512876361608505, 0.02170979045331478, -0.004090737085789442, -0.005355798173695803, -0.029465844854712486, -0.04109097272157669, -0.07100462913513184, 0.01693614386022091, -0.0025144487153738737, -0.005149805918335915, -0.04864999279379845, 0.049617260694503784, 0.018127316609025, -0.022730795666575432, 0.033334918320178986, 0.006761918775737286, -0.08053400367498398, 0.038296643644571304, 0.006112595554441214, 0.018046710640192032, 0.0032488557044416666, 0.03636210784316063, -0.020617134869098663, -0.00086259248200804, -0.035197801887989044, -0.051372673362493515, 0.0035063461400568485, 0.0074515449814498425, -0.015216556377708912, 0.00973537191748619, 0.021118681877851486, 0.0415208674967289, -0.05044122785329819, -0.02862396463751793, 0.042129889130592346, -0.05388040468096733, 0.036756180226802826, 0.013819391839206219, -0.02040218748152256, 0.022014301270246506, 0.010272743180394173, -0.0007915027672424912, -0.008248645812273026, 0.048040971159935, -0.004885598551481962, -0.10310359299182892, -0.012440139427781105, 0.0287135262042284, -0.024253346025943756, 0.06348143517971039, -0.055528342723846436, -0.0038354857824742794, 0.02081417106091976, -0.035287365317344666, -0.027746258303523064, 0.011965462006628513, 0.004948291461914778, -0.013765654526650906, -0.005933471955358982, 0.016389816999435425, 0.06978658586740494, -0.02939419634640217, 0.16092471778392792, -0.0647711232304573, -0.10525307804346085, -0.014159726910293102, -0.02292783185839653, 0.036218807101249695, 0.05835849419236183, 0.005445359740406275, 0.0009129710379056633, 0.007585887797176838, 0.012350577861070633, 0.02235463447868824, -0.0006392476498149335, -0.008127736859023571, 0.040625251829624176, -0.005973774939775467, -0.0181183610111475, 0.043634530156850815, -0.02939419634640217, -0.006305153481662273, -0.02120824344456196, -0.022014301270246506, 0.031704891473054886, 0.03451713174581528, -0.007317202165722847, -0.022175511345267296, -0.013586531393229961, 0.06552344560623169, -0.015332987532019615, 0.0075903660617768764, -0.03464252129197121, 0.008056087419390678, -0.05964818596839905, -0.04538993909955025, 0.04084019735455513, -0.003775031538680196, 0.031740717589855194, -0.021279893815517426, 0.026241619139909744, -0.07111210376024246, 0.0258654598146677, -0.03539483994245529, -0.013219327665865421, 0.02120824344456196, -0.03668452799320221, 0.006815656088292599, 0.02052757330238819, -0.0187363363802433, -0.016971968114376068, 0.06444869935512543, 0.06466364860534668, 0.01819896511733532, -0.05094277486205101, -0.042129889130592346, -0.004323597997426987, -0.014580667950212955, 0.03197357803583145, -0.05936158820986748, -0.005082634277641773, 0.026026669889688492, 0.034678343683481216, -0.018467651680111885, 0.038045868277549744, -0.01827957108616829, 0.053522154688835144, 0.0037504020147025585, -0.00975328404456377, -0.056137360632419586, 0.00037839877768419683, -0.022569583728909492, 0.02373388782143593, 0.04524664208292961, -0.024790717288851738, 0.02814033068716526, 0.01013839989900589, -0.012673000805079937, 0.004148952197283506, 0.033209528774023056, 0.010174225084483624, 0.014159726910293102, -0.04915153980255127, -0.05284148454666138, 0.08662421256303787, -0.025095228105783463, -0.05133684724569321, -0.03965798392891884, 0.0017856392078101635, -0.017124224454164505, 0.07874277234077454, -0.009126351214945316, 0.040338654071092606, 0.09601029008626938, 0.015055345371365547, 0.02858813852071762, -0.016640590503811836, 0.05488349497318268, 0.0034145452082157135, -0.01848556473851204, 0.009377124719321728, 0.05484767258167267, -0.005149805918335915, 0.009041267447173595, 0.005154283717274666, -0.058824215084314346, -0.007809792645275593, -0.004881120286881924, 0.020581310614943504, -0.038010045886039734, -0.002664464758709073, -0.0007136958884075284, -0.033943936228752136, -0.013774611055850983, 0.019882729277014732, 0.02129780501127243, 0.01604052633047104, 0.03131081908941269, -0.058251019567251205, 0.019578218460083008, 0.035359013825654984, -0.06158272176980972, -0.015852445736527443, -0.04173581674695015, -0.026331180706620216, 0.05696133151650429, 0.05398787558078766, -0.06194096803665161, 0.01484039705246687, -0.03358568996191025, -0.005714045371860266, -0.0071694254875183105, -0.002642074367031455, -0.018664687871932983, -0.004675128031522036, 0.04431520029902458, 0.025560948997735977, -0.027710434049367905, 0.002487580059096217, -0.03269007056951523, 0.005328929517418146, -0.011508696712553501, -0.050835300236940384, 0.04227318987250328, -0.022300899028778076, -0.0074828919023275375, 0.0019837948493659496, 0.036344196647405624, -0.000028967657272005454, -0.009511467069387436, -0.042094066739082336, 0.007290333975106478, -0.008432247675955296, -0.03191984072327614, -0.004885598551481962, 0.06949999183416367, -0.033693164587020874, 0.03399767354130745, -0.028247805312275887, 0.0007086580735631287, -0.048721641302108765, -0.040052056312561035, -0.01827957108616829, -0.0015236708568409085, -0.02491610310971737, 0.0014900851529091597, -0.03783092275261879, 0.03808169439435005, -0.019560305401682854, -0.011902768164873123, 0.03958633169531822, 0.04675127938389778, 0.01758994534611702, -0.03843994066119194, -0.03689947724342346, -0.06724303215742111, 0.0008530765189789236, 0.030003216117620468, 0.05388040468096733, 0.08526287227869034, 0.01718691736459732, -0.022945743054151535, -0.04130592197179794, -0.015180732123553753, -0.014419456012547016, 0.034105148166418076, -0.027173062786459923, 0.01592409610748291, 0.03994458168745041, -0.01620173640549183, -0.03430218622088432, -0.005216977093368769, 0.0732974112033844, -0.0287135262042284, -0.011571389622986317, -0.021530667319893837, 0.02065296098589897, -0.007348549086600542, -0.021853089332580566, -0.0688193216919899, 0.031346645206213, 0.016156956553459167, 0.031579505652189255, 0.09507884830236435, 0.020258888602256775, 0.021226156502962112, 0.05474019795656204, 0.057821124792099, -0.053486332297325134, 0.0012046067276969552, 0.013496968895196915, -0.04173581674695015, -0.00738885160535574, 0.04786184802651405, -0.03294084593653679, -0.02459368109703064, -0.01256552617996931, 0.015359855256974697, -0.02394883520901203, 0.011589301750063896, -0.020670872181653976, 0.04474509507417679, 0.000004635524874174735, -0.022121774032711983, 0.09257111698389053, 0.06695643067359924, -0.00005240767131908797, -0.007581409998238087, 0.001699435873888433, -0.024342907592654228, -0.05889586731791496, -0.014150770381093025, -0.012861080467700958, 0.025632599368691444, -0.01576288416981697, -0.01549419853836298, 0.05183839425444603, -0.050835300236940384, -0.0753035917878151, 0.01125792320817709, 0.023841362446546555, -0.016443554311990738, -0.003553366055712104, 0.02948375791311264, -0.004039239138364792, -0.050477053970098495, -0.056101538240909576, -0.008199386298656464, 0.036093421280384064, -0.024038398638367653, -0.022336723282933235, 0.02692228928208351, 0.047252826392650604, 0.011078800074756145, 0.02577589824795723, -0.007415720261633396, -0.03498285636305809, -0.048076797276735306, 0.040410302579402924, -0.04538993909955025, -0.02007976546883583, -0.004742299672216177, -0.012449095956981182, 0.004764690063893795, -0.0027517876587808132, 0.006573839113116264, -0.01877216249704361, 0.01941700652241707, -0.0181183610111475, -0.0700731873512268, 0.02120824344456196, 0.039192263036966324, -0.042201537638902664, -0.0026443132665008307, -0.04822009429335594, 0.036756180226802826, 0.039156436920166016, 0.013093940913677216, 0.07523194700479507, 0.045139167457818985, -0.022497935220599174, 0.009977188892662525, -0.015216556377708912, -0.013461144641041756, 0.0018919939175248146, -0.051050249487161636, 0.008387465961277485, -0.0003000321739818901, -0.012655087746679783, -0.04743194952607155, -0.07559019327163696, -0.030683886259794235, -0.014732922427356243, 0.006421584170311689, -0.019578218460083008, 0.008454637601971626, -0.033621516078710556, -0.04044612869620323, -0.07365565747022629, -0.029949478805065155, 0.003150337841361761, 0.025955021381378174, 0.004849773831665516, 0.06462782621383667, -0.01474187895655632, -0.0683894231915474, -0.0006661161896772683, -0.06140359863638878, 0.008915881626307964, -0.02369806356728077, 0.048721641302108765, -0.0028368711937218904, -0.04474509507417679, -0.021405279636383057, 0.009601029567420483, 0.07630668580532074, 0.016586853191256523, 0.03715025261044502, 0.046930402517318726, -0.03865488991141319, 0.01934535801410675, -0.01125792320817709, -0.03657705709338188, 0.0060364678502082825, -0.02488027885556221, -0.03998040407896042, -0.04320463165640831, 0.04263143613934517, 0.009726416319608688, 0.07351236045360565, 0.011884856037795544, -0.010657859034836292, -0.01237744651734829, -0.021279893815517426, 0.030594324693083763, -0.02557886205613613, -0.01947074383497238, -0.022085949778556824, 0.043634530156850815, -0.01950656808912754, 0.0708255022764206, 0.0006123791099525988, -0.0018192249117419124, -0.016631633043289185, -0.030970484018325806, 0.02215760014951229, -0.04381365329027176, 0.015162819996476173, 0.02248002216219902, 0.022175511345267296, -0.016425641253590584, 0.04198659211397171, 0.00859345868229866, 0.029501670971512794, -0.08569277077913284, -0.00014301906048785895, 0.005140849854797125, -0.04001623019576073, -0.014571711421012878, 0.02651030384004116, 0.053199734538793564, 0.027764171361923218, 0.02475489303469658, 0.049581434577703476, -0.03879819065332413, -0.040911849588155746, 0.05570746585726738, 0.06892678886651993, -0.05488349497318268, 0.019202059134840965, 0.01477770321071148, 0.0033854376524686813, -0.007724708877503872, 0.05757034942507744, -0.04198659211397171, -0.021888913586735725, -0.016998836770653725, 0.02174561470746994, -0.013756698928773403, -0.060615453869104385, -0.04499587044119835, 0.026438655331730843, 0.0053647542372345924, 0.04746777564287186, -0.05685385689139366, 0.007666493766009808, 0.029018037021160126, -0.07709483057260513, -0.0037414459511637688, 0.05542086809873581, -0.005230411421507597, 0.05269818753004074, -0.0500829815864563, 0.043670352548360825, 0.029107598587870598, -0.0329766683280468, -0.009278606623411179, -0.030916746705770493, -0.009609985165297985, 0.02312486805021763, 0.03514406457543373, 0.026940202340483665, 0.003239899640902877, 0.007420198526233435, -0.002137169474735856, 0.02849857695400715, -0.0769515335559845, -0.036756180226802826, -0.020832084119319916, -0.059146638959646225, 0.008468071930110455, -0.005400578957051039, 0.037974219769239426, -0.0346066951751709, 0.037974219769239426, -0.011813206598162651, 0.032725896686315536, -0.03301249444484711, 0.014688141644001007, 0.03758014738559723, 0.08705411106348038, 0.04148504510521889, -0.02149484120309353, -0.025955021381378174, 0.018216878175735474, -0.043921127915382385, 0.004867685958743095, -0.012180410325527191, 0.0289105623960495, 0.05366545543074608, 0.03387228772044182, -0.0027965684421360493, 0.02305321767926216, 0.005951384082436562, -0.02325025387108326, 0.03851159289479256, -0.03066597506403923, 0.022282985970377922, 0.00431464146822691, 0.024826541543006897, 0.047181177884340286, -0.007509760092943907, -0.0238234493881464, 0.028391104191541672, 0.0240204855799675, 0.005687176715582609, 0.01604052633047104, -0.011678864248096943, 0.025113139301538467, 0.0209753829985857, -0.008172517642378807, 0.05305643379688263, -0.007953091524541378, -0.024969840422272682, 0.04703787714242935, 0.0205633994191885, 0.02251584641635418, 0.008235211484134197, 0.0048049925826489925, 0.06835359334945679, 0.05420282483100891, -0.04144921898841858, 0.03150785714387894, 0.0521249920129776, -0.013756698928773403, -0.12388193607330322, 0.03265424817800522, 0.06054380536079407, -0.03195566311478615, 0.034105148166418076, 0.03184819221496582, -0.028373191133141518, 0.022265072911977768, 0.026886465027928352, 0.024969840422272682, -0.024378733709454536, -0.04241648688912392, 0.023930924013257027, -0.07136287540197372, -0.0386907160282135, -0.0026040105149149895, -0.04413607344031334, 0.020581310614943504, 0.045712362974882126, -0.037974219769239426, 0.031776539981365204, -0.01861095055937767, -0.018843811005353928, -0.07917266339063644, 0.027638783678412437, -0.010711596347391605, -0.022784532979130745, 0.04671545699238777, 0.022730795666575432, 0.03224226087331772, -0.031418293714523315, -0.0181183610111475, 0.050835300236940384, 0.055599991232156754, -0.001039477065205574, -0.04746777564287186, 0.03851159289479256, 0.012117717415094376, -0.0008530765189789236, 0.03765179589390755, 0.044530145823955536, -0.03901313617825508, -0.005749870091676712, 0.037974219769239426, 0.0329766683280468, 0.04538993909955025, -0.08332833647727966, -0.023769712075591087, 0.006954476702958345, -0.025148965418338776, -0.03319161757826805, -0.012431183829903603, -0.06072292849421501, -0.040983498096466064, -0.04270308464765549, 0.06136777251958847, 0.011947549879550934, -0.017410822212696075, -0.05237576365470886, 0.02411004714667797, 0.06634741276502609, -0.04918736219406128, -0.037078600376844406, -0.01754516363143921, -0.010236917994916439, -0.0238234493881464, -0.0871257558465004, -0.012923773378133774, -0.029913654550909996, 0.0020890298765152693, -0.004339271225035191, 0.025668423622846603, -0.009726416319608688, 0.00643501803278923, -0.010326480492949486, -0.009117395617067814, -0.025256438180804253, -0.01995437778532505, -0.03066597506403923, 0.021602315828204155, 0.014849353581666946, -0.00983389001339674, 0.035896386951208115, 0.022336723282933235, 0.01229684054851532 ]
730,118
mmengine.logging.history_buffer
__setstate__
Try to load ``_statistics_methods`` from state. Args: state (dict): State dict.
def __setstate__(self, state): """Try to load ``_statistics_methods`` from state. Args: state (dict): State dict. """ statistics_methods = state.pop('statistics_methods', {}) self._set_default_statistics() self._statistics_methods.update(statistics_methods) self.__dict__.update(state)
(self, state)
[ -0.03695530444383621, -0.06277530640363693, 0.03547639772295952, -0.0008753831498324871, 0.0114658884704113, -0.012753408402204514, -0.02655075117945671, 0.01759030856192112, -0.025315428152680397, -0.02804705873131752, -0.02905619703233242, 0.07088319957256317, -0.00033465735032223165, 0.028273245319724083, -0.07474575936794281, 0.04196619614958763, 0.01802528090775013, 0.028464632108807564, -0.04756864532828331, -0.06594190746545792, -0.03498922660946846, -0.00774686923250556, 0.010274061933159828, 0.055537354201078415, -0.0292475838214159, 0.012466326355934143, -0.011100511066615582, -0.054249830543994904, 0.07843433320522308, -0.02505444549024105, -0.03493703156709671, -0.0036494233645498753, -0.044645629823207855, 0.01575472205877304, 0.013640752993524075, -0.05811239406466484, 0.04694228619337082, 0.04983050748705864, -0.07627686858177185, 0.05832117795944214, 0.017694702371954918, -0.03872999548912048, 0.008951744064688683, 0.009360618889331818, 0.025750402361154556, 0.033997491002082825, -0.0017812143778428435, 0.028951803222298622, 0.06107020750641823, -0.07147476077079773, 0.009795592166483402, -0.013536360114812851, 0.0018703838577494025, 0.06712502986192703, -0.0011809517163783312, 0.037894848734140396, 0.05724244564771652, 0.0460723415017128, 0.01452809851616621, 0.02684653364121914, -0.01990436390042305, -0.009099635295569897, 0.012509823776781559, -0.06545473635196686, 0.004780353046953678, -0.047011882066726685, -0.052161961793899536, 0.030204525217413902, -0.02009575255215168, 0.002968690823763609, -0.0020052255131304264, 0.021940037608146667, 0.036502934992313385, 0.04683789238333702, -0.020809108391404152, 0.01715533435344696, -0.05967829376459122, -0.006454999092966318, -0.019538987427949905, -0.012614216655492783, -0.002071558963507414, -0.005284921731799841, -0.006620288826525211, 0.026133177801966667, -0.04868217930197716, -0.058912742882966995, 0.07530252635478973, -0.0377904549241066, -0.02554161474108696, -0.0032644723542034626, -0.059399913996458054, 0.04659430682659149, 0.030239323154091835, 0.018686439841985703, 0.02352334000170231, -0.006859524175524712, -0.03455425426363945, -0.00478470278903842, -0.054910991340875626, -0.05268393084406853, -0.05592012777924538, -0.05049166455864906, 0.030326317995786667, -0.016833454370498657, 0.0039104074239730835, -0.06395842880010605, 0.03866039961576462, -0.0545630119740963, -0.02766428329050541, -0.014328010380268097, 0.0005779703496955335, -0.023819120600819588, -0.018338462337851524, 0.00685517443343997, 0.042244575917720795, -0.0012690337607637048, 0.01715533435344696, -0.03413667902350426, -0.008960443548858166, 0.042383767664432526, -0.0292475838214159, 0.04694228619337082, -0.0230361707508564, 0.051152825355529785, -0.019399795681238174, 0.02453247644007206, 0.009212727658450603, 0.009247525595128536, 0.03719889000058174, -0.020374136045575142, 0.0018866953905671835, -0.01821666955947876, -0.00725100003182888, 0.06406282633543015, 0.02573300339281559, -0.0030013136565685272, 0.034432463347911835, 0.004749905318021774, -0.0036559479776769876, 0.04746425524353981, 0.017564209178090096, 0.00787736102938652, 0.01209224946796894, 0.0002223799383500591, 0.07544171810150146, 0.0626361146569252, 0.005345818120986223, 0.05783401057124138, -0.03133545443415642, -0.01729452610015869, 0.040504686534404755, -0.041235439479351044, -0.001019467948935926, -0.013449365273118019, -0.033371128141880035, -0.032257597893476486, -0.005036987364292145, -0.018616843968629837, -0.03580697625875473, -0.04318412020802498, -0.0010406728833913803, 0.007546781562268734, -0.053136300295591354, -0.06493277102708817, -0.053414683789014816, 0.01525015290826559, -0.0029773900751024485, -0.06639427691698074, -0.04461083188652992, 0.005550255533307791, -0.058181989938020706, -0.08615945279598236, -0.02796006388962269, 0.06674225628376007, 0.03314494341611862, 0.03190961852669716, 0.007111808285117149, 0.018721237778663635, 0.016424579545855522, -0.0014212742680683732, 0.027507692575454712, -0.02453247644007206, -0.12074850499629974, -0.0008764705853536725, -0.035598188638687134, 0.039634738117456436, 0.04429765045642853, -0.03267517313361168, 0.018669040873646736, 0.06047864630818367, 0.029995737597346306, -0.014493300579488277, -0.0007296671974472702, -0.04140942916274071, 0.020756911486387253, 0.00805134978145361, -0.06392363458871841, -0.042488161474466324, 0.002069384092465043, 0.043253716081380844, -0.015545935370028019, 0.006981316488236189, 0.029508568346500397, -0.01558943185955286, 0.014354108832776546, 0.04165301471948624, -0.02736850082874298, 0.04140942916274071, -0.005150080192834139, -0.0021629033144563437, -0.007990454323589802, -0.04969131574034691, -0.014432404190301895, 0.052544739097356796, -0.011144008487462997, -0.0584951676428318, 0.09729476273059845, 0.023836519569158554, -0.0006415851530618966, -0.00787736102938652, 0.10147050023078918, 0.04165301471948624, -0.01700744405388832, -0.016955247148871422, -0.01734672300517559, 0.017764296382665634, -0.013597255572676659, -0.05919112637639046, -0.049134548753499985, -0.02978694997727871, 0.03744247555732727, 0.0007883885409682989, 0.009151832200586796, -0.019017020240426064, 0.01628538966178894, -0.003316669026389718, 0.01985216699540615, -0.0006182053475640714, -0.03580697625875473, 0.028656020760536194, -0.020252343267202377, 0.011813866905868053, 0.017190132290124893, -0.025715604424476624, -0.09068316966295242, -0.05198797211050987, -0.0024162749759852886, 0.021505065262317657, -0.044019266963005066, -0.003884308971464634, 0.026724740862846375, -0.04273174703121185, -0.031822625547647476, -0.05334508791565895, -0.0010336046107113361, -0.06830815970897675, 0.0026185375172644854, 0.047151073813438416, 0.003695095656439662, -0.04297533258795738, 0.021122287958860397, -0.07822554558515549, -0.05571134015917778, 0.015137060545384884, -0.003695095656439662, 0.02347114309668541, 0.05762522295117378, 0.02371472865343094, -0.02834284119307995, 0.0023575536906719208, 0.07328425347805023, -0.016650766134262085, -0.04290573671460152, 0.025767801329493523, -0.01450200006365776, -0.015719924122095108, 0.008951744064688683, -0.0543542243540287, -0.009073536843061447, -0.007859962061047554, 0.10126171261072159, 0.0016539847711101174, 0.015041366219520569, 0.06573311984539032, -0.006750781089067459, 0.00819054152816534, -0.02968255802989006, 0.010970018804073334, 0.01305788941681385, 0.004188789986073971, 0.07004804909229279, 0.013901736587285995, 0.013197081163525581, 0.024758663028478622, 0.03161383792757988, -0.0418270044028759, -0.06138338893651962, 0.02755988948047161, 0.025646008551120758, 0.014580294489860535, -0.008212289772927761, -0.04461083188652992, -0.007333644665777683, 0.053275492042303085, 0.00018445574096404016, -0.034345466643571854, 0.0523359514772892, -0.01041325367987156, 0.030047934502363205, -0.009525909088551998, 0.024167099967598915, 0.059399913996458054, -0.010013078339397907, 0.02916058897972107, 0.0626361146569252, -0.054528214037418365, -0.05421503633260727, -0.027020523324608803, -0.003044811077415943, 0.08922166377305984, -0.11142268031835556, 0.019538987427949905, 0.001232061069458723, 0.01811227574944496, -0.009630301967263222, 0.01486737746745348, 0.023819120600819588, -0.03465864807367325, -0.009360618889331818, -0.04857778549194336, -0.10321038961410522, -0.032553378492593765, 0.08052220195531845, 0.027977462857961655, -0.05522417277097702, 0.011457188986241817, 0.007699022069573402, -0.00010119918442796916, -0.004506320226937532, -0.03782525286078453, 0.056790076196193695, 0.0021030944772064686, -0.03733808174729347, 0.022670792415738106, 0.012727309949696064, -0.009064837358891964, 0.005954780150204897, -0.0030187126249074936, 0.06573311984539032, -0.047881826758384705, -0.04109624773263931, -0.04307972639799118, -0.0063897534273564816, 0.07745999097824097, 0.069212906062603, -0.013727747835218906, 0.005793840158730745, -0.011605079285800457, -0.006037425249814987, -0.04133983328938484, 0.010395854711532593, 0.023836519569158554, -0.07460656762123108, 0.0027316303458064795, 0.0627405047416687, -0.012083549983799458, -0.003675521817058325, -0.031683433800935745, 0.03177042677998543, -0.06851694732904434, 0.0019388921791687608, -0.11246661841869354, -0.03845161199569702, 0.07161395251750946, 0.03705969825387001, 0.019260603934526443, -0.008325383067131042, 0.033666908740997314, -0.023123163729906082, 0.04847339168190956, 0.054910991340875626, -0.017468515783548355, -0.0009199678897857666, 0.04996969923377037, -0.00141257478389889, 0.011457188986241817, 0.01960858330130577, 0.0069030215963721275, 0.03474564477801323, -0.021244080737233162, -0.032170601189136505, 0.0005390946753323078, -0.08031341433525085, 0.011309297755360603, -0.011866063810884953, 0.007768617942929268, 0.03088308311998844, 0.0031644285190850496, 0.02336674928665161, -0.007820814847946167, 0.0693172961473465, -0.050039295107126236, 0.01311008632183075, 0.027264107018709183, -0.0032775215804576874, -0.023053569719195366, 0.018529849126935005, 0.03528501093387604, -0.01229233667254448, -0.0749545469880104, 0.03431066870689392, -0.008364531211555004, -0.047638241201639175, -0.02968255802989006, -0.015928711742162704, -0.030378514900803566, 0.030204525217413902, 0.007659874390810728, 0.029804348945617676, 0.037755656987428665, 0.06980446726083755, 0.0587039552628994, 0.023488542065024376, 0.009491111151874065, 0.01431061141192913, 0.010152270086109638, -0.02573300339281559, -0.010117472149431705, -0.0020976571831852198, 0.0630536824464798, 0.008107896894216537, 0.05623330920934677, -0.05644209682941437, -0.0007927382830530405, 0.041896600276231766, -0.04916934669017792, -0.005280571989715099, -0.02752509154379368, -0.04544597864151001, 0.05511977896094322, 0.0007671836065128446, 0.03232719376683235, 0.018669040873646736, -0.01576342061161995, 0.014275813475251198, -0.03201401233673096, -0.005389315541833639, 0.024027908220887184, 0.04273174703121185, -0.06869093328714371, -0.028360240161418915, -0.026394162327051163, 0.035876572132110596, 0.004208363592624664, -0.00032976389047689736, 0.0007084622629918158, -0.004186614882200956, 0.00944761373102665, 0.002544592134654522, 0.005685097072273493, -0.02355813793838024, -0.024254094809293747, -0.11441529542207718, -0.0010336046107113361, 0.009612902998924255, -0.010717734694480896, -0.008425426669418812, -0.009639001451432705, -0.006194015499204397, 0.0458635538816452, 0.035441599786281586, 0.01452809851616621, 0.007712071295827627, -0.03782525286078453, -0.045654766261577606, -0.02905619703233242, -0.03297095373272896, -0.01575472205877304, -0.06451519578695297, -0.039008378982543945, 0.05097883567214012, 0.039147570729255676, 0.0021378921810537577, 0.019208407029509544, 0.009334520436823368, -0.03455425426363945, 0.03977392986416817, 0.004610713571310043, 0.07189233601093292, -0.04941293224692345, -0.02404530718922615, 0.02790786698460579, 0.03932156041264534, -0.008564618416130543, 0.01754681020975113, 0.04885616898536682, -0.010604641400277615, 0.009003940969705582, 0.07453697174787521, -0.013388468883931637, 0.013884338550269604, -0.02126147970557213, 0.021331075578927994, 0.011552882380783558, 0.019591184332966805, 0.03705969825387001, 0.0037472923286259174, 0.009786892682313919, -0.008177492767572403, 0.004075697157531977, 0.021365873515605927, 0.018199270591139793, 0.002501094713807106, 0.013023091480135918, 0.023244956508278847, -0.044054064899683, -0.04753384739160538, 0.03251858055591583, -0.032796964049339294, 0.02602878399193287, 0.03469344601035118, 0.010378455743193626, 0.033371128141880035, -0.0002764797245617956, -0.0031100569758564234, -0.035198014229536057, -0.0007878448232077062, -0.015693826600909233, 0.024636870250105858, 0.014519399031996727, 0.0187908336520195, -0.03137025237083435, -0.014110524207353592, 0.06837775558233261, 0.0178338922560215, 0.00956940557807684, -0.01807747781276703, -0.06006107106804848, -0.022879580035805702, -0.013466764241456985, 0.024219296872615814, -0.03932156041264534, 0.004199664108455181, -0.01154418382793665, 0.024271493777632713, -0.006772529799491167, -0.041270237416028976, -0.016729062423110008, -0.001137454411946237, -0.054528214037418365, -0.007551131304353476, -0.03267517313361168, -0.024828258901834488, -0.06138338893651962, 0.01628538966178894, -0.07704241573810577, 0.03297095373272896, 0.011622478254139423, 0.0395999401807785, 0.020060954615473747, -0.03605056181550026, -0.005045686848461628, -0.007246650289744139, 0.024254094809293747, -0.0027207559905946255, 0.030622098594903946, 0.013927835039794445, 0.03185742348432541, -0.04273174703121185, -0.02900400012731552, 0.048160210251808167, 0.019434593617916107, -0.02646375633776188, 0.012501124292612076, 0.0041496423073112965, 0.021870441734790802, 0.03730328381061554, 0.031735628843307495, 0.03660732880234718, -0.010308859869837761, 0.006180966272950172, 0.0017029192531481385, -0.01960858330130577, -0.01214444637298584, -0.019312800839543343, 0.026289768517017365, -0.03349291905760765, 0.06541994214057922, 0.05070045217871666, 0.011030915193259716, -0.06416721642017365, -0.011170106939971447, 0.047394659370183945, -0.03928676247596741, -0.0008688585367053747, 0.004475872032344341, 0.01041325367987156, -0.041235439479351044, -0.017416318878531456, 0.01792088709771633, -0.03453685715794563, 0.05209236592054367, 0.0294041745364666, -0.028516829013824463, 0.0261679757386446, -0.017277127131819725, -0.018007881939411163, 0.08963923901319504, -0.04367128759622574, 0.019312800839543343, -0.021522464230656624, 0.004649861250072718, 0.06148778274655342, 0.04078307002782822, 0.04130503535270691, -0.055154576897621155, 0.01486737746745348, -0.019504189491271973, 0.004936943296343088, -0.007786016445606947, -0.08045260608196259, 0.0632624700665474, -0.007216202095150948, 0.015319748781621456, -0.044784821569919586, -0.016833454370498657, 0.01759030856192112, -0.055641744285821915, -0.006220113951712847, -0.05898233875632286, -0.01305788941681385, -0.04321891814470291, 0.035250212997198105, -0.06945648789405823, 0.025071844458580017, -0.0343976654112339, 0.0376860611140728, 0.046385519206523895, -0.004391052294522524, 0.021940037608146667, 0.028656020760536194, -0.03166603296995163, 0.06159217655658722, -0.03147464618086815, -0.010935220867395401, 0.024706466123461723, -0.04318412020802498, 0.007981754839420319, 0.04694228619337082, 0.011239701882004738, -0.026916129514575005, -0.008020902052521706, -0.029804348945617676, 0.04332331195473671, -0.013779944740235806, -0.028116654604673386, 0.03208360821008682, -0.0007775142439641058, 0.06869093328714371, -0.04861258342862129, -0.07189233601093292, 0.027699081227183342, -0.028656020760536194, 0.04116584360599518, 0.058669157326221466, 0.010682936757802963, -0.07147476077079773, 0.07592888921499252, 0.017077039927244186, -0.012422828935086727, 0.058669157326221466, 0.04683789238333702, 0.033318933099508286, -0.0012027003103867173, -0.040261100977659225, 0.02284478209912777, 0.0011276674922555685, -0.017651204019784927, 0.014101824723184109, 0.008151394315063953, -0.012196643278002739, 0.060791827738285065, -0.017224930226802826, -0.0014973945217207074, -0.02173125185072422, 0.05421503633260727, -0.007659874390810728, -0.0262201726436615, 0.021365873515605927, -0.03558079153299332, -0.03147464618086815, -0.023123163729906082, -0.00214441679418087, 0.025071844458580017, 0.024167099967598915, -0.04022630304098129, -0.0500044971704483, -0.10279282182455063, 0.047881826758384705, -0.054528214037418365, 0.041270237416028976, 0.009117034263908863, -0.002069384092465043, -0.0056676981039345264, 0.014232316054403782, -0.0017844766844063997, -0.04610713943839073, -0.003094832878559828, 0.04857778549194336, -0.025071844458580017, 0.039634738117456436, -0.008338432759046555, -0.012057451531291008, 0.01498916931450367, 0.038625601679086685, 0.005137030966579914, 0.008329733274877071, -0.01759030856192112, -0.018060078844428062, 0.02646375633776188, -0.013953933492302895, -0.04718587175011635, 0.025419821962714195, 0.001279907999560237, 0.0322749949991703, 0.009012640453875065, 0.025524215772747993, 0.01549373846501112, 0.003760341554880142, -0.007546781562268734, -0.03671172261238098, -0.05080484598875046, -0.06395842880010605, 0.02153986319899559, -0.002590264193713665, -0.025576412677764893, 0.025889592245221138, 0.04708147794008255, 0.007172704674303532, 0.059399913996458054, 0.009891285561025143, -0.008825602009892464, 0.021574661135673523, 0.01710313744843006, 0.005097883753478527, -0.01779039576649666, 0.011735571548342705, -0.006655086763203144, 0.003897357964888215, 0.009186630137264729, 0.019782571122050285, 0.03893878310918808, 0.00533711863681674, 0.02033933810889721, 0.05045686662197113, -0.025854794308543205, -0.013553759083151817, -0.013005692511796951, -0.00048390746815130115, -0.06601150333881378, -0.037616465240716934, -0.07474575936794281, 0.030187126249074936, -0.014458502642810345, 0.061661772429943085, 0.043253716081380844, 0.003518931567668915, -0.014893474988639355 ]
730,119
mmengine.logging.history_buffer
_set_default_statistics
Register default statistic methods: min, max, current and mean.
def _set_default_statistics(self) -> None: """Register default statistic methods: min, max, current and mean.""" self._statistics_methods.setdefault('min', HistoryBuffer.min) self._statistics_methods.setdefault('max', HistoryBuffer.max) self._statistics_methods.setdefault('current', HistoryBuffer.current) self._statistics_methods.setdefault('mean', HistoryBuffer.mean)
(self) -> NoneType
[ -0.003495648968964815, -0.04952746257185936, 0.044785842299461365, -0.015496800653636456, 0.00251357932575047, -0.0036059697158634663, -0.04544343799352646, 0.015142044052481651, -0.028968892991542816, 0.03109743259847164, -0.012122288346290588, 0.04035571217536926, 0.002831562189385295, -0.018689608201384544, -0.05163869634270668, 0.03388356789946556, 0.015860209241509438, 0.025265581905841827, -0.0043587456457316875, -0.054719019681215286, -0.0010767075000330806, -0.02969571202993393, -0.05080804601311684, 0.023344706743955612, -0.019918277859687805, 0.0687016174197197, -0.036375515162944794, -0.06368311494588852, 0.05683025345206261, -0.024573374539613724, -0.06337162107229233, -0.04122097045183182, -0.024417627602815628, -0.0479699969291687, 0.017772434279322624, -0.08659518510103226, 0.01132624875754118, 0.0789116844534874, -0.10009323805570602, 0.06852856278419495, 0.05963369458913803, -0.04755467176437378, -0.02715184912085533, 0.0011432243045419455, 0.01056482084095478, 0.05118876323103905, 0.02201220579445362, 0.08209583908319473, 0.07378934323787689, -0.05984135717153549, -0.009708213619887829, 0.003112771548330784, -0.003067345591261983, 0.07012064009904861, -0.03827908635139465, -0.019987497478723526, 0.02564629726111889, 0.05184635892510414, -0.020091328769922256, 0.03585636243224144, 0.03268951177597046, 0.027117237448692322, 0.019260680302977562, -0.08057297766208649, 0.000045257136662257835, -0.018689608201384544, -0.015505453571677208, 0.008778058923780918, 0.0011270006652921438, 0.04963129386305809, -0.026857659220695496, 0.0028856410644948483, 0.013904723338782787, 0.008111809380352497, -0.010659999214112759, 0.002987308893352747, -0.03727538511157036, -0.01398259587585926, -0.014562319964170456, 0.0028748251497745514, 0.028553569689393044, 0.013939333148300648, -0.001293563167564571, 0.005524682812392712, -0.0270480178296566, -0.04758928343653679, 0.034644998610019684, -0.02803441323339939, 0.05402681231498718, -0.019001102074980736, -0.0663134977221489, -0.006874488200992346, 0.0629216805100441, 0.02599240094423294, 0.009353457018733025, -0.012148246169090271, -0.07905012369155884, -0.00015723390970379114, 0.019814446568489075, -0.02578473836183548, -0.06922077387571335, 0.00251357932575047, 0.04343603551387787, 0.0018732871394604445, -0.012252076528966427, -0.03803681582212448, 0.04942363128066063, -0.02803441323339939, -0.04752006009221077, 0.05371531844139099, -0.05984135717153549, 0.006757677998393774, 0.031183958053588867, -0.013705712743103504, 0.025490550324320793, 0.02666730247437954, -0.01799740083515644, -0.010642694309353828, 0.01003701239824295, 0.02652886137366295, -0.05914914980530739, 0.036513958126306534, 0.020247075706720352, -0.009370761923491955, -0.007882515899837017, -0.0047286441549658775, 0.052780840545892715, 0.062298696488142014, 0.017106182873249054, 0.03730999678373337, 0.04232850298285484, -0.031651198863983154, -0.009266930632293224, 0.06956687569618225, 0.02754986844956875, -0.030699413269758224, 0.023465842008590698, 0.056691814213991165, 0.008829974569380283, 0.05745324119925499, -0.003008940489962697, -0.034921880811452866, 0.0353718139231205, 0.003690332407131791, 0.017417676746845245, 0.03589097037911415, 0.036721620708703995, 0.024296492338180542, -0.04139402136206627, -0.05717635899782181, 0.019416427239775658, -0.0021458440460264683, -0.040424931794404984, -0.05977213755249977, 0.0019911788403987885, -0.011274333111941814, -0.0013000526232644916, 0.011101281270384789, -0.04710473492741585, -0.040563374757766724, -0.023465842008590698, 0.019745225086808205, 0.00619093282148242, -0.06866700947284698, -0.036790840327739716, 0.03173772618174553, -0.03734460845589638, -0.030768634751439095, -0.0037552269641309977, 0.029107335954904556, 0.01086766179651022, -0.04623947665095329, 0.012546265497803688, 0.07406622916460037, 0.08950246125459671, 0.024175355210900307, 0.003621111623942852, 0.005974617786705494, 0.04087486490607262, 0.026753829792141914, 0.04613564535975456, -0.028190160170197487, -0.07406622916460037, -0.011706963181495667, -0.0700860321521759, -0.026269283145666122, 0.06375233083963394, -0.0608796700835228, -0.0561380460858345, 0.015903472900390625, 0.00834975577890873, 0.009232320822775364, 0.00931884627789259, -0.04565110057592392, 0.05201940983533859, 0.023119738325476646, 0.0011918952222913504, -0.029436133801937103, 0.018326200544834137, -0.0008922990527935326, -0.00566312437877059, 0.011862710118293762, 0.0524001270532608, -0.024227270856499672, 0.03592558205127716, 0.02374272607266903, -0.01056482084095478, 0.040944088250398636, -0.06458298116922379, 0.002344853710383177, -0.0010383116314187646, -0.011931930668652058, -0.036652401089668274, 0.021319998428225517, -0.0534038282930851, 0.0038979947566986084, 0.10030090063810349, 0.012035761959850788, -0.016223618760704994, 0.0016829300438985229, 0.07316635549068451, -0.03987116739153862, -0.028363211080431938, -0.021718017756938934, 0.03827908635139465, 0.030284088104963303, 0.04329759255051613, -0.09843193739652634, -0.021960290148854256, -0.03717155382037163, 0.07316635549068451, -0.008142093196511269, -0.07648895680904388, -0.021510355174541473, -0.0394558422267437, -0.008159399032592773, 0.0459279827773571, 0.010538863018155098, -0.013852807693183422, -0.011603131890296936, -0.009777434170246124, 0.02313704416155815, 0.03374512866139412, 0.036652401089668274, -0.054338306188583374, -0.058249279856681824, -0.046758633106946945, 0.006043838802725077, -0.027774835005402565, -0.024677205830812454, 0.02677113376557827, -0.023188959807157516, -0.022462140768766403, -0.05617265775799751, -0.010772482492029667, -0.04011343792080879, -0.04108252748847008, 0.0707782432436943, -0.0018083926988765597, -0.05357687920331955, -0.011966541409492493, -0.021285388618707657, -0.0744815543293953, 0.005061768926680088, 0.036860063672065735, 0.022635193541646004, 0.03599480167031288, 0.02469451166689396, -0.01631014421582222, 0.04045954346656799, 0.054234474897384644, 0.004884390626102686, -0.052780840545892715, -0.04139402136206627, 0.005061768926680088, 0.03900590538978577, -0.015375664457678795, -0.054719019681215286, 0.01573907397687435, -0.027809446677565575, 0.054234474897384644, -0.027705615386366844, 0.02606162056326866, 0.010028359480202198, 0.0015098780859261751, 0.026719218119978905, -0.01195788849145174, -0.03990577533841133, -0.03519876301288605, -0.02870931662619114, 0.029401523992419243, 0.02265249751508236, -0.05132720246911049, 0.014198911376297474, 0.01440657302737236, -0.03088977001607418, 0.01605921983718872, -0.0016028935788199306, 0.031997304409742355, 0.04689707234501839, -0.05416525527834892, -0.07725038379430771, 0.04779694229364395, 0.033935483545064926, -0.014562319964170456, -0.04288226738572121, 0.042813047766685486, -0.036721620708703995, 0.036513958126306534, -0.014761329628527164, 0.0024551742244511843, 0.04765850305557251, 0.03820986673235893, -0.006714414805173874, 0.025490550324320793, -0.01426813192665577, -0.003729269141331315, 0.011672353371977806, 0.010062970221042633, 0.08493389189243317, -0.07060518860816956, 0.011741573922336102, -0.020229771733283997, -0.03275873139500618, 0.0032641920261085033, 0.016457239165902138, 0.01592077873647213, -0.03994038701057434, -0.044647399336099625, -0.004832475446164608, -0.07538142055273056, -0.03305291756987572, 0.04765850305557251, 0.04146324470639229, -0.028259381651878357, 0.04713934659957886, -0.02455606870353222, 0.0034199387300759554, -0.009292888455092907, 0.01976253092288971, 0.0037357585970312357, -0.023898471146821976, -0.001996586797758937, 0.023188959807157516, 0.048766035586595535, -0.008254577405750751, 0.06825168430805206, -0.0069739930331707, -0.01396529097110033, -0.03135700896382332, -0.0015434069791808724, -0.019070323556661606, -0.029072724282741547, 0.04603181406855583, 0.09234051406383514, -0.04347064718604088, 0.04433590546250343, -0.05129259452223778, 0.00411214679479599, -0.013463440351188183, -0.02462529018521309, 0.07669661939144135, -0.03225687891244888, 0.024486849084496498, 0.03416045010089874, 0.009448635391891003, 0.05226168408989906, 0.02751525677740574, 0.032983697950839996, -0.05721097066998482, 0.007311444263905287, -0.04308992996811867, -0.042605385184288025, 0.006186606828123331, -0.01758207567036152, 0.004285198636353016, 0.03942123055458069, 0.01143008004873991, -0.0328279510140419, -0.01894918642938137, 0.05291927978396416, 0.009604382328689098, -0.021302692592144012, 0.02306782267987728, -0.025663601234555244, 0.010123537853360176, -0.009664950892329216, 0.0009696315973997116, -0.0030630191322416067, -0.02853626385331154, 0.01644858717918396, -0.05385376140475273, -0.08050376176834106, 0.00028283175197429955, -0.04087486490607262, 0.022981297224760056, 0.0534038282930851, 0.019399121403694153, -0.030336003750562668, 0.004302503541111946, 0.034506555646657944, -0.0629562959074974, -0.026823049411177635, 0.007592653390020132, -0.004235445987433195, -0.028328601270914078, 0.02350045181810856, -0.017556117847561836, 0.010737872682511806, -0.021406523883342743, 0.011992499232292175, -0.01100610289722681, -0.030301393941044807, 0.05001200735569, 0.03817525506019592, 0.0008690452086739242, 0.009448635391891003, 0.0036751904990524054, 0.010789788328111172, 0.03374512866139412, 0.010919577442109585, 0.03519876301288605, -0.015090128406882286, 0.0517079159617424, 0.07136661559343338, 0.01782434992492199, -0.019468342885375023, -0.023015907034277916, -0.06901311129331589, 0.018256979063153267, 0.052677009254693985, 0.036790840327739716, -0.060810450464487076, -0.013195210136473179, 0.022981297224760056, -0.023465842008590698, 0.0025243950076401234, -0.028328601270914078, -0.030768634751439095, 0.0068139201030135155, 0.02204681560397148, -0.023656198754906654, 0.035423729568719864, -0.00950920395553112, -0.019399121403694153, 0.0009074410772882402, -0.03897129371762276, 0.0010485865641385317, -0.003876363392919302, -0.04308992996811867, -0.048835255205631256, -0.011438732966780663, 0.03544103726744652, 0.03959428146481514, 0.024434933438897133, -0.03613324463367462, -0.0353718139231205, -0.0017088878666982055, 0.04194778949022293, -0.015626588836312294, -0.00011836482008220628, 0.010841703973710537, -0.10535401850938797, -0.03320866450667381, -0.04187856614589691, 0.05561889335513115, 0.03969811275601387, -0.021146945655345917, -0.010556167922914028, 0.01644858717918396, 0.052677009254693985, 0.003681679954752326, -0.03262028843164444, -0.06724797934293747, -0.05406142398715019, -0.019260680302977562, -0.02095658890902996, 0.0024897847324609756, 0.007056192494928837, 0.005143968854099512, 0.03599480167031288, 0.028553569689393044, 0.03500840440392494, -0.009716866537928581, 0.017772434279322624, 0.011767531745135784, -0.03218765929341316, -0.05018506199121475, 0.007415275555104017, -0.015626588836312294, -0.009180405177175999, 0.03824447840452194, -0.011101281270384789, -0.0021166414953768253, -0.014233521185815334, 0.04540882632136345, 0.06645194441080093, 0.02180454321205616, 0.06648655235767365, 0.01655241660773754, 0.01605921983718872, -0.06863239407539368, -0.032879866659641266, -0.020454738289117813, 0.01796279102563858, 0.011655047535896301, -0.009128489531576633, -0.005758303217589855, -0.0384521409869194, 0.010521557182073593, 0.029574574902653694, -0.007389317732304335, -0.04731239750981331, 0.03388356789946556, 0.016716817393898964, -0.07316635549068451, -0.022098731249570847, -0.009483246132731438, -0.00224102265201509, -0.03092437982559204, -0.006926403846591711, 0.03400470316410065, 0.012243424542248249, -0.011914625763893127, 0.0008284861105494201, -0.018758829683065414, -0.058733824640512466, -0.012312645092606544, 0.024175355210900307, 0.03592558205127716, 0.054857462644577026, 0.004170551430433989, -0.034506555646657944, 0.07018986344337463, 0.02272171899676323, 0.05229629576206207, 0.04132480174303055, -0.03518145903944969, -0.0010366892674937844, 0.009708213619887829, -0.009370761923491955, -0.02010863460600376, 0.006355332210659981, -0.06084505841135979, 0.03578713908791542, -0.04921596869826317, -0.032879866659641266, 0.02401960827410221, 0.03585636243224144, -0.040736425668001175, 0.022098731249570847, -0.01881074532866478, -0.036790840327739716, -0.04599720239639282, -0.02592317946255207, -0.034852661192417145, 0.005347304977476597, -0.001177834696136415, 0.05406142398715019, 0.030336003750562668, -0.030353309586644173, -0.008449261076748371, -0.0038093056064099073, 0.05381914973258972, -0.020316297188401222, 0.005576598457992077, 0.00857904925942421, 0.03720616549253464, -0.06188337132334709, -0.01627553440630436, 0.0005123959854245186, 0.03125317767262459, -0.017287887632846832, -0.048558373004198074, 0.001098879729397595, 0.03132240101695061, 0.01374032348394394, 0.02085275761783123, -0.03068210743367672, -0.00826322939246893, -0.02652886137366295, 0.02187376469373703, 0.007765705697238445, -0.0799499899148941, 0.032949090003967285, 0.01502090785652399, -0.03564869984984398, 0.02377733588218689, 0.02775753103196621, 0.020402822643518448, -0.07063979655504227, 0.04028648883104324, -0.024348407983779907, -0.0591837614774704, -0.021683407947421074, 0.06115655228495598, -0.029003504663705826, -0.06437531858682632, -0.014752677641808987, 0.030768634751439095, -0.009215015918016434, 0.056899476796388626, -0.014865160919725895, -0.016491848975419998, 0.00899870041757822, -0.02272171899676323, -0.03279334306716919, 0.02860548533499241, -0.02218525856733322, 0.010435031726956367, -0.03230879455804825, 0.030180256813764572, 0.042432334274053574, 0.0860414206981659, 0.042847659438848495, -0.02578473836183548, 0.019451037049293518, -0.03585636243224144, 0.044716618955135345, 0.015790989622473717, -0.028518958017230034, 0.05786856636404991, -0.020212465897202492, -0.01322981994599104, -0.021787239238619804, -0.03900590538978577, 0.016933131963014603, -0.020523959770798683, 0.028345907106995583, 0.02296399138867855, -0.00827620830386877, -0.06357928365468979, 0.02398499846458435, -0.03959428146481514, -0.013446135446429253, -0.03796759247779846, -0.006844203919172287, 0.018291588872671127, 0.02786136046051979, 0.009863960556685925, 0.044405125081539154, -0.02268710918724537, 0.11788297444581985, -0.016933131963014603, 0.00617362791672349, 0.036652401089668274, -0.04755467176437378, 0.05212324112653732, 0.06167570874094963, 0.007683505769819021, -0.03713694587349892, -0.04810843616724014, -0.031080126762390137, 0.04198239743709564, -0.02613084204494953, -0.009959138929843903, -0.031201263889670372, -0.022704413160681725, 0.07365090399980545, -0.06354466825723648, -0.08396479487419128, 0.014951687306165695, 0.0074282544665038586, 0.04582415148615837, 0.03561408817768097, 0.015046865679323673, -0.07787337154150009, 0.04772772267460823, 0.0029137618839740753, -0.013489398173987865, 0.05586116388440132, 0.035423729568719864, 0.06101811304688454, -0.0074412333779037, -0.028588179498910904, 0.03561408817768097, 0.0007679179543629289, 0.03506032004952431, -0.02292938157916069, -0.031720418483018875, 0.03230879455804825, 0.020247075706720352, -0.02112964168190956, 0.0016342592425644398, -0.03561408817768097, 0.0524001270532608, -0.03938661888241768, -0.04437051713466644, 0.013748976401984692, 0.0472777895629406, 0.013091378845274448, -0.054476749151945114, 0.04191317781805992, -0.004793538711965084, -0.02043743245303631, -0.024538764730095863, -0.062264084815979004, -0.0462740883231163, 0.04779694229364395, -0.052503958344459534, 0.01884535513818264, 0.002327548572793603, -0.060568176209926605, 0.024417627602815628, 0.012710664421319962, -0.027359509840607643, -0.04146324470639229, 0.011257028207182884, 0.03990577533841133, -0.021354608237743378, 0.04028648883104324, 0.03106282278895378, 0.011135892011225224, 0.009889918379485607, 0.0034112862776964903, 0.027601784095168114, 0.013878765515983105, 0.009959138929843903, 0.003967215772718191, 0.026182757690548897, 0.011724268086254597, -0.05416525527834892, 0.014986297115683556, 0.042778439819812775, 0.05406142398715019, 0.023050516843795776, 0.060429736971855164, -0.04405902326107025, -0.005611208733171225, -0.021475745365023613, -0.016474545001983643, -0.011040713638067245, -0.00037125046947039664, 0.0534038282930851, 0.046931684017181396, -0.009050616063177586, 0.0190530177205801, -0.006965340115129948, 0.025334803387522697, 0.029470743611454964, -0.04572032019495964, -0.05693408474326134, 0.013169252313673496, 0.0217699334025383, 0.0037530637346208096, -0.07600440829992294, 0.026182757690548897, 0.01962408982217312, -0.004854106809943914, 0.0646522045135498, 0.031616587191820145, -0.018360810354351997, 0.0012676054611802101, 0.03596018999814987, 0.01894918642938137, 0.009223667904734612, -0.020454738289117813, 0.03440272435545921, 0.06108733266592026, -0.010192759335041046, -0.01181944739073515, -0.03331249579787254, 0.008414650335907936, -0.01641397550702095, 0.03220496326684952, 0.03717155382037163, 0.014562319964170456, 0.008812669664621353 ]
730,120
mmengine.logging.history_buffer
current
Return the recently updated values in log histories. Returns: np.ndarray: Recently updated values in log histories.
def current(self) -> np.ndarray: """Return the recently updated values in log histories. Returns: np.ndarray: Recently updated values in log histories. """ if len(self._log_history) == 0: raise ValueError('HistoryBuffer._log_history is an empty array! ' 'please call update first') return self._log_history[-1]
(self) -> numpy.ndarray
[ -0.0018820073455572128, -0.028517447412014008, -0.06606004387140274, 0.03762742131948471, 0.023682544007897377, -0.03603275120258331, -0.058663491159677505, 0.031740713864564896, 0.07444054633378983, 0.0076128519140183926, -0.014886412769556046, -0.05737418681383133, 0.0036049718037247658, 0.01168010849505663, -0.013614069670438766, 0.01240958459675312, 0.028619233518838882, -0.014428368769586086, -0.04953655228018761, 0.04546505585312843, 0.014199347235262394, -0.03579524904489517, -0.004707668907940388, 0.021697688847780228, -0.03593096509575844, 0.011552873998880386, 0.024361126124858856, -0.025158461183309555, 0.01700698398053646, 0.011552873998880386, -0.05123300850391388, -0.04936690628528595, 0.0072099436074495316, -0.04895975813269615, -0.0044235121458768845, -0.02327539399266243, -0.007867320440709591, -0.026939742267131805, -0.03494701907038689, -0.018304774537682533, 0.002419572090730071, -0.050418708473443985, -0.0032508361618965864, 0.015013647265732288, 0.015420796349644661, -0.005301428958773613, 0.030671946704387665, 0.011255994439125061, 0.027109386399388313, -0.036338113248348236, 0.016565905883908272, 0.033963073045015335, -0.005984253250062466, 0.012256903573870659, 0.018694959580898285, 0.026787061244249344, 0.06616183370351791, -0.044277533888816833, -0.0174395814538002, 0.01054348237812519, 0.0031448076479136944, -0.04112212359905243, 0.06955474615097046, -0.018983356654644012, 0.07403339445590973, -0.024683453142642975, 0.03355592489242554, 0.015929734334349632, 0.012748876586556435, 0.012146634049713612, -0.06280285120010376, -0.026820989325642586, 0.010848844423890114, -0.008804612793028355, -0.11203403770923615, -0.008965776301920414, -0.007752809673547745, 0.07118334621191025, -0.026430804282426834, -0.01494578830897808, -0.023733437061309814, 0.03342020884156227, 0.04302215576171875, 0.04373466968536377, 0.025345072150230408, -0.042004283517599106, -0.004563469905406237, 0.02573525719344616, -0.05825634300708771, 0.05971529707312584, -0.03437022492289543, 0.01796548254787922, -0.03101123869419098, 0.02375040203332901, 0.04312394559383392, -0.07464411854743958, -0.056322380900382996, 0.01950925774872303, -0.00014764479419682175, 0.023088783025741577, -0.041020337492227554, 0.04943476617336273, -0.009542572312057018, 0.02220662496984005, -0.038679227232933044, 0.0063659558072686195, 0.005882465746253729, -0.01989944465458393, 0.03878101333975792, 0.0030748287681490183, -0.047365088015794754, 0.08156566321849823, -0.031621962785720825, -0.04885796830058098, 0.004868832416832447, 0.0440061017870903, -0.036134541034698486, -0.0038191494531929493, -0.028737986460328102, 0.03589703515172005, -0.004533782135695219, -0.004754321649670601, 0.017863694578409195, 0.025328107178211212, -0.011366263963282108, -0.02054409682750702, 0.0032720419112592936, -0.028856737539172173, -0.03274162486195564, -0.028619233518838882, -0.033403243869543076, -0.03096034564077854, -0.005581344477832317, 0.03708455711603165, 0.06836722791194916, -0.024378091096878052, 0.05991886928677559, -0.007600128650665283, -0.043632879853248596, 0.03129963576793671, 0.02386915311217308, 0.02712635137140751, 0.036779195070266724, 0.02351289801299572, 0.013164508156478405, 0.011943059042096138, 0.03956138342618942, 0.07389768213033676, -0.01006847433745861, -0.018169056624174118, 0.02042534574866295, -0.02434416115283966, -0.01903424970805645, -0.0020951246842741966, 0.005823089741170406, -0.030349621549248695, -0.01978069171309471, -0.028721021488308907, 0.017829766497015953, -0.024174517020583153, -0.008626485243439674, -0.02395397610962391, -0.009491678327322006, -0.06880830973386765, -0.030858557671308517, 0.05337054654955864, -0.03548988699913025, 0.02247805893421173, -0.0808870792388916, 0.029552286490797997, 0.029959434643387794, 0.0038085465785115957, 0.012180563062429428, 0.026939742267131805, -0.05459199473261833, 0.03694884106516838, -0.03922209143638611, 0.06181890144944191, 0.06392250955104828, 0.040341753512620926, -0.01894942857325077, -0.02878887951374054, -0.04468468576669693, -0.01855924166738987, 0.015794016420841217, -0.028449589386582375, 0.001555439317598939, -0.02342807501554489, 0.022630739957094193, 0.07708701491355896, -0.0216128658503294, -0.0028309631161391735, 0.049502622336149216, -0.06606004387140274, 0.01855924166738987, -0.004923967178910971, -0.03942566737532616, 0.03442111983895302, 0.02902638353407383, 0.005636479239910841, 0.022155731916427612, -0.04468468576669693, 0.00698940409347415, -0.05221695452928543, -0.033250562846660614, 0.024853099137544632, 0.0038064259570091963, -0.00040688467561267316, -0.04512576386332512, 0.0444132499396801, -0.017897624522447586, 0.022545916959643364, -0.044752541929483414, -0.009525607340037823, -0.03357288986444473, -0.04346323385834694, -0.006094522774219513, -0.005653443746268749, -0.0063659558072686195, -0.004111788235604763, 0.07566199451684952, -0.07857990264892578, -0.04580434784293175, -0.012477443553507328, -0.04906154423952103, -0.0037873408291488886, 0.04594006389379501, 0.013970325700938702, -0.015692230314016342, -0.06300642341375351, 0.028296906501054764, 0.007557717151939869, -0.0009410036727786064, -0.05221695452928543, 0.03735598921775818, 0.029993364587426186, -0.03738991916179657, 0.013698892667889595, 0.012731911614537239, 0.04699186608195305, -0.02042534574866295, 0.023648614063858986, 0.08183709532022476, 0.09031938761472702, -0.009279620833694935, -0.026295088231563568, 0.0279576163738966, 0.06259927153587341, -0.008257505483925343, -0.022885208949446678, -0.001687975018285215, 0.005331117194145918, -0.01942443661391735, -0.009500160813331604, 0.03738991916179657, -0.036813121289014816, 0.013690410181879997, 0.026345981284976006, 0.018169056624174118, -0.0336916409432888, 0.02902638353407383, 0.0018173299031332135, 0.007604369893670082, 0.0028882184997200966, -0.04868832230567932, 0.03124874271452427, 0.019203895702958107, 0.012061811052262783, -0.0015702833188697696, 0.11583410203456879, 0.04169892147183418, -0.010518034920096397, -0.06005458906292915, -0.06188676133751869, -0.004516817629337311, -0.06945296376943588, 0.03650775924324989, -0.007930938154459, -0.04536326602101326, 0.010713127441704273, -0.018847640603780746, -0.031944289803504944, 0.008159959688782692, -0.00556013872846961, 0.006107246037572622, -0.02846655249595642, 0.007320213131606579, -0.06392250955104828, 0.03850958123803139, 0.005271741189062595, 0.053913410753011703, 0.06354928761720657, -0.061717115342617035, 0.010441694408655167, 0.025395965203642845, -0.02037445269525051, -0.022749492898583412, 0.002682523103430867, 0.03949352353811264, 0.06870651990175247, -0.0007989253499545157, -0.005195400211960077, -0.04912940412759781, -0.009966686367988586, -0.04465075582265854, 0.01328326016664505, 0.018508348613977432, 0.01767708547413349, 0.026159370318055153, -0.027448678389191628, 0.013800679706037045, 0.03414968401193619, -0.006726453080773354, 0.011425639502704144, -0.06626362353563309, -0.05567772686481476, -0.01883067563176155, 0.010373836383223534, 0.02125660888850689, 0.0677904337644577, -0.0329112708568573, 0.06684041768312454, 0.021833404898643494, -0.029789790511131287, -0.010382318869233131, -0.0231905709952116, 0.010738574899733067, 0.0016773721436038613, -0.004911243915557861, 0.03698276728391647, 0.02212180197238922, -0.06069924309849739, 0.009822487831115723, 0.03810242936015129, 0.03623632714152336, 0.010713127441704273, -0.05425270274281502, -0.004618605133146048, 0.02588793821632862, -0.03827207535505295, -0.018661029636859894, -0.063447505235672, -0.023343252018094063, 0.028212085366249084, 0.0551009327173233, -0.006985162850469351, 0.08095493912696838, 0.02164679393172264, 0.019475329667329788, -0.03168982267379761, -0.03711848333477974, 0.009474714286625385, -0.04733115807175636, 0.04753473401069641, -0.0030896728858351707, -0.01128144096583128, -0.016124825924634933, -0.059376005083322525, -0.000005144042916072067, 0.003450169926509261, -0.04627935588359833, 0.038882799446582794, -0.026379911229014397, 0.012859146110713482, -0.017320828512310982, 0.0279576163738966, -0.012723429128527641, 0.030349621549248695, -0.0008577711996622384, -0.03177464380860329, -0.03442111983895302, -0.007222666870802641, 0.03637204319238663, 0.07606914639472961, -0.02941656857728958, 0.018338702619075775, -0.008656173013150692, 0.006119969766587019, -0.016701621934771538, -0.04777223616838455, 0.033131811767816544, -0.01725297048687935, -0.05367590859532356, 0.0016243578866124153, 0.006726453080773354, 0.0781048908829689, -0.006794311571866274, -0.07444054633378983, 0.01570919342339039, -0.01614179089665413, -0.03469255194067955, -0.037050627171993256, -0.09065867960453033, -0.024055764079093933, -0.038000643253326416, 0.007205702364444733, 0.1015160009264946, 0.029280852526426315, -0.013088167645037174, -0.04485433176159859, 0.004239022731781006, 0.04091854766011238, -0.033810392022132874, -0.026515627279877663, -0.037729211151599884, -0.031859468668699265, 0.0017462907126173377, 0.005907912272959948, -0.04773830622434616, -0.05245446041226387, 0.002313543576747179, -0.0225968100130558, -0.024632560089230537, -0.0005402156384661794, 0.06846901774406433, 0.003704638686031103, -0.009084528312087059, -0.049570482224226, 0.03627025708556175, 0.07667987048625946, -0.025124533101916313, 0.05269196256995201, -0.02342807501554489, 0.04074890539050102, 0.011408675462007523, 0.03357288986444473, -0.05499914661049843, 0.018610136583447456, -0.028737986460328102, 0.04587220400571823, 0.030027294531464577, -0.05180980637669563, -0.011374746449291706, 0.013062721118330956, -0.02707545831799507, -0.01720207743346691, 0.021901262924075127, 0.0034650140441954136, -0.030027294531464577, 0.09283014386892319, 0.00874523725360632, 0.01847442053258419, 0.0733548104763031, 0.04112212359905243, -0.0076425401493906975, -0.019136037677526474, -0.012375655584037304, -0.04746687412261963, -0.025514718145132065, -0.021239645779132843, -0.0068239993415772915, -0.001855500158853829, 0.006891857832670212, 0.008728272281587124, 0.0035625603049993515, -0.05133479833602905, -0.11529123783111572, -0.02295306697487831, 0.05079193040728569, 0.0239879060536623, 0.0051190597005188465, 0.057883121073246, -0.00269524659961462, -0.03755956515669823, 0.00852893851697445, -0.1129840537905693, 0.03196125477552414, -0.05011334642767906, -0.03445504605770111, 0.02811029739677906, 0.08780863136053085, -0.00852893851697445, -0.04824724420905113, -0.04404003173112869, -0.01891549862921238, -0.026295088231563568, -0.0010889135301113129, 0.00337595003657043, 0.011018490418791771, -0.029688002541661263, -0.10314460098743439, -0.023258429020643234, -0.03235144168138504, -0.012977898120880127, -0.004177526105195284, 0.0038848870899528265, -0.03218179568648338, -0.015454725362360477, 0.06416001170873642, -0.024479879066348076, -0.027771005406975746, -0.002947594504803419, -0.03878101333975792, 0.005538932979106903, -0.0479758121073246, 0.012002435512840748, 0.05903671309351921, 0.017473509535193443, 0.018033340573310852, 0.06456716358661652, 0.02117178589105606, -0.008863989263772964, -0.00987338088452816, -0.007332936394959688, -0.022936102002859116, -0.035388097167015076, 0.0112984050065279, 0.020272664725780487, -0.017931552603840828, -0.011137242428958416, 0.029450498521327972, -0.008333845995366573, 0.006921545602381229, 0.0033186946529895067, -0.04485433176159859, -0.05737418681383133, -0.06348142772912979, 0.01240958459675312, 0.0271602813154459, -0.001798244658857584, -0.031180884689092636, 0.05058835446834564, 0.03504880890250206, -0.057713475078344345, -0.02855137549340725, -0.012664053589105606, -0.06334571540355682, -0.023580756038427353, -0.03481130301952362, 0.02176554687321186, -0.03001032955944538, -0.019203895702958107, 0.04499004781246185, 0.05123300850391388, -0.01328326016664505, 0.013910949230194092, 0.061208177357912064, -0.04940083622932434, -0.07566199451684952, -0.02688884735107422, -0.014835518784821033, -0.07111548632383347, 0.02493792213499546, -0.014190864749252796, -0.022902173921465874, -0.016879750415682793, -0.02517542615532875, 0.03258894383907318, 0.026617415249347687, -0.023784330114722252, -0.003134204773232341, -0.03459076210856438, 0.0626671314239502, -0.01350380014628172, -0.007498341146856546, 0.03620239719748497, 0.00945774931460619, 0.020527133718132973, 0.01681189239025116, -0.027618324384093285, 0.005259017460048199, -0.01752440445125103, 0.00361345405690372, 0.04885796830058098, -0.036609549075365067, 0.02108696475625038, -0.004669498652219772, 0.08387284725904465, 0.021426254883408546, 0.031231777742505074, 0.029688002541661263, 0.05377769470214844, -0.01486944779753685, -0.043632879853248596, 0.058663491159677505, -0.002939112251624465, 0.012019399553537369, 0.004347171634435654, 0.03969709947705269, 0.020001230761408806, 0.05197945237159729, -0.0112984050065279, 0.020561061799526215, -0.046449001878499985, 0.05544022470712662, 0.05449020862579346, -0.057475972920656204, 0.06816365569829941, 0.03218179568648338, 0.029467463493347168, -0.01358014065772295, 0.04278465360403061, -0.005326875951141119, -0.020713742822408676, 0.025446858257055283, 0.005941841751337051, -0.023614685982465744, -0.02173161692917347, -0.018610136583447456, 0.04064711555838585, -0.0042114551179111, 0.013062721118330956, -0.037932783365249634, -0.05411698669195175, -0.024412021040916443, -0.07267622649669647, -0.01193457655608654, 0.009109975770115852, 0.013775233179330826, 0.03582917898893356, 0.0038361139595508575, -0.009237210266292095, -0.034285400062799454, 0.007977589964866638, 0.04865439608693123, 0.03001032955944538, 0.010501070879399776, 0.04356502369046211, 0.0019042732892557979, 0.0943908840417862, 0.0396631695330143, 0.031384460628032684, -0.022138766944408417, 0.0066373893059790134, -0.03593096509575844, -0.0737619623541832, 0.03973102942109108, -0.026345981284976006, 0.010551963932812214, 0.027448678389191628, 0.020018195733428, -0.029552286490797997, -0.006052111275494099, 0.002992126625031233, -0.009729182347655296, 0.013410494662821293, -0.004720392171293497, -0.03593096509575844, 0.009712218306958675, 0.05265803262591362, -0.023326287046074867, 0.028721021488308907, 0.01500516477972269, -0.05191159248352051, 0.002877615625038743, -0.0032932476606220007, -0.03735598921775818, 0.012087258510291576, 0.04485433176159859, -0.02600668929517269, -0.0042941574938595295, -0.026396874338388443, 0.003674950683489442, 0.04889189824461937, -0.02671920135617256, 0.01280825212597847, 0.007765533402562141, 0.06534753739833832, -0.006332026794552803, -0.02811029739677906, -0.040036391466856, 0.013724339194595814, -0.023495933040976524, -0.017541367560625076, 0.03789885714650154, -0.007655263412743807, -0.03521845117211342, 0.08482286334037781, 0.00856286846101284, 0.021477149799466133, 0.01391943171620369, -0.055338434875011444, 0.006934269331395626, 0.01888156868517399, 0.029518356546759605, -0.05197945237159729, 0.021392326802015305, 0.08020850270986557, 0.06667076796293259, 0.0019307804759591818, 0.040341753512620926, 0.0654493197798729, -0.004656775388866663, 0.01106090098619461, 0.027940651401877403, 0.0630403533577919, 0.007892767898738384, 0.06202247738838196, 0.007320213131606579, -0.02977282553911209, -0.026498662307858467, -0.018253879621624947, 0.02565043419599533, 0.035116665065288544, 0.03124874271452427, -0.0038976105861365795, -0.06239569932222366, 0.02276645600795746, -0.0015798258827999234, -0.031944289803504944, 0.014445333741605282, 0.05903671309351921, 0.009788558818399906, 0.0018957910360768437, 0.026040619239211082, 0.0041711642406880856, -0.005585585720837116, -0.021816439926624298, -0.05459199473261833, -0.028687093406915665, 0.03297913074493408, 0.03430236503481865, -0.020391415804624557, -0.01788065955042839, 0.03908637538552284, 0.07437268644571304, -0.030112117528915405, -0.05856170505285263, -0.028619233518838882, 0.058222413063049316, -0.03508273512125015, 0.00596728827804327, 0.03623632714152336, 0.047636520117521286, 0.002053773496299982, 0.034675586968660355, 0.033250562846660614, -0.009152387268841267, -0.030281761661171913, -0.0027206933591514826, -0.06684041768312454, -0.041020337492227554, 0.02938264049589634, -0.0021163304336369038, 0.034675586968660355, -0.024293268099427223, -0.024089694023132324, -0.02668527327477932, 0.06402429938316345, 0.0029221477452665567, -0.022817350924015045, -0.03041747957468033, -0.0029984882567077875, 0.06962260603904724, 0.02739778533577919, -0.06561896950006485, -0.01508998777717352, -0.04892582818865776, -0.01915300264954567, -0.06368500739336014, 0.038882799446582794, -0.011306887492537498, 0.005636479239910841, 0.0041711642406880856, 0.041020337492227554, 0.009754628874361515, 0.022393235936760902, 0.016430187970399857, 0.046245425939559937, 0.04353109374642372, -0.003780979197472334, -0.016116343438625336, -0.011349298991262913, 0.05167409032583237, -0.06684041768312454, 0.02093428187072277, -0.034234508872032166, 0.02529417723417282 ]
730,121
mmengine.logging.history_buffer
max
Return the maximum value of the latest ``window_size`` values in log histories. If ``window_size is None`` or ``window_size > len(self._log_history)``, return the global maximum value of history logs. Args: window_size (int, optional): Size of statistics window. Returns: np.ndarray: The maximum value within the window.
def max(self, window_size: Optional[int] = None) -> np.ndarray: """Return the maximum value of the latest ``window_size`` values in log histories. If ``window_size is None`` or ``window_size > len(self._log_history)``, return the global maximum value of history logs. Args: window_size (int, optional): Size of statistics window. Returns: np.ndarray: The maximum value within the window. """ if window_size is not None: assert isinstance(window_size, int), \ 'The type of window size should be int, but got ' \ f'{type(window_size)}' else: window_size = len(self._log_history) return self._log_history[-window_size:].max()
(self, window_size: Optional[int] = None) -> numpy.ndarray
[ -0.002803679322823882, 0.00697037810459733, -0.06608056277036667, -0.007449159864336252, 0.020842120051383972, -0.012215415015816689, -0.03561104089021683, 0.031176913529634476, 0.001554963644593954, 0.006366508547216654, -0.0434785932302475, 0.0047231209464371204, 0.009860323742032051, -0.020445290952920914, 0.02593187615275383, 0.06980729848146439, -0.01428582426160574, -0.013423153199255466, 0.05031094700098038, 0.05148417875170708, 0.03574906662106514, -0.03657723218202591, -0.03854411840438843, -0.06966926902532578, -0.02398224174976349, 0.02670828066766262, -0.0028964162338525057, 0.03712933883070946, -0.015070854686200619, 0.031763527542352676, -0.06828899681568146, -0.06118059530854225, 0.054520778357982635, -0.004576466977596283, -0.02398224174976349, -0.02915826439857483, -0.006060260348021984, 0.008329084143042564, -0.10676410794258118, -0.015157121233642101, -0.0464806891977787, 0.007677767891436815, 0.009127054363489151, 0.0358525887131691, -0.010369299910962582, -0.013276499696075916, 0.009937964379787445, 0.03345436230301857, -0.01977240853011608, 0.018323121592402458, -0.0008163019665516913, 0.006724516861140728, -0.017943548038601875, 0.025017445906996727, -0.04206381365656853, 0.035680051892995834, 0.038751158863306046, -0.06438972800970078, -0.012629496864974499, -0.05165671184659004, -0.03854411840438843, -0.0476539209485054, 0.03395471349358559, -0.039924390614032745, 0.07115306705236435, 0.013336886651813984, 0.004263749346137047, 0.01325924601405859, -0.019013257697224617, -0.02139422856271267, -0.03730187565088272, -0.053796134889125824, -0.0038237872067838907, -0.006435522343963385, -0.048033494502305984, 0.012137774378061295, -0.009213320910930634, 0.027950525283813477, -0.034938156604766846, -0.024103013798594475, 0.037922997027635574, 0.03286774829030037, 0.055107392370700836, 0.011421757750213146, 0.0417877621948719, -0.047239840030670166, 0.045687031000852585, 0.09896556288003922, 0.016718555241823196, -0.024724137037992477, -0.01865093782544136, 0.0008200761512853205, 0.0019798288121819496, 0.041925787925720215, -0.08033187687397003, -0.04423774406313896, -0.033713165670633316, 0.053796134889125824, 0.0013845862122252584, -0.006306121591478586, -0.021325215697288513, -0.01452737208455801, 0.06197424978017807, 0.0045074536465108395, -0.02662201225757599, -0.0020337458699941635, 0.017175769433379173, 0.01670130155980587, 0.003403235226869583, 0.01787453331053257, -0.0346793569624424, 0.061215102672576904, -0.0016067238757386804, 0.005275230389088392, -0.007789914961904287, 0.07149813324213028, -0.01982416957616806, 0.00981719046831131, -0.0160197913646698, 0.015484936535358429, -0.04127015918493271, 0.0048956554383039474, -0.015269268304109573, -0.00300425011664629, 0.006362195126712322, 0.030831845477223396, 0.005516778212040663, -0.047343358397483826, 0.015683351084589958, 0.022256899625062943, 0.015139867551624775, -0.025379767641425133, -0.01630447246134281, 0.023861467838287354, 0.06011088192462921, -0.0208593737334013, 0.0064441487193107605, 0.012793404050171375, -0.015484936535358429, -0.012042880989611149, -0.000951633439399302, 0.030348749831318855, 0.038854680955410004, 0.00862239208072424, 0.007099778391420841, -0.015398669056594372, 0.06325100362300873, 0.026432225480675697, 0.012991818599402905, -0.030020935460925102, -0.012577736750245094, -0.010239899158477783, -0.04893067106604576, -0.017175769433379173, 0.024896671995520592, -0.0010244213044643402, -0.006996258161962032, -0.009394481778144836, 0.008557691238820553, 0.00012158262688899413, 0.02670828066766262, 0.04796448349952698, -0.023792453110218048, -0.0824022889137268, -0.0399588979780674, -0.004464319907128811, 0.04893067106604576, 0.03830257058143616, -0.052760928869247437, 0.06711576879024506, 0.025189979001879692, 0.02622518502175808, 0.001387821277603507, 0.007017824798822403, -0.08005582541227341, 0.04927574098110199, -0.008169489912688732, 0.01401839591562748, -0.014639519155025482, 0.11897952109575272, -0.02035902440547943, -0.05421021580696106, -0.02793327160179615, -0.017512211576104164, 0.030607551336288452, 0.019858675077557564, 0.012155028060078621, -0.005534031428396702, -0.01806432008743286, 0.044272251427173615, -0.03195331618189812, -0.06483832001686096, 0.04292648658156395, -0.11200914531946182, -0.02582835592329502, 0.006383761763572693, -0.04634265974164009, 0.03476562350988388, 0.02846812829375267, 0.011378624476492405, 0.01865093782544136, 0.04102861136198044, -0.0176329854875803, -0.08957970887422562, -0.03554202616214752, 0.015855884179472923, 0.01328512653708458, -0.028899462893605232, -0.04278845712542534, 0.013449033722281456, -0.0176329854875803, -0.0032587379682809114, -0.045583512634038925, -0.006202601362019777, -0.005158769898116589, -0.042512405663728714, -0.03502442315220833, 0.002749762265011668, 0.023499146103858948, 0.025258993729948997, 0.0346793569624424, -0.05986933410167694, -0.019599875435233116, 0.056384146213531494, 0.009187441319227219, -0.018892483785748482, 0.05445176362991333, -0.002445671008899808, 0.05676371976733208, -0.04672223702073097, 0.021791057661175728, 0.027225881814956665, 0.010101871564984322, -0.0031422774773091078, 0.03188430145382881, 0.0241202674806118, -0.025138219818472862, 0.0030754203908145428, 0.0008437996148131788, 0.05952426791191101, 0.01859917677938938, -0.0036512529477477074, 0.02774348482489586, 0.08412762731313705, -0.048758137971162796, 0.0036296863108873367, 0.0006949889357201755, 0.06608056277036667, 0.012888297438621521, -0.0071256584487855434, 0.012689883820712566, -0.04551449790596962, -0.0238269604742527, 0.007406026590615511, 0.058868635445833206, 0.025379767641425133, -0.02217063307762146, 0.01023127231746912, -0.010265779681503773, -0.07322347164154053, 0.055555980652570724, 0.017494957894086838, -0.004761941265314817, 0.01801256090402603, -0.05952426791191101, -0.013992516323924065, 0.006021440494805574, -0.040165938436985016, -0.023033304139971733, 0.05717780441045761, 0.0428919792175293, 0.05338205397129059, -0.05431373789906502, -0.0775713324546814, -0.030607551336288452, -0.05507288873195648, 0.04858560487627983, -0.04182226583361626, 0.013155725784599781, -0.0018277831841260195, 0.00783736165612936, -0.046618714928627014, -0.004375896416604519, 0.02129070833325386, 0.009265081956982613, 0.03219486400485039, -0.02441357634961605, -0.08267834037542343, 0.04340958222746849, 0.050379958003759384, 0.028795942664146423, 0.02041078545153141, -0.0500003844499588, 0.06587351858615875, -0.04327155277132988, -0.05797145888209343, 0.0387856662273407, -0.005870473105460405, 0.022256899625062943, 0.05362360179424286, -0.01325924601405859, -0.007578560616821051, 0.031090645119547844, -0.021653030067682266, -0.03307478874921799, -0.01934107393026352, 0.023464638739824295, -0.06545943766832352, 0.07136010378599167, 0.006012813653796911, -0.007108405232429504, 0.033971965312957764, -0.0021426579914987087, -0.02979663945734501, -0.019858675077557564, 0.016727181151509285, 0.021911831572651863, -0.0593862384557724, 0.009282334707677364, 0.02651849202811718, -0.00829889066517353, 0.036991313099861145, 0.013181605376303196, -0.09454868733882904, -0.04610111191868782, -0.07301643490791321, -0.044651828706264496, 0.010093245655298233, 0.03436879441142082, -0.057798925787210464, -0.0464806891977787, -0.0741206556558609, 0.025862863287329674, 0.047239840030670166, 0.048620112240314484, 0.00942898914217949, 0.0016843641642481089, 0.05907567963004112, 0.029762133955955505, -0.02700158767402172, -0.04634265974164009, 0.004964668769389391, -0.019254805520176888, 0.04868912324309349, 0.033575136214494705, -0.00625004805624485, 0.04782645404338837, 0.0017587695037946105, 0.01626133918762207, -0.02280900813639164, 0.022084366530179977, -0.0035498891957104206, -0.07029039412736893, 0.009903457947075367, -0.04692927747964859, -0.04620463401079178, 0.013897622004151344, -0.02436181530356407, 0.045307457447052, 0.017158517614006996, -0.08771634101867676, 0.05562499538064003, -0.04965531453490257, 0.017658865079283714, -0.003664193209260702, 0.06149115413427353, 0.0009333016932941973, 0.017909040674567223, 0.010964542627334595, -0.005939486436545849, -0.027812497690320015, -0.03312654793262482, 0.05621161311864853, 0.08985576033592224, -0.045307457447052, 0.060283418744802475, -0.028640661388635635, -0.004276689141988754, 0.016295846551656723, -0.01008461881428957, 0.043685637414455414, -0.03706032782793045, -0.04848208278417587, -0.03222937136888504, 0.014993214048445225, 0.04951728880405426, -0.02094564028084278, -0.03692229837179184, -0.013612940907478333, -0.03195331618189812, 0.010179512202739716, -0.004585093818604946, -0.07205024361610413, -0.00650884909555316, -0.007030765060335398, 0.05807498097419739, 0.03461034223437309, 0.03861313313245773, 0.01934107393026352, -0.002866222755983472, -0.024689631536602974, 0.06183622404932976, -0.026449479162693024, -0.017365558072924614, -0.037336379289627075, -0.05641865357756615, -0.00655629625543952, 0.008428291417658329, -0.040752556174993515, -0.04140818491578102, 0.048965178430080414, -0.02475864440202713, -0.07743331044912338, 0.006858230568468571, 0.06856505572795868, 0.016037045046687126, 0.005253663752228022, -0.010722994804382324, 0.02657025307416916, -0.02929629199206829, 0.010101871564984322, 0.033471617847681046, -0.014070156030356884, -0.006392388604581356, -0.004485887009650469, 0.018288616091012955, -0.051932767033576965, -0.00009684824908617884, -0.012948684394359589, 0.028209326788783073, -0.005646178498864174, -0.032160356640815735, -0.031815290451049805, 0.02353365160524845, 0.004375896416604519, 0.0005426736897788942, 0.011223343200981617, 0.027018841356039047, -0.06438972800970078, 0.0412011444568634, -0.006491595879197121, -0.03857862576842308, 0.03516245260834694, 0.07805442810058594, 0.030141709372401237, -0.011214717291295528, 0.03609413653612137, -0.027432922273874283, -0.042753953486680984, -0.0033299082424491644, -0.009653283283114433, -0.045307457447052, 0.0029956235084682703, 0.026742786169052124, 0.045825060456991196, -0.05300247669219971, -0.12967664003372192, 0.018047068268060684, 0.08053892105817795, -0.019720647484064102, 0.017753759399056435, 0.009489376097917557, 0.000020724311980302446, -0.07977977395057678, -0.06828899681568146, 0.0036361562088131905, 0.01899600587785244, -0.046032100915908813, -0.012543229386210442, 0.003653409657999873, 0.0764671191573143, 0.040407486259937286, -0.028071299195289612, -0.006254361476749182, 0.0012562639312818646, -0.03599061444401741, 0.03550751879811287, -0.005266603548079729, 0.002754075685516, -0.024724137037992477, 0.011197463609278202, 0.007207612507045269, -0.03388569876551628, -0.04730885103344917, -0.022084366530179977, 0.030348749831318855, -0.05407219007611275, -0.02953783981502056, 0.021118175238370895, 0.05031094700098038, -0.0048740883357822895, 0.0434785932302475, -0.006702950224280357, 0.04492788016796112, 0.003362258430570364, -0.012793404050171375, 0.07460375130176544, 0.016813449561595917, 0.06587351858615875, 0.04872363060712814, 0.008130669593811035, 0.04140818491578102, -0.03366140276193619, -0.01801256090402603, -0.010722994804382324, -0.023326611146330833, -0.02353365160524845, 0.02486216463148594, -0.05200177803635597, -0.006280241534113884, 0.006620996166020632, 0.023033304139971733, -0.032108597457408905, -0.012405202724039555, -0.02436181530356407, -0.061698198318481445, 0.02149774879217148, -0.007065271493047476, 0.03882017359137535, 0.0037526169326156378, -0.01040380634367466, 0.043927185237407684, -0.03164275363087654, -0.028312847018241882, -0.020082969218492508, -0.03536949306726456, -0.008268697187304497, 0.07708823680877686, 0.01140450406819582, 0.06052496284246445, -0.019013257697224617, 0.019134031608700752, 0.014553251676261425, 0.051794737577438354, 0.03414449840784073, -0.015648843720555305, -0.018823470920324326, 0.00014530606858897954, -0.041339170187711716, 0.02700158767402172, -0.06069749966263771, -0.032298386096954346, 0.02558680810034275, 0.0011376467300578952, -0.04182226583361626, -0.0073542664758861065, 0.014423850923776627, 0.06287142634391785, 0.06746083498001099, -0.04913771525025368, 0.05096657574176788, 0.04185677319765091, 0.07902061939239502, -0.01596803218126297, -0.026501238346099854, -0.012629496864974499, 0.014001143164932728, -0.0024413575883954763, 0.017494957894086838, -0.06873758882284164, -0.0006405328749679029, 0.0010211862390860915, -0.003280304605141282, 0.05472781881690025, -0.0332128144800663, 0.007440533488988876, -0.02891671657562256, 0.044755347073078156, 0.0015754520427435637, 0.0535200797021389, -0.03443780913949013, 0.08178116381168365, -0.04154621437191963, -0.07211925834417343, 0.05207079276442528, 0.0057842060923576355, 0.036266669631004333, 0.009273707866668701, 0.02446533553302288, 0.047791946679353714, 0.012379322201013565, 0.005477957893162966, 0.028692422434687614, -0.013612940907478333, 0.0428919792175293, 0.08212623745203018, -0.05079404264688492, 0.017080876976251602, -0.006206914316862822, 0.03219486400485039, 0.0346793569624424, 0.07115306705236435, -0.018530163913965225, -0.015985285863280296, 0.0027842691633850336, 0.027950525283813477, -0.04020044580101967, -0.008333397097885609, -0.009808563627302647, 0.05621161311864853, -0.035818081349134445, 0.026673773303627968, -0.06432071328163147, -0.005585791543126106, -0.016183698549866676, -0.08571494370698929, 0.027605457231402397, 0.03726736828684807, 0.013932129368185997, 0.007845988497138023, -0.0406145304441452, 0.002208436606451869, -0.04772293567657471, -0.004994862247258425, 0.0136733278632164, -0.0057281325571238995, 0.0305730439722538, 0.007919315248727798, 0.0069660646840929985, -0.023119570687413216, 0.05172572657465935, 0.03633568435907364, 0.025414273142814636, 0.004399619530886412, 0.017995307222008705, -0.029365304857492447, 0.0003798446268774569, -0.007876181975007057, -0.02006571739912033, 0.01670130155980587, -0.0005871551111340523, 0.004826641641557217, 0.018202347680926323, -0.02924453094601631, -0.0026915320195257664, 0.010809261351823807, 0.03961383178830147, -0.013647448271512985, 0.014950080774724483, -0.037336379289627075, -0.002738978946581483, 0.02720862813293934, 0.04893067106604576, -0.02334386482834816, 0.00861807819455862, 0.04344408959150314, 0.018254108726978302, 0.08102201670408249, 0.0017059310339391232, -0.03195331618189812, -0.010283032432198524, -0.04713631793856621, -0.010662607848644257, 0.013147098943591118, 0.030538536608219147, -0.017029115930199623, 0.013811355456709862, 0.060973554849624634, 0.0051673962734639645, -0.03388569876551628, -0.04254690930247307, -0.01727929152548313, -0.04868912324309349, -0.02144598960876465, 0.017011862248182297, -0.044410280883312225, -0.0500003844499588, 0.03743990138173103, 0.021463243290781975, -0.01704636961221695, 0.034109994769096375, -0.076398104429245, 0.033471617847681046, 0.009722297079861164, 0.03286774829030037, -0.005991247016936541, 0.004101998172700405, 0.0752938836812973, 0.019617127254605293, -0.064665786921978, 0.020721346139907837, 0.06093904748558998, -0.04009692743420601, 0.0033687283284962177, 0.05576302483677864, 0.014837932772934437, -0.027070600539445877, 0.07322347164154053, -0.009135681204497814, 0.015390042215585709, 0.007000571582466364, -0.026587506756186485, -0.02417202852666378, 0.00037580085336230695, -0.02427554875612259, 0.010809261351823807, -0.05607358366250992, 0.04020044580101967, -0.004481573589146137, -0.028795942664146423, -0.030210722237825394, 0.07253333926200867, -0.00803577620536089, -0.0034657788928598166, 0.023016050457954407, -0.03813003748655319, -0.009075294248759747, 0.022481193765997887, -0.025017445906996727, -0.0061896611005067825, -0.0024629244580864906, -0.028261085972189903, 0.012318935245275497, -0.022739995270967484, -0.0229470357298851, 0.055555980652570724, 0.014518745243549347, 0.036266669631004333, -0.0859219878911972, 0.044168733060359955, -0.023861467838287354, 0.02548328787088394, 0.03754342347383499, -0.00007635982183273882, -0.012525975704193115, 0.00834633782505989, 0.05572851747274399, -0.023550905287265778, -0.02016923762857914, -0.00905804056674242, -0.013587061315774918, -0.038992706686258316, 0.015890391543507576, 0.03207409009337425, 0.03364415094256401, 0.004947415553033352, 0.0012411671923473477, -0.04244339093565941, 0.012310308404266834, -0.014648145996034145, -0.021515002474188805, -0.026898067444562912, -0.012724390253424644, 0.016037045046687126, 0.00402867142111063, -0.0423743762075901, -0.04102861136198044, -0.026363210752606392, -0.016045672819018364, -0.03678427264094353, -0.0027130988892167807, -0.02310231700539589, 0.053796134889125824, -0.03188430145382881, -0.016425246372818947, 0.03331633657217026, 0.0033687283284962177, -0.012948684394359589, 0.02622518502175808, 0.047481387853622437, -0.004037298262119293, -0.015597083605825901, -0.028054045513272285, 0.008764732629060745, -0.04848208278417587, 0.014294451102614403, -0.04872363060712814, -0.05724681541323662 ]
730,122
mmengine.logging.history_buffer
mean
Return the mean of the latest ``window_size`` values in log histories. If ``window_size is None`` or ``window_size > len(self._log_history)``, return the global mean value of history logs. Args: window_size (int, optional): Size of statistics window. Returns: np.ndarray: Mean value within the window.
def mean(self, window_size: Optional[int] = None) -> np.ndarray: """Return the mean of the latest ``window_size`` values in log histories. If ``window_size is None`` or ``window_size > len(self._log_history)``, return the global mean value of history logs. Args: window_size (int, optional): Size of statistics window. Returns: np.ndarray: Mean value within the window. """ if window_size is not None: assert isinstance(window_size, int), \ 'The type of window size should be int, but got ' \ f'{type(window_size)}' else: window_size = len(self._log_history) logs_sum = self._log_history[-window_size:].sum() counts_sum = self._count_history[-window_size:].sum() return logs_sum / counts_sum
(self, window_size: Optional[int] = None) -> numpy.ndarray
[ -0.04610811918973923, -0.011787233874201775, -0.05936116725206375, -0.0014473837800323963, 0.09075909852981567, 0.010330092161893845, -0.043610163033008575, 0.009167848154902458, -0.002026337431743741, 0.06518973410129547, -0.04711424186825752, -0.03597751632332802, 0.030721399933099747, 0.0044386438094079494, 0.0030422164127230644, 0.028223441913723946, 0.023383650928735733, 0.021891815587878227, -0.00805764552205801, -0.004536220338195562, 0.013860191218554974, -0.04218771681189537, -0.054226480424404144, -0.054781582206487656, -0.044026490300893784, 0.02883058413863182, -0.008135706186294556, -0.016548963263630867, -0.014207129366695881, 0.03037446178495884, -0.001914666616357863, -0.06310810148715973, 0.033982619643211365, 0.012264274060726166, 0.010824479162693024, -0.06973462551832199, 0.002497956855222583, 0.01685253530740738, -0.08264073729515076, -0.04478975385427475, -0.06192851439118385, -0.02017447166144848, 0.02227344922721386, 0.04423465207219124, -0.0007236918900161982, 0.026610178872942924, 0.02933364547789097, 0.04468567296862602, 0.020625490695238113, -0.004952546209096909, -0.029385685920715332, 0.04076526686549187, -0.0375734344124794, 0.01911630854010582, 0.011830600909888744, 0.044824447482824326, 0.02988874725997448, -0.08784481137990952, -0.01967141032218933, -0.0013270395575091243, -0.005642086733132601, -0.04465097934007645, 0.03767751529812813, -0.022793855518102646, 0.061755042523145676, 0.0021954698022454977, -0.04707954823970795, 0.04950811713933945, 0.003202675608918071, -0.08652644604444504, -0.028969360515475273, -0.03148466348648071, 0.022221406921744347, 0.012177539058029652, -0.06879789382219315, 0.03160609304904938, -0.012472436763346195, 0.029663236811757088, 0.02777242287993431, -0.0013140293303877115, 0.010095909237861633, 0.024493854492902756, 0.05370607227087021, 0.02112855203449726, 0.01871732994914055, -0.04871015623211861, -0.037365272641181946, 0.07105299085378647, 0.03443364053964615, -0.024684671312570572, 0.01105866301804781, 0.011691825464367867, 0.004167598206549883, 0.0050306073389947414, -0.06067953631281853, -0.036012209951877594, -0.05453872308135033, 0.016583656892180443, -0.005858922842890024, -0.009245909750461578, -0.07431421428918839, 0.0008375311153940856, 0.061269331723451614, 0.010390806943178177, -0.06040198355913162, -0.006227544974535704, 0.00419145030900836, -0.028310177847743034, 0.007723717018961906, 0.09637950360774994, -0.05401831492781639, -0.0015167715027928352, -0.008877287618815899, -0.03238670527935028, -0.012385702691972256, 0.038995880633592606, 0.01774590089917183, 0.0447203665971756, -0.07167748361825943, 0.013912231661379337, -0.007658666465431452, 0.04395710304379463, 0.00011973442451562732, 0.037226494401693344, 0.03408670425415039, 0.02973262406885624, 0.00396810844540596, -0.06088769808411598, -0.02510099671781063, 0.012212233617901802, 0.0007030924316495657, -0.0018810569308698177, 0.02105916291475296, -0.03490200638771057, 0.043783631175756454, 0.00663953460752964, -0.007515554316341877, -0.0217877347022295, -0.0034455324057489634, -0.008408920839428902, 0.010807132348418236, -0.0044538225047290325, 0.021805081516504288, -0.006140810437500477, -0.010859173722565174, 0.008048972114920616, 0.038440778851509094, -0.0012706620618700981, 0.0012132003903388977, -0.0230714064091444, 0.01595049537718296, -0.006448718253523111, -0.008495654910802841, -0.0014354578452184796, -0.015620904043316841, 0.0212152861058712, -0.0003203759843017906, -0.01056427601724863, -0.03245609253644943, -0.01845712587237358, -0.001089061493985355, 0.025552015751600266, 0.03339282423257828, -0.08562441170215607, -0.05238770693540573, 0.018856104463338852, -0.013261722400784492, 0.0334969088435173, -0.06106116622686386, -0.008799226023256779, 0.059257086366415024, 0.010026521049439907, 0.05488566309213638, 0.034641802310943604, -0.016306107863783836, 0.05818157643079758, -0.03278568387031555, 0.02909078821539879, -0.03812853619456291, 0.07632645964622498, 0.017355596646666527, -0.026107117533683777, -0.036810170859098434, -0.03993261605501175, -0.02889997325837612, -0.0277897696942091, 0.03677547723054886, -0.0320744588971138, 0.016991309821605682, 0.04916117712855339, -0.01482294499874115, -0.05256117507815361, 0.03989792242646217, -0.08187747001647949, -0.012489784508943558, 0.006635197903960943, -0.052040766924619675, -0.010061214677989483, 0.025309160351753235, -0.0008982453146018088, 0.0029966807924211025, 0.029906094074249268, -0.027408137917518616, -0.053810153156518936, -0.006773973349481821, -0.008460961282253265, -0.010217336937785149, 0.008816573768854141, -0.061199940741062164, 0.016644371673464775, -0.016800494864583015, -0.018752023577690125, -0.025378547608852386, 0.03330609202384949, 0.006669891532510519, -0.03538772091269493, -0.025725485756993294, -0.017216820269823074, 0.028292831033468246, 0.006643871311098337, -0.004145914223045111, -0.057869333773851395, -0.041667308658361435, 0.021562224254012108, -0.012411722913384438, 0.012932131066918373, 0.03805914893746376, -0.032352011650800705, 0.01977549120783806, -0.0302183385938406, 0.005524994805455208, 0.0021163246128708124, -0.0028622422832995653, 0.005173719488084316, 0.04277751222252846, 0.0400020033121109, -0.031796909868717194, -0.0019309292547404766, 0.05901423096656799, 0.03457241505384445, 0.0016392841935157776, -0.019740797579288483, 0.07362034171819687, 0.05977749451994896, -0.05488566309213638, -0.014033660292625427, -0.02373058907687664, 0.07473054528236389, -0.02697446383535862, 0.0014874986372888088, -0.026714259758591652, 0.005776525009423494, 0.005490300711244345, 0.02598568983376026, 0.046767301857471466, 0.051381584256887436, 0.0014354578452184796, 0.09360399097204208, -0.031883642077445984, -0.0690060555934906, 0.031068338081240654, -0.0009437809931114316, 0.036393843591213226, 0.0038488483987748623, -0.053983621299266815, 0.03382650017738342, 0.03498874232172966, -0.012255600653588772, 0.010928560979664326, 0.056342802941799164, 0.01098060142248869, 0.08964889496564865, -0.03141527622938156, -0.05547545850276947, 0.004167598206549883, -0.02997548133134842, 0.03176221624016762, -0.010191316716372967, -0.008907645009458065, -0.014874986372888088, 0.02355712093412876, -0.03229996934533119, -0.015924474224448204, 0.033097926527261734, -0.010017847642302513, 0.004783413838595152, -0.004562240559607744, -0.08645705878734589, 0.06817340850830078, 0.021197939291596413, 0.055024437606334686, 0.018162228167057037, -0.03382650017738342, -0.002766834106296301, -0.0922856256365776, -0.018821410834789276, 0.0026042067911475897, 0.011709172278642654, -0.021440796554088593, 0.06595300137996674, 0.010616316460072994, 0.018370389938354492, 0.04982035979628563, -0.00023404792591463774, -0.01588110812008381, -0.02648875117301941, 0.06498157232999802, -0.01571631245315075, 0.05169382691383362, -0.02971527725458145, -0.022637734189629555, 0.025395894423127174, -0.012134172022342682, -0.04090404137969017, -0.0309295617043972, -0.0069734626449644566, 0.01838773861527443, -0.017754575237631798, 0.021406102925539017, 0.0361509844660759, -0.0168612077832222, 0.042881593108177185, 0.04003669694066048, -0.07847747951745987, -0.010000500828027725, -0.05256117507815361, -0.0029337983578443527, 0.016722433269023895, 0.005910963751375675, -0.012004069983959198, -0.04413057118654251, -0.09103664755821228, -0.025326507166028023, 0.04073057323694229, 0.007858156226575375, -0.033653028309345245, -0.019740797579288483, 0.043610163033008575, 0.024320384487509727, 0.013079579919576645, -0.052110154181718826, 0.01486631203442812, 0.0006873718230053782, 0.05335913226008415, 0.03427751734852791, -0.03927343338727951, 0.06723666936159134, 0.0011557387188076973, 0.019792838022112846, -0.017936717718839645, 0.03788567706942558, 0.03262956067919731, -0.050097912549972534, -0.03342751786112785, 0.03427751734852791, -0.008539022877812386, -0.00032146016019396484, -0.04315914213657379, 0.017060698941349983, -0.015204577706754208, -0.05675913020968437, 0.03533568233251572, -0.0017737228190526366, 0.011882642284035683, 0.00427384814247489, 0.07060197740793228, -0.01320100761950016, -0.014146415516734123, -0.014692842960357666, 0.0084306038916111, -0.05127750337123871, -0.042222410440444946, -0.004109052009880543, 0.072579525411129, -0.04083465412259102, 0.04225710406899452, 0.01470151636749506, -0.03139793127775192, 0.03387853875756264, 0.0016360316658392549, 0.05901423096656799, 0.017598452046513557, -0.016375495120882988, -0.011978049762547016, 0.012732640840113163, 0.02834487147629261, -0.004570913966745138, -0.019220389425754547, -0.03746935352683067, -0.009618868120014668, 0.022620387375354767, 0.0009492019307799637, -0.04083465412259102, -0.007381115574389696, -0.06619585305452347, 0.023782631382346153, 0.02940303273499012, 0.017208147794008255, -0.03663669899106026, -0.012194886803627014, 0.01558620948344469, 0.006604840513318777, -0.04010608419775963, -0.02641936205327511, -0.0652938187122345, -0.05856321007013321, -0.09631011635065079, -0.03934282064437866, -0.018856104463338852, -0.03044384904205799, 0.03209180757403374, -0.02510099671781063, -0.03294180706143379, 0.08402848988771439, 0.06838157027959824, 0.03150201216340065, -0.0064834123477339745, -0.08347339183092117, -0.018682636320590973, 0.014024986885488033, 0.0021813753992319107, 0.03256017342209816, -0.02079896070063114, 0.07597952336072922, 0.053497910499572754, 0.016783148050308228, -0.031953029334545135, -0.02357446774840355, 0.0028579055797308683, -0.021562224254012108, 0.04138975590467453, -0.007272697053849697, -0.06407953053712845, 0.05145097151398659, 0.01263723336160183, 0.01206478476524353, 0.027668341994285583, 0.03833669796586037, -0.05436525493860245, 0.01944589987397194, -0.03367037698626518, 0.02284589596092701, 0.054226480424404144, 0.06015912815928459, 0.04503260925412178, -0.0008088002796284854, 0.002448084531351924, -0.01157907024025917, -0.0471489354968071, -0.009297950193285942, -0.027650995180010796, -0.04204893857240677, -0.015421413816511631, 0.026506097987294197, 0.006596167106181383, -0.010000500828027725, -0.10866112262010574, 0.014319884590804577, 0.02033059298992157, 0.019064268097281456, 0.027321401983499527, 0.009931112639605999, -0.05776525288820267, -0.060471370816230774, -0.03231731802225113, -0.0024871150963008404, 0.0650162622332573, -0.015083149075508118, 0.021891815587878227, 0.022655081003904343, 0.07611829787492752, 0.02574283257126808, -0.008760196156799793, 0.012472436763346195, -0.010312745347619057, -0.018006104975938797, 0.02218671329319477, 0.00948009267449379, 0.018665287643671036, -0.004065684974193573, -0.049924444407224655, 0.0130362119525671, -0.01311427354812622, -0.021839775145053864, 0.0017672177636995912, 0.05988157540559769, -0.013678048737347126, -0.028154054656624794, 0.07473054528236389, 0.011318867094814777, 0.011396927759051323, 0.053289745002985, -0.012489784508943558, -0.011049989610910416, -0.0070948912762105465, 0.001340049784630537, 0.02518773078918457, 0.06518973410129547, 0.07813053578138351, 0.04180608317255974, 0.015499475412070751, 0.014441313222050667, -0.029350992292165756, 0.0017531233606860042, -0.03472853824496269, 0.019654063507914543, -0.03190099075436592, 0.02379997819662094, -0.05190199241042137, -0.0019168349681422114, 0.011926009319722652, 0.0821550264954567, -0.010208663530647755, -0.0070471870712935925, -0.0033175989519804716, -0.06678564846515656, -0.0166096780449152, 0.008048972114920616, 0.031241808086633682, -0.035838741809129715, -0.0006895401747897267, 0.04392240568995476, -0.03590812906622887, -0.024996915832161903, -0.03913465514779091, 0.006058412604033947, -0.0019385186024010181, 0.08611012250185013, -0.0024437475949525833, 0.027269361540675163, -0.032907113432884216, 0.03646323084831238, -0.002998849144205451, 0.030877521261572838, 0.018179574981331825, -0.005147699266672134, 0.013062232173979282, -0.03906526789069176, -0.03719180077314377, 0.05169382691383362, -0.07604891061782837, -0.05172852426767349, 0.028778543695807457, -0.014874986372888088, -0.008790552616119385, 0.043783631175756454, 0.02154487743973732, 0.0036406852304935455, 0.01441529206931591, -0.051312196999788284, 0.07327339798212051, 0.014935700222849846, 0.07722850143909454, 0.01944589987397194, 0.0004561698588076979, -0.017372943460941315, -0.015282638370990753, -0.02105916291475296, -0.005312494933605194, -0.07035911828279495, 0.030062217265367508, -0.02373058907687664, -0.007381115574389696, 0.037608128041028976, -0.0309295617043972, -0.002944640116766095, -0.06026320904493332, 0.03993261605501175, -0.007918870076537132, 0.0580081082880497, -0.062483616173267365, 0.10033459961414337, -0.00021344845299609005, -0.06633462756872177, 0.023505080491304398, 0.024198956787586212, 0.04187547042965889, -0.0027191301342099905, 0.018439779058098793, 0.021562224254012108, -0.0037057362496852875, -0.055440764874219894, 0.018405085429549217, -0.012090804986655712, 0.04777342453598976, 0.05759178102016449, -0.06394075602293015, 0.033011194318532944, 0.009488766081631184, 0.04367955029010773, -0.003703567897900939, 0.023747935891151428, -0.03951628878712654, -0.006292595993727446, 0.004727036226540804, -0.017060698941349983, -0.029108135029673576, -0.07362034171819687, -0.018838757649064064, 0.039655063301324844, 0.0029836706817150116, 0.04159792140126228, -0.05578770115971565, -0.015412740409374237, -0.015169884078204632, -0.04537954926490784, 0.0006282838294282556, 0.06303871423006058, 0.02088569477200508, 0.008881623856723309, -0.02933364547789097, 0.009289276786148548, -0.04017547145485878, -0.0016035061562433839, 0.042638733983039856, 0.027737729251384735, 0.03767751529812813, -0.004566577263176441, 0.020608143880963326, 0.034121397882699966, 0.05256117507815361, 0.02576017938554287, -0.02145814336836338, 0.0014820776414126158, 0.0005415492341853678, -0.08007339388132095, 0.0247887521982193, 0.0014061848632991314, -0.022724468261003494, -0.030079564079642296, 0.01558620948344469, 0.02785915695130825, -0.009957133792340755, -0.059812188148498535, 0.02624589391052723, 0.004588260781019926, 0.0036732107400894165, 0.0010917718755081296, -0.03420813009142876, -0.042569346725940704, 0.031883642077445984, -0.024649975821375847, 0.04145914316177368, -0.048640768975019455, 0.036567311733961105, 0.04680199548602104, -0.04638567194342613, 0.06435707956552505, 0.024008139967918396, -0.0007665171287953854, 0.011370907537639141, -0.06477341055870056, 0.0057461680844426155, 0.07424482703208923, -0.00931529700756073, 0.05346321314573288, 0.007541574537754059, 0.022724468261003494, 0.04048771783709526, -0.012004069983959198, -0.10220806300640106, -0.003311093896627426, -0.07063666731119156, 0.026835689321160316, 0.033566296100616455, -0.01790202409029007, -0.08166930824518204, 0.011596417985856533, 0.029871400445699692, -0.0028709156904369593, 0.006262239068746567, -0.01515253633260727, 0.02282854914665222, 0.02461528219282627, 0.024008139967918396, 0.0004453280125744641, 0.017546411603689194, 0.05863259732723236, 0.010000500828027725, -0.050895869731903076, 0.01381682325154543, 0.038093842566013336, -0.004648975096642971, -0.036740779876708984, -0.001006121514365077, 0.0011535703670233488, -0.026436708867549896, 0.024684671312570572, 0.008582389913499355, 0.006609177216887474, -0.026297934353351593, -0.004852801561355591, -0.0004057553596794605, -0.0012684937100857496, -0.033011194318532944, 0.00854769628494978, -0.04982035979628563, 0.01547345519065857, 0.013599987141788006, -0.026905076578259468, 0.0025369874201714993, 0.06668157130479813, -0.014640802517533302, -0.03304588794708252, 0.02843160554766655, -0.048155058175325394, -0.04916117712855339, 0.03094691038131714, -0.013079579919576645, 0.06407953053712845, -0.0015265292022377253, -0.03367037698626518, -0.012984171509742737, 0.028778543695807457, 0.030599970370531082, 0.029194870963692665, 0.04454689845442772, 0.0006667723064310849, -0.0691448301076889, 0.03968975692987442, -0.03294180706143379, 0.00021792070765513927, 0.024424467235803604, 0.043367307633161545, 0.0057678516022861, 0.0010966507252305746, 0.07084482908248901, -0.011639785021543503, -0.03261221572756767, 0.005819892510771751, 0.012455089949071407, -0.01902957446873188, 0.04381832480430603, 0.038093842566013336, 0.02615915983915329, 0.025638751685619354, -0.04655914008617401, -0.04107751324772835, 0.019168348982930183, -0.02123263292014599, 0.03330609202384949, -0.056169334799051285, -0.022412223741412163, -0.01432855799794197, 0.058597903698682785, -0.07917135208845139, 0.011093356646597385, -0.06019382178783417, 0.010928560979664326, 0.000268877309281379, 0.0007453755824826658, -0.016661718487739563, 0.0374346598982811, 0.004518873058259487, 0.005559688434004784, 0.02865711599588394, 0.006947442423552275, -0.041667308658361435, 0.04978566616773605, 0.02995813451707363, 0.00902907270938158, -0.06675095856189728, -0.03889179974794388, 0.002916451310738921, -0.04423465207219124, 0.01327906921505928, -0.036879558116197586, -0.04832852631807327 ]
730,123
mmengine.logging.history_buffer
min
Return the minimum value of the latest ``window_size`` values in log histories. If ``window_size is None`` or ``window_size > len(self._log_history)``, return the global minimum value of history logs. Args: window_size (int, optional): Size of statistics window. Returns: np.ndarray: The minimum value within the window.
def min(self, window_size: Optional[int] = None) -> np.ndarray: """Return the minimum value of the latest ``window_size`` values in log histories. If ``window_size is None`` or ``window_size > len(self._log_history)``, return the global minimum value of history logs. Args: window_size (int, optional): Size of statistics window. Returns: np.ndarray: The minimum value within the window. """ if window_size is not None: assert isinstance(window_size, int), \ 'The type of window size should be int, but got ' \ f'{type(window_size)}' else: window_size = len(self._log_history) return self._log_history[-window_size:].min()
(self, window_size: Optional[int] = None) -> numpy.ndarray
[ -0.017678968608379364, -0.014656184241175652, -0.05472102761268616, -0.013567982241511345, 0.0637030154466629, 0.022264964878559113, 0.010821566917002201, 0.024458641186356544, -0.007207180839031935, 0.0439426451921463, -0.056828342378139496, -0.018775807693600655, 0.023491350933909416, -0.024579552933573723, -0.006801264360547066, 0.003422223497182131, 0.024061361327767372, -0.0038583679124712944, 0.003355290275067091, 0.04245716333389282, 0.051473695784807205, -0.02806871011853218, -0.025097744539380074, -0.015407562255859375, -0.04995366558432579, 0.03245606645941734, -0.0087617551907897, 0.007328092120587826, -0.023784993216395378, 0.0011130323400720954, 0.005354646127671003, -0.019846737384796143, 0.07510323077440262, -0.03292243555188179, -0.022420421242713928, -0.03399336710572243, 0.030314207077026367, -0.019069449976086617, -0.09631453454494476, -0.04352809116244316, -0.06933403015136719, 0.005795109085738659, 0.005846927873790264, 0.012609328143298626, 0.00962972640991211, 0.02166040800511837, 0.03304334729909897, 0.05164642632007599, 0.020952211692929268, 0.021435856819152832, 0.024959560483694077, 0.04294080659747124, -0.02019219845533371, 0.028034163638949394, -0.06836673617362976, 0.028742358088493347, 0.035927947610616684, -0.08436158299446106, -0.02932964265346527, -0.021055851131677628, -0.03154059126973152, -0.01366298459470272, 0.03200696408748627, -0.01977764442563057, 0.04425355792045593, -0.03252515569329262, -0.019915828481316566, 0.014889370650053024, -0.012168864719569683, -0.05921202152967453, -0.03290516510605812, -0.04618814215064049, 0.0021332218311727047, -0.0043506501242518425, -0.05437556654214859, 0.04307899251580238, -0.007734009064733982, 0.007591506466269493, 0.012816604226827621, -0.05050640553236008, 0.024458641186356544, 0.018533984199166298, 0.06128478795289993, 0.015174375846982002, 0.04456447437405586, -0.0616302490234375, 0.01934581808745861, 0.1055728942155838, 0.04608450457453728, -0.01645258255302906, -0.04345899820327759, 0.04366627708077431, -0.007643325719982386, 0.04197351634502411, -0.028431443497538567, 0.006058522965759039, -0.017428509891033173, 0.0582447312772274, 0.001441220287233591, 0.0015837230021134019, -0.03452882915735245, 0.0025283428840339184, 0.022541332989931107, 0.010847476311028004, -0.056413788348436356, 0.005207824986428022, 0.01609848439693451, -0.006801264360547066, 0.005566241219639778, 0.05133550986647606, -0.0527864471077919, -0.0038475722540169954, -0.020364928990602493, -0.015079374425113201, -0.003996552433818579, 0.04387355223298073, -0.027066873386502266, 0.0250286515802145, -0.013878896832466125, 0.03314698860049248, -0.02293861284852028, -0.0019129904685541987, 0.007233090698719025, 0.013369342312216759, 0.011262030340731144, 0.02375044673681259, 0.03414882346987724, -0.02924327738583088, -0.014656184241175652, -0.014509364031255245, 0.04490993544459343, -0.015675295144319534, -0.0019356614211574197, 0.00035247820778749883, 0.024372275918722153, -0.027826886624097824, 0.00839038472622633, 0.011762948706746101, 0.013550709001719952, -0.01551983691751957, 0.02345680445432663, -0.0012684897519648075, 0.005419420078396797, 0.003642454743385315, -0.016875771805644035, -0.02133221924304962, 0.053581006824970245, 0.0367916002869606, 0.03147150203585625, 0.01988128200173378, -0.0022584516555070877, -0.01609848439693451, -0.029381461441516876, -0.04066076502203941, 0.001364571158774197, -0.027844158932566643, -0.008938804268836975, -0.020157651975750923, 0.004078599624335766, -0.016279852017760277, 0.032956983894109726, 0.020986758172512054, 0.02744687907397747, -0.09866367280483246, -0.060317497700452805, 0.0014001968083903193, -0.002845735289156437, 0.012609328143298626, -0.07544869184494019, 0.05340827628970146, 0.068124920129776, 0.04142078012228012, 0.05178460851311684, 0.017929427325725555, -0.04860636964440346, 0.047051794826984406, -0.009206537157297134, 0.02271406352519989, -0.024579552933573723, 0.08380884677171707, -0.01551120076328516, -0.00288028153590858, -0.03200696408748627, -0.01673758774995804, 0.0140429912135005, 0.014794369228184223, 0.0078074196353554726, -0.03135059028863907, 0.012963425368070602, 0.0551355816423893, -0.018775807693600655, -0.028949635103344917, 0.05081731826066971, -0.08615798503160477, -0.04718997702002525, 0.03589340299367905, -0.05803745612502098, -0.004573040641844273, -0.00046610250137746334, -0.006049886345863342, 0.012807968072593212, 0.047569986432790756, -0.009275629185140133, -0.05009185150265694, -0.023525897413492203, 0.005138732958585024, 0.006637170445173979, -0.006801264360547066, -0.03155786544084549, 0.038657091557979584, -0.019812190905213356, -0.043908096849918365, -0.06529213488101959, -0.01673758774995804, -0.040211666375398636, -0.0640830248594284, -0.0320415124297142, -0.00738422991707921, 0.02839689701795578, -0.0011832041200250387, 0.04283716902136803, -0.06646670401096344, -0.008809256367385387, 0.01403435505926609, -0.003379040863364935, 0.0015491768717765808, 0.03796616941690445, -0.0462917797267437, 0.011365667916834354, -0.03893345966935158, 0.04294080659747124, -0.03017602115869522, 0.03796616941690445, -0.04985002800822258, 0.022679517045617104, 0.029208730906248093, -0.019017629325389862, -0.0014120719861239195, 0.03027966059744358, 0.03071148693561554, -0.004041894339025021, 0.017497600987553596, 0.08636526018381119, 0.09956187009811401, -0.012134319171309471, 0.000053505977120948955, -0.022990431636571884, 0.039278920739889145, -0.03178241476416588, 0.011875223368406296, -0.007539687212556601, -0.013127519749104977, -0.016962137073278427, -0.005846927873790264, 0.057484716176986694, 0.03817344456911087, 0.016582129523158073, 0.018361253663897514, -0.055688317865133286, -0.0664321556687355, 0.010933841578662395, -0.0037396156694740057, 0.022213144227862358, 0.0007778271101415157, -0.05423738434910774, 0.016547583043575287, -0.002968805842101574, 0.0005948407342657447, -0.011452033184468746, 0.068124920129776, -0.003789275884628296, 0.07427412271499634, -0.015096647664904594, -0.05302827060222626, -0.00011888717563124374, -0.07683053612709045, 0.010337921790778637, -0.04145532473921776, 0.02872508578002453, 0.0003532879054546356, -0.0033811999019235373, -0.04114440828561783, 0.009681545197963715, 0.027308695018291473, -0.01946672983467579, -0.0032106286380439997, -0.018240343779325485, -0.1284424215555191, 0.03461519628763199, 0.007077632937580347, 0.03038329817354679, 0.04522085189819336, -0.033803362399339676, -0.007569915149360895, -0.03682614862918854, -0.032231513410806656, 0.04877910017967224, -0.007798783015459776, 0.001894637942314148, 0.07738327234983444, 0.019224906340241432, -0.028085982427001, -0.019570367410779, 0.0016787247732281685, -0.020434020087122917, -0.005419420078396797, 0.020883120596408844, -0.040971677750349045, 0.016253942623734474, -0.026065034791827202, -0.03983165696263313, 0.040004387497901917, -0.02451045997440815, -0.06038659065961838, 0.0005354646127671003, -0.014302087016403675, 0.01603802852332592, 0.0029407371766865253, 0.00665012514218688, 0.04342445358633995, 0.007505141198635101, 0.052959177643060684, -0.009759274311363697, -0.07731418311595917, -0.060835689306259155, -0.05226825550198555, -0.01235886849462986, -0.021418584510684013, -0.004145532380789518, -0.033509720116853714, -0.035513393580913544, -0.05973021313548088, 0.01398253533989191, 0.037931621074676514, 0.03606613352894783, 0.02596139721572399, 0.009793820790946484, 0.05112823471426964, 0.0067839911207556725, -0.024130454286932945, -0.015640748664736748, -0.011927042156457901, -0.003122104099020362, 0.05914292857050896, 0.023214980959892273, -0.031160585582256317, 0.08705618232488632, 0.0011249075178056955, 0.014276177622377872, -0.03093603625893593, 0.017592603340744972, 0.04784635454416275, -0.06961040198802948, -0.03356153890490532, 0.023819537833333015, -0.01777397096157074, -0.030625121667981148, -0.04594631865620613, 0.06622488051652908, 0.021643133834004402, -0.062424808740615845, 0.04162805527448654, -0.05838291719555855, -0.004806226585060358, 0.00807947013527155, 0.05838291719555855, 0.004797589965164661, -0.013136155903339386, -0.016124393790960312, 0.0018525348277762532, -0.03983165696263313, -0.010398377664387226, -0.003985756542533636, 0.05734653398394585, -0.06277026981115341, 0.03703342378139496, 0.002057652221992612, -0.001108714030124247, -0.0282759852707386, 0.0035280208103358746, 0.06225207820534706, 0.002882440574467182, -0.04522085189819336, -0.0034438148140907288, -0.03565157949924469, 0.03383790701627731, -0.022057687863707542, -0.03383790701627731, 0.023387711495161057, -0.029606010764837265, 0.029312368482351303, -0.030970582738518715, -0.04718997702002525, 0.047051794826984406, -0.025425933301448822, 0.027256876230239868, 0.06004112958908081, 0.03879527375102043, -0.0026730047538876534, -0.016219396144151688, 0.03599704056978226, 0.01564938575029373, -0.034027911722660065, -0.018223069608211517, -0.035789765417575836, -0.07005950063467026, -0.04072985798120499, 0.006062841042876244, -0.019190359860658646, -0.0014476976357400417, 0.017264414578676224, -0.023784993216395378, -0.029001453891396523, 0.0161848496645689, 0.02395772375166416, -0.018326709046959877, -0.007449003867805004, -0.0035129068419337273, -0.006524895317852497, -0.03658432513475418, -0.00006021952867740765, 0.020140377804636955, -0.02817234769463539, 0.0291223656386137, 0.014958462677896023, 0.03388972952961922, -0.014327996410429478, -0.020157651975750923, 0.0019356614211574197, 0.04079894721508026, 0.016910318285226822, -0.010242919437587261, -0.041697148233652115, 0.02817234769463539, -0.0024009542539715767, 0.009344721212983131, 0.016443945467472076, 0.03820798918604851, -0.06525759398937225, 0.06142297387123108, -0.0047544073313474655, -0.013403888791799545, 0.06619033217430115, 0.06895402073860168, 0.019432183355093002, 0.0009025169420056045, 0.009698818437755108, -0.005514421965926886, -0.05983385071158409, 0.008830848149955273, 0.009707455523312092, -0.038242537528276443, -0.008373112417757511, 0.027947798371315002, 0.011590218171477318, -0.047051794826984406, -0.12512598931789398, 0.02618594653904438, 0.003543134778738022, -0.012902969494462013, 0.04743180051445961, 0.03741342946887016, -0.037275247275829315, -0.08083788305521011, -0.04660269245505333, 0.03610067814588547, 0.02535684034228325, -0.02535684034228325, -0.004307467490434647, 0.007056041620671749, 0.11006388813257217, 0.027844158932566643, -0.015468018129467964, -0.026203220710158348, -0.009888822212815285, -0.026790503412485123, 0.0028284622821956873, 0.011927042156457901, 0.04698270186781883, -0.01530392374843359, -0.04867545887827873, 0.00620534410700202, 0.002668686443939805, -0.015614839270710945, -0.007302182726562023, 0.028984181582927704, -0.07655416429042816, -0.026997780427336693, 0.020105833187699318, 0.031488772481679916, 0.0005063163116574287, 0.07206317037343979, -0.0029299415182322264, 0.010268829762935638, 0.0018298639915883541, 0.026583226397633553, 0.03606613352894783, 0.036653418093919754, 0.10170373320579529, 0.05036821961402893, -0.0025283428840339184, 0.04397718980908394, -0.055688317865133286, 0.01346434373408556, -0.024890467524528503, -0.012997971847653389, -0.036446139216423035, 0.031799688935279846, -0.06004112958908081, 0.0011594536481425166, 0.023422257974743843, 0.05230280011892319, -0.032956983894109726, 0.005441011395305395, -0.009681545197963715, -0.04183533042669296, 0.004199510905891657, 0.02375044673681259, 0.042422614991664886, -0.039382558315992355, -0.0003003891615662724, 0.05088641121983528, -0.002057652221992612, -0.06850492209196091, -0.0483645461499691, -0.04584268108010292, 0.012376141734421253, 0.037931621074676514, 0.006049886345863342, 0.05596468970179558, -0.01198749803006649, 0.018983084708452225, -0.005173278972506523, 0.04594631865620613, 0.05257917195558548, -0.0014034354826435447, -0.017661696299910545, 0.01167658343911171, -0.04307899251580238, 0.0175235103815794, -0.04794999212026596, -0.03490883857011795, 0.06529213488101959, 0.0034438148140907288, -0.01013928186148405, 0.029381461441516876, 0.013939352706074715, 0.11890769004821777, -0.033596087247133255, -0.0630466416478157, 0.045808132737874985, 0.008636525832116604, 0.07037041336297989, -0.002668686443939805, -0.029001453891396523, -0.0462917797267437, -0.006961039733141661, 0.002340498613193631, 0.04608450457453728, -0.052130069583654404, 0.04943547397851944, 0.003424382535740733, -0.006572396494448185, 0.047155432403087616, -0.07772873342037201, -0.011210210621356964, -0.0445990189909935, 0.05202643200755119, 0.01862034946680069, 0.05140460282564163, -0.02976146899163723, 0.10280920565128326, -0.057588353753089905, -0.03945165127515793, 0.0267214123159647, -0.020157651975750923, 0.03494338318705559, 0.01346434373408556, -0.034027911722660065, 0.04007348045706749, 0.03710251674056053, -0.04891728237271309, 0.0548592135310173, -0.03426973521709442, 0.04829545319080353, 0.07600142806768417, -0.0582447312772274, 0.023163162171840668, 0.0020403792150318623, 0.01799852028489113, 0.023733172565698624, 0.03205878287553787, -0.02713596448302269, 0.006581032648682594, 0.004251329693943262, -0.008416295051574707, 0.01257478166371584, -0.045704495161771774, -0.001108714030124247, 0.05437556654214859, -0.0418698787689209, 0.00226061069406569, -0.06826309859752655, -0.027066873386502266, -0.018672170117497444, -0.08878348767757416, 0.02881145104765892, 0.009284265339374542, 0.02608230896294117, -0.00924971979111433, 0.0005114442901685834, -0.0072935461066663265, -0.05230280011892319, -0.0004213005304336548, 0.0029105092398822308, 0.02829325944185257, 0.03027966059744358, -0.03962438181042671, 0.04490993544459343, -0.01015655416995287, 0.06511940807104111, 0.013274340890347958, 0.016089847311377525, -0.028155075386166573, 0.03741342946887016, -0.029916925355792046, 0.04929729178547859, 0.016651222482323647, -0.005561922676861286, -0.014431634917855263, 0.037171609699726105, 0.014880734495818615, 0.025702301412820816, -0.049711842089891434, -0.018551258370280266, 0.016996683552861214, 0.008437885902822018, -0.024234091863036156, -0.021936776116490364, -0.02860417403280735, 0.025995943695306778, -0.0008755277958698571, 0.04304444417357445, -0.0445990189909935, 0.02323225513100624, 0.02273133583366871, -0.023525897413492203, 0.068124920129776, 0.03851890563964844, -0.01257478166371584, -0.019604913890361786, -0.037793438881635666, -0.011477943509817123, 0.05385737493634224, 0.018343981355428696, 0.019915828481316566, -0.027723249047994614, 0.008999260142445564, 0.04314808547496796, -0.015563019551336765, -0.03606613352894783, -0.004750089254230261, -0.020952211692929268, 0.0020760048646479845, 0.01678076945245266, -0.02965782955288887, -0.04345899820327759, -0.0021537337452173233, -0.0032840389758348465, -0.019743097946047783, -0.0250286515802145, -0.05140460282564163, 0.025477752089500427, -0.0027205056976526976, 0.0357552170753479, 0.026358677074313164, 0.010985661298036575, 0.0793178528547287, -0.00396848376840353, -0.06460121273994446, 0.024320457130670547, 0.04964275285601616, 0.006550805177539587, -0.02238587476313114, -0.006891947705298662, -0.03141968324780464, -0.047708168625831604, 0.011875223368406296, 0.006002385634928942, 0.06923039257526398, 0.010052916593849659, 0.007155361585319042, -0.0014822437660768628, 0.005449648015201092, -0.028414171189069748, 0.0004906626418232918, -0.07289227843284607, 0.054513752460479736, 0.007954240776598454, -0.026980508118867874, 0.027619609609246254, 0.0769687220454216, -0.01925945281982422, -0.01235886849462986, 0.015925753861665726, -0.04079894721508026, -0.019622186198830605, 0.025736847892403603, -0.015632111579179764, 0.033699724823236465, 0.024976832792162895, -0.04332081601023674, 0.01758396625518799, -0.00852425117045641, -0.008472432382404804, 0.050057303160429, -0.008455159142613411, 0.012488416396081448, -0.060628414154052734, 0.06342664361000061, -0.05067913606762886, -0.00628739083185792, -0.0054366933181881905, 0.04542812705039978, 0.028241440653800964, 0.04197351634502411, 0.08705618232488632, -0.060213860124349594, -0.0674685388803482, -0.0074144573882222176, -0.010994297452270985, -0.009206537157297134, 0.00008744482329348102, 0.043804459273815155, 0.08056151121854782, 0.01851671189069748, -0.028034163638949394, -0.012315685860812664, 0.044840842485427856, -0.0007330251391977072, -0.014276177622377872, -0.03889891132712364, -0.017013955861330032, -0.01057110819965601, 0.06283936649560928, -0.0687812939286232, 0.002080323174595833, -0.03375154361128807, -0.025512298569083214, -0.016806678846478462, -0.012384777888655663, -0.03532339259982109, 0.03599704056978226, -0.021366765722632408, -0.044979028403759, 0.012099772691726685, -0.027498697862029076, 0.013878896832466125, 0.04259534552693367, 0.040349848568439484, -0.010329284705221653, -0.04466811195015907, -0.05827927589416504, 0.04404628276824951, -0.04943547397851944, 0.029053272679448128, -0.033803362399339676, -0.01684122532606125 ]
730,124
mmengine.logging.history_buffer
statistics
Access statistics method by name. Args: method_name (str): Name of method. Returns: Any: Depends on corresponding method.
def statistics(self, method_name: str, *arg, **kwargs) -> Any: """Access statistics method by name. Args: method_name (str): Name of method. Returns: Any: Depends on corresponding method. """ if method_name not in self._statistics_methods: raise KeyError(f'{method_name} has not been registered in ' 'HistoryBuffer._statistics_methods') method = self._statistics_methods[method_name] # Provide self arguments for registered functions. return method(self, *arg, **kwargs)
(self, method_name: str, *arg, **kwargs) -> Any
[ 0.007730850018560886, -0.09167462587356567, 0.005725246388465166, -0.0168223287910223, 0.03717876225709915, -0.016769317910075188, -0.010469779372215271, 0.01325288601219654, 0.01557655818760395, 0.008587869815528393, -0.025940313935279846, 0.018766086548566818, 0.047993116080760956, -0.034492842853069305, -0.05311756581068039, 0.030658341944217682, 0.05456654727458954, 0.012572570703923702, -0.05658098682761192, -0.045625265687704086, 0.019084155559539795, 0.0032999685499817133, 0.009259349666535854, -0.02300700917840004, 0.0007581755053251982, 0.0880698412656784, 0.06025645136833191, -0.02770736627280712, 0.04085422679781914, 0.010982224717736244, -0.045660607516765594, -0.023042351007461548, -0.02912100777029991, 0.005424847826361656, -0.04322207719087601, -0.010301909409463406, -0.008667387068271637, -0.006511584389954805, -0.07711412012577057, 0.0003832292859442532, 0.022900985553860664, -0.0010690661147236824, 0.043610829859972, 0.0014136411482468247, 0.01210430171340704, -0.021522685885429382, 0.0031563956290483475, 0.022282518446445465, 0.022317858412861824, -0.037355467677116394, -0.017122728750109673, 0.008433252573013306, 0.004254176281392574, 0.024968435987830162, 0.05746451020240784, -0.0026152359787374735, 0.010452109389007092, 0.05951429158449173, -0.00032745671342127025, 0.060079749673604965, 0.018377333879470825, 0.00869831070303917, 0.0013805088819935918, -0.057252466678619385, 0.019331542775034904, -0.04407026246190071, -0.0019835152197629213, 0.021858425810933113, 0.008300724439322948, -0.013553284108638763, 0.0315595380961895, 0.05378904566168785, 0.03159487992525101, 0.039935361593961716, -0.04085422679781914, -0.0008774514426477253, 0.0012601285707205534, -0.0005323242512531579, 0.03217800706624985, 0.0021027910988777876, 0.021752402186393738, 0.01602715626358986, 0.025798950344324112, -0.05877212807536125, -0.03472255915403366, -0.06417930871248245, -0.0172287505120039, -0.07810366898775101, -0.007302340120077133, -0.0035650262143462896, -0.07471093535423279, -0.013032004237174988, 0.006608772091567516, 0.013836012221872807, 0.0013783001340925694, -0.09549146145582199, -0.01711389236152172, 0.006895917933434248, 0.0016411490505561233, 0.021522685885429382, -0.06085725128650665, 0.04124297946691513, 0.05767655745148659, 0.024721048772335052, -0.004070844501256943, 0.005274648312479258, 0.03147118538618088, -0.04315139353275299, -0.03145351633429527, 0.06545158475637436, -0.019967680796980858, 0.04785175248980522, 0.028749926015734673, -0.04046547785401344, 0.0274069681763649, 0.03859240189194679, -0.05262279137969017, -0.047356978058815, -0.0901196226477623, 0.04951278120279312, -0.025268835946917534, 0.021487345919013023, 0.0394405871629715, -0.004589916206896305, -0.02017972618341446, 0.023201385512948036, -0.021239958703517914, -0.04290400817990303, 0.011158929206430912, 0.02205280214548111, 0.01761750318109989, -0.026594122871756554, 0.04573129117488861, 0.06364919245243073, 0.04834652692079544, 0.018536368384957314, 0.0867975652217865, 0.03251374512910843, -0.01711389236152172, 0.06743068248033524, 0.055803485214710236, 0.012528394348919392, 0.028308164328336716, -0.0007162080146372318, 0.01565607637166977, -0.02325439639389515, 0.017087386921048164, 0.008336065337061882, 0.006361384876072407, -0.041631732136011124, -0.00895011518150568, -0.02998686209321022, 0.020533137023448944, -0.04149036854505539, 0.026223042979836464, -0.026099348440766335, 0.0069003356620669365, 0.0188897792249918, -0.06545158475637436, -0.03132982179522514, -0.01096455380320549, 0.0037019727751612663, -0.06071588769555092, -0.11153628677129745, -0.017166905105113983, -0.03014589659869671, -0.006255362182855606, -0.00010174350609304383, -0.03601250797510147, -0.007894301787018776, 0.014790220186114311, -0.008689475245773792, 0.03223101794719696, 0.038274332880973816, 0.013288226909935474, 0.017679348587989807, -0.013906694948673248, 0.06986921280622482, 0.06842023134231567, -0.01150350458920002, 0.03933456540107727, -0.07230774313211441, -0.0859493836760521, -0.043504804372787476, -0.043540146201848984, 0.014427974820137024, 0.057923946529626846, -0.027654355391860008, -0.022936327382922173, 0.05767655745148659, 0.006215603556483984, 0.003973656799644232, 0.04156104847788811, -0.057005077600479126, 0.010478614829480648, -0.030676012858748436, -0.06668852269649506, 0.011229611933231354, 0.05195131152868271, 0.02873225510120392, 0.026558782905340195, 0.03721410408616066, 0.012510724365711212, 0.030057543888688087, 0.0015340214595198631, 0.03072902373969555, 0.042762644588947296, 0.024968435987830162, -0.04979550838470459, -0.022653598338365555, -0.004311605356633663, -0.04357548803091049, 0.01947290636599064, 0.006825236137956381, -0.022194165736436844, -0.00009787808085093275, 0.05336495116353035, -0.04714493080973625, 0.026099348440766335, -0.009330031462013721, 0.09146258234977722, -0.03500529006123543, -0.04392889887094498, 0.021452004089951515, 0.00575175229460001, -0.012784617021679878, 0.05661632865667343, -0.01781187765300274, -0.017741195857524872, -0.05834803730249405, 0.030340272933244705, 0.028396517038345337, 0.016424743458628654, 0.0024628278333693743, -0.08630278706550598, -0.026558782905340195, 0.0016367313219234347, 0.027937082573771477, 0.023625478148460388, -0.0581359900534153, -0.0024915423709899187, 0.07386274635791779, 0.029474416747689247, 0.10750740766525269, -0.055167343467473984, -0.10913309454917908, -0.027672024443745613, 0.046614814549684525, -0.030428625643253326, -0.04336344078183174, 0.013199874199926853, -0.012227995321154594, -0.01542635913938284, -0.03302619233727455, -0.03551773354411125, -0.06297770887613297, -0.06251827627420425, 0.032584428787231445, 0.025675257667899132, -0.020833536982536316, -0.0010348295327275991, -0.019631940871477127, -0.009595089592039585, 0.0015329171437770128, 0.05103244632482529, 0.03891047090291977, 0.025021448731422424, 0.02770736627280712, -0.0070151942782104015, 0.02516281232237816, -0.026806170120835304, -0.03792092204093933, -0.024897754192352295, -0.04407026246190071, -0.026311395689845085, -0.01649542525410652, 0.0236784890294075, -0.028838278725743294, 0.005663399584591389, -0.03679000958800316, 0.04053615778684616, -0.05753519386053085, -0.020003022626042366, 0.023325078189373016, 0.005924039985984564, 0.049654144793748856, 0.03512898087501526, -0.030128225684165955, 0.007885467261075974, 0.013659307733178139, 0.07994140684604645, -0.0029443493112921715, -0.07301456481218338, 0.010390262119472027, -0.01906648464500904, 0.028096117079257965, -0.016760483384132385, -0.01150350458920002, 0.06495680660009384, 0.017723524942994118, -0.014021553099155426, -0.008941279724240303, -0.011892256326973438, -0.005623640958219767, -0.06138736754655838, -0.018872108310461044, 0.026099348440766335, -0.016177356243133545, -0.03260209783911705, -0.018501028418540955, 0.003997953608632088, 0.0024628278333693743, -0.014790220186114311, -0.021381322294473648, 0.015267323702573776, -0.007505550980567932, -0.01757332682609558, 0.05004289746284485, -0.0019073111470788717, 0.09464327245950699, -0.04597867652773857, 0.014003882184624672, 0.002593148034065962, -0.02657645381987095, 0.015461700037121773, 0.019525917246937752, -0.010991060175001621, -0.025304175913333893, 0.03442216292023659, 0.003600367344915867, -0.04127832129597664, -0.02973947487771511, 0.05863076448440552, 0.028131458908319473, -0.0535769984126091, 0.0386277437210083, -0.044211626052856445, 0.0506790354847908, -0.020656831562519073, -0.0021546983625739813, 0.0064541553147137165, -0.022865645587444305, -0.00023675727425143123, 0.01835966482758522, 0.03383903577923775, -0.0031806924380362034, 0.055838823318481445, -0.012457712553441525, 0.06640579551458359, -0.023554794490337372, 0.014790220186114311, -0.060786567628383636, -0.027884071692824364, 0.03435147926211357, 0.055591437965631485, 0.008397911675274372, 0.01881909742951393, -0.008358153514564037, -0.024402979761362076, -0.03475790098309517, -0.022211836650967598, 0.006206768099218607, -0.02101024053990841, -0.02026807889342308, -0.014321951195597649, 0.011936432681977749, 0.0009978318121284246, 0.019667282700538635, 0.0066662016324698925, -0.010452109389007092, -0.026523441076278687, -0.013085016049444675, -0.022600587457418442, 0.055874165147542953, -0.0660170391201973, 0.015523546375334263, 0.10029783844947815, 0.022600587457418442, -0.029386064037680626, -0.0064850784838199615, 0.029439076781272888, -0.004740115255117416, 0.008141689002513885, 0.009038467891514301, 0.02346644178032875, 0.014180587604641914, -0.0838996022939682, -0.0240849107503891, -0.013138026930391788, -0.04597867652773857, -0.03799160569906235, -0.039970703423023224, -0.09393645077943802, 0.015187806449830532, -0.08071890473365784, -0.015691416338086128, 0.043999578803777695, 0.00762040913105011, -0.04477708414196968, 0.020656831562519073, 0.02042711339890957, -0.03302619233727455, -0.02869691513478756, 0.020621489733457565, -0.03194829076528549, -0.018660062924027443, 0.010354921221733093, 0.010814354754984379, 0.012793452478945255, -0.005261395592242479, 0.03023424930870533, 0.0014721746556460857, -0.06043315678834915, 0.016345225274562836, 0.007253746036440134, 0.031418174505233765, 0.03438682109117508, -0.01798858307301998, -0.001955904997885227, 0.043010029941797256, 0.02521582320332527, 0.007554144598543644, -0.022229507565498352, 0.03254908695816994, 0.02205280214548111, 0.023484112694859505, -0.01262558251619339, 0.002467245562002063, -0.03880444914102554, 0.04767504706978798, -0.00005998311098664999, -0.006856159307062626, -0.06389658153057098, -0.019455235451459885, 0.01980864629149437, -0.023855194449424744, -0.02687685191631317, -0.04106627404689789, -0.005906369537115097, 0.019631940871477127, -0.002436322160065174, 0.02998686209321022, 0.02488008327782154, -0.015585393644869328, -0.059655655175447464, -0.07414547353982925, -0.003909601364284754, -0.06446203589439392, 0.04505981132388115, -0.0992376059293747, 0.011583021841943264, 0.048487890511751175, 0.060609862208366394, -0.0010315162362530828, 0.0017250839155167341, -0.06446203589439392, -0.03560608625411987, -0.04763970524072647, 0.05901951715350151, 0.023696159943938255, -0.013650472275912762, 0.029704134911298752, -0.10574035346508026, -0.049159370362758636, -0.04410560429096222, 0.019243190065026283, 0.021505014970898628, 0.012652087956666946, -0.0046915216371417046, 0.013544448651373386, 0.05385972559452057, 0.02940373495221138, -0.0415257066488266, -0.00006647150439675897, -0.046155381947755814, 0.010664155706763268, -0.037532173097133636, 0.027689695358276367, -0.017546821385622025, 0.0128729697316885, 0.03265510872006416, -0.00015889658243395388, 0.02844952791929245, -0.00841116439551115, 0.04000604525208473, -0.00009332240006187931, -0.00826538261026144, 0.021575696766376495, 0.01931387186050415, -0.05029028281569481, -0.015762098133563995, 0.02869691513478756, 0.04771038889884949, 0.0061449212953448296, -0.037108078598976135, 0.06884432584047318, 0.03618921339511871, -0.00692684156820178, -0.020992571488022804, 0.029810156673192978, -0.018165288493037224, -0.04308071359992027, 0.03572978079319, -0.003666631644591689, -0.006215603556483984, 0.03647194057703018, 0.05074971541762352, 0.02205280214548111, 0.0016985781257972121, -0.0003804682637564838, 0.001394866150803864, 0.024950765073299408, -0.03873376548290253, 0.018076935783028603, 0.017290597781538963, -0.025975655764341354, -0.03742614760994911, -0.0240849107503891, -0.08538392186164856, -0.010549296624958515, 0.010063357651233673, 0.028378846123814583, 0.00942721962928772, 0.006414396688342094, 0.002546762814745307, -0.04880595952272415, -0.013738824985921383, -0.021328311413526535, 0.01864239200949669, 0.03650728240609169, 0.04329276084899902, 0.022194165736436844, -0.052304722368717194, 0.00947139598429203, 0.07669003307819366, 0.04265662282705307, -0.05074971541762352, -0.0046826861798763275, -0.012121972627937794, 0.05099710449576378, 0.007090293802320957, -0.03873376548290253, -0.013747659511864185, -0.03359164670109749, -0.05474325269460678, -0.06485078483819962, 0.0014202676247805357, -0.029174018651247025, 0.03958195075392723, -0.05007823556661606, 0.02309536188840866, -0.008141689002513885, -0.02558690495789051, -0.043540146201848984, 0.02592264488339424, 0.01776770129799843, -0.03426312655210495, -0.01208663173019886, 0.0259579848498106, -0.013597460463643074, -0.030676012858748436, -0.018377333879470825, 0.009754124097526073, 0.06241225451231003, -0.049654144793748856, 0.04852323234081268, 0.03023424930870533, 0.05311756581068039, -0.034740231931209564, -0.05753519386053085, 0.028431857004761696, 0.06096327304840088, -0.01067299023270607, -0.033573977649211884, 0.03159487992525101, 0.022741951048374176, 0.057747241109609604, -0.006100744940340519, -0.011724386364221573, 0.028590891510248184, -0.009312360547482967, -0.025268835946917534, -0.027795718982815742, -0.012015949934720993, -0.051350515335798264, 0.042303211987018585, -0.036613304167985916, 0.005800346378237009, 0.055591437965631485, 0.04831118509173393, -0.026134690269827843, -0.060327135026454926, 0.021328311413526535, -0.026682475581765175, 0.024933096021413803, 0.03788558393716812, -0.052269380539655685, -0.06753670424222946, -0.03982933983206749, 0.033626988530159, -0.011026401072740555, 0.0017924527637660503, 0.009577418677508831, -0.01645124889910221, 0.024137921631336212, 0.036401260644197464, -0.07485229521989822, 0.02786640077829361, -0.01056696753948927, 0.04933607578277588, -0.01468419749289751, 0.0003520297759678215, -0.006873829755932093, 0.07937595248222351, 0.06972784548997879, 0.0274069681763649, 0.06283634901046753, 0.0044308812357485294, 0.05113846808671951, 0.042055822908878326, -0.0042276703752577305, 0.05721712484955788, -0.01237819530069828, 0.04173775389790535, -0.00016428055823780596, -0.02300700917840004, 0.022706611081957817, -0.012077796272933483, -0.0054469360038638115, -0.022105813026428223, -0.06718329340219498, -0.033167555928230286, 0.028043106198310852, -0.04513049125671387, -0.00535858329385519, -0.047038909047842026, -0.00917983241379261, 0.025657586753368378, -0.05071437358856201, 0.03387437388300896, 0.049159370362758636, 0.012139643542468548, 0.031082434579730034, 0.010602308437228203, -0.011203105561435223, 0.08227391541004181, -0.015276159159839153, 0.01233401894569397, 0.06757204234600067, -0.009913158603012562, -0.0315595380961895, -0.03023424930870533, -0.028025435283780098, 0.05541473254561424, 0.044423673301935196, -0.0043027703650295734, -0.04771038889884949, -0.008340482600033283, 0.0031586044933646917, -0.056333597749471664, -0.038769107311964035, -0.019985351711511612, -0.012572570703923702, -0.0008603331516496837, -0.017290597781538963, -0.016044827178120613, -0.0668652281165123, 0.018041593953967094, 0.021080924198031425, 0.01977330446243286, 0.03587114438414574, 0.061316683888435364, 0.04862925410270691, -0.014728373847901821, -0.0023015844635665417, 0.0677134096622467, -0.010001511313021183, 0.006078656762838364, -0.02687685191631317, 0.005080272909253836, -0.03143584355711937, 0.016999034211039543, -0.020921887829899788, 0.030888058245182037, -0.00884850975126028, 0.07054068893194199, -0.0049256556667387486, -0.01096455380320549, -0.030552318319678307, 0.0029531847685575485, -0.010911541990935802, -0.03360931947827339, 0.038062285631895065, -0.01296132244169712, 0.018306652083992958, -0.0006538089946843684, -0.027053557336330414, -0.03714342042803764, 0.05707576125860214, -0.03841569647192955, -0.0242969561368227, 0.0009392982465215027, 0.03675466775894165, 0.004483893048018217, 0.03299085050821304, -0.02977481670677662, -0.029085665941238403, 0.013332403264939785, 0.057747241109609604, 0.01664562337100506, -0.011432822793722153, -0.03081737644970417, 0.0623062327504158, 0.038026947528123856, 0.03689603507518768, 0.027212591841816902, -0.005376253742724657, 0.01885443925857544, -0.011326799169182777, 0.05053767189383507, -0.009603924117982388, -0.04357548803091049, 0.06018577143549919, -0.0048196325078606606, -0.0036047848407179117, 0.017741195857524872, 0.08884734660387039, -0.02873225510120392, -0.029704134911298752, 0.004145944491028786, -0.051597900688648224, -0.046826861798763275, -0.014030388556420803, 0.057287804782390594, 0.033414941281080246, -0.015497040934860706, -0.023325078189373016, -0.025109799578785896, 0.07209569960832596, 0.0327964723110199, -0.003330891951918602, 0.019914669916033745, -0.014913913793861866, -0.01968495175242424, 0.08835256844758987, -0.02915634773671627, -0.007333263289183378, 0.014498656615614891, 0.02977481670677662, -0.05806531012058258, 0.04053615778684616, -0.021734733134508133, -0.0046517630107700825, 0.06831420958042145, -0.000011760210327338427, -0.01517897192388773, 0.0059328749775886536, -0.0028250734321773052, 0.054884616285562515, -0.02275962196290493, -0.021027911454439163, 0.01685767062008381, -0.01268742885440588, -0.023537125438451767, -0.02678849920630455, -0.0012490844819694757, 0.0045457398518919945, 0.03343261405825615 ]
730,125
mmengine.logging.history_buffer
update
update the log history. If the length of the buffer exceeds ``self._max_length``, the oldest element will be removed from the buffer. Args: log_val (int or float): The value of log. count (int): The accumulation times of log, defaults to 1. ``count`` will be used in smooth statistics.
def update(self, log_val: Union[int, float], count: int = 1) -> None: """update the log history. If the length of the buffer exceeds ``self._max_length``, the oldest element will be removed from the buffer. Args: log_val (int or float): The value of log. count (int): The accumulation times of log, defaults to 1. ``count`` will be used in smooth statistics. """ if (not isinstance(log_val, (int, float)) or not isinstance(count, (int, float))): raise TypeError(f'log_val must be int or float but got ' f'{type(log_val)}, count must be int but got ' f'{type(count)}') self._log_history = np.append(self._log_history, log_val) self._count_history = np.append(self._count_history, count) if len(self._log_history) > self.max_length: self._log_history = self._log_history[-self.max_length:] self._count_history = self._count_history[-self.max_length:]
(self, log_val: Union[int, float], count: int = 1) -> NoneType
[ -0.006907567381858826, 0.029117649421095848, -0.07188419997692108, 0.036187078803777695, 0.011627811938524246, -0.0030928754713386297, -0.069259412586689, -0.00423465808853507, -0.015941213816404343, 0.026160389184951782, -0.0438864566385746, -0.03723699599504471, 0.03216240555047989, 0.009764212183654308, -0.005962643772363663, 0.01966841332614422, 0.06743955612182617, 0.002591978292912245, -0.050115954130887985, 0.047876134514808655, -0.0001805908977985382, -0.040526729077100754, -0.04455140605568886, 0.06393983960151672, -0.009737963788211346, -0.025705425068736076, 0.02624788135290146, 0.022468186914920807, -0.0050002215430140495, 0.026492862030863762, 0.029782596975564957, -0.06491976231336594, 0.019178451970219612, -0.02621288411319256, -0.027332793921232224, -0.043606482446193695, -0.02719280496239662, -0.02161075547337532, -0.05074590444564819, -0.010149180889129639, 0.044201433658599854, 0.010332915931940079, -0.0019565608818084, 0.01339516881853342, 0.026177886873483658, 0.03433223068714142, 0.03347479924559593, 0.057535357773303986, 0.006929440889507532, -0.022433189675211906, -0.058270297944545746, 0.022538181394338608, -0.024638012051582336, -0.003226302098482847, -0.013675146736204624, 0.05204080045223236, 0.0698193684220314, -0.028277717530727386, 0.014191354624927044, -0.019983386620879173, -0.04346649348735809, -0.034612204879522324, 0.025845414027571678, -0.010000443086028099, 0.0019346876069903374, -0.04196161404252052, -0.01549499947577715, 0.014121360145509243, 0.0018373517086729407, -0.04588129743933678, -0.02084081806242466, -0.0016908010002225637, 0.033247318118810654, -0.008801789954304695, -0.09015272557735443, 0.043676476925611496, -0.023605594411492348, 0.09358244389295578, 0.019825899973511696, -0.04238158091902733, 0.06687960028648376, 0.03543464094400406, 0.07951357960700989, 0.016999877989292145, 0.0328623466193676, 0.0050002215430140495, -0.025232963263988495, 0.023325618356466293, -0.004991472233086824, 0.027875250205397606, -0.05655543506145477, -0.05365066975355148, 0.010796628892421722, -0.05284573510289192, -0.0022277890238910913, -0.016037454828619957, -0.01840851455926895, -0.025897910818457603, -0.00160112080629915, 0.04518135264515877, -0.0011713117128238082, 0.0137626389041543, 0.02098080702126026, 0.006526973098516464, -0.05326570197939873, -0.03466470167040825, -0.006150753702968359, -0.023238124325871468, 0.029432624578475952, 0.03149745985865593, 0.00008038413943722844, 0.06302991509437561, 0.011076605878770351, -0.05064091458916664, -0.023220626637339592, 0.058165304362773895, -0.00518395658582449, 0.0045627569779753685, -0.01977340504527092, 0.03594209998846054, 0.006833198480308056, 0.029065154492855072, 0.001755327102728188, 0.029065154492855072, 0.029135148972272873, -0.03443722054362297, -0.00808872189372778, 0.0016897073946893215, 0.03433223068714142, -0.007559389807283878, -0.03139246627688408, -0.04171663150191307, 0.00965047162026167, 0.022170711308717728, 0.0807034894824028, -0.052320778369903564, 0.015906216576695442, -0.033614788204431534, -0.058235298842191696, -0.02642286755144596, -0.016124948859214783, 0.04192661494016647, 0.05340569093823433, 0.005656418390572071, 0.01541625615209341, 0.018111038953065872, 0.01337767019867897, 0.02484799548983574, -0.0363970622420311, 0.01012293342500925, -0.00816309079527855, -0.030272556468844414, 0.03779694810509682, 0.0547705814242363, 0.011304087936878204, -0.009370493702590466, -0.013001450337469578, -0.03062252886593342, 0.028277717530727386, 0.018023544922471046, 0.03520715981721878, -0.013150189071893692, 0.01856600120663643, 0.0011352208675816655, -0.0727941244840622, 0.04220659285783768, -0.031917423009872437, 0.08399321883916855, -0.07643382996320724, 0.0255129411816597, 0.028872670605778694, -0.03804193064570427, 0.06156003102660179, 0.023063138127326965, -0.07027433067560196, 0.07160422205924988, -0.04605628177523613, 0.008486814796924591, 0.05480557680130005, 0.04437641799449921, -0.004396520089358091, -0.014418836683034897, 0.006601342465728521, -0.02224070578813553, -0.019528424367308617, -0.02227570302784443, -0.05414063110947609, -0.00793998409062624, -0.009790459647774696, 0.042801544070243835, -0.045006368309259415, -0.04910103604197502, 0.05540052801370621, -0.08994273841381073, 0.004781489260494709, 0.04168163612484932, -0.047841139137744904, 0.009659220464527607, 0.037691958248615265, 0.017586080357432365, 0.015608740039169788, 0.03643206134438515, 0.01783106103539467, -0.07398402690887451, 0.010726634413003922, 0.004488387610763311, 0.04318651556968689, 0.032844848930835724, -0.02885517105460167, 0.011050358414649963, 0.03322981670498848, 0.009580477140843868, -0.022538181394338608, 0.02819022536277771, -0.02602040022611618, -0.048611078411340714, -0.06100007891654968, 0.026930326595902443, 0.05848028138279915, -0.026510359719395638, 0.08693298697471619, -0.05645044520497322, -0.05043093115091324, -0.0256179329007864, 0.008933029137551785, 0.02796274423599243, 0.05564551055431366, -0.006728207226842642, 0.017472339794039726, -0.02444552630186081, 0.009414239786565304, 0.028505198657512665, 0.03804193064570427, -0.0014884736156091094, 0.05508555471897125, -0.014725062064826488, -0.04927602410316467, 0.055960483849048615, 0.014068864285945892, 0.020000886172056198, 0.016308683902025223, -0.036187078803777695, 0.03282735124230385, 0.06757954508066177, -0.056625429540872574, -0.0002615218691062182, 0.0043680849485099316, 0.06841947883367538, -0.013631399720907211, 0.009317997843027115, -0.03531214967370033, 0.038391903042793274, -0.025530438870191574, -0.006177001632750034, 0.026072895154356956, 0.005240826867520809, 0.01893347129225731, 0.002992258407175541, 0.009860454127192497, -0.06222497671842575, -0.03275735676288605, -0.016264937818050385, -0.025827916339039803, 0.006041387561708689, -0.024025561287999153, 0.019545922055840492, 0.03413974493741989, 0.0008962557767517865, 0.0037425104528665543, 0.1093311756849289, 0.017332350835204124, -0.008775541558861732, -0.009046769700944424, -0.036292072385549545, 0.017769815400242805, -0.007708128076046705, 0.042836543172597885, -0.007196294143795967, 0.00417122570797801, 0.00492585264146328, 0.02701781876385212, -0.005652043968439102, 0.0331423245370388, 0.012012780643999577, 0.031339969485998154, 0.0109541155397892, 0.025810416787862778, 0.022153211757540703, -0.04259156435728073, -0.00015297593199647963, 0.06163002550601959, 0.052355773746967316, -0.02462051250040531, 0.03790194168686867, -0.018828479573130608, 0.020525842905044556, 0.013911377638578415, -0.005752660799771547, 0.0050833397544920444, 0.039861783385276794, -0.020018383860588074, -0.03506717085838318, 0.0019314066739752889, -0.01260773278772831, 0.043501488864421844, -0.03249487653374672, 0.009344246238470078, -0.01534626167267561, 0.05501556023955345, 0.014261349104344845, 0.012074025347828865, 0.08441318571567535, -0.029310135170817375, 0.015792476013302803, -0.005967018660157919, -0.01947592757642269, -0.02532045729458332, -0.004676497541368008, -0.020193370059132576, 0.017664823681116104, -0.01853100396692753, 0.043641477823257446, 0.0007956388872116804, -0.05421062558889389, -0.07107926160097122, -0.03972179442644119, 0.017218610271811485, 0.017437342554330826, -0.028382709249854088, 0.001139595522545278, -0.04745617136359215, -0.028767678886651993, 0.031182482838630676, 0.017253607511520386, -0.010499152354896069, 0.02348310500383377, -0.03240738436579704, 0.03179493546485901, 0.04262655973434448, -0.012205265462398529, -0.022363195195794106, 0.015853719785809517, -0.06663462519645691, 0.050850898027420044, 0.008911156095564365, -0.03252987563610077, 0.04483138024806976, 0.0021052989177405834, 0.03905684873461723, 0.019598418846726418, 0.006658212747424841, -0.08707297593355179, -0.0056126718409359455, -0.00642198184505105, 0.039161838591098785, -0.024288039654493332, -0.01705237291753292, -0.10751132667064667, 0.014873799867928028, -0.0733540803194046, -0.08945278078317642, 0.008237460628151894, -0.0021381087135523558, 0.03417474031448364, -0.02635287307202816, 0.07860365509986877, -0.04969599097967148, -0.0029157022945582867, -0.02498798258602619, 0.016378678381443024, -0.004420580808073282, -0.05078090354800224, 0.023395610973238945, 0.07377404719591141, 0.0003825081803370267, 0.04483138024806976, -0.01763857714831829, 0.0015923714963719249, -0.053020719438791275, -0.011549067683517933, 0.045811302959918976, 0.008775541558861732, -0.022800659760832787, 0.01947592757642269, 0.03748197481036186, 0.06859446316957474, -0.010726634413003922, -0.03961680456995964, 0.010665389709174633, 0.024235544726252556, 0.014357591047883034, 0.014821304008364677, -0.038531892001628876, -0.051690828055143356, -0.04255656525492668, 0.029975080862641335, 0.05288073420524597, 0.03825191408395767, 0.003779694903641939, -0.05340569093823433, -0.044166434556245804, 0.019633416086435318, 0.002957261400297284, 0.031339969485998154, -0.0047377427108585835, -0.011977783404290676, -0.024865493178367615, -0.04476138576865196, -0.05323070287704468, -0.023955566808581352, 0.05694040656089783, -0.05652043968439102, -0.014882548712193966, -0.01310644205659628, 0.06516473740339279, 0.00806684885174036, -0.044306423515081406, -0.0804935023188591, -0.006391359027475119, 0.04980098083615303, 0.022223206236958504, 0.0400717668235302, -0.029117649421095848, 0.06439480185508728, 0.030132567510008812, 0.017253607511520386, -0.03413974493741989, -0.006505100056529045, 0.006579468958079815, 0.01043790765106678, -0.010516650974750519, -0.02050834521651268, -0.02675534039735794, 0.058130308985710144, -0.03944181650876999, -0.029100151732563972, 0.01756858266890049, 0.008206837810575962, -0.044306423515081406, 0.03244238346815109, -0.010857873596251011, 0.003440659726038575, 0.06267993897199631, 0.04472639039158821, -0.011986532248556614, -0.00013411027612164617, 0.02124328538775444, -0.010647891089320183, -0.09995193034410477, -0.03256487101316452, -0.0019106270046904683, 0.022853156551718712, -0.04084170237183571, 0.04238158091902733, 0.030045075342059135, -0.09267251938581467, -0.10380162298679352, -0.03503217175602913, 0.05393064767122269, 0.03867187723517418, 0.016553664579987526, 0.03079751506447792, -0.055190544575452805, -0.040666718035936356, -0.03657205030322075, -0.03384226933121681, 0.08672299981117249, -0.028400208801031113, 0.010682887397706509, 0.023273121565580368, 0.05575050041079521, -0.05697540193796158, -0.000465626479126513, -0.008810538798570633, -0.04329150542616844, -0.03734198585152626, 0.05981017276644707, -0.0030906880274415016, -0.004785863682627678, 0.014278847724199295, -0.01830352284014225, -0.003324731718748808, -0.020893312990665436, -0.000815871637314558, 0.00010232572822133079, 0.02231070026755333, -0.005008970852941275, -0.01245899498462677, 0.06439480185508728, 0.03546963632106781, -0.011129101738333702, -0.04808611795306206, -0.03406975045800209, -0.008338076993823051, -0.028767678886651993, -0.03263486549258232, 0.03396476060152054, 0.026160389184951782, -0.0014994102530181408, 0.005765784531831741, -0.026510359719395638, -0.04255656525492668, -0.013701394200325012, -0.03604708984494209, 0.023203127086162567, -0.005748285911977291, 0.0014644130133092403, 0.03377227485179901, -0.0346997007727623, -0.04511135816574097, -0.011321586556732655, 0.03818191960453987, -0.011277839541435242, 0.03083251230418682, 0.01727110706269741, -0.09393242001533508, -0.07244415581226349, -0.04903104156255722, 0.01830352284014225, -0.023798080161213875, 0.010857873596251011, 0.033719778060913086, 0.028802676126360893, -0.07447399199008942, 0.0023054389748722315, -0.05428062006831169, -0.0016197130316868424, -0.0347696952521801, 0.009046769700944424, -0.012520239688456059, -0.07055430859327316, -0.00020232742826920003, 0.01907346025109291, 0.06785952299833298, 0.04913603514432907, 0.0004940616781823337, 0.03193492442369461, -0.03573211655020714, -0.08882283419370651, -0.026545356959104538, -0.03944181650876999, -0.029572613537311554, -0.03349229693412781, -0.04252156987786293, -0.005122711416333914, 0.05197080597281456, -0.009562978520989418, 0.0007584544364362955, 0.06922440975904465, -0.06393983960151672, -0.051620833575725555, -0.0027822754345834255, 0.044971369206905365, 0.0000978827229118906, -0.045076362788677216, 0.014270097948610783, -0.0034669076558202505, -0.012266510166227818, 0.03870687633752823, -0.023255623877048492, -0.03146246075630188, -0.03223240002989769, 0.008736169897019863, -0.0009613286820240319, -0.02595040574669838, -0.012633980251848698, -0.02147076651453972, 0.020018383860588074, 0.036187078803777695, 0.02735029347240925, 0.020420851185917854, 0.05043093115091324, -0.07065929472446442, -0.03506717085838318, 0.004672123119235039, -0.007091302890330553, 0.026545356959104538, 0.009974194690585136, 0.08399321883916855, 0.007476271595805883, -0.00492585264146328, 0.027910247445106506, -0.02841770648956299, -0.05365066975355148, 0.06754454970359802, 0.06652963161468506, -0.04196161404252052, 0.0439564511179924, 0.03069252334535122, 0.0329323410987854, -0.026002900674939156, 0.05876025930047035, -0.02672034315764904, -0.03881186619400978, -0.004610877949744463, 0.014173856005072594, -0.06012514606118202, -0.027577774599194527, -0.031182482838630676, 0.030902506783604622, -0.028942665085196495, -0.00839932169765234, -0.0728641226887703, -0.04003676772117615, -0.01698238030076027, -0.0476311556994915, -0.01073538325726986, 0.06638964265584946, 0.006395733915269375, 0.02117329090833664, -0.0040924823842942715, 0.04588129743933678, -0.0009427363984286785, 0.0041056061163544655, 0.01077038049697876, 0.013788887299597263, 0.022853156551718712, -0.03604708984494209, 0.01930094324052334, 0.023430608212947845, 0.007970606908202171, 0.01332517433911562, -0.005901398602873087, -0.0349096842110157, -0.0585152767598629, -0.04700120538473129, -0.002187323523685336, -0.018653495237231255, -0.017516085878014565, 0.027630269527435303, 0.0026969697792083025, -0.01790105551481247, 0.013885129243135452, 0.0024366783909499645, 0.016457421705126762, 0.0013025511289015412, -0.03146246075630188, 0.009571727365255356, 0.06383484601974487, 0.03249487653374672, 0.06684460490942001, 0.012432746589183807, 0.019895894452929497, -0.08973275870084763, 0.016151197254657745, -0.0021588883828371763, 0.009291750378906727, 0.030045075342059135, 0.010534149594604969, -0.0050789653323590755, 0.03273985907435417, -0.04077170789241791, -0.02595040574669838, 0.04175163060426712, 0.008718671277165413, 0.04224159196019173, 0.022293200716376305, 0.0349096842110157, 0.04437641799449921, 0.006828824058175087, -0.02808523364365101, 0.018163533881306648, 0.017104869708418846, 0.007874364964663982, -0.033649783581495285, 0.004341837018728256, -0.01594996266067028, 0.017918553203344345, 0.02161075547337532, -0.014060115441679955, -0.014637568965554237, -0.07188419997692108, -0.0043549612164497375, 0.0367470346391201, 0.025705425068736076, -0.029450124129652977, -0.012214014306664467, 0.07692379504442215, 0.014357591047883034, -0.014873799867928028, 0.027175307273864746, 0.025372952222824097, 0.020455848425626755, -0.06460478901863098, 0.009081766940653324, 0.07629384100437164, -0.022170711308717728, 0.03786694258451462, 0.03863688185811043, 0.010507902130484581, -0.0011899039382115006, -0.02355309948325157, -0.028435206040740013, -0.022468186914920807, -0.02411305345594883, -0.03587210550904274, -0.05652043968439102, -0.013097693212330341, 0.00965047162026167, -0.03569711744785309, 0.01676364801824093, 0.061035074293613434, -0.00011729521793313324, 0.01262523140758276, -0.01028916984796524, -0.0022277890238910913, -0.06054511293768883, -0.0061157564632594585, -0.01840851455926895, 0.01341266743838787, 0.023430608212947845, 0.03350979462265968, -0.0547005869448185, -0.0155824925750494, 0.04997596517205238, 0.0951223224401474, 0.019650913774967194, -0.06124505773186684, -0.030220061540603638, 0.05242576822638512, 0.012004030868411064, 0.03413974493741989, 0.014418836683034897, 0.03436722606420517, -0.040596723556518555, -0.02862768992781639, -0.008311829529702663, 0.04829610139131546, 0.015888717025518417, -0.04738617688417435, -0.01119034644216299, 0.00423465808853507, -0.0054770577698946, -0.05718538537621498, 0.04094669595360756, 0.022800659760832787, -0.02532045729458332, -0.014803805388510227, 0.0584452822804451, -0.0074062771163880825, -0.03466470167040825, -0.05876025930047035, -0.02936263009905815, 0.03587210550904274, -0.0256879273802042, -0.02812023088335991, 0.01045540627092123, -0.005673917010426521, -0.0367470346391201, -0.053825657814741135, 0.010026690550148487, -0.018461009487509727, 0.014672566205263138, 0.012852712534368038, 0.0730741024017334, -0.0311649851500988, 0.011566566303372383, -0.004995846655219793, 0.047281183302402496, 0.010359164327383041, 0.03790194168686867, -0.006986311171203852, -0.016693653538823128, 0.007620634976774454, -0.04392145574092865, 0.04227658733725548, -0.019195951521396637, 0.03520715981721878 ]
730,126
mmengine.fileio.handlers.json_handler
JsonHandler
null
class JsonHandler(BaseFileHandler): def load_from_fileobj(self, file): return json.load(file) def dump_to_fileobj(self, obj, file, **kwargs): kwargs.setdefault('default', set_default) json.dump(obj, file, **kwargs) def dump_to_str(self, obj, **kwargs): kwargs.setdefault('default', set_default) return json.dumps(obj, **kwargs)
()
[ -0.04100905358791351, -0.038584355264902115, -0.016103168949484825, -0.03658134117722511, 0.020100409165024757, -0.015576060861349106, -0.013994734734296799, 0.06638055294752121, -0.004113643895834684, -0.035527125000953674, -0.009092624299228191, -0.022454828023910522, -0.03192521259188652, -0.021787157282233238, -0.018413662910461426, 0.0285868588835001, -0.030502021312713623, 0.023491475731134415, 0.052359458059072495, 0.03658134117722511, 0.009496740996837616, -0.03735443204641342, 0.04705323278903961, 0.0724598690867424, -0.020592378452420235, 0.010278618894517422, -0.007269707042723894, -0.00042745217797346413, 0.08229923248291016, -0.006083712447434664, -0.019977418705821037, -0.10127514600753784, 0.013854172080755234, 0.05689259245991707, 0.007893452420830727, -0.042168691754341125, -0.03679218515753746, 0.07133536785840988, -0.13416671752929688, 0.004478227347135544, 0.0004159216769039631, 0.05425705015659332, -0.059633560478687286, 0.00837224256247282, 0.04617471992969513, 0.07379521429538727, -0.002440073760226369, 0.07260043174028397, 0.02934238128364086, -0.031503528356552124, 0.01415286771953106, -0.010331329889595509, -0.03749499469995499, 0.028130032122135162, -0.0005897028022445738, 0.00868411548435688, 0.012536400929093361, 0.0000165922556334408, -0.05084841325879097, -0.002932041883468628, -0.014565769582986832, 0.014179223217070103, 0.07632533460855484, -0.0519377738237381, -0.02391316182911396, 0.006571287754923105, -0.04701809212565422, 0.019590871408581734, 0.006430725567042828, 0.04568275064229965, -0.005771839991211891, -0.034595899283885956, 0.0070808264426887035, 0.03728415071964264, 0.0295883659273386, 0.03083585575222969, -0.07899601757526398, 0.010252263396978378, -0.009646088816225529, 0.03173194080591202, 0.020785652101039886, -0.08665665984153748, -0.019713863730430603, 0.009777865372598171, -0.04673696681857109, -0.0475100614130497, 0.003138492815196514, -0.01843123324215412, -0.0012551775434985757, 0.029359951615333557, -0.06638055294752121, 0.011447043158113956, -0.04529620334506035, 0.02656627632677555, -0.03039659932255745, -0.054573316127061844, -0.006962226703763008, 0.0026399358175694942, 0.014961101114749908, 0.033752523362636566, -0.03728415071964264, -0.005240338388830423, 0.005486322566866875, -0.030097903683781624, -0.011974151246249676, -0.06704822182655334, 0.052394598722457886, 0.0072038182988762856, -0.012351912446320057, 0.04635041952133179, -0.02709338441491127, -0.040517084300518036, -0.031169692054390907, 0.024949809536337852, 0.035650115460157394, -0.0018745301058515906, -0.019836856052279472, 0.012835095636546612, 0.04873998090624809, -0.013037154451012611, -0.03043173998594284, -0.023491475731134415, -0.00441892771050334, 0.009004772640764713, 0.07955826818943024, -0.029693787917494774, -0.00784074142575264, -0.015119233168661594, 0.10450807958841324, 0.030572302639484406, 0.011824804358184338, 0.037705838680267334, -0.025230934843420982, -0.01272088848054409, 0.032030634582042694, -0.006347266957163811, -0.06005524471402168, 0.042695801705121994, 0.023649608716368675, 0.041079334914684296, 0.020996494218707085, -0.061004042625427246, 0.033963367342948914, -0.04480423405766487, -0.006167171057313681, -0.0006748089217580855, 0.04902110621333122, -0.0020304664503782988, -0.047158654779195786, 0.029658647254109383, 0.033067282289266586, 0.0390411801636219, -0.04526106268167496, 0.04754520207643509, 0.00932103767991066, -0.040200818330049515, -0.03139810636639595, 0.0018668432021513581, -0.023983443155884743, -0.012712103314697742, 0.02487952820956707, -0.02363203838467598, 0.04497993737459183, -0.028481436893343925, 0.016516070812940598, 0.059598419815301895, 0.026302721351385117, -0.008258035406470299, 0.03563254699110985, 0.014267073944211006, -0.06891067326068878, -0.00015099467418622226, -0.07115966826677322, 0.06947292387485504, 0.09544181078672409, 0.05397592484951019, -0.00030912726651877165, 0.006132030859589577, 0.020539667457342148, 0.02447541244328022, -0.0014671190874651074, -0.026882542297244072, 0.03658134117722511, 0.034841883927583694, 0.05689259245991707, -0.020153120160102844, 0.03015061467885971, 0.025617480278015137, -0.009312252514064312, 0.047756046056747437, 0.03273344784975052, -0.022402117028832436, -0.02902611717581749, -0.062058258801698685, 0.07151107490062714, 0.013555477373301983, 0.01429342944175005, -0.08258035778999329, 0.00697540445253253, 0.010480676777660847, -0.08110444992780685, -0.061250027269124985, -0.006356051657348871, -0.05056729167699814, -0.00397527776658535, 0.04044680297374725, 0.05808737501502037, 0.025107942521572113, -0.0829317644238472, 0.021839868277311325, -0.02712852507829666, -0.0016570978332310915, -0.035000015050172806, 0.03494730219244957, 0.04754520207643509, -0.023491475731134415, -0.004730800166726112, 0.0370381698012352, -0.06536146998405457, 0.037986963987350464, 0.036089371889829636, 0.06026608869433403, -0.04452311247587204, 0.03594880923628807, 0.007445409893989563, 0.003358121495693922, 0.03273344784975052, -0.06518577039241791, -0.008438130840659142, 0.003096763277426362, -0.024580834433436394, 0.00039505696622654796, -0.037740979343652725, 0.04072792828083038, 0.015786904841661453, -0.008662152104079723, 0.041887566447257996, -0.04729921743273735, 0.007357558235526085, -0.009241972118616104, 0.07386549562215805, -0.01410894189029932, -0.011473398655653, -0.044066283851861954, 0.021383041515946388, -0.003250503446906805, 0.027796195819973946, 0.01495231594890356, -0.02431727945804596, 0.0012452942319214344, 0.08588357269763947, 0.052675724029541016, -0.02684740163385868, 0.04006025940179825, -0.028569288551807404, -0.04564760997891426, 0.023614468052983284, 0.017754776403307915, -0.025898605585098267, -0.030695294961333275, -0.019590871408581734, -0.026232440024614334, 0.014513058587908745, 0.03464860841631889, -0.014381281100213528, -0.014776612631976604, 0.012703318148851395, -0.05991468206048012, 0.01181601919233799, 0.03981427475810051, 0.07253015041351318, 0.014214363880455494, 0.016630278900265694, -0.00910140946507454, -0.07302211970090866, 0.004717622417956591, -0.04673696681857109, -0.028973406180739403, 0.0316089503467083, 0.0041092513129115105, -0.018308240920305252, -0.03626507520675659, 0.03668676316738129, -0.02101406455039978, 0.028270594775676727, 0.003307606792077422, -0.005376508459448814, 0.041325319558382034, -0.005170057527720928, -0.024984950199723244, 0.05527612939476967, 0.04501507803797722, -0.1083032563328743, 0.025424206629395485, -0.03682732582092285, -0.050180744379758835, -0.07695786654949188, -0.017377015203237534, 0.0724598690867424, 0.0053237974643707275, -0.05562753230333328, -0.06567773967981339, 0.053835365921258926, -0.022366978228092194, -0.022033141925930977, -0.009716369211673737, 0.02528364583849907, -0.03174951300024986, -0.007621112745255232, 0.0031933998689055443, 0.013546692207455635, 0.011411902494728565, -0.012439764104783535, 0.028323305770754814, 0.006905123591423035, 0.0768875852227211, -0.004634163808077574, 0.03756527602672577, 0.01739458553493023, 0.051586367189884186, -0.0724598690867424, 0.012518830597400665, -0.03071286343038082, -0.004289346747100353, 0.09628517925739288, -0.04139560088515282, 0.04336347058415413, 0.04557732865214348, 0.001062453375197947, 0.00718624796718359, -0.012351912446320057, -0.00868411548435688, 0.005192020442336798, 0.010129271075129509, -0.020065270364284515, -0.011288910172879696, -0.00705447094514966, -0.0045111714862287045, -0.0007774852565489709, 0.00910140946507454, 0.01131526567041874, -0.020592378452420235, 0.008908136747777462, -0.009452815167605877, -0.02914910949766636, -0.013362204656004906, 0.0849699154496193, 0.011262554675340652, 0.05422190949320793, -0.01976657472550869, -0.033155135810375214, -0.012536400929093361, 0.03682732582092285, -0.014302214607596397, -0.0017778935143724084, -0.07393577694892883, 0.00386985600925982, -0.06638055294752121, -0.005842120852321386, -0.031380534172058105, -0.013318278826773167, 0.002184206387028098, -0.055381547659635544, 0.013511551544070244, 0.0328037291765213, 0.04719379544258118, 0.04916166886687279, -0.005982683040201664, 0.04157130420207977, -0.03563254699110985, 0.016129525378346443, -0.004247617442160845, -0.00011235375859541818, -0.025898605585098267, 0.0018086415948346257, 0.015918681398034096, 0.022349407896399498, 0.016015317291021347, -0.05144580453634262, -0.014433992095291615, 0.04086849093437195, 0.012975658290088177, -0.025617480278015137, -0.008398598060011864, 0.00041701982263475657, -0.018694786354899406, 0.04192270711064339, 0.0515160858631134, -0.054608456790447235, -0.0017735010478645563, 0.01988956704735756, -0.022560250014066696, -0.03763555735349655, -0.015813259407877922, 0.00182950624730438, -0.03445533663034439, -0.016972899436950684, 0.04624500125646591, -0.025705331936478615, 0.06704822182655334, 0.008143829181790352, -0.02809489145874977, -0.028762562200427055, 0.0008960847044363618, -0.02104920521378517, 0.014548199251294136, 0.028428727760910988, 0.024967379868030548, 0.04093877226114273, 0.021470893174409866, 0.0825100764632225, -0.008613834157586098, -0.05966870114207268, -0.019432738423347473, 0.032751016318798065, 0.00011187331983819604, 0.0002201776806032285, 0.008956454694271088, -0.03960343077778816, 0.023965872824192047, -0.02540663629770279, 0.09593377262353897, 0.0030660154297947884, 0.01352912187576294, 0.022560250014066696, -0.056822314858436584, -0.04062250629067421, -0.02874499186873436, 0.011763308197259903, 0.030783144757151604, 0.024528123438358307, -0.04315263032913208, -0.008284390904009342, -0.08363457024097443, 0.05914159119129181, -0.0074981204234063625, 0.03406878933310509, -0.06673195213079453, -0.0026750764809548855, 0.04287150502204895, -0.01952059008181095, -0.00048318292829208076, 0.003990651573985815, 0.0010113897733390331, 0.0071115740574896336, -0.021629024296998978, -0.0015110448002815247, 0.06708335876464844, 0.06110946461558342, -0.013985949568450451, -0.044136565178632736, -0.0034547580871731043, -0.0012936125276610255, -0.05334339663386345, -0.003355925204232335, -0.06363958865404129, 0.040798209607601166, -0.004454068373888731, 0.06202311813831329, 0.01495231594890356, 0.008565515279769897, -0.012474904768168926, 0.0283760167658329, -0.03227661922574043, -0.057349421083927155, 0.01904619298875332, 0.012474904768168926, 0.03183736279606819, -0.042133551090955734, -0.0009713075123727322, 0.010902363806962967, 0.07077312469482422, -0.09192775189876556, -0.01895834133028984, 0.013116220012307167, 0.022753523662686348, 0.059633560478687286, -0.040235958993434906, -0.01692897267639637, -0.05446789413690567, -0.02048695646226406, -0.015303721651434898, 0.012641822919249535, 0.0009460502187721431, 0.028112461790442467, -0.012712103314697742, 0.03507029637694359, -0.02556476928293705, 0.050742994993925095, -0.006039786618202925, 0.013116220012307167, 0.015848400071263313, -0.050778135657310486, -0.04873998090624809, 0.012966873124241829, 0.008455701172351837, -0.009672443382441998, 0.037986963987350464, -0.021839868277311325, -0.026197299361228943, 0.04178214445710182, -0.025705331936478615, -0.06272593140602112, 0.005701558664441109, -0.049899619072675705, -0.04121989756822586, 0.018185248598456383, 0.0269703920930624, -0.06054721400141716, 0.005271086469292641, 0.003538216929882765, 0.04315263032913208, -0.018448803573846817, 0.017420941963791847, -0.00019697941024787724, 0.00868411548435688, -0.012132284231483936, 0.02229669690132141, 0.015848400071263313, -0.014750257134437561, -0.0049855695106089115, -0.024334849789738655, 0.03601909056305885, -0.0005732306744903326, -0.03791668266057968, 0.004515564069151878, -0.01568148285150528, 0.03707331046462059, 0.02874499186873436, 0.059563279151916504, 0.007954948581755161, -0.02572290226817131, 0.00455070473253727, 0.018255529925227165, -0.009487955830991268, 0.06202311813831329, 0.03297943249344826, -0.010524602606892586, -0.02725151740014553, -0.05780624970793724, 0.0010536682093515992, 0.021383041515946388, -0.03132782503962517, -0.05443275347352028, -0.0014144082088023424, -0.049653634428977966, -0.020030129700899124, 0.025547198951244354, 0.052921708673238754, -0.052148617804050446, -0.0021479676943272352, -0.03714359179139137, 0.07316268235445023, 0.011359191499650478, -0.04512050002813339, -0.053800225257873535, -0.00821410957723856, -0.02986949123442173, 0.03348897024989128, 0.0019755593966692686, -0.018343381583690643, 0.06855926662683487, -0.05618978291749954, 0.07323296368122101, 0.02500252053141594, 0.015066522173583508, 0.014802968129515648, 0.09804221242666245, -0.03788154199719429, 0.0008263526251539588, -0.01839609257876873, 0.06659139692783356, 0.003483309643343091, -0.03615965321660042, -0.02444027177989483, 0.03515814617276192, 0.01702561043202877, 0.014996240846812725, 0.024334849789738655, -0.04192270711064339, -0.030133044347167015, 0.014056230895221233, -0.04455825313925743, -0.033313266932964325, -0.0269703920930624, -0.04536648467183113, 0.013616973534226418, 0.042414676398038864, 0.019590871408581734, 0.045893594622612, -0.01746486686170101, 0.01533886231482029, -0.029096398502588272, -0.04765062406659126, 0.023140069097280502, 0.048845402896404266, 0.007129144389182329, -0.03876005485653877, 0.041360460221767426, -0.037740979343652725, -0.0519377738237381, 0.016287658363580704, -0.06929721683263779, -0.011982936412096024, 0.00882467720657587, 0.014732686802744865, -0.021224908530712128, 0.019590871408581734, -0.014416421763598919, 0.015813259407877922, -0.05478416010737419, -0.023965872824192047, 0.04722893610596657, 0.030168185010552406, -0.006487829145044088, 0.00826242845505476, 0.021383041515946388, -0.020926212891936302, -0.012088358402252197, -0.02350904606282711, 0.012026862241327763, 0.0092595424503088, -0.033401116728782654, 0.012009291909635067, -0.02201557159423828, -0.03682732582092285, -0.014600909315049648, 0.005205198191106319, -0.027884047478437424, -0.03781126067042351, -0.023614468052983284, -0.04642070084810257, 0.02029368281364441, -0.0038281267043203115, 0.014504273422062397, -0.0014671190874651074, -0.012896591797471046, 0.003979670349508524, 0.00410705478861928, 0.006628391332924366, 0.052394598722457886, -0.0511295385658741, -0.0015450872015208006, -0.03167923167347908, -0.01932731829583645, 0.039673712104558945, 0.007366343401372433, -0.011420687660574913, 0.038865476846694946, -0.05425705015659332, -0.016041673719882965, -0.014337355270981789, -0.051551226526498795, 0.04016568139195442, 0.015084092505276203, 0.016937758773565292, 0.05559239163994789, -0.022402117028832436, 0.05942271649837494, 0.02020583115518093, -0.045471906661987305, 0.01376632135361433, 0.02893826551735401, -0.018993481993675232, 0.005640062503516674, -0.02878013253211975, -0.022402117028832436, -0.022683242335915565, 0.0185190849006176, -0.0061452086083590984, 0.01733309030532837, 0.026900112628936768, 0.04561246931552887, -0.0012727477587759495, -0.02263053134083748, -0.03297943249344826, 0.019467879086732864, 0.04866969957947731, 0.047931745648384094, -0.02705824375152588, 0.021927719935774803, -0.00487136235460639, -0.01203564740717411, 0.023702319711446762, -0.004647341091185808, 0.0511295385658741, 0.003639246104285121, -0.002993537811562419, 0.034841883927583694, 0.02725151740014553, 0.003213166492059827, -0.05000504106283188, -0.06339360028505325, -0.0008263526251539588, -0.06089862063527107, -0.04336347058415413, 0.010041420347988605, -0.00863579660654068, -0.010454321280121803, 0.02319278009235859, 0.006949048954993486, -0.007432232145220041, 0.0362299345433712, -0.033278126269578934, 0.01880020834505558, -0.05850905925035477, -0.04765062406659126, 0.012940517626702785, 0.031977925449609756, -0.030379028990864754, -0.022068282589316368, 0.05179721117019653, 0.014899604953825474, 0.00046369089977815747, -0.024141576141119003, 0.045225922018289566, -0.04459339380264282, 0.028323305770754814, -0.0027453575748950243, 0.00997992418706417, -0.0442771278321743, -0.043855439871549606, -0.04223897308111191, 0.00893449131399393, 0.059563279151916504, -0.02874499186873436, -0.04399600252509117, -0.02117219753563404, -0.006241844967007637, -0.0012310183374211192, 0.01602410338819027, -0.018589364364743233, -0.03282129764556885, -0.007691393606364727, 0.012993228621780872, -0.044101424515247345, -0.0035711610689759254, -0.04318777099251747, 0.03382280468940735, 0.04543676599860191, -0.0362299345433712, -0.019555730745196342, 0.032628025859594345, 0.0318022221326828, 0.03738957270979881, -0.04343375191092491, 0.06855926662683487, 0.0607931986451149, -0.08799200505018234, 0.07386549562215805, -0.004963606595993042, 0.027023103088140488, -0.024580834433436394, 0.05450303480029106, 0.019432738423347473, -0.03675704449415207, -0.0328037291765213, 0.032311759889125824, 0.03505272418260574, 0.025512058287858963, -0.06789159774780273, -0.027919188141822815, -0.0027870871126651764, -0.016577567905187607, 0.06314761936664581, 0.0684538409113884, 0.03840865194797516, 0.005951935425400734 ]
730,127
mmengine.fileio.handlers.json_handler
dump_to_fileobj
null
def dump_to_fileobj(self, obj, file, **kwargs): kwargs.setdefault('default', set_default) json.dump(obj, file, **kwargs)
(self, obj, file, **kwargs)
[ -0.04269329085946083, -0.01770665869116783, -0.004941195249557495, -0.0011034769704565406, 0.01090294774621725, -0.03799872845411301, -0.023710934445261955, 0.054361652582883835, -0.038372933864593506, -0.048646535724401474, -0.01035014633089304, -0.0012916420819237828, -0.04262525215744972, -0.0443601980805397, -0.029800256714224815, 0.03592359647154808, -0.04544879123568535, 0.03762452304363251, 0.05235455930233002, 0.0938912183046341, 0.019560670480132103, -0.02119356021285057, 0.013709478080272675, 0.05861397460103035, 0.037250321358442307, 0.003635733388364315, -0.01317368634045124, 0.017502548173069954, 0.020155994221568108, 0.028745681047439575, -0.013505367562174797, -0.08300527930259705, 0.002989380620419979, 0.05868200957775116, 0.03507313132286072, -0.0466054230928421, -0.0020070949103683233, 0.10191959887742996, -0.1465519368648529, -0.031178006902337074, 0.02939203381538391, 0.08593087643384933, -0.0781066045165062, 0.017366472631692886, 0.027946244925260544, 0.0383048951625824, 0.011447244323790073, 0.07803857326507568, 0.05095979943871498, -0.03823685646057129, 0.017825724557042122, -0.03230062127113342, -0.0064295073971152306, -0.004902924410998821, -0.03201146051287651, 0.000617117912042886, 0.009133982472121716, -0.01945861428976059, -0.01957768015563488, 0.01722189411520958, -0.01838703081011772, 0.014713025651872158, 0.04942896217107773, -0.08089613169431686, -0.022605331614613533, 0.007360765244811773, -0.05463380366563797, 0.019849827513098717, -0.01727292314171791, 0.0653156265616417, 0.0035272990353405476, -0.01932254061102867, 0.022044025361537933, 0.009236038662493229, 0.019186466932296753, 0.020598236471414566, -0.03748844936490059, 0.014253775589168072, -0.04970111325383186, 0.0005089495098218322, -0.03274286165833473, -0.0612674206495285, -0.020104967057704926, 0.00023467489518225193, -0.062117885798215866, -0.042421139776706696, 0.027555031701922417, 0.005183577537536621, 0.002357911318540573, -0.016447972506284714, -0.03585555776953697, 0.04177478700876236, -0.016856195405125618, 0.012944061309099197, -0.03854302689433098, -0.07021430134773254, 0.024714481085538864, 0.0247995276004076, -0.019033381715416908, 0.015486948192119598, -0.01840403862297535, -0.09681681543588638, -0.04109441861510277, -0.03286192566156387, 0.004945447668433189, -0.04650336876511574, 0.05493997037410736, 0.0012661281507462263, -0.0353112630546093, 0.045788977295160294, -0.04636729136109352, -0.02491859346628189, -0.008853329345583916, -0.019356558099389076, 0.04289739951491356, 0.00115344172809273, 0.007411792874336243, 0.019373567774891853, 0.05732126906514168, -0.031926415860652924, -0.03437575325369835, -0.026211299002170563, -0.0040864790789783, 0.03653592988848686, 0.01932254061102867, -0.04779607430100441, 0.04245515912771225, 0.05095979943871498, 0.07708605378866196, 0.033168092370033264, 0.011387712322175503, -0.01149827241897583, -0.035039111971855164, -0.016082271933555603, 0.02131262607872486, -0.025752047076821327, -0.029051847755908966, 0.029102874919772148, -0.0076711843721568584, -0.008321789093315601, 0.053239040076732635, -0.07933127135038376, -0.010834909975528717, -0.03151819482445717, -0.010851919651031494, 0.031365107744932175, -0.009924913756549358, -0.01398162730038166, -0.07477279007434845, 0.006552824750542641, 0.05442969128489494, 0.03442677855491638, -0.07014626264572144, -0.003914260305464268, -0.0039015032816678286, -0.02474850043654442, -0.026585502550005913, 0.0029149651527404785, -0.007756230887025595, 0.026245316490530968, 0.02616026997566223, 0.042114973068237305, 0.04289739951491356, 0.026806622743606567, 0.0246124267578125, 0.061641626060009, 0.010647808201611042, -0.0010333136888220906, 0.03704620897769928, 0.037250321358442307, -0.019373567774891853, -0.019101420417428017, -0.038883209228515625, 0.058954160660505295, 0.060893215239048004, 0.06024686619639397, 0.005124045070260763, -0.00904043111950159, -0.007224691100418568, 0.06354666501283646, -0.0030297776684165, -0.02486756443977356, 0.07402437925338745, 0.047081682831048965, 0.02379598096013069, -0.046095144003629684, 0.02058122679591179, 0.023404767736792564, -0.0014330317499116063, 0.0092955706641078, 0.0736161544919014, 0.04905476048588753, 0.004588252864778042, -0.04514262452721596, 0.048510462045669556, -0.04687757045030594, 0.0009243479580618441, -0.08763179928064346, 0.029851283878087997, 0.008351556025445461, -0.03827087581157684, -0.035651449114084244, 0.03454584628343582, -0.026194289326667786, 0.008538657799363136, 0.03383145481348038, 0.07694997638463974, -0.01573358289897442, -0.060689106583595276, 0.04419010505080223, 0.014474895782768726, -0.015469938516616821, -0.059464436024427414, -0.014347326010465622, 0.03537929803133011, 0.006301937624812126, 0.03211351856589317, 0.0341886505484581, -0.049633074551820755, 0.05313698574900627, 0.01091145258396864, 0.02374495193362236, -0.03083782270550728, 0.021907949820160866, 0.016073768958449364, 0.006484787445515394, 0.03383145481348038, -0.07416045665740967, -0.0021878185216337442, -0.01460246555507183, -0.04568692296743393, -0.03296397998929024, -0.06980607658624649, 0.02485055662691593, -0.0038738632574677467, 0.015708068385720253, 0.029494088143110275, -0.052864838391542435, 0.006450769025832415, -0.04629925638437271, 0.07021430134773254, -0.027759142220020294, 0.005183577537536621, -0.03442677855491638, 0.040992360562086105, 0.04874859377741814, 0.04238712042570114, -0.037386395037174225, -0.027759142220020294, -0.016422457993030548, 0.10436893254518509, 0.04415608569979668, -0.04939494654536247, 0.01950964331626892, -0.02337074838578701, -0.027027742937207222, 0.03599163144826889, 0.022231126204133034, -0.024884574115276337, 0.002317514270544052, -0.0069015147164464, -0.02791222557425499, -0.0018731467425823212, 0.018421048298478127, -0.01348835788667202, 0.00932108424603939, -0.015759097412228584, -0.0462312176823616, 0.0008642839384265244, 0.02741895616054535, -0.012842005118727684, -0.018199928104877472, 0.012467801570892334, 0.0067314221523702145, -0.035719484090805054, 0.016745634377002716, -0.05619865655899048, -0.05885210260748863, 0.03315108269453049, -0.006178620271384716, 0.02350682206451893, -0.028609605506062508, 0.056402768939733505, -0.0025194992776960135, 0.03395051881670952, -0.024527380242943764, 0.01177892554551363, 0.042557213455438614, -0.022401219233870506, -0.03728433698415756, 0.02957913465797901, 0.06722066551446915, -0.06123340129852295, 0.03279389068484306, -0.023353738710284233, -0.03444378823041916, -0.0036867610178887844, -0.03211351856589317, 0.0514700785279274, 0.017017783597111702, -0.05619865655899048, -0.047455888241529465, 0.06885355710983276, -0.00744581175968051, -0.02149972878396511, -0.002606672002002597, 0.01814890094101429, -0.032470714300870895, -0.027129799127578735, -0.002326018875464797, 0.01653301902115345, 0.015316855162382126, 0.005995770450681448, 0.0495990552008152, 0.014798072166740894, 0.007284223567694426, -0.0041332547552883625, -0.009635756723582745, 0.02740194834768772, 0.024153174832463264, -0.04561888426542282, -0.029238950461149216, -0.06470329314470291, -0.031858377158641815, 0.10559359937906265, -0.05313698574900627, 0.02474850043654442, 0.0033380708191543818, 0.012671912088990211, 0.022418228909373283, -0.0005570538924075663, -0.012195652350783348, 0.004435169510543346, 0.041434600949287415, -0.00007787060167174786, 0.02032608725130558, -0.005863948725163937, 0.013182191178202629, -0.003369963262230158, 0.05313698574900627, -0.02468046359717846, -0.008253752253949642, 0.008130434900522232, -0.037386395037174225, -0.04470038414001465, 0.014406858943402767, 0.0495990552008152, 0.016694607213139534, 0.010060988366603851, 0.021091505885124207, -0.06817318499088287, 0.052626706659793854, 0.07729016244411469, 0.022418228909373283, -0.03170529380440712, -0.026007186621427536, 0.04184282571077347, -0.023285701870918274, -0.0033274400047957897, -0.04902074113488197, -0.05024540796875954, 0.013862562365829945, -0.02456139773130417, 0.0010795576963573694, 0.10171548277139664, 0.03323613107204437, 0.03687611594796181, 0.015189285390079021, 0.004167273174971342, -0.05276278033852577, -0.0015584751963615417, -0.019543660804629326, 0.022775424644351006, -0.041060399264097214, 0.022095052525401115, 0.017740678042173386, -0.013862562365829945, 0.01826796494424343, -0.00646352581679821, 0.0012501819292083383, 0.029255958274006844, -0.015589003451168537, 0.028609605506062508, 0.022520285099744797, -0.014058168977499008, 0.0028235402423888445, 0.020241040736436844, 0.030446607619524002, -0.011795934289693832, -0.020666273310780525, 0.01809787191450596, -0.0044819447211921215, -0.003914260305464268, -0.020649263635277748, 0.015554985031485558, -0.028201384469866753, 0.011353692971169949, 0.026568492874503136, -0.023387758061289787, 0.03039558045566082, -0.01845506764948368, -0.021618792787194252, -0.02964717149734497, -0.017859742045402527, -0.0041332547552883625, 0.003291295375674963, -0.018914317712187767, -0.028932781890034676, 0.05364726483821869, 0.029851283878087997, 0.02485055662691593, 0.021652812138199806, -0.019866837188601494, -0.016796663403511047, 0.02809932827949524, 0.04184282571077347, -0.028796708211302757, 0.006829225458204746, -0.043101511895656586, -0.019594687968492508, 0.003070174716413021, 0.07279971241950989, -0.008287770673632622, 0.03165426850318909, 0.015146762132644653, -0.10212370753288269, 0.012127615511417389, -0.0661320760846138, 0.037760596722364426, 0.02599017694592476, 0.03616172447800636, -0.05432763695716858, 0.02088739350438118, -0.01610778644680977, 0.09137384593486786, -0.00503474660217762, 0.03871311619877815, -0.06511151790618896, -0.014398354105651379, 0.05980462208390236, 0.03299799934029579, -0.033168092370033264, -0.026279335841536522, 0.022894488647580147, -0.04830634966492653, 0.011702383868396282, 0.004290590528398752, 0.02170383930206299, 0.030123433098196983, 0.028456522151827812, 0.034971076995134354, -0.01777469553053379, 0.010231081396341324, -0.03575350344181061, -0.0371822826564312, -0.06232199817895889, 0.01716236211359501, -0.008249499835073948, 0.057287249714136124, 0.008470620959997177, 0.017859742045402527, -0.017672641202807426, 0.03400154784321785, -0.02456139773130417, -0.02990231104195118, 0.0334402397274971, -0.05344315245747566, 0.06034892052412033, -0.015333864837884903, -0.037386395037174225, -0.004405403044074774, 0.05997471511363983, -0.1082470491528511, -0.01407517772167921, 0.011022012680768967, 0.050313446670770645, 0.017391987144947052, -0.021601783111691475, -0.03405257686972618, -0.022588321939110756, -0.00006358546670526266, -0.025394853204488754, 0.03338921442627907, 0.006348713301122189, 0.038883209228515625, 0.020479170605540276, -0.0006304063717834651, -0.004983718506991863, 0.05810369551181793, -0.0008052830235101283, 0.019679734483361244, 0.00016398007574025542, -0.06589394807815552, -0.020155994221568108, -0.006093574222177267, 0.025343824177980423, -0.0026045457925647497, 0.029545117169618607, -0.009465663693845272, -0.07348008453845978, 0.022401219233870506, 0.005158063489943743, -0.0743645653128624, -0.012969574891030788, -0.08409387618303299, -0.005141054280102253, -0.048068221658468246, 0.006280675996094942, -0.04003984108567238, 0.006229648366570473, 0.01740049198269844, 0.014151719398796558, 0.007547867484390736, 0.03133109211921692, 0.01894833706319332, 0.02037711627781391, -0.023200655356049538, -0.010001455433666706, 0.021737858653068542, -0.03973367437720299, -0.0364338755607605, 0.019866837188601494, 0.04769401624798775, -0.008428097702562809, 0.005502501502633095, -0.015691058710217476, -0.03245370462536812, 0.024017101153731346, 0.03742041438817978, 0.04350973293185234, 0.008581181056797504, -0.036331817507743835, -0.002528004115447402, 0.03629780188202858, -0.0059192287735641, 0.057593416422605515, 0.05599454417824745, 0.021040476858615875, 0.005213344004005194, -0.06633618474006653, 0.0026747090741991997, -0.000900428683962673, -0.007173663005232811, -0.06028088182210922, 0.013182191178202629, -0.04470038414001465, -0.008313285186886787, 0.02294551581144333, 0.032351646572351456, -0.020104967057704926, 0.04555084928870201, -0.02076832950115204, 0.06079116091132164, 0.043917957693338394, -0.052728764712810516, -0.03226660192012787, -0.010256594978272915, -0.006523058284074068, 0.030225487425923347, -0.021431690081954002, -0.004205544013530016, 0.10321230441331863, 0.016260869801044464, 0.03605967015028, 0.015589003451168537, 0.03772658109664917, 0.012884528376162052, 0.06266218423843384, -0.016745634377002716, 0.015529471449553967, -0.007313989568501711, 0.0281673651188612, -0.006965299602597952, -0.010154539719223976, -0.00823674350976944, 0.026585502550005913, 0.0016786031192168593, 0.05463380366563797, -0.004677551798522472, -0.0371822826564312, -0.0597706064581871, 0.040005821734666824, -0.040550120174884796, -0.0774262323975563, 0.009669775143265724, -0.0368080772459507, 0.04538075625896454, -0.0031254549976438284, 0.017689649015665054, 0.019033381715416908, -0.04388393834233284, 0.07477279007434845, -0.0525926873087883, -0.025632983073592186, 0.020649263635277748, 0.006790954619646072, 0.008802301250398159, -0.06252610683441162, 0.03468191996216774, -0.015606013126671314, -0.04003984108567238, 0.014823585748672485, -0.05116390809416771, 0.0326918326318264, -0.014525923877954483, 0.027299892157316208, -0.0706225261092186, -0.0065740859135985374, 0.007705203257501125, 0.012748454697430134, -0.04544879123568535, -0.00461376691237092, 0.027759142220020294, 0.03728433698415756, -0.035651449114084244, -0.011583318933844566, 0.010698836296796799, 0.014321812428534031, -0.046095144003629684, -0.03138211742043495, -0.011260142549872398, 0.004626523703336716, -0.009550710208714008, 0.004058839287608862, -0.012518828734755516, -0.021533746272325516, -0.0185911413282156, 0.015061716549098492, -0.0050687650218605995, -0.02554793655872345, -0.02505466714501381, -0.03014044091105461, 0.027129799127578735, -0.0011045400751754642, 0.0161588154733181, -0.02058122679591179, -0.03711424395442009, -0.004694561008363962, -0.01777469553053379, -0.0006320010288618505, -0.00007733906386420131, -0.02529279701411724, 0.03153520077466965, -0.03265781328082085, -0.02988530322909355, 0.0229285079985857, 0.005502501502633095, -0.015061716549098492, 0.0236769150942564, -0.04231908544898033, -0.04470038414001465, -0.03355930745601654, -0.05078970640897751, -0.015835639089345932, 0.04667346179485321, 0.039869748055934906, 0.03759050369262695, -0.00352092063985765, 0.06926178187131882, 0.0017190001672133803, -0.04500655084848404, -0.020360106602311134, -0.02735091932117939, -0.010086501948535442, -0.034903038293123245, 0.005889462772756815, -0.022639349102973938, -0.0736841931939125, -0.03393350914120674, -0.002334523480385542, -0.004498953931033611, 0.042795345187187195, 0.020104967057704926, -0.007313989568501711, 0.0015457181725651026, -0.03946152701973915, -0.005953247658908367, 0.00988239049911499, 0.0330660380423069, -0.03534528240561485, 0.010095006786286831, -0.03330416604876518, 0.008870339021086693, 0.02468046359717846, -0.013437329791486263, 0.03325314074754715, -0.016626570373773575, 0.025003639981150627, 0.02231617271900177, 0.039257414638996124, 0.012773968279361725, -0.05786556378006935, -0.05300091207027435, 0.017553575336933136, -0.056538842618465424, -0.019849827513098717, 0.009006412699818611, 0.04524468258023262, 0.01063079945743084, -0.016124796122312546, -0.018744224682450294, -0.00947416853159666, 0.05878406763076782, 0.007190672680735588, 0.001439410145394504, -0.04629925638437271, -0.019968893378973007, -0.020496180281043053, 0.024289250373840332, -0.04208095371723175, -0.03395051881670952, 0.06841132044792175, 0.010528743267059326, -0.021227579563856125, -0.030786793678998947, 0.03325314074754715, -0.04306749254465103, -0.0028533064760267735, -0.02685764990746975, -0.052864838391542435, -0.022673368453979492, 0.007683941628783941, -0.05599454417824745, -0.023030562326312065, 0.0887203961610794, -0.04201291874051094, -0.03207949921488762, -0.001827434403821826, -0.02884773723781109, 0.009729307144880295, 0.05493997037410736, 0.011234628036618233, 0.026126252487301826, -0.02274140529334545, 0.0081729581579566, -0.0019294900121167302, 0.020173003897070885, -0.023966073989868164, -0.020496180281043053, 0.041740767657756805, -0.027521012350916862, -0.027061762288212776, 0.01772366836667061, 0.01429629884660244, 0.03534528240561485, -0.010664817877113819, 0.05817173421382904, 0.041366565972566605, -0.04044806584715843, 0.056538842618465424, 0.0023090096656233072, 0.018880298361182213, -0.011336684226989746, 0.06868346780538559, 0.0788550153374672, -0.002121907426044345, -0.007139644585549831, 0.04085628688335419, 0.09185010194778442, 0.00046217397903092206, -0.09150991588830948, -0.04500655084848404, 0.00960173737257719, -0.011413225904107094, 0.08742769062519073, 0.08348153531551361, -0.0025492655113339424, -0.024255231022834778 ]
730,129
mmengine.fileio.handlers.json_handler
dump_to_str
null
def dump_to_str(self, obj, **kwargs): kwargs.setdefault('default', set_default) return json.dumps(obj, **kwargs)
(self, obj, **kwargs)
[ -0.0476103276014328, -0.03227150812745094, 0.026273086667060852, -0.04860435426235199, 0.01880076713860035, -0.029392264783382416, 0.005252903327345848, 0.01634141430258751, 0.027798399329185486, -0.07547727972269058, -0.015064607374370098, 0.012888036668300629, -0.05292321741580963, -0.02747276984155178, -0.017789604142308235, 0.034139588475227356, -0.05628233402967453, -0.02030894160270691, 0.09652317315340042, 0.054054345935583115, 0.03386537358164787, -0.019726237282156944, 0.023171044886112213, 0.07259804010391235, -0.02536475472152233, 0.010608636774122715, -0.0022644042037427425, -0.009109031409025192, -0.01373638492077589, 0.04387417063117027, 0.0011814747704192996, -0.0869257003068924, 0.009237568825483322, 0.0483986921608448, 0.009237568825483322, -0.019949035719037056, -0.027609877288341522, 0.06563986837863922, -0.10804013907909393, -0.07705400884151459, -0.000495673157274723, 0.05213485285639763, -0.0901477038860321, -0.032065846025943756, 0.025724658742547035, 0.0017224039183929563, 0.0062340740114450455, 0.09453511983156204, 0.031637389212846756, -0.030043521896004677, 0.03842417523264885, 0.003476942190900445, -0.009777426719665527, -0.010163039900362492, -0.05909302085638046, -0.01112278737127781, 0.018989289179444313, 0.003061337163671851, -0.007849362678825855, 0.024130793288350105, -0.019554853439331055, 0.03432811051607132, 0.030420565977692604, -0.02457639016211033, -0.02596459537744522, -0.036847446113824844, -0.05895591527223587, 0.025021987035870552, 0.018595106899738312, 0.03739587217569351, 0.011439846828579903, -0.037190213799476624, -0.04476536437869072, 0.01698410138487816, 0.01164550706744194, 0.006054121069610119, -0.03688172250986099, -0.019983312115073204, -0.03979524224996567, -0.0167270265519619, 0.005300033837556839, -0.03763581067323685, -0.022022776305675507, -0.013042282313108444, -0.04874145984649658, -0.07259804010391235, -0.047370392829179764, 0.012682377360761166, 0.005454279016703367, -0.013522155582904816, 0.0033955350518226624, 0.006748224142938852, -0.009460367262363434, 0.07499741017818451, -0.0626235231757164, -0.04359995573759079, 0.009803134948015213, -0.01026587001979351, 0.057036418467760086, -0.006735370494425297, 0.0034340962301939726, -0.045553725212812424, -0.0717753991484642, -0.02311963029205799, -0.03835562244057655, -0.062246475368738174, 0.06166377291083336, -0.014276242814958096, -0.007823655381798744, 0.020977336913347244, -0.016915548592805862, -0.02207419089972973, -0.015295974910259247, -0.06378892809152603, 0.037327319383621216, 0.004627353977411985, -0.004948697984218597, 0.009237568825483322, 0.053026046603918076, -0.03698455169796944, -0.0241993460804224, -0.029255159199237823, -0.015381666831672192, 0.011876874603331089, 0.02824399620294571, 0.010788589715957642, 0.013187957927584648, 0.04257165268063545, 0.07719111442565918, 0.025176232680678368, 0.05288894101977348, 0.0006035911501385272, -0.06049836426973343, 0.016289999708533287, 0.05148359388113022, -0.011885443702340126, -0.01383921504020691, 0.033402640372514725, 0.04833013936877251, 0.04072071239352226, 0.04027511551976204, -0.05785905942320824, -0.013770662248134613, 0.01453331857919693, 0.02056601643562317, 0.010308715514838696, 0.033779680728912354, 0.009700304828584194, -0.05141504108905792, 0.00045630850945599377, 0.09782568365335464, 0.024422144517302513, -0.055699627846479416, -0.005998421460390091, -0.02454211376607418, -0.007369489409029484, -0.04414838179945946, -0.034088172018527985, 0.02479918859899044, 0.00180059764534235, 0.03062622621655464, -0.006799639202654362, 0.021594317629933357, -0.021234411746263504, 0.053848687559366226, 0.05662509799003601, 0.051689255982637405, -0.011816889978945255, 0.03299131989479065, 0.03609335795044899, -0.030677640810608864, -0.013847784139215946, -0.060909684747457504, 0.04442259669303894, 0.09926530718803406, 0.08205840736627579, -0.01397632248699665, 0.04548517242074013, -0.05765340104699135, 0.03379682078957558, 0.008530612103641033, -0.04222888872027397, 0.029049498960375786, 0.025896042585372925, 0.04575938731431961, -0.06385748088359833, 0.021063027903437614, 0.0037532979622483253, -0.02207419089972973, 0.012005412019789219, 0.038012854754924774, 0.03914398327469826, 0.010034502483904362, -0.022142745554447174, 0.033231254667043686, -0.01777246594429016, 0.01347931008785963, -0.09981373697519302, 0.01634998247027397, 0.011045664548873901, -0.048158757388591766, -0.005261472426354885, 0.005325741600245237, -0.022622618824243546, 0.02798692137002945, -0.005355733446776867, 0.03941819816827774, -0.012039689347147942, -0.02707858942449093, -0.004387416876852512, 0.010077347978949547, 0.007857931777834892, -0.07883639633655548, -0.013950614258646965, 0.03299131989479065, 0.007090991362929344, 0.03695027530193329, 0.01203111931681633, -0.009760288521647453, 0.043531402945518494, 0.013136543333530426, -0.017703913152217865, 0.00006647804548265412, 0.0062683504074811935, -0.013599278405308723, 0.0034340962301939726, 0.011062802746891975, -0.0719125047326088, -0.000349193811416626, -0.03396820276975632, -0.016915548592805862, -0.0434628501534462, -0.04641064256429672, 0.051346488296985626, -0.0020598152186721563, 0.03592197597026825, 0.028603902086615562, -0.08329236507415771, 0.011731198988854885, -0.04243454709649086, 0.06649678945541382, -0.01569872535765171, 0.0017074078787118196, -0.025176232680678368, 0.047370392829179764, 0.04397699981927872, 0.009623182006180286, 0.019332055002450943, -0.030043521896004677, -0.01617860049009323, 0.0852804183959961, 0.031208930537104607, -0.04113203287124634, -0.01814951002597809, -0.0254504457116127, -0.038835495710372925, 0.03787574917078018, 0.0651257187128067, -0.02414793148636818, -0.005565678235143423, -0.03636757284402847, -0.022416958585381508, -0.06773074716329575, 0.029443681240081787, -0.019983312115073204, -0.016787011176347733, -0.017875296995043755, -0.008911940269172192, -0.021165858954191208, 0.04730184003710747, -0.008877663873136044, -0.03907543048262596, -0.011097080074250698, 0.0008028244483284652, -0.03278565779328346, 0.01970909908413887, -0.04579366371035576, -0.054397113621234894, 0.010677190497517586, -0.027712708339095116, 0.001695625251159072, -0.024267898872494698, 0.07218671590089798, -0.027918366715312004, 0.057550571858882904, -0.03247716650366783, 0.028312548995018005, 0.01564731076359749, 0.009837411344051361, -0.004408839624375105, 0.04123486205935478, 0.04980403557419777, -0.05381441116333008, 0.013290788047015667, -0.009297553449869156, -0.03148314356803894, 0.03746442869305611, -0.032185815274715424, 0.02212560549378395, 0.024902017787098885, -0.04459397867321968, -0.03222009167075157, 0.004785883240401745, 0.012545269913971424, -0.0072623747400939465, -0.019520577043294907, -0.00222155824303627, -0.032237231731414795, -0.01144841592758894, -0.01760108210146427, -0.006079828832298517, 0.010360131040215492, 0.03441379964351654, 0.044182658195495605, 0.00886052567511797, 0.015501635149121284, 0.002188352635130286, -0.0066282558254897594, 0.011662645265460014, 0.04288014397025108, -0.03307700902223587, -0.04380561411380768, -0.03893832489848137, -0.011928290128707886, 0.07122696936130524, -0.060395535081624985, -0.02673582173883915, 0.024953434243798256, 0.05857887119054794, 0.021405795589089394, -0.045348066836595535, -0.04264020919799805, 0.023959409445524216, 0.024987710639834404, 0.033882513642311096, -0.010968542657792568, -0.0005730635020881891, -0.006748224142938852, -0.06793640553951263, 0.023085353896021843, 0.03054053522646427, 0.0026907206047326326, 0.009691735729575157, 0.0005612808745354414, -0.03261427581310272, 0.03278565779328346, 0.03151741996407509, 0.029786447063088417, 0.019040703773498535, -0.0006153737776912749, -0.06903326511383057, 0.00733092799782753, 0.06169804930686951, 0.02483346499502659, -0.02536475472152233, -0.007772240322083235, 0.03914398327469826, 0.02483346499502659, -0.00011494743375806138, -0.028569625690579414, -0.030591949820518494, -0.017738189548254013, -0.009914534166455269, 0.017018379643559456, 0.06210936978459358, 0.0417490154504776, 0.03910970687866211, -0.0016602773685008287, 0.04757605120539665, -0.04394272342324257, -0.03079761005938053, 0.016941256821155548, -0.019006427377462387, -0.04377133771777153, -0.04740466922521591, 0.06810779124498367, -0.014876085333526134, -0.011097080074250698, -0.03729304298758507, -0.037190213799476624, 0.02863817848265171, -0.025381892919540405, 0.03657323122024536, 0.0551169253885746, 0.01613575406372547, 0.02337670512497425, 0.02198849990963936, 0.033779680728912354, 0.0031256061047315598, -0.03287135064601898, -0.01746397651731968, -0.01760108210146427, 0.012588116340339184, 0.002446498954668641, -0.01036870013922453, -0.05549396947026253, 0.029049498960375786, 0.01403630618005991, -0.029477957636117935, 0.05473988130688667, -0.009657458402216434, -0.00767797976732254, -0.010831435211002827, -0.030043521896004677, -0.040172286331653595, 0.020257527008652687, 0.0037918593734502792, -0.03285421058535576, 0.03333408385515213, 0.03285421058535576, -0.019760513678193092, -0.025124816223978996, -0.05494553968310356, -0.05247762054204941, 0.03862983360886574, -0.004957267083227634, -0.03276852145791054, 0.058373209089040756, -0.023393843322992325, -0.009306122548878193, -0.016452813521027565, 0.06337761133909225, -0.009220430627465248, 0.03791002556681633, 0.01259668543934822, -0.02958078682422638, 0.0030827601440250874, -0.03808140754699707, 0.06800495833158493, 0.03962386026978493, 0.027575600892305374, -0.05141504108905792, 0.004016800317913294, -0.04322291165590286, 0.07259804010391235, 0.009451798163354397, 0.06886187940835953, -0.040994927287101746, -0.01569872535765171, 0.04833013936877251, 0.03698455169796944, -0.028055474162101746, -0.04771316051483154, 0.04264020919799805, -0.010454392060637474, 0.02608456462621689, -0.03640184924006462, 0.014019167982041836, 0.02411365509033203, 0.03324839472770691, 0.0476103276014328, -0.012425301596522331, -0.01000879518687725, -0.036504678428173065, -0.02983786165714264, -0.07143262773752213, 0.03353974595665932, 0.0025021987967193127, 0.011696921661496162, 0.006028413772583008, -0.001477111247368157, -0.013547863811254501, 0.011131356470286846, 0.03540782630443573, -0.00770797161385417, 0.05083233863115311, -0.05909302085638046, 0.06344616413116455, -0.053540196269750595, -0.0073009361512959, 0.011594091542065144, 0.05748201534152031, -0.07897350192070007, -0.012133949436247349, 0.020925922319293022, 0.04075498878955841, 0.012588116340339184, -0.027232833206653595, -0.03151741996407509, -0.029272297397255898, -0.042537376284599304, -0.021337242797017097, 0.05179208517074585, 0.001853083842433989, -0.001758822938427329, 0.04740466922521591, 0.048707183450460434, 0.02457639016211033, 0.04829586297273636, 0.053026046603918076, -0.0043124365620315075, 0.07390055060386658, -0.07108986377716064, -0.029786447063088417, 0.0038239937275648117, 0.00944322906434536, -0.03640184924006462, -0.023685196414589882, -0.022434096783399582, -0.023839440196752548, 0.01914353296160698, 0.01282805297523737, -0.04476536437869072, 0.01265666913241148, -0.04394272342324257, -0.050352465361356735, -0.002667155349627137, 0.04726755991578102, -0.048364415764808655, 0.0032155823428183794, 0.0021455069072544575, 0.007900778204202652, 0.015107452869415283, 0.02161145582795143, 0.008449205197393894, 0.00424602534621954, 0.022571204230189323, -0.0034533769357949495, 0.010085917077958584, -0.05127793550491333, -0.04980403557419777, 0.06961596757173538, -0.015098883770406246, -0.03862983360886574, 0.00025412955437786877, -0.002324388362467289, -0.01112278737127781, 0.027284249663352966, -0.011037095449864864, 0.09062758088111877, 0.00012853760563302785, 0.00035535290953703225, -0.004635923076421022, 0.04397699981927872, 0.013102266006171703, 0.08507475256919861, 0.012176795862615108, 0.01893787458539009, 0.02949509583413601, -0.06252069026231766, 0.018303755670785904, -0.011071372777223587, 0.00383898988366127, -0.05741346254944801, 0.008016461506485939, -0.021937085315585136, 0.031037546694278717, 0.08041312545537949, 0.012965159490704536, -0.02186853066086769, 0.004935843870043755, -0.04507385194301605, 0.038664110004901886, 0.031723082065582275, -0.07732822000980377, -0.032579999417066574, -0.027918366715312004, 0.027764122933149338, 0.03623046725988388, 0.016067201271653175, 0.0020062578842043877, 0.08000180125236511, 0.03048912063241005, 0.01919494941830635, 0.00459307711571455, 0.05210057646036148, -0.006718232296407223, 0.029649341478943825, 0.003656894899904728, 0.010274439118802547, -0.030763333663344383, -0.04078926518559456, -0.0061783744022250175, 0.022502649575471878, -0.022656895220279694, 0.03585342317819595, 0.012476717121899128, 0.016409967094659805, 0.013162250630557537, 0.012733791954815388, -0.04466253146529198, 0.03480798378586769, -0.022708309814333916, -0.06790213286876678, 0.053711581975221634, -0.009074755012989044, 0.0346708782017231, 0.005364302545785904, 0.010231593623757362, -0.013830645941197872, -0.056042395532131195, 0.06351471692323685, -0.03729304298758507, 0.010034502483904362, 0.07108986377716064, -0.023513812571763992, 0.008217837661504745, -0.03139745071530342, 0.04109775647521019, -0.024782050400972366, -0.014936069957911968, 0.0509008914232254, -0.0073437816463410854, 0.041817568242549896, 0.043360017240047455, 0.03862983360886574, -0.06975307315587997, 0.017318299040198326, 0.00412819953635335, 0.021508626639842987, -0.06049836426973343, 0.018560830503702164, -0.0015799413667991757, 0.028021197766065598, -0.03108896128833294, -0.03405389562249184, -0.01227105688303709, 0.0014642575988546014, -0.036847446113824844, -0.0329570434987545, 0.036641787737607956, 0.03701883181929588, -0.04514240846037865, -0.010085917077958584, -0.012382456101477146, -0.024027962237596512, -0.008419212885200977, 0.01134558580815792, -0.016324276104569435, -0.043531402945518494, -0.011157063767313957, -0.0037875748239457607, 0.04462825506925583, -0.012733791954815388, -0.011919720098376274, -0.028621040284633636, -0.019417747855186462, 0.03186018764972687, -0.0434628501534462, 0.00039659207686781883, 0.0069667380303144455, 0.006066974718123674, -0.015381666831672192, 0.004166760481894016, -0.056693654507398605, 0.03520216420292854, 0.014978915452957153, -0.01777246594429016, 0.013273649848997593, -0.04942699521780014, -0.04130341857671738, -0.03451663255691528, -0.018423723056912422, -0.00957176648080349, 0.018783628940582275, 0.06899898499250412, 0.03501364216208458, 0.01491893082857132, 0.051689255982637405, -0.0066368249244987965, -0.05833893269300461, -0.016615627333521843, -0.049529824405908585, -0.011131356470286846, -0.012845191173255444, 0.005017251241952181, -0.05234051123261452, -0.06303483992815018, -0.002827827353030443, -0.061526667326688766, 0.008800541050732136, 0.01564731076359749, -0.0026114557404071093, -0.016932686790823936, -0.03657323122024536, -0.02832968719303608, -0.008834818378090858, 0.051997747272253036, 0.024593528360128403, -0.06701093912124634, 0.04030939191579819, -0.030386289581656456, -0.03544210270047188, 0.0417490154504776, -0.02772984653711319, 0.0165127981454134, -0.03520216420292854, 0.015527342446148396, 0.03194588050246239, 0.022656895220279694, 0.02070312388241291, -0.09412380307912827, -0.04915278032422066, 0.006182658951729536, -0.02363377995789051, -0.028124026954174042, 0.008350660093128681, 0.01823520101606846, 0.026547299697995186, -0.019949035719037056, 0.01919494941830635, -0.006568271666765213, 0.041817568242549896, 0.0032155823428183794, 0.03647040203213692, -0.04373706132173538, 0.016367122530937195, -0.01919494941830635, 0.040686435997486115, -0.026701545342803, -0.015330251306295395, 0.07002728432416916, 0.018166648223996162, -0.024353591725230217, -0.0509008914232254, 0.016075769439339638, -0.021337242797017097, 0.00782794039696455, -0.0409606508910656, -0.017489682883024216, -0.022262712940573692, -0.025433307513594627, -0.039829518646001816, -0.029649341478943825, 0.09055902808904648, -0.0008954786462709308, -0.002784981392323971, 0.0032627128530293703, 0.006683955434709787, -0.005385725758969784, 0.024593528360128403, 0.017583943903446198, 0.011679783463478088, -0.016795581206679344, 0.02906663715839386, -0.015081745572388172, 0.01554448064416647, -0.031466007232666016, -0.030300598591566086, 0.02548472210764885, -0.024764912202954292, 0.0160500630736351, 0.0534716434776783, 0.022913970053195953, 0.06498861312866211, -0.011928290128707886, 0.06615401804447174, 0.031980156898498535, -0.01410485990345478, 0.011585522443056107, 0.020086143165826797, 0.036333296447992325, -0.03203156962990761, 0.036641787737607956, 0.09501499682664871, -0.022262712940573692, -0.047850266098976135, 0.09165588021278381, 0.04976975917816162, 0.012451008893549442, -0.11743195354938507, -0.050352465361356735, 0.0003119714674539864, -0.0013282218715175986, 0.03979524224996567, 0.08603450655937195, 0.007455180864781141, -0.03993234783411026 ]
730,130
mmengine.fileio.handlers.json_handler
load_from_fileobj
null
def load_from_fileobj(self, file): return json.load(file)
(self, file)
[ -0.011034713126718998, -0.03719139099121094, -0.020928798243403435, -0.01431833952665329, -0.01034342311322689, 0.0018427192699164152, -0.003830177476629615, 0.07721706479787827, 0.01291847787797451, -0.0038431391585618258, 0.010179242119193077, 0.008209066465497017, -0.04178846627473831, -0.01640084944665432, -0.044830139726400375, 0.0045970771461725235, -0.05329843983054161, 0.021412700414657593, -0.017938969656825066, -0.003642232855781913, -0.03556685894727707, -0.008908997289836407, 0.022328659892082214, 0.08226348459720612, 0.023382876068353653, -0.01007554866373539, 0.017152627930045128, 0.023244619369506836, 0.013411021791398525, -0.030434032902121544, -0.006977706216275692, -0.021309006959199905, -0.0015327190048992634, 0.08419909328222275, -0.015536737628281116, -0.023849496617913246, 0.0009402621071785688, 0.006096311844885349, -0.12857989966869354, 0.007081399671733379, -0.023503853008151054, 0.05644381046295166, -0.023555699735879898, -0.004605717957019806, 0.028498420491814613, -0.004562512505799532, 0.01583917625248432, 0.029327968135476112, 0.0017347052926197648, 0.0032015356700867414, 0.046350978314876556, -0.047975510358810425, -0.045244913548231125, 0.007703560404479504, -0.022605175152420998, -0.007470250129699707, -0.03978372737765312, 0.039714597165584564, 0.007815894670784473, 0.047595299780368805, -0.026338139548897743, -0.041892159730196, 0.028705807402729988, -0.06947462260723114, -0.001206516637466848, 0.02167193405330181, -0.0034823722671717405, 0.01231359876692295, 0.03440894931554794, -0.02132628858089447, 0.010974224656820297, 0.051190007477998734, 0.04116630554199219, -0.007189413532614708, 0.03200671449303627, 0.008762097917497158, -0.03784811496734619, -0.026873890310525894, -0.0596928708255291, -0.004141257610172033, -0.028463855385780334, -0.022829845547676086, 0.018457436934113503, 0.02034120075404644, -0.053056489676237106, -0.04016393423080444, 0.0703732967376709, -0.042963657528162, -0.07929093390703201, 0.0037740101106464863, -0.019010469317436218, 0.038124632090330124, -0.06695141643285751, 0.02481730282306671, -0.006787601392716169, -0.07590361684560776, 0.03961090371012688, 0.025767825543880463, -0.04358581826090813, 0.016236668452620506, -0.008567672222852707, -0.04617815837264061, -0.036914873868227005, -0.007617149036377668, 0.020427612587809563, 0.000226289383135736, 0.034080587327480316, 0.029794588685035706, -0.010844607837498188, 0.05564882606267929, -0.055821649730205536, -0.007967114448547363, -0.0047526173293590546, 0.060591548681259155, 0.06328757852315903, -0.030710548162460327, -0.0037610484287142754, 0.017671095207333565, 0.05239976570010185, -0.0011957152746617794, -0.014456597156822681, 0.008498543873429298, 0.023348312824964523, 0.048355720937252045, 0.03302636742591858, -0.01064586266875267, 0.011293946765363216, -0.07362236082553864, 0.09000592678785324, -0.006511085666716099, 0.033164627850055695, -0.028878629207611084, -0.01558858435600996, -0.03701856732368469, 0.029604485258460045, -0.028273751959204674, -0.0026247408241033554, 0.021222595125436783, 0.027599744498729706, 0.02886134758591652, 0.0684722512960434, 0.03454720601439476, 0.0070554763078689575, -0.08316215872764587, -0.04942721873521805, -0.015096040442585945, -0.0016007678350433707, -0.018854929134249687, -0.1092929095029831, 0.01730816811323166, 0.010792761109769344, -0.028584832325577736, 0.012019800953567028, -0.007310389541089535, -0.01261603832244873, -0.06079893559217453, -0.0223113764077425, -0.016876110807061195, -0.025785109028220177, 0.000025383296815562062, 0.0052581229247152805, 0.06093719229102135, 0.028930475935339928, 0.024592634290456772, -0.0013879801845178008, 0.01418872270733118, 0.006048785522580147, -0.03344114124774933, -0.046420108526945114, -0.027219533920288086, -0.04731878638267517, -0.009159589186310768, -0.025543157011270523, 0.0615939199924469, 0.01742914319038391, -0.025767825543880463, 0.010291576385498047, 0.02450622245669365, 0.039334386587142944, 0.04033675789833069, -0.04565969109535217, 0.001904287259094417, 0.06726249307394028, 0.021309006959199905, 0.04856310784816742, 0.011233458295464516, 0.02924155816435814, 0.06425538659095764, 0.06570709496736526, 0.012520985677838326, 0.04507209360599518, -0.0011481890687718987, 0.0075912256725132465, -0.027029430493712425, 0.014897294342517853, -0.08115741610527039, -0.00010112813470186666, 0.0028256468940526247, -0.07223977893590927, 0.026044342666864395, -0.05367865040898323, -0.03325103968381882, 0.01636628620326519, -0.012132135219871998, -0.04814833402633667, 0.04541773721575737, 0.006027182564139366, -0.004078609868884087, 0.022518763318657875, 0.05461189150810242, -0.0062561724334955215, -0.047180525958538055, -0.030209362506866455, 0.02606162428855896, 0.0701313465833664, -0.0015737643698230386, -0.029155146330595016, 0.002055506920441985, -0.02110162004828453, 0.011656873859465122, 0.07355323433876038, 0.0599348247051239, -0.04960004240274429, -0.01590830646455288, -0.026148036122322083, 0.004947042558342218, -0.01333325169980526, -0.00497296592220664, -0.014154157601296902, 0.017394578084349632, -0.017817994579672813, -0.029518073424696922, 0.01558858435600996, -0.04489926993846893, 0.049911122769117355, 0.02450622245669365, 0.029984693974256516, -0.00037939928006380796, 0.035670552402734756, -0.010032342746853828, 0.06225064396858215, -0.029863718897104263, -0.009012690745294094, -0.020514024421572685, -0.0063123395666480064, 0.05440450459718704, 0.04897788166999817, -0.0066061378456652164, -0.023590262979269028, -0.02037576586008072, 0.09705708175897598, 0.04068240150809288, 0.020254790782928467, 0.071686752140522, -0.037675291299819946, -0.046765752136707306, 0.03857396915555, -0.06878333538770676, 0.008018961176276207, -0.006744395941495895, 0.018733952194452286, -0.03791724517941475, 0.05775725841522217, 0.06190500035881996, -0.04455362632870674, -0.01575276628136635, -0.033354733139276505, 0.029414379969239235, 0.04434623941779137, -0.017290884628891945, 0.06632925570011139, 0.01738593727350235, 0.03401145711541176, -0.01558858435600996, -0.03003654070198536, -0.012192623689770699, -0.010334782302379608, -0.026199882850050926, 0.02704671211540699, 0.04092435538768768, -0.08274738490581512, -0.020479459315538406, 0.03181661292910576, -0.007504814770072699, 0.015960153192281723, -0.051051750779151917, 0.008520146831870079, 0.009427464567124844, -0.05157021805644035, 0.01007554866373539, 0.030589573085308075, 0.0028558908961713314, -0.07652577757835388, -0.03484100475907326, -0.0072542219422757626, 0.013471509329974651, -0.07652577757835388, 0.004562512505799532, 0.060971759259700775, 0.010939660482108593, -0.02780713140964508, -0.019857298582792282, 0.053886037319898605, -0.02250148169696331, -0.020479459315538406, -0.01954621821641922, -0.025543157011270523, -0.0506715402007103, -0.049081575125455856, 0.03840114548802376, 0.04175390303134918, -0.001220558537170291, -0.0025318488478660583, 0.027167687192559242, -0.008230668492615223, 0.035808809101581573, -0.015156527981162071, 0.011786490678787231, 0.05329843983054161, -0.008174501359462738, -0.044761013239622116, 0.0008587114862166345, -0.011008789762854576, -0.026338139548897743, 0.10943116992712021, -0.0427217073738575, 0.04396602883934975, 0.019373396411538124, -0.006083350162953138, 0.01617618091404438, 0.05533774569630623, -0.016150256618857384, 0.015977434813976288, 0.01193339005112648, -0.026165317744016647, 0.010853249579668045, 0.023814933374524117, -0.016124334186315536, 0.010766837745904922, 0.012037083506584167, 0.03416699543595314, -0.0774935856461525, 0.006044465117156506, -0.015597225166857243, -0.0509134903550148, -0.012495062313973904, 0.05526861548423767, -0.008031923323869705, 0.01628851518034935, -0.0462818518280983, -0.06525775790214539, 0.0383320190012455, 0.071686752140522, 0.02091151475906372, -0.08433735370635986, -0.0186302587389946, -0.004002999980002642, 0.031194450333714485, 0.01221854705363512, -0.029189709573984146, -0.04140825569629669, 0.004065648186951876, -0.06003851816058159, -0.012244470417499542, 0.023227335885167122, 0.020444894209504128, 0.03463361784815788, -0.014880012720823288, -0.024679044261574745, -0.009418822824954987, -0.02533577010035515, -0.0028062043711543083, 0.005262443330138922, 0.011000148020684719, 0.04393146559596062, -0.009505234658718109, 0.005201955325901508, -0.016150256618857384, -0.01989186368882656, 0.08302389830350876, 0.008515825495123863, 0.025214795023202896, 0.004065648186951876, -0.0065499707125127316, -0.018129074946045876, 0.028705807402729988, -0.009824955835938454, -0.024869149550795555, -0.022864408791065216, -0.044484496116638184, 0.020444894209504128, -0.021274441853165627, -0.031038910150527954, 0.026338139548897743, -0.020410330966114998, -0.010766837745904922, 0.015614507719874382, 0.02371123991906643, 0.033130060881376266, 0.029690895229578018, 0.01673785410821438, -0.008144257590174675, -0.0006588855758309364, 0.009133665822446346, -0.040129370987415314, -0.019045032560825348, 0.0372605174779892, 0.002609618939459324, -0.011691438034176826, 0.022034861147403717, 0.037744421511888504, 0.01606384664773941, -0.025940649211406708, -0.0580337755382061, 0.007440006360411644, 0.09712621569633484, -0.0342361256480217, -0.009133665822446346, -0.026839325204491615, -0.007284465711563826, -0.03247333690524101, 0.05208868533372879, -0.030710548162460327, -0.002631221665069461, -0.03034762106835842, -0.0383320190012455, 0.03549772873520851, -0.03781355172395706, 0.02818734012544155, 0.004454498644918203, 0.03378678858280182, -0.020410330966114998, 0.0555451326072216, -0.10002963244915009, 0.06909441202878952, -0.02466176263988018, -0.02908601611852646, -0.061835870146751404, 0.0016320919385179877, 0.046420108526945114, -0.006623419933021069, 0.003026552964001894, 0.026148036122322083, 0.013696178793907166, -0.03496197983622551, -0.03636184334754944, -0.017558760941028595, 0.011440846137702465, 0.020617717877030373, -0.050360459834337234, -0.04980742931365967, 0.004002999980002642, 0.04310191795229912, -0.08696424961090088, 0.007945511490106583, -0.0024043922312557697, 0.03076239489018917, 0.005392060149461031, 0.05360952019691467, 0.029310686513781548, -0.038020938634872437, -0.007949831895530224, 0.07424452155828476, -0.1081177219748497, -0.028532985597848892, -0.010559450834989548, -0.054335374385118484, 0.06190500035881996, -0.024713609367609024, -0.009297847747802734, -0.0055000740103423595, 0.013419662602245808, -0.07244716584682465, -0.039680033922195435, 0.015407120808959007, 0.07680229097604752, 0.062146950513124466, 0.005305648781359196, -0.005305648781359196, -0.02920699305832386, -0.006009900476783514, -0.05606359988451004, -0.008710251189768314, 0.027219533920288086, 0.02473089098930359, -0.003199375467374921, 0.011674156412482262, 0.006243210751563311, 0.020773258060216904, -0.06228520721197128, 0.0232619009912014, 0.044830139726400375, -0.052330635488033295, -0.006398750934749842, 0.004450177773833275, 0.024990124627947807, 0.01579597033560276, 0.011319870129227638, -0.008792341686785221, -0.008291156962513924, 0.03295724093914032, 0.0021051934454590082, -0.040889788419008255, 0.039299823343753815, -0.047215092927217484, 0.029327968135476112, -0.020807821303606033, -0.0030654380097985268, -0.013324609957635403, -0.022708868607878685, 0.011751926504075527, 0.036949437111616135, 0.023348312824964523, -0.013497432693839073, 0.03147096559405327, 0.047526173293590546, -0.04773356020450592, 0.044069722294807434, -0.03371765837073326, 0.03743334114551544, -0.020202944055199623, -0.0670551061630249, 0.04939265549182892, 0.0012302797986194491, -0.01840559020638466, -0.0498419925570488, -0.05239976570010185, -0.0036508741322904825, 0.014741754159331322, 0.037744421511888504, 0.022518763318657875, -0.045590560883283615, -0.0325770303606987, -0.025975212454795837, -0.022708868607878685, -0.003421884262934327, 0.017697017639875412, -0.024955561384558678, -0.025404898449778557, -0.017869841307401657, 0.00850718468427658, -0.01617618091404438, 0.028273751959204674, -0.0010936419712379575, 0.0010850009275600314, -0.023797649890184402, -0.03057228960096836, -0.00509394146502018, 0.00909046083688736, 0.015484890900552273, 0.06280367821455002, -0.021118901669979095, 0.028878629207611084, 0.009401541203260422, 0.011138406582176685, -0.06626012176275253, -0.006571573205292225, -0.04572881758213043, -0.02965633198618889, -0.04420797899365425, 0.014707189984619617, 0.07272368669509888, -0.039645466953516006, 0.05972743779420853, -0.04787181690335274, 0.0681266039609909, -0.01609840989112854, 0.12457041442394257, -0.036085326224565506, 0.028308315202593803, 0.04341299831867218, 0.032559748739004135, 0.024782737717032433, 0.017334090545773506, 0.013212275691330433, 0.029137862846255302, 0.020807821303606033, 0.06269998103380203, 0.003942511975765228, -0.03788267821073532, -0.021395418792963028, -0.001908607897348702, -0.01761924847960472, -0.016616877168416977, -0.03836658224463463, 0.02443709410727024, -0.016729213297367096, 0.03674205020070076, 0.10072091966867447, -0.0010201925178989768, 0.02170649915933609, 0.022363223135471344, -0.017169909551739693, 0.016011999920010567, 0.04151194915175438, 0.023192772641777992, -0.0001030858838930726, -0.022829845547676086, -0.03269800543785095, -0.02523207664489746, -0.006264813710004091, 0.012866631150245667, -0.03553229570388794, -0.019459806382656097, -0.008161540143191814, 0.0364309698343277, -0.013134505599737167, -0.0005316990427672863, 0.007452968042343855, 0.012754295952618122, 0.009807673282921314, -0.07770097255706787, -0.023348312824964523, -0.04351669177412987, 0.040094807744026184, 0.023624828085303307, 0.012944401241838932, -0.026839325204491615, -0.021499112248420715, -0.05208868533372879, 0.06757357716560364, 0.017671095207333565, 0.046834882348775864, 0.09353150427341461, 0.022328659892082214, -0.03019208088517189, 0.017904404550790787, -0.010939660482108593, -0.0509134903550148, -0.031920306384563446, 0.028498420491814613, -0.049565475434064865, 0.022415069863200188, -0.007478891406208277, -0.012235828675329685, 0.010421193204820156, -0.0027975633274763823, -0.024955561384558678, 0.028965041041374207, 0.019649911671876907, -0.004981606733053923, -0.06937092542648315, -0.055510569363832474, 0.009462028741836548, -0.0427217073738575, -0.007608508225530386, -0.004121815320104361, 0.0033894800581038, 0.049150701612234116, -0.017135344445705414, -0.012832066044211388, 0.019148726016283035, -0.05996938794851303, 0.012469138950109482, 0.0325770303606987, -0.04787181690335274, 0.06767726689577103, -0.007081399671733379, 0.02500740811228752, 0.03421884402632713, 0.00482174614444375, 0.018457436934113503, -0.05654750391840935, -0.02314092591404915, 0.017480989918112755, -0.010801402851939201, -0.015156527981162071, 0.0009402621071785688, 0.03719139099121094, 0.057065971195697784, -0.015407120808959007, 0.06028046831488609, 0.008783700875937939, -0.0012626840034499764, 0.024523504078388214, -0.02129172533750534, -0.01193339005112648, -0.030313055962324142, 0.06114457920193672, 0.0023590263444930315, -0.013938129879534245, 0.0004231449565850198, -0.014387467876076698, 0.029137862846255302, -0.040025677531957626, 0.06418625265359879, 0.00680056307464838, 0.023555699735879898, 0.011596386320888996, 0.027858978137373924, -0.043240174651145935, 0.02901688776910305, -0.06816117465496063, 0.022553328424692154, -0.004203905817121267, 0.004147738683968782, 0.02473089098930359, 0.003305229125544429, -0.01303081214427948, 0.05056784674525261, 0.010524886660277843, -0.0651540607213974, 0.04230693355202675, -0.02144726552069187, 0.007440006360411644, -0.015925588086247444, -0.014784960076212883, -0.0008446697029285133, -0.031125321984291077, -0.046834882348775864, -0.022190401330590248, 0.04078609496355057, 0.014240569435060024, -0.0049211191944777966, 0.05495753511786461, 0.0462818518280983, -0.06245803087949753, -0.0010104712564498186, 0.01360112614929676, -0.044761013239622116, -0.03527306020259857, 0.007193733938038349, -0.0665712058544159, 0.07127197831869125, 0.08454474061727524, 0.014629419893026352, -0.025214795023202896, -0.010766837745904922, -0.10224175453186035, 0.021568240597844124, 0.040855225175619125, -0.013860359787940979, -0.0277725663036108, -0.05056784674525261, -0.033009085804224014, -0.0427217073738575, 0.009574363008141518, -0.0025620926171541214, 0.013627049513161182, 0.03632727637887001, -0.04057870805263519, -0.02158552221953869, -0.03625814989209175, -0.009012690745294094, -0.010861890390515327, -0.0317474827170372, 0.06636381894350052, -0.005759308114647865, -0.038470275700092316, 0.08267825841903687, -0.02514566481113434, 0.038504838943481445, 0.005927809979766607, 0.07873790711164474, 0.013246839866042137, 0.0013210115721449256, -0.02431611716747284, 0.012832066044211388, 0.031643789261579514, -0.03019208088517189, -0.057480745017528534, -0.025214795023202896, 0.009392899461090565, -0.02742692083120346, 0.017662454396486282, 0.0007064117235131562, 0.016426773741841316, -0.008075128309428692 ]
730,132
mmengine.fileio.backends.lmdb_backend
LmdbBackend
Lmdb storage backend. Args: db_path (str): Lmdb database path. readonly (bool): Lmdb environment parameter. If True, disallow any write operations. Defaults to True. lock (bool): Lmdb environment parameter. If False, when concurrent access occurs, do not lock the database. Defaults to False. readahead (bool): Lmdb environment parameter. If False, disable the OS filesystem readahead mechanism, which may improve random read performance when a database is larger than RAM. Defaults to False. **kwargs: Keyword arguments passed to `lmdb.open`. Attributes: db_path (str): Lmdb database path.
class LmdbBackend(BaseStorageBackend): """Lmdb storage backend. Args: db_path (str): Lmdb database path. readonly (bool): Lmdb environment parameter. If True, disallow any write operations. Defaults to True. lock (bool): Lmdb environment parameter. If False, when concurrent access occurs, do not lock the database. Defaults to False. readahead (bool): Lmdb environment parameter. If False, disable the OS filesystem readahead mechanism, which may improve random read performance when a database is larger than RAM. Defaults to False. **kwargs: Keyword arguments passed to `lmdb.open`. Attributes: db_path (str): Lmdb database path. """ def __init__(self, db_path, readonly=True, lock=False, readahead=False, **kwargs): try: import lmdb # noqa: F401 except ImportError: raise ImportError( 'Please run "pip install lmdb" to enable LmdbBackend.') self.db_path = str(db_path) self.readonly = readonly self.lock = lock self.readahead = readahead self.kwargs = kwargs self._client = None def get(self, filepath: Union[str, Path]) -> bytes: """Get values according to the filepath. Args: filepath (str or Path): Here, filepath is the lmdb key. Returns: bytes: Expected bytes object. Examples: >>> backend = LmdbBackend('path/to/lmdb') >>> backend.get('key') b'hello world' """ if self._client is None: self._client = self._get_client() filepath = str(filepath) with self._client.begin(write=False) as txn: value_buf = txn.get(filepath.encode('ascii')) return value_buf def get_text(self, filepath, encoding=None): raise NotImplementedError def _get_client(self): import lmdb return lmdb.open( self.db_path, readonly=self.readonly, lock=self.lock, readahead=self.readahead, **self.kwargs) def __del__(self): if self._client is not None: self._client.close()
(db_path, readonly=True, lock=False, readahead=False, **kwargs)
[ 0.04308496043086052, -0.03992442786693573, -0.09212770313024521, 0.0670250803232193, 0.06524500995874405, 0.0019787384662777185, -0.05180366709828377, 0.05866965278983116, -0.0006039523286744952, -0.08202853053808212, -0.011870160698890686, 0.04166816920042038, -0.04381151869893074, 0.05935988575220108, 0.00537199666723609, 0.015294070355594158, -0.041849806904792786, 0.02822682447731495, 0.0075017232447862625, -0.03035200946033001, -0.02512078359723091, 0.06317432224750519, 0.0811566561460495, 0.017482830211520195, -0.010008352808654308, 0.009445269592106342, 0.014476691372692585, -0.016747189685702324, 0.0739637240767479, 0.041159577667713165, 0.0423220731317997, -0.021687790751457214, 0.0017074140487238765, 0.036564089357852936, -0.01974424533545971, -0.03220473602414131, 0.033403556793928146, -0.026283277198672295, -0.07810511440038681, -0.07102116197347641, -0.00867330003529787, -0.009590581059455872, 0.09038396179676056, -0.04490135610103607, 0.03423910215497017, 0.011615864932537079, -0.014058919623494148, -0.02334071323275566, 0.022777630016207695, 0.0177007969468832, 0.016147777438163757, 0.03155083209276199, -0.014967119321227074, 0.00013481079076882452, -0.033330902457237244, 0.017737125977873802, -0.028299478814005852, 0.019980376586318016, -0.024158092215657234, 0.023013761267066002, -0.025847341865301132, -0.05587239935994148, 0.039016228169202805, 0.03930685296654701, 0.023159073665738106, -0.03596467897295952, -0.06982233375310898, -0.0049451435916125774, 0.013323279097676277, 0.021270019933581352, -0.0026315064169466496, -0.04835251346230507, 0.012869179248809814, 0.015139676630496979, -0.03472952917218208, 0.07091217488050461, -0.07014928758144379, 0.013931771740317345, -0.014358625747263432, 0.04348456487059593, 0.043266598135232925, -0.05507318675518036, 0.019199326634407043, -0.005185815971344709, -0.0008417869103141129, -0.03919786587357521, 0.016111450269818306, 0.01444944553077221, 0.04766228049993515, -0.03592834994196892, -0.009236383251845837, 0.023104581981897354, -0.0007146390853449702, 0.04203144833445549, -0.022741302847862244, -0.09670502692461014, -0.006153048016130924, 0.0564173199236393, -0.04969664663076401, 0.045409947633743286, -0.03981544077396393, 0.023504188284277916, 0.027718232944607735, -0.00599411316215992, -0.03240453824400902, -0.010271729901432991, -0.012841933406889439, -0.024285240098834038, -0.011506880633533001, -0.01359573844820261, -0.07563480734825134, -0.00760162528604269, 0.010989207774400711, 0.03988809883594513, -0.03663674741983414, 0.08558867126703262, -0.008904891088604927, -0.05510951206088066, 0.003946124576032162, -0.016701778396964073, -0.023722156882286072, 0.04337558150291443, 0.0015030693029984832, 0.0027314084582030773, 0.07505356520414352, 0.03680022060871124, 0.05925089865922928, -0.03505647927522659, -0.02437606081366539, -0.01976240985095501, 0.03669123724102974, 0.01865440607070923, -0.032985787838697433, 0.012823769822716713, 0.04003341123461723, 0.014730987139046192, 0.039779115468263626, -0.003875739173963666, -0.013187048956751823, 0.04159551113843918, -0.03854396566748619, -0.021669628098607063, 0.07240162044763565, -0.03999708220362663, 0.03498382493853569, 0.022795794531702995, 0.007456313353031874, -0.03807169944047928, 0.019871393218636513, -0.020706936717033386, 0.032695163041353226, -0.0707668662071228, -0.022704973816871643, 0.06183018535375595, -0.04090528190135956, 0.030224861577153206, -0.05372904986143112, -0.024866487830877304, -0.0029675401747226715, 0.04312128573656082, -0.005698948632925749, -0.001873160363174975, -0.0193991307169199, -0.03313109651207924, -0.03663674741983414, 0.020307328552007675, -0.003076524008065462, -0.0739637240767479, -0.048570480197668076, 0.0006771758780814707, -0.007442690432071686, 0.015266824513673782, -0.03320375457406044, 0.0020616117399185896, 0.003814435563981533, 0.03956114873290062, -0.03347621485590935, 0.043956831097602844, 0.011933734640479088, -0.04849782586097717, 0.034093789756298065, -0.0036100908182561398, -0.021651463583111763, -0.002710973843932152, 0.015484792180359364, 0.04907907173037529, -0.03107856772840023, 0.06964069604873657, 0.07810511440038681, 0.07854104787111282, -0.012433243915438652, -0.04279433563351631, 0.006720672361552715, -0.07469028234481812, -0.04442909359931946, -0.006897771265357733, 0.028154168277978897, -0.02081592008471489, -0.008155626244843006, 0.12133537977933884, -0.0005403783870860934, 0.03400297090411186, 0.01799142174422741, -0.033058442175388336, 0.0007810511160641909, -0.05449193716049194, -0.012442326173186302, -0.009100154042243958, -0.056017711758613586, 0.020725101232528687, -0.02713698521256447, -0.006470917724072933, -0.04319394379854202, 0.06146690621972084, 0.05816106125712395, -0.05975949019193649, -0.03284047544002533, 0.09379878640174866, 0.045010339468717575, -0.00680241035297513, 0.07817776501178741, 0.025284258648753166, -0.06041339412331581, -0.006216621957719326, -0.002672375412657857, -0.036218974739313126, 0.05194897949695587, -0.009408941492438316, 0.0054582757875323296, -0.00556725962087512, 0.01876339130103588, -0.010698583908379078, 0.013114392757415771, -0.006588983349502087, 0.05750715732574463, -0.025556718930602074, 0.0023817517794668674, 0.01731935515999794, -0.024648519232869148, 0.011624947190284729, 0.02294110506772995, 0.0352017916738987, 0.036182645708322525, 0.03749045357108116, -0.03981544077396393, -0.011261667124927044, -0.009481596760451794, 0.00556725962087512, 0.009290875867009163, 0.003501106984913349, -0.02335887774825096, 0.028680922463536263, 0.015103348530828953, 0.01375013217329979, 0.016029711812734604, -0.029552794992923737, -0.03474769368767738, -0.014930791221559048, -0.032295554876327515, -0.03709084540605545, 0.00007081114017637447, -0.0707305371761322, -0.027427608147263527, 0.012932753190398216, 0.00847803708165884, 0.017401091754436493, 0.029589122161269188, -0.02468484826385975, 0.06393720954656601, 0.02157880738377571, -0.001998037798330188, 0.04195879399776459, -0.04737165942788124, -0.011334323324263096, -0.04268535226583481, -0.03807169944047928, 0.03276781737804413, 0.015947973355650902, -0.04377518966794014, -0.012006389908492565, -0.04813454672694206, -0.022396186366677284, 0.0018084511393681169, -0.04097793623805046, 0.016038794070482254, -0.0003865521866828203, -0.04864313825964928, -0.053547412157058716, -0.00255430955439806, -0.0023386122193187475, 0.016374826431274414, -0.0388345867395401, -0.03981544077396393, -0.003519271034747362, 0.045700572431087494, -0.03572854772210121, -0.0775965228676796, 0.004781667608767748, 0.0424310564994812, -0.01269662193953991, -0.044247452169656754, 0.00353289395570755, 0.06422783434391022, 0.063755564391613, 0.004518290050327778, -0.04620916396379471, -0.024194421246647835, -0.04511932283639908, -0.03507464379072189, 0.0530388206243515, 0.013650230132043362, -0.020670607686042786, -0.0035919270012527704, 0.020561624318361282, 0.02969810552895069, 0.024939144030213356, -0.024830158799886703, 0.05750715732574463, -0.00405283784493804, 0.0006113314302638173, -0.026065310463309288, 0.05819739028811455, -0.013859116472303867, -0.0176372230052948, 0.04381151869893074, -0.08217383921146393, 0.04806188866496086, 0.03676389530301094, 0.01696515642106533, 0.01145238894969225, -0.019980376586318016, 0.026410425081849098, 0.011225339025259018, -0.006275654770433903, 0.017192207276821136, -0.002130861859768629, -0.0193809662014246, -0.05292983725667, 0.02964361384510994, -0.011234421283006668, 0.06048605218529701, -0.013532164506614208, -0.02364950068295002, -0.02012568898499012, 0.007351870648562908, -0.008936678059399128, 0.0493333674967289, 0.012642129324376583, 0.0060213590040802956, -0.037926387041807175, 0.03810802847146988, -0.008741415105760098, -0.04530096426606178, 0.016501974314451218, -0.0007367763901129365, -0.10847528278827667, -0.011770258657634258, -0.03818068280816078, -0.03320375457406044, -0.016084203496575356, -0.010680419392883778, -0.03422093763947487, -0.049987271428108215, 0.011525045149028301, -0.03037017397582531, -0.016465647146105766, -0.010680419392883778, -0.04315761476755142, 0.07519887387752533, -0.003853033995255828, -0.01688341796398163, -0.0810113474726677, -0.008864021860063076, 0.06502704322338104, 0.034402575343847275, -0.06495439261198044, -0.016792599111795425, 0.0030742534436285496, -0.05154937505722046, 0.08755037933588028, 0.011606782674789429, -0.031768798828125, 0.09764955192804337, -0.016320334747433662, 0.010671338066458702, 0.022341694682836533, 0.07992150634527206, 0.03002505749464035, 0.005903293378651142, 0.0015757251530885696, -0.01800958625972271, 0.012124456465244293, -0.012451407499611378, -0.006757000461220741, -0.043302927166223526, 0.03251352161169052, -0.006084932945668697, 0.03207758814096451, 0.06760632991790771, -0.006852361373603344, 0.021288184449076653, -0.006856902036815882, -0.03839865326881409, 0.06146690621972084, -0.020688772201538086, 0.01221527624875307, 0.0704762414097786, 0.03741779550909996, -0.024194421246647835, 0.015475709922611713, -0.03665491193532944, -0.003464779118075967, -0.032640669494867325, 0.017564568668603897, 0.04312128573656082, -0.011388815008103848, 0.020234672352671623, -0.013868197798728943, -0.028099676594138145, 0.07541684061288834, 0.0020230133086442947, 0.02052529715001583, 0.011561373248696327, -0.06099464371800423, -0.011416060850024223, -0.026737377047538757, -0.014921708963811398, 0.007751478347927332, -0.04032403230667114, 0.010135500691831112, 0.04192246496677399, -0.010389796458184719, 0.013123475015163422, -0.0016767623601481318, -0.041159577667713165, 0.003650959813967347, -0.02682819776237011, -0.005235766991972923, 0.010843895375728607, -0.051731012761592865, 0.036218974739313126, -0.02366766519844532, 0.03770842030644417, 0.011861078441143036, 0.0493696965277195, -0.021796775981783867, -0.017228534445166588, 0.04482870176434517, 0.0882769376039505, 0.03591018542647362, -0.057434502989053726, 0.01466741319745779, 0.021070215851068497, 0.022123726084828377, -0.031242044642567635, -0.04065098613500595, 0.01168852113187313, -0.04766228049993515, 0.020271001383662224, 0.013041737489402294, 0.026355933398008347, 0.010308058001101017, 0.038325995206832886, -0.028317643329501152, 0.026210622861981392, 0.0009110370883718133, 0.01623859815299511, 0.03552874177694321, -0.03908888250589371, -0.029098695144057274, -0.03200493007898331, 0.03945216163992882, -0.021106543019413948, -0.06146690621972084, 0.042540039867162704, -0.0005937350797466934, -0.014876298606395721, -0.06644383817911148, 0.003800812643021345, -0.06295635551214218, 0.024194421246647835, -0.03789006173610687, 0.03821701183915138, 0.023758484050631523, -0.03000689297914505, -0.04864313825964928, 0.04406581446528435, 0.05362006649374962, 0.06277471035718918, -0.07083951681852341, -0.037199828773736954, 0.09757689386606216, 0.00247711269184947, 0.03496566042304039, 0.013859116472303867, -0.017192207276821136, -0.04475604370236397, -0.0030674419831484556, 0.02334071323275566, -0.020706936717033386, 0.013886362314224243, -0.013032655231654644, -0.03040650114417076, 0.01044428814202547, 0.03967013210058212, 0.01735568232834339, -0.023576844483613968, -0.011070945300161839, 0.01691974699497223, -0.024085436016321182, -0.053910691291093826, 0.0149852829053998, -0.024775667116045952, -0.013241540640592575, -0.09205504506826401, 0.03274965286254883, -0.0493696965277195, 0.028099676594138145, 0.0072792149148881435, 0.00900025200098753, 0.03393031284213066, 0.009835794568061829, 0.01905401423573494, -0.1092744991183281, -0.04726267233490944, -0.04693572223186493, -0.02337704226374626, -0.011080027557909489, 0.03745412454009056, 0.06215713545680046, 0.015493874438107014, 0.0019424104830250144, -0.003923419397324324, -0.010371631942689419, 0.01700148545205593, 0.012278850190341473, -0.020961232483386993, 0.014476691372692585, 0.03612815588712692, -0.053075145930051804, 0.02544773556292057, 0.0044093057513237, -0.01978057436645031, -0.03438441455364227, -0.009808548726141453, 0.0066525572910904884, -0.006380097940564156, 0.024793831631541252, 0.03959747403860092, 0.006098555866628885, 0.05441928282380104, -0.009463433176279068, 0.03614632040262222, -0.06662547588348389, -0.008037560619413853, -0.011806586757302284, 0.011334323324263096, -0.037635765969753265, 0.027663741260766983, -0.013931771740317345, 0.026301441714167595, 0.05144038796424866, -0.05292983725667, 0.050386879593133926, 0.017809782177209854, 0.013895444571971893, 0.03431175649166107, 0.009336285293102264, 0.03329457342624664, 0.02926217019557953, 0.01128891296684742, -0.013523082248866558, 0.0229047778993845, 0.015457546338438988, -0.014967119321227074, 0.021669628098607063, -0.039706457406282425, 0.008241905830800533, 0.028735416010022163, -0.07349146157503128, 0.046063851565122604, 0.008623349480330944, 0.025647539645433426, -0.009454350918531418, 0.0096904831007123, 0.031587161123752594, -0.013041737489402294, 0.07621605694293976, -0.04003341123461723, -0.01697423867881298, -0.03329457342624664, 0.029207678511738777, 0.0009666642872616649, -0.047117363661527634, 0.05928722769021988, 0.04624549299478531, -0.06404618918895721, -0.005004176404327154, 0.01872706227004528, -0.01662004180252552, -0.021615134552121162, 0.02898971177637577, -0.06070401892066002, -0.052784524857997894, -0.00039903991273604333, 0.032731492072343826, 0.00898208748549223, -0.011243503540754318, -0.017164960503578186, -0.019907720386981964, -0.07109381258487701, 0.02228720299899578, -0.03996075317263603, 0.0015677784103900194, 0.026301441714167595, -0.035165462642908096, -0.01695607416331768, 0.03752678260207176, 0.04370253533124924, -0.051694683730602264, 0.012115374207496643, 0.015766333788633347, 0.02682819776237011, -0.00046062716864980757, -0.020271001383662224, -0.005571800749748945, 0.017891518771648407, 0.020725101232528687, -0.009844876825809479, -0.001002992270514369, -0.012723867781460285, 0.01268753968179226, 0.007397280540317297, 0.03552874177694321, 0.04693572223186493, -0.03560139983892441, 0.0316779799759388, -0.025193439796566963, 0.009072907269001007, 0.04624549299478531, -0.07643402367830276, 0.010335303843021393, -0.021251855418086052, -0.01020815595984459, -0.058088406920433044, 0.014186067506670952, 0.001948086777701974, 0.00989936850965023, 0.04384784772992134, -0.009999270550906658, -0.013386853039264679, -0.004359355196356773, 0.031187552958726883, -0.023558681830763817, 0.012342424131929874, 0.004084624815732241, 0.027354951947927475, 0.01587531715631485, 0.01007192675024271, -0.030134040862321854, 0.0017709879903122783, -0.046063851565122604, -0.031314700841903687, -0.0033194671850651503, 0.010126418434083462, -0.04980562999844551, 0.0001313340908382088, 0.057434502989053726, 0.06669813394546509, 0.025992654263973236, 0.019544441252946854, -0.006965885870158672, -0.0264285895973444, 0.009227301925420761, 0.009645072743296623, -0.04798923432826996, 0.0388709157705307, -0.04101426526904106, 0.05747083202004433, 0.04308496043086052, 0.0048543233424425125, 0.039779115468263626, -0.017201287671923637, 0.0846441462635994, -0.04475604370236397, 0.046790409833192825, 0.0316961444914341, 0.04025137796998024, 0.014013510197401047, -0.07149342447519302, -0.022487007081508636, 0.0030311141163110733, 0.0672430545091629, -0.02081592008471489, -0.06477274745702744, -0.03640061616897583, 0.07189302891492844, -0.030115878209471703, -0.007124820724129677, -0.011515962891280651, -0.02043447643518448, 0.012315178290009499, 0.0031673437915742397, -0.016084203496575356, 0.01167943887412548, -0.001794828218407929, -0.007370034698396921, 0.0002650805690791458, -0.01428596954792738, -0.052130620926618576, 0.016665451228618622, 0.0123605877161026, 0.06459110975265503, 0.006661639548838139, 0.07992150634527206, -0.02786354348063469, 0.008900349959731102, -0.004366166424006224, -0.029080530628561974, -0.014712823554873466, -0.023068252950906754, 0.00038059212965890765, 0.018490931019186974, -0.0063029006123542786, 0.023413369432091713, -0.06219346448779106, -0.09372613579034805, -0.018926866352558136, -0.01664728671312332, 0.04021504893898964, 0.0017403363017365336, 0.020634280517697334, -0.020670607686042786, 0.01730119064450264, 0.001266937586478889, -0.0528935082256794, 0.0066071473993361, -0.04907907173037529, 0.03572854772210121, 0.06909577548503876, -0.028081512078642845, 0.025647539645433426, 0.016483811661601067, 0.028808070346713066, -0.018191225826740265, 0.029461974278092384, 0.011161765083670616, 0.021633299067616463, -0.01343226246535778, 0.021469824016094208, 0.05412865802645683, -0.013541246764361858, -0.027645576745271683, 0.05267554149031639, 0.017473747953772545, -0.03474769368767738, 0.020924903452396393, -0.03220473602414131, 0.00343980360776186, -0.03738147020339966, -0.03400297090411186, -0.021796775981783867, -0.018981358036398888, -0.02572019398212433, -0.027445772662758827, -0.022450678050518036, -0.04689939320087433, 0.03109673224389553 ]
730,133
mmengine.fileio.backends.lmdb_backend
__del__
null
def __del__(self): if self._client is not None: self._client.close()
(self)
[ -0.008701371029019356, -0.02772287093102932, -0.031246816739439964, 0.00497779157012701, -0.023313596844673157, -0.018869604915380478, -0.029979584738612175, 0.10603086650371552, 0.012637601234018803, 0.024007970467209816, -0.028469322249293327, -0.02511896938085556, 0.006922037806361914, -0.007607731968164444, -0.011708877049386501, -0.00158946483861655, -0.026091093197464943, -0.037669774144887924, 0.002553993370383978, -0.08728277683258057, -0.05926479771733284, 0.047772910445928574, 0.0373920239508152, -0.03490963950753212, -0.018522419035434723, 0.04329420253634453, 0.005016850307583809, 0.02237619273364544, 0.0527724027633667, -0.022653942927718163, -0.055098555982112885, 0.006922037806361914, 0.02180333435535431, 0.05495968088507652, 0.03680180758237839, 0.02301848866045475, -0.025605030357837677, -0.026542434468865395, -0.07783929258584976, 0.03206270560622215, -0.001465779496356845, 0.00367367104627192, 0.03687124326825142, -0.023001128807663918, 0.033868078142404556, 0.04732156917452812, 0.00677448371425271, 0.017281224951148033, -0.012733077630400658, -0.017828045412898064, -0.008293425664305687, 0.02715001255273819, -0.023244159296154976, 0.020518742501735687, -0.031437769532203674, 0.04697438329458237, 0.04787706583738327, 0.0586051419377327, -0.04128051549196243, -0.017611052840948105, -0.05183499678969383, 0.02187277190387249, 0.003174589714035392, -0.030673958361148834, 0.0239732526242733, -0.0016263534780591726, -0.02270602062344551, 0.05107118561863899, 0.09811500459909439, -0.0001866129314294085, 0.014607886783778667, 0.01714235171675682, -0.011873790062963963, 0.007638110779225826, 0.03096906840801239, -0.02652507647871971, -0.015979275107383728, -0.004383234307169914, 0.018209950998425484, -0.03254876658320427, 0.002625600667670369, 0.02022363431751728, -0.019616058096289635, 0.044925980269908905, 0.0727703645825386, -0.04075973853468895, 0.021647101268172264, -0.031316254287958145, -0.03662821277976036, 0.05461249127984047, -0.0004993523471057415, 0.0479465052485466, -0.018852246925234795, -0.04023895785212517, 0.03607271611690521, -0.03529154509305954, -0.03249669075012207, -0.007798684760928154, 0.023799659684300423, -0.025986935943365097, -0.017489537596702576, 0.025778623297810555, -0.027202090248465538, 0.005798020400106907, 0.04273870214819908, -0.016769126057624817, 0.026872262358665466, -0.07672829180955887, -0.025223124772310257, 0.016656288877129555, -0.03947514668107033, -0.015284901484847069, 0.008419280871748924, 0.03961402177810669, 0.009321967139840126, -0.010025020688772202, -0.026368841528892517, -0.014538449235260487, 0.017281224951148033, -0.006735424976795912, -0.05155724659562111, 0.022167880088090897, -0.06235475838184357, -0.025066891685128212, 0.07360361516475677, 0.032080065459012985, -0.0013572836760431528, 0.013583686202764511, 0.026039013639092445, -0.012264375574886799, 0.01862657442688942, 0.05763301998376846, 0.027497198432683945, -0.0012802515411749482, 0.0052685607224702835, 0.041870735585689545, -0.0004559539956972003, -0.012924030423164368, -0.0037148992996662855, 0.0022165710106492043, -0.0710691511631012, 0.05329318344593048, -0.013818036764860153, 0.01786276325583458, 0.061833977699279785, 0.03593384101986885, -0.052668247371912, -0.02404269017279148, -0.06416013091802597, -0.01042428519576788, 0.000057231583923567086, -0.015866439789533615, 0.0210568830370903, -0.01531962025910616, -0.06277138739824295, -0.015823040157556534, -0.06822221726179123, 0.02791382372379303, 0.0036042334977537394, -0.037739209830760956, 0.04430104419589043, 0.0517655611038208, 0.02765343338251114, -0.04766875505447388, -0.006492394022643566, -0.02473706379532814, -0.006822221912443638, -0.011014503426849842, -0.0006612824508920312, 0.011309611611068249, -0.08811602741479874, 0.003289595479145646, -0.015562650747597218, -0.01084090955555439, -0.03562137112021446, 0.033416736871004105, 0.03641990199685097, -0.020692337304353714, -0.04888391122221947, 0.00696543650701642, -0.04697438329458237, -0.07888085395097733, -0.03178495541214943, 0.00908761564642191, 0.049057502299547195, 0.0035847043618559837, 0.04374554380774498, 0.007373380940407515, 0.03331257775425911, 0.0011017757933586836, -0.05374452471733093, 0.018834887072443962, 0.011517924256622791, 0.025605030357837677, 0.08228328824043274, -0.03878077119588852, 0.01538905780762434, -0.025900140404701233, -0.0024107787758111954, 0.02459818869829178, -0.046384163200855255, 0.02841724455356598, 0.00025862708571366966, -0.05870929732918739, 0.0422179214656353, 0.00007913419540273026, 0.01354896742850542, -0.03508323058485985, -0.012047383934259415, 0.026924340054392815, -0.013462170027196407, 0.031246816739439964, 0.0005031496984884143, 0.013167061842978, 0.08957421034574509, -0.05107118561863899, -0.0206055399030447, -0.009790669195353985, -0.0163091029971838, 0.0382947102189064, -0.003873303299769759, 0.0307086780667305, 0.009460842236876488, -0.03760033845901489, -0.04579394683241844, 0.028191572055220604, -0.004122843965888023, 0.03898908570408821, 0.04586338251829147, -0.041488830000162125, 0.002922879299148917, 0.08783827722072601, 0.006731085013598204, 0.0014896485954523087, -0.018071075901389122, -0.014260699972510338, -0.06468091160058975, 0.01800163835287094, -0.043085888028144836, -0.03471868485212326, 0.003478378290310502, -0.04558563604950905, 0.026472998782992363, -0.0016144189285114408, 0.01996324397623539, 0.08047791570425034, 0.01566680707037449, 0.03565609082579613, 0.05305015295743942, 0.004760799929499626, 0.010667316615581512, -0.09492088854312897, 0.04461351037025452, -0.035135310143232346, 0.018591856583952904, -0.06009804457426071, -0.009721231646835804, -0.047460444271564484, -0.030916988849639893, 0.014712043106555939, -0.028382524847984314, 0.04843256622552872, -0.022462990134954453, 0.09304607659578323, 0.029996944591403008, -0.01160472072660923, 0.07992241531610489, 0.007746606599539518, 0.01604871265590191, -0.01733330450952053, 0.11200247704982758, -0.026854902505874634, 0.02619524858891964, -0.07610335946083069, -0.031055863946676254, -0.01576228253543377, -0.010007660835981369, -0.024389876052737236, -0.05683448910713196, 0.008644952438771725, 0.06874299794435501, 0.030604520812630653, 0.067250095307827, -0.0023717202711850405, -0.006318800617009401, 0.0012335983337834477, 0.019737573340535164, 0.02211580239236355, -0.002436817856505513, -0.020397227257490158, -0.026334123685956, -0.037669774144887924, 0.015632087364792824, 0.04749516025185585, 0.009816708043217659, -0.013713880442082882, -0.05259880796074867, 0.04773819446563721, -0.0006997985183261335, 0.0008207714417949319, -0.014720723032951355, -0.014035028405487537, -0.05023793876171112, 0.016803843900561333, 0.010372207500040531, -0.01068467553704977, 0.040100082755088806, 0.039336271584033966, -0.003940570633858442, 0.05683448910713196, -0.001644797739572823, -0.024320438504219055, -0.05870929732918739, 0.007920200005173683, 0.05634842813014984, -0.011682838201522827, -0.015788322314620018, 0.004079445730894804, -0.005889157298952341, 0.050654564052820206, -0.03442357853055, -0.0088966628536582, 0.0287991501390934, 0.05766773596405983, 0.018834887072443962, 0.029094258323311806, 0.014538449235260487, 0.06374350935220718, -0.000841928122099489, 0.005828399211168289, -0.05780661106109619, -0.010320128872990608, -0.0546819306910038, -0.048154816031455994, 0.00853645708411932, -0.06419485062360764, 0.0498560331761837, -0.06707650423049927, -0.03136833384633064, -0.028903305530548096, -0.06481978297233582, -0.010007660835981369, 0.009018179029226303, 0.004402763210237026, -0.07839479297399521, 0.019928526133298874, -0.021456148475408554, -0.022410912439227104, 0.03701011836528778, -0.030500365421175957, 0.036905962973833084, 0.0661390945315361, 0.056244272738695145, 0.05225162208080292, 0.05916064232587814, -0.04902278259396553, 0.006839581299573183, 0.057320550084114075, 0.01945982314646244, -0.03305218741297722, 0.004012178163975477, -0.028955383226275444, 0.000774660671595484, 0.0043159667402505875, -0.0498560331761837, -0.03223630040884018, -0.011543963104486465, -0.05461249127984047, 0.02282753586769104, -0.005771981552243233, -0.029076898470520973, -0.06870827823877335, -0.007794344797730446, 0.05620955303311348, 0.020431946963071823, 0.021716538816690445, 0.011674158275127411, 0.02473706379532814, 0.0037995262537151575, 0.027774948626756668, -0.020258354023098946, 0.018643934279680252, 0.051661405712366104, -0.03206270560622215, -0.0010757368290796876, -0.03593384101986885, 0.0013149701990187168, 0.0008153466624207795, -0.029927507042884827, 0.013114983215928078, 0.051973871886730194, -0.054265305399894714, -0.03063924051821232, -0.019043199717998505, 0.003975289408117533, -0.005368376616388559, -0.012533445842564106, -0.03466660901904106, -0.002514934865757823, -0.00976463034749031, 0.03096906840801239, 0.03683652728796005, -0.020935367792844772, 0.03753089904785156, 0.02237619273364544, 0.037739209830760956, 0.03327786177396774, 0.013774638995528221, 0.08651896566152573, -0.02874707244336605, -0.050272658467292786, -0.028347807005047798, -0.011309611611068249, -0.023695502430200577, 0.04280813783407211, -0.008054735139012337, 0.0022480348125100136, 0.05985501408576965, 0.1035311222076416, 0.06419485062360764, 0.006023691967129707, 0.04253039136528969, -0.004059916362166405, -0.000603779626544565, -0.04808538034558296, -0.05169612169265747, -0.027583995833992958, -0.0014896485954523087, 0.04176658019423485, -0.029910147190093994, -0.0230705663561821, -0.02638620138168335, 0.03192383050918579, -0.021959569305181503, -0.0069914753548800945, 0.06100073084235191, -0.05582764744758606, 0.029858069494366646, 0.005568009335547686, 0.00950424000620842, -0.010224653407931328, -0.018869604915380478, -0.013123663142323494, -0.054022274911403656, 0.05690392479300499, -0.048224255442619324, 0.03180231526494026, 0.007112990599125624, 0.0517655611038208, -0.03442357853055, -0.027896463871002197, 0.006318800617009401, -0.03013581968843937, -0.027306245639920235, -0.01704687438905239, -0.016604211181402206, 0.025414077565073967, 0.009122334420681, -0.0036194229032844305, -0.040863893926143646, 0.001344264135695994, 0.058153796941041946, 0.017498217523097992, -0.030812833458185196, -0.013713880442082882, 0.05537630245089531, 0.05079343542456627, 0.005225162021815777, 0.008371543139219284, 0.018348826095461845, 0.00463928421959281, 0.010511081665754318, -0.039266832172870636, -0.006922037806361914, -0.0061235083267092705, -0.00022567145060747862, 0.01531962025910616, 0.054022274911403656, -0.009330647066235542, -0.03511795029044151, -0.03154192492365837, -0.025969576090574265, 0.02244563028216362, -0.03484020009636879, -0.05610539764165878, -0.003578194649890065, 0.017151031643152237, -0.07561729848384857, 0.03607271611690521, -0.03244461119174957, 0.010250692255795002, 0.01459052786231041, -0.03369448333978653, -0.05898704752326012, 0.05916064232587814, -0.013167061842978, -0.0736730545759201, -0.03320842236280441, 0.0028838207945227623, -0.06620853394269943, 0.009035537950694561, 0.012038704007863998, -0.054022274911403656, 0.02409476786851883, 0.0545777752995491, -0.07700604200363159, 0.02855611965060234, 0.018140513449907303, -0.03145512938499451, -0.02123047597706318, -0.05801492556929588, 0.01912999525666237, 0.009938224218785763, 0.014165223576128483, 0.05530686676502228, -0.0079288799315691, -0.07527010887861252, -0.00938272476196289, -0.023869097232818604, -0.003176759695634246, 0.07471460849046707, 0.04405801370739937, 0.0015938046853989363, 0.0148509182035923, -0.05572349205613136, -0.07044421136379242, -0.021195758134126663, 0.021542944014072418, 0.03572552651166916, 0.05114062502980232, 0.01932094804942608, -0.012533445842564106, -0.030049022287130356, -0.038364145904779434, 0.0010958085767924786, -0.017966920509934425, -0.07638110965490341, -0.08839377760887146, 0.015336979180574417, -0.00850173830986023, 0.01172623597085476, 0.009877465665340424, 0.02008475922048092, -0.05489024147391319, -0.049057502299547195, -0.005620087031275034, 0.024251002818346024, 0.028382524847984314, 0.0028208931908011436, 0.028208931908011436, 0.05443890020251274, 0.00551593117415905, 0.07450629770755768, -0.040273673832416534, -0.012776476331055164, 0.03947514668107033, 0.01004237961024046, -0.06766671687364578, 0.022844895720481873, -0.018852246925234795, -0.020050041377544403, 0.018452981486916542, -0.045238446444272995, 0.03992648795247078, 0.05975085869431496, 0.004925713408738375, 0.055549897253513336, -0.01141376793384552, 0.06370878964662552, -0.01793220080435276, -0.02084857039153576, -0.09832331538200378, 0.08020016551017761, 0.017706530168652534, -0.018800169229507446, 0.02931993082165718, -0.03046564757823944, -0.044925980269908905, 0.020310431718826294, -0.029076898470520973, 0.010511081665754318, 0.017012156546115875, -0.010962424799799919, -0.06245891749858856, -0.03753089904785156, 0.016274383291602135, 0.040794454514980316, -0.006140867713838816, -0.0015059229917824268, -0.038503021001815796, 0.01805371604859829, -0.00010117242345586419, -0.02201164700090885, -0.051279500126838684, -0.0005156267434358597, 0.03459716960787773, 0.05763301998376846, 0.012385890819132328, 0.00777264591306448, 0.06544472277164459, 0.052182186394929886, 0.03645462170243263, 0.0230705663561821, -0.009078936651349068, -0.011049222201108932, 0.07037477940320969, -0.0710691511631012, 0.010675995610654354, 0.012281735427677631, -0.02930257096886635, -0.049439407885074615, -0.0336771234869957, -0.011283572763204575, -0.020310431718826294, 0.0009721231763251126, 0.018348826095461845, -0.0036259328480809927, 0.02123047597706318, -0.030222615227103233, 0.026802824810147285, 0.055862367153167725, -0.03435413911938667, 0.01535433903336525, -0.01064995676279068, -0.042391516268253326, 0.0066963667050004005, -0.009235170669853687, -0.0307086780667305, -0.04940468817949295, 0.06402125954627991, -0.0016806013882160187, -0.027011137455701828, 0.017663130536675453, 0.0459328219294548, 0.03268764168024063, -0.00007994790939847007, 0.0258827805519104, -0.010537121444940567, 0.041419390588998795, -0.03600327670574188, 0.038954365998506546, -0.023695502430200577, 0.006700706202536821, -0.01106658112257719, -0.080408476293087, 0.0011587361805140972, -0.002319642109796405, -0.06638212502002716, 0.030292052775621414, -0.050272658467292786, -0.019425105303525925, 0.06475035101175308, 0.03470132499933243, -0.042009610682725906, 0.00023096063523553312, -0.0460369773209095, 0.039648737758398056, 0.03376392275094986, -0.01900848001241684, 0.03402431309223175, -0.023573987185955048, 0.011656798422336578, 0.02308792620897293, 0.01412182580679655, 0.011405088007450104, -0.026733387261629105, -0.0030140159651637077, -0.006253703497350216, -0.01325385831296444, 0.007377720903605223, -0.010736753232777119, 0.01738538220524788, -0.03891964629292488, 0.010224653407931328, -0.008506078273057938, 0.0297018364071846, 0.025778623297810555, -0.0032266678754240274, -0.038746051490306854, 0.004159732721745968, -0.041627705097198486, 0.06912489980459213, -0.027011137455701828, -0.031889114528894424, 0.04395385459065437, 0.024251002818346024, -0.027688151225447655, 0.01663893088698387, -0.015944557264447212, -0.07554785907268524, -0.02314000390470028, -0.009417443536221981, -0.0029966565780341625, -0.008076434023678303, -0.056938644498586655, -0.003142041154205799, 0.008128512650728226, -0.0711733028292656, -0.04565507173538208, 0.02123047597706318, 0.014963753521442413, -0.03317370265722275, 0.017706530168652534, 0.013922193087637424, 0.025205766782164574, 0.04478710517287254, 0.016630250960588455, -0.025257844477891922, -0.014173903502523899, -0.005472532939165831, 0.05787605047225952, 0.0220637246966362, 0.03083019331097603, 0.03714899346232414, 0.03784336894750595, 0.022653942927718163, -0.06860412657260895, -0.02478914149105549, 0.0012943559559062123, -0.00004828067176276818, -0.01115337759256363, 0.011014503426849842, 0.0317155197262764, -0.018157873302698135, 0.06593078374862671, -0.043328918516635895, -0.03655877709388733, -0.009530278854072094, -0.005793680902570486, 0.037044838070869446, -0.05152253061532974, -0.07922804355621338, -0.02765343338251114, 0.053501494228839874, -0.023035848513245583, -0.057320550084114075, 0.08026960492134094, 0.034371498972177505, 0.036975398659706116, 0.001618758775293827, -0.06454204022884369, -0.03471868485212326, 0.013948231935501099, 0.010103137232363224, 0.0012162389466539025, -0.00742545910179615, 0.005064588505774736, 0.047529879957437515, 0.007881141267716885, -0.026247326284646988, 0.0005674335407093167, 0.001549321343190968, 0.034111108630895615, 0.06377822905778885, 0.002432477893307805, -0.04586338251829147, -0.051418375223875046, 0.022272037342190742, 0.004513429012149572, 0.01573624461889267, -0.01554529182612896, 0.04940468817949295, 0.014894315972924232, -0.04336363822221756, 0.013852755539119244, 0.02239355258643627, 0.04093332961201668, 0.007460177410393953 ]
730,134
mmengine.fileio.backends.lmdb_backend
__init__
null
def __init__(self, db_path, readonly=True, lock=False, readahead=False, **kwargs): try: import lmdb # noqa: F401 except ImportError: raise ImportError( 'Please run "pip install lmdb" to enable LmdbBackend.') self.db_path = str(db_path) self.readonly = readonly self.lock = lock self.readahead = readahead self.kwargs = kwargs self._client = None
(self, db_path, readonly=True, lock=False, readahead=False, **kwargs)
[ 0.0008266390068456531, -0.005941502749919891, -0.011103938333690166, 0.0216168612241745, 0.01680813916027546, -0.006966826040297747, 0.003987119998782873, 0.05362127721309662, -0.018984153866767883, -0.06866532564163208, -0.008095129393041134, 0.11283034831285477, -0.05014682188630104, 0.06665945053100586, -0.021115392446517944, -0.006469835061579943, -0.024374935775995255, 0.025252506136894226, -0.04326954111456871, -0.04301880672574043, -0.029479166492819786, 0.07020554691553116, 0.046099256724119186, 0.09441930055618286, 0.016029072925448418, 0.004578135907649994, -0.013808284886181355, -0.010333826765418053, 0.09012100100517273, 0.017085738480091095, 0.04491722211241722, 0.030123911798000336, -0.034762490540742874, 0.04326954111456871, -0.03639226406812668, -0.006438493728637695, 0.03449384868144989, -0.0342072956264019, -0.04878569394350052, -0.043412819504737854, 0.04595597833395004, -0.022333243861794472, 0.029317980632185936, -0.020667653530836105, 0.01632458157837391, 0.0014428404392674565, 0.04298298805952072, -0.03524605184793472, 0.033186450600624084, 0.020560195669531822, -0.01681709475815296, 0.050290096551179886, -0.025861430913209915, 0.003290885128080845, -0.060355279594659805, 0.009044337086379528, -0.020148275420069695, 0.0713159441947937, -0.0319506898522377, 0.032380517572164536, -0.07708282768726349, -0.0030065705068409443, 0.04223078489303589, 0.016315625980496407, 0.03533560037612915, -0.018267769366502762, -0.08675400167703629, -0.023121265694499016, 0.011300943791866302, 0.02113330364227295, 0.03039255551993847, 0.0024289865978062153, 0.01787376031279564, 0.009321935474872589, -0.030517922714352608, 0.07335763424634933, -0.10903351753950119, 0.02378392033278942, -0.03247006610035896, 0.04043982923030853, 0.0629342570900917, -0.024894313886761665, 0.00006842018774477765, 0.033795375376939774, 0.01251879520714283, -0.030643288046121597, 0.004898269660770893, 0.02281680330634117, 0.06433120369911194, -0.018572233617305756, -0.021831776946783066, 0.006254920270293951, -0.03506695479154587, 0.01597534492611885, 0.01348591223359108, -0.03897124156355858, -0.0001933674793690443, 0.034708764404058456, -0.03768175467848778, 0.07088611274957657, -0.057059917598962784, -0.006402674131095409, -0.02990899607539177, -0.024464484304189682, -0.03675045445561409, 0.0005093036452308297, -0.00602657301351428, -0.05018264055252075, -0.017730481922626495, -0.05100648105144501, -0.05333472415804863, 0.07858723402023315, 0.040798019617795944, 0.06723255664110184, -0.050934839993715286, 0.08209750801324844, -0.0021189269609749317, -0.061680588871240616, 0.039508529007434845, -0.0058340453542768955, -0.008995085954666138, 0.05537641793489456, 0.000553517893422395, 0.07271289080381393, 0.08596597611904144, 0.007978716865181923, 0.0024379414971917868, -0.03216560184955597, 0.0007365313940681517, -0.009545804932713509, 0.07385910302400589, 0.005426602438092232, 0.005019159521907568, -0.03191486746072769, 0.0017506612930446863, 0.008144380524754524, 0.0412994883954525, 0.014999272301793098, -0.028691144660115242, 0.015849977731704712, -0.029282160103321075, -0.015849977731704712, 0.048606596887111664, -0.05863596126437187, 0.037932489067316055, 0.028691144660115242, -0.009796539321541786, -0.032989442348480225, 0.029676171019673347, 0.0412994883954525, 0.06107166409492493, -0.10022199898958206, -0.008592120371758938, 0.058743417263031006, -0.031896959990262985, -0.003738624509423971, -0.03685791417956352, -0.06773402541875839, 0.013754555955529213, 0.055161502212285995, 0.02990899607539177, 0.0012995637953281403, -0.031144756823778152, -0.016467858105897903, -0.049609534442424774, -0.0020965400617569685, -0.06554906070232391, -0.12708637118339539, -0.022798893973231316, -0.012205378152430058, 0.0037565340753644705, -0.028064310550689697, -0.037287741899490356, 0.0029237386770546436, 0.0026483789552003145, 0.04287553206086159, 0.00008276184235000983, 0.04971699044108391, -0.004643058404326439, -0.045991797000169754, 0.060964204370975494, 0.0031050732359290123, 0.013557551428675652, 0.008910015225410461, 0.009644308127462864, 0.016960371285676956, -0.02491222321987152, 0.051257215440273285, 0.061322398483753204, 0.09585206210613251, -0.006747433915734291, -0.031377580016851425, 0.0030177640728652477, -0.06246861070394516, -0.03216560184955597, 0.006040005479007959, 0.04040401056408882, -0.0374310202896595, 0.0029103064443916082, 0.10752911120653152, 0.04104875400662422, 0.017318561673164368, -0.00811303872615099, -0.012205378152430058, -0.0038304110057651997, -0.024142112582921982, -0.029407527297735214, 0.010638290084898472, 0.0026730045210570097, -0.012285971082746983, -0.012366564013063908, -0.0348520390689373, -0.04233824461698532, 0.03368791565299034, 0.026506176218390465, -0.015500740148127079, -0.022118330001831055, 0.07027718424797058, 0.04434411600232124, 0.0161275751888752, 0.06221787631511688, 0.03375955671072006, -0.05498240515589714, -0.031574588268995285, -0.0034520712215453386, -0.00806826539337635, 0.03091193176805973, 0.00426695728674531, 0.012062101624906063, -0.007020554970949888, -0.009295071475207806, -0.05229596793651581, 0.009796539321541786, -0.03651763126254082, 0.050863202661275864, -0.05752556771039963, -0.010512922890484333, 0.03139549121260643, -0.06372228264808655, -0.03171786293387413, 0.045347053557634354, 0.029801538214087486, 0.04011745750904083, -0.00793842040002346, -0.0005440034437924623, -0.01690664142370224, -0.039365254342556, -0.007405610755085945, 0.0034028198570013046, 0.010495012626051903, -0.022154148668050766, 0.032828256487846375, 0.02109748311340809, 0.016575314104557037, -0.030123911798000336, 0.017864804714918137, 0.022189967334270477, -0.00035511335590854287, -0.05333472415804863, -0.012438202276825905, 0.008413024246692657, -0.06339991092681885, -0.044773947447538376, -0.0036065413150936365, 0.022386973723769188, 0.012321789748966694, 0.029658261686563492, -0.05487494915723801, 0.0467798188328743, -0.010754701681435108, 0.037574294954538345, 0.01527687069028616, 0.04352027550339699, 0.011121848598122597, -0.06812803447246552, -0.078730508685112, 0.002740165451541543, -0.04889314994215965, -0.01430975366383791, 0.0049206567928195, 0.000045403579861158505, 0.0068728006444871426, 0.04459485039114952, 0.005404215306043625, -0.0014137373073026538, -0.0480693094432354, -0.012957580387592316, 0.023927196860313416, -0.03882796689867973, -0.017139466479420662, -0.009053291752934456, -0.008233929052948952, -0.012223287485539913, 0.0034386389888823032, 0.06114330142736435, 0.0014338856562972069, -0.06193132326006889, 0.030500011518597603, 0.02652408555150032, -0.003040150972083211, -0.020757202059030533, -0.0442008413374424, 0.039365254342556, 0.04563360661268234, 0.01664695329964161, -0.03456548601388931, -0.037216104567050934, -0.004951998591423035, -0.002252129605039954, 0.06655199080705643, 0.02736583538353443, -0.01690664142370224, -0.007051896769553423, 0.02613007463514805, 0.013217269442975521, 0.007884692400693893, -0.04720965027809143, 0.01996918022632599, -0.025091320276260376, -0.030643288046121597, -0.024482393637299538, 0.043771009892225266, 0.006913097109645605, -0.023766010999679565, 0.010486057959496975, 0.000008574385901738424, 0.03365209698677063, 0.026756910607218742, 0.0019252797355875373, 0.03293571621179581, -0.024339117109775543, 0.060677651315927505, 0.022995898500084877, -0.008686145767569542, 0.005153481382876635, 0.0003735826176125556, -0.001981247216463089, -0.0500035434961319, 0.009330890141427517, 0.002509579760953784, 0.03331181779503822, -0.005386305972933769, -0.026631543412804604, -0.03401029109954834, 0.022333243861794472, -0.017023054882884026, -0.0023304838687181473, -0.025377873331308365, 0.026309171691536903, -0.07665299624204636, 0.02258397825062275, -0.006505654193460941, -0.03761011362075806, 0.001330905593931675, -0.00651908665895462, -0.10416211187839508, -0.021115392446517944, -0.01638726517558098, -0.02281680330634117, 0.0018771477043628693, -0.002238697372376919, -0.025431601330637932, -0.04523959383368492, 0.008157812990248203, -0.039830904453992844, 0.015258961357176304, -0.01833045296370983, -0.043162085115909576, 0.01440825592726469, 0.015106729231774807, -0.002946125576272607, -0.09384619444608688, -0.023980924859642982, 0.050576649606227875, 0.025789793580770493, -0.043126266449689865, -0.010853204876184464, -0.015447011217474937, -0.02713301219046116, 0.06279098242521286, -0.057059917598962784, -0.03384910523891449, 0.09506404399871826, -0.04040401056408882, -0.03504904359579086, 0.02201087214052677, 0.050290096551179886, 0.04874987155199051, 0.04724546894431114, 0.01155167818069458, -0.0380757637321949, -0.003243872430175543, 0.026613634079694748, -0.04914388433098793, -0.024571942165493965, 0.059316523373126984, 0.02491222321987152, 0.030446283519268036, 0.06569233536720276, 0.03594452515244484, -0.006339990999549627, -0.014605261385440826, 0.009760720655322075, 0.027741936966776848, 0.027831485494971275, 0.009572669863700867, 0.06071346998214722, 0.05172286182641983, 0.023927196860313416, -0.008990608155727386, 0.002713301219046116, -0.017542432993650436, -0.036965370178222656, 0.05211687460541725, -0.004710219334810972, -0.02639871835708618, 0.0445232130587101, -0.020058728754520416, -0.00927716214209795, 0.041514404118061066, 0.020273642614483833, 0.02990899607539177, 0.005596743430942297, -0.0838884636759758, 0.00011893079499714077, -0.00016216564108617604, 0.00768768647685647, -0.004710219334810972, 0.05147212743759155, 0.021545223891735077, -0.011802412569522858, 0.03019554913043976, -0.010683063417673111, -0.004974385257810354, 0.020667653530836105, 0.01458735205233097, -0.017014099285006523, -0.012626253068447113, 0.01080843061208725, -0.047317106276750565, 0.04104875400662422, -0.005413169972598553, 0.05684500187635422, -0.02084674872457981, 0.03424311429262161, -0.01923488825559616, 0.013745601288974285, 0.06239697337150574, 0.08166767656803131, -0.0004317887360230088, -0.010333826765418053, 0.024016745388507843, 0.006375810131430626, 0.007916034199297428, -0.04874987155199051, -0.04416502267122269, -0.02632708102464676, -0.022046690806746483, 0.04155022278428078, 0.019413983449339867, 0.017300652340054512, 0.015787294134497643, 0.00663102138787508, -0.031180575489997864, -0.009156271815299988, 0.02681063860654831, 0.011014390736818314, 0.007902601733803749, -0.027150921523571014, -0.03135967254638672, -0.03436848148703575, 0.02842250093817711, -0.017730481922626495, -0.05666590481996536, 0.01539328321814537, 0.0036960893776267767, -0.012160603888332844, -0.08911806344985962, 0.023694371804594994, -0.02093629725277424, -0.0009324174607172608, 0.013924697414040565, 0.03506695479154587, 0.025807702913880348, -0.02523459680378437, -0.04559778794646263, -0.017049917951226234, 0.009124930016696453, 0.046314168721437454, -0.04900060594081879, -0.012993399053812027, 0.06622961908578873, -0.012500885874032974, 0.012509840540587902, 0.01764988899230957, 0.005699723493307829, -0.04072638228535652, 0.027347926050424576, 0.03390283137559891, 0.0030580605380237103, -0.007038464304059744, -0.023354090750217438, 0.0161275751888752, 0.008569733239710331, 0.03268498182296753, 0.0005921354168094695, -0.053227268159389496, -0.025950979441404343, 0.022279515862464905, -0.01664695329964161, -0.007051896769553423, 0.02190341427922249, -0.04878569394350052, -0.005905683618038893, -0.07081447541713715, 0.020560195669531822, -0.07801412791013718, 0.02552114985883236, -0.0073518818244338036, 0.002484953962266445, 0.027473293244838715, 0.01655740477144718, 0.004692309536039829, -0.09377455711364746, -0.04552615061402321, -0.07224723696708679, 0.043162085115909576, 0.0009967799996957183, 0.07643808424472809, 0.019861722365021706, 0.008945834822952747, -0.03685791417956352, -0.03635644540190697, 0.01314563024789095, 0.010477103292942047, 0.032899897545576096, -0.0038595141377300024, -0.007051896769553423, 0.023515276610851288, -0.051579587161540985, 0.06433120369911194, -0.005780316423624754, -0.010880068875849247, -0.02623753249645233, 0.01923488825559616, 0.015527605079114437, -0.031413402408361435, 0.055770426988601685, 0.020345281809568405, 0.02125866897404194, 0.0500035434961319, -0.04760365933179855, -0.027634479105472565, -0.06862950325012207, 0.0018278963398188353, -0.0006883994210511446, 0.019861722365021706, -0.04076220095157623, 0.028386682271957397, -0.011605407111346722, -0.002735688118264079, 0.011193486861884594, -0.07901705801486969, 0.06898769736289978, 0.011408401653170586, -0.024536123499274254, 0.0522601492702961, -0.007204127963632345, 0.016835004091262817, 0.05011099949479103, -0.003539380384609103, -0.010530832223594189, 0.00891896989196539, 0.08353027701377869, -0.023837648332118988, -0.015581333078444004, -0.01891251467168331, 0.022798893973231316, 0.029819447547197342, -0.02342572808265686, 0.047317106276750565, -0.016494721174240112, -0.028440410271286964, -0.02342572808265686, -0.025413691997528076, 0.029479166492819786, -0.020416919142007828, 0.0774410143494606, -0.005892251152545214, -0.04595597833395004, 0.016476811841130257, -0.0024939088616520166, 0.014560487121343613, -0.044738128781318665, -0.016029072925448418, 0.018017036840319633, -0.017640935257077217, -0.03440430015325546, 0.03478040173649788, -0.03264916315674782, -0.04190841317176819, 0.06053437665104866, -0.03316853940486908, -0.061358217149972916, -0.051221393048763275, 0.028028490021824837, -0.0023304838687181473, 0.04649326577782631, -0.06146567314863205, -0.028726963326334953, -0.03796830773353577, 0.014354526996612549, -0.004817676730453968, 0.016575314104557037, 0.005565401632338762, -0.036123618483543396, -0.020739292725920677, 0.04781857505440712, 0.018088674172759056, -0.049287158995866776, -0.040475647896528244, -0.010253233835101128, 0.07371582835912704, -0.0016902164788916707, -0.03666090592741966, 0.007795143872499466, 0.038577232509851456, -0.033347636461257935, 0.007078760769218206, 0.012966535054147243, 0.009626398794353008, -0.030177639797329903, -0.02833295240998268, 0.029407527297735214, 0.04337700083851814, -0.02390928752720356, 0.01684395782649517, -0.011300943791866302, 0.025145048275589943, 0.05720319226384163, -0.0713159441947937, 0.008901060558855534, 0.004826631397008896, 0.010083092376589775, -0.04172931984066963, -0.001835731789469719, -0.022351153194904327, 0.028279224410653114, 0.02020200528204441, 0.0030043318402022123, 0.008296612650156021, -0.014802266843616962, 0.0062952167354524136, 0.0003693850594572723, -0.0224227923899889, 0.020703472197055817, -0.010235324501991272, 0.00325954332947731, 0.03478040173649788, -0.020434828475117683, -0.02532414346933365, -0.004240092821419239, -0.002352871000766754, -0.0034856516867876053, 0.010593515820801258, -0.026774819940328598, -0.02523459680378437, 0.0164589025080204, 0.02362273447215557, 0.06608634442090988, 0.03277453035116196, 0.01923488825559616, -0.012841167859733105, 0.04900060594081879, -0.008202587254345417, -0.04789021238684654, 0.01607384718954563, -0.03347300365567207, 0.07443220913410187, 0.03882796689867973, -0.02217205800116062, 0.031502947211265564, 0.009062246419489384, -0.013244133442640305, 0.004549033008515835, 0.04656490311026573, -0.031162666156888008, 0.060355279594659805, 0.03461921587586403, -0.005117662250995636, -0.044702306389808655, 0.01326204277575016, -0.013351591303944588, -0.009241342544555664, -0.011399446986615658, -0.0729278028011322, 0.05763302370905876, -0.06322081387042999, -0.0014775402378290892, -0.010459193959832191, -0.0029237386770546436, 0.04488140344619751, -0.00743695255368948, 0.03750265762209892, -0.02149149402976036, -0.021992962807416916, -0.039795082062482834, 0.024822676554322243, -0.004347550217062235, -0.06125075742602348, 0.009966680780053139, -0.007132489699870348, 0.055770426988601685, 0.04660072177648544, 0.07715446501970291, -0.00885628629475832, 0.06726837903261185, -0.01453362312167883, -0.04326954111456871, -0.06347154825925827, -0.001555894617922604, -0.03943689167499542, -0.0335625484585762, 0.003839365905150771, 0.056809183210134506, -0.07181741297245026, -0.09312980622053146, -0.0125814788043499, 0.009868177585303783, -0.0028789646457880735, -0.023354090750217438, 0.02168850041925907, -0.020112456753849983, -0.04656490311026573, 0.043448638170957565, -0.060964204370975494, 0.0042512863874435425, -0.019019972532987595, 0.05068410560488701, 0.05620025843381882, -0.04423666000366211, -0.00020791901624761522, 0.024894313886761665, 0.034869950264692307, -0.07593661546707153, 0.02575397491455078, -0.006859368644654751, 0.0033737169578671455, -0.02245861105620861, -0.007177263498306274, 0.003138653701171279, 0.027097191661596298, 0.007830963470041752, 0.03245215490460396, -0.01800808124244213, -0.060641832649707794, -0.01098752673715353, -0.00840854737907648, 0.013459048233926296, -0.05140049010515213, -0.02878069318830967, -0.020381100475788116, 0.040511466562747955, -0.014820176176726818, 0.02378392033278942, -0.020739292725920677, -0.008010058663785458, 0.01316354051232338 ]
730,135
mmengine.fileio.backends.lmdb_backend
_get_client
null
def _get_client(self): import lmdb return lmdb.open( self.db_path, readonly=self.readonly, lock=self.lock, readahead=self.readahead, **self.kwargs)
(self)
[ 0.012425944209098816, -0.050288524478673935, -0.04168925806879997, 0.051458027213811874, 0.06597359478473663, -0.012941899709403515, 0.0352570042014122, 0.059678927063941956, -0.02411235123872757, -0.017886480316519737, -0.074641652405262, 0.016183825209736824, -0.06050445884466171, 0.05273071676492691, 0.02958148531615734, -0.01826484687626362, -0.05806226655840874, -0.007072899024933577, -0.0059678927063941956, -0.03938465192914009, 0.005009074229747057, 0.06989485770463943, 0.05348745360970497, 0.006823520176112652, 0.020689841359853745, 0.042067624628543854, -0.01725013367831707, 0.015065919607877731, 0.07945724576711655, 0.0011157551780343056, 0.034397076815366745, 0.013578246347606182, 0.00558522529900074, 0.056376807391643524, -0.001858517061918974, 0.030854176729917526, 0.012554933317005634, -0.02375118061900139, -0.0019025882938876748, -0.07980121672153473, -0.015358294360339642, -0.020122289657592773, 0.10745646804571152, -0.014704749919474125, 0.01669977977871895, -0.006720328703522682, 0.026468550786376, -0.05176759883761406, 0.03542898967862129, 0.0077909380197525024, 0.02467990294098854, 0.03976301848888397, -0.012210962362587452, 0.004738197196274996, -0.06748706102371216, -0.03821515291929245, -0.04254918172955513, -0.007481364067643881, -0.029529890045523643, 0.007700645364820957, -0.07498562335968018, -0.012812910601496696, 0.039487842470407486, 0.010482508689165115, 0.011695005930960178, -0.03291800245642662, -0.05995410308241844, 0.010405115783214569, 0.04788073152303696, 0.032849207520484924, 0.03221286088228226, 0.0225472841411829, 0.02884194813668728, -0.038524724543094635, -0.02235809899866581, 0.025333447381854057, -0.0490846261382103, -0.03300399333238602, -0.010843678377568722, 0.009201218374073505, 0.007993021048605442, 0.007515761069953442, -0.017095347866415977, 0.02842918410897255, 0.006922411732375622, -0.03173130378127098, -0.002880755113437772, 0.017783287912607193, 0.0030226430390030146, -0.0450945682823658, 0.012408745475113392, 0.04330591857433319, -0.027930425480008125, 0.041826844215393066, -0.030544603243470192, -0.08551113307476044, -0.01939995028078556, 0.05414099991321564, 0.03214406967163086, 0.05197398364543915, -0.057959072291851044, 0.045576125383377075, -0.010955468751490116, 0.022272106260061264, -0.014859536662697792, 0.016923362389206886, 0.011789597570896149, -0.0122367599979043, -0.007898428477346897, 0.00578300841152668, -0.05861261859536171, 0.02782723493874073, 0.058131057769060135, 0.05861261859536171, -0.01689756289124489, 0.034775443375110626, 0.006333361845463514, 0.005146662704646587, 0.038490328937768936, -0.03424229100346565, -0.08613027632236481, 0.05021973326802254, 0.02467990294098854, 0.008685261942446232, 0.056514397263526917, 0.04767434671521187, -0.012666723690927029, -0.06384097039699554, 0.033640339970588684, -0.05599844083189964, 0.08124589174985886, -0.00029237515991553664, 0.02526465244591236, 0.0022143118549138308, 0.006986906286329031, 0.03687366470694542, 0.046986404806375504, -0.0033967113122344017, -0.038731109350919724, 0.053246673196554184, -0.046952009201049805, 0.012081973254680634, 0.018763605505228043, -0.015461485832929611, -0.034190695732831955, 0.030630595982074738, -0.01881520077586174, 0.014231790788471699, 0.04413145035505295, -0.018127258867025375, 0.07188989222049713, -0.08750616014003754, 0.020259877666831017, 0.036736078560352325, -0.0648040920495987, -0.009184019640088081, -0.03114655241370201, -0.04131088778376579, 0.04581690579652786, -0.009218416176736355, 0.018092861399054527, 0.029908258467912674, -0.021893739700317383, -0.023561997339129448, -0.021704554557800293, -0.005697015672922134, -0.028257198631763458, -0.0842040404677391, -0.02469710074365139, -0.02313203364610672, -0.027947625145316124, 0.028583969920873642, -0.027087697759270668, -0.027947625145316124, -0.05434738099575043, 0.04000379890203476, -0.022065725177526474, 0.0314045324921608, 0.038696710020303726, -0.0019402101170271635, -0.012666723690927029, 0.012408745475113392, -0.024783093482255936, -0.0059592933394014835, 0.02449071779847145, 0.033055588603019714, 0.03800876811146736, 0.030063044279813766, 0.07395371049642563, 0.03690806403756142, -0.03738962113857269, 0.007034202106297016, 0.022082922980189323, -0.035171009600162506, -0.05544808879494667, -0.027294080704450607, -0.004858586937189102, 0.005262752529233694, -0.03704565018415451, 0.10429193824529648, 0.007399671245366335, 0.05138923227787018, -0.024439122527837753, 0.02450791746377945, 0.026623336598277092, -0.03862791508436203, -0.03876550495624542, -0.053246673196554184, 0.003097886685281992, 0.01843683235347271, -0.04062294587492943, -0.019451547414064407, -0.059885308146476746, 0.017714494839310646, 0.05193958431482315, -0.021412180736660957, -0.004200743045657873, 0.0035042022354900837, 0.054381776601076126, 0.016140827909111977, 0.02588379941880703, 0.028669962659478188, -0.017972473055124283, -0.0274660661816597, -0.02703610248863697, -0.040485359728336334, 0.00013584157568402588, -0.008831449784338474, -0.013862022198736668, -0.035360194742679596, 0.0019993300084024668, -0.035016223788261414, 0.02197973243892193, -0.01303649228066206, -0.008723958395421505, -0.03444867208600044, -0.0333135686814785, 0.04757115617394447, -0.053212277591228485, -0.016544993966817856, 0.037561606615781784, 0.04213641956448555, 0.06820940226316452, 0.022289305925369263, -0.042445991188287735, 0.0274488665163517, -0.013363264501094818, -0.025815006345510483, 0.03780238702893257, 0.031662508845329285, 0.009046430699527264, -0.025041071698069572, 0.043993860483169556, 0.03566976636648178, -0.010817880742251873, -0.006883714813739061, -0.04000379890203476, 0.0019531089346855879, -0.04561052471399307, -0.03078538365662098, -0.018144458532333374, 0.01419739332050085, 0.004759695380926132, 0.017146943137049675, -0.01650199666619301, 0.0028549572452902794, 0.024851888418197632, -0.006621437147259712, 0.05758070573210716, -0.010508307255804539, 0.07367853820323944, 0.0725090354681015, 0.026124579831957817, -0.021429378539323807, -0.04258358106017113, -0.10422313958406448, -0.005735712591558695, 0.004407125525176525, -0.05035731941461563, -0.02175615169107914, -0.06439132988452911, 0.045954495668411255, 0.031473323702812195, -0.013079488649964333, -0.01979551836848259, -0.019915906712412834, 0.01166060846298933, -0.03080258145928383, -0.006436552852392197, -0.006036686711013317, -0.013475054875016212, -0.032264456152915955, 0.01644180342555046, -0.050082143396139145, 0.008749756030738354, 0.01566786877810955, -0.030699390918016434, 0.030871376395225525, 0.0029237514827400446, 0.025918196886777878, -0.03683926910161972, -0.03838713839650154, 0.027724044397473335, 0.06342820823192596, 0.03271162137389183, -0.018969988450407982, -0.034190695732831955, -0.017207138240337372, -0.061433177441358566, 0.034999024122953415, -0.03701125457882881, -0.021687356755137444, 0.01883239857852459, 0.03271162137389183, -0.008663763292133808, -0.027586454525589943, -0.03993500396609306, 0.02311483584344387, 0.029357904568314552, 0.014334981329739094, -0.0333307683467865, 0.0765678882598877, 0.01382762473076582, -0.02762085199356079, -0.003155931830406189, 0.005735712591558695, 0.021205797791481018, 0.05238674581050873, 0.005580925848335028, 0.029942654073238373, -0.05118285119533539, 0.003936315421015024, 0.001140478067100048, 0.032230060547590256, 0.04798392206430435, -0.003196778241544962, 0.03573856130242348, -0.049325406551361084, 0.019485943019390106, -0.007115895394235849, 0.013148282654583454, 0.02215171791613102, -0.012623727321624756, -0.03389832004904747, -0.010362119413912296, -0.0002616058918647468, 0.005340145900845528, -0.0026550244074314833, -0.005692716222256422, -0.13862021267414093, 0.009158222004771233, -0.007090097293257713, -0.02567741833627224, 0.000010413177733425982, -0.011308038607239723, -0.05197398364543915, -0.01648479886353016, 0.04131088778376579, -0.025350645184516907, -0.003411760088056326, -0.048499878495931625, -0.05269632115960121, -0.01109305676072836, 0.023630792275071144, -0.11908268183469772, 0.024800291284918785, -0.032814811915159225, -0.06404735893011093, 0.06153636798262596, -0.010267526842653751, -0.04210202023386955, -0.05039171501994133, 0.022633276879787445, 0.05610163137316704, -0.0034913031850010157, -0.005946394521743059, -0.04179244861006737, -0.04980696737766266, -0.013191279023885727, 0.03604813665151596, -0.02077583409845829, -0.015650669112801552, 0.08537354320287704, -0.03787118196487427, -0.02682971954345703, -0.028687162324786186, -0.014205992221832275, 0.025969792157411575, 0.006053885444998741, 0.005873300600796938, -0.03056180290877819, -0.021446576341986656, 0.002270207041874528, 0.011084457859396935, -0.00621727155521512, 0.017284531146287918, 0.0003600943891797215, -0.004493118263781071, 0.06590479612350464, -0.013741631992161274, 0.010723288170993328, 0.005572326481342316, 0.06294664740562439, 0.03290080279111862, -0.020122289657592773, 0.009983750991523266, 0.03670167922973633, 0.013449257239699364, 0.023854373022913933, -0.05661758780479431, -0.0842728391289711, -0.008689561858773232, -0.027190888300538063, 0.026365358382463455, 0.013707234524190426, -0.02158416621387005, 0.032642826437950134, 0.039866212755441666, 0.04175804927945137, 0.06576721370220184, 0.01821325160562992, 0.0077909380197525024, 0.0006395706441253424, -0.05035731941461563, -0.03080258145928383, -0.022065725177526474, -0.0028162605594843626, 0.03807756304740906, 0.013294469565153122, -0.002235810039564967, 0.005740012042224407, -0.01626121811568737, 0.05328107252717018, -0.00425878819078207, -0.01665678434073925, 0.05916297063231468, -0.02394036576151848, 0.005701315589249134, 0.03307278826832771, -0.02196253277361393, 0.04089812561869621, -0.043409109115600586, 0.008285395801067352, -0.02134338580071926, 0.05623922124505043, -0.037320826202631, -0.007954323664307594, 0.04278996214270592, 0.07904448360204697, 0.02017388492822647, -0.005112265702337027, 0.016931960359215736, -0.006608538329601288, 0.021807746961712837, -0.0313357375562191, -0.0312841422855854, -0.03690806403756142, -0.020087892189621925, 0.05819985270500183, -0.001194223528727889, 0.0017005054978653789, -0.012503337115049362, 0.058303043246269226, -0.03652969375252724, -0.02294285036623478, 0.026606138795614243, 0.0025131364818662405, 0.020879024639725685, -0.0034397076815366745, -0.013913617469370365, 0.007382472511380911, 0.027362873777747154, -0.014911132864654064, -0.07003244757652283, 0.049703776836395264, -0.0013586845016106963, 0.00578300841152668, -0.039075080305337906, 0.007997320033609867, -0.019950304180383682, -0.04757115617394447, 0.026382558047771454, 0.03114655241370201, 0.01047390978783369, -0.07299059629440308, -0.02313203364610672, 0.0017897228244692087, -0.009613982401788235, 0.03174849972128868, -0.05541368946433067, 0.005903398152440786, 0.1272691786289215, -0.00651824614033103, 0.0006272091995924711, 0.027706844732165337, 0.008741157129406929, 0.0004807528748642653, -0.010043946094810963, 0.027741242200136185, 0.01059429906308651, 0.020345870405435562, 0.010989866219460964, -0.04426903650164604, 0.02703610248863697, 0.03095736913383007, -0.04268677160143852, -0.07698065787553787, -0.022426893934607506, 0.013208477757871151, -0.023441607132554054, -0.009579585865139961, 0.005361644085496664, -0.059506941586732864, -0.013062289915978909, -0.07615512609481812, 0.007068599108606577, -0.039315856993198395, -0.005576625932008028, -0.040691740810871124, -0.00045199907617643476, 0.05273071676492691, 0.022788062691688538, -0.03465505316853523, -0.08557992428541183, -0.08172745257616043, -0.04877505451440811, -0.00009916032286128029, 0.03787118196487427, -0.0005605648620985448, 0.0431339330971241, 0.002126169390976429, -0.0003138733154628426, -0.04784633219242096, -0.0024894883390516043, 0.0030613397248089314, -0.008126309141516685, -0.055379293859004974, 0.006440852768719196, 0.03290080279111862, -0.06879415363073349, 0.05135483667254448, -0.0016274116933345795, -0.013122485019266605, -0.016811570152640343, -0.003908367827534676, -0.02388876862823963, 0.011342436075210571, 0.025608623400330544, -0.0235275998711586, -0.00016701393178664148, 0.09328486770391464, 0.01786928065121174, 0.02488628402352333, -0.05826864764094353, -0.03267722204327583, 0.015323897823691368, 0.020431863144040108, -0.06514806300401688, 0.019881509244441986, -0.020861826837062836, 0.048121508210897446, -0.008410084992647171, -0.07808136194944382, 0.07684306800365448, 0.00844018254429102, -0.02015668712556362, 0.06132998690009117, 0.0314217284321785, 0.004394226707518101, 0.025453835725784302, 0.0001420222979504615, -0.030321022495627403, 0.045988891273736954, 0.053040292114019394, -0.014291984960436821, -0.0009389327024109662, -0.05211156979203224, 0.013371863402426243, 0.04189563915133476, -0.03549778461456299, 0.04454421252012253, -0.012941899709403515, 0.016020437702536583, -0.03431108221411705, -0.027792837470769882, 0.0333995595574379, -0.057890281081199646, 0.025333447381854057, 0.0024636907037347555, -0.05056370049715042, 0.03859351947903633, 0.003944914788007736, -0.03506781905889511, -0.03180009871721268, 0.04846547916531563, 0.011849792674183846, -0.005314348265528679, 0.009321607649326324, 0.03465505316853523, -0.023235224187374115, -0.016020437702536583, 0.06387536972761154, -0.020724238827824593, -0.04471619799733162, -0.01186699140816927, 0.005658319219946861, -0.05334986373782158, -0.02098221704363823, -0.0009964402997866273, -0.017903678119182587, -0.06941329687833786, -0.017146943137049675, -0.06638635694980621, -0.011712204664945602, 0.009441997855901718, 0.00851757638156414, -0.02531624771654606, 0.04168925806879997, 0.04347790405154228, -0.023579195141792297, 0.053831424564123154, 0.015581876039505005, 0.06783103197813034, -0.02039746567606926, -0.01226255763322115, 0.029873860999941826, 0.03210967034101486, -0.0038438732735812664, 0.01360404398292303, 0.05747751519083977, 0.003039841540157795, 0.016716979444026947, -0.002427143743261695, 0.02058665081858635, 0.06528565287590027, 0.009467795491218567, 0.07072038948535919, -0.01805846579372883, -0.007373873144388199, 0.05586085096001625, -0.0743664801120758, 0.046126481145620346, 0.02469710074365139, -0.005813105963170528, -0.02999425120651722, -0.015573276206851006, -0.017955273389816284, 0.019348355010151863, 0.026210572570562363, -0.03374353051185608, -0.029443897306919098, -0.023768380284309387, 0.0371832400560379, 0.0022530085407197475, -0.000008204576261050534, -0.07023882865905762, -0.00641505466774106, 0.007257783319801092, -0.006728928070515394, -0.0074598658829927444, -0.003005444537848234, 0.00257548107765615, 0.011729403398931026, -0.007425468880683184, -0.023407209664583206, -0.02584940195083618, -0.014859536662697792, 0.006531144957989454, 0.04567931592464447, 0.0412420928478241, 0.031868889927864075, 0.005976492073386908, -0.01627841591835022, 0.05207717418670654, 0.009760170243680477, -0.05218036472797394, 0.03506781905889511, 0.00465220445767045, 0.052833911031484604, 0.024783093482255936, 0.006458051037043333, 0.03405310586094856, -0.016347210854291916, 0.0065870401449501514, -0.007618952542543411, -0.022065725177526474, 0.018883995711803436, 0.027689646929502487, 0.03652969375252724, -0.054760146886110306, -0.05778708681464195, 0.019124774262309074, 0.01802406832575798, 0.0314045324921608, -0.028566772118210793, -0.026726529002189636, 0.045576125383377075, -0.019571935757994652, -0.014515566639602184, 0.039109475910663605, 0.01411999948322773, 0.015977442264556885, 0.006909512914717197, 0.03190328925848007, 0.01976112090051174, 0.0019961053039878607, 0.015814056620001793, 0.027139293029904366, -0.01243454311043024, -0.03866231441497803, 0.03314158320426941, -0.004991875495761633, 0.08447922021150589, 0.04805271700024605, 0.08447922021150589, -0.029271911829710007, -0.012288355268537998, 0.027345675975084305, -0.0685877725481987, -0.007898428477346897, -0.043787479400634766, -0.05823425203561783, -0.00608398299664259, -0.020294275134801865, 0.09975152462720871, 0.0037406820338219404, -0.0824841856956482, -0.019640730693936348, -0.03622012212872505, 0.05049490928649902, -0.03345115855336189, -0.07574236392974854, -0.027706844732165337, 0.006204372737556696, 0.04409705102443695, 0.002006854396313429, 0.0470551997423172, -0.02117140032351017, 0.008027417585253716, -0.007266382221132517, -0.06827819347381592, 0.013698635622859001, -0.004531814716756344, 0.07594874501228333, -0.04471619799733162, 0.012468940578401089, -0.0027066199108958244, -0.045782510191202164, -0.004759695380926132, 0.012408745475113392, 0.021635761484503746, -0.0034010109957307577, 0.06239629536867142, 0.03235045075416565, -0.05630801245570183, -0.03257403150200844, -0.022289305925369263, 0.005709914490580559, 0.04471619799733162, -0.010680291801691055, 0.01685456745326519, 0.015126114711165428, -0.018385237082839012, -0.016347210854291916, -0.030286625027656555, -0.04409705102443695, 0.01000094972550869, -0.011161851696670055 ]
730,136
mmengine.fileio.backends.lmdb_backend
get
Get values according to the filepath. Args: filepath (str or Path): Here, filepath is the lmdb key. Returns: bytes: Expected bytes object. Examples: >>> backend = LmdbBackend('path/to/lmdb') >>> backend.get('key') b'hello world'
def get(self, filepath: Union[str, Path]) -> bytes: """Get values according to the filepath. Args: filepath (str or Path): Here, filepath is the lmdb key. Returns: bytes: Expected bytes object. Examples: >>> backend = LmdbBackend('path/to/lmdb') >>> backend.get('key') b'hello world' """ if self._client is None: self._client = self._get_client() filepath = str(filepath) with self._client.begin(write=False) as txn: value_buf = txn.get(filepath.encode('ascii')) return value_buf
(self, filepath: Union[str, pathlib.Path]) -> bytes
[ 0.0412200391292572, -0.05918774753808975, -0.07959731668233871, 0.0569281168282032, 0.018505282700061798, -0.0030751023441553116, -0.033493559807538986, 0.02717023715376854, 0.03429536521434784, -0.0734744444489479, -0.009749213233590126, 0.06126514822244644, -0.057110343128442764, 0.01931619830429554, 0.045447733253240585, 0.024163471534848213, 0.0001701271830825135, 0.010623909533023834, 0.029393423348665237, 0.006227651610970497, -0.00021753502369392663, 0.02307010069489479, 0.07719190418720245, 0.04909230023622513, -0.01710212416946888, -0.012254851870238781, 0.007457692641764879, -0.04460948333144188, 0.04355255886912346, 0.04311521351337433, 0.048436276614665985, -0.07770214229822159, -0.01105214562267065, 0.00780392624437809, -0.03540695458650589, 0.009175194427371025, 0.020646464079618454, -0.02667822130024433, -0.04264141991734505, -0.049201637506484985, -0.01589941792190075, 0.005512405652552843, 0.09308221191167831, -0.03394912928342819, 0.007229907438158989, 0.0006355211371555924, -0.04224051535129547, -0.030505014583468437, 0.011653498746454716, 0.030213449150323868, 0.0718708336353302, 0.04253208264708519, -0.029356976971030235, -0.032436635345220566, -0.03250952437520027, -0.0002008782175835222, -0.03549807146191597, 0.014550928957760334, -0.019334420561790466, 0.06986632198095322, -0.01681055873632431, -0.0764629915356636, 0.0288102924823761, -0.0006247013225220144, 0.04089202731847763, 0.0018416446400806308, -0.02571241185069084, -0.0299583300948143, 0.013922241516411304, -0.006897340528666973, 0.019826438277959824, -0.035953640937805176, -0.02860984019935131, -0.02571241185069084, -0.037939928472042084, 0.028445836156606674, -0.030577905476093292, 0.022723866626620293, -0.04774381220340729, 0.02345278114080429, 0.0036832892801612616, -0.055470291525125504, 0.04668688774108887, 0.0033324998803436756, -0.022195404395461082, -0.0014042967231944203, 0.03965287655591965, -0.005967976525425911, -0.00199312181212008, 0.03136148676276207, 0.00816382747143507, -0.009667210280895233, -0.03972576558589935, 0.07383890450000763, 0.023489225655794144, -0.10860805958509445, 0.03464159741997719, 0.05302843078970909, -0.022213628515601158, 0.04326099529862404, -0.01830483041703701, 0.003200384322553873, 0.06541995704174042, 0.007758369203656912, -0.009402979165315628, 0.0025808080099523067, 0.0057584140449762344, -0.0032117734663188457, 0.033639341592788696, -0.005289176013320684, -0.0621398463845253, 0.021174926310777664, -0.008177494630217552, 0.040673352777957916, -0.025311509147286415, 0.0568552240729332, -0.022286519408226013, -0.01844150200486183, 0.007831260561943054, -0.004009022377431393, 0.0006639943458139896, 0.022140737622976303, 0.0045875972136855125, -0.004332477692514658, 0.06567507237195969, 0.0898749902844429, 0.04446370154619217, -0.04187605902552605, 0.010204783640801907, 0.020774025470018387, 0.04555707052350044, 0.023325219750404358, 0.01599053293466568, 0.025694187730550766, 0.007808482274413109, 0.02163049764931202, 0.05302843078970909, 0.0030136003624647856, 0.047087788581848145, 0.04956609383225441, 0.03382157161831856, -0.041693832725286484, 0.08520994335412979, -0.062066953629255295, 0.04479171335697174, -0.004603541921824217, 0.05036789923906326, -0.06662265956401825, -0.01295643113553524, 0.012400634586811066, 0.026423102244734764, -0.015626074746251106, -0.04701489955186844, -0.00717523880302906, 0.0063461000099778175, 0.018086157739162445, -0.01156238466501236, 0.008596619591116905, -0.03786703944206238, -0.02441859059035778, -0.019625985994935036, 0.016992786899209023, 0.01242796890437603, -0.06480038166046143, 0.0071160146035254, 0.04763447493314743, -0.03881462663412094, 0.039762213826179504, -0.00792237464338541, -0.006628553848713636, -0.06826271861791611, 0.007412135601043701, -0.07438558340072632, 0.01579919271171093, 0.07081390917301178, -0.05200795456767082, -0.01230952050536871, 0.06618531048297882, 0.037684809416532516, 0.01071502361446619, -0.004469148814678192, -0.01844150200486183, -0.01782192662358284, 0.044390808790922165, 0.07762925326824188, 0.023580340668559074, 0.02374434657394886, 0.04661399498581886, 0.0711783692240715, 0.037648364901542664, -0.00642810296267271, -0.013320887461304665, -0.006218540482223034, -0.023051878437399864, -0.03482382372021675, -0.07507805526256561, 0.07522383332252502, -0.04012667015194893, -0.06272297352552414, 0.09162437915802002, 0.027808036655187607, -0.023671453818678856, 0.016655664891004562, -0.018231939524412155, -0.005617186892777681, -0.04347966983914375, 0.035716742277145386, -0.013712678104639053, -0.018177270889282227, 0.04234985262155533, -0.008532839827239513, -0.03801282122731209, -0.04584863781929016, -0.008177494630217552, 0.040673352777957916, -0.029830770567059517, -0.10554662346839905, 0.05434047430753708, -0.00503405649214983, 0.019334420561790466, 0.09257196635007858, 0.04027245193719864, -0.0051798392087221146, -0.0030432124622166157, 0.03145260363817215, -0.024054134264588356, 0.011024811305105686, -0.033402446657419205, -0.08506416529417038, -0.0136580104008317, 0.036919452250003815, 0.011070368811488152, 0.06840849667787552, -0.030505014583468437, 0.04027245193719864, 0.01081524882465601, -0.011489493772387505, 0.025202171877026558, 0.011097702197730541, 0.03859595209360123, 0.046358875930309296, 0.03283753618597984, 0.02895607426762581, 0.05116970092058182, -0.03385801613330841, 0.007034011650830507, 0.018769513815641403, 0.030177004635334015, -0.014250252395868301, 0.0051160589791834354, 0.05200795456767082, -0.013539562001824379, 0.011279931291937828, 0.010496349073946476, 0.027297796681523323, -0.015234285034239292, -0.007475915364921093, -0.050258561968803406, 0.014478037133812904, -0.022213628515601158, -0.013311776332557201, -0.014550928957760334, 0.011826615780591965, -0.01071502361446619, -0.011134148575365543, -0.0035716744605451822, -0.012819759547710419, 0.015307175926864147, 0.05977087840437889, 0.0205735731869936, -0.1093369722366333, 0.08783403038978577, -0.03544340282678604, -0.02678755857050419, -0.0347873792052269, -0.0658208578824997, 0.05000344291329384, 0.03212684765458107, -0.005052279215306044, -0.01993577368557453, -0.10598397254943848, -0.012746868655085564, 0.024637265130877495, -0.04552062600851059, -0.02538440003991127, -0.0052572861313819885, -0.031671274453401566, -0.07223529368638992, -0.023543894290924072, -0.007061345968395472, 0.03207217901945114, -0.017302576452493668, -0.07208950817584991, -0.058786846697330475, 0.06210339814424515, -0.05044078826904297, -0.04836338758468628, -0.032965097576379776, 0.08914607763290405, 0.021302485838532448, -0.012983765453100204, -0.011735501699149609, 0.0777750313282013, 0.0464317686855793, 0.004075080156326294, -0.006186650134623051, -0.005712856538593769, -0.031288597732782364, -0.05302843078970909, 0.04774381220340729, -0.0001024322264129296, -0.010988365858793259, 0.002845039125531912, 0.025311509147286415, 0.03954353928565979, -0.01435047760605812, -0.024363921955227852, 0.059807322919368744, 0.01887885108590126, 0.0063005429692566395, -0.013020210899412632, 0.005407624412328005, 0.015070279128849506, -0.02904718928039074, 0.026313764974474907, -0.03491494059562683, 0.05313776805996895, 0.017976820468902588, 0.020737579092383385, 0.009931441396474838, 0.04049112647771835, 0.030067667365074158, 0.015689855441451073, 0.010942808352410793, 0.0396893210709095, 0.001102481153793633, -0.008642176166176796, -0.028336498886346817, 0.01064213179051876, 0.03358467295765877, 0.07500516623258591, -0.08200272917747498, 0.020737579092383385, -0.0037539026234298944, 0.02471015602350235, 0.005293731577694416, 0.014095357619225979, -0.0015694411704316735, 0.0018689788412302732, -0.04945675656199455, 0.005088724661618471, -0.021976731717586517, -0.03435003012418747, 0.0442085824906826, -0.02948453649878502, -0.030286341905593872, -0.006054534576833248, -0.0014122691936790943, -0.01550762727856636, 0.018377723172307014, -0.008965631946921349, -0.0172387957572937, -0.04880073666572571, 0.02283320389688015, -0.02802671119570732, -0.022505193948745728, 0.008150160312652588, -0.021502938121557236, 0.020646464079618454, 0.0280813779681921, -0.017794592306017876, 0.005106947850435972, -0.012464414350688457, 0.0501856692135334, 0.008888185024261475, -0.056672997772693634, -0.04599441960453987, -0.02239585667848587, 0.0007169544114731252, 0.07092324644327164, 0.020992698147892952, -0.02124781906604767, 0.029120080173015594, 0.00297943246550858, 0.0034577816259115934, 0.018805958330631256, 0.02933875471353531, -0.0064736600033938885, -0.029320530593395233, -0.005717412568628788, 0.021648719906806946, -0.00210815342143178, 0.005885973572731018, -0.03957998380064964, -0.0411471463739872, 0.019917551428079605, 0.04767091944813728, 0.017129458487033844, 0.08637620508670807, 0.00174939155112952, 0.0011958731338381767, -0.021849172189831734, -0.0695747584104538, 0.06716934591531754, -0.033894460648298264, -0.002485138364136219, 0.018915295600891113, 0.009603430517017841, -0.042167626321315765, -0.061775390058755875, -0.04300587624311447, -0.006432658527046442, -0.002897429745644331, -0.02013622596859932, 0.02799026481807232, -0.0014418812934309244, -0.0220678448677063, -0.01589941792190075, -0.010869917459785938, 0.05598052963614464, -0.044828157871961594, -0.03212684765458107, 0.0020774025470018387, -0.04129292815923691, 0.006273208651691675, -0.015835637226700783, 0.011926840990781784, -0.01714768260717392, -0.011106814257800579, 0.03039567731320858, 0.044281475245952606, -0.0673515722155571, -0.005147948861122131, -0.012145515531301498, -0.016218317672610283, 0.021758057177066803, -0.027753368020057678, -0.02485593780875206, 0.05372089892625809, -0.013093102723360062, -0.0007431497215293348, 0.004630876239389181, 0.014796936884522438, 0.00799526646733284, 0.00260130874812603, -0.045447733253240585, -0.04803537577390671, 0.009931441396474838, 0.09228040277957916, -0.033019766211509705, -0.04810826852917671, -0.03240019083023071, 0.0696476474404335, -0.010806137695908546, 0.017749035730957985, 0.008660399354994297, -0.06494615972042084, -0.0284276120364666, 0.0067196679301559925, -0.012919985689222813, 0.015954086557030678, 0.0003581924829632044, 0.05689167231321335, -0.09446714073419571, 0.014441591687500477, -0.04683266952633858, -0.012646643444895744, 0.07223529368638992, -0.004143415484577417, -0.04614020138978958, -0.009822105057537556, -0.0005426986026577652, -0.05973443388938904, -0.03314732387661934, 0.05587119236588478, -0.00845539290457964, 0.02409057877957821, -0.007662699557840824, -0.034659821540117264, -0.0824400782585144, -0.030213449150323868, -0.04825405031442642, -0.03482382372021675, 0.03575319051742554, 0.0038222381845116615, -0.018077045679092407, 0.012263963930308819, 0.05619920417666435, 0.07365667074918747, -0.06778892129659653, -0.020846916362643242, 0.110794797539711, -0.006569329649209976, -0.012919985689222813, 0.027735145762562752, 0.005945197772234678, -0.00774470204487443, -0.008277719840407372, -0.015225172974169254, 0.04876428842544556, -0.0190793015062809, -0.03083302639424801, -0.007075013127177954, 0.03269175440073013, -0.03127037361264229, -0.013712678104639053, 0.0016001921612769365, -0.013093102723360062, -0.0003530672984197736, -0.031817059963941574, -0.0018211439019069076, 0.03376690298318863, -0.036390990018844604, -0.028190715238451958, -0.07660876959562302, 0.028154270723462105, -0.01975354552268982, 0.002243685768917203, -0.033548228442668915, 0.03987154737114906, 0.0127195343375206, -0.0021878783591091633, 0.001650304882787168, -0.03444114699959755, -0.02148471400141716, -0.04614020138978958, -0.06931964308023453, -0.0613744854927063, -0.022559862583875656, 0.04686911404132843, 0.005826749373227358, -0.01401335559785366, 0.013020210899412632, 0.010560128837823868, 0.015452958643436432, -0.03300154209136963, -0.008072713389992714, 0.023234106600284576, -0.049784768372774124, -0.05109681189060211, 0.024637265130877495, -0.02297898754477501, -0.019042855128645897, -0.013730901293456554, 0.010751469060778618, -0.006086424924433231, -0.0382314957678318, -0.007539695128798485, 0.06622175872325897, -0.007239018566906452, 0.03154371678829193, -0.0325641930103302, 0.015088502317667007, -0.04264141991734505, -0.02828183025121689, -0.007289131637662649, 0.0049156080931425095, -0.011179705150425434, -0.024819493293762207, -0.025803525000810623, 0.06844494491815567, 0.005945197772234678, -0.07234463095664978, 0.050987474620342255, -0.009867661632597446, 0.033639341592788696, 0.014596485532820225, 0.03314732387661934, 0.04552062600851059, -0.03077835775911808, 0.011835726909339428, 0.047087788581848145, 0.04562996327877045, 0.019717101007699966, 0.03994444012641907, 0.042750757187604904, 0.0034031132236123085, 0.010141003876924515, 0.011334598995745182, -0.019717101007699966, 0.017284352332353592, 0.017020121216773987, 0.02409057877957821, 0.06097358465194702, 0.04577574506402016, 0.042604971677064896, 0.006022644694894552, 0.05047723650932312, -0.026040421798825264, -0.01493360847234726, -0.005316510330885649, -0.014031577855348587, -0.00975832436233759, 0.00700667779892683, 0.06458170711994171, 0.03004944510757923, -0.04388057067990303, 0.021411823108792305, 0.004460037220269442, -0.004692378453910351, 0.012591974809765816, -0.02591286227107048, -0.006842672359198332, 0.0002048644528258592, -0.028245383873581886, 0.03837727755308151, 0.004603541921824217, -0.017421023920178413, 0.01773081161081791, 0.03453226014971733, -0.04778025671839714, -0.026951562613248825, -0.02875562384724617, 0.012628420256078243, 0.021120257675647736, 0.03238196671009064, -0.003580785822123289, 0.024582596495747566, -0.04526550695300102, -0.04151160269975662, 0.0381586030125618, -0.009603430517017841, 0.018696622923016548, 0.04041823372244835, -0.0003240246733184904, -0.017457470297813416, 0.022869650274515152, 0.014751379378139973, -0.009484982118010521, 0.007854038849473, 0.003214051481336355, 0.017657920718193054, 0.00931642111390829, 0.05102391913533211, 0.03280109167098999, -0.03936130926012993, 0.06097358465194702, -0.01753036119043827, 0.0022710200864821672, 0.03139793500304222, -0.06064557284116745, 0.029703211039304733, -0.03429536521434784, -0.01011366955935955, -0.008883628994226456, 0.028719177469611168, -0.01734813302755356, -0.010250341147184372, 0.04876428842544556, -0.03376690298318863, -0.013357332907617092, -0.021229594945907593, 0.007453137077391148, 0.0018291163723915815, 0.008327832445502281, -0.022377634420990944, 0.08768825232982635, 0.017129458487033844, -0.019480204209685326, 0.002015900332480669, -0.017111236229538918, -0.020190894603729248, -0.024691931903362274, -0.06760669499635696, -0.05649076774716377, -0.03531584143638611, -0.03342066705226898, 0.01661010831594467, 0.058932628482580185, -0.0015090779634192586, 0.03604475408792496, 0.009712767787277699, -0.043042320758104324, -0.03139793500304222, -0.005357511807233095, -0.029739655554294586, 0.0006736752111464739, -0.04012667015194893, 0.03906974568963051, 0.00780392624437809, 0.010195672512054443, 0.03888751566410065, 0.006204873323440552, 0.0606820210814476, -0.03852305933833122, 0.007088680285960436, 0.03604475408792496, 0.0576205849647522, 0.023853681981563568, -0.0650554969906807, -0.04329743981361389, -0.034222472459077835, 0.01509761344641447, 0.0045306505635380745, -0.020354898646473885, 0.022559862583875656, 0.06377989798784256, -0.015817414969205856, -0.013621564023196697, 0.044281475245952606, -0.051461268216371536, -0.020537128672003746, 0.016655664891004562, -0.0005817068740725517, 0.014778713695704937, -0.036245204508304596, 0.024874161928892136, -0.02667822130024433, -0.07420335710048676, -0.020591795444488525, -0.01604519970715046, 0.017548583447933197, 0.017566807568073273, -0.044718820601701736, 0.020354898646473885, -0.015061168000102043, -0.07974309474229813, 0.026477770879864693, -0.03863239660859108, 0.021357154473662376, -0.04030889645218849, 0.008195716887712479, 0.018368611112236977, 0.009252641350030899, 0.03972576558589935, 0.005567074287682772, -0.044718820601701736, -0.015972308814525604, -0.08200272917747498, 0.0749322697520256, 0.019480204209685326, -0.028646286576986313, 0.023871906101703644, -0.020737579092383385, -0.03068724274635315, -0.03433180972933769, -0.056089866906404495, -0.06538350880146027, 0.10161048918962479, 0.06275942176580429, -0.030851248651742935, 0.04406280070543289, 0.00503405649214983, 0.005808526650071144, -0.006911007687449455, -0.0000155267753143562, 0.03125214949250221, 0.0075761410407722, -0.0050841690972447395, 0.025129280984401703, 0.006095536053180695, 0.028919629752635956, -0.00658755237236619, 0.06381634622812271, 0.016746779903769493, -0.025111058726906776, -0.011826615780591965, -0.0013416557339951396, -0.015717189759016037, 0.007366578560322523, -0.015188727527856827, 0.037065234035253525, -0.03845016658306122, 0.015881195664405823, -0.053392887115478516, -0.010049889795482159, -0.015562295913696289, 0.032965097576379776 ]
730,137
mmengine.fileio.backends.lmdb_backend
get_text
null
def get_text(self, filepath, encoding=None): raise NotImplementedError
(self, filepath, encoding=None)
[ 0.0020921211689710617, -0.05740755423903465, 0.00968110654503107, 0.07619006186723709, 0.03551119565963745, -0.006248413119465113, -0.02032287046313286, 0.017623092979192734, 0.11143624782562256, -0.01823592558503151, 0.04266643524169922, -0.0161324180662632, -0.036438725888729095, -0.018948137760162354, -0.0031635439954698086, 0.05031856894493103, -0.046674694865942, 0.008331217803061008, -0.0018488512141630054, -0.0037867289502173662, -0.040082596242427826, -0.03693561628460884, 0.0033208930399268866, 0.012529952451586723, -0.003089010016992688, 0.02666652202606201, -0.03882380574941635, -0.08871173113584518, -0.004018611740320921, -0.029382864013314247, 0.0031883884221315384, -0.07009485363960266, -0.028587836772203445, 0.041639525443315506, -0.057440683245658875, 0.048032864928245544, -0.0002142845478374511, -0.037763770669698715, -0.00608278252184391, -0.02507646754384041, -0.05800382420420647, 0.06330400705337524, 0.06472842395305634, -0.018153110519051552, -0.04246767982840538, -0.03372238576412201, -0.04392522573471069, -0.043163325637578964, -0.027925314381718636, 0.025821805000305176, 0.03706812113523483, 0.03347393870353699, -0.07917141169309616, -0.03305986151099205, -0.06058766320347786, -0.013631395995616913, -0.014219384640455246, 0.04677407443523407, 0.025175847113132477, 0.026053689420223236, 0.008645915426313877, -0.04972229525446892, 0.06081954389810562, -0.00401240075007081, 0.0049523538909852505, 0.052239879965782166, 0.06048828363418579, -0.03597496077418327, 0.03690249100327492, 0.011478198692202568, 0.060554537922143936, -0.005739099346101284, -0.0075734579004347324, -0.03991696611046791, 0.02709716185927391, -0.006260835565626621, -0.0380287803709507, -0.008712167851626873, 0.017871538177132607, 0.035875581204891205, -0.010583793744444847, 0.017821848392486572, 0.036438725888729095, 0.0027743119280785322, 0.04236830025911331, -0.06549032777547836, 0.04723783954977989, -0.0380287803709507, -0.022724514827132225, 0.04061261564493179, 0.027047472074627876, -0.03448428586125374, -0.032447028905153275, 0.04657531529664993, -0.0027743119280785322, -0.04375959560275078, 0.03229796141386032, -0.015403643250465393, -0.04034760594367981, 0.004401632584631443, -0.04236830025911331, 0.047834109514951706, 0.048364125192165375, -0.026914967224001884, 0.046376559883356094, -0.03749876096844673, -0.026401512324810028, 0.006898513063788414, 0.05167673900723457, 0.028223449364304543, -0.05826883390545845, -0.028024692088365555, 0.026351824402809143, -0.006948202382773161, 0.04213641583919525, -0.0648278072476387, -0.0532999187707901, 0.01321731973439455, -0.012281506322324276, -0.030707906931638718, 0.031685128808021545, -0.012231817469000816, -0.07711759209632874, -0.015668651089072227, 0.001861273543909192, 0.04114263504743576, 0.01166039239615202, 0.017556840553879738, 0.06125018373131752, -0.017324957996606827, 0.019196582958102226, 0.025904621928930283, 0.07088988274335861, -0.023701734840869904, 0.04657531529664993, 0.007527909241616726, -0.002519655041396618, 0.045945920050144196, 0.031039169058203697, 0.06661661714315414, 0.033208929002285004, -0.05558561906218529, 0.04756909981369972, -0.02221105992794037, -0.026119939982891083, 0.016298048198223114, 0.03935382515192032, -0.0934818908572197, -0.060422033071517944, 0.010500977747142315, 0.06678224354982376, -0.0010196631774306297, -0.08215276151895523, -0.036306221038103104, 0.016770094633102417, -0.019958483055233955, 0.019047515466809273, 0.056115638464689255, -0.049126025289297104, 0.04521714523434639, -0.0021387047600001097, 0.016728688031435013, 0.009358127601444721, 0.01846780814230442, 0.021300090476870537, 0.049689169973134995, -0.019544407725334167, -0.023088902235031128, 0.002790875034406781, -0.05714254826307297, -0.021531974896788597, -0.011138656176626682, -0.08546537160873413, 0.04929165914654732, 0.05177611485123634, 0.00280536781065166, 0.023353910073637962, 0.08327905088663101, 0.030939791351556778, 0.06648410856723785, -0.022923270240426064, -0.056215014308691025, -0.04200391098856926, 0.040844500064849854, 0.07353997230529785, -0.010418162681162357, 0.023138590157032013, 0.018086858093738556, 0.030923226848244667, -0.03537869080901146, 0.04591279476881027, -0.04034760594367981, -0.015387079678475857, 0.027776246890425682, -0.016198670491576195, -0.08824796974658966, 0.0574738085269928, -0.024148937314748764, -0.08983802050352097, -0.0028302124701440334, 0.04909290000796318, 0.0014420211082324386, 0.03789627552032471, 0.030244141817092896, -0.0247783325612545, 0.03451741114258766, 0.014385014772415161, 0.009995805099606514, -0.06717976182699203, 0.06876981258392334, -0.01690259948372841, -0.0649603083729744, -0.022592009976506233, 0.015469895675778389, 0.040413860231637955, -0.02774311974644661, -0.09599947929382324, 0.02002473548054695, -0.018269052729010582, 0.042401425540447235, 0.015445050783455372, 0.04445524513721466, -0.014252510853111744, 0.007436812389642, 0.05591687932610512, -0.0241986270993948, 0.026136504486203194, 0.017556840553879738, -0.016753531992435455, -0.03274516388773918, 0.012016497552394867, -0.018219362944364548, 0.002790875034406781, 0.022045427933335304, -0.0011221470776945353, -0.00627739867195487, -0.02530835196375847, -0.02774311974644661, 0.038194410502910614, -0.02366860769689083, 0.011469917371869087, 0.008178009651601315, 0.0022463647183030844, 0.054459329694509506, -0.011776333674788475, -0.013581707142293453, -0.003780517727136612, 0.06638473272323608, 0.04435586556792259, -0.03640560060739517, 0.07088988274335861, -0.0052504888735711575, -0.03262922167778015, 0.01637258194386959, -0.03812815621495247, -0.014351888559758663, -0.034020520746707916, -0.05571812391281128, 0.03160231187939644, 0.032562971115112305, 0.0007846748339943588, 0.014037190936505795, -0.0013954375172033906, 0.011834303848445415, -0.001668727956712246, -0.04475338011980057, -0.049689169973134995, 0.04359396547079086, 0.011420227587223053, -0.01104755885899067, -0.08652541041374207, 0.09381315112113953, -0.04067886620759964, -0.0393206961452961, -0.047701604664325714, -0.018484370782971382, 0.007569317240267992, 0.016206951811909676, -0.0077887773513793945, 0.007941985502839088, -0.05098108947277069, 0.04226892068982124, 0.041838280856609344, -0.026567144319415092, 0.05031856894493103, -0.02399986982345581, 0.02666652202606201, -0.0409107506275177, -0.025672737509012222, -0.012447137385606766, 0.0028157196938991547, 0.016869474202394485, 0.010625201277434826, -0.013523736037313938, 0.06125018373131752, -0.015503020957112312, -0.020372560247778893, -0.03524618595838547, 0.022244185209274292, -0.052902404218912125, -0.009962678886950016, 0.00026863208040595055, -0.01481565460562706, -0.01105584017932415, -0.09401191025972366, -0.005714254453778267, -0.020587880164384842, -0.010128309018909931, -0.00036542245652526617, -0.002428558189421892, 0.001184258610010147, -0.03971821069717407, 0.03872442618012428, 0.06270773708820343, -0.017888100817799568, 0.012811524793505669, -0.013507173396646976, 0.040082596242427826, 0.04591279476881027, -0.017192453145980835, 0.01878250576555729, -0.03541181609034538, 0.03501430153846741, -0.02454645000398159, 0.06449654698371887, -0.024281442165374756, 0.009763922542333603, 0.00009666096593718976, 0.004472025204449892, 0.023502977564930916, 0.04730409011244774, 0.05064982920885086, 0.005465808790177107, -0.05989201366901398, -0.0648278072476387, -0.016563057899475098, 0.0171427633613348, -0.05608250945806503, 0.014227665960788727, 0.011138656176626682, 0.031006041914224625, -0.06313837319612503, -0.0211013350635767, -0.005246348213404417, 0.006658348720520735, 0.05939512327313423, 0.018716255202889442, -0.027378732338547707, 0.03347393870353699, -0.03855879604816437, 0.014467829838395119, -0.002964787185192108, -0.009788766503334045, 0.019196582958102226, -0.0819540023803711, 0.020869452506303787, -0.02519240975379944, 0.009109681472182274, -0.011734926141798496, -0.0013457484310492873, -0.054459329694509506, 0.0015382939018309116, -0.028720341622829437, 0.01846780814230442, -0.01012002769857645, -0.02178042009472847, 0.012736991047859192, 0.08983802050352097, 0.0034430455416440964, 0.059660132974386215, -0.0063022430986166, 0.0143684521317482, -0.023254532366991043, 0.01254651602357626, 0.007014454808086157, -0.02842220664024353, -0.02840564213693142, -0.041639525443315506, -0.0652584433555603, 0.04640968516469002, 0.0011873641051352024, 0.04190453514456749, -0.05492309853434563, 0.00005855299605173059, -0.01387984212487936, 0.004927509464323521, -0.008877798914909363, 0.0003964781644754112, -0.009970960207283497, -0.032794851809740067, 0.017374645918607712, -0.00371633586473763, 0.010459570214152336, 0.008157305419445038, -0.021399470046162605, -0.001514484523795545, 0.021399470046162605, 0.02298952266573906, 0.05465808883309364, 0.04382584989070892, -0.02519240975379944, 0.008488566614687443, -0.06989610195159912, 0.012538233771920204, -0.015138634480535984, 0.07486502081155777, 0.002233942272141576, 0.0002751020365394652, -0.01376389991492033, -0.0007329152431339025, -0.01856718771159649, 0.027908751741051674, 0.022177932783961296, -0.039618831127882004, -0.02452988736331463, 0.023055775091052055, -0.06724601238965988, -0.03981759026646614, -0.033092986792325974, 0.016861192882061005, -0.06671599298715591, 0.014393296092748642, -0.01911376789212227, 0.025043342262506485, 0.03372238576412201, -0.024745207279920578, 0.025142719969153404, -0.028571274131536484, 0.042600180953741074, 0.016828065738081932, 0.00833949912339449, -0.07267869263887405, -0.07234743237495422, -0.022061992436647415, -0.002792945597320795, 0.04531652480363846, -0.0736062228679657, -0.023353910073637962, 0.0007499959319829941, -0.02390049211680889, 0.01881563290953636, 0.02719653956592083, 0.0055734687484800816, 0.024182062596082687, 0.05253801494836807, -0.03541181609034538, -0.02817375957965851, -0.017010260373353958, -0.0019358072895556688, -0.06572221219539642, -0.020074425265192986, 0.04511776566505432, 0.03195013850927353, -0.001373698585666716, -0.02000817283987999, -0.005238066893070936, 0.02984662912786007, -0.005962700583040714, 0.0008488566963933408, 0.03958570584654808, -0.05028543993830681, 0.07234743237495422, 0.0388900563120842, -0.10182967782020569, 0.06648410856723785, -0.04299769550561905, -0.05386305972933769, 0.05154423415660858, -0.05419432371854782, -0.031767942011356354, -0.003072447143495083, 0.010393318720161915, -0.05869947373867035, -0.03108885884284973, 0.00450101075693965, 0.03995009511709213, -0.04180515557527542, 0.011411946266889572, -0.008422314189374447, -0.003169754985719919, 0.02156510017812252, -0.04289831593632698, -0.019809415563941002, 0.004229790531098843, -0.0014389156131073833, 0.004144905135035515, 0.04038073122501373, -0.024943964555859566, 0.02386736497282982, -0.05442620441317558, 0.021482285112142563, 0.06558970361948013, -0.012654175981879234, -0.016389144584536552, 0.01580115593969822, 0.0017091004410758615, -0.025507107377052307, 0.019544407725334167, -0.028687214478850365, 0.029581619426608086, -0.0010010297410190105, -0.05131234973669052, 0.010393318720161915, 0.03590870648622513, 0.01899782568216324, 0.02443050965666771, 0.002724622841924429, 0.04402460530400276, 0.03339112177491188, -0.02113446034491062, -0.0004987032734788954, 0.04154014587402344, 0.0077018216252326965, -0.007250478025525808, 0.01078255008906126, -0.02588805742561817, -0.02908472716808319, 0.023569229990243912, -0.01254651602357626, 0.04286519065499306, -0.04359396547079086, 0.01238088496029377, -0.03286110609769821, -0.03995009511709213, 0.03127105161547661, -0.0037577436305582523, -0.08506786078214645, 0.015999913215637207, -0.041407641023397446, 0.0517098642885685, 0.0013457484310492873, -0.02565617486834526, 0.03274516388773918, -0.003861262695863843, -0.006542407441884279, -0.002977209398522973, -0.021531974896788597, 0.04511776566505432, 0.04978854954242706, 0.039420075714588165, 0.012405729852616787, -0.006641786079853773, -0.05538686364889145, -0.014459548518061638, 0.022161370143294334, -0.042600180953741074, -0.002519655041396618, -0.035113681107759476, 0.03508055582642555, 0.06002451851963997, 0.026368387043476105, -0.02452988736331463, 0.001989637268707156, 0.010219406336545944, 0.06572221219539642, 0.041076380759477615, -0.024016432464122772, 0.027610616758465767, 0.0022422238253057003, -0.03647185117006302, 0.04375959560275078, 0.0009083801414817572, -0.059759508818387985, 0.026931529864668846, -0.003513438394293189, 0.07393748313188553, 0.00302482838742435, 0.04823162034153938, -0.04909290000796318, -0.05624814331531525, 0.01735808327794075, 0.052670519798994064, 0.006351932417601347, -0.01811998523771763, -0.02287358231842518, 0.026020562276244164, 0.048596009612083435, -0.002472036285325885, 0.011569295078516006, 0.0112711600959301, 0.007093129213899374, -0.04200391098856926, 0.03173481673002243, 0.032248273491859436, 0.034119896590709686, 0.02232700027525425, 0.0008250472601503134, 0.0022442941553890705, -0.016770094633102417, 0.00290474621579051, 0.005184236913919449, -0.03938695043325424, 0.03958570584654808, -0.03431865572929382, 0.03779689595103264, 0.029680998995900154, -0.0017846693517640233, -0.003931655548512936, 0.009209060110151768, -0.050252314656972885, 0.00036982199526391923, -0.010765987448394299, -0.025242099538445473, 0.07705134153366089, -0.009556883946061134, 0.0809602215886116, 0.012240098789334297, -0.02554023452103138, -0.015138634480535984, 0.04756909981369972, -0.049689169973134995, -0.05018606409430504, 0.013117941096425056, -0.07479876279830933, 0.004558981396257877, 0.03938695043325424, 0.041738905012607574, -0.03958570584654808, 0.013838433660566807, 0.00401240075007081, 0.06641785800457001, 0.019743163138628006, -0.007867451757192612, 0.04988792911171913, -0.0034554677549749613, 0.05363117903470993, 0.005962700583040714, -0.01913033053278923, -0.010848802514374256, 0.01647195965051651, 0.01016971655189991, -0.002840564353391528, -0.0002999466087203473, 0.06058766320347786, 0.025391167029738426, 0.001400613458827138, -0.01657962054014206, -0.020985392853617668, -0.009813611395657063, 0.0022670684847980738, -0.04776785522699356, 0.005209081340581179, -0.06307212263345718, -0.02931661158800125, -0.02421518974006176, 0.018948137760162354, -0.057871319353580475, -0.023254532366991043, 0.04647593945264816, -0.021283527836203575, -0.026782462373375893, 0.03822753578424454, 0.021366342902183533, -0.0015983349876478314, 0.012041342444717884, 0.005544483195990324, 0.06002451851963997, -0.01659618318080902, 0.021531974896788597, 0.028803156688809395, 0.002445121295750141, 0.02666652202606201, 0.00917593389749527, -0.0442233607172966, -0.020919140428304672, -0.062310218811035156, -0.022409815341234207, -0.030277268961071968, 0.04144077003002167, -0.017970917746424675, 0.029747249558568, 0.0810927301645279, 0.0018788718152791262, -0.04279894009232521, 0.029349736869335175, 0.02388392761349678, 0.056546278297901154, -0.05641377344727516, 0.05363117903470993, 0.016886036843061447, 0.024678954854607582, 0.024182062596082687, -0.001827112166211009, -0.024596139788627625, -0.030923226848244667, -0.0011790826683863997, -0.02885284461081028, 0.022393252700567245, 0.05452558398246765, -0.02443050965666771, -0.07453375309705734, -0.004737034440040588, -0.05194174498319626, -0.0022132385056465864, 0.056546278297901154, 0.03362300619482994, 0.039519455283880234, -0.07108864188194275, 0.03739938139915466, 0.018749380484223366, 0.009101400151848793, -0.05929574370384216, 0.03988384082913399, -0.038095030933618546, 0.009656262584030628, -0.057109419256448746, -0.0045341369695961475, -0.03319236636161804, -0.06969734281301498, -0.008231839165091515, -0.012405729852616787, -0.004289831966161728, 0.009250467643141747, -0.009656262584030628, 0.053796809166669846, 0.010037212632596493, -0.04654219001531601, 0.048032864928245544, 0.02918410673737526, -0.023304220288991928, -0.00917593389749527, 0.009374690242111683, 0.027179976925253868, 0.054359953850507736, -0.02077007293701172, 0.04521714523434639, -0.05253801494836807, -0.006223568692803383, -0.021863235160708427, 0.044289615005254745, 0.013846715912222862, -0.0038985295686870813, -0.007316730450838804, -0.01790466532111168, -0.06028952822089195, -0.02022349275648594, -0.0080662090331316, -0.048032864928245544, 0.04597904533147812, 0.0011894345516338944, -0.04071199521422386, 0.017291830852627754, -0.06602034717798233, 0.0017732823034748435, 0.055684998631477356, -0.01127944141626358, 0.036968741565942764, 0.02088601514697075, -0.0031262768898159266, 0.021598225459456444, 0.001198751269839704, 0.014086879789829254, -0.03855879604816437, 0.05227300897240639, 0.0028550568968057632, 0.020720385015010834, 0.05260426923632622, -0.01614898070693016, -0.0001433739671483636, 0.04640968516469002, -0.015469895675778389, 0.015370517037808895, 0.0052918968722224236, 0.03297704830765724, -0.03541181609034538, 0.025242099538445473, -0.0247783325612545, 0.03373894840478897 ]
730,138
mmengine.fileio.backends.local_backend
LocalBackend
Raw local storage backend.
class LocalBackend(BaseStorageBackend): """Raw local storage backend.""" _allow_symlink = True def get(self, filepath: Union[str, Path]) -> bytes: """Read bytes from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns: bytes: Expected bytes object. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.get(filepath) b'hello world' """ with open(filepath, 'rb') as f: value = f.read() return value def get_text(self, filepath: Union[str, Path], encoding: str = 'utf-8') -> str: """Read text from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Returns: str: Expected text reading from ``filepath``. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.get_text(filepath) 'hello world' """ with open(filepath, encoding=encoding) as f: text = f.read() return text def put(self, obj: bytes, filepath: Union[str, Path]) -> None: """Write bytes to a given ``filepath`` with 'wb' mode. Note: ``put`` will create a directory if the directory of ``filepath`` does not exist. Args: obj (bytes): Data to be written. filepath (str or Path): Path to write data. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.put(b'hello world', filepath) """ mmengine.mkdir_or_exist(osp.dirname(filepath)) with open(filepath, 'wb') as f: f.write(obj) def put_text(self, obj: str, filepath: Union[str, Path], encoding: str = 'utf-8') -> None: """Write text to a given ``filepath`` with 'w' mode. Note: ``put_text`` will create a directory if the directory of ``filepath`` does not exist. Args: obj (str): Data to be written. filepath (str or Path): Path to write data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.put_text('hello world', filepath) """ mmengine.mkdir_or_exist(osp.dirname(filepath)) with open(filepath, 'w', encoding=encoding) as f: f.write(obj) def exists(self, filepath: Union[str, Path]) -> bool: """Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns: bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.exists(filepath) True """ return osp.exists(filepath) def isdir(self, filepath: Union[str, Path]) -> bool: """Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a directory. Returns: bool: Return ``True`` if ``filepath`` points to a directory, ``False`` otherwise. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/dir' >>> backend.isdir(filepath) True """ return osp.isdir(filepath) def isfile(self, filepath: Union[str, Path]) -> bool: """Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns: bool: Return ``True`` if ``filepath`` points to a file, ``False`` otherwise. Examples: >>> backend = LocalBackend() >>> filepath = '/path/of/file' >>> backend.isfile(filepath) True """ return osp.isfile(filepath) def join_path(self, filepath: Union[str, Path], *filepaths: Union[str, Path]) -> str: r"""Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and any members of \*filepaths. Args: filepath (str or Path): Path to be concatenated. Returns: str: The result of concatenation. Examples: >>> backend = LocalBackend() >>> filepath1 = '/path/of/dir1' >>> filepath2 = 'dir2' >>> filepath3 = 'path/of/file' >>> backend.join_path(filepath1, filepath2, filepath3) '/path/of/dir/dir2/path/of/file' """ # TODO, if filepath or filepaths are Path, should return Path return osp.join(filepath, *filepaths) @contextmanager def get_local_path( self, filepath: Union[str, Path], ) -> Generator[Union[str, Path], None, None]: """Only for unified API and do nothing. Args: filepath (str or Path): Path to be read data. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Examples: >>> backend = LocalBackend() >>> with backend.get_local_path('s3://bucket/abc.jpg') as path: ... # do something here """ yield filepath def copyfile( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Copy a file src to dst and return the destination file. src and dst should have the same prefix. If dst specifies a directory, the file will be copied into dst using the base filename from src. If dst specifies a file that already exists, it will be replaced. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to dst. Returns: str: The destination file. Raises: SameFileError: If src and dst are the same file, a SameFileError will be raised. Examples: >>> backend = LocalBackend() >>> # dst is a file >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> # src will be copied to '/path1/of/file1' >>> backend.copyfile(src, dst) '/path1/of/file1' >>> # dst is a directory >>> dst = '/path1/of/dir' >>> # src will be copied to '/path1/of/dir/file' >>> backend.copyfile(src, dst) '/path1/of/dir/file' """ return shutil.copy(src, dst) def copytree( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. src and dst should have the same prefix and dst must not already exist. TODO: Whether to support dirs_exist_ok parameter. Args: src (str or Path): A directory to be copied. dst (str or Path): Copy directory to dst. Returns: str: The destination directory. Raises: FileExistsError: If dst had already existed, a FileExistsError will be raised. Examples: >>> backend = LocalBackend() >>> src = '/path/of/dir1' >>> dst = '/path/of/dir2' >>> backend.copytree(src, dst) '/path/of/dir2' """ return shutil.copytree(src, dst) def copyfile_from_local(
()
[ 0.00031516593298874795, -0.07434733957052231, -0.09484603255987167, 0.052626874297857285, 0.01544189266860485, -0.03457174077630043, -0.021267954260110855, 0.0641658753156662, 0.027127955108880997, -0.07122502475976944, 0.017761005088686943, -0.016516603529453278, -0.008060328662395477, 0.02561204880475998, -0.03165305405855179, 0.039526719599962234, 0.030657531693577766, -0.0304765272885561, 0.013292471878230572, -0.01763656549155712, -0.006103224121034145, 0.005978784058243036, 0.093035988509655, 0.017885444685816765, -0.00019744269957300276, 0.009378262795507908, -0.0014508591266348958, -0.022003283724188805, 0.03371196985244751, 0.004587316885590553, 0.0447758324444294, -0.027851970866322517, 0.05312463641166687, 0.007749228272587061, -0.0015088369837030768, -0.004502471536397934, -0.005382037255913019, -0.00031021659378893673, -0.06050054356455803, -0.07362332195043564, -0.03000139258801937, -0.0132359080016613, 0.04755876585841179, 0.003099691355600953, 0.07000324875116348, 0.03986610472202301, -0.022410541772842407, 0.008382742293179035, 0.04296579584479332, 0.01200281921774149, 0.003139285836368799, 0.08335228264331818, -0.03694741427898407, 0.0006649771239608526, -0.011431525461375713, 0.050997842103242874, 0.01177656464278698, 0.03909683600068092, -0.08380479365587234, 0.030657531693577766, 0.02150552347302437, -0.006759363226592541, 0.032128188759088516, -0.009921275079250336, -0.011522027663886547, -0.03196980804204941, -0.06063629686832428, -0.025634674355387688, 0.012115946970880032, 0.009236853569746017, -0.05624695494771004, -0.030046643689274788, -0.006397355813533068, -0.005831718444824219, -0.001182181527838111, 0.03506949916481972, 0.026268187910318375, 0.024073515087366104, 0.022274788469076157, 0.01434455718845129, -0.03314633294939995, -0.06556865572929382, -0.015849152579903603, -0.049957070499658585, 0.014276680536568165, 0.001219655037857592, 0.01679942198097706, -0.038214441388845444, -0.0014331829734146595, 0.020046178251504898, -0.02073625661432743, 0.03631390258669853, 0.013190656900405884, 0.028802242130041122, 0.029526256024837494, -0.098918616771698, -0.025091661140322685, -0.012919151224195957, -0.03411922976374626, 0.045386720448732376, -0.06733343750238419, 0.0326259471476078, -0.031879305839538574, -0.02457127533853054, 0.0491878017783165, -0.021890155971050262, -0.0016403476474806666, -0.027127955108880997, 0.02957150712609291, -0.01753474958240986, -0.06267259269952774, -0.04529621824622154, 0.019039344042539597, -0.029843013733625412, -0.018643399700522423, 0.02617768570780754, -0.027716217562556267, -0.030205020681023598, -0.0016926690004765987, -0.033779848366975784, -0.015340078622102737, 0.00332877435721457, -0.011957568116486073, -0.031155291944742203, 0.08213050663471222, 0.02251235581934452, 0.09674657136201859, -0.024797530844807625, -0.05249112471938133, -0.03253544494509697, -0.014197491109371185, 0.029775137081742287, -0.0048927608877420425, 0.0556134395301342, -0.0017718581948429346, 0.03271644935011864, -0.014785753563046455, 0.0040245079435408115, -0.016437415033578873, 0.09638456255197525, 0.05416540801525116, -0.030272897332906723, 0.004510955885052681, 0.011765251867473125, 0.031992435455322266, 0.0012161197373643517, -0.0031958497129380703, -0.08543382585048676, -0.011510714888572693, 0.011273147538304329, 0.022320039570331573, -0.02620031125843525, -0.051269348710775375, 0.06004803627729416, -0.003212818643078208, 0.010617008432745934, -0.03443598747253418, -0.0047174133360385895, -0.006227664649486542, 0.05050007998943329, -0.051721855998039246, -0.05430116131901741, 0.04074849560856819, -0.033485718071460724, -0.009078475646674633, 0.032128188759088516, -0.01023803185671568, -0.013009653426706791, -0.028575986623764038, 0.017613939940929413, 0.022184288129210472, -0.010848919861018658, -0.020826758816838264, 0.011488089337944984, 0.023440001532435417, -0.01529482752084732, 0.02737683616578579, 0.016527915373444557, -0.0038010813295841217, -0.05796648934483528, 0.025815676897764206, -0.03224131464958191, -0.03762618079781532, 0.03106478974223137, 0.03249019384384155, 0.04810177907347679, -0.020215870812535286, 0.03721892088651657, 0.08792263269424438, 0.06140556558966637, -0.038463324308395386, 0.005017200950533152, 0.016889924183487892, -0.032015059143304825, 0.007081776391714811, -0.06031953915953636, 0.08525282144546509, -0.0692339837551117, -0.0340966060757637, 0.0927644819021225, -0.037015292793512344, -0.023485252633690834, 0.088782399892807, -0.02178834192454815, -0.016109345480799675, 0.010752761736512184, -0.0038802705239504576, 0.06959599256515503, -0.061269812285900116, 0.049821317195892334, -0.027127955108880997, -0.019638920202851295, -0.01869996264576912, 0.02441289648413658, 0.054934676736593246, 0.006612297613173723, -0.0676501989364624, 0.04647274315357208, -0.010701853781938553, 0.06534239649772644, 0.05955027416348457, -0.017127491533756256, -0.028078226372599602, -0.028327105566859245, 0.013281159102916718, -0.029322627931833267, 0.012625019997358322, 0.0036059366539120674, 0.008976660668849945, -0.024616526439785957, 0.031019538640975952, 0.014163552783429623, 0.03853119909763336, 0.01707092858850956, 0.04783027246594429, -0.04968556389212608, 0.03690216317772865, -0.005605463869869709, -0.013269846327602863, -0.01362054143100977, -0.016437415033578873, -0.022444481030106544, -0.007896293886005878, 0.03129104524850845, -0.02767096646130085, -0.03572563827037811, 0.017749693244695663, -0.006567046977579594, 0.03712841868400574, -0.05484417453408241, 0.01287390012294054, 0.06914348155260086, -0.05389390513300896, -0.012907838448882103, 0.031426798552274704, -0.020396873354911804, -0.002316283993422985, -0.027580466121435165, 0.0023077994119375944, 0.03384772315621376, -0.05520617961883545, -0.03751305118203163, -0.016007529571652412, 0.00040690519381314516, -0.0073136878199875355, -0.040522243827581406, -0.02411876618862152, 0.0030770658049732447, 0.003990569617599249, 0.0453188456594944, 0.10814981162548065, 0.06289884448051453, -0.0470610074698925, 0.026403939351439476, 0.011912317015230656, -0.04013760760426521, -0.030996913090348244, 0.05009282007813454, 0.010040058754384518, -0.024028263986110687, 0.007664382923394442, 0.011041236110031605, -0.015690773725509644, -0.06479938328266144, 0.030250271782279015, -0.01679942198097706, -0.04941405728459358, -0.09747058898210526, -0.007624788209795952, -0.028078226372599602, 0.0007918919436633587, 0.021833593025803566, -0.062310583889484406, -0.00732500059530139, 0.037037916481494904, -0.027286333963274956, -0.07923444360494614, -0.046133361756801605, 0.04513784125447273, -0.05945977196097374, -0.0411783829331398, 0.03423235937952995, 0.03135892003774643, 0.07520710676908493, -0.006793301552534103, -0.04500208795070648, 0.009293417446315289, -0.017568688839673996, -0.03278432786464691, 0.03176617994904518, 0.01560027152299881, -0.07348757237195969, 0.019752047955989838, 0.05149560049176216, 0.08403104543685913, 0.050273824483156204, 0.021844904869794846, 0.05063583329319954, 0.001219655037857592, 0.004496815148741007, -0.03117791749536991, 0.042309656739234924, -0.027738843113183975, 0.06375861167907715, 0.015045947395265102, -0.0362234003841877, 0.04534146934747696, 0.023802008479833603, 0.0036936101969331503, 0.024367647245526314, 0.00008891108154784888, 0.06371336430311203, 0.013281159102916718, 0.008942722342908382, -0.006612297613173723, 0.02268204838037491, -0.04615598917007446, -0.051721855998039246, 0.029684634879231453, -0.01765919104218483, 0.10896433144807816, -0.011810502968728542, 0.005956158507615328, -0.001410557539202273, -0.024910658597946167, 0.003283523488789797, 0.03692479059100151, -0.0048277126625180244, 0.025725174695253372, 0.02769359201192856, -0.015045947395265102, -0.005662027280777693, -0.025408418849110603, -0.004197027534246445, -0.013925985433161259, -0.03726417198777199, -0.026245562359690666, -0.012115946970880032, -0.0043101548217237, -0.024028263986110687, 0.052898380905389786, 0.013744981959462166, -0.026403939351439476, -0.00042352077434770763, -0.03249019384384155, -0.024774905294179916, 0.048780545592308044, 0.01840583048760891, -0.022998804226517677, 0.003159083193168044, 0.013145406730473042, -0.04301104694604874, 0.030996913090348244, -0.018179576843976974, 0.011878379620611668, -0.02620031125843525, 0.027127955108880997, -0.034051354974508286, -0.03982085362076759, 0.06805745512247086, 0.037875059992074966, 0.02106432616710663, -0.01679942198097706, 0.04561297595500946, 0.028032975271344185, 0.02547629550099373, 0.0668356791138649, -0.013292471878230572, -0.007670039311051369, -0.019616294652223587, 0.01650528982281685, -0.020555252209305763, 0.004095212556421757, -0.008241333067417145, -0.031245794147253036, -0.05018332228064537, 0.03106478974223137, 0.0326259471476078, 0.0004606407310348004, -0.00544142909348011, 0.024367647245526314, -0.038938459008932114, -0.039662472903728485, 0.04927830398082733, -0.028349731117486954, 0.02179965376853943, 0.08860139548778534, 0.07665514200925827, 0.007941544987261295, 0.059505023062229156, -0.03520525246858597, 0.010764074511826038, -0.049459308385849, -0.016584480181336403, -0.0016205502906814218, 0.02028374746441841, -0.041291508823633194, -0.05380340293049812, 0.016426101326942444, 0.02484278194606304, -0.05398440361022949, -0.015826527029275894, 0.007353282533586025, -0.04049961641430855, 0.017591314390301704, -0.017862819135189056, -0.009451796300709248, -0.015611584298312664, -0.03690216317772865, 0.019073283299803734, 0.04545459896326065, -0.005379208829253912, -0.0203176848590374, -0.01213857252150774, 0.01375629473477602, 0.017546063289046288, 0.01161818578839302, -0.027987724170088768, 0.006222008261829615, -0.00041432917350903153, -0.016267722472548485, -0.04018285870552063, 0.005557384341955185, -0.008727780543267727, -0.038621701300144196, -0.012579768896102905, -0.0981040969491005, -0.0012217761250212789, 0.025091661140322685, 0.03359884396195412, -0.06841946393251419, 0.013880734331905842, 0.03470749408006668, 0.0038491603918373585, -0.04339567944407463, -0.037580929696559906, 0.017840193584561348, -0.050138071179389954, -0.04518309235572815, 0.010243687778711319, 0.0037360331043601036, 0.07213004678487778, 0.11339892446994781, -0.059097763150930405, 0.0582832470536232, -0.003467355389147997, 0.028032975271344185, 0.033802472054958344, -0.029164249077439308, -0.005076592788100243, 0.012082008644938469, -0.013122781179845333, -0.06615691632032394, 0.020080117508769035, 0.07104402035474777, -0.009468764998018742, -0.028802242130041122, -0.0030120175797492266, -0.04900679737329483, -0.06212957948446274, -0.016109345480799675, -0.07018425315618515, -0.008784344419836998, 0.034187108278274536, 0.0027928331401199102, -0.040273360908031464, 0.08615784347057343, 0.04814703017473221, 0.05846425145864487, -0.033304713666439056, -0.005882625933736563, 0.060545794665813446, 0.005294363480061293, -0.011567278765141964, -0.06371336430311203, 0.03948146849870682, -0.09312649071216583, 0.0052915350534021854, -0.024616526439785957, -0.016584480181336403, 0.007913263514637947, -0.018292704597115517, -0.048644792288541794, 0.022557606920599937, 0.006985618267208338, 0.05031907558441162, -0.028666488826274872, 0.0040245079435408115, -0.029209500178694725, -0.017874132841825485, -0.02281780168414116, 0.041427262127399445, -0.015057260170578957, -0.01449162233620882, -0.020792819559574127, 0.024616526439785957, -0.018315330147743225, 0.014536873437464237, -0.002389816800132394, -0.03647227957844734, -0.0016049952246248722, -0.02146027237176895, 0.03339521586894989, -0.06936973333358765, -0.022557606920599937, -0.014027800410985947, -0.04049961641430855, -0.019039344042539597, 0.0007869426044635475, 0.04900679737329483, 0.004904073663055897, 0.04022810980677605, 0.008111235685646534, 0.006142818834632635, 0.05108834430575371, 0.0558849461376667, -0.014774440787732601, -0.02398301288485527, 0.011810502968728542, -0.021132202818989754, -0.012681583873927593, 0.015170386992394924, -0.016539229080080986, -0.03176617994904518, 0.01272683497518301, -0.050997842103242874, 0.0007332070963457227, -0.010130560956895351, 0.04855429008603096, -0.019944364205002785, 0.009378262795507908, -0.03341783955693245, 0.04592973366379738, 0.019627608358860016, 0.026743322610855103, -0.012093321420252323, 0.02148289792239666, -0.01308884285390377, -0.008518494665622711, 0.019333476200699806, 0.000057359138736501336, 0.03778455778956413, -0.05353189632296562, 0.03031814843416214, 0.030114520341157913, 0.019910426810383797, -0.003993398044258356, 0.031155291944742203, 0.04325992614030838, -0.07384958118200302, 0.032015059143304825, 0.052626874297857285, 0.012681583873927593, -0.009802491404116154, 0.024367647245526314, 0.011069518513977528, -0.023507878184318542, 0.017591314390301704, 0.01161818578839302, -0.011533340439200401, 0.003198677906766534, 0.026290813460946083, -0.0033400871325284243, 0.01662973128259182, 0.0005666976794600487, -0.03285220265388489, 0.029956141486763954, 0.060093287378549576, -0.0695054903626442, -0.02398301288485527, -0.04298841953277588, 0.02224085107445717, 0.0326259471476078, -0.016007529571652412, 0.0630798488855362, -0.030793283134698868, -0.07751490920782089, -0.049097299575805664, 0.05724247545003891, -0.01434455718845129, -0.033327337354421616, 0.0007325000478886068, -0.04387081414461136, 0.004887104500085115, 0.015328765846788883, 0.01111476868391037, -0.035680387169122696, -0.020634440705180168, -0.005893938709050417, -0.0032863516826182604, -0.012240386568009853, 0.03678903728723526, -0.010696197859942913, -0.010119248181581497, 0.04778502136468887, -0.01515907421708107, -0.03902896121144295, 0.021980658173561096, 0.027919847518205643, 0.024548649787902832, -0.0032891796436160803, -0.011301429010927677, -0.03396085277199745, 0.04000185430049896, -0.056156452745199203, -0.028915368020534515, 0.025363167747855186, -0.01840583048760891, -0.0662926658987999, -0.014333244413137436, -0.013484788127243519, -0.026426564902067184, 0.012692896649241447, 0.02577042579650879, 0.037875059992074966, -0.06063629686832428, -0.002278103493154049, -0.005775155033916235, 0.02898324467241764, 0.03183405473828316, -0.0323544405400753, -0.0189827810972929, -0.03350834175944328, -0.0447758324444294, -0.03896108269691467, -0.011901004239916801, -0.01147112064063549, -0.0665641725063324, 0.04147251322865486, -0.021709151566028595, -0.043192047625780106, 0.04581660404801369, -0.011561622843146324, 0.005831718444824219, 0.028032975271344185, 0.06620216369628906, 0.036879539489746094, -0.05552293732762337, 0.015713399276137352, -0.00043836876284331083, 0.003009189385920763, -0.026743322610855103, 0.023915136232972145, 0.02457127533853054, 0.002306385198608041, 0.015362704172730446, 0.007494691759347916, -0.009977838955819607, 0.02882486768066883, -0.021245328709483147, 0.009180290624499321, 0.016448726877570152, -0.0399792306125164, -0.05045482888817787, -0.004725898150354624, -0.0033513999078422785, 0.06036479026079178, -0.03549938648939133, -0.006261602509766817, 0.0021762887481600046, 0.028575986623764038, 0.008688186295330524, 0.0010803668992593884, 0.06787645071744919, -0.000613716256339103, 0.05280787870287895, 0.044051818549633026, -0.0026160716079175472, -0.004301670007407665, -0.06348710507154465, -0.0018651883583515882, 0.014446371234953403, 0.05814749374985695, -0.010107935406267643, -0.04787552356719971, -0.007760541047900915, 0.050409577786922455, -0.04258115962147713, 0.0059222206473350525, 0.007788822986185551, 0.020645754411816597, -0.018055137246847153, -0.004247934557497501, -0.08199475705623627, 0.032761700451374054, -0.0205891914665699, -0.014514247886836529, -0.03543150797486305, 0.0038350196555256844, -0.03249019384384155, 0.016527915373444557, 0.0034899809397757053, 0.06543289870023727, -0.030272897332906723, 0.03092903643846512, -0.022127723321318626, -0.028508109971880913, -0.020724942907691002, -0.0006907843053340912, -0.01125617790967226, -0.009536641649901867, -0.04769451916217804, 0.044119693338871, -0.020917261019349098, 0.021075638011097908, -0.028937993571162224, -0.0524006225168705, -0.05004757270216942, -0.0009580478654243052, 0.05574919283390045, -0.002930000191554427, 0.034073978662490845, -0.007189247757196426, 0.03590664267539978, 0.003851988585665822, -0.03785243630409241, 0.04796602576971054, -0.0032891796436160803, -0.013224595226347446, 0.06117931008338928, 0.04398394003510475, -0.014842317439615726, -0.007517317309975624, -0.02764834091067314, 0.04850903898477554, -0.0017011535819619894, 0.042468033730983734, -0.012353514321148396, -0.03839544579386711, 0.06805745512247086, 0.05945977196097374, -0.030431276187300682, -0.037037916481494904, 0.03387035056948662, 0.012749460525810719, -0.03792031109333038, -0.015453205443918705, 0.03310108184814453, -0.02353050373494625, -0.007115714717656374, -0.05416540801525116, -0.006012722384184599, 0.03285220265388489, 0.029232125729322433, 0.0556134395301342, 0.03918733820319176, -0.08389529585838318, 0.05692571774125099 ]
730,158
mmengine.logging.logger
MMLogger
Formatted logger used to record messages. ``MMLogger`` can create formatted logger to log message with different log levels and get instance in the same way as ``ManagerMixin``. ``MMLogger`` has the following features: - Distributed log storage, ``MMLogger`` can choose whether to save log of different ranks according to `log_file`. - Message with different log levels will have different colors and format when displayed on terminal. Note: - The `name` of logger and the ``instance_name`` of ``MMLogger`` could be different. We can only get ``MMLogger`` instance by ``MMLogger.get_instance`` but not ``logging.getLogger``. This feature ensures ``MMLogger`` will not be incluenced by third-party logging config. - Different from ``logging.Logger``, ``MMLogger`` will not log warning or error message without ``Handler``. Examples: >>> logger = MMLogger.get_instance(name='MMLogger', >>> logger_name='Logger') >>> # Although logger has name attribute just like `logging.Logger` >>> # We cannot get logger instance by `logging.getLogger`. >>> assert logger.name == 'Logger' >>> assert logger.instance_name = 'MMLogger' >>> assert id(logger) != id(logging.getLogger('Logger')) >>> # Get logger that do not store logs. >>> logger1 = MMLogger.get_instance('logger1') >>> # Get logger only save rank0 logs. >>> logger2 = MMLogger.get_instance('logger2', log_file='out.log') >>> # Get logger only save multiple ranks logs. >>> logger3 = MMLogger.get_instance('logger3', log_file='out.log', >>> distributed=True) Args: name (str): Global instance name. logger_name (str): ``name`` attribute of ``Logging.Logger`` instance. If `logger_name` is not defined, defaults to 'mmengine'. log_file (str, optional): The log filename. If specified, a ``FileHandler`` will be added to the logger. Defaults to None. log_level (str): The log level of the handler. Defaults to 'INFO'. If log level is 'DEBUG', distributed logs will be saved during distributed training. file_mode (str): The file mode used to open log file. Defaults to 'w'. distributed (bool): Whether to save distributed logs, Defaults to false. file_handler_cfg (dict, optional): Configuration of file handler. Defaults to None. If ``file_handler_cfg`` is not specified, ``logging.FileHandler`` will be used by default. If it is specified, the ``type`` key should be set. It can be ``RotatingFileHandler``, ``TimedRotatingFileHandler``, ``WatchedFileHandler`` or other file handlers, and the remaining fields will be used to build the handler. Examples: >>> file_handler_cfg = dict( >>> type='TimedRotatingFileHandler', >>> when='MIDNIGHT', >>> interval=1, >>> backupCount=365) `New in version 0.9.0.`
class MMLogger(Logger, ManagerMixin): """Formatted logger used to record messages. ``MMLogger`` can create formatted logger to log message with different log levels and get instance in the same way as ``ManagerMixin``. ``MMLogger`` has the following features: - Distributed log storage, ``MMLogger`` can choose whether to save log of different ranks according to `log_file`. - Message with different log levels will have different colors and format when displayed on terminal. Note: - The `name` of logger and the ``instance_name`` of ``MMLogger`` could be different. We can only get ``MMLogger`` instance by ``MMLogger.get_instance`` but not ``logging.getLogger``. This feature ensures ``MMLogger`` will not be incluenced by third-party logging config. - Different from ``logging.Logger``, ``MMLogger`` will not log warning or error message without ``Handler``. Examples: >>> logger = MMLogger.get_instance(name='MMLogger', >>> logger_name='Logger') >>> # Although logger has name attribute just like `logging.Logger` >>> # We cannot get logger instance by `logging.getLogger`. >>> assert logger.name == 'Logger' >>> assert logger.instance_name = 'MMLogger' >>> assert id(logger) != id(logging.getLogger('Logger')) >>> # Get logger that do not store logs. >>> logger1 = MMLogger.get_instance('logger1') >>> # Get logger only save rank0 logs. >>> logger2 = MMLogger.get_instance('logger2', log_file='out.log') >>> # Get logger only save multiple ranks logs. >>> logger3 = MMLogger.get_instance('logger3', log_file='out.log', >>> distributed=True) Args: name (str): Global instance name. logger_name (str): ``name`` attribute of ``Logging.Logger`` instance. If `logger_name` is not defined, defaults to 'mmengine'. log_file (str, optional): The log filename. If specified, a ``FileHandler`` will be added to the logger. Defaults to None. log_level (str): The log level of the handler. Defaults to 'INFO'. If log level is 'DEBUG', distributed logs will be saved during distributed training. file_mode (str): The file mode used to open log file. Defaults to 'w'. distributed (bool): Whether to save distributed logs, Defaults to false. file_handler_cfg (dict, optional): Configuration of file handler. Defaults to None. If ``file_handler_cfg`` is not specified, ``logging.FileHandler`` will be used by default. If it is specified, the ``type`` key should be set. It can be ``RotatingFileHandler``, ``TimedRotatingFileHandler``, ``WatchedFileHandler`` or other file handlers, and the remaining fields will be used to build the handler. Examples: >>> file_handler_cfg = dict( >>> type='TimedRotatingFileHandler', >>> when='MIDNIGHT', >>> interval=1, >>> backupCount=365) `New in version 0.9.0.` """ def __init__(self, name: str, logger_name='mmengine', log_file: Optional[str] = None, log_level: Union[int, str] = 'INFO', file_mode: str = 'w', distributed=False, file_handler_cfg: Optional[dict] = None): Logger.__init__(self, logger_name) ManagerMixin.__init__(self, name) # Get rank in DDP mode. if isinstance(log_level, str): log_level = logging._nameToLevel[log_level] global_rank = _get_rank() device_id = _get_device_id() # Config stream_handler. If `rank != 0`. stream_handler can only # export ERROR logs. stream_handler = logging.StreamHandler(stream=sys.stdout) # `StreamHandler` record month, day, hour, minute, and second # timestamp. stream_handler.setFormatter( MMFormatter(color=True, datefmt='%m/%d %H:%M:%S')) # Only rank0 `StreamHandler` will log messages below error level. if global_rank == 0: stream_handler.setLevel(log_level) else: stream_handler.setLevel(logging.ERROR) stream_handler.addFilter(FilterDuplicateWarning(logger_name)) self.handlers.append(stream_handler) if log_file is not None: world_size = _get_world_size() is_distributed = (log_level <= logging.DEBUG or distributed) and world_size > 1 if is_distributed: filename, suffix = osp.splitext(osp.basename(log_file)) hostname = _get_host_info() if hostname: filename = (f'{filename}_{hostname}_device{device_id}_' f'rank{global_rank}{suffix}') else: # Omit hostname if it is empty filename = (f'{filename}_device{device_id}_' f'rank{global_rank}{suffix}') log_file = osp.join(osp.dirname(log_file), filename) # Save multi-ranks logs if distributed is True. The logs of rank0 # will always be saved. if global_rank == 0 or is_distributed: if file_handler_cfg is not None: assert 'type' in file_handler_cfg file_handler_type = file_handler_cfg.pop('type') file_handlers_map = _get_logging_file_handlers() if file_handler_type in file_handlers_map: file_handler_cls = file_handlers_map[file_handler_type] file_handler_cfg.setdefault('filename', log_file) file_handler = file_handler_cls(**file_handler_cfg) else: raise ValueError('`logging.handlers` does not ' f'contain {file_handler_type}') else: # Here, the default behavior of the official # logger is 'a'. Thus, we provide an interface to # change the file mode to the default behavior. # `FileHandler` is not supported to have colors, # otherwise it will appear garbled. file_handler = logging.FileHandler(log_file, file_mode) # `StreamHandler` record year, month, day hour, minute, # and second timestamp. file_handler will only record logs # without color to avoid garbled code saved in files. file_handler.setFormatter( MMFormatter(color=False, datefmt='%Y/%m/%d %H:%M:%S')) file_handler.setLevel(log_level) file_handler.addFilter(FilterDuplicateWarning(logger_name)) self.handlers.append(file_handler) self._log_file = log_file @property def log_file(self): return self._log_file @classmethod def get_current_instance(cls) -> 'MMLogger': """Get latest created ``MMLogger`` instance. :obj:`MMLogger` can call :meth:`get_current_instance` before any instance has been created, and return a logger with the instance name "mmengine". Returns: MMLogger: Configured logger instance. """ if not cls._instance_dict: cls.get_instance('mmengine') return super().get_current_instance() def callHandlers(self, record: LogRecord) -> None: """Pass a record to all relevant handlers. Override ``callHandlers`` method in ``logging.Logger`` to avoid multiple warning messages in DDP mode. Loop through all handlers of the logger instance and its parents in the logger hierarchy. If no handler was found, the record will not be output. Args:
(name: str, logger_name='mmengine', log_file: Optional[str] = None, log_level: Union[int, str] = 'INFO', file_mode: str = 'w', distributed=False, file_handler_cfg: Optional[dict] = None)
[ 0.04312498867511749, -0.013105157762765884, -0.046138644218444824, 0.0676586925983429, 0.057981040328741074, -0.016829781234264374, -0.04057823866605759, 0.037225015461444855, -0.053651563823223114, 0.0017535444349050522, -0.0029393755830824375, -0.01928102970123291, 0.03132504224777222, 0.007104375399649143, 0.03174950182437897, 0.021902061998844147, -0.028311386704444885, 0.0018158868188038468, -0.0021713708993047476, 0.007120292168110609, -0.00912585947662592, -0.004029703326523304, 0.02161555178463459, 0.03174950182437897, -0.005226145964115858, 0.029330085963010788, -0.023217882961034775, 0.027738366276025772, 0.023048099130392075, -0.0018119075102731586, -0.040323562920093536, -0.07602053135633469, 0.015927808359265327, 0.027292685583233833, -0.008022266440093517, -0.046647995710372925, -0.03758580610156059, 0.00453905388712883, -0.13913752138614655, -0.001128794508986175, 0.056750111281871796, 0.017158737406134605, 0.05950909107923508, -0.013264330103993416, -0.023323997855186462, 0.06825293600559235, 0.026061756536364555, 0.06532417237758636, -0.006754196714609861, -0.023302774876356125, -0.020267896354198456, 0.015153170563280582, -0.036100201308727264, 0.02298443205654621, -0.014898495748639107, 0.04978898912668228, 0.04106636717915535, -0.02239018864929676, -0.010314343497157097, -0.051826391369104385, 0.006239540874958038, 0.02413046918809414, 0.06638532131910324, -0.003159563522785902, -0.017784813418984413, -0.016575107350945473, 0.004939636681228876, 0.039644431322813034, -0.01583230495452881, 0.036185093224048615, -0.021721666678786278, -0.11112324893474579, 0.05263286083936691, 0.0019564887043088675, -0.01962059736251831, -0.0038386972155421972, -0.004878620617091656, 0.04004766419529915, 0.032131511718034744, 0.03546351194381714, 0.016224928200244904, -0.004127859603613615, -0.005968948360532522, -0.009274419397115707, 0.034932941198349, -0.04113003611564636, -0.019567539915442467, 0.0477091409265995, -0.000901974446605891, -0.024406367912888527, -0.07169105112552643, 0.0012634274316951632, 0.04134226217865944, 0.011386101134121418, -0.05938175320625305, -0.07304932177066803, -0.04435592144727707, 0.0025706272572278976, 0.03701278567314148, 0.004523136653006077, -0.0831514298915863, 0.03669444099068642, 0.01745585910975933, -0.008664260618388653, -0.02171105518937111, -0.06931408494710922, -0.0691867470741272, 0.008261024951934814, 0.030370010063052177, 0.013561450876295567, -0.051996175199747086, -0.021817170083522797, -0.0030454902444034815, 0.0021952465176582336, -0.007008871994912624, -0.009226667694747448, -0.04592641815543175, 0.01340227946639061, -0.022623641416430473, 0.01206523459404707, -0.01971610076725483, 0.0017601766157895327, -0.05237818509340286, 0.003597286297008395, 0.013847960159182549, -0.024958163499832153, 0.016214316710829735, -0.04528972879052162, 0.06464503705501556, -0.002085152780637145, 0.026401322335004807, 0.017519528046250343, 0.02387579344213009, -0.024257807061076164, 0.040429677814245224, -0.011736279353499413, -0.03830738365650177, 0.030454901978373528, -0.04775158688426018, 0.06536661833524704, -0.022687310352921486, -0.024873271584510803, 0.005350830964744091, -0.02359989657998085, 0.003329346887767315, 0.036885447800159454, 0.0037484997883439064, 0.06362634152173996, -0.021244151517748833, -0.014834826812148094, 0.020183004438877106, -0.03113403543829918, 0.0143148647621274, 0.07835505157709122, -0.03599408641457558, -0.012288074940443039, -0.022963209077715874, 0.05360911786556244, -0.009518483653664589, 0.004353353288024664, 0.0060697575099766254, -0.07449247688055038, 0.036460991948843, -0.028226494789123535, 0.00009591769048711285, -0.010929808020591736, -0.025382621213793755, -0.0030826302245259285, 0.01851700432598591, 0.05568896234035492, -0.046223536133766174, 0.017848482355475426, -0.0169571191072464, 0.016224928200244904, -0.06388101726770401, 0.07415290921926498, 0.005326955113559961, 0.014187527820467949, -0.00990049634128809, 0.03113403543829918, 0.010091502219438553, -0.01223501842468977, -0.03189806267619133, 0.012097069062292576, -0.016150647774338722, 0.04380412399768829, 0.012224406935274601, -0.001073747524060309, -0.004531095270067453, 0.0572594590485096, 0.030115334317088127, -0.024788379669189453, 0.043273549526929855, -0.07835505157709122, 0.018050100654363632, 0.09023988991975784, -0.025191616266965866, -0.03786170482635498, 0.06494215875864029, 0.02534017525613308, 0.0041756113059818745, 0.041278596967458725, -0.0340840220451355, -0.02376968041062355, -0.014325476251542568, -0.00037604375393129885, 0.04677533358335495, 0.06579107791185379, -0.09618230909109116, 0.019567539915442467, -0.010128642432391644, -0.016988953575491905, -0.02758980728685856, 0.10042689740657806, 0.04053579270839691, -0.05819327011704445, 0.008987910114228725, 0.04306131973862648, -0.02550995908677578, 0.03841349855065346, 0.02343011274933815, 0.02525528520345688, -0.06723423302173615, 0.04558685049414635, -0.04280664771795273, 0.0019538358319550753, 0.055986084043979645, -0.009624597616493702, 0.04783647879958153, -0.020904583856463432, 0.045501958578825, 0.031346265226602554, -0.009868661873042583, 0.05437314137816429, 0.01851700432598591, -0.00921605620533228, -0.007693311665207148, 0.032386187463998795, -0.017445247620344162, 0.03172827884554863, -0.014134470373392105, -0.01262764260172844, 0.044568147510290146, 0.03457215055823326, 0.04049334675073624, -0.05297242850065231, 0.008924241177737713, 0.04978898912668228, 0.007146820891648531, -0.009162998758256435, 0.00821857899427414, 0.040175002068281174, -0.03130381926894188, 0.009820910170674324, -0.028650952503085136, -0.05101991817355156, -0.011152648366987705, 0.027632253244519234, 0.011322432197630405, -0.05870261788368225, -0.020374011248350143, 0.015524571761488914, 0.011725667864084244, -0.009497260674834251, -0.0013715317472815514, -0.004812298808246851, 0.020458903163671494, -0.06659755110740662, 0.024088023230433464, 0.031346265226602554, 0.033765677362680435, 0.05551917850971222, -0.03240741044282913, 0.021986953914165497, -0.05267530679702759, -0.08068957179784775, -0.004005827475339174, -0.028311386704444885, -0.02835383266210556, 0.06753135472536087, 0.016978342086076736, 0.014293641783297062, 0.040514569729566574, -0.0118423942476511, 0.022708533331751823, 0.019227972254157066, -0.01945081353187561, -0.03149482607841492, 0.03026389516890049, -0.002333195647224784, -0.042148735374212265, 0.00019283019355498254, -0.04159693792462349, 0.00633504381403327, -0.02618909254670143, 0.005968948360532522, -0.06252274662256241, -0.009831521660089493, 0.004806993063539267, -0.05454292520880699, -0.010314343497157097, 0.01111020240932703, 0.06375367939472198, 0.02765347622334957, -0.02966965362429619, 0.00011059135431423783, 0.006865617353469133, -0.039538316428661346, 0.04830338433384895, -0.01253213919699192, 0.0008111138013191521, 0.04843072220683098, 0.02860850654542446, 0.009582151658833027, 0.02663477510213852, 0.027993042021989822, 0.025531182065606117, 0.040408454835414886, 0.03026389516890049, 0.0943995863199234, -0.03416891396045685, 0.08574063330888748, -0.025361398234963417, 0.020989475771784782, 0.02947864681482315, -0.027462469413876534, 0.04626598209142685, 0.058829955756664276, -0.016044532880187035, 0.004459467716515064, -0.06647021323442459, -0.01617187075316906, -0.010961642488837242, -0.010659215971827507, -0.007252935785800219, -0.048812735825777054, -0.041278596967458725, -0.06591841578483582, 0.068168044090271, -0.04325232654809952, 0.010866139084100723, -0.00017193888197652996, -0.07385578751564026, 0.02886318229138851, 0.01067513320595026, 0.011258763261139393, 0.08005288243293762, -0.004533748142421246, 0.025488736107945442, 0.0171269029378891, 0.04096025228500366, -0.0029632514342665672, -0.08463703840970993, -0.014643820002675056, 0.015280508436262608, -0.0957578495144844, -0.04174549877643585, -0.0356120727956295, -0.02421536110341549, 0.02860850654542446, -0.037989042699337006, 0.012426024302840233, -0.044568147510290146, 0.01824110746383667, -0.0003723960544448346, 0.012288074940443039, -0.008913629688322544, -0.017137514427304268, 0.07729390263557434, -0.035421065986156464, 0.006987649016082287, -0.043103765696287155, 0.034635819494724274, 0.048897627741098404, -0.06137670949101448, 0.06383857131004333, 0.011492216028273106, 0.02144576795399189, -0.04354944825172424, 0.008759764023125172, 0.06001844257116318, 0.022008176892995834, -0.030561016872525215, -0.008584674447774887, 0.030412456020712852, 0.008966687135398388, 0.029966775327920914, 0.015927808359265327, -0.013105157762765884, -0.010706967674195766, 0.02992432937026024, -0.001857006223872304, -0.02376968041062355, -0.032386187463998795, -0.01780603639781475, -0.006154648959636688, -0.030497347936034203, 0.08234496414661407, -0.035845525562763214, -0.04936452955007553, -0.009613986127078533, -0.020374011248350143, 0.0026727626100182533, 0.007374967448413372, -0.0426793098449707, 0.008054100908339024, 0.05318465828895569, 0.04537462070584297, 0.01660694181919098, 0.03491171821951866, 0.03818004950881004, -0.0284599456936121, -0.051062364131212234, -0.03253474831581116, 0.01098286546766758, -0.0035070888698101044, 0.05038323253393173, -0.009083413518965244, 0.006472993176430464, -0.0010259959381073713, -0.04337966442108154, 0.03382934629917145, 0.07143637537956238, 0.015291119925677776, 0.030115334317088127, -0.0004990704474039376, -0.10144559293985367, 0.030667131766676903, -0.05394868180155754, 0.008223884738981724, -0.039198748767375946, 0.015227450989186764, -0.013306776061654091, -0.003395668463781476, 0.04125737398862839, -0.03128259629011154, -0.016224928200244904, 0.017498305067420006, -0.014601374976336956, 0.0030958945862948895, 0.017317909747362137, -0.06345655769109726, 0.03317143768072128, -0.011513438075780869, -0.006552578881382942, -0.0019326128531247377, -0.012181960977613926, -0.006451770197600126, 0.010972253978252411, 0.0015320301754400134, -0.01236235536634922, 0.021031921729445457, -0.01885657198727131, 0.028650952503085136, 0.0029261112213134766, -0.06642776727676392, -0.014410368166863918, -0.05454292520880699, 0.0683378279209137, -0.011990954168140888, -0.01478176936507225, 0.0037591110449284315, 0.0058575281873345375, -0.015439679846167564, -0.019758546724915504, 0.022453857585787773, 0.10441680997610092, -0.04660554975271225, -0.0015161129413172603, -0.022368965670466423, 0.09669166058301926, 0.04410124570131302, -0.01340227946639061, -0.035654518753290176, -0.08192050457000732, -0.038073934614658356, 0.024958163499832153, -0.049322083592414856, -0.02058624103665352, -0.0016010046238079667, 0.020129946991801262, -0.04157571494579315, 0.03387179225683212, -0.004183569923043251, -0.02126537449657917, -0.05989110469818115, 0.06167382746934891, -0.04427102953195572, 0.009380534291267395, -0.02627398446202278, -0.041193705052137375, -0.018177438527345657, 0.03440236672759056, -0.05513716861605644, -0.021371489390730858, 0.01098286546766758, 0.005586935672909021, -0.014834826812148094, -0.0021130077075213194, -0.031240150332450867, -0.004618639592081308, -0.05085013434290886, -0.04325232654809952, -0.000888710143044591, 0.033595893532037735, -0.044737931340932846, 0.007183961104601622, 0.02171105518937111, -0.04242463409900665, -0.005639993119984865, -0.022156737744808197, 0.03830738365650177, -0.0674889087677002, 0.0029526399448513985, -0.05611342191696167, -0.04136348515748978, -0.04834583029150963, -0.016320431604981422, -0.022262850776314735, -0.06332921981811523, 0.04545951262116432, 0.011131425388157368, -0.0018026224570348859, -0.03864695131778717, -0.011088980361819267, 0.005151866003870964, 0.01144977007061243, 0.02264486439526081, 0.006823171395808458, 0.05530695244669914, -0.022177960723638535, -0.008568757213652134, -0.02638009935617447, 0.012691310606896877, 0.010436374694108963, 0.055901192128658295, -0.023536227643489838, -0.021944507956504822, -0.025488736107945442, -0.008054100908339024, -0.02171105518937111, -0.020108724012970924, -0.037309907376766205, -0.04427102953195572, -0.015545794740319252, -0.06761624664068222, 0.017063234001398087, -0.01988588273525238, 0.03890162706375122, -0.04393146187067032, 0.06982343643903732, -0.009953552857041359, 0.040238671004772186, -0.01710567995905876, 0.04244585707783699, 0.006796642672270536, 0.031261373311281204, 0.013158215209841728, 0.04270053282380104, -0.020490737631917, -0.008420196361839771, 0.00014051899779587984, -0.04227607324719429, 0.003300165291875601, 0.0017097721574828029, -0.03508150205016136, 0.003316082525998354, 0.031346265226602554, -0.053481779992580414, 0.013805515132844448, -0.034190136939287186, 0.03677933290600777, -0.013508393429219723, -0.018219884485006332, -0.021753501147031784, 0.060400452464818954, 0.0574292428791523, 0.023621119558811188, 0.04178794473409653, -0.002109028398990631, 0.025828303769230843, 0.028375055640935898, -0.014070801436901093, -0.03365956246852875, -0.019907105714082718, 0.005639993119984865, 0.015588240697979927, 0.043103765696287155, 0.0025242019910365343, 0.07304932177066803, -0.001883534830994904, 0.04995877295732498, 0.0229207631200552, -0.05161416158080101, -0.024448813870549202, 0.055731408298015594, 0.02376968041062355, -0.017668087035417557, 0.0949089378118515, 0.034890495240688324, -0.051656607538461685, 0.029032966122031212, -0.04325232654809952, -0.049491867423057556, 0.02247508056461811, -0.039729323238134384, 0.059169523417949677, 0.007725145667791367, 0.011693833395838737, 0.030900582671165466, -0.07585074752569199, -0.0114603815600276, 0.009194833226501942, -0.007231712806969881, 0.025191616266965866, -0.025297731161117554, 0.0356120727956295, 0.03423258289694786, 0.07882195711135864, 0.02255997247993946, -0.004135818220674992, 0.015768636018037796, -0.0339142382144928, -0.017922762781381607, -0.011035922914743423, 0.013625119812786579, -0.0413210391998291, -0.06281986832618713, 0.007406801916658878, -0.01254275068640709, -0.041554491966962814, 0.023812124505639076, 0.005655910354107618, -0.06337166577577591, 0.011863617226481438, 0.018134992569684982, -0.002825302304700017, -0.05411846563220024, -0.001219655154272914, -0.01652204990386963, 0.049491867423057556, -0.018538227304816246, 0.005804470740258694, -0.06226807087659836, -0.01902635581791401, -0.001752217998728156, 0.05008611083030701, -0.0022788119968026876, 0.023981908336281776, -0.004268461372703314, -0.008982604369521141, 0.0023438071366399527, -0.05246307700872421, 0.011470993049442768, -0.00774106290191412, 0.016967730596661568, -0.020511960610747337, 0.003013655776157975, -0.004653126932680607, 0.026316430419683456, -0.007178655359894037, 0.013519004918634892, 0.0416606068611145, 0.009449508972465992, 0.010171088390052319, -0.05051057040691376, 0.015588240697979927, 0.002508284756913781, 0.060145776718854904, 0.012224406935274601, -0.016118813306093216, -0.019334087148308754, 0.02126537449657917, -0.01261703111231327, 0.020490737631917, 0.0017601766157895327, 0.07733634859323502, 0.055901192128658295, 0.017827259376645088, -0.027122901752591133, -0.005409193690866232, 0.09584274142980576, -0.007295381743460894, 0.008749152533710003, 0.02854483760893345, 0.08272697031497955, -0.00015701650409027934, -0.013073323294520378, 0.023748457431793213, -0.025191616266965866, -0.014845438301563263, 0.02075602300465107, -0.0008436113712377846, -0.017837870866060257, -0.018718622624874115, -0.004960859660059214, -0.023981908336281776, -0.0038652257062494755, -0.0357818566262722, -0.05568896234035492, -0.022687310352921486, -0.013158215209841728, 0.013996521010994911, 0.005043098237365484, 0.010287814773619175, -0.04919474571943283, -0.0473695769906044, 0.005953031126409769, 0.03792537376284599, -0.03656710684299469, 0.004488649312406778, 0.040005218237638474, 0.08616508543491364, 0.0036768722347915173, 0.026655998080968857, -0.01400713250041008, -0.023111768066883087, 0.008892406709492207, -0.029181526973843575, -0.009099330753087997, -0.038264937698841095, -0.008070018142461777, 0.05259041488170624, -0.01609759032726288, 0.004103983752429485, -0.020947029814124107, -0.0347631573677063, -0.024661041796207428, 0.02992432937026024, -0.011704444885253906, -0.021647386252880096, 0.003886448685079813, -0.09754057973623276, 0.03132504224777222, 0.03754336014389992, -0.048812735825777054, 0.031346265226602554, -0.017264852300286293, 0.003530964720994234, 0.0182304959744215, -0.011439158581197262, -0.05679255723953247, -0.06591841578483582, 0.03968687728047371, 0.028077933937311172, 0.010951030999422073, 0.028332609683275223, 0.058405499905347824, -0.07695433497428894, 0.005756719037890434, 0.0691867470741272, -0.06846516579389572, -0.009820910170674324, 0.0453321747481823, -0.048558060079813004, -0.05220840498805046, 0.042063843458890915, -0.029690876603126526, 0.02196573093533516, -0.013168826699256897, 0.03198295086622238, -0.04987388104200363, 0.030412456020712852, 0.01564129814505577, 0.05594363808631897, 0.035590849816799164, -0.007953292690217495, 0.03153727203607559 ]
730,159
mmengine.logging.logger
__init__
null
def __init__(self, name: str, logger_name='mmengine', log_file: Optional[str] = None, log_level: Union[int, str] = 'INFO', file_mode: str = 'w', distributed=False, file_handler_cfg: Optional[dict] = None): Logger.__init__(self, logger_name) ManagerMixin.__init__(self, name) # Get rank in DDP mode. if isinstance(log_level, str): log_level = logging._nameToLevel[log_level] global_rank = _get_rank() device_id = _get_device_id() # Config stream_handler. If `rank != 0`. stream_handler can only # export ERROR logs. stream_handler = logging.StreamHandler(stream=sys.stdout) # `StreamHandler` record month, day, hour, minute, and second # timestamp. stream_handler.setFormatter( MMFormatter(color=True, datefmt='%m/%d %H:%M:%S')) # Only rank0 `StreamHandler` will log messages below error level. if global_rank == 0: stream_handler.setLevel(log_level) else: stream_handler.setLevel(logging.ERROR) stream_handler.addFilter(FilterDuplicateWarning(logger_name)) self.handlers.append(stream_handler) if log_file is not None: world_size = _get_world_size() is_distributed = (log_level <= logging.DEBUG or distributed) and world_size > 1 if is_distributed: filename, suffix = osp.splitext(osp.basename(log_file)) hostname = _get_host_info() if hostname: filename = (f'{filename}_{hostname}_device{device_id}_' f'rank{global_rank}{suffix}') else: # Omit hostname if it is empty filename = (f'{filename}_device{device_id}_' f'rank{global_rank}{suffix}') log_file = osp.join(osp.dirname(log_file), filename) # Save multi-ranks logs if distributed is True. The logs of rank0 # will always be saved. if global_rank == 0 or is_distributed: if file_handler_cfg is not None: assert 'type' in file_handler_cfg file_handler_type = file_handler_cfg.pop('type') file_handlers_map = _get_logging_file_handlers() if file_handler_type in file_handlers_map: file_handler_cls = file_handlers_map[file_handler_type] file_handler_cfg.setdefault('filename', log_file) file_handler = file_handler_cls(**file_handler_cfg) else: raise ValueError('`logging.handlers` does not ' f'contain {file_handler_type}') else: # Here, the default behavior of the official # logger is 'a'. Thus, we provide an interface to # change the file mode to the default behavior. # `FileHandler` is not supported to have colors, # otherwise it will appear garbled. file_handler = logging.FileHandler(log_file, file_mode) # `StreamHandler` record year, month, day hour, minute, # and second timestamp. file_handler will only record logs # without color to avoid garbled code saved in files. file_handler.setFormatter( MMFormatter(color=False, datefmt='%Y/%m/%d %H:%M:%S')) file_handler.setLevel(log_level) file_handler.addFilter(FilterDuplicateWarning(logger_name)) self.handlers.append(file_handler) self._log_file = log_file
(self, name: str, logger_name='mmengine', log_file: Optional[str] = None, log_level: Union[int, str] = 'INFO', file_mode: str = 'w', distributed=False, file_handler_cfg: Optional[dict] = None)
[ 0.01496907789260149, -0.004267100244760513, -0.04754406586289406, 0.06867926567792892, 0.05590078607201576, -0.011581766419112682, -0.05371018871665001, 0.04961296170949936, -0.07338499277830124, 0.017403075471520424, 0.004885741043835878, 0.0014794134767726064, 0.012991456314921379, -0.009056495502591133, 0.038517992943525314, 0.027565009891986847, -0.016642451286315918, 0.005222950596362352, -0.02304183319211006, 0.01526318583637476, -0.0024973817635327578, 0.00716000609099865, 0.0011637546122074127, 0.012220690958201885, 0.003760017454624176, 0.03415708243846893, -0.04839596152305603, 0.016885850578546524, 0.024299398064613342, -0.023244665935635567, -0.04158077389001846, -0.05403472110629082, 0.03255470097064972, 0.0513167604804039, -0.013376838527619839, -0.028883425518870354, -0.018396956846117973, 0.0028700875118374825, -0.12883955240249634, 0.010344484820961952, 0.04973465949296951, 0.009801906533539295, 0.04344683513045311, 0.014208454638719559, -0.043203435838222504, 0.06198577582836151, 0.027260759845376015, 0.06673207134008408, -0.006090062204748392, -0.024968747049570084, -0.04872049763798714, 0.06519053876399994, -0.031134871765971184, 0.035495780408382416, -0.013549246825277805, 0.04478553310036659, 0.044177036732435226, -0.0266928281635046, -0.047746896743774414, -0.0533856563270092, -0.026266878470778465, 0.026571128517389297, 0.06798963248729706, 0.007677230518311262, -0.010709584690630436, -0.02539469674229622, -0.02089180238544941, 0.03245328739285469, 0.0024301933590322733, 0.05038372799754143, 0.01812313124537468, -0.09995612502098083, 0.069855697453022, -0.008838449604809284, -0.02277814969420433, 0.005370004568248987, 0.0029385436791926622, 0.05391302332282066, 0.02728104405105114, 0.02894427441060543, 0.004591633100062609, 0.0005102518480271101, -0.0074642556719481945, -0.0001301776064792648, 0.02502959780395031, -0.03705759719014168, -0.011875874362885952, 0.04231097176671028, -0.0023110290057957172, -0.022615883499383926, -0.08738047629594803, 0.011845449917018414, 0.00639431132003665, -0.0045814914628863335, -0.04807142913341522, -0.03831516206264496, -0.0389845110476017, -0.0010984676191583276, 0.017950724810361862, 0.002309761242941022, -0.09671079367399216, 0.00041866005631163716, 0.03799062967300415, -0.02214936725795269, -0.02857917547225952, -0.06446033716201782, -0.04433930292725563, 0.01834624819457531, 0.005714820697903633, 0.022757867351174355, -0.04486666992306709, 0.03212875500321388, -0.00046778368414379656, 0.019877638667821884, -0.03529294952750206, 0.002184258308261633, -0.03975527733564377, 0.011419500224292278, -0.011115250177681446, 0.01053717639297247, -0.009791765362024307, 0.015131345018744469, -0.02997872233390808, 0.006769552826881409, 0.005623545963317156, -0.007662017829716206, 0.00478939525783062, -0.03600286319851875, 0.058497048914432526, 0.012200407683849335, 0.01712924987077713, -0.00936074461787939, 0.036530230194330215, -0.00635881582275033, 0.03133770450949669, -0.02296070009469986, -0.03894394263625145, 0.02539469674229622, -0.0368344783782959, 0.07468312233686447, -0.012352531775832176, -0.042027004063129425, -0.001512373797595501, -0.0316622368991375, -0.0004449649713933468, 0.03861941024661064, 0.0012550294632092118, 0.037666093558073044, -0.011297800578176975, -0.03192592039704323, 0.02444138191640377, -0.02480648085474968, -0.03263583779335022, 0.08729933947324753, -0.03322404995560646, -0.01831582374870777, -0.0005520861595869064, 0.04482610151171684, 0.011125392280519009, 0.015415310859680176, -0.014492420479655266, -0.05748288333415985, 0.058781012892723083, -0.02421826496720314, -0.015121202915906906, -0.022210218012332916, -0.039775557816028595, -0.016409192234277725, 0.03494813293218613, 0.039633575826883316, -0.0329400859773159, 0.025354130193591118, 0.0038081903476268053, 0.02638857811689377, -0.04888276383280754, 0.04054632410407066, 0.008858732879161835, -0.01496907789260149, -0.02174370177090168, 0.009472303092479706, 0.01242352370172739, -0.012808906845748425, -0.017443642020225525, 0.024502230808138847, -0.002473295433446765, 0.06182350963354111, -0.00014523162099067122, -0.016074517741799355, -0.007956125773489475, 0.05715835094451904, 0.02724047750234604, -0.014015763066709042, 0.020435428246855736, -0.07245196402072906, 0.02732161059975624, 0.0759001225233078, -0.008955078199505806, -0.05078939348459244, 0.03318348526954651, 0.0013577135978266597, 0.0117744579911232, 0.04539403319358826, -0.022271066904067993, -0.0050429366528987885, -0.009071707725524902, 0.016784433275461197, 0.05042429268360138, 0.06912550330162048, -0.060890477150678635, 0.039410460740327835, -0.0048654573038220406, -0.013579672202467918, -0.009786694310605526, 0.0899767354130745, 0.03210847079753876, -0.0380311943590641, -0.034278783947229385, 0.06705660372972488, -0.024502230808138847, 0.0347655825316906, 0.02813294157385826, 0.029836740344762802, -0.05796968191862106, 0.0470978319644928, -0.02539469674229622, 0.01617593504488468, 0.06239144131541252, -0.01555729378014803, 0.03535379841923714, 0.03575946390628815, 0.014928511343896389, 0.05586021766066551, -0.02027316205203533, 0.049856361001729965, 0.004421760328114033, 0.0017430963926017284, -0.013812930323183537, 0.036266546696424484, -0.044461000710725784, 0.029370224103331566, -0.013407263904809952, -0.027078211307525635, 0.05253375694155693, -0.0024961140006780624, 0.04632706567645073, -0.05456208810210228, 0.0018914181273430586, 0.04401477053761482, 0.008686324581503868, -0.0074236891232430935, 0.00010379347077105194, 0.035860881209373474, -0.04014065861701965, -0.011916440911591053, -0.033163201063871384, -0.060119710862636566, -0.00763159291818738, 0.026084328070282936, 0.0041251168586313725, -0.06928776949644089, -0.0127886226400733, 0.017555199563503265, 0.009908393956720829, -0.04271663725376129, 0.00468797842040658, -0.021905967965722084, 0.016409192234277725, -0.07435858994722366, 0.03880196064710617, 0.03289951756596565, 0.04835539683699608, 0.06020084768533707, -0.01438086200505495, 0.02269701659679413, -0.05508945509791374, -0.07224912941455841, -0.018112991005182266, -0.03344716876745224, -0.03521181643009186, 0.07224912941455841, 0.03042495623230934, 0.038599126040935516, 0.036307115107774734, 0.00993374828249216, 0.031134871765971184, 0.010080802254378796, -0.015820976346731186, -0.03953215852379799, 0.020323870703577995, -0.018954748287796974, -0.06084991246461868, 0.03060750477015972, -0.04762519896030426, 0.0030272831209003925, -0.024907896295189857, 0.0008525326265953481, -0.048558227717876434, -0.025638096034526825, 0.003577467752620578, -0.04255437105894089, -0.03200705349445343, -0.0031895495485514402, 0.05253375694155693, 0.01332613080739975, 0.005790883209556341, -0.00381579645909369, 0.007565672509372234, -0.023386649787425995, 0.059348948299884796, -0.011439783498644829, 0.03669249638915062, 0.03965386003255844, 0.031074021011590958, 0.015780409798026085, 0.043771371245384216, 0.06843587011098862, 0.019542964175343513, 0.04190530627965927, 0.026185745373368263, 0.07748222351074219, -0.034907564520835876, 0.08372947573661804, -0.013072589412331581, 0.019837072119116783, 0.015313894487917423, -0.028700875118374825, 0.07330386340618134, 0.026266878470778465, -0.02444138191640377, 0.024907896295189857, -0.0658801719546318, 0.02517157979309559, -0.010750151239335537, 0.003536901203915477, -0.012159841135144234, -0.03115515410900116, -0.04750349745154381, -0.05837534740567207, 0.07768505066633224, -0.03152025490999222, -0.011581766419112682, -0.009233973920345306, -0.056468717753887177, 0.03070892207324505, -0.0027509231586009264, -0.0047843242064118385, 0.060119710862636566, -0.02916739135980606, 0.024644214659929276, 0.02425883151590824, 0.058497048914432526, -0.022859282791614532, -0.08908426761627197, -0.028599457815289497, 0.029228240251541138, -0.056063052266836166, -0.05630645155906677, -0.04563743248581886, -0.02602347917854786, 0.025861212983727455, -0.03125657141208649, 0.010567601770162582, -0.02857917547225952, 0.010618309490382671, 0.007864851504564285, 0.004436972551047802, 0.01089213415980339, -0.010628451593220234, 0.09395226091146469, -0.026814527809619904, -0.0015364602440968156, -0.05261489003896713, 0.03724014759063721, 0.06020084768533707, -0.04129680618643761, 0.060525380074977875, -0.004421760328114033, -0.005329438019543886, -0.0513167604804039, -0.008371933363378048, 0.04308173805475235, 0.01371151302009821, -0.026855094358325005, -0.02638857811689377, -0.01118624210357666, 0.015415310859680176, 0.03129713609814644, 0.03506983071565628, -0.021581435576081276, 0.017220525071024895, 0.06360843777656555, 0.010902276262640953, -0.019076447933912277, -0.04474496841430664, 0.017413215711712837, 0.008939865976572037, -0.030181556940078735, 0.10539204627275467, -0.028214076533913612, -0.0127886226400733, -0.026489995419979095, -0.03934960812330246, -0.00782428402453661, 0.023305516690015793, -0.02255503460764885, 0.0037245217245072126, 0.03411651775240898, 0.03251413628458977, 0.033609434962272644, 0.0179811492562294, 0.0491667278110981, -0.011865733191370964, -0.04046519100666046, -0.024907896295189857, -0.005856804084032774, 0.020952653139829636, 0.0451100692152977, -0.013559388928115368, 0.036266546696424484, 0.0033949180506169796, -0.03979584202170372, 0.04170247167348862, 0.05914611369371414, -0.0017253485275432467, 0.04721952974796295, -0.0024251225404441357, -0.07849638909101486, 0.03924819454550743, -0.03433963283896446, 0.01805214025080204, -0.03344716876745224, 0.035455215722322464, -0.029633907601237297, -0.007408476900309324, 0.05387245491147041, -0.005304084159433842, -0.008995645679533482, 0.031317420303821564, -0.004114975221455097, 0.006100203841924667, 0.013437689282000065, -0.05054599419236183, 0.018325965851545334, -0.007139722816646099, -0.006485586520284414, 0.012940747663378716, -0.007961196824908257, -0.0026748606469482183, 0.022575316950678825, 0.010963126085698605, -0.020810669288039207, 0.00901085790246725, -0.014512703754007816, -0.008934794925153255, 0.021865401417016983, -0.06583960354328156, -0.042027004063129425, -0.04178360477089882, 0.057645149528980255, -0.03214903548359871, 0.012748056091368198, -0.009168053045868874, -0.002437799470499158, -0.05135732516646385, -0.024563081562519073, 0.023569198325276375, 0.08819180727005005, -0.03511039912700653, 0.008407429791986942, -0.02898484095931053, 0.07306046038866043, 0.04973465949296951, -0.02466449700295925, -0.01428958773612976, -0.08080868422985077, -0.03300093486905098, 0.012078707106411457, -0.060079146176576614, -0.025759795680642128, 0.012393098324537277, -0.00007570584421046078, -0.020516561344265938, 0.003668742487207055, -0.0037397341802716255, -0.013427547179162502, -0.0616612434387207, 0.05419698730111122, -0.04648933187127113, 0.0017380255740135908, -0.003628175938501954, -0.006272611673921347, -0.039004791527986526, 0.02281871624290943, -0.07691428810358047, 0.01591225154697895, 0.014441712759435177, 0.017261091619729996, 0.02521214634180069, -0.006115416064858437, -0.01375207956880331, -0.005704679060727358, -0.06239144131541252, -0.05281772464513779, 0.007768505252897739, 0.003197155660018325, -0.006145840976387262, 0.0026064044795930386, -0.011926583014428616, -0.07111326605081558, 0.004386264365166426, 0.00013263379514683038, 0.04770633205771446, -0.07443972676992416, -0.004439508076757193, -0.048193130642175674, -0.028822574764490128, -0.05590078607201576, -0.021317752078175545, -0.04231097176671028, -0.05135732516646385, 0.05837534740567207, 0.015293611213564873, 0.019461829215288162, -0.008797883056104183, -0.030242405831813812, 0.0010319130960851908, 0.012413381598889828, 0.028619742020964622, 0.034826431423425674, 0.038416579365730286, -0.03281838446855545, -0.010121368803083897, -0.03926847502589226, 0.012291681952774525, 0.026936227455735207, 0.06145841255784035, -0.012677065096795559, -0.011703466065227985, -0.05614418536424637, -0.023650331422686577, -0.02813294157385826, -0.013244997709989548, -0.030992887914180756, -0.07074816524982452, -0.00932017806917429, -0.04989692568778992, 0.019167721271514893, -0.019553104415535927, 0.05687438324093819, -0.04839596152305603, 0.07411519438028336, 0.0026850022841244936, 0.06393297016620636, -0.008559553883969784, 0.0347655825316906, -0.014137462712824345, 0.046205367892980576, -0.026997078210115433, 0.023893732577562332, -0.02683481015264988, -0.002984181046485901, 0.008569695986807346, -0.07963225245475769, 0.03152025490999222, -0.018153557553887367, -0.03902507573366165, 0.01602381095290184, 0.02273758314549923, -0.03575946390628815, 0.010861708782613277, -0.050627127289772034, 0.0554545521736145, -0.03506983071565628, -0.029958439990878105, -0.018924321979284286, 0.008589979261159897, 0.06827360391616821, 0.03016127273440361, 0.050262026488780975, -0.001769718248397112, 0.00482742628082633, 0.014979219995439053, 0.00465248292312026, -0.02916739135980606, -0.03241271898150444, 0.004066802561283112, 0.03336603567004204, 0.03719957917928696, 0.013762221671640873, 0.05995744466781616, 0.02292013354599476, 0.033812265843153, 0.017737749963998795, -0.058010250329971313, -0.052371490746736526, 0.027220193296670914, 0.007312131114304066, -0.01679457537829876, 0.08015961945056915, 0.03478586673736572, -0.08559554070234299, 0.016845284029841423, -0.027483876794576645, -0.055251721292734146, 0.002272997749969363, -0.07228969782590866, 0.036570798605680466, 0.04458270221948624, -0.009908393956720829, 0.05452151969075203, -0.07983508706092834, -0.0133058475330472, 0.030039573088288307, -0.011733891442418098, 0.042473237961530685, -0.023386649787425995, 0.051965825259685516, 0.039146777242422104, 0.0739123597741127, 0.015668852254748344, -0.018214406445622444, 0.009269469417631626, -0.033832550048828125, -0.007428760174661875, -0.045759133994579315, 0.029370224103331566, -0.03466416522860527, -0.056833818554878235, 0.01371151302009821, 0.0006027944618836045, -0.04083029180765152, 0.021459735929965973, -0.0004842638736590743, -0.04876106232404709, -0.0010680427076295018, -0.006439948920160532, -0.007616380695253611, -0.028335776180028915, 0.02746359258890152, -0.02632772922515869, 0.07886148244142532, -0.007408476900309324, 0.027930108830332756, -0.08356720954179764, -0.0029715041164308786, -0.01422873791307211, 0.04892332851886749, 0.015100919641554356, 0.04381193593144417, -0.01393462996929884, -0.03385283425450325, -0.009644711390137672, -0.06036311388015747, 0.024684781208634377, 0.013468113727867603, 0.03271697089076042, -0.015516727231442928, -0.00930496584624052, 0.015567435882985592, 0.030080139636993408, -0.003204762004315853, 0.00249231094494462, 0.053142257034778595, -0.015161769464612007, 0.0002491043123882264, -0.07703598588705063, 0.023427216336131096, -0.023427216336131096, 0.015658710151910782, 0.01120652537792921, -0.00803218875080347, -0.023305516690015793, 0.01428958773612976, 0.01120652537792921, 0.03212875500321388, 0.03147968649864197, 0.062107477337121964, 0.03709816187620163, 0.010435760021209717, -0.03494813293218613, -0.017727607861161232, 0.06510940194129944, -0.0016670339973643422, -0.03097260557115078, 0.030891472473740578, 0.056468717753887177, -0.021398885175585747, 0.01114567555487156, 0.015658710151910782, -0.042027004063129425, -0.008960149250924587, 0.02795039303600788, -0.02233191765844822, -0.03395425155758858, -0.01949225552380085, -0.01550658605992794, -0.015526869334280491, -0.0005023286794312298, -0.029512207955121994, -0.008833378553390503, -0.03947130963206291, -0.01371151302009821, 0.01371151302009821, -0.006941960658878088, -0.01526318583637476, -0.06036311388015747, -0.05257432535290718, 0.009497657418251038, 0.018559223040938377, -0.021419169381260872, 0.013488397002220154, 0.023285232484340668, 0.0761435255408287, -0.012920464389026165, -0.02063826099038124, 0.010729867964982986, -0.009664994664490223, 0.0066529237665236, -0.008660971187055111, -0.011581766419112682, -0.03997839242219925, -0.01303202286362648, 0.01728137582540512, -0.011470207944512367, 0.017261091619729996, -0.04851766303181648, -0.06656980514526367, 0.0013982802629470825, 0.06523110717535019, -0.032392434775829315, -0.031033454462885857, -0.008164029568433762, -0.09387113153934479, 0.030891472473740578, 0.01617593504488468, -0.0204861368983984, 0.03525238111615181, -0.029917873442173004, -0.015232761390507221, 0.030364105477929115, 0.00019174060435034335, -0.04547516629099846, -0.0533856563270092, 0.02543526329100132, 0.014573553577065468, 0.012261257506906986, 0.029816456139087677, 0.04636763408780098, -0.07577842473983765, 0.008853661827743053, 0.04681386426091194, -0.037260428071022034, 0.012727772817015648, 0.05456208810210228, -0.06320277601480484, -0.07667088508605957, 0.04973465949296951, -0.025942346081137657, 0.012119273655116558, -0.01055745966732502, 0.0100047392770648, -0.029431074857711792, 0.012879897840321064, 0.024725347757339478, 0.05853761360049248, 0.03865997865796089, 0.00929989479482174, 0.007083944045007229 ]
730,165
mmengine.logging.logger
callHandlers
Pass a record to all relevant handlers. Override ``callHandlers`` method in ``logging.Logger`` to avoid multiple warning messages in DDP mode. Loop through all handlers of the logger instance and its parents in the logger hierarchy. If no handler was found, the record will not be output. Args: record (LogRecord): A ``LogRecord`` instance contains logged message.
def callHandlers(self, record: LogRecord) -> None: """Pass a record to all relevant handlers. Override ``callHandlers`` method in ``logging.Logger`` to avoid multiple warning messages in DDP mode. Loop through all handlers of the logger instance and its parents in the logger hierarchy. If no handler was found, the record will not be output. Args: record (LogRecord): A ``LogRecord`` instance contains logged message. """ for handler in self.handlers: if record.levelno >= handler.level: handler.handle(record)
(self, record: logging.LogRecord) -> NoneType
[ -0.041962962597608566, 0.00015867131878621876, -0.02871341072022915, 0.08987914770841599, -0.04272526502609253, -0.026698753237724304, -0.02178008295595646, 0.015990210697054863, -0.008893534541130066, 0.003119543194770813, -0.04287046566605568, -0.006978701800107956, 0.05063869431614876, -0.03840554878115654, -0.026807652786374092, -0.03457588329911232, -0.028894910588860512, 0.040510956197977066, -0.003600520081818104, -0.0051455446518957615, -0.02677135355770588, 0.04479437321424484, 0.04290676489472389, 0.037715844810009, -0.05978633090853691, 0.08668473362922668, -0.02920346148312092, 0.026589851826429367, 0.025428248569369316, 0.028967510908842087, -0.025827549397945404, -0.007536816410720348, 0.016380438581109047, 0.0019159667426720262, -0.0048006935976445675, -0.022270135581493378, -0.038913749158382416, 0.03316017612814903, -0.10345539450645447, 0.075431689620018, -0.019747275859117508, 0.01658916287124157, 0.04243486374616623, -0.023268388584256172, -0.03196227177977562, 0.06606625020503998, 0.04348756745457649, 0.0760124921798706, 0.01180662028491497, -0.058080222457647324, -0.0052181449718773365, 0.0713660717010498, -0.01295007485896349, -0.03223452344536781, 0.055648114532232285, -0.0067109884694218636, 0.03753434494137764, -0.01978357508778572, -0.011833845637738705, -0.052199602127075195, 0.022270135581493378, -0.013512726873159409, -0.021707482635974884, -0.007269103080034256, 0.010654090903699398, -0.049295589327812195, 0.018549371510744095, -0.004290222655981779, -0.017387766391038895, 0.0029516550712287426, -0.0600404292345047, -0.0821109190583229, -0.01042721513658762, 0.0020407484844326973, -0.02207048423588276, -0.029693514108657837, -0.008775558322668076, 0.04069245606660843, 0.029257912188768387, 0.020146576687693596, 0.0179867185652256, -0.030673617497086525, 0.021653033792972565, 0.0582980252802372, -0.01442930568009615, -0.02900381200015545, 0.017414992675185204, 0.015209758654236794, 0.00744606601074338, 0.05379680544137955, -0.05125579610466957, -0.05328860506415367, 0.01900312304496765, 0.003605057718232274, -0.0022732962388545275, 0.04911408945918083, -0.017560193315148354, 0.02109038084745407, -0.05140099674463272, 0.024266643449664116, -0.0188579224050045, -0.00627992395311594, 0.06512244790792465, -0.035029634833335876, -0.02138078212738037, -0.09423515945672989, -0.00025410097441636026, 0.00778184225782752, 0.035374484956264496, 0.09699397534132004, -0.004235772415995598, -0.016598239541053772, 0.0057127345353364944, -0.0351022332906723, -0.03355947881937027, -0.007201040163636208, -0.0038137834053486586, -0.009692137129604816, -0.04806138575077057, 0.014520055614411831, -0.020908880978822708, -0.017732618376612663, -0.01809561997652054, -0.011243968270719051, -0.012695973739027977, -0.018839772790670395, -0.014837682247161865, -0.01447468064725399, 0.04646417871117592, 0.010463515296578407, 0.008476082235574722, 0.0027451980859041214, -0.013694227673113346, -0.01691586524248123, 0.039494551718235016, -0.0015949374064803123, 0.033577628433704376, -0.020672928541898727, 0.02497449517250061, -0.0005013956688344479, -0.007341703400015831, -0.02816890738904476, 0.03312387689948082, 0.023994391784071922, 0.034594032913446426, 0.011352868750691414, 0.0169703159481287, 0.03608233854174614, -0.043088264763355255, 0.010227564722299576, -0.011851995252072811, 0.011144142597913742, 0.040619857609272, 0.05408720672130585, -0.0588788278400898, 0.051618799567222595, -0.0026204162277281284, 0.04472177103161812, -0.0032170999329537153, -0.051437295973300934, 0.005966835655272007, -0.04145475849509239, 0.009955313056707382, -0.013803128153085709, -0.02546454779803753, 0.035519685596227646, -0.042688965797424316, 0.0191483236849308, 0.02511969581246376, 0.03332352638244629, -0.03996645286679268, 0.023867342621088028, 0.02671690285205841, 0.06711895763874054, -0.0065204123966395855, 0.0649772509932518, -0.0025069783441722393, 0.01809561997652054, -0.010436289943754673, -0.008662120439112186, 0.019801726564764977, -0.00022389812511391938, 0.02007397636771202, 0.05078389495611191, 0.010082364082336426, -0.007741004694253206, 0.015845010057091713, -0.025192296132445335, -0.04817028343677521, 0.00883454643189907, -0.018585670739412308, -0.021598583087325096, 0.024702245369553566, -0.08719293773174286, 0.06189173832535744, 0.08871754258871078, -0.020527729764580727, -0.014837682247161865, 0.017832443118095398, -0.03691724315285683, 0.018984973430633545, -0.014111679047346115, -0.03564673662185669, -0.01835879497230053, 0.004610117524862289, 0.08574093133211136, 0.029040111228823662, 0.09024214744567871, -0.09111335128545761, -0.010309239849448204, 0.03620938956737518, -0.014991957694292068, 0.026009049266576767, 0.017886893823742867, 0.04748058319091797, -0.0036527016200125217, -0.0342310331761837, 0.006933326832950115, -0.03822404518723488, 0.0031172744929790497, 0.03129072114825249, 0.009301911108195782, -0.07176537811756134, 0.003387256758287549, -0.011443618685007095, 0.04617377743124962, 0.048424385488033295, -0.014955657534301281, 0.051328398287296295, -0.01460173074156046, -0.02404884248971939, 0.024502594023942947, -0.056954920291900635, 0.0342310331761837, 0.08799153566360474, -0.040801357477903366, -0.032760877162218094, 0.01963837631046772, 0.041236959397792816, 0.034303631633520126, 0.03666314110159874, 0.04076505824923515, 0.0029947615694254637, -0.005154619924724102, -0.008548682555556297, -0.03519298508763313, 0.05042089521884918, 0.023994391784071922, 0.040656156837940216, 0.01998322643339634, 0.0098645631223917, -0.008820934221148491, -0.008839083835482597, -0.016743440181016922, -0.05931442975997925, -0.035320036113262177, 0.026608001440763474, 0.03519298508763313, 0.0057127345353364944, -0.046427879482507706, 0.0033623003400862217, 0.06708265841007233, -0.0197291262447834, 0.006497724913060665, -0.016280611976981163, 0.020636629313230515, 0.02196158468723297, -0.05935072898864746, 0.039930153638124466, 0.07840830087661743, 0.00838533230125904, -0.02459334395825863, 0.015681659802794456, 0.036681290715932846, -0.02726140432059765, 0.016108186915516853, -0.01561813522130251, 0.060548633337020874, -0.06367044150829315, 0.04853328689932823, 0.04882368817925453, 0.02784220688045025, -0.0023322838824242353, -0.009928087703883648, 0.016934014856815338, -0.031544819474220276, 0.005803484935313463, 0.06911546736955643, -0.017741693183779716, -0.026644302532076836, 0.030383216217160225, 0.04159995913505554, -0.026353901252150536, -0.0018150069518014789, -0.06566695123910904, -0.009601387195289135, -0.023939941078424454, -0.019674675539135933, 0.0371350422501564, -0.0009426692267879844, -0.04170886054635048, -0.03257937356829643, 0.09191195666790009, -0.012106096372008324, 0.00913855992257595, 0.0055085462518036366, 0.05582961440086365, -0.02816890738904476, 0.02415774203836918, -0.03368652984499931, -0.013594402000308037, 0.1119496300816536, 0.008199294097721577, -0.011979046277701855, 0.022143084555864334, -0.017351467162370682, 0.01147084403783083, 0.06791756302118301, -0.017587417736649513, 0.07448788732290268, -0.07564949244260788, 0.06849836558103561, -0.002720241667702794, 0.037752144038677216, 0.024266643449664116, 0.008730183355510235, 0.047734685242176056, 0.002475215820595622, -0.02138078212738037, 0.008861771784722805, -0.06472314894199371, -0.014247804880142212, 0.009410811588168144, -0.01737869158387184, 0.0025001720059663057, -0.01806839369237423, -0.05840692296624184, 0.0268258024007082, 0.002195024164393544, 0.019329823553562164, -0.03482998535037041, -0.003893190063536167, -0.014674331061542034, 0.005272595211863518, 0.05328860506415367, -0.003049211809411645, 0.015318659134209156, 0.05561181530356407, 0.029566463083028793, 0.05553921312093735, 0.05931442975997925, -0.10374579578638077, -0.06657445430755615, -0.006543100345879793, 0.05052979290485382, -0.05757202208042145, -0.02749735489487648, -0.011498069390654564, -0.01236927229911089, 0.005054794251918793, 0.03619123995304108, -0.012160547077655792, -0.01508270762860775, 0.0029017424676567316, 0.018050244078040123, 0.039639752358198166, -0.0033328065183013678, -0.01900312304496765, -0.0016448501264676452, 0.03350502997636795, -0.0024888282641768456, -0.0037525268271565437, 0.018930522724986076, 0.000605758570600301, -0.024647794663906097, 0.08748333901166916, 0.07162017375230789, 0.02550084888935089, -0.023885492235422134, 0.03778844699263573, 0.026698753237724304, 0.002647641347721219, 0.026807652786374092, -0.022633137181401253, -0.014674331061542034, -0.049876391887664795, -0.013585327193140984, 0.04965858906507492, -0.046246375888586044, 0.00626631174236536, 0.06425124406814575, -0.01818636991083622, -0.07042226940393448, -0.037752144038677216, -0.044395070523023605, -0.03150852024555206, -0.005694584455341101, 0.05869732424616814, -0.026789503172039986, -0.05474061146378517, -0.06109313294291496, -0.042652662843465805, -0.04595597833395004, 0.008172068744897842, -0.008444320410490036, 0.04689978063106537, 0.009419886395335197, 0.02668060176074505, 0.026081649586558342, -0.057535722851753235, 0.0530708022415638, -0.008181143552064896, -0.03263382613658905, -0.027515506371855736, 0.034303631633520126, -0.03274272754788399, 0.024357393383979797, 0.04432247206568718, -0.04040205478668213, 0.009619536809623241, 0.001534815295599401, 0.012314822524785995, 0.029257912188768387, 0.030909568071365356, 0.06595735251903534, -0.007450603414326906, -0.044249869883060455, 0.019529474899172783, 0.017941344529390335, 0.01992877572774887, -0.014692481607198715, 0.016026511788368225, -0.03179892152547836, -0.002938042627647519, 0.06828056275844574, -0.01706106588244438, -0.016162637621164322, 0.06508614867925644, 0.0095741618424654, 0.0007379137678071856, -0.023794742301106453, -0.013966478407382965, -0.0176963172852993, -0.09692136943340302, 0.060984235256910324, -0.024557044729590416, 0.040946558117866516, -0.006824426352977753, -0.04610117897391319, -0.021943435072898865, -0.025664199143648148, -0.026063499972224236, 0.027170654386281967, -0.03767954558134079, -0.007881667464971542, 0.0021280955988913774, -0.03611863777041435, -0.009964387863874435, 0.05227220058441162, -0.0006766573060303926, 0.0038047083653509617, -0.029693514108657837, -0.01987432688474655, -0.04809768497943878, -0.04766208305954933, 0.031345169991254807, 0.044975873082876205, -0.006960551720112562, -0.010272939689457417, -0.05082019418478012, 0.0792069062590599, -0.02207048423588276, -0.007255490403622389, -0.027569955214858055, -0.05180029943585396, -0.013231400400400162, 0.037897344678640366, -0.029602764174342155, -0.00010606447176542133, 0.01824082061648369, -0.03263382613658905, -0.029548313468694687, 0.02657170221209526, -0.01867642253637314, -0.008893534541130066, -0.11006202548742294, 0.03749804571270943, -0.04969489201903343, -0.0005065003642812371, -0.04185406118631363, 0.01578148640692234, -0.03575563803315163, 0.01685233972966671, -0.040510956197977066, 0.02488374523818493, -0.03143592178821564, 0.022669436410069466, -0.0134129012003541, -0.0027315854094922543, -0.02433924376964569, -0.017614642158150673, -0.04025685414671898, 0.000999388168565929, -0.002894936129450798, 0.03143592178821564, 0.004610117524862289, 0.06628405302762985, 0.09140375256538391, -0.017569268122315407, 0.02207048423588276, -0.007527741603553295, 0.07354408502578735, -0.04087395593523979, -0.008780096657574177, -0.027751456946134567, -0.034448832273483276, -0.03811514750123024, -0.005490396171808243, -0.02308688871562481, -0.0010390914976596832, 0.06432384997606277, -0.03691724315285683, 0.024956345558166504, 0.028913060203194618, 0.055212512612342834, -0.026843953877687454, -0.014674331061542034, 0.04258006438612938, 0.001354448962956667, 0.014293179847300053, -0.01705199107527733, 0.014547280967235565, 0.0015132620465010405, 0.0004095109470654279, -0.029457563534379005, 0.026880253106355667, -0.009955313056707382, -0.06606625020503998, -0.11812065541744232, 0.018948672339320183, -0.0032874313183128834, -0.008625820279121399, -0.062291041016578674, -0.07336258143186569, 0.02041882835328579, -0.03738914430141449, -0.08995174616575241, -0.023359140381217003, 0.02352249063551426, -0.029766114428639412, 0.02816890738904476, -0.023486189544200897, 0.02129003219306469, 0.014465605840086937, 0.027134355157613754, -0.00023963763669598848, 0.026553552597761154, 0.024357393383979797, 0.002944848733022809, -0.018177295103669167, -0.00701953936368227, -0.07681109756231308, -0.018785322085022926, -0.017678167670965195, -0.010309239849448204, -0.06283554434776306, 0.009419886395335197, 0.07125717401504517, -0.02720695361495018, -0.026172401383519173, 0.003158112056553364, 0.02502894587814808, -0.03884115070104599, -0.011988121084868908, -0.05677341669797897, 0.05499470978975296, 0.019710976630449295, -0.02633575163781643, 0.019674675539135933, -0.008226519450545311, -0.01714274100959301, 0.0009591177222318947, -0.012260371819138527, -0.02221568487584591, -0.028005557134747505, -0.046282678842544556, -0.010663165710866451, 0.017387766391038895, 0.017968568950891495, 0.04519367218017578, -0.024938195943832397, -0.009320060722529888, -0.0412006601691246, -0.05855212360620499, -0.007881667464971542, 0.057935021817684174, -0.031072920188307762, 0.020382529124617577, 0.03924044966697693, 0.002201830269768834, -0.07278177887201309, 0.020927030593156815, 0.03419473022222519, -0.06704635918140411, 0.02433924376964569, -0.0553940124809742, 0.03181707113981247, 0.023014288395643234, -0.023050589486956596, 0.044975873082876205, -0.03368652984499931, 0.012505398131906986, 0.08167531341314316, 0.041236959397792816, 0.01295007485896349, -0.029058260843157768, 0.0010856010485440493, -0.0022766992915421724, 0.03706244379281998, 0.01491028256714344, -0.021271882578730583, 0.015509234741330147, -0.009755662642419338, -0.010200339369475842, -0.02570049837231636, 0.029312362894415855, -0.021943435072898865, -0.08770113438367844, 0.002370852744206786, 0.034557733684778214, -0.02982056513428688, 0.014202429912984371, -0.027388455346226692, -0.017297016456723213, -0.02749735489487648, -0.01119859330356121, -0.014846757054328918, -0.04704498127102852, 0.0009965522913262248, -0.05223590135574341, 0.09227495640516281, -0.03230712562799454, -0.02668060176074505, -0.07318107783794403, 0.030582867562770844, 0.03230712562799454, -0.02390364184975624, -0.007958805188536644, -0.018059318885207176, -0.001622162526473403, -0.008798246271908283, -0.006189173553138971, -0.1104976236820221, 0.06479574739933014, 0.030873268842697144, 0.07499609142541885, 0.042253363877534866, 0.001039658673107624, 0.02279648743569851, 0.052308499813079834, -0.01147084403783083, 0.006139261182397604, 0.0188579224050045, -0.02938496321439743, 0.048424385488033295, 0.011779394932091236, 0.0015382184647023678, 0.01447468064725399, 0.034358080476522446, -0.04228966310620308, 0.046827178448438644, -0.001127005903981626, 0.005871547386050224, 0.02279648743569851, 0.041781459003686905, 0.0046033114194869995, -0.007278177887201309, 0.004714480601251125, 0.011715870350599289, -0.05956852808594704, 0.00535880820825696, 0.013449201360344887, -0.001956804422661662, -0.018113769590854645, 0.01607188582420349, 0.07227357476949692, 0.014256879687309265, -0.028985660523176193, 0.0145745063200593, -0.0412006601691246, 0.011280268430709839, -0.04566557705402374, -0.0013975553447380662, 0.013948328793048859, -0.04962228983640671, 0.017097365111112595, -0.03588268905878067, -0.07869870215654373, 0.0313270203769207, 0.006978701800107956, 0.017968568950891495, 0.019747275859117508, -0.0028677110094577074, 0.01076299138367176, -0.005063869524747133, -0.04127325862646103, -0.025391947478055954, -0.008666657842695713, 0.056664519011974335, 0.01505548320710659, -0.02749735489487648, 0.0388774499297142, 0.018839772790670395, -0.028295958414673805, -0.028749709948897362, -0.014819531701505184, -0.007877130061388016, -0.0020702423062175512, 0.0018354258500039577, 0.018023019656538963, -0.03337797895073891, -0.006053048186004162, -0.02207048423588276, -0.04882368817925453, 0.03606418892741203, 0.013812202960252762, -0.0021916208788752556, 0.02274203673005104, 0.03698984161019325, 0.000483529205666855, -0.04388687014579773, -0.05906032770872116, -0.06483204662799835, -0.021562281996011734, 0.023395439609885216, -0.022669436410069466, -0.01076299138367176, -0.014810456894338131, 0.02793295681476593, -0.021326331421732903, 0.002036210848018527, -0.07927950471639633, 0.02129003219306469, 0.02459334395825863, -0.00008096632518572733, -0.012904699891805649, 0.03706244379281998, 0.06621145457029343, 0.00239354046061635, -0.009356360882520676, 0.0597500279545784, 0.023413589224219322, -0.005077482201159, -0.02488374523818493, 0.01934797503054142, -0.017251640558242798, -0.008997896686196327, -0.031690020114183426, -0.0011167965130880475, -0.0005532935610972345, 0.0009568489622324705, 0.012605223804712296, -0.011897371150553226, 0.04954969137907028, 0.0362638384103775, 0.023395439609885216, 0.045121073722839355, 0.024085141718387604 ]
730,183
mmengine.logging.logger
setLevel
Set the logging level of this logger. If ``logging.Logger.selLevel`` is called, all ``logging.Logger`` instances managed by ``logging.Manager`` will clear the cache. Since ``MMLogger`` is not managed by ``logging.Manager`` anymore, ``MMLogger`` should override this method to clear caches of all ``MMLogger`` instance which is managed by :obj:`ManagerMixin`. level must be an int or a str.
def setLevel(self, level): """Set the logging level of this logger. If ``logging.Logger.selLevel`` is called, all ``logging.Logger`` instances managed by ``logging.Manager`` will clear the cache. Since ``MMLogger`` is not managed by ``logging.Manager`` anymore, ``MMLogger`` should override this method to clear caches of all ``MMLogger`` instance which is managed by :obj:`ManagerMixin`. level must be an int or a str. """ self.level = logging._checkLevel(level) _accquire_lock() # The same logic as `logging.Manager._clear_cache`. for logger in MMLogger._instance_dict.values(): logger._cache.clear() _release_lock()
(self, level)
[ -0.00826833676546812, 0.018607286736369133, -0.0045341732911765575, 0.09494704753160477, 0.018004927784204483, -0.014155467972159386, -0.049242958426475525, 0.07518210262060165, -0.0005429478478617966, 0.008353043347597122, -0.017713159322738647, -0.02921447716653347, 0.024960307404398918, 0.006715376395732164, 0.0020317896269261837, -0.005953014362603426, -0.044687606394290924, -0.03011801652610302, 0.04201463237404823, -0.0336192362010479, 0.015219010412693024, 0.006941261701285839, 0.08274925500154495, 0.022701455280184746, -0.022682631388306618, 0.00959070585668087, -0.0033341585658490658, 0.051238276064395905, 0.05368536338210106, -0.024997953325510025, -0.07318677753210068, -0.00379063468426466, -0.028367407619953156, 0.029045062139630318, -0.007854213938117027, -0.045553501695394516, -0.057299528270959854, -0.0022541452199220657, -0.09411880373954773, 0.03218863159418106, 0.014089584350585938, 0.06219370663166046, 0.015228422358632088, -0.007256559561938047, -0.020009657368063927, 0.005750658921897411, 0.04163815826177597, 0.03734634071588516, 0.03653692081570625, -0.01744021475315094, -0.005251829046756029, 0.08515869081020355, -0.016621381044387817, -0.04389701038599014, -0.0039859311655163765, -0.0013400164898484945, 0.04717234522104263, -0.047548819333314896, -0.0032447457779198885, -0.02324734441936016, 0.015040184371173382, 0.008385985158383846, -0.024019118398427963, -0.024320298805832863, -0.01929435506463051, -0.034146301448345184, -0.0005470655160024762, 0.07589740306138992, 0.05165239796042442, 0.016009608283638954, -0.03495572507381439, -0.06042427197098732, 0.033054523169994354, 0.018211988732218742, -0.002364734886214137, 0.02185438573360443, -0.06953497231006622, 0.05903131142258644, 0.015040184371173382, 0.02505442500114441, 0.028009755536913872, -0.015228422358632088, 0.048151180148124695, 0.0260520838201046, -0.004936531186103821, -0.030569788068532944, -0.03111567534506321, 0.007595387287437916, 0.047849997878074646, -0.0274262186139822, -0.05974661558866501, 0.07198206335306168, 0.005633010528981686, -0.03666868433356285, -0.03587808832526207, -0.007543622050434351, -0.0530453585088253, 0.04242875799536705, -0.012160149402916431, 0.03049449250102043, -0.0590689592063427, 0.014202527701854706, 0.04988296702504158, -0.013082513585686684, -0.029835660010576248, -0.09569999575614929, -0.017101386561989784, -0.012555448338389397, 0.022437922656536102, 0.03169921413064003, 0.026089731603860855, -0.03239569067955017, -0.02962859906256199, 0.010908368974924088, -0.017571980133652687, 0.027275629341602325, -0.0515018105506897, -0.05952073261141777, -0.012009559199213982, -0.013364870101213455, -0.012480153702199459, 0.031454503536224365, -0.027783870697021484, 0.04284287989139557, 0.007393031846731901, -0.013882523402571678, -0.0008923638961277902, 0.037816934287548065, 0.08764342963695526, -0.02844270132482052, 0.024094413965940475, 0.03390159457921982, 0.007863625884056091, -0.012677802704274654, 0.06554433703422546, -0.0415252149105072, -0.0690455511212349, -0.01611313968896866, 0.007355384528636932, 0.013948407024145126, -0.08282454311847687, -0.05146416276693344, 0.014371940866112709, -0.04310641065239906, 0.03664986044168472, 0.027557985857129097, -0.0008688342059031129, 0.05944543704390526, -0.028894472867250443, -0.05696069821715355, 0.004468290135264397, -0.0014859006041660905, 0.05522891506552696, -0.015821371227502823, -0.043181706219911575, 0.039906371384859085, -0.029346242547035217, 0.05229240655899048, 0.025600314140319824, -0.012743686325848103, -0.008131864480674267, -0.0016364906914532185, 0.04480054974555969, -0.028743881732225418, 0.014513119123876095, -0.0072706774808466434, -0.00899775791913271, -0.047849997878074646, -0.02514854446053505, 0.026372088119387627, 0.006913025863468647, -0.001040601055137813, 0.033845122903585434, 0.007520092185586691, 0.006964791566133499, 0.008065981790423393, -0.001594137167558074, 0.05376065894961357, -0.04254169762134552, 0.02206144668161869, 0.02593914233148098, -0.013600166887044907, -0.01262133102864027, 0.008155394345521927, 0.0004850059631280601, -0.03311099484562874, 0.023774409666657448, -0.01894611492753029, -0.09140817821025848, 0.025581490248441696, 0.055115971714258194, -0.04035814106464386, 0.02157202921807766, -0.10450951755046844, 0.031040381640195847, 0.09735649079084396, -0.05989720672369003, -0.10330479592084885, 0.03768516704440117, 0.04589232802391052, -0.0023176756221801043, 0.01365663856267929, 0.002814152278006077, 0.012207209132611752, -0.009675413370132446, -0.02236262708902359, 0.03836282342672348, 0.0542500764131546, -0.027557985857129097, 0.0009105994249694049, 0.003261216450482607, 0.006437726318836212, 0.026880329474806786, 0.0451393760740757, 0.032640401273965836, -0.018503757193684578, -0.019059058278799057, 0.03640515357255936, 0.018108457326889038, 0.03213215991854668, -0.008969522081315517, 0.044386427849531174, -0.06799142062664032, 0.016753146424889565, -0.023416757583618164, 0.005487126298248768, 0.03049449250102043, -0.02296498790383339, 0.033732179552316666, 0.005454184487462044, -0.0116707319393754, 0.0173460952937603, -0.006809495389461517, 0.023924998939037323, -0.08591164648532867, -0.04581703245639801, 0.017684923484921455, 0.04732293263077736, -0.019313178956508636, 0.008536575362086296, 0.00497417850419879, 0.0011929558822885156, 0.04480054974555969, 0.08139394223690033, -0.008376573212444782, 0.004378877114504576, 0.00442358385771513, 0.02336028777062893, 0.04525231942534447, 0.04860294982790947, -0.03501219302415848, -0.030438020825386047, -0.023322639986872673, 0.05157710239291191, 0.020310837775468826, -0.043595828115940094, -0.002597678918391466, 0.04916766285896301, -0.05756305903196335, -0.026579149067401886, -0.06174193322658539, -0.049958258867263794, -0.008809519931674004, -0.039304010570049286, 0.03670633211731911, -0.003440042259171605, 0.08094216883182526, -0.04295582324266434, 0.007444797083735466, 0.044762901961803436, 0.01792963221669197, 0.011049547232687473, 0.020197894424200058, 0.04811353236436844, -0.02057437039911747, -0.009411879815161228, -0.020423781126737595, -0.030268607661128044, -0.05315829813480377, 0.0818457081913948, 0.07341266423463821, -0.007698918227106333, 0.04958178475499153, 0.0204614270478487, -0.037026338279247284, 0.024885011836886406, -0.0010558953508734703, -0.0016329612117260695, -0.023774409666657448, -0.008254218846559525, -0.012395446188747883, 0.040094610303640366, -0.027557985857129097, 0.018842583522200584, -0.0017176681431010365, -0.0748809203505516, -0.03237686678767204, 0.031454503536224365, 0.029082709923386574, 0.03201921656727791, -0.009190700948238373, -0.04419818893074989, 0.018475521355867386, 0.0073083252646028996, 0.034334540367126465, -0.039492249488830566, -0.0061130160465836525, 0.005934190470725298, 0.026654444634914398, 0.0051388866268098354, 0.0040094610303640366, 0.09509763866662979, -0.017515508458018303, -0.010588365606963634, 0.022193213924765587, 0.035633377730846405, -0.022306155413389206, 0.03862635791301727, -0.03360041230916977, 0.04389701038599014, -0.04254169762134552, 0.001523548155091703, -0.013769580982625484, 0.04303111508488655, 0.007105969823896885, -0.04190169274806976, 0.020348485559225082, 0.08455633372068405, -0.011058959178626537, 0.0019176705973222852, -0.07062675058841705, -0.02224968560039997, 0.022324979305267334, -0.015350776724517345, -0.034635718911886215, -0.038419295102357864, -0.004185933619737625, -0.05624539777636528, 0.009454233571887016, 0.01957671158015728, -0.017148446291685104, 0.002602384891360998, -0.02544972486793995, 0.005614186637103558, 0.0029223887249827385, 0.0578642413020134, 0.0690455511212349, -0.027990931645035744, 0.02575090527534485, 0.04163815826177597, -0.010691896080970764, -0.0363675057888031, -0.042579345405101776, -0.04370877146720886, -0.014513119123876095, -0.07329972088336945, 0.005934190470725298, -0.04717234522104263, -0.01663079299032688, -0.00933658517897129, -0.01132249180227518, 0.04649468883872032, -0.008084804750978947, -0.028555644676089287, 0.015219010412693024, -0.006160075776278973, -0.02375558577477932, -0.020329661667346954, 0.06750200688838959, -0.02593914233148098, 0.014513119123876095, -0.055906567722558975, -0.008174218237400055, 0.11791203916072845, -0.038814593106508255, 0.049657080322504044, -0.013204867951571941, 0.05767600238323212, 0.010362479835748672, 0.005910660605877638, 0.07559622079133987, -0.004291817545890808, -0.007873037829995155, -0.010974252596497536, 0.005858895368874073, 0.007120087277144194, 0.06550668925046921, -0.001834140159189701, 0.016734322533011436, 0.03299805149435997, 0.04295582324266434, 0.016433142125606537, -0.008188336156308651, -0.046946458518505096, -0.033732179552316666, 0.005350654013454914, -0.044386427849531174, 0.017120210453867912, -0.02048025093972683, -0.040207553654909134, -0.019059058278799057, -0.030663905665278435, 0.012546036392450333, -0.03552043437957764, -0.024979129433631897, 0.010221301577985287, -0.020216718316078186, -0.011793086305260658, 0.021289672702550888, -0.06283371150493622, 0.0045224083587527275, -0.017619039863348007, 0.004691822454333305, -0.020141424611210823, 0.03798634931445122, -0.024903835728764534, 0.12084854394197464, -0.07296089828014374, 0.022588511928915977, 0.03979342803359032, -0.01648961380124092, 0.03907812759280205, 0.0031812156084924936, 0.03439101204276085, 0.03956754505634308, -0.030193312093615532, -0.07420326769351959, 0.009618941694498062, -0.01878611370921135, 0.0216661486774683, -0.01023071352392435, -0.008555399253964424, 0.0045365262776613235, 0.005995367653667927, 0.006705964915454388, 0.019614359363913536, -0.03041919693350792, 0.02891329675912857, -0.017939044162631035, 0.0022376745473593473, 0.024772068485617638, -0.05315829813480377, 0.0333557054400444, -0.024226179346442223, 0.04769941046833992, -0.027012096717953682, 0.0005988308694213629, 0.028009755536913872, -0.0019141411175951362, -0.005035356152802706, -0.031849801540374756, 0.050334736704826355, -0.015802547335624695, -0.018870819360017776, 0.044762901961803436, -0.031548622995615005, -0.05225475877523422, -0.001444723573513329, 0.05138886719942093, 0.023228520527482033, 0.018259048461914062, 0.03495572507381439, -0.026485031470656395, 0.052631232887506485, -0.03147332742810249, 0.05466420203447342, 0.08877285569906235, 0.007425973657518625, -0.03427806869149208, -0.043369945138692856, 0.04988296702504158, -0.003665927331894636, -0.06652317196130753, 0.0030918025877326727, -0.0939682126045227, -0.03627338632941246, -0.0024012059438973665, -0.002077672630548477, -0.03256510570645332, -0.0009611882851459086, 0.0039812251925468445, 0.009200112894177437, 0.05383595451712608, 0.02774622291326523, -0.027877990156412125, -0.023586172610521317, 0.03964284062385559, -0.010701308026909828, -0.0017188446363434196, -0.020348485559225082, -0.06426431983709335, -0.033845122903585434, 0.019313178956508636, -0.04867824539542198, 0.019266119226813316, -0.005256535019725561, -0.02883800119161606, -0.03198156878352165, 0.010861310176551342, -0.007793036755174398, 0.004661233630031347, -0.023435581475496292, -0.016169609501957893, 0.020593194290995598, 0.03610397130250931, 0.031943920999765396, 0.055304206907749176, 0.01198132336139679, -0.004734175745397806, -0.008814225904643536, -0.03060743398964405, 0.03478631004691124, -0.08297513425350189, 0.019153175875544548, -0.03307334706187248, 0.02962859906256199, -0.06573256850242615, 0.024188531562685966, -0.02533678151667118, -0.03753457963466644, 0.017779041081666946, 0.014240174554288387, 0.03051331639289856, -0.025205016136169434, -0.027557985857129097, 0.0023941469844430685, 0.029139181599020958, 0.03160509467124939, 0.0230402834713459, 0.04897942394018173, 0.02565678581595421, -0.013214279897511005, -0.05571833252906799, -0.00136707560159266, 0.008235394954681396, 0.04182639718055725, -0.02206144668161869, -0.019953185692429543, -0.02672974020242691, 0.010851898230612278, -0.03728986904025078, 0.00887069758027792, 0.03728986904025078, -0.03139803186058998, -0.021026140078902245, -0.019153175875544548, -0.022833220660686493, -0.025167368352413177, -0.022588511928915977, 0.035727497190237045, 0.02505442500114441, -0.015614309348165989, -0.0035318080335855484, 0.008428338915109634, 0.018729642033576965, 0.019934361800551414, -0.045666441321372986, -0.0451393760740757, 0.061365459114313126, -0.009449527598917484, -0.00004172845365246758, 0.007167147006839514, -0.014691945165395737, 0.07303619384765625, -0.02972271852195263, -0.045854680240154266, 0.004011814016848803, 0.03171803802251816, 0.003672986291348934, 0.024790892377495766, 0.00604242691770196, -0.020819079130887985, -0.039002832025289536, -0.02942153811454773, -0.03346864506602287, 0.0684431940317154, 0.05108768492937088, -0.022908516228199005, 0.03429689258337021, 0.05658422410488129, -0.006691846996545792, 0.04005696251988411, -0.024809716269373894, -0.037515755742788315, 0.005821248050779104, -0.046155862510204315, 0.019539063796401024, 0.0433322973549366, -0.017477862536907196, 0.0817704126238823, -0.02275792695581913, 0.007407149765640497, 0.05568068474531174, -0.07616093754768372, -0.027896814048290253, -0.01881434954702854, 0.028254464268684387, -0.0800386294722557, 0.03367570787668228, 0.014513119123876095, -0.013675462454557419, 0.027294453233480453, -0.08229748159646988, 0.01217897329479456, -0.03465454280376434, 0.008343631401658058, 0.030758025124669075, 0.0018870820058509707, 0.02902623824775219, 0.013995465822517872, -0.08139394223690033, -0.010842486284673214, -0.02087555080652237, 0.0038659297861158848, -0.00809421669691801, -0.014833123423159122, 0.05504067614674568, 0.009002463892102242, 0.01262133102864027, 0.019096704199910164, -0.04939354956150055, 0.0222685094922781, -0.034334540367126465, -0.03525690361857414, -0.00012919276196043938, 0.0027741517405956984, -0.0005203005275689065, -0.0515018105506897, 0.02633444033563137, -0.04005696251988411, -0.036122795194387436, 0.010287185199558735, -0.007689506281167269, -0.04830177128314972, 0.027275629341602325, -0.04833941534161568, -0.03855106234550476, -0.02294616401195526, 0.0106824841350317, -0.03934165835380554, 0.06083839386701584, -0.045553501695394516, 0.04544055834412575, -0.027407394722104073, -0.029590951278805733, -0.011218961328268051, 0.03416512534022331, 0.02593914233148098, 0.004661233630031347, -0.019652005285024643, -0.01997200958430767, -0.0013164867414161563, 0.007985980249941349, 0.01685667783021927, -0.03922871872782707, 0.018663758412003517, 0.010315421037375927, 0.028348583728075027, 0.0009700119262561202, -0.012960159219801426, -0.06377489864826202, 0.04540291056036949, -0.02533678151667118, 0.07311148941516876, 0.04822647571563721, -0.03853223845362663, 0.011284844018518925, 0.0007223617867566645, 0.03233921900391579, 0.021609677001833916, -0.008513045497238636, -0.004816529806703329, 0.0021117907017469406, -0.004680057521909475, 0.032150983810424805, -0.0023106166627258062, 0.06102663278579712, -0.004070638213306665, -0.009073052555322647, 0.046946458518505096, -0.08131864666938782, 0.07525739818811417, -0.04231581464409828, 0.051050037145614624, 0.02484736405313015, 0.15525837242603302, -0.03849459066987038, -0.01053189393132925, 0.011595436371862888, 0.0025788552593439817, 0.011256609112024307, -0.0050400616601109505, -0.03435336425900459, -0.02384970523416996, -0.04175110161304474, 0.0199908334761858, -0.05157710239291191, -0.044273484498262405, -0.004931825213134289, -0.0651678591966629, 0.03749693185091019, -0.019539063796401024, -0.0336192362010479, -0.0071953823789954185, 0.0006770671461708844, -0.07171852886676788, -0.023699114099144936, 0.03907812759280205, 0.05278182402253151, 0.020630842074751854, 0.004889471922069788, 0.038776945322752, 0.05496538057923317, -0.021195555105805397, 0.025317957624793053, 0.004352994728833437, 0.009873062372207642, -0.0016211963957175612, -0.04852765426039696, 0.0030094487592577934, -0.029383890330791473, -0.0021647324319928885, -0.005449478514492512, -0.02563796192407608, 0.04156286269426346, 0.0015529602533206344, 0.017619039863348007, 0.00606595678254962, -0.004851824138313532, -0.022381450980901718, -0.0393793061375618, -0.010390715673565865, -0.018428461626172066, -0.008767166174948215, 0.022814398631453514, -0.01604725606739521, -0.05553009361028671, 0.009115406312048435, 0.04833941534161568, -0.024602655321359634, 0.006174193695187569, -0.04540291056036949, -0.06279606372117996, 0.024809716269373894, -0.01277192123234272, 0.004447113256901503, 0.009454233571887016, 0.066974937915802, -0.04961943253874779, -0.015030772425234318, 0.03704516217112541, -0.04122403636574745, -0.011068371124565601, 0.0484900064766407, 0.009901298210024834, -0.03222627937793732, 0.009261290542781353, -0.03128508850932121, 0.046155862510204315, 0.0409228540956974, 0.007948332466185093, -0.027369746938347816, 0.004696528427302837, -0.026579149067401886, 0.03188744932413101, 0.020706135779619217, 0.02217439003288746, -0.041788749396800995 ]
730,186
mmengine.utils.manager
ManagerMeta
The metaclass for global accessible class. The subclasses inheriting from ``ManagerMeta`` will manage their own ``_instance_dict`` and root instances. The constructors of subclasses must contain the ``name`` argument. Examples: >>> class SubClass1(metaclass=ManagerMeta): >>> def __init__(self, *args, **kwargs): >>> pass AssertionError: <class '__main__.SubClass1'>.__init__ must have the name argument. >>> class SubClass2(metaclass=ManagerMeta): >>> def __init__(self, name): >>> pass >>> # valid format.
class ManagerMeta(type): """The metaclass for global accessible class. The subclasses inheriting from ``ManagerMeta`` will manage their own ``_instance_dict`` and root instances. The constructors of subclasses must contain the ``name`` argument. Examples: >>> class SubClass1(metaclass=ManagerMeta): >>> def __init__(self, *args, **kwargs): >>> pass AssertionError: <class '__main__.SubClass1'>.__init__ must have the name argument. >>> class SubClass2(metaclass=ManagerMeta): >>> def __init__(self, name): >>> pass >>> # valid format. """ def __init__(cls, *args): cls._instance_dict = OrderedDict() params = inspect.getfullargspec(cls) params_names = params[0] if params[0] else [] assert 'name' in params_names, f'{cls} must have the `name` argument' super().__init__(*args)
(*args)
[ 0.05970004200935364, 0.026585789397358894, -0.007560825441032648, -0.014738202095031738, 0.011434642598032951, 0.03268164396286011, -0.005338788498193026, 0.001489551505073905, -0.008362135849893093, 0.010274464264512062, 0.008214655332267284, 0.0286701787263155, -0.009030712768435478, -0.013902480714023113, -0.004975003655999899, -0.026900414377450943, 0.03175743296742439, -0.0003186189860571176, -0.01435475330799818, -0.043378885835409164, 0.026585789397358894, 0.044204775243997574, 0.00356656638905406, -0.018926644697785378, -0.0023424795363098383, 0.008249067701399326, 0.007619817741215229, 0.033841822296381, 0.031010201200842857, -0.06709372252225876, -0.049081459641456604, -0.012231037020683289, 0.011110185645520687, 0.06559925526380539, 0.01350919995456934, -0.07134115695953369, 0.01829739473760128, 0.10335422307252884, -0.07495934516191483, 0.033822160214185715, 0.046407148241996765, 0.0007945503457449377, 0.015337956137955189, -0.024068791419267654, 0.04935675486922264, 0.02699873596429825, 0.04361485317349434, -0.001635802793316543, -0.048570193350315094, -0.029319092631340027, 0.01981152594089508, -0.05517731234431267, 0.00031677549122832716, -0.02300693280994892, -0.0018852903740480542, 0.08502733707427979, 0.038344889879226685, 0.00470216479152441, -0.006307242903858423, 0.026546461507678032, -0.015662413090467453, 0.027627984061837196, 0.0506545826792717, -0.04097987338900566, -0.049120787531137466, -0.09187041968107224, -0.023242902010679245, -0.032150715589523315, -0.013656679540872574, 0.030656248331069946, -0.03411712124943733, -0.03085288777947426, 0.032465338706970215, 0.018061425536870956, 0.0318557545542717, -0.002472753869369626, -0.03596553951501846, -0.03472670540213585, 0.028276897966861725, 0.03877750039100647, -0.007619817741215229, -0.06296427547931671, -0.024953674525022507, 0.018995467573404312, 0.014128617011010647, -0.004107327666133642, -0.0442834310233593, -0.03810892254114151, 0.04444074258208275, 0.0203129593282938, -0.05726170167326927, 0.02684142254292965, 0.025779563933610916, 0.03757799044251442, -0.056396484375, -0.034825026988983154, -0.012693141587078571, -0.025936877354979515, -0.045895881950855255, 0.00822940282523632, 0.0036452224012464285, 0.020371951162815094, 0.0218270905315876, -0.0033822159748524427, 0.011021697893738747, -0.05104786157608032, -0.022692309692502022, -0.03810892254114151, 0.0045055244117975235, 0.018562858924269676, 0.0036255584564059973, -0.02365584671497345, -0.0439688079059124, 0.04880616068840027, 0.0031413312535732985, -0.028257234022021294, -0.0021126559004187584, -0.0006378524703904986, 0.008573523722589016, -0.010766064748167992, -0.01065791305154562, 0.054115455597639084, -0.01609502173960209, 0.045069992542266846, 0.027962272986769676, -0.014551393687725067, 0.03525763377547264, -0.02701839990913868, 0.008253983221948147, -0.016016365960240364, 0.06426209956407547, 0.0038541529793292284, -0.05824490264058113, -0.003401879919692874, 0.0506545826792717, 0.0335271991789341, 0.05258166044950485, -0.005687825381755829, -0.07413345575332642, 0.010087655857205391, -0.011120017617940903, 0.021709106862545013, -0.013253566808998585, -0.021099520847201347, -0.0463678203523159, -0.026054861024022102, -0.0036206424701958895, 0.028473539277911186, 0.00356656638905406, -0.04009499028325081, -0.013902480714023113, -0.020686576142907143, 0.03993767872452736, 0.04499133676290512, -0.05859885737299919, -0.009374833665788174, -0.01343054324388504, 0.00948298629373312, -0.03960338979959488, 0.004011465236544609, -0.02229902893304825, -0.00973370298743248, -0.010854553431272507, -0.10178110003471375, -0.010353120043873787, -0.012299860827624798, -0.020067159086465836, -0.09666845202445984, -0.0133420554921031, 0.017343688756227493, -0.05824490264058113, -0.02990901470184326, 0.03335022181272507, -0.011198674328625202, -0.007614901755005121, 0.03468737751245499, -0.022279363125562668, -0.0019479695474728942, 0.07775163650512695, 0.01661611907184124, 0.05785162374377251, -0.012437509372830391, -0.0624530091881752, -0.03262265399098396, 0.01494467444717884, 0.01877916418015957, 0.026231836527585983, 0.0254846028983593, 0.04145180806517601, 0.022731637582182884, -0.007954106666147709, 0.016842255368828773, -0.005363368429243565, -0.01492501050233841, 0.05407612770795822, 0.053761500865221024, -0.024540729820728302, 0.011896748095750809, -0.023223238065838814, 0.05423343926668167, -0.031462471932172775, 0.07665044814348221, -0.016380149871110916, -0.022259699180722237, 0.05218837782740593, 0.00855877622961998, 0.09218505024909973, -0.01049076858907938, -0.058992136269807816, -0.034333422780036926, -0.006985652260482311, -0.005250300280749798, 0.0034534980077296495, 0.04585655406117439, 0.004220395814627409, -0.0624530091881752, 0.0473116934299469, -0.0054567726328969, 0.04357552528381348, 0.005235552322119474, 0.04687908664345741, 0.04778363183140755, 0.013912312686443329, 0.06493067741394043, -0.022770965471863747, -0.033841822296381, 0.01576073281466961, -0.016173677518963814, -0.02414744906127453, -0.02147313766181469, -0.02129616215825081, -0.036653783172369, -0.01132649090141058, 0.0348840169608593, 0.010235135443508625, -0.012231037020683289, 0.046249836683273315, -0.04416544735431671, -0.06095854192972183, 0.020175311714410782, 0.0281982421875, 0.0203129593282938, 0.012968438677489758, 0.00612535048276186, -0.048255570232868195, -0.019428078085184097, -0.016026197001338005, 0.03305526077747345, 0.02318391017615795, 0.006307242903858423, 0.008529280312359333, 0.012516165152192116, -0.018169578164815903, 0.005736985243856907, -0.0015473145758733153, -0.022082723677158356, -0.09226370602846146, -0.010598920285701752, -0.0036427644081413746, -0.024304760619997978, -0.020194975659251213, -0.012722637504339218, 0.02216137945652008, 0.06162711977958679, 0.007423177361488342, 0.010638249106705189, 0.03126583248376846, -0.025445275008678436, -0.10901746898889542, -0.0067644319497048855, 0.1621890515089035, 0.025386283174157143, 0.03435308858752251, 0.03291761130094528, -0.025622252374887466, -0.05682909116148949, 0.020922545343637466, -0.026900414377450943, -0.06791961193084717, -0.012997934594750404, 0.02314458228647709, -0.021217506378889084, 0.05269964411854744, -0.019703373312950134, -0.01443341001868248, -0.009679626673460007, -0.00532895652577281, 0.02518964372575283, -0.009114284999668598, 0.019850853830575943, -0.015859052538871765, -0.04050793498754501, -0.026389149948954582, -0.002478898735716939, -0.007703389972448349, -0.044912680983543396, -0.051598455756902695, 0.077083058655262, -0.027804961428046227, -0.039544396102428436, 0.02145347371697426, 0.015603420324623585, -0.020863553509116173, 0.004227770026773214, -0.004328547976911068, -0.0218270905315876, 0.0157705657184124, -0.008539112284779549, 0.008578440174460411, 0.02754932828247547, 0.03203273192048073, 0.07075123488903046, -0.004945507738739252, 0.034844689071178436, -0.01580989360809326, 0.049750037491321564, 0.008765248581767082, -0.045384619385004044, 0.019673878327012062, 0.08872417360544205, -0.01150346640497446, 0.04326090216636658, -0.000278061896096915, -0.040547262877225876, -0.016881583258509636, 0.015180643647909164, -0.027785297483205795, 0.022436676546931267, 0.01527896337211132, -0.010510432533919811, -0.0734255462884903, -0.026271166279911995, -0.011778763495385647, -0.017156880348920822, -0.02113884873688221, 0.007924610748887062, -0.0021900830324739218, -0.029279764741659164, 0.03220970556139946, -0.06957139074802399, 0.07712239027023315, -0.001367880147881806, -0.04786228761076927, -0.03175743296742439, -0.0812518373131752, 0.008204823359847069, 0.017068391665816307, -0.019555892795324326, 0.035139650106430054, -0.04444074258208275, 0.000839408952742815, -0.03319291025400162, -0.018749667331576347, -0.04133382439613342, 0.07055459916591644, -0.060171980410814285, 0.0025759900454431772, -0.03795160725712776, -0.03688975051045418, -0.023911479860544205, 0.024206440895795822, -0.01759932190179825, -0.04212038591504097, 0.0020290836691856384, -0.03274063766002655, -0.04829489812254906, 0.03521830588579178, 0.0025587838608771563, 0.0764538124203682, -0.06870617717504501, -0.003979511093348265, -0.033625517040491104, 0.018690675497055054, -0.010766064748167992, 0.015583756379783154, 0.05553126707673073, 0.03228836506605148, 0.009114284999668598, -0.039544396102428436, -0.027568992227315903, 0.021571459248661995, 0.007546077482402325, 0.008838988840579987, -0.035690244287252426, 0.016399813815951347, -0.03612285107374191, 0.02267264574766159, 0.06343621015548706, 0.011621451005339622, 0.05199173837900162, 0.025071658194065094, -0.021945076063275337, -0.04294627532362938, -0.028493203222751617, 0.008421127684414387, -0.009502650238573551, -0.03177709877490997, 0.019900014623999596, -0.10823091119527817, 0.017854953184723854, 0.07987535744905472, -0.1207372397184372, 0.031324826180934906, -0.04463738575577736, 0.020273631438612938, -0.011473970487713814, 0.005333872511982918, -0.039878685027360916, -0.004576806910336018, -0.0010028663091361523, 0.010589088313281536, -0.032976604998111725, 0.010441608726978302, -0.026723438873887062, 0.014659546315670013, -0.027647648006677628, 0.05560992285609245, -0.015868885442614555, 0.030951207503676414, -0.027785297483205795, 0.040861885994672775, 0.05667177960276604, 0.012516165152192116, 0.009915594942867756, 0.04880616068840027, 0.056632451713085175, -0.08050460368394852, -0.018553027883172035, -0.007944274693727493, -0.011808259412646294, -0.042356353253126144, 0.03336988762021065, -0.04078323021531105, -0.038344889879226685, -0.0006157304160296917, -0.0325833223760128, -0.005933626089245081, -0.028965139761567116, -0.04215971380472183, 0.04664311558008194, -0.06902080029249191, -0.020883217453956604, -0.008686591871082783, 0.09344354271888733, 0.05486268922686577, 0.026939742267131805, 0.004018839448690414, 0.021256834268569946, 0.07240301370620728, -0.023459207266569138, -0.03191474825143814, 0.03594587743282318, -0.0011171635705977678, -0.023282229900360107, 0.0062433346174657345, -0.08911745250225067, -0.0077722142450511456, -0.014708706177771091, -0.017333855852484703, 0.020194975659251213, -0.007098720408976078, -0.014079457148909569, -0.009836939163506031, -0.040350623428821564, -0.022397348657250404, 0.016724271699786186, 0.08494868129491806, 0.006307242903858423, -0.03285862132906914, -0.03309458866715431, 0.02821790613234043, 0.017392847687005997, 0.009930343367159367, -0.010775896720588207, -0.09721904247999191, 0.01225070096552372, 0.022023731842637062, -0.03893481194972992, -0.019555892795324326, -0.028984803706407547, 0.05423343926668167, 0.04133382439613342, 0.04750833660364151, 0.0061351824551820755, -0.02047027088701725, -0.01580006070435047, 0.0392691008746624, -0.08903879672288895, -0.003018431132659316, 0.001429330324754119, -0.06489135324954987, 0.027116719633340836, 0.020106486976146698, 0.07303226739168167, 0.03828589618206024, 0.01580006070435047, 0.007954106666147709, 0.06662178784608841, -0.02196474000811577, -0.016006533056497574, 0.010097487829625607, 0.0017771380953490734, 0.02670377492904663, -0.021040529012680054, -0.0025538678746670485, -0.04503066465258598, -0.039544396102428436, -0.026094188913702965, 0.012486669234931469, 0.02904379554092884, -0.024540729820728302, -0.02835555374622345, -0.0002522528520785272, 0.03692907840013504, 0.01082505751401186, -0.013548527844250202, -0.03877750039100647, -0.01660628616809845, 0.012378516606986523, 0.01793360896408558, 0.006946324370801449, 0.02062758430838585, 0.021040529012680054, -0.005619001109153032, -0.011179010383784771, -0.004370334092527628, -0.0024223646614700556, 0.02214171551167965, 0.029319092631340027, 0.01165094692260027, 0.03612285107374191, -0.039662379771471024, -0.07098720222711563, 0.04263165220618248, 0.011454306542873383, 0.0004912939039058983, 0.0029151947237551212, 0.019526397809386253, 0.08274630457162857, 0.04282829165458679, 0.043693508952856064, 0.02786395326256752, 0.040547262877225876, -0.013125750236213207, 0.0026300661265850067, -0.034982338547706604, 0.038167912513017654, 0.00747233722358942, -0.04695774242281914, 0.005658328998833895, -0.009930343367159367, -0.04078323021531105, -0.0230265986174345, 0.00461613480001688, -0.031993404030799866, -0.014236769638955593, 0.05124450474977493, -0.04259232431650162, 0.020273631438612938, 0.0351986438035965, 0.04778363183140755, 0.0594247467815876, -0.019536228850483894, 0.030164645984768867, -0.016478469595313072, -0.012368684634566307, 0.03340921550989151, 0.06709372252225876, -0.06123383715748787, 0.03804992884397507, -0.03468737751245499, -0.016852088272571564, -0.013361719436943531, -0.004345754161477089, 0.001553459675051272, 0.058834824711084366, 0.030144982039928436, 0.06064391881227493, -0.0009721412789076567, -0.07680775970220566, 0.052267033606767654, -0.010903713293373585, -0.08644314855337143, 0.011031529866158962, -0.02467837743461132, 0.004141739569604397, 0.0026521882973611355, -0.019841022789478302, -0.015908213332295418, -0.011955739930272102, -0.03771563991904259, 0.03574923425912857, 0.04786228761076927, -0.015573924407362938, -0.039210107177495956, -0.00897663738578558, -0.004515356384217739, -0.04955339431762695, 0.017215872183442116, 0.01284062210470438, -0.031816426664590836, 0.029574725776910782, -0.010510432533919811, -0.01662595011293888, 0.007231452967971563, -0.03781396150588989, 0.017215872183442116, 0.024894682690501213, -0.02833588980138302, 0.006439974997192621, -0.02719537541270256, -0.026782430708408356, 0.008691508322954178, 0.04263165220618248, -0.030321959406137466, 0.019211772829294205, -0.06410478800535202, -0.0010870529804378748, 0.07503800094127655, -0.004707080777734518, -0.03706672787666321, 0.014669378288090229, 0.05824490264058113, 0.011759099550545216, -0.02536661922931671, 0.01898563653230667, 0.008190074935555458, -0.021276498213410378, 0.021925412118434906, -0.06917811185121536, 0.017029063776135445, 0.005850053858011961, -0.002077014883980155, -0.06937475502490997, 0.0469970703125, -0.026605453342199326, -0.048609521239995956, -0.008253983221948147, -0.010510432533919811, 0.01760915294289589, -0.03976070135831833, -0.040173646062612534, 0.0023572274949401617, 0.02985002100467682, -0.08675777167081833, -0.014649714343249798, 0.053092923015356064, 0.007934442721307278, 0.04833422601222992, -0.014118785038590431, 0.04833422601222992, 0.062020402401685715, -0.01880865916609764, 0.03706672787666321, 0.02231869287788868, -0.04050793498754501, -0.05769431218504906, 0.0010950415162369609, 0.016321158036589622, -0.028729170560836792, -0.03191474825143814, -0.006498967297375202, -0.008362135849893093, 0.0219844039529562, 0.023400215432047844, -0.00180417625233531, -0.023911479860544205, -0.040547262877225876, 0.04046860709786415, 0.019496900960803032, 0.0022576781921088696, 0.04829489812254906, 0.04648580402135849, -0.07303226739168167, -0.0301843099296093, 0.018592355772852898, 0.026408813893795013, -0.0016628408338874578, 0.029791029170155525, 0.03722403943538666, -0.02282995730638504, 0.029791029170155525, -0.015003667213022709, 0.034156449139118195, -0.010402279905974865, 0.05289628356695175, -0.010146647691726685, 0.025779563933610916, 0.03203273192048073, -0.07515598088502884, 0.03171810507774353, 0.021689442917704582, 0.06335755437612534, 0.019221605733036995, 0.0013138040667399764, 0.0007435467559844255, -0.01794344186782837, -0.014030296355485916, 0.030911879613995552, -0.021748434752225876, 0.02465871348977089, -0.04192374646663666, -0.01677343063056469, -0.006533379200845957, -0.010343288071453571, 0.060525935143232346, -0.016527630388736725, 0.037833623588085175, 0.044401414692401886, -0.009271597489714622, 0.002703806385397911, 0.03390081599354744, 0.06375083327293396, -0.03704706206917763, 0.0207848958671093, -0.019585389643907547, 0.07523463666439056, 0.0500253327190876, -0.004874225240200758, -0.019762367010116577, -0.006902080029249191, 0.016999566927552223, 0.05317157879471779, 0.004544852767139673, 0.01124783419072628, -0.002580906031653285, 0.003507574088871479, -0.06473404169082642, 0.020529264584183693, 0.009846771135926247, 0.01713721640408039, -0.039662379771471024, -0.09706173092126846, 0.02400979958474636, 0.04695774242281914, -0.02566158026456833, 0.018543194979429245, -0.04290694743394852, -0.049435410648584366, 0.04381149262189865, -0.020253967493772507, 0.03140348196029663, -0.028650514781475067, 0.07590321451425552, 0.015082322992384434, -0.018513699993491173, 0.014561225660145283, 0.03537561744451523, 0.012860286049544811, 0.013322391547262669, -0.001998358638957143, -0.021591123193502426, -0.012870118021965027, 0.048098254948854446, -0.013912312686443329, -0.009537062607705593, 0.02699873596429825, -0.05981802940368652, 0.008873400278389454, -0.04550260305404663, -0.012535829097032547, -0.07527396827936172, 0.009827107191085815, -0.059188779443502426, 0.040547262877225876, -0.009394497610628605, 0.009419078007340431, -0.0250126663595438 ]
730,187
mmengine.utils.manager
__init__
null
def __init__(cls, *args): cls._instance_dict = OrderedDict() params = inspect.getfullargspec(cls) params_names = params[0] if params[0] else [] assert 'name' in params_names, f'{cls} must have the `name` argument' super().__init__(*args)
(cls, *args)
[ -0.00932371150702238, -0.023623168468475342, 0.005110602825880051, -0.018954338505864143, -0.04627908766269684, 0.0061755054630339146, -0.012304509058594704, 0.022097893059253693, 0.03150995820760727, 0.01689893566071987, -0.014332008548080921, 0.04873441159725189, -0.028812825679779053, -0.010556022636592388, -0.0006516134599223733, -0.008426216430962086, 0.06052739545702934, 0.05334743857383728, -0.04806477949023247, -0.05959734693169594, 0.047357942909002304, 0.04330294206738472, -0.018656723201274872, 0.028589613735675812, 0.04017798602581024, 0.02834780141711235, 0.021019039675593376, 0.02010759525001049, -0.01992158591747284, -0.04508863016963005, -0.009230706840753555, 0.04676271229982376, 0.016415312886238098, 0.08519221097230911, 0.02189328335225582, -0.04665110632777214, -0.0008161153527908027, 0.0232139490544796, -0.06692611426115036, 0.029538260772824287, 0.05118973180651665, -0.0002727650571614504, -0.022246699780225754, -0.046985924243927, 0.02509264089167118, 0.021372457966208458, 0.029091838747262955, 0.007152053993195295, -0.06376395374536514, -0.016126997768878937, -0.004722308833152056, -0.03816908970475197, 0.024646218866109848, -0.00029993982752785087, 0.01663852296769619, 0.07049749046564102, 0.03472791612148285, 0.04289372265338898, -0.017875485122203827, 0.03835509717464447, -0.02300933748483658, 0.017968488857150078, 0.07153914123773575, -0.015847984701395035, -0.03537895157933235, -0.07280400395393372, -0.015234153717756271, -0.03524874523282051, -0.009174903854727745, 0.031082138419151306, 0.03444890305399895, -0.03537895157933235, -0.00356672634370625, 0.01984718255698681, 0.012267306447029114, 0.030896129086613655, -0.035806771367788315, 0.002564601833000779, -0.004440969787538052, 0.008123951964080334, 0.0071334526874125, -0.03630899637937546, -0.04196367412805557, 0.03136115148663521, -0.006026698276400566, -0.012918339110910892, -0.07217156887054443, -0.06573565304279327, 0.011811584234237671, 0.011430265381932259, -0.06975345313549042, 0.03883872181177139, -0.015513167716562748, -0.004673480987548828, -0.003599278163164854, -0.04185207188129425, 0.017670873552560806, -0.030561311170458794, -0.01659202016890049, 0.024106793105602264, -0.006556824315339327, -0.02526004984974861, 0.017670873552560806, -0.0032877125777304173, -0.011076848022639751, -0.09940331429243088, -0.017884785309433937, -0.020275002345442772, -0.05450069531798363, 0.007128802593797445, 0.05509592592716217, 0.04021519050002098, 0.002036800840869546, 0.0466139055788517, -0.0013741429429501295, -0.050854913890361786, 0.016201401129364967, -0.001679895562119782, 0.007407816592603922, -0.006287110969424248, -0.006714932154864073, 0.04832519218325615, -0.03883872181177139, 0.06328032910823822, 0.020591218024492264, -0.006049949210137129, -0.02200488932430744, -0.02665511891245842, 0.015680575743317604, -0.009067948907613754, 0.06510321795940399, -0.02488803118467331, -0.08615946024656296, 0.002864541718736291, 0.05509592592716217, -0.004896692465990782, 0.03961995989084244, 0.0006213869783096015, -0.034300096333026886, -0.0015183001523837447, 0.018024291843175888, -0.0006022048182785511, 0.034300096333026886, -0.012165001593530178, -0.024404406547546387, -0.020647021010518074, -0.02832920104265213, -0.021019039675593376, 0.027380554005503654, 0.02477642521262169, -0.025706471875309944, 0.015494566410779953, -0.014490116387605667, 0.017717376351356506, -0.012518418952822685, -0.06674010306596756, 0.007389215752482414, -0.038913123309612274, -0.022097893059253693, 0.013374061323702335, 0.0018554418347775936, -0.029147641733288765, 0.016182800754904747, -0.11577212810516357, -0.012053396552801132, -0.007886789739131927, -0.026059888303279877, -0.06034138426184654, 0.013913488015532494, 0.02001458965241909, -0.042186886072158813, -0.02472062222659588, 0.049180831760168076, -0.008835436776280403, -0.005050149746239185, 0.0028343151789158583, -0.03281202167272568, 0.004650230053812265, 0.06063900142908096, -0.038987528532743454, 0.07377124577760696, -0.02148406207561493, -0.03519294038414955, -0.01406229566782713, 0.03865271061658859, 0.018721826374530792, -0.012341710738837719, 0.05531913787126541, -0.00028889553504996, 0.019605370238423347, 0.025818077847361565, 0.016108397394418716, -0.015820082277059555, 0.01094664167612791, 0.049143631011247635, 0.04471661150455475, -0.04843679443001747, 0.018935736268758774, 0.006538223475217819, 0.05710482597351074, 0.01699194125831127, 0.04973886162042618, -0.012983442284166813, -0.039099134504795074, 0.04843679443001747, -0.007682180032134056, 0.11867386847734451, -0.005473320838063955, -0.00043130884296260774, -0.0698278546333313, 0.006738183554261923, -0.02339995838701725, 0.0038852673023939133, -0.017549967393279076, -0.0004028261755593121, -0.038913123309612274, 0.04125684127211571, -0.05219418182969093, 0.022246699780225754, 0.009746882133185863, 0.0924837738275528, 0.08526661992073059, -0.01638741046190262, 0.017810381948947906, -0.010137501172721386, -0.011318660341203213, 0.024590415880084038, -0.01419250201433897, -0.025762274861335754, 0.0017368609551340342, -0.050817713141441345, 0.0034086185041815042, -0.006742833647876978, 0.05375665798783302, -0.014229703694581985, 0.010453716851770878, 0.01248121727257967, -0.03682982176542282, -0.05468670651316643, -0.008919141255319118, 0.06528922915458679, 0.04207528010010719, -0.021279452368617058, 0.012341710738837719, -0.029519660398364067, -0.05967175215482712, -0.041108034551143646, 0.03682982176542282, 0.03277482092380524, 0.013597272336483002, 0.005115252919495106, -0.00036736816400662065, -0.027789775282144547, -0.015708476305007935, -0.054128676652908325, -0.002436720533296466, -0.06201546639204025, -0.049218036234378815, 0.00016740828868933022, -0.03621599078178406, -0.012983442284166813, 0.010546721518039703, 0.021298052743077278, 0.07243198156356812, 0.019270554184913635, 0.016247903928160667, 0.01678732968866825, -0.045683860778808594, -0.07339923083782196, -0.0028622166719287634, 0.1221708431839943, -0.03160296380519867, 0.03158436343073845, 0.05658400058746338, 0.004247985314577818, -0.0709439069032669, 0.022190898656845093, -0.030449707061052322, -0.042447298765182495, 0.03861550986766815, 0.07886790484189987, -0.019047342240810394, 0.05215698108077049, 0.001963559538125992, 0.030710119754076004, -0.011402363888919353, -0.01678732968866825, 0.022748924791812897, -0.02360456809401512, -0.01666642539203167, 0.019103145226836205, 0.024311402812600136, 0.01652691699564457, -0.00015839845582377166, 0.004259610548615456, -0.06052739545702934, -0.02354876510798931, 0.033835072070360184, -0.009463218040764332, -0.02860821597278118, 0.02034940756857395, -0.015224853530526161, 0.0029831225983798504, -0.017884785309433937, -0.009616675786674023, -0.07819826900959015, -0.008091400377452374, 0.018879933282732964, 0.0036481055431067944, 0.024069590494036674, 0.02168867364525795, 0.08928442001342773, -0.023809177801012993, 0.023976586759090424, 0.03530454635620117, 0.0561375766992569, -0.003466746537014842, -0.030449707061052322, -0.006226657889783382, 0.062275879085063934, -0.004743234720081091, 0.01090013887733221, -0.01977277733385563, -0.035936977714300156, -0.030338101089000702, 0.001754299271851778, -0.032458607107400894, -0.01990298368036747, 0.021372457966208458, -0.016089795157313347, -0.057365238666534424, 0.006645178887993097, 0.011151251383125782, -0.03487672656774521, -0.01486213505268097, -0.013513568788766861, -0.014899336732923985, 0.02135385572910309, -0.0013171776663511992, -0.05211977660655975, 0.050929319113492966, 0.010993143543601036, -0.034262895584106445, 0.017605770379304886, -0.04959005489945412, 0.022414108738303185, 0.022395508363842964, -0.02155846729874611, 0.0694558322429657, -0.034114088863134384, 0.0016310681821778417, -0.05502152070403099, 0.016126997768878937, -0.019642570987343788, 0.0871267095208168, 0.0108908386901021, 0.008184405043721199, -0.0268225260078907, -0.03839229792356491, -0.0677073523402214, 0.05375665798783302, -0.0397687666118145, -0.06253629177808762, -0.015615472570061684, -0.0016764078754931688, 0.003308638697490096, 0.052715007215738297, -0.02659931592643261, -0.026078490540385246, -0.00843551754951477, -0.034076884388923645, -0.028998835012316704, -0.015271355397999287, 0.005580276250839233, -0.02816179394721985, 0.01075133215636015, 0.03655080869793892, 0.030635716393589973, -0.030951932072639465, -0.0265435129404068, -0.0116069745272398, -0.007863539271056652, 0.03621599078178406, 0.005710482597351074, -0.0217816773802042, -0.0437493659555912, -0.005315212998539209, 0.035899776965379715, 0.07842148095369339, 0.02656211331486702, -0.00547797093167901, -0.038913123309612274, -0.006026698276400566, -0.03839229792356491, 0.039285141974687576, -0.0003630085848271847, -0.0017484865384176373, 0.03775986656546593, -0.04278211668133736, 0.02146546170115471, 0.02351156249642372, -0.09761762619018555, 0.032626014202833176, -0.027361953631043434, 0.012741629965603352, -0.005873240530490875, 0.027417756617069244, -0.0330166332423687, 0.027789775282144547, 0.006738183554261923, 0.028775623068213463, 0.0098956897854805, -0.024181196466088295, -0.014676125720143318, 0.030542710795998573, -0.02328835241496563, 0.04542344808578491, -0.019586769863963127, 0.008895889855921268, -0.022395508363842964, 0.035843972116708755, 0.059225328266620636, 0.020461011677980423, 0.03562076389789581, 0.09040047228336334, 0.05889051407575607, -0.05185936391353607, -0.012025495059788227, 0.055839963257312775, -0.012778832577168941, -0.08734992146492004, 0.05331023782491684, -0.05654679611325264, 0.01843351125717163, 0.029017435386776924, -0.010583923198282719, 0.01162557490170002, -0.04843679443001747, 0.0012625374365597963, 0.034169889986515045, -0.10148662328720093, -0.047395143657922745, 0.005278011318296194, 0.05952294543385506, 0.026171494275331497, -0.021205049008131027, -0.004510723054409027, -0.005822088103741407, 0.06041578948497772, -0.022339705377817154, 0.026357503607869148, 0.02161426842212677, -0.002992423018440604, -0.047581154853105545, 0.00498039647936821, -0.09166533499956131, -0.027585163712501526, 0.018703226000070572, 0.0026459807995706797, 0.003508598543703556, 0.01094664167612791, -0.0126021234318614, -0.007538022939115763, -0.04646509885787964, -0.021223649382591248, 0.013029944151639938, 0.053979869931936264, -0.02507404051721096, -0.010509519837796688, -0.02522284723818302, 0.04780436307191849, 0.037629660218954086, 0.003892242442816496, -0.012025495059788227, -0.10714130103588104, 0.006570775061845779, 0.04542344808578491, 0.006812586914747953, -0.028794225305318832, 0.012518418952822685, 0.0393967479467392, 0.00618015555664897, 0.060825008898973465, 0.03022649511694908, 0.0007655441295355558, -0.037313446402549744, -0.034207090735435486, -0.03009628877043724, -0.0018740426748991013, 0.027845578268170357, -0.04159165918827057, -0.027250347658991814, 0.01425760518759489, 0.0669633150100708, 0.038987528532743454, -0.02339995838701725, -0.010807134211063385, 0.0435633547604084, -0.030635716393589973, -0.020740026608109474, -0.009746882133185863, -0.025911081582307816, 0.007612426765263081, 0.0032458605710417032, -0.007798435632139444, -0.0627967044711113, -0.011532570235431194, 0.02029360458254814, 0.02501823753118515, 0.025985484942793846, -0.01827540434896946, -0.03333285078406334, 0.01844281144440174, 0.03355605900287628, 0.03965716063976288, -0.025390256196260452, -0.044418998062610626, -0.00930046010762453, -0.022228099405765533, 0.02827339805662632, 0.022674521431326866, 0.03463491424918175, 0.0031110038980841637, 0.016126997768878937, -0.012174302712082863, -0.005566325504332781, 0.027603765949606895, -0.01818239875137806, 0.07354804128408432, 0.008565723896026611, 0.029594063758850098, -0.0334816575050354, -0.05178496241569519, 0.007454318925738335, -0.022972136735916138, 0.047618355602025986, -0.008016997016966343, 0.034039683640003204, 0.04709753021597862, 0.044121380895376205, 0.060899414122104645, 0.024218397215008736, 0.03831789642572403, 0.00924465712159872, -0.02818039432168007, -0.039247941225767136, 0.01821030117571354, 0.014080896973609924, -0.06037858501076698, 0.0021972337272018194, -0.017698775976896286, -0.04460500553250313, -0.03444890305399895, -0.021242251619696617, -0.05014808103442192, -0.004289837088435888, 0.05044569447636604, -0.03136115148663521, -0.019419360905885696, 0.05353344976902008, 0.03147275745868683, 0.04196367412805557, 0.027752572670578957, 0.024497412145137787, -0.052454594522714615, -0.011653476394712925, 0.042410098016262054, 0.027064338326454163, -0.05211977660655975, 0.019512364640831947, -0.017196550965309143, -1.5440217282503e-7, -0.011588373221457005, 0.05200817435979843, -0.007045098580420017, 0.01692683808505535, 0.0599321648478508, 0.05122693255543709, -0.02146546170115471, -0.1095966249704361, 0.04493982344865799, 0.00672423280775547, -0.09434386342763901, -0.051003724336624146, -0.011439565569162369, -0.001571777742356062, 0.00001686616633378435, -0.07150194048881531, 0.003524874337017536, -0.008626176975667477, -0.027027137577533722, 0.00824020802974701, 0.037722665816545486, 0.008077449165284634, -0.07254359126091003, 0.017270954325795174, 0.028682619333267212, -0.04620468616485596, -0.005278011318296194, 0.010481618344783783, -0.020926035940647125, 0.05025968700647354, 0.020721424371004105, 0.006649828981608152, 0.011820884421467781, -0.03961995989084244, 0.00463860435411334, 0.03854110836982727, -0.006519622635096312, 0.019549567252397537, 0.05490991473197937, -0.017373260110616684, 0.038913123309612274, 0.02855241298675537, 0.005329163745045662, -0.006361514795571566, -0.017856882885098457, 0.0018310280283913016, 0.09486469626426697, 0.0038434150628745556, -0.025799475610256195, -0.005673280451446772, 0.020740026608109474, 0.03379787132143974, -0.04129404202103615, 0.007468269672244787, -0.02637610398232937, -0.02972427010536194, 0.013532169163227081, -0.06882340461015701, 0.03688562288880348, -0.02814319171011448, -0.03623459115624428, -0.059113726019859314, -0.021112045273184776, -0.019679773598909378, -0.020647021010518074, -0.027343353256583214, -0.03206798806786537, 0.047171931713819504, -0.05357065051794052, -0.016694325953722, -0.009463218040764332, 0.03206798806786537, -0.07384565472602844, 0.007496170699596405, 0.004313088487833738, -0.027417756617069244, 0.0467999167740345, 0.025483259931206703, 0.07388285547494888, 0.04999927431344986, -0.01688033528625965, 0.00007429469405906275, 0.017243053764104843, -0.01241611409932375, -0.052715007215738297, -0.003011023858562112, 0.0595601461827755, -0.011727879755198956, -0.015820082277059555, 0.009100500494241714, 0.029519660398364067, 0.009360913187265396, 0.006347564049065113, 0.007886789739131927, -0.04877161234617233, -0.047692760825157166, -0.0017938262317329645, 0.02310234308242798, -0.05185936391353607, 0.024348605424165726, 0.035843972116708755, -0.04017798602581024, -0.03787147253751755, 0.01815449818968773, -0.0023251150269061327, -0.012109198607504368, 0.06220147758722305, 0.01082573551684618, -0.03515573963522911, -0.0234929621219635, -0.01413669902831316, -0.03290502727031708, -0.006626577582210302, 0.0601181723177433, -0.05996936559677124, 0.026264499872922897, 0.03846670314669609, -0.0662192776799202, 0.03337005153298378, -0.027957182377576828, 0.022972136735916138, 0.02486943081021309, 0.0029738221783190966, -0.02526004984974861, -0.02152126468718052, -0.08645707368850708, 0.062275879085063934, -0.017391860485076904, -0.01320665329694748, 0.007863539271056652, -0.03188197687268257, 0.015327158384025097, -0.030375301837921143, 0.04382376745343208, -0.03221679478883743, 0.044084180146455765, 0.07626377046108246, -0.030393904075026512, 0.007040448486804962, 0.02020059898495674, 0.04028959199786186, -0.026989934965968132, 0.02827339805662632, 0.022767527028918266, 0.09612955898046494, 0.006947443820536137, -0.024590415880084038, -0.04486541822552681, 0.007751933299005032, 0.02328835241496563, 0.004799037240445614, -0.009021446108818054, -0.003615553956478834, -0.014034394174814224, -0.027343353256583214, -0.03658800944685936, 0.02194908633828163, -0.02684112824499607, 0.05301262065768242, -0.03954555466771126, -0.06912101805210114, -0.01855441741645336, 0.012341710738837719, -0.04817638173699379, 0.059002120047807693, -0.025446059182286263, -0.0018310280283913016, 0.05866730213165283, -0.05167335644364357, 0.03296083211898804, 0.01094664167612791, 0.07626377046108246, 0.047395143657922745, 0.010574623011052608, 0.030970532447099686, 0.009839886799454689, 0.04613028094172478, -0.03221679478883743, 0.014824933372437954, 0.011141951195895672, -0.007221807260066271, 0.03011488914489746, 0.01836840808391571, -0.05357065051794052, 0.017652273178100586, -0.05204537510871887, -0.022469911724328995, -0.05018528178334236, -0.05450069531798363, -0.05967175215482712, 0.02680392563343048, -0.03632759675383568, 0.057365238666534424, 0.022190898656845093, 0.03469071537256241, -0.00820300541818142 ]
730,188
mmengine.utils.manager
ManagerMixin
``ManagerMixin`` is the base class for classes that have global access requirements. The subclasses inheriting from ``ManagerMixin`` can get their global instances. Examples: >>> class GlobalAccessible(ManagerMixin): >>> def __init__(self, name=''): >>> super().__init__(name) >>> >>> GlobalAccessible.get_instance('name') >>> instance_1 = GlobalAccessible.get_instance('name') >>> instance_2 = GlobalAccessible.get_instance('name') >>> assert id(instance_1) == id(instance_2) Args: name (str): Name of the instance. Defaults to ''.
class ManagerMixin(metaclass=ManagerMeta): """``ManagerMixin`` is the base class for classes that have global access requirements. The subclasses inheriting from ``ManagerMixin`` can get their global instances. Examples: >>> class GlobalAccessible(ManagerMixin): >>> def __init__(self, name=''): >>> super().__init__(name) >>> >>> GlobalAccessible.get_instance('name') >>> instance_1 = GlobalAccessible.get_instance('name') >>> instance_2 = GlobalAccessible.get_instance('name') >>> assert id(instance_1) == id(instance_2) Args: name (str): Name of the instance. Defaults to ''. """ def __init__(self, name: str = '', **kwargs): assert isinstance(name, str) and name, \ 'name argument must be an non-empty string.' self._instance_name = name @classmethod def get_instance(cls: Type[T], name: str, **kwargs) -> T: """Get subclass instance by name if the name exists. If corresponding name instance has not been created, ``get_instance`` will create an instance, otherwise ``get_instance`` will return the corresponding instance. Examples >>> instance1 = GlobalAccessible.get_instance('name1') >>> # Create name1 instance. >>> instance.instance_name name1 >>> instance2 = GlobalAccessible.get_instance('name1') >>> # Get name1 instance. >>> assert id(instance1) == id(instance2) Args: name (str): Name of instance. Defaults to ''. Returns: object: Corresponding name instance, the latest instance, or root instance. """ _accquire_lock() assert isinstance(name, str), \ f'type of name should be str, but got {type(cls)}' instance_dict = cls._instance_dict # type: ignore # Get the instance by name. if name not in instance_dict: instance = cls(name=name, **kwargs) # type: ignore instance_dict[name] = instance # type: ignore elif kwargs: warnings.warn( f'{cls} instance named of {name} has been created, ' 'the method `get_instance` should not accept any other ' 'arguments') # Get latest instantiated instance or root instance. _release_lock() return instance_dict[name] @classmethod def get_current_instance(cls): """Get latest created instance. Before calling ``get_current_instance``, The subclass must have called ``get_instance(xxx)`` at least once. Examples >>> instance = GlobalAccessible.get_current_instance() AssertionError: At least one of name and current needs to be set >>> instance = GlobalAccessible.get_instance('name1') >>> instance.instance_name name1 >>> instance = GlobalAccessible.get_current_instance() >>> instance.instance_name name1 Returns: object: Latest created instance. """ _accquire_lock() if not cls._instance_dict: raise RuntimeError( f'Before calling {cls.__name__}.get_current_instance(), you ' 'should call get_instance(name=xxx) at least once.') name = next(iter(reversed(cls._instance_dict))) _release_lock() return cls._instance_dict[name] @classmethod def check_instance_created(cls, name: str) -> bool: """Check whether the name corresponding instance exists. Args: name (str): Name of instance. Returns: bool: Whether the name corresponding instance exists. """ return name in cls._instance_dict @property def instance_name(self) -> str: """Get the name of instance. Returns: str: Name of instance. """ return self._instance_name
(name: str = '', **kwargs)
[ 0.11606140434741974, -0.02112985961139202, -0.03504663333296776, 0.024593770503997803, 0.016912037506699562, 0.021415121853351593, 0.021109482273459435, -0.023697229102253914, -0.021313242614269257, 0.003924916964024305, 0.007895680144429207, 0.003209211863577366, -0.00001227730535902083, 0.011970870196819305, 0.012093125842511654, -0.00950537994503975, -0.008501864969730377, 0.01344812661409378, -0.010799253359436989, -0.05713416263461113, 0.02705926075577736, 0.03268302232027054, 0.010901132598519325, -0.031297456473112106, 0.009454440325498581, 0.046538665890693665, -0.0008366873953491449, 0.025918206200003624, 0.04384904354810715, -0.021496625617146492, 0.005246806889772415, -0.042830243706703186, 0.019764671102166176, 0.030563922598958015, 0.013091547414660454, -0.053711000829935074, -0.03924407809972763, 0.08973567932844162, -0.06658860296010971, 0.0022884737700223923, 0.046905435621738434, -0.022596927359700203, 0.04784272983670235, -0.03421121835708618, -0.00757985282689333, 0.016555458307266235, 0.07372018694877625, -0.022128280252218246, -0.05041009932756424, -0.025551440194249153, 0.034476105123758316, -0.047272201627492905, -0.03264227136969566, 0.01407978031784296, -0.021557753905653954, 0.06695536524057388, 0.03239775821566582, 0.015883052721619606, -0.013631509616971016, -0.01758444309234619, 0.01126789953559637, 0.003996232990175486, 0.0713973268866539, -0.03392595425248146, -0.02050839178264141, -0.04621265083551407, -0.028872719034552574, -0.01039173360913992, -0.03245888650417328, 0.05314047634601593, -0.036269187927246094, 0.0026234034448862076, 0.03029903583228588, 0.013407374732196331, 0.01130865141749382, 0.003619277849793434, 0.0025329850614070892, -0.005547352135181427, 0.04348227381706238, 0.016922226175665855, 0.01935715228319168, -0.05631912127137184, -0.008853349834680557, 0.01419184822589159, 0.003825584426522255, 0.004910603631287813, -0.05676739290356636, -0.027038883417844772, 0.021333618089556694, -0.035209640860557556, -0.006601807661354542, 0.026346102356910706, 0.03747136890888214, 0.04132242500782013, -0.02174113690853119, -0.07909943163394928, -0.009729515761137009, -0.033885203301906586, -0.04613114893436432, 0.0035352271515876055, -0.04405280202627182, 0.03675821051001549, -0.01541440561413765, 0.006474457681179047, 0.012082938104867935, -0.03205136954784393, -0.027894673869013786, -0.028139185160398483, -0.0308288112282753, 0.0004107027198188007, -0.022189408540725708, 0.008731094188988209, -0.04739445820450783, 0.06671085953712463, -0.018277226015925407, -0.044908590614795685, -0.03164384886622429, 0.01156335137784481, 0.0031302552670240402, -0.029891517013311386, -0.0028806498739868402, 0.03427234664559364, -0.029524751007556915, 0.027161139994859695, 0.04099640995264053, -0.011379967443645, 0.04384904354810715, -0.04625340551137924, -0.007131582126021385, -0.025306928902864456, 0.044378817081451416, 0.030278660356998444, -0.0436045303940773, 0.03686009347438812, 0.018807001411914825, 0.04421580955386162, 0.043645281344652176, 0.04368603602051735, -0.09112124145030975, 0.032112494111061096, -0.022230159491300583, -0.004643169231712818, 0.004798536188900471, 0.016137750819325447, -0.011298463679850101, -0.007238555699586868, -0.03857167065143585, 0.06267642229795456, 0.05493355914950371, -0.057256415486335754, 0.0335388109087944, -0.012785907834768295, 0.038836557418107986, 0.07995522022247314, -0.07681732624769211, -0.018868127837777138, -0.02942286990582943, -0.0041566938161849976, -0.02928023785352707, -0.025469936430454254, -0.05220318213105202, -0.007248743902891874, -0.014365044422447681, -0.08582349866628647, 0.009444252587854862, -0.0020668853539973497, -0.024043619632720947, -0.057174913585186005, 0.018868127837777138, 0.05183641240000725, -0.05146964639425278, 0.003876524278894067, 0.019387714564800262, -0.0002309804840479046, -0.07029702514410019, 0.049269042909145355, -0.03221437707543373, -0.0048902276903390884, 0.09226229786872864, 0.04197445511817932, 0.011919930577278137, -0.050002578645944595, -0.08631251752376556, -0.06104634329676628, 0.000692782283294946, 0.03749174624681473, 0.031969863921403885, 0.01064643356949091, 0.05627837032079697, 0.048902276903390884, 0.014782750979065895, 0.012123689986765385, 0.03345730900764465, -0.014741999097168446, -0.008827880024909973, 0.06593657284975052, -0.034700240939855576, -0.01241914089769125, -0.01670827902853489, 0.06671085953712463, -0.022128280252218246, 0.029096854850649834, -0.018165158107876778, -0.029157983139157295, 0.01569966785609722, -0.008420361205935478, 0.04348227381706238, 0.012714591808617115, -0.055259574204683304, -0.01780857890844345, -0.06279867142438889, -0.020437076687812805, -0.020162001252174377, 0.08154454827308655, 0.04405280202627182, -0.058886490762233734, 0.06381747126579285, -0.028261441737413406, 0.04666092246770859, 0.04613114893436432, 0.05195866897702217, 0.030421292409300804, -0.04181144759058952, 0.04242272675037384, -0.029911892488598824, -0.0396108441054821, 0.0004132497124373913, 0.021843018010258675, -0.018980195745825768, -0.03924407809972763, 0.05778619274497032, -0.02928023785352707, 0.02402324415743351, -0.0007902047946117818, 0.007824364118278027, -0.003800114383921027, 0.04816874489188194, -0.033579565584659576, -0.026733245700597763, 0.04012024402618408, -0.005465848371386528, -0.0013435391010716558, 0.05660438537597656, -0.006535585504025221, -0.01699354127049446, -0.014283540658652782, -0.04833175241947174, 0.03184760734438896, 0.011502223089337349, -0.044093552976846695, -0.009250680916011333, 0.038388289511203766, -0.021700385957956314, 0.010707560926675797, -0.024960538372397423, -0.025673694908618927, -0.0736386775970459, 0.0029672475066035986, 0.0020668853539973497, 0.023310085758566856, -0.025388432666659355, 0.019499782472848892, -0.0018631258280947804, 0.0557485967874527, -0.04020174592733383, 0.006418423727154732, -0.00711630005389452, -0.010417204350233078, -0.06006829813122749, -0.007406657561659813, 0.08341913670301437, 0.022963695228099823, 0.004449598025530577, 0.03916257247328758, -0.03924407809972763, -0.09266981482505798, 0.0357801653444767, -0.021333618089556694, -0.08460094034671783, -0.06402122974395752, -0.019927678629755974, 0.00630126241594553, 0.05847897380590439, -0.06088333576917648, -0.04352302849292755, -0.03213287144899368, -0.00008309567056130618, -0.0049946545623242855, 0.01924508437514305, 0.00761041697114706, -0.021537378430366516, -0.06842243671417236, -0.0013511801371350884, 0.0015893239760771394, -0.0367378368973732, 0.0028093340806663036, -0.12559734284877777, 0.06728138029575348, -0.029830388724803925, -0.0493505485355854, 0.021700385957956314, 0.006026186980307102, -0.04710919409990311, 0.041587311774492264, 0.026121966540813446, 0.013774141669273376, 0.01407978031784296, 0.02809843420982361, 0.03716573119163513, 0.02371760457754135, 0.017991963773965836, -0.016606397926807404, 0.039733100682497025, 0.02815956063568592, 0.015495909377932549, -0.005705265793949366, 0.010778876952826977, -0.040548138320446014, 0.011176208034157753, 0.0808110162615776, -0.015047638677060604, 0.08606801182031631, 0.00033110915683209896, 0.027670538052916527, 0.00537925073876977, 0.011767110787332058, -0.021089106798171997, 0.055544838309288025, 0.0028169748838990927, 0.03957009315490723, -0.1113341823220253, -0.02135399542748928, 0.0020694322884082794, -0.002827162854373455, 0.014314103871583939, -0.01514951791614294, -0.018104029819369316, -0.00451581971719861, 0.0630839392542839, -0.03127708286046982, 0.04886152595281601, 0.03712498024106026, -0.03946821391582489, -0.03918294981122017, -0.034251969307661057, 0.014028840698301792, 0.04857626184821129, 0.045642126351594925, 0.030482418835163116, -0.09438139945268631, -0.03472061827778816, 0.002901025814935565, -0.028628207743167877, -0.029463622719049454, 0.023758357390761375, -0.09046921133995056, -0.0034791931975632906, -0.017767827957868576, -0.03985535725951195, 0.0028679147362709045, -0.0071213943883776665, -0.032846029847860336, -0.053629498928785324, 0.004500537645071745, -0.03930520638823509, -0.038836557418107986, -0.009765173308551311, -0.036921218037605286, 0.017278805375099182, -0.07372018694877625, -0.036778587847948074, -0.015720045194029808, 0.004398657940328121, 0.0029621536377817392, 0.00804340559989214, 0.03771588206291199, 0.04556062072515488, -0.0044725206680595875, 0.014426171779632568, -0.027038883417844772, 0.06414348632097244, 0.009882335551083088, 0.024145498871803284, 0.03341655805706978, 0.05061385780572891, -0.010503801517188549, 0.021598506718873978, 0.017564067617058754, 0.023187829181551933, 0.022128280252218246, 0.011797674931585789, -0.0019497235771268606, -0.023167453706264496, -0.025612568482756615, -0.01943865604698658, 0.017431624233722687, -0.04213746264576912, 0.01249045692384243, -0.04710919409990311, 0.01878662407398224, 0.07192710041999817, 0.03800114616751671, 0.014314103871583939, -0.053996264934539795, 0.005919213406741619, 0.028994975611567497, 0.06104634329676628, -0.015006886795163155, -0.02654986083507538, 0.005740923807024956, -0.07086755335330963, -0.03895881399512291, 0.015210646204650402, -0.026447981595993042, 0.019571099430322647, -0.05232543870806694, 0.04939129948616028, 0.01881718821823597, 0.022209784016013145, -0.003176101017743349, -0.003028375329449773, 0.05098062381148338, -0.011053952388465405, 0.004798536188900471, -0.003889259183779359, 0.016891662031412125, -0.0752280056476593, 0.002727830084040761, -0.016423014923930168, 0.0059141190722584724, -0.03311091661453247, -0.0014199489960446954, -0.027548283338546753, -0.018389293923974037, 0.03343693166971207, -0.04747596010565758, 0.0011582453735172749, -0.015434781089425087, -0.003227040870115161, 0.059457018971443176, -0.036106180399656296, -0.02638685330748558, 0.019367339089512825, 0.07693958282470703, 0.017421435564756393, -0.008990887552499771, -0.012133877724409103, 0.0415261834859848, 0.09617447853088379, -0.019031137228012085, 0.005030312575399876, 0.005053235217928886, 0.00657633738592267, 0.024451138451695442, -0.020498204976320267, -0.08835011720657349, -0.002447660779580474, -0.03431309759616852, 0.01994805410504341, 0.012673839926719666, -0.021761514246463776, 0.034618739038705826, -0.015995120629668236, -0.024858657270669937, -0.024227002635598183, -0.0027736760675907135, 0.08435642719268799, -0.012429328635334969, 0.005705265793949366, -0.0046584513038396835, 0.0394478365778923, 0.04154656082391739, 0.0015269226860255003, -0.03412971273064613, -0.08647552877664566, -0.013692637905478477, 0.025592191144824028, -0.03946821391582489, -0.021761514246463776, -0.05122513696551323, 0.05811220780014992, 0.0187662485986948, 0.040914904326200485, 0.007467785384505987, -0.0493505485355854, -0.005221337080001831, 0.06622183322906494, 0.0015460251597687602, 0.030095277354121208, -0.01219500508159399, -0.059620026499032974, 0.019479406997561455, -0.0044827088713645935, 0.020722340792417526, -0.03757324814796448, -0.04588663578033447, -0.03645257279276848, 0.03349805995821953, 0.009016357362270355, -0.013855645433068275, 0.011634666472673416, -0.003425706410780549, 0.041424304246902466, 0.0289134718477726, 0.023310085758566856, -0.045927390456199646, -0.04861701279878616, -0.001223830389790237, 0.023187829181551933, 0.022230159491300583, 0.014813315123319626, -0.017462188377976418, 0.0003626282268669456, 0.023187829181551933, 0.017227865755558014, 0.0020566973835229874, -0.02394174039363861, -0.04478633403778076, 0.007941526360809803, -0.03645257279276848, 0.01935715228319168, 0.025245800614356995, 0.006922728847712278, -0.021781889721751213, -0.025836702436208725, -0.0007449956610798836, -0.01249045692384243, 0.03302941471338272, -0.02090572379529476, 0.017564067617058754, -0.009892523288726807, -0.05240694060921669, -0.06508078426122665, -0.010407015681266785, -0.00039032677887007594, -0.025469936430454254, -0.040609266608953476, -0.03443535417318344, 0.05611536279320717, 0.03384445235133171, 0.01943865604698658, 0.00703989015892148, 0.010982636362314224, -0.001244843122549355, -0.0009118237067013979, -0.07433146238327026, 0.015516284853219986, -0.005567728076130152, -0.04170956835150719, 0.020070310682058334, 0.050817616283893585, -0.047720473259687424, 0.016494330018758774, -0.017564067617058754, -0.046538665890693665, 0.011868990026414394, -0.002470583887770772, 0.02571444772183895, 0.029993396252393723, 0.04470483213663101, 0.057460177689790726, 0.021985648199915886, 0.004090471658855677, 0.000435217545600608, -0.01789008267223835, -0.04270799085497856, 0.010315324179828167, 0.015068014152348042, -0.01315267477184534, 0.027446404099464417, -0.03555602952837944, -0.04014062136411667, 0.024960538372397423, -0.009795737452805042, 0.009994402527809143, 0.07795838266611099, -0.0061891945078969, 0.04486783966422081, 0.02455301769077778, -0.06410273909568787, 0.05493355914950371, -0.005068517290055752, -0.039427462965250015, -0.016942601650953293, -0.0010258016409352422, 0.021496625617146492, -0.020640837028622627, 0.011746734380722046, 0.0015574865974485874, -0.03186798468232155, -0.019530346617102623, 0.06968574225902557, 0.06781116127967834, -0.0037364396266639233, 0.01895982027053833, 0.020864970982074738, 0.005995622836053371, -0.02461414597928524, 0.053629498928785324, -0.01230707298964262, 0.00903163943439722, 0.05342573672533035, 0.004210180602967739, -0.04886152595281601, 0.00363201298750937, -0.006999138277024031, -0.013356434181332588, -0.04820949584245682, -0.01955072395503521, -0.032846029847860336, -0.02824106439948082, -0.0689929649233818, -0.0010633697966113687, -0.009209929034113884, 0.010137034580111504, 0.02838369645178318, -0.07319040596485138, 0.06377672404050827, 0.012694216333329678, 0.007997560314834118, -0.03415009006857872, 0.01937752775847912, 0.01769651100039482, -0.01515970565378666, 0.018216097727417946, -0.005598291754722595, 0.025632943958044052, -0.03639144450426102, 0.02121136337518692, -0.012174629606306553, 0.0027176421135663986, -0.002620856510475278, -0.024573395028710365, -0.044378817081451416, 0.061535365879535675, -0.007885492406785488, -0.006897258572280407, 0.001267129322513938, -0.04225971922278404, 0.06512153148651123, -0.06593657284975052, -0.036024678498506546, -0.01134940329939127, 0.06984875351190567, -0.08134078979492188, -0.05285521224141121, 0.041424304246902466, -0.00665274728089571, 0.009709139354526997, 0.030176781117916107, 0.005404720548540354, 0.03948858752846718, 0.011889366433024406, -0.0016708278562873602, -0.020661212503910065, -0.03639144450426102, -0.039142198860645294, -0.0029978114180266857, 0.001304060686379671, 0.0022477218881249428, -0.027405651286244392, 0.047720473259687424, -0.051347389817237854, 0.037063851952552795, 0.046090397983789444, 0.025306928902864456, -0.03969234973192215, -0.0033187326043844223, 0.05570784583687782, 0.02815956063568592, 0.000021868327166885138, 0.010345888324081898, -0.00772248487919569, -0.017064856365323067, -0.036106180399656296, 0.006122972816228867, 0.04820949584245682, -0.0008156747207976878, -0.03390558063983917, 0.03789926692843437, -0.018022526055574417, 0.041139040142297745, -0.014945758506655693, 0.051184382289648056, -0.03347768262028694, 0.017533503472805023, 0.03133821114897728, -0.011818050406873226, 0.042463477700948715, -0.10277628898620605, 0.009744797833263874, 0.03771588206291199, 0.063572958111763, 0.05012483522295952, -0.003963122144341469, -0.014884631149470806, -0.021415121853351593, 0.004620246589183807, -0.009989309124648571, -0.032275501638650894, -0.001214279211126268, -0.049269042909145355, 0.016127564013004303, -0.002494780346751213, 0.008731094188988209, 0.06047581508755684, -0.0388161838054657, 0.03557640686631203, 0.04649791494011879, -0.037063851952552795, 0.018745873123407364, 0.05220318213105202, 0.08199281990528107, -0.005776581354439259, 0.04034437984228134, -0.018552301451563835, 0.05322197824716568, 0.03304978832602501, -0.041200168430805206, 0.006744439247995615, -0.0344964824616909, 0.006718968972563744, 0.0867200419306755, -0.04124091938138008, 0.04221896454691887, 0.04162806272506714, 0.02461414597928524, -0.04474558308720589, 0.026916628703475, 0.057174913585186005, 0.020426888018846512, 0.015770984813570976, -0.07196785509586334, 0.023615725338459015, 0.06161687150597572, -0.038164153695106506, 0.02202640101313591, -0.04429731145501137, -0.05432227998971939, 0.024879034608602524, 0.012429328635334969, 0.0010149769950658083, -0.01227650884538889, 0.053466491401195526, 0.0032677927520126104, 0.009821207262575626, 0.022046776488423347, 0.00416942872107029, -0.0028093340806663036, -0.007681732997298241, 0.015984931960701942, -0.02233204059302807, 0.00772248487919569, 0.04580513387918472, 0.024206627160310745, 0.004001326858997345, 0.013060983270406723, -0.06895221024751663, 0.01423260010778904, -0.05892724543809891, -0.010238914750516415, -0.07840665429830551, 0.015720045194029808, -0.015597788617014885, 0.0040395320393145084, -0.022515423595905304, -0.01045286189764738, 0.006968574598431587 ]
730,189
mmengine.utils.manager
__init__
null
def __init__(self, name: str = '', **kwargs): assert isinstance(name, str) and name, \ 'name argument must be an non-empty string.' self._instance_name = name
(self, name: str = '', **kwargs)
[ 0.036870215088129044, -0.021053630858659744, 0.011976669542491436, -0.02416422590613365, -0.05472538247704506, -0.01975315622985363, 0.033671751618385315, 0.029366126284003258, 0.03778406232595444, 0.014401879161596298, -0.023935765027999878, 0.08765902370214462, -0.019085345789790154, 0.022775882855057716, 0.004123295657336712, -0.022037774324417114, 0.026519140228629112, 0.025429554283618927, -0.04794182628393173, -0.039400868117809296, 0.009305424056947231, 0.053846683353185654, 0.023074639961123466, 0.055393192917108536, 0.061895567923784256, 0.08597192168235779, 0.011247348971664906, 0.04811756685376167, -0.022354107350111008, -0.007596354000270367, 0.004674679599702358, -0.0013839511666446924, -0.00043056259164586663, 0.05514715984463692, 0.02574588544666767, -0.056974854320287704, -0.03528855741024017, 0.045516617596149445, -0.12336935847997665, -0.017257651314139366, 0.09286092966794968, 0.024339966475963593, -0.03291606903076172, -0.03679991886019707, -0.013075043447315693, 0.009683264419436455, 0.029682457447052002, -0.010148975066840649, -0.0531085766851902, 0.013540754094719887, -0.025534996762871742, 0.02530653588473797, -0.0058125946670770645, 0.009779921732842922, -0.009850217029452324, 0.08034825325012207, 0.03460317105054855, 0.09201737493276596, -0.011177053675055504, 0.03556974232196808, -0.06776528060436249, 0.013857085257768631, 0.07514635473489761, -0.037608325481414795, -0.03992808982729912, -0.005092061590403318, 0.0027920666616410017, 0.012398445047438145, -0.016238359734416008, 0.04614927992224693, 0.07194788753986359, 0.00361365033313632, -0.021317241713404655, 0.002616326790302992, 0.018013332039117813, 0.03947116434574127, -0.0635475218296051, 0.03933057561516762, -0.012345722876489162, 0.019102919846773148, 0.037397436797618866, -0.0074118273332715034, -0.07423250377178192, -0.03361903131008148, -0.0016662332927808166, -0.021668720990419388, -0.0629500076174736, -0.06059509515762329, 0.03091263584792614, -0.006309059914201498, -0.03500737249851227, 0.013215634971857071, -0.018189072608947754, 0.02831168659031391, -0.022723160684108734, -0.06639450788497925, 0.02595677226781845, -0.06484799832105637, 0.01160761620849371, 0.03992808982729912, -0.01205575279891491, -0.013356227427721024, -0.035341281443834305, -0.029190385714173317, -0.008290526457130909, -0.0513160303235054, -0.02184446156024933, -0.039189983159303665, -0.023074639961123466, -0.009129684418439865, 0.011308858171105385, 0.05219472944736481, -0.019190790131688118, 0.03535885363817215, -0.032265834510326385, -0.014893950894474983, -0.017002828419208527, -0.015219069086015224, 0.019173216074705124, -0.05922432243824005, -0.009762347675859928, 0.03947116434574127, -0.07142066955566406, 0.06762468814849854, 0.05346005782485008, 0.003163316985592246, -0.01607140712440014, -0.04045530781149864, 0.013988890685141087, -0.006410110276192427, 0.10818544030189514, -0.00023464013065677136, -0.04200182110071182, -0.01456004474312067, 0.014735784381628036, 0.011888799257576466, 0.040982529520988464, 0.05254621058702469, -0.039436016231775284, 0.04460277035832405, -0.02086031809449196, -0.008967124857008457, 0.0014322795905172825, -0.00015583180356770754, 0.012978386133909225, -0.013602263294160366, -0.021703869104385376, -0.00403103232383728, 0.011467023752629757, 0.00186284224037081, 0.0019770730286836624, 0.015667205676436424, 0.009973235428333282, 0.03627270087599754, 0.005636855028569698, -0.05075366422533989, -0.002939248690381646, -0.05423331260681152, -0.016651349142193794, 0.010412584990262985, 0.02300434373319149, -0.012310574762523174, -0.00838278979063034, -0.05606100708246231, -0.019384102895855904, -0.009428441524505615, -0.019085345789790154, -0.044954247772693634, 0.01539480872452259, 0.04720371961593628, -0.008290526457130909, -0.012925664894282818, -0.027643876150250435, 0.02697606384754181, -0.023232806473970413, 0.02001676708459854, -0.00851020123809576, 0.027415413409471512, 0.04108797386288643, -0.04168548807501793, 0.010298353619873524, 0.0014114105142652988, -0.03309180960059166, -0.005250227637588978, 0.037010807543992996, -0.00186284224037081, -0.01616806350648403, 0.06734350323677063, 0.0629500076174736, 0.028118371963500977, 0.03284577280282974, -0.006691294256597757, -0.015491466037929058, -0.0018441698048263788, 0.028803758323192596, 0.014138269238173962, 0.004035425838083029, -0.03001636266708374, 0.008439905010163784, 0.06161438301205635, 0.007016412913799286, 0.058345623314380646, -0.03423411771655083, -0.029577013105154037, 0.028874054551124573, 0.010728917084634304, 0.0677301287651062, 0.03288092091679573, 0.006392536219209433, -0.03439228609204292, -0.0378895066678524, -0.006181648466736078, -0.005338097456842661, 0.06815190613269806, 0.0062958793714642525, -0.03813554346561432, 0.001525641418993473, -0.02783718891441822, 0.06618361920118332, 0.03049086034297943, 0.07082315534353256, 0.05943521112203598, 0.01353196706622839, 0.00039102110895328224, -0.02061428129673004, -0.0003619142225943506, 0.02288132533431053, -0.0021956495475023985, 0.001107160933315754, -0.0074118273332715034, -0.014067973010241985, -0.032388851046562195, 0.007851176895201206, 0.011677911505103111, -0.04818786308169365, -0.030930209904909134, -0.00451212003827095, -0.05806443840265274, -0.06822220236063004, -0.09089264273643494, 0.03679991886019707, 0.014577618800103664, -0.021457834169268608, 0.018610848113894463, 0.024744167923927307, -0.052405618131160736, -0.051456622779369354, 0.05507686361670494, -0.014691850170493126, -0.045305728912353516, 0.03305666148662567, -0.014234926551580429, -0.036061812192201614, 0.011871225200593472, -0.04101767763495445, 0.005970760714262724, -0.038979094475507736, -0.02437511458992958, 0.02980547584593296, 0.0009089044178836048, -0.028979498893022537, -0.03711625188589096, -0.020754873752593994, 0.04882052540779114, 0.016985254362225533, -0.023672156035900116, -0.013321079313755035, -0.037045955657958984, -0.03708110377192497, -0.03774891421198845, 0.0862531065940857, -0.0007776487618684769, 0.04249389097094536, 0.03156287223100662, -0.026694880798459053, -0.10853692144155502, -0.004391299095004797, -0.027889911085367203, -0.0698390081524849, -0.0032138421665877104, 0.055990710854530334, -0.024744167923927307, 0.05454964190721512, 0.02711665630340576, 0.02825896441936493, -0.03694051131606102, 0.02629067935049534, -0.0005417729262262583, -0.0352182611823082, -0.02616766095161438, -0.012257853522896767, 0.010236845351755619, -0.0094723766669631, 0.011792142875492573, -0.028118371963500977, -0.007385466247797012, -0.03676477074623108, 0.03184405714273453, -0.03189677745103836, -0.02240682765841484, 0.041966672986745834, -0.05092940106987953, -0.010957377962768078, 0.004503333009779453, -0.05514715984463692, -0.027134230360388756, -0.029682457447052002, 0.029049793258309364, 0.01062347274273634, -0.0029084940906614065, 0.015500253066420555, 0.051069993525743484, -0.050085850059986115, 0.03165074437856674, 0.03697565943002701, 0.05057792365550995, 0.05859166011214256, -0.05061307176947594, 0.022934047505259514, 0.05426846072077751, 0.004841632209718227, -0.009358146227896214, -0.040982529520988464, -0.03261731192469597, -0.011669124476611614, 0.017424603924155235, -0.03562246263027191, -0.0000786710370448418, 0.012899303808808327, 0.05215958133339882, -0.06098172068595886, 0.004679073113948107, 0.025464700534939766, -0.031281691044569016, -0.03317968174815178, -0.06917119771242142, -0.022969195619225502, 0.012451167218387127, -0.019225938245654106, -0.04586809501051903, 0.0617549754679203, 0.015957176685333252, -0.05215958133339882, -0.0005349080893211067, 0.016493182629346848, 0.018610848113894463, 0.0384870246052742, -0.05999757722020149, 0.07732552289962769, -0.041790932416915894, -0.02727482095360756, -0.00842233095318079, -0.01616806350648403, -0.03374204784631729, 0.07261569797992706, 0.006102565675973892, -0.00614650035277009, 0.00978870876133442, -0.052827391773462296, -0.040595900267362595, 0.007903899066150188, -0.022898899391293526, -0.025376832112669945, -0.020684577524662018, -0.011633976362645626, -0.022652864456176758, 0.052616506814956665, 0.008079638704657555, 0.007943440228700638, -0.039611756801605225, -0.039014242589473724, -0.025675589218735695, -0.027714170515537262, -0.0056720031425356865, -0.02411150559782982, 0.015526614151895046, 0.06808160990476608, -0.013944955542683601, -0.03989294171333313, -0.04242359474301338, -0.03736228868365288, 0.006761590018868446, 0.05623674392700195, 0.033970508724451065, 0.01011382695287466, 0.00015967611398082227, -0.020790021866559982, 0.03732714056968689, 0.07500576227903366, 0.012618119828402996, -0.019788304343819618, -0.010500455275177956, 0.021615998819470406, 0.022160792723298073, 0.018312091007828712, -0.022125644609332085, -0.012336935847997665, -0.007921473123133183, -0.06871427595615387, 0.05852136388421059, -0.003644404700025916, -0.03184405714273453, -0.014507322572171688, 0.001997942104935646, -0.019805878400802612, 0.016704071313142776, 0.05423331260681152, -0.0007518369820900261, 0.01464791502803564, 0.01594838872551918, 0.03449773043394089, -0.02402363531291485, -0.06917119771242142, -0.059154026210308075, 0.011396728456020355, 0.025816181674599648, 0.03627270087599754, -0.024744167923927307, 0.01680951565504074, -0.05015614628791809, -0.017855167388916016, 0.0560961551964283, 0.04105282574892044, 0.03665933012962341, 0.042985960841178894, 0.055006567388772964, -0.0017365291714668274, -0.029664883390069008, 0.08168387413024902, -0.026413695886731148, -0.12568913400173187, 0.061122313141822815, -0.02381274662911892, 0.004334183409810066, 0.06063024327158928, -0.007297596428543329, 0.012758711352944374, -0.04200182110071182, -0.03428684175014496, 0.010324714705348015, -0.04934774339199066, -0.07187759131193161, 0.029946066439151764, 0.04934774339199066, -0.03491950407624245, -0.008962731808423996, -0.018224220722913742, 0.002223108895123005, 0.042353298515081406, -0.04031471535563469, 0.039963237941265106, 0.031791336834430695, -0.004279264714568853, -0.05918917432427406, 0.023707302287220955, -0.08126209676265717, -0.05651792883872986, 0.022898899391293526, 0.031281691044569016, -0.03715139999985695, -0.055006567388772964, 0.05346005782485008, -0.013804364018142223, -0.021563276648521423, -0.024392688646912575, 0.07395131886005402, 0.060911424458026886, 0.024515707045793533, 0.036413293331861496, -0.01684466190636158, 0.00908574927598238, 0.05078881233930588, 0.02356671169400215, 0.01180092990398407, -0.047695789486169815, -0.0046263509429991245, -0.03774891421198845, -0.02282860316336155, 0.007222907152026892, -0.015895668417215347, 0.00870351493358612, 0.015324513427913189, 0.06421533226966858, 0.05648278072476387, -0.023021917790174484, -0.019102919846773148, -0.009393294341862202, -0.026993637904524803, 0.03156287223100662, 0.007807241752743721, -0.04562205821275711, 0.03630784898996353, 0.005518230609595776, 0.007367892190814018, -0.011633976362645626, 0.0018672357546165586, 0.004261690657585859, 0.05015614628791809, -0.003521386766806245, 0.02258256822824478, -0.010518028400838375, 0.0017134633380919695, 0.012925664894282818, -0.05275709554553032, 0.03142228350043297, -0.03904939070343971, -0.03261731192469597, 0.024093931540846825, -0.003938768990337849, -0.020034341141581535, 0.005197505466639996, -0.02279345691204071, 0.019911322742700577, 0.016739219427108765, 0.03718654811382294, 0.00399808119982481, -0.046500757336616516, -0.0027393444906920195, -0.05683426186442375, 0.029647309333086014, 0.010781638324260712, 0.02458600141108036, -0.010799212381243706, -0.018206646665930748, -0.020157357677817345, -0.02356671169400215, 0.02980547584593296, -0.012310574762523174, 0.043337441980838776, 0.0680113136768341, 0.01779365725815296, -0.03324997425079346, -0.055006567388772964, 0.013488031923770905, -0.007152610924094915, 0.0489259697496891, -0.07866115123033524, 0.024304818361997604, 0.030596304684877396, 0.0537060908973217, 0.034568022936582565, 0.004472578875720501, 0.05057792365550995, -0.02971760556101799, -0.03404080495238304, -0.04467306658625603, -0.009902939200401306, 0.0698390081524849, -0.01229300070554018, -0.001629986916668713, 0.0662539154291153, -0.07556812465190887, -0.07472457736730576, -0.045903243124485016, -0.033759620040655136, 0.012644480913877487, 0.006638572085648775, -0.04783638194203377, -0.011194626800715923, 0.023074639961123466, 0.017433391883969307, 0.029946066439151764, 0.06829249858856201, 0.00505691347643733, -0.003178694285452366, -0.0032797446474432945, -0.0063134534284472466, -0.057748109102249146, -0.028680739924311638, 0.019313806667923927, 0.004551661666482687, -0.041158270090818405, 0.05493627116084099, 0.06794101744890213, -0.029612161219120026, 0.028487427160143852, 0.062106456607580185, 0.04010383039712906, -0.02124694548547268, -0.05099969729781151, 0.03697565943002701, 0.016897384077310562, -0.08604221791028976, -0.01427886076271534, -0.05388183146715164, 0.0007798455189913511, -0.010105039924383163, -0.03750288113951683, -0.008716695941984653, 0.003444500733166933, 0.01494667213410139, 0.008562923409044743, 0.0007375581189990044, 0.013285931199789047, -0.04340773820877075, -0.006199222523719072, 0.04720371961593628, -0.0766928642988205, 0.049664076417684555, -0.016827087849378586, -0.021088778972625732, 0.05198384076356888, -0.02680032327771187, 0.04976952075958252, 0.012714777141809464, 0.02279345691204071, -0.03344329074025154, 0.023953339084982872, -0.008993485942482948, -0.00486359978094697, 0.027556005865335464, -0.019682861864566803, 0.006568276323378086, 0.06941723078489304, 0.006577063351869583, 0.011590042151510715, -0.0025877689477056265, 0.02676517702639103, 0.05887284502387047, -0.020069489255547523, -0.03381234407424927, 0.035429149866104126, 0.022758308798074722, 0.019981618970632553, -0.043513182550668716, -0.037819210439920425, 0.014138269238173962, -0.047274015843868256, -0.003242399776354432, -0.02416422590613365, 0.009076962247490883, -0.030455712229013443, -0.046711646020412445, -0.0721939206123352, 0.028206242248415947, 0.017925463616847992, 0.0017387259285897017, -0.018118776381015778, -0.020192505791783333, 0.0531085766851902, -0.051878396421670914, 0.003420336404815316, 0.02411150559782982, 0.038205839693546295, -0.07402161508798599, 0.018030906096100807, 0.018540551885962486, -0.04186122864484787, 0.0010253320215269923, 0.04221270605921745, 0.004422053694725037, 0.01427886076271534, 0.03484920784831047, -0.015087264589965343, 0.044145844876766205, 0.022178366780281067, -0.05254621058702469, -0.012328148819506168, 0.025218665599822998, -0.03834643214941025, -0.04509484022855759, -0.014964246191084385, -0.000573900411836803, 0.019050197675824165, 0.015930816531181335, 0.0043869055807590485, -0.0198410265147686, -0.07388102263212204, -0.036237552762031555, 0.06143864616751671, -0.028874054551124573, 0.04407554864883423, 0.0360969603061676, -0.028329260647296906, -0.00012878434790764004, 0.009059388190507889, 0.017160994932055473, -0.007069134619086981, 0.0456572063267231, 0.014489749446511269, -0.022336533293128014, -0.01645803451538086, 0.018575699999928474, -0.04439188167452812, 0.010939804837107658, 0.04481365531682968, -0.03922513127326965, 0.02240682765841484, 0.0602787621319294, -0.029682457447052002, -0.02599192038178444, 0.029998788610100746, -0.008439905010163784, 0.04579779878258705, -0.02390061691403389, -0.03400565683841705, 0.010518028400838375, -0.060735683888196945, 0.016449248418211937, 0.020210079848766327, -0.001371869002468884, 0.019507121294736862, -0.019805878400802612, -0.012345722876489162, -0.036061812192201614, 0.00613771378993988, -0.025886477902531624, 0.042775075882673264, 0.08962731063365936, -0.053424909710884094, 0.020368246361613274, 0.035640038549900055, 0.027556005865335464, 0.012556610628962517, 0.018153924494981766, 0.02031552419066429, 0.01726643741130829, 0.030297547578811646, -0.054022423923015594, -0.01847025565803051, 0.050472479313611984, 0.008606858551502228, 0.026062216609716415, -0.023267952725291252, -0.0067879511043429375, -0.0201397854834795, -0.07289688289165497, -0.05458479002118111, 0.035552166402339935, -0.0032160389237105846, 0.0011093576904386282, 0.03043813817203045, -0.05353035405278206, 0.002462554257363081, 0.03460317105054855, -0.06695687770843506, 0.08576104044914246, -0.032775476574897766, 0.015957176685333252, 0.06815190613269806, -0.021141501143574715, 0.01427886076271534, 0.011572468094527721, 0.025025350973010063, 0.01620321162045002, 0.04776608571410179, 0.029366126284003258, 0.014612766914069653, 0.0048767803236842155, 0.00677916407585144, 0.014937886036932468, -0.024339966475963593, -0.02064942941069603, 0.05961095169186592, -0.021229371428489685, -0.062106456607580185, -0.007293202914297581, -0.0029019040521234274, 0.00048246074584312737, -0.0238654688000679, -0.0356576107442379, -0.015632057562470436, 0.03556974232196808, -0.01774972304701805, 0.012082112953066826, 0.0007392056868411601, 0.022863751277327538, 0.01011382695287466 ]
730,190
mmengine.fileio.backends.memcached_backend
MemcachedBackend
Memcached storage backend. Attributes: server_list_cfg (str): Config file for memcached server list. client_cfg (str): Config file for memcached client. sys_path (str, optional): Additional path to be appended to `sys.path`. Defaults to None.
class MemcachedBackend(BaseStorageBackend): """Memcached storage backend. Attributes: server_list_cfg (str): Config file for memcached server list. client_cfg (str): Config file for memcached client. sys_path (str, optional): Additional path to be appended to `sys.path`. Defaults to None. """ def __init__(self, server_list_cfg, client_cfg, sys_path=None): if sys_path is not None: import sys sys.path.append(sys_path) try: import mc except ImportError: raise ImportError( 'Please install memcached to enable MemcachedBackend.') self.server_list_cfg = server_list_cfg self.client_cfg = client_cfg self._client = mc.MemcachedClient.GetInstance(self.server_list_cfg, self.client_cfg) # mc.pyvector servers as a point which points to a memory cache self._mc_buffer = mc.pyvector() def get(self, filepath: Union[str, Path]): """Get values according to the filepath. Args: filepath (str or Path): Path to read data. Returns: bytes: Expected bytes object. Examples: >>> server_list_cfg = '/path/of/server_list.conf' >>> client_cfg = '/path/of/mc.conf' >>> backend = MemcachedBackend(server_list_cfg, client_cfg) >>> backend.get('/path/of/file') b'hello world' """ filepath = str(filepath) import mc self._client.Get(filepath, self._mc_buffer) value_buf = mc.ConvertBuffer(self._mc_buffer) return value_buf def get_text(self, filepath, encoding=None): raise NotImplementedError
(server_list_cfg, client_cfg, sys_path=None)
[ 0.07748975604772568, -0.09215589612722397, -0.0771249309182167, 0.056074272841215134, 0.03526075929403305, -0.0173841193318367, -0.060014430433511734, 0.07894907146692276, 0.040277160704135895, -0.08033542335033417, 0.036683592945337296, 0.03910970687866211, -0.05169632285833359, 0.0059011150151491165, 0.009832151234149933, 0.0102425841614604, 0.014073292724788189, -0.021652622148394585, 0.0040769679471850395, -0.040386609733104706, -0.016882479190826416, 0.02896745130419731, 0.07187138497829437, 0.048048026859760284, -0.009850393049418926, 0.020667582750320435, 0.02504553645849228, -0.05534461513161659, 0.059977948665618896, 0.012103213928639889, -0.002676935400813818, -0.02021154761314392, -0.00881062913686037, 0.02785472199320793, -0.002724819350987673, -0.020685825496912003, 0.028894485905766487, 0.0006356011726893485, -0.08464041352272034, -0.037796322256326675, 0.00011935335351154208, -0.019317714497447014, 0.09850393235683441, -0.04118923470377922, 0.03757742419838905, 0.0515139065682888, -0.027325719594955444, 0.025063777342438698, 0.002891272772103548, -0.014529329724609852, 0.029040416702628136, 0.014055050909519196, -0.006188418250530958, 0.025611020624637604, -0.021616140380501747, 0.04636981338262558, -0.0034453573171049356, 0.060744088143110275, -0.06282361596822739, 0.06191154196858406, -0.041006822139024734, -0.06286010146141052, 0.027179786935448647, 0.007287466432899237, 0.000027184063583263196, -0.006712860427796841, -0.052973225712776184, -0.028894485905766487, 0.016307871788740158, 0.011182020418345928, 0.005736941937357187, -0.050492383539676666, -0.02652309462428093, -0.016727427020668983, 0.002428395440801978, 0.0018925523618236184, -0.029332280158996582, 0.03515131026506424, -0.009905117563903332, 0.020266272127628326, 0.007406035903841257, -0.034239236265420914, 0.021306034177541733, -0.05071128159761429, 0.06439238041639328, -0.036574143916368484, 0.02333083748817444, -0.0122126629576087, -0.007761744782328606, 0.026596060022711754, -0.04381600767374039, -0.005659415386617184, 0.030116664245724678, 0.06537742167711258, -0.007579329889267683, -0.08091915398836136, -0.0046584149822592735, 0.0022870241664350033, -0.04968975856900215, 0.037084903568029404, -0.024625983089208603, 0.04501994326710701, -0.0010238024406135082, -0.02391456440091133, 0.002378231380134821, -0.015596454963088036, -0.0014342354843392968, -0.01845124550163746, -0.004792945925146341, -0.008432119153439999, -0.042356688529253006, 0.009522046893835068, -0.01776719093322754, -0.0341297872364521, -0.010561809875071049, 0.03735852614045143, -0.07559264451265335, -0.04301338270306587, 0.020649341866374016, -0.004432676825672388, -0.04377952218055725, 0.038307081907987595, 0.0031352522782981396, 0.03874487802386284, 0.031995534896850586, 0.032488055527210236, 0.055417582392692566, -0.019518371671438217, -0.00119481619913131, 0.008505084551870823, 0.015359316021203995, -0.006904395762830973, 0.008080970495939255, 0.044946979731321335, 0.053338054567575455, 0.03651941940188408, 0.014830313622951508, -0.01811377890408039, -0.009029527194797993, 0.08383778482675552, 0.0327981598675251, -0.018661022186279297, 0.024753673002123833, -0.031867846846580505, -0.0031170109286904335, -0.028712071478366852, 0.018770471215248108, -0.09339632093906403, -0.045932017266750336, -0.03874487802386284, -0.002930035814642906, -0.02504553645849228, -0.053593434393405914, 0.006124572828412056, 0.005773424636572599, 0.03808818757534027, -0.03128411993384361, 0.02774527296423912, -0.001174294506199658, 0.018350917845964432, -0.07566560804843903, 0.01886167749762535, -0.009494684636592865, -0.032852884382009506, 0.004284464754164219, 0.03715787082910538, -0.030499735847115517, -0.07227269560098648, -0.06457480043172836, 0.04053254425525665, -0.02851141430437565, -0.015623817220330238, -0.04771967977285385, -0.018715746700763702, 0.043706558644771576, -0.02110537886619568, -0.0024808396119624376, 0.012376836501061916, 0.04024067893624306, -0.010497964918613434, 0.0062887463718652725, -0.026614302769303322, -0.06169264763593674, 0.05636613816022873, 0.00730570824816823, 0.03845301643013954, 0.042101308703422546, 0.03675656020641327, 0.09091547876596451, 0.03153949975967407, -0.013015287928283215, 0.012905838899314404, -0.002048744820058346, -0.02851141430437565, -0.02528267540037632, -0.04892361909151077, 0.07241863012313843, -0.022145142778754234, -0.011473883874714375, 0.06169264763593674, -0.048157475888729095, -0.019664302468299866, 0.044363249093294144, -0.025337399914860725, 0.00016317563131451607, -0.00009975802822737023, 0.013279789127409458, 0.01597040519118309, -0.10915694385766983, 0.07008372247219086, -0.05662151798605919, -0.006981921847909689, -0.004888713359832764, 0.022509971633553505, 0.046077948063611984, -0.006142814643681049, -0.014237466268241405, 0.08631862699985504, 0.002283603884279728, 0.011619815602898598, 0.1174020916223526, 0.003130692057311535, -0.03845301643013954, 0.026559578254818916, -0.012978804297745228, -0.013617255724966526, 0.044946979731321335, 0.04268503561615944, -0.03132060170173645, -0.005376672837883234, 0.021980969235301018, 0.06249526888132095, 0.04863175377249718, 0.011036088690161705, 0.04615091532468796, -0.02971535176038742, 0.04626036435365677, 0.030663907527923584, 0.007629494182765484, 0.03856246545910835, 0.027088580653071404, 0.023768633604049683, 0.02947821281850338, 0.01824146881699562, -0.043341729789972305, -0.009198260493576527, 0.02714330516755581, 0.004674376454204321, 0.00002839541048160754, 0.012951442040503025, 0.017374997958540916, 0.012057610787451267, -0.005841830279678106, -0.03414802998304367, 0.022710628807544708, -0.032615743577480316, -0.055417582392692566, -0.030682150274515152, 0.02725275419652462, -0.004086088854819536, 0.005663976073265076, -0.02614002488553524, -0.02750813402235508, 0.014875917695462704, 0.032232675701379776, 0.00924842432141304, -0.0040815286338329315, 0.03329068049788475, -0.002631331793963909, 0.06410051882266998, 0.04253910481929779, 0.05417716130614281, -0.007871193811297417, 0.013544290326535702, -0.03852597996592522, -0.024844879284501076, 0.008080970495939255, 0.03391088917851448, -0.0737684965133667, -0.008131134323775768, -0.0485587902367115, -0.03268871083855629, -0.01023346371948719, -0.06577873229980469, 0.018542451784014702, -0.05341101810336113, -0.029642386361956596, -0.03365550935268402, 0.0043802326545119286, 0.015231626108288765, -0.005937597714364529, -0.0017317994497716427, -0.06898923218250275, -0.033345405012369156, 0.011382676661014557, -0.0275263749063015, -0.08887243270874023, -0.034093305468559265, 0.06618005037307739, -0.009759185835719109, -0.05337453633546829, -0.002729379804804921, 0.022418765351176262, 0.04272151738405228, 0.006215780507773161, -0.00018882770382333547, 0.004352870397269726, -0.0011720143957063556, 0.008194979280233383, 0.0547608882188797, 0.04702650383114815, -0.04600498452782631, -0.009102492593228817, 0.01504921168088913, 0.03808818757534027, 0.06555983424186707, -0.004054166376590729, 0.04702650383114815, 0.02221810817718506, 0.036045141518116, -0.026614302769303322, 0.027544617652893066, -0.003894553519785404, 0.037176113575696945, 0.0416635125875473, -0.032615743577480316, 0.040386609733104706, 0.019208265468478203, 0.04501994326710701, 0.03936509042978287, 0.013817911967635155, 0.03983936831355095, -0.010844552889466286, -0.0005093360086902976, 0.047792647033929825, 0.0031534938607364893, -0.03418451175093651, -0.04505642503499985, 0.012668699957430363, -0.03354606032371521, 0.07843831181526184, -0.05837269872426987, -0.02847493253648281, -0.017438843846321106, -0.02344028651714325, -0.015623817220330238, 0.05819028243422508, -0.003205938031896949, -0.02418818697333336, 0.05009107291698456, -0.006685498170554638, -0.03184960409998894, 0.0033792320173233747, 0.047281887382268906, 0.008286187425255775, -0.07435222715139389, -0.03699369728565216, -0.07019317150115967, -0.029751835390925407, -0.021488450467586517, 0.003128411713987589, 0.05293674021959305, 0.00026350372354499996, 0.016663581132888794, -0.07183489948511124, -0.06256823986768723, 0.014875917695462704, -0.00903408695012331, 0.08989395946264267, -0.011583331972360611, 0.01388175692409277, -0.034111544489860535, -0.0031352522782981396, 0.022619420662522316, 0.016216665506362915, -0.04782912880182266, -0.043232280761003494, 0.011729263700544834, -0.04801154509186745, 0.0518057681620121, 0.009316829964518547, 0.003575327806174755, -0.004879592917859554, -0.0023919125087559223, 0.012914959341287613, 0.02812834456562996, 0.04538477212190628, -0.006867912597954273, 0.010333791375160217, 0.01419186219573021, 0.0045535266399383545, -0.0057095796801149845, -0.03392913192510605, -0.01875223033130169, -0.06895274668931961, -0.017502689734101295, 0.06213044002652168, 0.04585905000567436, 0.026705509051680565, -0.016362596303224564, 0.024480050429701805, -0.020941205322742462, -0.013836153782904148, 0.08412965387105942, -0.008363713510334492, 0.0014593175146728754, 0.0724915936589241, 0.017904000356793404, -0.011400917544960976, 0.06132781505584717, -0.031867846846580505, 0.0005555097013711929, -0.0075109247118234634, -0.020430443808436394, -0.03329068049788475, -0.001648572739213705, -0.03823411837220192, -0.056548550724983215, 0.011163778603076935, 0.06446535140275955, -0.01633523404598236, 0.012823752127587795, 0.02194448560476303, -0.07402388006448746, 0.011875195428729057, -0.023166663944721222, -0.003620931413024664, -0.024024013429880142, -0.06424645334482193, -0.009713581763207912, 0.026103541254997253, -0.01633523404598236, -0.02477191388607025, -0.03332716226577759, 0.007520045153796673, -0.013288909569382668, -0.02674199268221855, -0.041882410645484924, -0.011738385073840618, -0.01725642941892147, -0.023640943691134453, -0.003449917770922184, 0.023713909089565277, 0.003981200512498617, 0.005422276444733143, -0.01234035287052393, -0.07617637515068054, 0.019573096185922623, 0.052353013306856155, 0.0031854163389652967, -0.06701915711164474, 0.006908955983817577, 0.033728476613759995, -0.002724819350987673, 0.01553261000663042, -0.046077948063611984, 0.023768633604049683, -0.02479015477001667, 0.0020305034704506397, -0.008318109437823296, -0.0017637219280004501, 0.026340680196881294, 0.037084903568029404, -0.0852971076965332, 0.009950720705091953, 0.014447242952883244, 0.041006822139024734, 0.08734015375375748, 0.008258825168013573, -0.013580773025751114, -0.028894485905766487, 0.022181624546647072, -0.0682595744729042, -0.03504186123609543, 0.03276167809963226, 0.010078411549329758, -0.0288580022752285, -0.021926244720816612, -0.05906587466597557, -0.06373569369316101, -0.012905838899314404, -0.012595733627676964, 0.010324670933187008, 0.018770471215248108, -0.022473489865660667, -0.08522413671016693, 0.10054697096347809, 0.0030030016787350178, 0.03427571803331375, -0.044582147151231766, -0.024224670603871346, 0.08347295969724655, -0.004261663183569908, 0.020795274525880814, 0.0014228345826268196, 0.02887624502182007, -0.012294749729335308, 0.03290760889649391, 0.021068895235657692, -0.017548292875289917, -0.0038101866375654936, -0.013471323996782303, -0.021780313923954964, 0.006521325092762709, -0.0015653460286557674, 0.02121482789516449, -0.03436692804098129, -0.009649736806750298, 0.0010027106618508697, -0.017001047730445862, -0.03070039115846157, 0.013051770627498627, -0.022291073575615883, -0.03544317185878754, -0.03812466934323311, 0.04093385487794876, -0.07074041664600372, -0.0020669864024966955, -0.04418083652853966, -0.007095931097865105, 0.04045957699418068, 0.04472808167338371, 0.03640997037291527, -0.05103962868452072, -0.008514204993844032, -0.006735661998391151, -0.0646112784743309, -0.039401572197675705, 0.0277270320802927, 0.05352046713232994, 0.001425114693120122, 0.011829592287540436, 0.014182741753757, 0.003787384834140539, 0.030791599303483963, -0.02159789763391018, 0.018679263070225716, 0.006931758020073175, 0.012942321598529816, -0.05724172666668892, 0.00197805929929018, 0.011574211530387402, -0.005682217422872782, -0.07358608394861221, -0.026669027283787727, 0.0038193073123693466, -0.005677657201886177, 0.012623095884919167, 0.028566138818860054, -0.015040090307593346, 0.007127853576093912, -0.03885432705283165, 0.027416927739977837, -0.044472698122262955, -0.0062841856852173805, -0.017630379647016525, 0.009180018678307533, -0.016645340248942375, -0.004309546668082476, 0.026906166225671768, 0.0685514360666275, 0.039511021226644516, -0.06121836602687836, 0.05107611045241356, 0.005723260808736086, 0.026212990283966064, 0.009198260493576527, 0.044837530702352524, 0.0331447497010231, -0.025921126827597618, 0.031010495498776436, 0.01913530007004738, 0.047792647033929825, 0.02307545766234398, 0.009914238005876541, 0.06847847253084183, -0.00111728988122195, -0.013298030011355877, 0.051988184452056885, -0.026814958080649376, 0.0009280347148887813, 0.017502689734101295, 0.04155406355857849, 0.010871915146708488, 0.015186022035777569, 0.0033678309991955757, 0.0023155263625085354, 0.024206427857279778, -0.02466246485710144, 0.02579343691468239, -0.04720892012119293, 0.03653766214847565, 0.011729263700544834, -0.018843436613678932, 0.03046325221657753, 0.021743830293416977, -0.06942702829837799, 0.03480472043156624, 0.010716862976551056, -0.012595733627676964, -0.05622020363807678, -0.005782545544207096, -0.020284513011574745, -0.023130182176828384, 0.015833593904972076, 0.0012495405972003937, -0.04564015194773674, -0.027818238362669945, -0.02183503843843937, 0.015851836651563644, -0.05797138810157776, 0.0005101910792291164, -0.001792224240489304, 0.03586272522807121, 0.05589186027646065, -0.019098816439509392, -0.031630706042051315, 0.03449461609125137, 0.004756462760269642, -0.021269552409648895, 0.017548292875289917, 0.030007215216755867, -0.0011087392922490835, 0.013453083112835884, -0.028328999876976013, 0.018952885642647743, 0.015578214079141617, 0.0021821355912834406, -0.03008018061518669, 0.021762071177363396, 0.011957282200455666, 0.028310758993029594, 0.03932860493659973, 0.03332716226577759, 0.026231231167912483, -0.04626036435365677, 0.011619815602898598, 0.018551573157310486, 0.027416927739977837, 0.04585905000567436, 0.0035297241993248463, -0.02207217738032341, -0.006808627862483263, -0.0518057681620121, -0.06767584383487701, -0.016435563564300537, 0.012039368972182274, -0.0257569532841444, 0.08770497888326645, 0.002419274765998125, -0.013243306428194046, 0.018168501555919647, 0.019208265468478203, 0.00004090079164598137, 0.020029131323099136, 0.0040815286338329315, 0.025082018226385117, 0.015186022035777569, 0.010643896646797657, -0.030134905129671097, -0.017219945788383484, -0.02626771479845047, -0.0028274275828152895, -0.04024067893624306, 0.0017682823818176985, -0.06749343127012253, 0.0064802817068994045, 0.019828476011753082, 0.05465143918991089, 0.017858397215604782, 0.05293674021959305, 0.025373881682753563, -0.05906587466597557, -0.022619420662522316, -0.04399842023849487, -0.019025851041078568, 0.0038398290053009987, -0.03947453573346138, -0.013252426870167255, 0.059977948665618896, 0.00943996012210846, 0.008792387321591377, -0.039912331849336624, 0.1219259724020958, -0.04279448464512825, 0.03775984048843384, 0.04972624406218529, 0.027198029682040215, -0.04191889241337776, -0.09368818253278732, -0.002831988036632538, -0.006489402148872614, 0.07084986567497253, -0.027672307565808296, -0.04666167497634888, 0.00031609044526703656, 0.02823779359459877, -0.032232675701379776, -0.005933037493377924, 0.01122762355953455, -0.03863542899489403, -0.03329068049788475, -0.00017771180137060583, -0.022163383662700653, 0.013380116783082485, -0.028274275362491608, -0.0534839853644371, -0.0399852991104126, -0.03143005073070526, -0.04228372499346733, 0.039401572197675705, 0.0426485538482666, 0.07785458862781525, -0.007273785304278135, 0.015195143409073353, -0.00005344180317479186, -0.018360037356615067, 0.016535891219973564, 0.005522604566067457, 0.029186349362134933, -0.03686600923538208, 0.0055180443450808525, 0.03980288282036781, 0.002977919764816761, 0.00044178555253893137, -0.03823411837220192, -0.056657999753952026, -0.04275800287723541, 0.004072407726198435, 0.0380152203142643, -0.02761758305132389, -0.024698948487639427, -0.006744782906025648, 0.012860234826803207, -0.03487768769264221, -0.08376482129096985, -0.014757348224520683, -0.09864985942840576, 0.027471650391817093, 0.1033196747303009, -0.001753461197949946, 0.0009947300422936678, -0.00595127884298563, 0.03217795118689537, -0.023713909089565277, -0.0007142674876376987, 0.02862086333334446, 0.0439254567027092, -0.014356035739183426, 0.026048816740512848, 0.0331447497010231, -0.02344028651714325, -0.0505288690328598, 0.08339999616146088, 0.03381968289613724, -0.04801154509186745, -0.004035925026983023, -0.016107216477394104, -0.01639907993376255, -0.012531888671219349, -0.015477885492146015, -0.02084999904036522, -0.02380511537194252, -0.0057916659861803055, -0.006306987721472979, 0.0009833291405811906, -0.032506298273801804, 0.05483385547995567 ]
730,191
mmengine.fileio.backends.memcached_backend
__init__
null
def __init__(self, server_list_cfg, client_cfg, sys_path=None): if sys_path is not None: import sys sys.path.append(sys_path) try: import mc except ImportError: raise ImportError( 'Please install memcached to enable MemcachedBackend.') self.server_list_cfg = server_list_cfg self.client_cfg = client_cfg self._client = mc.MemcachedClient.GetInstance(self.server_list_cfg, self.client_cfg) # mc.pyvector servers as a point which points to a memory cache self._mc_buffer = mc.pyvector()
(self, server_list_cfg, client_cfg, sys_path=None)
[ 0.06579818576574326, -0.05180422216653824, -0.024347225204110146, 0.040995873510837555, -0.0075326599180698395, -0.01628836989402771, -0.006840546149760485, 0.07683407515287399, 0.010116234421730042, -0.011197068728506565, 0.0017409498104825616, 0.07903367280960083, -0.06955266743898392, 0.018999937921762466, 0.009101766161620617, -0.01480933278799057, 0.009220278821885586, -0.0414888858795166, -0.024119680747389793, -0.08229514211416245, -0.026698514819145203, 0.029353197664022446, 0.04641900956630707, 0.1106623113155365, 0.019293848425149918, 0.04217151924967766, 0.012884688563644886, -0.016525395214557648, 0.05935110151767731, 0.011509941890835762, 0.007750723045319319, 0.03458671271800995, -0.04016154631972313, 0.014761927537620068, 0.01368109229952097, -0.007684356067329645, 0.0323302336037159, -0.03813260793685913, -0.07789595425128937, -0.03477633371949196, 0.07979214936494827, -0.043385088443756104, 0.09086596965789795, -0.01656331866979599, 0.019511912018060684, 0.061892010271549225, 0.013349257409572601, 0.02199593558907509, 0.024726465344429016, -0.00833380501717329, -0.03343002870678902, 0.022090746089816093, 0.001995751867070794, 0.01082730945199728, -0.07842689007520676, 0.06306765973567963, 0.02459373138844967, 0.09693381190299988, -0.0658361092209816, 0.04679824784398079, -0.10133299976587296, -0.02402487024664879, 0.01812768541276455, -0.012021916918456554, 0.018108723685145378, -0.01823197677731514, -0.08009554445743561, -0.03111666440963745, 0.05900978669524193, 0.024517882615327835, 0.021389150992035866, 0.027305299416184425, -0.012827802449464798, -0.021597733721137047, 0.010817828588187695, -0.006124730221927166, -0.055217381566762924, 0.03974438086152077, -0.025958996266126633, 0.013937080278992653, 0.0004130163579247892, 0.01488518062978983, -0.00004621990956366062, -0.021180568262934685, 0.080626480281353, -0.03496595099568367, 0.0016840638127177954, -0.015473002567887306, 0.007371482905000448, 0.042854148894548416, -0.05491399019956589, 0.01565314270555973, 0.02738114818930626, 0.014458535239100456, -0.03940306231379509, -0.02499193325638771, -0.0101920822635293, -0.006029920186847448, -0.017264913767576218, 0.05552077665925026, -0.010514436289668083, 0.008182108402252197, -0.041754353791475296, -0.027153603732585907, -0.016259927302598953, -0.00249824533239007, -0.011860739439725876, -0.04736711084842682, -0.025390135124325752, -0.0038753615226596594, -0.007580064702779055, 0.0374310128390789, 0.02256479673087597, -0.011045373044908047, -0.02906876616179943, 0.06333312392234802, -0.06401576101779938, -0.06090598553419113, 0.06598781049251556, 0.01945502497255802, -0.043385088443756104, 0.03411266207695007, -0.0012337160296738148, 0.07797180116176605, 0.007855013944208622, 0.012458043172955513, 0.04122341796755791, -0.035098686814308167, 0.002252924256026745, 0.018838759511709213, 0.07497580349445343, -0.03426435962319374, 0.023190543055534363, 0.0274190716445446, 0.025295326486229897, -0.024100719019770622, 0.003948839381337166, -0.00798774790018797, -0.020990949124097824, 0.016572799533605576, 0.02755180560052395, 0.006778919603675604, 0.020782366394996643, -0.004318598657846451, -0.05347287654876709, -0.009310348890721798, -0.03870147094130516, -0.04520544037222862, -0.02165461890399456, -0.0012988978996872902, -0.00016191782196983695, -0.06348481774330139, -0.02442307397723198, -0.011547866277396679, -0.012903650291264057, 0.008352766744792461, -0.016800343990325928, -0.01369057409465313, 0.039327215403318405, 0.01647798903286457, -0.05957864597439766, 0.042854148894548416, -0.0048684971407055855, -0.01654435694217682, -0.01812768541276455, -0.018734470009803772, -0.06553272157907486, -0.1359197050333023, -0.04592599719762802, 0.013453548774123192, -0.023645630106329918, -0.05567247048020363, -0.008461798541247845, -0.05533115565776825, 0.009509449824690819, -0.025465983897447586, -0.023607706651091576, 0.008329064585268497, 0.029106691479682922, 0.0001678434491623193, 0.0004340523446444422, 0.022640643641352654, -0.0349469892680645, 0.035610660910606384, -0.014961028471589088, 0.04994594305753708, 0.054534751921892166, 0.015937572345137596, 0.055786244571208954, 0.0348142571747303, -0.03420747071504593, 0.025977957993745804, -0.005717047024518251, -0.025769377127289772, -0.03496595099568367, -0.021958012133836746, 0.06200578436255455, 0.0016698422841727734, -0.019492950290441513, 0.05059065297245979, -0.03686215355992317, 0.014486977830529213, -0.008765190839767456, -0.020782366394996643, 0.03128732368350029, 0.02372147887945175, -0.02648993209004402, 0.01277091633528471, -0.0662911981344223, 0.05631718039512634, -0.013842269778251648, -0.006660407409071922, -0.00182864919770509, 0.011822815053164959, 0.017644153907895088, -0.017170103266835213, -0.021692544221878052, 0.05999581143260002, 0.009699069894850254, -0.002028935356065631, 0.09389989078044891, 0.0117469672113657, -0.04615354165434837, 0.014790370129048824, -0.016800343990325928, 0.01888616569340229, 0.014837775379419327, 0.059844113886356354, -0.01554885134100914, 0.01277091633528471, -0.02425241470336914, 0.06928719580173492, 0.03439709171652794, -0.020630670711398125, 0.019720494747161865, -0.06610158085823059, 0.03799987584352493, 0.037487901747226715, -0.047670502215623856, 0.012714030221104622, 0.01518857292830944, 0.017625192180275917, 0.05218346044421196, -0.025048820301890373, -0.02389213629066944, 0.035989902913570404, -0.03238711878657341, -0.00513396505266428, 0.002590685151517391, 0.08881807327270508, -0.006759957876056433, 0.0076464321464300156, 0.02000492438673973, -0.027836235240101814, -0.011519422754645348, 0.010343777947127819, -0.0448261983692646, -0.02461269311606884, -0.002664162777364254, -0.004012836143374443, 0.0038208456244319677, -0.008352766744792461, -0.052486851811409, 0.003263836493715644, 0.04224736616015434, 0.020630670711398125, 0.0015051098307594657, 0.04057870805263519, -0.007423628121614456, 0.0349469892680645, 0.12841075658798218, 0.015425598248839378, 0.05146290361881256, 0.018668102100491524, -0.020953025668859482, -0.03891004994511604, -0.015681585296988487, -0.026584742590785027, -0.06579818576574326, 0.037487901747226715, -0.0022292216308414936, -0.014961028471589088, -0.0017006555572152138, -0.021616695448756218, -0.02072548121213913, -0.0722452700138092, -0.01239167619496584, -0.00011851258750539273, -0.04198189824819565, -0.01804235577583313, -0.023816289380192757, 0.01711321622133255, 0.005778673570603132, -0.01342510525137186, 0.03153382986783981, 0.0005981922731734812, -0.02372147887945175, 0.015359231270849705, 0.02311469428241253, 0.019018899649381638, -0.006740995682775974, -0.010116234421730042, -0.009831803850829601, 0.028461981564760208, 0.051917992532253265, -0.028746413066983223, -0.006461306009441614, 0.04827728495001793, 0.03178033605217934, 0.05184214562177658, 0.04497789591550827, -0.017644153907895088, -0.04418149217963219, 0.011102259159088135, 0.026167578995227814, 0.05013556405901909, -0.03178033605217934, 0.0014529642648994923, 0.011197068728506565, 0.00809203926473856, -0.006831065285950899, 0.0024721724912524223, 0.02000492438673973, 0.04702579230070114, 0.02535221166908741, 0.02000492438673973, 0.036179520189762115, 0.006219540257006884, 0.029884133487939835, 0.07690992951393127, -0.03299390524625778, 0.053965888917446136, -0.023778364062309265, -0.006129470653831959, 0.054496828466653824, 0.0011110554914921522, -0.031040815636515617, -0.030225450173020363, -0.03426435962319374, -0.052828170359134674, 0.04971839860081673, -0.0262434259057045, -0.05059065297245979, -0.01721750758588314, -0.0121072456240654, -0.0144300926476717, 0.009736994281411171, -0.01388967502862215, -0.054345130920410156, 0.014771408401429653, -0.012344270944595337, -0.02256479673087597, 0.009926614351570606, 0.048808224499225616, 0.03847392648458481, -0.016155635938048363, -0.04384017363190651, -0.06215748190879822, -0.02017558179795742, 0.0015892537776380777, 0.011765928938984871, 0.05085612088441849, 0.026129653677344322, 0.017549343407154083, -0.09693381190299988, -0.025409098714590073, -0.005655420478433371, -0.047101642936468124, 0.0660257339477539, -0.01424995344132185, 0.004968047607690096, -0.06924927234649658, -0.0060536228120327, 0.03993400186300278, 0.0369759276509285, -0.03382823243737221, -0.04884614795446396, 0.02372147887945175, -0.045546755194664, 0.009040139615535736, -0.05605171248316765, -0.005318844690918922, 0.034548789262771606, -0.036350179463624954, -0.016051344573497772, 0.057834140956401825, 0.009277164936065674, 0.0008201070595532656, 0.049870096147060394, 0.01360524445772171, 0.0017504309071227908, -0.024726465344429016, -0.02017558179795742, -0.052828170359134674, -0.03149590268731117, 0.02165461890399456, 0.07948876172304153, 0.040464937686920166, 0.053207408636808395, -0.023930061608552933, 0.0450916662812233, -0.007712799124419689, 0.010144677013158798, 0.040275316685438156, -0.01998596265912056, 0.004783167969435453, 0.03589509055018425, 0.03940306231379509, 0.012903650291264057, 0.049680475145578384, 0.0048684971407055855, -0.00611524935811758, -0.018345747143030167, -0.02148396149277687, -0.06591195613145828, -0.004925382789224386, -0.029675550758838654, -0.031192511320114136, 0.0651155561208725, 0.024916086345911026, 0.03799987584352493, 0.015691066160798073, 0.022469986230134964, -0.08077817410230637, -0.00149444374255836, -0.0027163084596395493, 0.01259077712893486, -0.005954072345048189, -0.025048820301890373, -0.04865652695298195, -0.004569845274090767, 0.009945576079189777, 0.02573145180940628, -0.04141303896903992, 0.035060763359069824, 0.0076464321464300156, -0.02260272018611431, -0.04713956639170647, -0.03130628541111946, -0.022507909685373306, -0.02351289615035057, 0.01073249988257885, 0.019085265696048737, 0.007153419777750969, 0.005532167386263609, 0.0020348611287772655, -0.05980619043111801, -0.013975003734230995, 0.0700836032629013, 0.005484762601554394, -0.06667044013738632, 0.016525395214557648, 0.013775902800261974, 0.003105029696598649, 0.0414888858795166, -0.048391059041023254, -0.03716554492712021, -0.0045271809212863445, 0.020042847841978073, 0.01239167619496584, -0.0017290986143052578, -0.013832788914442062, 0.027665577828884125, -0.046001844108104706, -0.0027755647897720337, 0.07216942310333252, 0.04823936149477959, 0.08115741610527039, 0.02736218459904194, -0.028082741424441338, -0.03179929777979851, 0.011813334189355373, -0.0551036112010479, -0.022849226370453835, 0.015615218318998814, -0.009405158460140228, -0.006807362660765648, -0.017947545275092125, -0.03777233138680458, -0.017720000818371773, -0.03925136849284172, 0.036350179463624954, 0.013880194164812565, 0.0023631409276276827, -0.048808224499225616, -0.09503760933876038, 0.0653810203075409, -0.06648082286119461, 0.012164131738245487, -0.02630031295120716, -0.01498947199434042, 0.048201438039541245, -0.000023758069801260717, 0.0010731314541772008, 0.008423874154686928, 0.01977737993001938, 0.017018407583236694, 0.02370251715183258, 0.044674504548311234, 0.023247428238391876, -0.028822259977459908, -0.009371975436806679, -0.02812066674232483, 0.0041882349178195, 0.02796896919608116, 0.02057378552854061, -0.05400381609797478, -0.03369549661874771, -0.020422087982296944, -0.013614725321531296, 0.0021592993289232254, -0.026053806766867638, -0.025826262310147285, -0.0277793500572443, -0.02089613862335682, 0.03794299066066742, -0.08001969754695892, -0.009822322987020016, -0.058782242238521576, -0.02478335238993168, 0.045812223106622696, 0.05351080372929573, 0.021882163360714912, -0.03997192531824112, 0.005053376778960228, -0.03701385110616684, -0.013140675611793995, -0.006357015110552311, 0.06503970921039581, 0.04035116359591484, -0.02260272018611431, -0.02372147887945175, -0.05828922986984253, 0.017056331038475037, 0.01945502497255802, 0.0007152234320528805, 0.004259342327713966, -0.010078310035169125, 0.03388511762022972, -0.06905965507030487, 0.013320814818143845, -0.016383180394768715, 0.04679824784398079, -0.059654492884874344, -0.03775336965918541, 0.008139444515109062, -0.016525395214557648, 0.02404383383691311, -0.05199383944272995, -0.00911598838865757, 0.035838205367326736, -0.04384017363190651, -0.019891152158379555, -0.06139899790287018, 0.006740995682775974, -0.007437849882990122, 0.028917070478200912, -0.052676472812891006, 0.010049867443740368, 0.03678630664944649, 0.04782219976186752, -0.00044264449388720095, -0.08684602379798889, 0.07607559859752655, 0.008888443931937218, -0.009310348890721798, 0.0029485931154340506, 0.009262943640351295, 0.020308315753936768, 0.011756448075175285, 0.03845496475696564, -0.028594715520739555, 0.033790308982133865, 0.06310558319091797, -0.015340268611907959, 0.040616631507873535, 0.01687619276344776, -0.010230006650090218, 0.07835104316473007, -0.008518684655427933, -0.019910113885998726, 0.028784336522221565, 0.027324261143803596, -0.00298888748511672, -0.008082558400928974, 0.009068583138287067, -0.021142644807696342, -0.009964537806808949, -0.003944098949432373, 0.027438033372163773, -0.003676260355859995, 0.020080773159861565, -0.008912146091461182, 0.0044702948071062565, -0.03678630664944649, 0.0007679615519009531, -0.011329802684485912, 0.02925838716328144, 0.023057809099555016, 0.025428060442209244, -0.04019946977496147, 0.009926614351570606, 0.004017576575279236, -0.0443711131811142, 0.017226988449692726, -0.034340206533670425, -0.0741414725780487, 0.00025450577959418297, -0.031932029873132706, 0.034738410264253616, -0.0522213838994503, 0.0160323828458786, -0.006674628704786301, 0.014458535239100456, 0.04274037852883339, -0.029827246442437172, 0.005224034655839205, 0.05161460116505623, 0.023209504783153534, -0.00961374118924141, 0.0039346176199615, 0.016108229756355286, 0.034681521356105804, -0.0010310595389455557, -0.03720347210764885, 0.012277903966605663, 0.012458043172955513, -0.04088209941983223, 0.01488518062978983, 0.05851677432656288, 0.04167850688099861, 0.014363724738359451, 0.015852242708206177, 0.03978230431675911, 0.03189410641789436, -0.02664162963628769, 0.02740010991692543, 0.012258941307663918, 0.06526724994182587, 0.0617782399058342, -0.0020834512542933226, -0.019293848425149918, 0.02793104574084282, -0.06788400560617447, -0.07383807748556137, -0.026527857407927513, 0.002609647111967206, -0.005427876487374306, 0.08320531249046326, 0.023209504783153534, -0.0017468754667788744, -0.000028628195650526322, 0.00005351583968149498, 0.03327833488583565, -0.02611069194972515, 0.003330203704535961, -0.021692544221878052, 0.02906876616179943, 0.025845224037766457, -0.029941018670797348, -0.04804974049329758, -0.008708304725587368, 0.029277348890900612, -0.02700190804898739, -0.0015454040840268135, -0.06966643780469894, 0.014837775379419327, -0.0022517391480505466, 0.02719152718782425, 0.06014750525355339, 0.06579818576574326, 0.010789385996758938, -0.0717901811003685, 0.030642613768577576, -0.02165461890399456, -0.03464359790086746, -0.041754353791475296, -0.004342301283031702, -0.027798311784863472, 0.06435707211494446, -0.015046358108520508, 0.012619219720363617, -0.04694994539022446, 0.03132524713873863, -0.024897122755646706, 0.03301286697387695, 0.024688541889190674, 0.05461059883236885, -0.032671548426151276, -0.029827246442437172, -0.017264913767576218, 0.003887212835252285, 0.05593793839216232, -0.014069814234972, -0.041754353791475296, 0.004901680629700422, 0.0021794463973492384, -0.06560856848955154, -0.026433046907186508, 0.03416954725980759, -0.05605171248316765, 0.009694329462945461, -0.04391602426767349, 0.03928929194808006, -0.01647798903286457, -0.02391109988093376, -0.05188006907701492, -0.01687619276344776, -0.008765190839767456, -0.06211955472826958, 0.051349133253097534, 0.040427014231681824, 0.10095375776290894, 0.009983500465750694, 0.02389213629066944, 0.030054790899157524, 0.03724139556288719, 0.00040857214480638504, -0.021901125088334084, -0.01979634165763855, -0.007101274095475674, -0.022906111553311348, 0.002295588841661811, -0.009405158460140228, 0.03640706464648247, -0.07383807748556137, -0.05309363827109337, -0.043764326721429825, 0.01452490221709013, 0.0017409498104825616, -0.03627433255314827, -0.05571039393544197, -0.0010310595389455557, -0.004925382789224386, 0.004223788622766733, -0.08123326301574707, -0.01903786137700081, -0.05002178996801376, 0.02408175729215145, 0.0906384214758873, -0.023607706651091576, -0.034340206533670425, 0.004598288331180811, 0.0548381432890892, -0.08532906323671341, 0.012581296265125275, 0.019341254606842995, 0.005029674153774977, -0.011860739439725876, 0.01831730455160141, -0.01164267584681511, -0.01998596265912056, -0.019910113885998726, 0.06443291902542114, -0.007319337222725153, -0.05351080372929573, -0.03868250921368599, -0.019929075613617897, -0.03388511762022972, -0.0361226350069046, 0.008902665227651596, -0.002379732672125101, 0.007267191540449858, -0.03940306231379509, 0.005574831739068031, -0.015425598248839378, 0.006375976838171482, 0.03312663733959198 ]
730,192
mmengine.fileio.backends.memcached_backend
get
Get values according to the filepath. Args: filepath (str or Path): Path to read data. Returns: bytes: Expected bytes object. Examples: >>> server_list_cfg = '/path/of/server_list.conf' >>> client_cfg = '/path/of/mc.conf' >>> backend = MemcachedBackend(server_list_cfg, client_cfg) >>> backend.get('/path/of/file') b'hello world'
def get(self, filepath: Union[str, Path]): """Get values according to the filepath. Args: filepath (str or Path): Path to read data. Returns: bytes: Expected bytes object. Examples: >>> server_list_cfg = '/path/of/server_list.conf' >>> client_cfg = '/path/of/mc.conf' >>> backend = MemcachedBackend(server_list_cfg, client_cfg) >>> backend.get('/path/of/file') b'hello world' """ filepath = str(filepath) import mc self._client.Get(filepath, self._mc_buffer) value_buf = mc.ConvertBuffer(self._mc_buffer) return value_buf
(self, filepath: Union[str, pathlib.Path])
[ 0.06903810054063797, -0.06078638508915901, -0.0601143017411232, 0.015317945741117, 0.013983109034597874, -0.007724314462393522, -0.005768732633441687, 0.011294768191874027, 0.04887554049491882, -0.058098044246435165, -0.0006592503632418811, 0.04592583328485489, -0.06298933178186417, -0.006207454949617386, 0.04603784531354904, 0.02357899397611618, 0.004286877810955048, -0.02677140012383461, 0.03689001873135567, 0.001422347268089652, 0.001851735170930624, 0.0014596853870898485, 0.05742596089839935, 0.07049428671598434, -0.013945771381258965, -0.003479441860690713, 0.009717234410345554, -0.05690322816371918, 0.03341757878661156, 0.02763017639517784, 0.034724410623311996, -0.04581381753087044, -0.020591948181390762, -0.00046264208503998816, -0.029347727075219154, 0.014953899197280407, 0.01352571789175272, -0.008321723900735378, -0.06855270266532898, -0.02227216213941574, -0.0013640065444633365, 0.0029707106295973063, 0.0990205779671669, -0.017306197434663773, 0.005484029650688171, 0.0138617604970932, -0.041295912116765976, 0.004384890198707581, -0.00991325918585062, 0.021301371976733208, 0.08654966205358505, 0.032913513481616974, -0.05458826571702957, -0.023989712819457054, -0.021936118602752686, 0.019845187664031982, -0.02160007692873478, 0.04394691437482834, -0.025669926777482033, 0.07811125367879868, -0.022944247350096703, -0.06720853596925735, 0.04282677173614502, -0.03830886632204056, 0.014440500177443027, 0.002898368053138256, -0.009978600777685642, -0.035471171140670776, 0.023747015744447708, 0.0009025312610901892, 0.016830136999487877, -0.01361906249076128, -0.040810517966747284, -0.038644906133413315, -0.014664528891444206, -0.02770485170185566, -0.0010682189604267478, 0.03819685056805611, -0.023803023621439934, 0.012704280205070972, -0.02169342152774334, -0.03091592714190483, 0.02940373495221138, -0.014169799163937569, 0.007668307051062584, -0.010351981036365032, 0.04693396016955376, -0.030561214312911034, -0.02216014824807644, 0.05596977472305298, -0.0033254222944378853, -0.003999841399490833, -0.029833121225237846, 0.06978486478328705, 0.02817157842218876, -0.07523622363805771, 0.02828359231352806, 0.03707670792937279, -0.0161953903734684, 0.043536197394132614, -0.02770485170185566, -0.0012624936643987894, 0.057799339294433594, -0.01474853977560997, 0.01259226631373167, -0.008863125927746296, 0.008214376866817474, 0.010874714702367783, 0.02856362797319889, -0.00871377345174551, -0.04364820942282677, 0.0186410341411829, -0.02535255253314972, 0.02602463774383068, -0.009143161587417126, 0.056492507457733154, -0.06788062304258347, -0.006613506469875574, 0.011481458321213722, -0.006548164878040552, -0.016531432047486305, 0.026883414015173912, -0.0027770192828029394, 0.015252604149281979, 0.044208280742168427, 0.09155295789241791, 0.025427229702472687, -0.05742596089839935, 0.018669037148356438, 0.04320015385746956, 0.01530861109495163, 0.018398337066173553, 0.04891287907958031, 0.04058648645877838, 0.004030178301036358, 0.02826492302119732, 0.04021310806274414, -0.022888239473104477, 0.04909956827759743, 0.054812293499708176, 0.05231064185500145, -0.028022225946187973, 0.06377343088388443, -0.06724587082862854, 0.020591948181390762, -0.034052323549985886, 0.07546024769544601, -0.08841656148433685, -0.047867413610219955, 0.024251079186797142, 0.00835439469665289, 0.009978600777685642, -0.03177470341324806, -0.02385902963578701, 0.028582297265529633, 0.008975139819085598, -0.000536734820343554, 0.031214630231261253, -0.03972771391272545, -0.03418300673365593, -0.05455092713236809, 0.04443230852484703, 0.010996063239872456, -0.04943561181426048, 0.03149466589093208, 0.027312802150845528, -0.03898094967007637, 0.01658743992447853, -0.01417913381010294, 0.007024225313216448, -0.08871527016162872, 0.003915830515325069, -0.06347472965717316, 0.002991713350638747, 0.0796794518828392, -0.07803657650947571, -0.0060721044428646564, 0.05018237233161926, 0.05966624245047569, 0.01286296732723713, -0.025576582178473473, -0.036292608827352524, -0.03089725784957409, 0.058023370802402496, 0.05910617485642433, 0.04114655777812004, 0.038943611085414886, 0.016886144876480103, 0.05279603973031044, 0.021749429404735565, 0.0001076386688509956, 0.013096329756081104, -0.018930403515696526, -0.01570066064596176, -0.02290690876543522, -0.08961138129234314, 0.07863398641347885, -0.028134239837527275, -0.045515112578868866, 0.0647815614938736, 0.018622364848852158, -0.05821006000041962, 0.0044175609946250916, -0.018678372725844383, -0.010557340458035469, -0.011201422661542892, 0.03224142640829086, 0.009110490791499615, -0.0407731793820858, 0.07254788279533386, -0.04454432427883148, -0.02546456642448902, -0.006170116830617189, -0.01926644705235958, 0.04603784531354904, -0.0026883413083851337, -0.07538557052612305, 0.045589789748191833, -0.04017576947808266, 0.023541657254099846, 0.10820574313402176, 0.028582297265529633, -0.015345948748290539, 0.055932436138391495, 0.009138493798673153, 0.005021971184760332, -0.01409512385725975, 0.0017898939549922943, -0.0973777025938034, 0.0011458122171461582, 0.03616192564368248, 0.03722606226801872, 0.09640690684318542, -0.020703962072730064, 0.024475108832120895, 0.0163074042648077, 0.0018400669796392322, 0.03942900896072388, 0.007504953071475029, 0.056231141090393066, 0.040997207164764404, 0.011649479158222675, 0.026883414015173912, 0.04820345342159271, -0.022664211690425873, -0.008116364479064941, 0.016923483461141586, 0.022234823554754257, -0.00844773929566145, 0.016344742849469185, 0.05484963208436966, -0.003939167130738497, -0.003166735405102372, 0.0013103330275043845, 0.005740729160606861, -0.00308972573839128, -0.023971043527126312, -0.06459487229585648, 0.015691326931118965, -0.0065948376432061195, -0.0034817755222320557, 0.0018295657355338335, 0.020031876862049103, -0.013749746605753899, -0.0021002667490392923, -0.00018435674428474158, -0.018669037148356438, 0.03143865987658501, -0.0002973919326905161, 0.03149466589093208, -0.08124765008687973, 0.0871470645070076, 0.009488538838922977, -0.011537465266883373, -0.038831599056720734, -0.06433350592851639, 0.03660998120903969, 0.03233477473258972, -0.011061404831707478, -0.01850101538002491, -0.10387452691793442, 0.0016347075579687953, 0.008919132873415947, -0.06605105847120285, -0.021749429404735565, -0.017278194427490234, -0.010071945376694202, -0.03711404651403427, -0.020517272874712944, 0.025800609961152077, 0.00721091590821743, -0.021450724452733994, -0.07034493237733841, -0.07960477471351624, 0.0503317266702652, -0.03713271766901016, -0.053206756711006165, -0.03627394139766693, 0.08938734978437424, 0.007686976343393326, -0.009311182424426079, -0.02423241175711155, 0.047867413610219955, 0.03156934306025505, 0.0030850584153085947, 0.004881953354924917, 0.01586868241429329, -0.011761493980884552, -0.013451041653752327, 0.04693396016955376, 0.028787655755877495, -0.02791021205484867, 0.002791021019220352, 0.01234956830739975, 0.03134531527757645, -0.0013395034475252032, -0.013553720898926258, 0.06410947442054749, 0.029273051768541336, 0.008265716023743153, -0.014617856591939926, -0.012050863355398178, 0.03502311557531357, 0.002334796590730548, 0.026622047647833824, 0.011014732532203197, 0.02921704389154911, 0.023130938410758972, 0.021861443296074867, 0.02518453262746334, 0.04387223720550537, 0.03672199696302414, -0.015084582380950451, -0.0037221394013613462, 0.048315469175577164, 0.004223869647830725, -0.016559436917304993, -0.03224142640829086, 0.00012156752200098708, 0.015672657638788223, 0.09252375364303589, -0.09192634373903275, 0.00631480198353529, 0.0044058929197490215, -0.006020764820277691, 0.021021336317062378, 0.04387223720550537, -0.010996063239872456, -0.01259226631373167, -0.007775654084980488, 0.0013313357485458255, -0.012853632681071758, -0.011593472212553024, 0.03324955701828003, -0.01943446882069111, -0.021152019500732422, -0.02104000560939312, -0.002963709644973278, 0.0026673388201743364, 0.024456439539790154, -0.016316737979650497, 0.018529020249843597, -0.020703962072730064, 0.012134874239563942, -0.04790475219488144, -0.031905386596918106, 0.010669355280697346, 0.015280607156455517, 0.019770510494709015, 0.009773241356015205, -0.0022461186163127422, 0.03205473721027374, -0.0167741309851408, 0.023597663268446922, 0.002394304145127535, -0.04215468838810921, -0.06201854348182678, -0.02105867490172386, -0.009381191805005074, 0.06354940682649612, -0.009199168533086777, 0.007364935241639614, -0.0014141795691102743, -0.0016615443164482713, -0.012060198001563549, 0.02572593465447426, 0.006352140102535486, -0.02346698008477688, -0.04159461706876755, 0.004550578072667122, 0.04215468838810921, -0.01943446882069111, -0.013264351524412632, -0.0358818918466568, -0.04853949695825577, -0.0025669927708804607, 0.09222504496574402, 0.036778002977371216, 0.07034493237733841, -0.007486284244805574, 0.009241173975169659, -0.03455638885498047, -0.062242571264505386, 0.0657150149345398, -0.028115570545196533, -0.00042151185334660113, 0.02912369929254055, 0.007304260972887278, -0.04069850221276283, -0.03435102850198746, -0.012424244545400143, -0.016503429040312767, 0.012722949497401714, -0.015280607156455517, -0.0036684658844023943, 0.0066695138812065125, -0.04331216588616371, -0.030113156884908676, 0.028582297265529633, 0.023877698928117752, -0.038271527737379074, -0.03830886632204056, 0.011864173226058483, -0.06067437306046486, 0.017763588577508926, -0.021077344194054604, 0.012228219769895077, -0.026528703048825264, -0.030113156884908676, 0.021189358085393906, 0.030971933156251907, -0.05727660655975342, -0.021749429404735565, -0.029161036014556885, 0.012041529640555382, 0.0020675959531217813, -0.03166268765926361, -0.04095986858010292, 0.03707670792937279, -0.021656082943081856, -0.016624778509140015, 0.016176721081137657, 0.0075142877176404, -0.007364935241639614, -0.029907798394560814, -0.04092252999544144, -0.03679667413234711, -0.0036894686054438353, 0.0836372897028923, -0.056492507457733154, -0.0678059458732605, -0.030411861836910248, 0.06601371616125107, -0.011574802920222282, 0.028881000354886055, -0.0014410163275897503, -0.04872618988156319, -0.01558864675462246, -0.008909798227250576, -0.028134239837527275, -0.0010711359791457653, -0.000038650741771562025, 0.04021310806274414, -0.11343307048082352, -0.0015343615086749196, -0.019005080685019493, 0.016998158767819405, 0.08191973716020584, -0.01385242585092783, -0.03905562683939934, -0.010435991920530796, -0.03061722218990326, -0.0745641365647316, -0.014076454564929008, 0.032558802515268326, -0.01717551425099373, 0.008391732349991798, 0.020703962072730064, -0.05559639260172844, -0.07493751496076584, -0.02996380627155304, -0.017390208318829536, -0.03741275146603584, 0.043349504470825195, -0.0005790318828076124, -0.044096268713474274, 0.05193726345896721, 0.01235890295356512, 0.04506705701351166, -0.05399085581302643, -0.032353442162275314, 0.0875951275229454, -0.003488776506856084, -0.04603784531354904, 0.011108077131211758, 0.040997207164764404, -0.001968416618183255, 0.006394145544618368, 0.007556293159723282, 0.05966624245047569, -0.03569519892334938, -0.029329057782888412, 0.0018797387601807714, 0.038644906133413315, -0.04865151271224022, 0.003743142122402787, -0.008681102655827999, -0.004433896392583847, -0.0011358942138031125, -0.022682880982756615, 0.013264351524412632, 0.050219710916280746, -0.03061722218990326, -0.011565469205379486, -0.0398397259414196, 0.024176403880119324, -0.04256540536880493, -0.008321723900735378, -0.06145847216248512, 0.01719418354332447, 0.015485966578125954, 0.006258795037865639, 0.004065182991325855, -0.002555324463173747, 0.00030599720776081085, -0.040437135845422745, -0.052833378314971924, -0.08348793536424637, -0.026080645620822906, 0.032745491713285446, 0.019089091569185257, -0.01319900993257761, 0.00025480319163762033, 0.03879426047205925, 0.006422149017453194, -0.07560960203409195, 0.021861443296074867, 0.01056667510420084, -0.07583363354206085, -0.04320015385746956, 0.013497713953256607, -0.01915443316102028, 0.006608839146792889, -0.02443777024745941, -0.011537465266883373, -0.01231223065406084, -0.018062293529510498, -0.01381508819758892, 0.056679196655750275, -0.027126111090183258, 0.001320834388025105, -0.07975412905216217, -0.0031807373743504286, -0.024288417771458626, -0.0167741309851408, -0.001943913521245122, 0.00465325778350234, -0.01803429052233696, -0.023821692913770676, -0.018482347950339317, 0.07116637378931046, 0.005610045976936817, -0.08087427169084549, 0.052758701145648956, -0.01644742302596569, 0.027126111090183258, 0.013404369354248047, 0.056044451892375946, 0.028582297265529633, -0.05119050294160843, 0.02471780590713024, 0.05238531902432442, 0.052833378314971924, 0.010417322628200054, 0.06015164032578468, 0.05563373118638992, 0.019005080685019493, 0.0011948184110224247, 0.025688596069812775, 0.016372745856642723, 0.002081597689539194, 0.005596044007688761, 0.027760859578847885, 0.056380495429039, 0.029609093442559242, 0.027163449674844742, 0.004293878562748432, 0.006776860449463129, -0.02443777024745941, -0.003327755955979228, 0.02509118616580963, -0.003082724753767252, 0.014972568489611149, 0.021581407636404037, 0.027387477457523346, 0.025501905009150505, -0.030561214312911034, 0.027592837810516357, 0.022048134356737137, 0.013217678293585777, -0.01742754690349102, -0.03916764259338379, 0.0010956391924992204, 0.007845663465559483, -0.032726824283599854, 0.03972771391272545, -0.00307805766351521, -0.017950279638171196, 0.01708216965198517, 0.04398425295948982, -0.03580721467733383, -0.034407034516334534, -0.007266922853887081, 0.03627394139766693, 0.052459996193647385, 0.044768352061510086, -0.01722218655049801, 0.02647269517183304, -0.04812877997756004, -0.04876352474093437, 0.049398273229599, 0.010837376117706299, 0.01446850411593914, 0.04704597592353821, 0.001481854822486639, 0.014449834823608398, -0.0021749429870396852, -0.02346698008477688, -0.02572593465447426, 0.06059969589114189, 0.04342418164014816, -0.0003739641688298434, 0.032073408365249634, 0.059330202639102936, 0.018342329189181328, -0.03455638885498047, 0.05137719213962555, 0.0075002857483923435, 0.011266764253377914, 0.023522987961769104, -0.021562738344073296, -0.007831661030650139, -0.006020764820277691, -0.02216014824807644, -0.02791021205484867, -0.0014841884840279818, 0.004618253093212843, -0.02544589899480343, 0.08251714706420898, -0.02609931491315365, -0.015177927911281586, 0.0075422911904752254, -0.0007193413330242038, 0.01470186747610569, 0.00704289460554719, -0.03328689560294151, 0.09267310053110123, 0.013581724837422371, -0.01178016234189272, 0.014524511061608791, -0.03485509380698204, -0.00384115451015532, 0.009129159152507782, -0.06937414407730103, -0.06265328824520111, -0.051787909120321274, -0.020050546154379845, 0.01570066064596176, 0.0650055855512619, 0.021189358085393906, 0.05018237233161926, 0.04618719965219498, -0.04499237984418869, -0.023242952302098274, -0.010884049348533154, -0.011602806858718395, -0.02367234043776989, -0.04349885880947113, -0.022122809663414955, 0.019863856956362724, 0.03834620490670204, 0.0265660397708416, -0.015579312108457088, 0.0815463587641716, -0.027368810027837753, -0.0011318103643134236, 0.05193726345896721, 0.044208280742168427, 0.0012589931720867753, -0.03632994741201401, -0.019789179787039757, -0.027294132858514786, 0.015756668522953987, -0.008004349656403065, -0.007374269887804985, 0.048614174127578735, 0.033025529235601425, -0.013227012939751148, 0.0027210123371332884, 0.03965303674340248, -0.06679781526327133, -0.039316993206739426, 0.012872301042079926, 0.0023873031605035067, -0.006165449507534504, -0.05036906525492668, -0.016783464699983597, -0.031158624216914177, -0.06911277770996094, -0.023691007867455482, -0.0034234346821904182, 0.040997207164764404, 0.02404572069644928, -0.03646063059568405, -0.0038831597194075584, -0.006389478221535683, -0.07490018010139465, 0.031905386596918106, -0.0037314738146960735, 0.036292608827352524, -0.04924892261624336, 0.005568040534853935, 0.023149605840444565, 0.011108077131211758, 0.02667805552482605, 0.005105981603264809, -0.023877698928117752, -0.020927991718053818, -0.05738862231373787, 0.041295912116765976, 0.015784671530127525, -0.05757531151175499, 0.04342418164014816, -0.027182118967175484, -0.034407034516334534, -0.05025704950094223, -0.06354940682649612, -0.07796189934015274, 0.08520548790693283, 0.06814198940992355, -0.0161953903734684, 0.022981585934758186, -0.005652050953358412, 0.01295631192624569, -0.03806616738438606, -0.035359159111976624, 0.028526289388537407, 0.029907798394560814, -0.009535211138427258, 0.013507048599421978, -0.015812674537301064, -0.012442913837730885, -0.008027685806155205, 0.04454432427883148, 0.011537465266883373, -0.02535255253314972, -0.03927965462207794, -0.021469393745064735, -0.019602488726377487, 0.016204724088311195, 0.006193453446030617, 0.02809690125286579, -0.014011112973093987, 0.04226670041680336, -0.04237871617078781, 0.004454899113625288, -0.04271475970745087, 0.039989080280065536 ]
730,194
mmengine.logging.message_hub
MessageHub
Message hub for component interaction. MessageHub is created and accessed in the same way as ManagerMixin. ``MessageHub`` will record log information and runtime information. The log information refers to the learning rate, loss, etc. of the model during training phase, which will be stored as ``HistoryBuffer``. The runtime information refers to the iter times, meta information of runner etc., which will be overwritten by next update. Args: name (str): Name of message hub used to get corresponding instance globally. log_scalars (dict, optional): Each key-value pair in the dictionary is the name of the log information such as "loss", "lr", "metric" and their corresponding values. The type of value must be HistoryBuffer. Defaults to None. runtime_info (dict, optional): Each key-value pair in the dictionary is the name of the runtime information and their corresponding values. Defaults to None. resumed_keys (dict, optional): Each key-value pair in the dictionary decides whether the key in :attr:`_log_scalars` and :attr:`_runtime_info` will be serialized. Note: Key in :attr:`_resumed_keys` belongs to :attr:`_log_scalars` or :attr:`_runtime_info`. The corresponding value cannot be set repeatedly. Examples: >>> # create empty `MessageHub`. >>> message_hub1 = MessageHub('name') >>> log_scalars = dict(loss=HistoryBuffer()) >>> runtime_info = dict(task='task') >>> resumed_keys = dict(loss=True) >>> # create `MessageHub` from data. >>> message_hub2 = MessageHub( >>> name='name', >>> log_scalars=log_scalars, >>> runtime_info=runtime_info, >>> resumed_keys=resumed_keys)
class MessageHub(ManagerMixin): """Message hub for component interaction. MessageHub is created and accessed in the same way as ManagerMixin. ``MessageHub`` will record log information and runtime information. The log information refers to the learning rate, loss, etc. of the model during training phase, which will be stored as ``HistoryBuffer``. The runtime information refers to the iter times, meta information of runner etc., which will be overwritten by next update. Args: name (str): Name of message hub used to get corresponding instance globally. log_scalars (dict, optional): Each key-value pair in the dictionary is the name of the log information such as "loss", "lr", "metric" and their corresponding values. The type of value must be HistoryBuffer. Defaults to None. runtime_info (dict, optional): Each key-value pair in the dictionary is the name of the runtime information and their corresponding values. Defaults to None. resumed_keys (dict, optional): Each key-value pair in the dictionary decides whether the key in :attr:`_log_scalars` and :attr:`_runtime_info` will be serialized. Note: Key in :attr:`_resumed_keys` belongs to :attr:`_log_scalars` or :attr:`_runtime_info`. The corresponding value cannot be set repeatedly. Examples: >>> # create empty `MessageHub`. >>> message_hub1 = MessageHub('name') >>> log_scalars = dict(loss=HistoryBuffer()) >>> runtime_info = dict(task='task') >>> resumed_keys = dict(loss=True) >>> # create `MessageHub` from data. >>> message_hub2 = MessageHub( >>> name='name', >>> log_scalars=log_scalars, >>> runtime_info=runtime_info, >>> resumed_keys=resumed_keys) """ def __init__(self, name: str, log_scalars: Optional[dict] = None, runtime_info: Optional[dict] = None, resumed_keys: Optional[dict] = None): super().__init__(name) self._log_scalars = self._parse_input('log_scalars', log_scalars) self._runtime_info = self._parse_input('runtime_info', runtime_info) self._resumed_keys = self._parse_input('resumed_keys', resumed_keys) for value in self._log_scalars.values(): assert isinstance(value, HistoryBuffer), \ ("The type of log_scalars'value must be HistoryBuffer, but " f'got {type(value)}') for key in self._resumed_keys.keys(): assert key in self._log_scalars or key in self._runtime_info, \ ('Key in `resumed_keys` must contained in `log_scalars` or ' f'`runtime_info`, but got {key}') @classmethod def get_current_instance(cls) -> 'MessageHub': """Get latest created ``MessageHub`` instance. :obj:`MessageHub` can call :meth:`get_current_instance` before any instance has been created, and return a message hub with the instance name "mmengine". Returns: MessageHub: Empty ``MessageHub`` instance. """ if not cls._instance_dict: cls.get_instance('mmengine') return super().get_current_instance() def update_scalar(self, key: str, value: Union[int, float, np.ndarray, 'torch.Tensor'], count: int = 1, resumed: bool = True) -> None: """Update :attr:_log_scalars. Update ``HistoryBuffer`` in :attr:`_log_scalars`. If corresponding key ``HistoryBuffer`` has been created, ``value`` and ``count`` is the argument of ``HistoryBuffer.update``, Otherwise, ``update_scalar`` will create an ``HistoryBuffer`` with value and count via the constructor of ``HistoryBuffer``. Examples: >>> message_hub = MessageHub(name='name') >>> # create loss `HistoryBuffer` with value=1, count=1 >>> message_hub.update_scalar('loss', 1) >>> # update loss `HistoryBuffer` with value >>> message_hub.update_scalar('loss', 3) >>> message_hub.update_scalar('loss', 3, resumed=False) AssertionError: loss used to be true, but got false now. resumed keys cannot be modified repeatedly' Note: The ``resumed`` argument needs to be consistent for the same ``key``. Args: key (str): Key of ``HistoryBuffer``. value (torch.Tensor or np.ndarray or int or float): Value of log. count (torch.Tensor or np.ndarray or int or float): Accumulation times of log, defaults to 1. `count` will be used in smooth statistics. resumed (str): Whether the corresponding ``HistoryBuffer`` could be resumed. Defaults to True. """ self._set_resumed_keys(key, resumed) checked_value = self._get_valid_value(value) assert isinstance(count, int), ( f'The type of count must be int. but got {type(count): {count}}') if key in self._log_scalars: self._log_scalars[key].update(checked_value, count) else: self._log_scalars[key] = HistoryBuffer([checked_value], [count]) def update_scalars(self, log_dict: dict, resumed: bool = True) -> None: """Update :attr:`_log_scalars` with a dict. ``update_scalars`` iterates through each pair of log_dict key-value, and calls ``update_scalar``. If type of value is dict, the value should be ``dict(value=xxx) or dict(value=xxx, count=xxx)``. Item in ``log_dict`` has the same resume option. Note: The ``resumed`` argument needs to be consistent for the same ``log_dict``. Args: log_dict (str): Used for batch updating :attr:`_log_scalars`. resumed (bool): Whether all ``HistoryBuffer`` referred in log_dict should be resumed. Defaults to True. Examples: >>> message_hub = MessageHub.get_instance('mmengine') >>> log_dict = dict(a=1, b=2, c=3) >>> message_hub.update_scalars(log_dict) >>> # The default count of `a`, `b` and `c` is 1. >>> log_dict = dict(a=1, b=2, c=dict(value=1, count=2)) >>> message_hub.update_scalars(log_dict) >>> # The count of `c` is 2. """ assert isinstance(log_dict, dict), ('`log_dict` must be a dict!, ' f'but got {type(log_dict)}') for log_name, log_val in log_dict.items(): if isinstance(log_val, dict): assert 'value' in log_val, \ f'value must be defined in {log_val}' count = self._get_valid_value(log_val.get('count', 1)) value = log_val['value'] else: count = 1 value = log_val assert isinstance(count, int), ('The type of count must be int. but got ' f'{type(count): {count}}') self.update_scalar(log_name, value, count, resumed) def update_info(self, key: str, value: Any, resumed: bool = True) -> None: """Update runtime information. The key corresponding runtime information will be overwritten each time calling ``update_info``. Note: The ``resumed`` argument needs to be consistent for the same ``key``. Examples: >>> message_hub = MessageHub(name='name') >>> message_hub.update_info('iter', 100) Args: key (str): Key of runtime information. value (Any): Value of runtime information. resumed (bool): Whether the corresponding ``HistoryBuffer`` could be resumed. """ self._set_resumed_keys(key, resumed) self._runtime_info[key] = val
(name: str, log_scalars: Optional[dict] = None, runtime_info: Optional[dict] = None, resumed_keys: Optional[dict] = None)
[ 0.02331327274441719, -0.06832233816385269, -0.11067873239517212, 0.0212536808103323, 0.019398972392082214, 0.001439556828700006, -0.061032894998788834, 0.00019881519256159663, 0.018633363768458366, -0.010777805931866169, -0.012249711900949478, 0.02777751535177231, 0.0354120209813118, 0.03161633387207985, -0.03608057647943497, 0.035282619297504425, 0.07298067957162857, -0.006545400712639093, -0.00099272804800421, -0.02255844883620739, -0.0015419971896335483, -0.026936426758766174, 0.0140397222712636, 0.08945740014314651, -0.012476159259676933, -0.0235289353877306, 0.02376616559922695, 0.021383080631494522, 0.024262193590402603, 0.02695799246430397, -0.0485675185918808, -0.060213372111320496, 0.01658455654978752, -0.01673552207648754, -0.01563563570380211, -0.057582274079322815, -0.0298478901386261, -0.015657201409339905, -0.1400952935218811, -0.012486942112445831, 0.05831553041934967, 0.010777805931866169, 0.030926208943128586, -0.012023264542222023, 0.015646418556571007, 0.051112353801727295, -0.00025947068934328854, 0.07884673774242401, 0.0005118648987263441, -0.02609533630311489, -0.02296821027994156, -0.01951758749783039, -0.045850154012441635, 0.05447671189904213, -0.044081710278987885, 0.04619521647691727, 0.04324062168598175, 0.0030327741988003254, -0.03485129401087761, 0.010815546847879887, -0.028036313131451607, 0.019183307886123657, 0.0017738359747454524, 0.009683310985565186, 0.02406809665262699, -0.08272869139909744, 0.00027345513808541, 0.00907945167273283, -0.02797161415219307, -0.016670823097229004, -0.01637967675924301, -0.04425423964858055, 0.022881943732500076, 0.013834841549396515, -0.049041979014873505, -0.031379103660583496, -0.011015036143362522, 0.05831553041934967, 0.000027168602173333056, -0.004450764507055283, 0.07505105435848236, -0.002585271606221795, 0.0031486935913562775, -0.060774099081754684, 0.025426778942346573, -0.0011571717914193869, 0.010475875809788704, 0.029718490317463875, -0.026936426758766174, 0.009273549541831017, -0.044383637607097626, -0.02473665401339531, 0.009095626883208752, 0.05978204309940338, 0.01289670355618, -0.05249260365962982, -0.048826318234205246, -0.03918613865971565, 0.0018547099316492677, 0.012724172323942184, -0.03677070140838623, 0.008507942780852318, -0.01097729429602623, -0.0051004523411393166, -0.02857547253370285, -0.03756865859031677, -0.011494887992739677, -0.0023264747578650713, 0.07047897577285767, -0.00915493443608284, -0.03157320246100426, 0.037094198167324066, -0.035390451550483704, -0.019894998520612717, -0.03413960337638855, 0.049602705985307693, -0.040782053023576736, 0.006556184031069279, 0.018018722534179688, 0.04082518443465233, -0.027993179857730865, 0.030365483835339546, -0.02068217284977436, 0.020391026511788368, 0.0480499267578125, 0.011095909401774406, 0.03605901077389717, -0.009198066778481007, 0.030732112005352974, -0.04735980182886124, -0.01599148102104664, -0.03597274422645569, 0.04274459183216095, 0.03004198707640171, 0.06642449647188187, -0.01739329658448696, -0.01031951978802681, -0.021221332252025604, -0.03905674070119858, 0.030322350561618805, 0.03196139633655548, 0.04375821352005005, 0.004272841848433018, -0.006254254374653101, 0.027842214331030846, -0.011015036143362522, 0.05098295584321022, 0.04244266450405121, -0.03312598168849945, -0.03476502746343613, 0.02214868739247322, -0.040286023169755936, -0.005801360122859478, 0.08255615830421448, -0.007672244682908058, -0.04319748654961586, 0.0003669656871352345, -0.01805107109248638, -0.006167988758534193, -0.010810155421495438, 0.001771140145137906, -0.03435526415705681, 0.03454936295747757, -0.04718726873397827, -0.043822914361953735, 0.026979560032486916, -0.011699768714606762, 0.014104422181844711, -0.04688534140586853, 0.056115757673978806, -0.013371163979172707, -0.0521044097840786, -0.020369458943605423, 0.01719919964671135, -0.009893583133816719, 0.06241314485669136, -0.017867757007479668, -0.01419068779796362, 0.01694040186703205, 0.002835980849340558, 0.001870884676463902, -0.01825595274567604, -0.043370019644498825, -0.017630526795983315, -0.046497147530317307, 0.011505670845508575, -0.004480418283492327, -0.0212536808103323, 0.03267308697104454, 0.05206127464771271, -0.032241757959127426, -0.02083313651382923, 0.04740293323993683, -0.036447204649448395, 0.012982969172298908, 0.054908040910959244, -0.0008902876870706677, -0.024046529084444046, 0.024650389328598976, 0.041493743658065796, 0.00533768255263567, -0.004723040387034416, 0.04168783873319626, -0.036900099366903305, -0.03282405063509941, -0.04371508210897446, 0.036943234503269196, 0.0637071281671524, -0.047618597745895386, -0.014449483714997768, -0.05965264514088631, -0.011149825528264046, -0.0017509215977042913, 0.07608623802661896, 0.025556176900863647, -0.05482177436351776, 0.03625310957431793, -0.0012185012456029654, 0.004973749630153179, -0.036943234503269196, 0.14440856873989105, -0.028295109048485756, -0.03485129401087761, 0.0009698137873783708, -0.021436994895339012, -0.0025084412191063166, 0.026828594505786896, -0.010254820808768272, 0.039488065987825394, -0.0030759070068597794, 0.03172416612505913, 0.03403177112340927, -0.012368327006697655, 0.01436321809887886, -0.00369863654486835, 0.00593075854703784, -0.025814974680542946, 0.041450608521699905, 0.005618045572191477, 0.026893293485045433, 0.005111235193908215, -0.0035099305678159, 0.02564244344830513, 0.05219067260622978, -0.01937740482389927, -0.0687967985868454, 0.05188874527812004, 0.05594322830438614, -0.08057204633951187, -0.006620883010327816, 0.02575027383863926, 0.01781384088099003, -0.014179904013872147, -0.0051220185123384, -0.01988421566784382, -0.037051066756248474, 0.018849028274416924, 0.01774914190173149, 0.034269001334905624, -0.04917137697339058, -0.03105560690164566, -0.0025879673194140196, -0.04943017661571503, 0.05482177436351776, -0.016153229400515556, 0.00517054321244359, 0.012389893643558025, 0.023701466619968414, -0.020865486934781075, 0.06564810127019882, 0.012195795774459839, 0.014762196689844131, -0.02301134169101715, 0.016099313274025917, -0.04710100591182709, -0.04257206246256828, -0.005159759894013405, -0.030667413026094437, -0.014643581584095955, 0.022795679047703743, 0.01876276358962059, -0.0306027140468359, 0.030106686055660248, -0.03271621838212013, 0.050206564366817474, 0.009521562606096268, 0.019808733835816383, -0.037352994084358215, 0.010896421037614346, -0.0174579955637455, 0.021879106760025024, -0.0016053484287112951, -0.013425080105662346, 0.04425423964858055, -0.005254112649708986, 0.0059577166102826595, -0.0657343715429306, 0.03094777651131153, 0.0295890923589468, -0.015872865915298462, 0.05723721161484718, 0.017835408449172974, 0.031120305880904198, -0.008502551354467869, -0.019388187676668167, -0.0470578707754612, 0.04080361872911453, -0.0014921248657628894, 0.019970480352640152, -0.004812001716345549, 0.020423375070095062, 0.09575478732585907, 0.026224736124277115, 0.025060150772333145, 0.008610382676124573, -0.006982120219618082, 0.02083313651382923, 0.004714952781796455, 0.021081149578094482, 0.05948011577129364, -0.0018991905963048339, 0.026289435103535652, 0.035066958516836166, 0.011645852588117123, -0.020595906302332878, -0.036900099366903305, 0.03769805654883385, -0.0306027140468359, 0.00593075854703784, -0.04796366021037102, -0.05598635971546173, 0.004262058530002832, 0.015409188345074654, -0.0012117617297917604, 0.0041326601058244705, -0.020196927711367607, -0.054606109857559204, 0.010578316636383533, 0.026850160211324692, -0.039164572954177856, 0.03198296204209328, -0.0328671857714653, -0.05771167203783989, 0.03530418872833252, 0.028036313131451607, -0.029718490317463875, 0.07656069844961166, -0.0034587103873491287, 0.05469237640500069, -0.015204307623207569, -0.030128251761198044, -0.03470032662153244, 0.0034290566109120846, 0.022536881268024445, 0.056072626262903214, -0.058444928377866745, -0.043520983308553696, -0.11214525252580643, -0.0047014737501740456, -0.02073608711361885, -0.0009057885617949069, 0.036231543868780136, -0.025577742606401443, 0.033363211899995804, -0.03256525471806526, 0.020714521408081055, -0.017587393522262573, 0.017662877216935158, 0.056417688727378845, -0.020218495279550552, 0.001100560068152845, -0.05068102478981018, 0.002252340316772461, 0.06694208830595016, -0.015452321618795395, 0.050206564366817474, -0.003706723917275667, 0.03319067880511284, -0.03752552717924118, 0.006750281434506178, 0.08885354548692703, -0.00737031502649188, -0.031896695494651794, -0.0060062408447265625, 0.03823721781373024, 0.052837666124105453, 0.04874005168676376, -0.018978426232933998, 0.007753118872642517, 0.000870743184350431, 0.024391591548919678, 0.03144380450248718, -0.02443472482264042, -0.03482972830533981, -0.06180928647518158, 0.000647665758151561, 0.053484655916690826, 0.05184561014175415, -0.007461972534656525, -0.07561177760362625, -0.02281724475324154, -0.0060493736527860165, -0.0199812650680542, 0.018169686198234558, 0.008863788098096848, -0.028489205986261368, 0.026677628979086876, 0.037094198167324066, -0.031228138133883476, 0.008960836566984653, 0.030085120350122452, -0.07612936943769455, -0.06987511366605759, -0.022838812321424484, -0.004499289207160473, -0.040997713804244995, -0.014622014947235584, -0.061119161546230316, -0.009785751812160015, 0.06996138393878937, -0.0073271822184324265, 0.056072626262903214, 0.0038657761178910732, 0.02924402989447117, 0.02038024179637432, 0.045591358095407486, -0.0859636440873146, 0.006184163503348827, 0.002849459880962968, 0.03172416612505913, -0.008362369611859322, -0.031896695494651794, -0.03213392570614815, -0.017975589260458946, -0.03329851105809212, -0.05909191817045212, 0.009446080774068832, 0.01774914190173149, -0.012551641091704369, 0.0328887514770031, -0.006599316839128733, -0.01582973264157772, 0.07229055464267731, 0.014481834135949612, 0.005677353125065565, 0.0005135497776791453, -0.005655786953866482, 0.026375699788331985, -0.05180247873067856, 0.002941116923466325, -0.010804763063788414, 0.007666853256523609, 0.000021924430257058702, 0.019183307886123657, 0.016670823097229004, -0.0824698880314827, -0.050810426473617554, -0.04244266450405121, 0.04259362816810608, -0.029049932956695557, -0.005378119647502899, 0.0076884194277226925, -0.06672642379999161, 0.007720768917351961, -0.021674226969480515, 0.024499423801898956, 0.08535978943109512, -0.02771281637251377, -0.033967070281505585, 0.021674226969480515, 0.040286023169755936, 0.014729847200214863, 0.036296240985393524, -0.019409755244851112, -0.056719616055488586, -0.04930077865719795, 0.03262995555996895, -0.00663705775514245, -0.0657775029540062, -0.02861860580742359, 0.030430182814598083, -0.024154361337423325, 0.039164572954177856, -0.007003686390817165, 0.0034155775792896748, 0.002784760668873787, 0.04011349380016327, -0.02311917394399643, 0.07552551478147507, 0.010524400509893894, -0.08298748731613159, -0.005634220317006111, 0.02154482714831829, 0.004555900581181049, -0.05417478084564209, -0.03666286915540695, -0.0002859232190530747, 0.023097608238458633, 0.037654925137758255, -0.01484846230596304, -0.019183307886123657, -0.021965373307466507, -0.02159874327480793, -0.004609816707670689, 0.03267308697104454, -0.014072071760892868, 0.00528376642614603, 0.04809305816888809, -0.012982969172298908, -0.032198626548051834, -0.02084391936659813, 0.01952837035059929, -0.023550502955913544, 0.005275679286569357, -0.04516002908349037, -0.07617250084877014, -0.04684220626950264, 0.008270712569355965, -0.032047662883996964, -0.056978411972522736, 0.060170240700244904, 0.03914300724864006, 0.04121337831020355, -0.05451984331011772, -0.007925650104880333, -0.03228489309549332, -0.03935866802930832, -0.07060837745666504, 0.02245061658322811, 0.060774099081754684, -0.014384784735739231, -0.0252973809838295, -0.005623437464237213, 0.07410213351249695, 0.025685574859380722, -0.01598069816827774, 0.03086150996387005, -0.037762757390737534, -0.1036912202835083, -0.011516454629600048, -0.029567526653409004, 0.008410893380641937, -0.030559580773115158, -0.024542557075619698, 0.005785185378044844, 0.022127119824290276, 0.028057878836989403, 0.044426772743463516, -0.0011147130280733109, -0.09161404520273209, -0.02553461119532585, -0.02579340711236, 0.017339380457997322, -0.007057602517306805, -0.03211236000061035, -0.02083313651382923, 0.029524393379688263, -0.009952890686690807, 0.02266628108918667, -0.017975589260458946, -0.00663705775514245, 0.003520713886246085, -0.01699431799352169, 0.0020488074515014887, 0.026828594505786896, 0.002690407680347562, -0.03864697739481926, 0.03784902021288872, -0.01567876897752285, 0.03672756999731064, -0.002554269740357995, 0.014158337377011776, 0.005623437464237213, -0.04537569358944893, 0.036598172038793564, 0.012627123855054379, 0.004755389876663685, 0.009872016496956348, 0.04688534140586853, -0.013004535809159279, 0.03860384598374367, 0.03733142837882042, -0.008211405016481876, -0.03243585675954819, 0.07656069844961166, 0.05046536400914192, -0.046152085065841675, 0.06767534464597702, 0.00981270894408226, 0.062240611761808395, -0.06098976358771324, 0.06284447014331818, -0.028812702745199203, -0.023032909259200096, 0.04063108563423157, 0.03485129401087761, 0.0003231589507777244, -0.006513051223009825, 0.010589099489152431, 0.04093301668763161, -0.061119161546230316, 0.022321218624711037, -0.023852432146668434, -0.011139042675495148, -0.03316911309957504, -0.07237681746482849, 0.013554478995501995, 0.07069464027881622, 0.041644707322120667, 0.038258783519268036, -0.0212536808103323, 0.02367990091443062, -0.007052211090922356, 0.042464230209589005, 0.035843346267938614, -0.05029283091425896, -0.024650389328598976, 0.05555503070354462, 0.07746648788452148, 0.003318528877571225, 0.03196139633655548, -0.010362652130424976, -0.06073096767067909, -0.018989210948348045, -0.07022017985582352, 0.019970480352640152, 0.0015649114502593875, -0.07561177760362625, -0.04162314161658287, -0.03094777651131153, 0.013791709206998348, -0.0034074902068823576, 0.03144380450248718, -0.016681605949997902, 0.044685568660497665, 0.011365490034222603, 0.006178772076964378, 0.008890746161341667, 0.0073972730897367, 0.022472182288765907, 0.029222464188933372, -0.0015500845620408654, -0.006971336901187897, -0.05180247873067856, -0.01791089028120041, 0.04981837049126625, 0.019797949120402336, -0.039833128452301025, 0.08160723745822906, 0.03334164619445801, 0.013802492059767246, 0.008313844911754131, -0.035735514014959335, 0.03595117852091789, 0.03737455978989601, 0.0596957802772522, 0.011365490034222603, 0.01208796352148056, 0.029093066230416298, -0.0032053054310381413, -0.03511008992791176, -0.008184446953237057, 0.04233483225107193, -0.01249772496521473, -0.013004535809159279, -0.0048254807479679585, 0.0041757929138839245, 0.03482972830533981, 0.049602705985307693, 0.015366056002676487, 0.011980132199823856, -0.0612054280936718, -0.015765033662319183, -0.019043125212192535, -0.0005138867418281734, 0.013554478995501995, -0.002748367376625538, 0.03142223507165909, 0.01368387695401907, -0.04308965429663658, 0.02823041006922722, 0.053484655916690826, -0.049085114151239395, 0.052880797535181046, -0.005812143441289663, 0.016509074717760086, 0.01297218631953001, 0.013468213379383087, 0.012939836829900742, -0.05482177436351776, 0.020520424470305443, -0.0177060104906559, -0.009138759225606918, -0.04308965429663658, -0.04774799570441246, -0.048783183097839355, -0.05805673450231552, -0.044685568660497665, -0.016918836161494255, -0.038064684718847275, 0.0042135342955589294, 0.002548878313973546, -0.002029936760663986, -0.02229965105652809, -0.009979848749935627, 0.032090794295072556, -0.06664016097784042, -0.016401242464780807, 0.02089783549308777, -0.020552773028612137, 0.032953448593616486, 0.03230645880103111, 0.009845059365034103, -0.05840179696679115, 0.022191818803548813, 0.04123494401574135, -0.022321218624711037, 0.023442670702934265, -0.056072626262903214, 0.027087390422821045, -0.022127119824290276, 0.0414721742272377, 0.07367080450057983, 0.031185006722807884, 0.03608057647943497, -0.018999993801116943, 0.041105546057224274, 0.014330868609249592, 0.06284447014331818, 0.0068635051138699055, -0.010686147958040237, -0.008691256865859032, -0.09756636619567871, -0.012357544153928757, 0.08561858534812927, -0.05162994936108589, -0.00015635635645594448, -0.04302495718002319, 0.05154368281364441, 0.02691485919058323, 0.008389327675104141, -0.0485675185918808, -0.020412592217326164, 0.017307031899690628, -0.002474743640050292, -0.026224736124277115, 0.024413159117102623, 0.010637624189257622, 0.0013842929620295763, -0.052923932671546936, 0.05180247873067856, -0.012357544153928757, -0.05948011577129364, 0.005057319533079863, 0.0306027140468359, -0.07009077817201614, 0.005828318186104298, -0.014460267499089241, 0.015269007533788681, -0.02473665401339531, 0.032047662883996964, -0.013770142570137978, 0.06176615133881569, 0.02695799246430397, -0.0010351869277656078, 0.03974686563014984, -0.019539153203368187, 0.016767870634794235 ]
730,195
mmengine.logging.message_hub
__init__
null
def __init__(self, name: str, log_scalars: Optional[dict] = None, runtime_info: Optional[dict] = None, resumed_keys: Optional[dict] = None): super().__init__(name) self._log_scalars = self._parse_input('log_scalars', log_scalars) self._runtime_info = self._parse_input('runtime_info', runtime_info) self._resumed_keys = self._parse_input('resumed_keys', resumed_keys) for value in self._log_scalars.values(): assert isinstance(value, HistoryBuffer), \ ("The type of log_scalars'value must be HistoryBuffer, but " f'got {type(value)}') for key in self._resumed_keys.keys(): assert key in self._log_scalars or key in self._runtime_info, \ ('Key in `resumed_keys` must contained in `log_scalars` or ' f'`runtime_info`, but got {key}')
(self, name: str, log_scalars: Optional[dict] = None, runtime_info: Optional[dict] = None, resumed_keys: Optional[dict] = None)
[ -0.01857345923781395, -0.02280787192285061, -0.0848751962184906, -0.0015738833462819457, -0.03247317299246788, -0.0291080791503191, -0.039147280156612396, 0.03213666379451752, -0.02473345398902893, 0.026004713028669357, 0.030211081728339195, 0.08883853256702423, 0.022433971986174583, 0.030323252081871033, -0.012348032556474209, -0.005234593525528908, 0.0699939951300621, 0.009025000035762787, -0.02678990177810192, -0.020246660336852074, -0.016021594405174255, -0.006571284495294094, -0.0313514769077301, 0.09160538762807846, 0.010422449558973312, 0.04606442153453827, 0.00018738793733064085, 0.009244666434824467, -0.013301475904881954, 0.02634122222661972, -0.03088410198688507, -0.014376437291502953, -0.002186143770813942, 0.058889176696538925, -0.00038792076520621777, -0.0690966323018074, -0.005622514057904482, -0.00185781333129853, -0.09295142441987991, 0.02340611070394516, 0.06206732243299484, 0.00018972480029333383, -0.021106628701090813, -0.029444588348269463, -0.03258534520864487, 0.020882289856672287, 0.010712221264839172, 0.0017608330817893147, -0.006917141377925873, -0.0503268763422966, -0.014282962307333946, -0.0009902495658025146, -0.0005701967747882009, 0.02020926959812641, -0.018807146698236465, 0.051261626183986664, 0.06565675884485245, 0.02163008786737919, -0.029014604166150093, 0.02310699038207531, -0.0406428799033165, 0.025986017659306526, 0.03011760674417019, 0.013918410055339336, 0.013637985102832317, -0.05354241281747818, -0.01813412830233574, -0.041315898299217224, -0.008351980708539486, -0.0008512056665495038, -0.0027785408310592175, -0.025200828909873962, -0.06487157195806503, 0.0006034972029738128, -0.031388867646455765, -0.02252744697034359, -0.046176593750715256, 0.039446402341127396, -0.0162272397428751, -0.03948378935456276, 0.02839767001569271, -0.009366183541715145, -0.05892656743526459, -0.046587880700826645, 0.0015107877552509308, -0.021985292434692383, 0.013357561081647873, -0.012815406545996666, -0.014871854335069656, 0.039857689291238785, -0.09377400577068329, -0.006141299847513437, -0.03310880437493324, 0.05548669025301933, 0.02966892719268799, -0.012170430272817612, -0.022845260798931122, -0.06262817233800888, -0.002373093506321311, 0.02708902209997177, -0.02062055841088295, -0.042923666536808014, -0.02824810892343521, -0.0073798419907689095, -0.05189725384116173, -0.016470273956656456, -0.005832832772284746, -0.0345483161509037, 0.05458933115005493, -0.03718430921435356, -0.03718430921435356, 0.06722713261842728, -0.02514474280178547, 0.0024069782812148333, -0.052420713007450104, 0.06662889569997787, -0.0009814862860366702, -0.008889461867511272, -0.0008477003430016339, 0.02473345398902893, 0.006253469735383987, -0.0022013334091752768, -0.0027154453564435244, 0.09310098737478256, 0.027724649757146835, -0.002308829687535763, -0.011385240592062473, 0.0013308486668393016, 0.04355929419398308, -0.026416001841425896, 0.05515018105506897, -0.02972501330077648, -0.0011660992167890072, 0.018461288884282112, 0.04509228467941284, -0.008496866561472416, 0.039857689291238785, 0.019124960526823997, -0.03550175949931145, 0.015479440800845623, 0.05443977192044258, -0.017077861353754997, -0.009338140487670898, -0.0362495593726635, -0.04269932582974434, 0.019386690109968185, 0.049055617302656174, -0.012918229214847088, -0.01783500798046589, 0.03763298690319061, 0.014666208997368813, -0.013422993011772633, -0.047784361988306046, 0.03866121172904968, 0.02411651983857155, -0.04445665329694748, -0.006487156730145216, -0.0353522002696991, 0.027575090527534485, -0.00007952667510835454, 0.013366908766329288, -0.04561574384570122, 0.024621283635497093, -0.0655071958899498, -0.04378363490104675, 0.018479984253644943, -0.00421104347333312, -0.023780010640621185, -0.0038932289462536573, 0.0316505953669548, 0.01367537584155798, -0.026378612965345383, -0.0017713489942252636, 0.023293940350413322, -0.004531194921582937, 0.01463816687464714, -0.01469425205141306, 0.0028299521654844284, 0.012609762139618397, -0.010553314350545406, 0.019517555832862854, -0.017031123861670494, -0.05354241281747818, -0.0032061885576695204, 0.020003624260425568, 0.017788270488381386, -0.05926307663321495, 0.004201695788651705, 0.019386690109968185, 0.05204681679606438, -0.04187674820423126, -0.010973951779305935, 0.023480890318751335, -0.01192739512771368, 0.051299016922712326, 0.006940510123968124, -0.008908156305551529, 0.005220572464168072, 0.01190869975835085, 0.00036864157300442457, 0.015563568100333214, 0.0433349572122097, -0.00080505246296525, -0.03963335230946541, -0.009174560196697712, -0.00010588951408863068, 0.0066928016021847725, 0.0333518385887146, -0.028771569952368736, 0.013198653236031532, -0.03232361376285553, -0.01522705890238285, -0.026864681392908096, 0.014974676072597504, -0.004190011881291866, -0.002057615900412202, 0.029332417994737625, 0.007375168148428202, 0.009029673412442207, -0.013348213396966457, 0.2078881412744522, -0.005547734443098307, -0.018779104575514793, 0.0251634381711483, -0.0030262493528425694, 0.02050838991999626, 0.06068389490246773, -0.011974132619798183, -0.020695339888334274, 0.03041672706604004, -0.0256121177226305, -0.03690388426184654, -0.027537699788808823, -0.015918772667646408, -0.01770414225757122, 0.04505489394068718, -0.004213380161672831, 0.05021470785140991, 0.004049799405038357, 0.00373198464512825, 0.005837506614625454, 0.0439331941306591, -0.01404927484691143, 0.014030580408871174, 0.01740502379834652, -0.08352915942668915, 0.03202449530363083, 0.05357980355620384, -0.08524909615516663, 0.009352162480354309, 0.04516706243157387, 0.006720844190567732, -0.02499518357217312, -0.020433610305190086, 0.002493442501872778, 0.021274883300065994, 0.03236100450158119, -0.021854428574442863, 0.07111569494009018, -0.07223738729953766, 0.018620196729898453, -0.009048368781805038, -0.004087189212441444, 0.035333506762981415, -0.012759321369230747, -0.01785370334982872, 0.037408649921417236, -0.043222784996032715, -0.021611392498016357, 0.032828379422426224, 0.014825116842985153, 0.013161263428628445, -0.007655593100935221, 0.03116452693939209, -0.011067425832152367, -0.03408094123005867, -0.01669461466372013, -0.025556033477187157, -0.0007629887550137937, 0.052458103746175766, 0.05526234954595566, -0.013918410055339336, 0.030323252081871033, -0.008043513633310795, 0.0652080774307251, -0.02428477443754673, -0.02177964709699154, -0.05604754015803337, -0.0050242748111486435, -0.027593785896897316, 0.040904607623815536, 0.0661054402589798, -0.013067788444459438, 0.014180139638483524, 0.03013630211353302, 0.023368719965219498, 0.015974856913089752, 0.0055664293467998505, 0.00782384816557169, -0.00936150923371315, 0.05309373512864113, -0.03223013877868652, 0.08936198800802231, -0.023798706009984016, -0.03613739088177681, -0.06199254095554352, 0.02708902209997177, -0.00994572788476944, 0.020863594487309456, 0.008524909615516663, 0.043970584869384766, 0.0970643162727356, -0.018536068499088287, 0.0037693746853619814, -0.0162272397428751, 0.029762402176856995, 0.004603637848049402, 0.006505852099508047, 0.00892685167491436, 0.039595961570739746, -0.00771635165438056, 0.03350139781832695, 0.009403573349118233, -0.03772646188735962, -0.030809322372078896, -0.04640093073248863, 0.012703237123787403, -0.03873599320650101, 0.00735179940238595, -0.012095649726688862, -0.060197826474905014, 0.025761678814888, 0.02809854969382286, 0.03813775256276131, 0.006519873160868883, -0.007936017587780952, -0.04711133986711502, 0.03630564361810684, 0.017778923735022545, -0.03800688683986664, 0.03699735924601555, -0.0705922320485115, -0.0043162028305232525, 0.018479984253644943, 0.015404661186039448, -0.061356913298368454, 0.06771320849657059, -0.047896530479192734, 0.04841998964548111, 0.010590704157948494, -0.061356913298368454, -0.058029208332300186, -0.021405749022960663, 0.012002174742519855, 0.06457244604825974, -0.05028948560357094, -0.05088772624731064, -0.07466773688793182, 0.006945183966308832, -0.030622372403740883, 0.04524184390902519, 0.038249921053647995, -0.04520445317029953, 0.017797617241740227, -0.02005971036851406, -0.020433610305190086, 0.018994096666574478, -0.008263180032372475, 0.026453392580151558, -0.0015960836317390203, 0.0009785651927813888, -0.04711133986711502, -0.01303039863705635, 0.01008594036102295, -0.03428658843040466, 0.04348451644182205, 0.03806297108530998, 0.014254920184612274, -0.03996986150741577, -0.025350388139486313, 0.007473316974937916, 0.022602226585149765, -0.0005707810050807893, 0.0005406937561929226, -0.045690521597862244, 0.028341583907604218, -0.025219524279236794, 0.01665722392499447, 0.09407312422990799, 0.055785808712244034, 0.046737439930438995, 0.013114525936543941, 0.02867809496819973, -0.03948378935456276, 0.002556537976488471, 0.011001993902027607, 0.0415402390062809, 0.04662527143955231, -0.03438006341457367, -0.018470637500286102, -0.03570740669965744, -0.005715989042073488, -0.04019419848918915, 0.00042852392653003335, 0.005491649266332388, -0.010973951779305935, 0.04202630743384361, 0.004510163329541683, -0.004841999150812626, 0.006337597034871578, 0.07313475012779236, -0.06524547189474106, -0.02503257431089878, -0.025256913155317307, -0.03933423012495041, -0.029930656775832176, -0.0003341727133374661, -0.04729828983545303, -0.004968190100044012, 0.04516706243157387, -0.0027762041427195072, 0.0690966323018074, 0.02779943123459816, 0.04284888505935669, 0.057430967688560486, 0.09721387922763824, -0.07836934179067612, 0.011301113292574883, 0.03660476580262184, -0.028453754261136055, -0.027762040495872498, 0.06756364554166794, -0.03989508002996445, -0.013179958797991276, 0.012553676962852478, -0.028472449630498886, -0.008506214246153831, 0.03279098868370056, -0.008370676077902317, 0.014404479414224625, -0.00004294002428650856, -0.063712477684021, 0.09489569813013077, 0.03540828451514244, -0.01946147158741951, 0.013105178251862526, -0.006258143577724695, 0.048083480447530746, -0.04636354371905327, 0.0025284956209361553, 0.010347669944167137, 0.0016439894679933786, -0.037240393459796906, -0.04449404403567314, 0.00790797546505928, -0.05088772624731064, -0.0397455208003521, 0.014647514559328556, 0.023593060672283173, -0.021312274038791656, 0.009487700648605824, -0.008062209002673626, -0.0024326839484274387, -0.04254976660013199, -0.02211615815758705, 0.021312274038791656, 0.0488312803208828, -0.0009902495658025146, -0.024228690192103386, -0.0015937467105686665, 0.016713310033082962, 0.03058498166501522, 0.01609637401998043, -0.0012560687027871609, -0.07649984210729599, -0.009515742771327496, 0.08255701512098312, -0.015479440800845623, -0.015685085207223892, -0.02177964709699154, 0.019947540014982224, -0.03133277967572212, -0.0017479803645983338, 0.011030036024749279, 0.029594147577881813, -0.025574728846549988, -0.03411833196878433, -0.026004713028669357, 0.056683167815208435, 0.02634122222661972, -0.06517069041728973, 0.016292672604322433, -0.010815043933689594, 0.031239306554198265, 0.04284888505935669, -0.02793029509484768, 0.05866483598947525, 0.047933921217918396, 0.0415402390062809, 0.02196659706532955, -0.02764987014234066, -0.022134851664304733, -0.004563911352306604, -0.006753560155630112, 0.010787001810967922, -0.010450491681694984, 0.015395313501358032, -0.002126553561538458, -0.04494272544980049, -0.04023158922791481, -0.020097099244594574, 0.0008301737834699452, -0.00980551540851593, 0.0253129992634058, -0.06831144541501999, -0.06199254095554352, -0.06266555935144424, 0.01933060586452484, -0.056234490126371384, 0.015526178292930126, 0.02514474280178547, 0.054065871983766556, 0.019405385479331017, -0.08861418813467026, -0.0008465319406241179, -0.057131849229335785, 0.01742371916770935, -0.05096250772476196, 0.04475577548146248, 0.007211587391793728, -0.01796587184071541, -0.051411185413599014, 0.0006105078500695527, 0.04082982987165451, -0.013488425873219967, 0.06045955419540405, 0.0482330396771431, 0.005842179991304874, -0.038399484008550644, -0.0313514769077301, 0.034454841166734695, 0.04655049368739128, -0.005673925392329693, 0.008122967556118965, -0.013105178251862526, 0.009123148396611214, -0.017591973766684532, 0.09325054287910461, 0.004573258571326733, -0.05077555775642395, -0.0011684360215440392, -0.03626825660467148, -0.0022106810938566923, -0.01235737930983305, -0.06561937183141708, -0.04550357162952423, 0.05077555775642395, -0.02400434948503971, 0.018629543483257294, -0.007440600544214249, 0.01944277621805668, -0.006856382824480534, -0.010160719975829124, 0.0065479157492518425, -0.012506939470767975, -0.020414914935827255, -0.016217892989516258, 0.016629181802272797, -0.01520836353302002, 0.03310880437493324, 0.03088410198688507, -0.006234774831682444, 0.020227964967489243, 0.017788270488381386, 0.02368653565645218, -0.009964422322809696, 0.014806421473622322, 0.05586059018969536, 0.006183363497257233, -0.028322890400886536, 0.0439331941306591, 0.03746473416686058, -0.05324329435825348, -0.07807022333145142, 0.04535401239991188, 0.021555308252573013, -0.055785808712244034, 0.03669824078679085, 0.037072136998176575, 0.0582161583006382, -0.055075399577617645, 0.043521907180547714, -0.012591066770255566, -0.00842208694666624, -0.03419311344623566, 0.014124054461717606, 0.03486613184213638, -0.023630451411008835, -0.03376312926411629, -0.006519873160868883, -0.08494997769594193, 0.03193102031946182, -0.016451578587293625, -0.02514474280178547, -0.04378363490104675, -0.06475939601659775, 0.008464151062071323, 0.09280186146497726, -0.009824209846556187, 0.03978291153907776, 0.018405204638838768, 0.01163762342184782, 0.004306855145841837, 0.05167291685938835, 0.03213666379451752, -0.02587384730577469, -0.014124054461717606, 0.05526234954595566, 0.072499118745327, 0.02032143995165825, -0.013039746321737766, -0.03288446366786957, -0.00475086085498333, 0.05488845333456993, -0.1033458337187767, 0.023518281057476997, 0.0014780715573579073, -0.08480041474103928, -0.009674650616943836, -0.07537814974784851, 0.03873599320650101, -0.030678456649184227, 0.02196659706532955, -0.019386690109968185, 0.006206732243299484, 0.010244847275316715, 0.043073225766420364, 0.014563387259840965, 0.01565704308450222, 0.033594872802495956, -0.0037647008430212736, -0.021443137899041176, 0.0015808939933776855, -0.02677120640873909, -0.009127822704613209, -0.007744394242763519, 0.0064310720190405846, -0.014404479414224625, 0.13393081724643707, 0.04830782115459442, 0.02796768583357334, 0.0016369789373129606, -0.04662527143955231, 0.030360642820596695, -0.005164487287402153, 0.06535764038562775, -0.017928482964634895, -0.021910512819886208, 0.02282656729221344, -0.003853501984849572, -0.016189849004149437, 0.006711496505886316, 0.027332056313753128, 0.02166747860610485, -0.004033441189676523, -0.017591973766684532, 0.002491105580702424, -0.0010702874278649688, 0.003418843960389495, 0.05574842169880867, -0.009842905215919018, -0.06924619525671005, 0.0415402390062809, -0.008169705048203468, 0.0038628496695309877, 0.0071181124076247215, -0.002481758128851652, 0.021293578669428825, 0.059711754322052, -0.07298518717288971, 0.018236950039863586, 0.012815406545996666, -0.021891817450523376, -0.031071051955223083, -0.016909606754779816, 0.007291040848940611, -0.02882765419781208, 0.041315898299217224, 0.01829303428530693, -0.05309373512864113, 0.03393138200044632, 0.016918953508138657, -0.0006058340659365058, -0.013189306482672691, -0.029332417994737625, -0.02602340839803219, -0.08233267813920975, -0.07986494153738022, 0.05017731711268425, -0.00497753731906414, 0.009702692739665508, 0.02518213354051113, -0.02005971036851406, 0.03989508002996445, -0.056533608585596085, -0.005215898621827364, -0.04696178063750267, 0.0012058259453624487, 0.009992465376853943, -0.05470150336623192, 0.0359504409134388, 0.002850983990356326, 0.010917866602540016, -0.08240745961666107, 0.023443501442670822, 0.02692076563835144, 0.023593060672283173, -0.014460564590990543, -0.04490533471107483, -0.023910874500870705, 0.009889642708003521, 0.015974856913089752, 0.03598783165216446, 0.03589435666799545, 0.02222832664847374, -0.025499947369098663, -0.02781812474131584, -0.020452303811907768, 0.10020507872104645, -0.00783319491893053, 0.00312439794652164, 0.011918047443032265, -0.06158125400543213, -0.017049819231033325, 0.04621398076415062, -0.06965748220682144, -0.03699735924601555, -0.060010876506567, 0.09541916102170944, 0.05432760342955589, -0.009964422322809696, -0.005183182191103697, -0.013039746321737766, 0.022060072049498558, -0.004622333217412233, -0.005402848124504089, 0.016507664695382118, -0.008366001769900322, 0.008838050067424774, -0.03209927678108215, 0.007048006169497967, -0.030902797356247902, -0.02591123804450035, 0.004225064534693956, 0.011516105383634567, -0.053617194294929504, 0.029594147577881813, -0.020115794613957405, 0.009305424988269806, -0.02299482189118862, -0.021574003621935844, -0.015731822699308395, 0.014675556682050228, 0.008688490837812424, 0.029799792915582657, -0.0013904388761147857, 0.007781784050166607, -0.005907612852752209 ]
730,196
mmengine.logging.message_hub
_get_valid_value
Convert value to python built-in type. Args: value (torch.Tensor or np.ndarray or np.number or int or float): value of log. Returns: float or int: python built-in type value.
def _get_valid_value( self, value: Union['torch.Tensor', np.ndarray, np.number, int, float], ) -> Union[int, float]: """Convert value to python built-in type. Args: value (torch.Tensor or np.ndarray or np.number or int or float): value of log. Returns: float or int: python built-in type value. """ if isinstance(value, (np.ndarray, np.number)): assert value.size == 1 value = value.item() elif isinstance(value, (int, float)): value = value else: # check whether value is torch.Tensor but don't want # to import torch in this file assert hasattr(value, 'numel') and value.numel() == 1 value = value.item() return value # type: ignore
(self, value: Union[ForwardRef('torch.Tensor'), numpy.ndarray, numpy.number, int, float]) -> Union[int, float]
[ 0.003457502694800496, -0.015453851781785488, 0.005916070193052292, 0.06466168910264969, 0.03889918699860573, 0.032330844551324844, -0.005770106799900532, -0.0066458857618272305, -0.03216663375496864, -0.01613805443048477, 0.041745468974113464, 0.05926105007529259, 0.00032129004830494523, -0.044445786625146866, 0.035213615745306015, 0.014651053585112095, 0.012689673341810703, 0.03893567621707916, 0.060574717819690704, 0.07305456697940826, 0.0012509500375017524, 0.021912721917033195, 0.0018416447564959526, 0.01565455086529255, -0.013109317980706692, -0.038680240511894226, 0.06017332151532173, 0.0020719929598271847, -0.030725248157978058, -0.00036804386763833463, -0.06882163882255554, -0.03254978731274605, 0.0443728044629097, -0.011011097580194473, -0.007498858030885458, -0.020745016634464264, -0.03842480480670929, -0.0015326134162023664, -0.08633721619844437, -0.035158880054950714, -0.0470731258392334, -0.024430586025118828, -0.03424661234021187, 0.013665802776813507, -0.05502811819314957, -0.019869238138198853, 0.0011226620990782976, 0.031090157106518745, -0.10049564391374588, -0.008329023607075214, -0.005596775561571121, 0.0007052986184135079, 0.02983122505247593, 0.006481677293777466, -0.05488215386867523, 0.030068414285779, 0.014350004494190216, -0.013656679540872574, -0.059443503618240356, 0.061450496315956116, -0.017871366813778877, 0.060866646468639374, 0.000034602111554704607, -0.05353199690580368, 0.08057167381048203, 0.006030103657394648, 0.0016352437669411302, 0.025324610993266106, -0.06188838556408882, 0.04743803292512894, -0.0650995746254921, -0.04940853640437126, -0.0009584535146132112, 0.012051085010170937, 0.04554051160812378, 0.020270636305212975, 0.0009635850437916815, 0.04313211888074875, -0.004159950651228428, -0.02012467384338379, 0.07290861010551453, 0.0301231499761343, 0.0738573670387268, 0.0011169604258611798, 0.012352134101092815, -0.03059753030538559, -0.07097459584474564, 0.09093505889177322, 0.028845973312854767, 0.04926257207989693, -0.0444822795689106, -0.05542951822280884, -0.014368250034749508, 0.018418729305267334, -0.02171202190220356, 0.043752461671829224, 0.023043936118483543, -0.029739998281002045, -0.02682073414325714, -0.010217422619462013, 0.03816936910152435, 0.051160093396902084, 0.003425573231652379, 0.007152195554226637, -0.0035989047028124332, -0.027149150148034096, 0.026729507371783257, 0.010627944022417068, 0.04959098994731903, 0.03353504091501236, -0.07684960961341858, -0.025324610993266106, -0.022606046870350838, -0.024375850334763527, -0.04911660775542259, -0.022040439769625664, -0.04605138301849365, -0.001746996771544218, -0.04601489007472992, 0.05791088938713074, -0.018610304221510887, 0.06630377471446991, 0.01003496814519167, 0.010846888646483421, 0.055393025279045105, 0.05677967518568039, 0.02935684472322464, -0.034392572939395905, -0.00011617186828516424, 0.01549946516752243, 0.009952864609658718, -0.028681764379143715, -0.011841262690722942, 0.02911965362727642, -0.020106427371501923, 0.031619273126125336, -0.027331605553627014, 0.011248287744820118, 0.007507980801165104, 0.008648318238556385, -0.00973391905426979, 0.022624293342232704, 0.056925639510154724, -0.06130453571677208, 0.08721300214529037, 0.045029640197753906, 0.03234909102320671, 0.04904362931847572, -0.020252391695976257, -0.01584612764418125, -0.022733764722943306, -0.02041659876704216, 0.059443503618240356, 0.025561802089214325, 0.0022293594665825367, -0.032513298094272614, 0.04149003326892853, -0.10560435801744461, 0.039264094084501266, -0.02165728621184826, -0.008443057537078857, 0.008575337007641792, 0.0013330543879419565, -0.05718107521533966, 0.01843697391450405, 0.02176675945520401, -0.010007600300014019, 0.04488367587327957, -0.029393333941698074, 0.03441081941127777, -0.030378585681319237, -0.009150066412985325, 0.04054127261042595, 0.06017332151532173, -0.004857837222516537, 0.013346508145332336, -0.03784095495939255, 0.024375850334763527, 0.008452179841697216, 0.043971408158540726, -0.04959098994731903, 0.026911960914731026, -0.05973542854189873, 0.013154931366443634, 0.027167396619915962, 0.0275323037058115, 0.006344836670905352, -0.0418914332985878, 0.002006993629038334, 0.027404585853219032, -0.003300136188045144, 0.03995741903781891, 0.03229435160756111, -0.05550249665975571, 0.009369011037051678, 0.02412041462957859, 0.016256649047136307, -0.017734525725245476, 0.030031923204660416, -0.0037471484392881393, 0.017460845410823822, 0.007913940586149693, 0.03678271919488907, 0.02683897875249386, -0.07998782396316528, -0.0472920686006546, 0.03559676930308342, 0.04269422963261604, -0.01570928655564785, -0.01726926863193512, -0.017789261415600777, -0.005053975153714418, -0.07225177437067032, 0.07425876706838608, 0.007348333485424519, -0.09319748729467392, -0.05422532185912132, -0.02213166654109955, 0.0021917284466326237, 0.03966549411416054, 0.11443512886762619, -0.018254520371556282, 0.010846888646483421, -0.01579139195382595, 0.07407630980014801, -0.002092519076541066, 0.014815262518823147, -0.005204499699175358, 0.04871521145105362, 0.021036943420767784, 0.06593886762857437, -0.019139422103762627, -0.02911965362727642, 0.04546752944588661, 0.030743494629859924, 0.006308346055448055, 0.05229130759835243, 0.0035464491229504347, 0.0008233235566876829, 0.018163293600082397, -0.03107191063463688, -0.026328107342123985, 0.03590694069862366, 0.04105214402079582, 0.02129237912595272, -0.0028690886683762074, -0.0037129383999854326, 0.03583395853638649, -0.05772843584418297, 0.022788500413298607, -0.006135014817118645, 0.010554961860179901, 0.04594191163778305, -0.00908620748668909, 0.037038154900074005, 0.008114640600979328, 0.0287729911506176, -0.04422684386372566, 0.04181845113635063, -0.03541431576013565, -0.04835030436515808, -0.013127563521265984, 0.036618512123823166, 0.022679029032588005, -0.11129692196846008, -0.08728598058223724, 0.0017321724444627762, 0.017579440027475357, 0.03249505162239075, 0.07155844569206238, -0.0037699551321566105, 0.026911960914731026, -0.009154628030955791, -0.04725557938218117, 0.019504329189658165, -0.056743185967206955, 0.043570008128881454, 0.055867407470941544, 0.008059903979301453, 0.035979922860860825, -0.015244029462337494, -0.05736352875828743, -0.04346053674817085, -0.0261274091899395, -0.09947390854358673, 0.026382844895124435, 0.007539910264313221, -0.036545529961586, -0.00798692274838686, 0.008721299469470978, 0.02893720008432865, 0.006705183535814285, -0.02800668403506279, 0.010746538639068604, -0.03364451229572296, 0.004944502841681242, -0.03501291573047638, 0.018610304221510887, 0.07794433832168579, -0.0018747145077213645, 0.009478484280407429, 0.01843697391450405, -0.026510562747716904, -0.011704422533512115, 0.06623078882694244, -0.035213615745306015, 0.022514820098876953, -0.05013835057616234, -0.03658202290534973, 0.04667172580957413, -0.0016238403040915728, 0.01882925070822239, -0.01003496814519167, -0.017789261415600777, 0.06371292471885681, 0.018081188201904297, 0.012406869791448116, 0.004337843041867018, -0.019978709518909454, 0.050795186311006546, 0.007827275432646275, 0.06940548866987228, 0.0364907942712307, 0.008684809319674969, -0.03824235126376152, -0.09319748729467392, 0.007184125017374754, -0.021201152354478836, -0.009496728889644146, 0.025616537779569626, -0.04006689041852951, -0.011731790378689766, 0.06353047490119934, 0.00885814055800438, 0.04835030436515808, 0.024047434329986572, 0.02076326124370098, 0.06447923183441162, -0.00903147179633379, -0.0011563020525500178, 0.015253151766955853, 0.011303023435175419, 0.016594188287854195, 0.035852205008268356, 0.04196441173553467, 0.006531852297484875, 0.0196502935141325, 0.020398354157805443, 0.10910747200250626, -0.006568342912942171, -0.01888398639857769, -0.011211796663701534, -0.021639041602611542, -0.005697125103324652, 0.016813132911920547, -0.019850991666316986, -0.020033445209264755, -0.047511015087366104, -0.0013045459054410458, 0.009779532440006733, 0.022514820098876953, -0.03835182636976242, 0.052619725465774536, 0.0016489278059452772, -0.017488213256001472, 0.01952257566154003, 0.006107646506279707, -0.06334801763296127, 0.06984338164329529, 0.028462819755077362, 0.01795347034931183, -0.00038001741631887853, -0.02652880735695362, -0.01391211524605751, -0.0021107643842697144, 0.04316860809922218, -0.0068009719252586365, 0.022733764722943306, -0.04772995784878731, -0.01067355740815401, 0.04528507590293884, -0.01520753838121891, -0.03490344434976578, 0.0027390902396291494, 0.024430586025118828, -0.009273222647607327, -0.0014413864118978381, -0.013164053671061993, -0.07502507418394089, -0.0011175306281074882, -0.009861636906862259, -0.002255587140098214, 0.005140640772879124, -0.051160093396902084, -0.007882011123001575, 0.03576098009943962, -0.0038201301358640194, 0.026255127042531967, -0.028700008988380432, -0.039154622703790665, -0.018792759627103806, 0.007872888818383217, -0.016603311523795128, 0.04860573634505272, -0.02930210717022419, 0.02565302886068821, 0.00821042899042368, -0.003503116313368082, -0.018473464995622635, -0.013528961688280106, 0.05006536841392517, -0.037275347858667374, 0.002597688464447856, -0.0037882006727159023, 0.020635543391108513, -0.008059903979301453, -0.053860411047935486, -0.022806746885180473, -0.01634787581861019, -0.02499619498848915, 0.006290100514888763, 0.01388474740087986, -0.011731790378689766, 0.057035110890865326, 0.008023413829505444, 0.03088945709168911, 0.02317165397107601, 0.0150342071428895, 0.014222286641597748, 0.010609698481857777, -0.011494600214064121, -0.034502044320106506, -0.017168918624520302, -0.05677967518568039, 0.0006135014700703323, -0.013446858152747154, -0.06619430333375931, 0.019686782732605934, -0.007827275432646275, 0.017606807872653008, 0.002293218392878771, 0.018126802518963814, 0.005514671094715595, 0.06593886762857437, 0.049736954271793365, -0.04130757972598076, 0.0002309183037141338, 0.04959098994731903, -0.05889614298939705, -0.04959098994731903, -0.043278083205223083, -0.03481221944093704, 0.03802340850234032, 0.015618059784173965, 0.06911356747150421, -0.03094419278204441, -0.1621650904417038, 0.00999847799539566, 0.10458261519670486, -0.029375089332461357, -0.00967918336391449, 0.026090918108820915, -0.052510254085063934, -0.09020524471998215, -0.010345140472054482, 0.023791998624801636, 0.05437128245830536, -0.02253306470811367, 0.028517555445432663, 0.01750645786523819, 0.04145354405045509, -0.02329937182366848, 0.03165576234459877, -0.033389076590538025, -0.027368096634745598, 0.046854179352521896, 0.022514820098876953, -0.0071932477876544, 0.01906643994152546, -0.043971408158540726, -0.01735137216746807, -0.02718564122915268, 0.010874256491661072, 0.00010704916348913684, -0.04959098994731903, 0.03559676930308342, -0.03532308712601662, 0.039300587028265, 0.05243727192282677, 0.028900709003210068, -0.03795042634010315, 0.04937204346060753, -0.018263641744852066, -0.0312543660402298, -0.006563781760632992, -0.025963200256228447, 0.0022715518716722727, 0.007056407164782286, -0.008547968231141567, 0.04772995784878731, 0.0005590503569692373, 0.027495812624692917, -0.04689067229628563, 0.014350004494190216, 0.06108558923006058, -0.02705792337656021, 0.05594038590788841, 0.008944805711507797, -0.04513911157846451, -0.04477420449256897, -0.045394547283649445, 0.06484413892030716, 0.009806901216506958, -0.006116769276559353, -0.0031632957980036736, -0.004360649734735489, 0.012160557322204113, -0.022387102246284485, -0.018582936376333237, -0.010819520801305771, -0.01888398639857769, 0.013191422447562218, -0.03264101594686508, -0.029667016118764877, -0.031053666025400162, -0.02059905417263508, -0.07728750258684158, 0.00475292606279254, 0.008128324523568153, 0.037986915558576584, 0.0007155616767704487, -0.029210880398750305, -0.01371141616255045, 0.048386793583631516, -0.023335862904787064, -0.04623383656144142, -0.014003342017531395, -0.005227306392043829, 0.0006802112329751253, -0.04393491521477699, -0.02853580191731453, -0.03736657276749611, 0.004524858668446541, 0.011357760056853294, 0.029521051794290543, -0.04269422963261604, -0.019814500585198402, 0.10253912955522537, -0.0062809777446091175, -0.0034324154257774353, -0.030561041086912155, -0.019267139956355095, 0.042621247470378876, 0.006577465683221817, -0.0013250720221549273, -0.0004128021246287972, -0.012990722432732582, 0.04995589703321457, 0.0057655456475913525, -0.042329322546720505, 0.014596317894756794, -0.08298006653785706, 0.005514671094715595, 0.02459479495882988, -0.08042570948600769, -0.04678119719028473, -0.06728902459144592, 0.005546600557863712, 0.024795494973659515, -0.030852966010570526, -0.023025691509246826, -0.04181845113635063, -0.006737112998962402, -0.021164661273360252, 0.0366550013422966, 0.05196288973093033, -0.03242206946015358, -0.0002317735634278506, 0.002682073274627328, -0.007913940586149693, -0.04641629010438919, 0.009460238739848137, 0.007494296878576279, -0.014614563435316086, 0.06356696039438248, 0.0021016416139900684, -0.00794587004929781, 0.023281127214431763, -0.04046829044818878, 0.02406567893922329, 0.01983274705708027, 0.031108401715755463, -0.030688758939504623, 0.002989964559674263, 0.034392572939395905, -0.01870153285562992, -0.04170897975564003, 0.03223961591720581, 0.046562254428863525, 0.04970046132802963, -0.03623535856604576, -0.002688915468752384, -0.012881250120699406, -0.03581571578979492, -0.008762352168560028, -0.028335101902484894, 0.033863458782434464, -0.0071157049387693405, 0.03667324781417847, -0.05667020380496979, 0.012790023349225521, 0.04586892947554588, -0.05006536841392517, -0.031108401715755463, -0.00804165843874216, -0.0006186329992488027, -0.031509801745414734, -0.010901625268161297, -0.018199782818555832, -0.009752164594829082, 0.011521968059241772, -0.00696974154561758, -0.015663674101233482, -0.05287516117095947, 0.0316922552883625, -0.0391911119222641, 0.005897824652493, -0.014495967887341976, 0.01371141616255045, 0.001391211524605751, 0.02317165397107601, 0.0068329013884067535, -0.0014505090657621622, -0.02306218259036541, -0.07487910985946655, -0.0006910444353707135, -0.015070698224008083, -0.016119807958602905, 0.03249505162239075, 0.031746990978717804, 0.014687544666230679, 0.030086660757660866, -0.013300894759595394, 0.0008854719344526529, 0.06170593202114105, -0.0366002656519413, -0.03736657276749611, -0.0031929444521665573, 0.03446555510163307, 0.012315643019974232, 0.004716434981673956, 0.0521453432738781, 0.002652424620464444, -0.014906489290297031, 0.020690280944108963, 0.02829861082136631, 0.022277630865573883, 0.030798230320215225, -0.018956968560814857, 0.03264101594686508, -0.059151578694581985, -0.013164053671061993, 0.016940850764513016, 0.06188838556408882, 0.03565150499343872, -0.01523490622639656, -0.01809031143784523, 0.0018040136201307178, 0.03200242668390274, -0.06451572477817535, -0.030141396448016167, -0.03348030522465706, -0.008424811996519566, 0.0005906947189942002, 0.025908464565873146, -0.025963200256228447, 0.04145354405045509, 0.05130605772137642, -0.006198873743414879, -0.01538086961954832, 0.011832140386104584, 0.024375850334763527, -0.04086969047784805, 0.03514063358306885, -0.0024836547672748566, -0.06254522502422333, -0.040030401200056076, 0.05353199690580368, -0.012790023349225521, -0.03346205875277519, -0.03510414436459541, -0.008776036091148853, -0.03769499063491821, 0.005469057708978653, -0.03557852283120155, -0.02218640223145485, -0.039300587028265, 0.0679093673825264, -0.01843697391450405, 0.05185341835021973, 0.013930360786616802, -0.04378895461559296, -0.033863458782434464, 0.08006080240011215, 0.01576402224600315, -0.024904966354370117, -0.016484716907143593, 0.005377830937504768, -0.01589174009859562, -0.045577000826597214, 0.012051085010170937, 0.04236581176519394, -0.027459323406219482, -0.010235668160021305, -0.05652423948049545, 0.04411736875772476, -0.06269118189811707, 0.0702812671661377, -0.061632949858903885, 0.007964115589857101, -0.016101563349366188, -0.02464953064918518, 0.06455221772193909, 0.018546445295214653, 0.02853580191731453, 0.023791998624801636, 0.021383605897426605, -0.04623383656144142, 0.005332217551767826, 0.01814504712820053, 0.029958942905068398, 0.012863004580140114, -0.01994221843779087, -0.05072220414876938, 0.017196286469697952, -0.010783029720187187, -0.023591298609972, 0.018528200685977936, -0.041927922517061234, -0.07101108878850937, -0.006344836670905352, -0.015718409791588783, -0.006171505432575941, -0.023025691509246826, 0.004748364444822073, -0.02525162883102894, 0.006531852297484875, 0.02758704125881195, -0.007635698653757572, 0.008173937909305096, 0.005847649648785591, -0.02171202190220356, -0.019923973828554153, -0.007489735726267099, 0.12727989256381989, -0.04287668317556381, -0.0031929444521665573, -0.012215293012559414, -0.012863004580140114, -0.034921690821647644, -0.02213166654109955, -0.0001758970320224762, -0.024211641401052475, 0.015317010693252087, -0.03514063358306885, -0.0070746527053415775, -0.03827884420752525, 0.00973391905426979 ]
730,197
mmengine.logging.message_hub
_parse_input
Parse input value. Args: name (str): name of input value. value (Any): Input value. Returns: dict: Parsed input value.
def _parse_input(self, name: str, value: Any) -> OrderedDict: """Parse input value. Args: name (str): name of input value. value (Any): Input value. Returns: dict: Parsed input value. """ if value is None: return OrderedDict() elif isinstance(value, dict): return OrderedDict(value) else: raise TypeError(f'{name} should be a dict or `None`, but ' f'got {type(name)}')
(self, name: str, value: Any) -> collections.OrderedDict
[ 0.0009125839569605887, 0.018284965306520462, -0.055635999888181686, -0.07477308064699173, -0.04402593523263931, 0.009044844657182693, -0.01936786063015461, 0.0341200977563858, 0.03119095414876938, -0.055245447903871536, 0.008126158267259598, 0.0333389937877655, -0.030374344438314438, -0.02336214855313301, 0.05059431865811348, 0.03426211699843407, 0.07072553038597107, 0.09316455572843552, -0.05982556566596031, -0.0075536430813372135, 0.048037976026535034, -0.05251158028841019, -0.047327879816293716, 0.021533653140068054, 0.004040888510644436, -0.034617166966199875, 0.024711331352591515, -0.057979315519332886, -0.09600494056940079, 0.01899506151676178, 0.025190645828843117, 0.0016642868285998702, 0.011698827147483826, 0.03362303227186203, 0.029025163501501083, -0.031048934906721115, -0.049671195447444916, 0.03674745187163353, -0.061884842813014984, 0.007855433970689774, -0.025794226676225662, -0.04512658342719078, -0.08031182736158371, 0.016145801171660423, -0.011681074276566505, 0.034634917974472046, -0.03209632635116577, 0.027196666225790977, 0.0013125676196068525, 0.009568539448082447, 0.01821395568549633, -0.04434547945857048, 0.0005334039451554418, 0.026788361370563507, 0.006515128072351217, -0.013340923003852367, 0.012142636813223362, -0.007540328893810511, 0.05290213227272034, 0.02808428555727005, -0.041753627359867096, 0.052440568804740906, 0.02377045527100563, 0.003874459769576788, -0.052831120789051056, -0.038167644292116165, 0.046156223863363266, -0.026202531531453133, -0.0553874671459198, -0.009195739403367043, -0.01484987698495388, -0.008112844079732895, -0.04707934707403183, 0.022030720487236977, 0.06508027017116547, 0.02407224476337433, -0.0090714730322361, 0.03198981285095215, 0.02568771317601204, -0.036995988339185715, -0.0028093161527067423, 0.01600378192961216, -0.04853504151105881, 0.0013957818737253547, -0.010926597751677036, 0.022705310955643654, -0.040120407938957214, 0.04228619858622551, 0.056701142340898514, 0.07555418461561203, -0.010828959755599499, -0.04541062191128731, -0.026007255539298058, 0.08059586584568024, -0.007970824837684631, 0.0035748882219195366, 0.013571704737842083, -0.07097406685352325, -0.018444735556840897, 0.028386076912283897, 0.00013238015526439995, 0.0236994456499815, -0.012400046922266483, 0.003783478867262602, -0.020734794437885284, -0.06948286294937134, 0.02694813348352909, -0.03362303227186203, 0.05510342866182327, -0.010562674142420292, -0.03087141178548336, -0.06855974346399307, -0.061174746602773666, 0.03367628902196884, -0.0028892019763588905, -0.0030534116085618734, 0.004373745992779732, -0.008228234015405178, -0.03926829248666763, 0.00160437251906842, -0.051268912851810455, 0.05765977129340172, 0.03248687833547592, 0.04157610610127449, 0.04977770894765854, -0.005796156357973814, -0.02249228209257126, -0.04257023707032204, 0.014867628924548626, 0.022669805213809013, 0.06312751024961472, -0.01746835559606552, -0.002129177562892437, -0.06280796974897385, 0.01943887025117874, 0.03912627324461937, 0.05549398064613342, 0.015488962642848492, -0.013864618726074696, -0.001059595961123705, 0.05776628851890564, 0.007487071678042412, 0.008778558112680912, -0.11134301126003265, -0.003153268713504076, -0.038593702018260956, 0.02137388102710247, 0.0008842910756357014, -0.03131522238254547, -0.020397499203681946, -0.020379748195409775, 0.015888391062617302, -0.03759956732392311, 0.031457241624593735, 0.04391942173242569, -0.046546775847673416, 0.008556653745472431, -0.12419573962688446, -0.0021779967937618494, 0.0013780294684693217, 0.003548259614035487, 0.0023521920666098595, 0.06060666963458061, -0.06816919147968292, 0.01266633253544569, 0.042144179344177246, 0.07988576591014862, -0.010252007283270359, 0.027551714330911636, -0.041753627359867096, -0.030267830938100815, 0.019634146243333817, 0.0016298915725201368, -0.006031375378370285, -0.023628436028957367, -0.03216733783483505, -0.011450293473899364, 0.013491818681359291, 0.008201605640351772, -0.016713878139853477, -0.0069988807663321495, 0.012169265188276768, -0.03681846335530281, 0.013110142201185226, 0.036250386387109756, -0.025616703554987907, 0.014157533645629883, 0.038167644292116165, 0.04814448952674866, 0.05371874198317528, -0.010225377976894379, -0.027462951838970184, -0.013811361975967884, -0.017317458987236023, 0.018284965306520462, -0.013687094673514366, -0.007287357468158007, 0.02098332904279232, 0.04810898378491402, 0.020876813679933548, -0.03156375512480736, -0.03167026862502098, -0.016829269006848335, 0.03404908999800682, -0.03229160234332085, -0.01784115470945835, 0.062239889055490494, -0.028297314420342445, -0.010402902029454708, -0.007327300030738115, -0.051979005336761475, -0.05893794447183609, -0.013607209548354149, -0.017512734979391098, 0.0110686169937253, -0.033392250537872314, 0.003896650392562151, -0.04995523393154144, 0.019527632743120193, 0.012293532490730286, 0.06547082215547562, 0.08443038165569305, 0.08009880036115646, -0.05343470349907875, 0.09650200605392456, -0.02371719665825367, -0.018151821568608284, -0.03566455841064453, -0.011192884296178818, 0.02133837714791298, 0.033836062997579575, -0.043315839022397995, -0.03710250183939934, -0.026202531531453133, 0.06376659870147705, 0.003894431283697486, 0.018169574439525604, -0.11681074649095535, -0.03944581747055054, -0.019172584637999535, 0.03752855956554413, -0.05666564032435417, -0.03955233097076416, -0.0038811168633401394, -0.0690213069319725, -0.010234254412353039, -0.002600725507363677, 0.04111454263329506, -0.005756213329732418, -0.0037501929327845573, 0.03042760118842125, 0.03752855956554413, 0.001170548377558589, 0.02689487487077713, -0.008494519628584385, 0.0035682308953255415, 0.022687558084726334, -0.023823712021112442, 0.06465421617031097, -0.017743516713380814, 0.0036614311393350363, -0.020859062671661377, 0.00742493849247694, 0.05180148407816887, -0.011334902606904507, -0.04892559349536896, 0.033800557255744934, -0.021214108914136887, 0.00152892479673028, -0.018870793282985687, -0.0004768181825056672, -0.013953381218016148, 0.015888391062617302, -0.03610836714506149, 0.010633683763444424, 0.0181429460644722, 0.0908922553062439, -0.003759069135412574, -0.009772692807018757, 0.05535196140408516, 0.010944350622594357, -0.04590768739581108, -0.01800980232656002, -0.006821357179433107, -0.019527632743120193, -0.018764279782772064, 0.0005425575072877109, -0.03179453685879707, 0.004668879322707653, -0.004187345504760742, 0.04558814689517021, -0.0029468971770256758, -0.04825100302696228, -0.00335520226508379, -0.057624269276857376, 0.018835289403796196, -0.07669033855199814, -0.058760419487953186, 0.04278326779603958, 0.03009030595421791, 0.05407378822565079, 0.005844975356012583, 0.038593702018260956, -0.017779022455215454, 0.03948132321238518, 0.019314603880047798, -0.002398792188614607, 0.014237419702112675, -0.0388067327439785, -0.009053720161318779, -0.009435396641492844, 0.05453535169363022, -0.06713955104351044, 0.006941185798496008, -0.038238655775785446, 0.024409539997577667, 0.02137388102710247, -0.03596634790301323, 0.0249598640948534, 0.05602655187249184, -0.0331614688038826, 0.007540328893810511, -0.06202686205506325, -0.1037449836730957, -0.004484698176383972, -0.04832201451063156, 0.03710250183939934, 0.044878050684928894, 0.09067922085523605, 0.04242821782827377, -0.03587758541107178, -0.0507008358836174, -0.004748765379190445, 0.03317922353744507, -0.018817536532878876, -0.012604199349880219, -0.01851574517786503, 0.009248997084796429, 0.0019483251962810755, -0.0014667914947494864, 0.008960520848631859, 0.01933235675096512, 0.03633914887905121, -0.011565684340894222, 0.009364387020468712, -0.02801327593624592, 0.055209942162036896, 0.009568539448082447, 0.10118863731622696, -0.0411500483751297, -0.04264124855399132, 0.034972213208675385, 0.03506097570061684, 0.021125348284840584, 0.03209632635116577, 0.019119327887892723, -0.0015755249187350273, -0.05307965353131294, 0.0016354392282664776, -0.06121025234460831, 0.06561284512281418, -0.040155913680791855, 0.02329113893210888, 0.02059277519583702, -0.0006307646981440485, -0.026238037273287773, -0.010225377976894379, -0.023486416786909103, 0.053221672773361206, 0.003743535839021206, -0.03291293606162071, 0.0086054727435112, 0.010536044836044312, -0.03639240562915802, -0.01208050362765789, 0.04356437176465988, 0.05939950793981552, 0.019279098138213158, -0.010553797706961632, -0.0064618708565831184, 0.04306730628013611, 0.045730166137218475, -0.024622568860650063, 0.01207162719219923, 0.014095400460064411, -0.02572321705520153, 0.008183852769434452, 0.012000617571175098, 0.01972290873527527, -0.02061052806675434, -0.039303798228502274, 0.017716888338327408, 0.028173048049211502, -0.02220824360847473, 0.021480396389961243, 0.0034461834002286196, -0.009275625459849834, -0.027214419096708298, -0.10537820309400558, 0.0027383065316826105, 0.025030873715877533, -0.019101575016975403, 0.02959323860704899, 0.015098410658538342, 0.012116008438169956, -0.07377894222736359, 0.005281337071210146, 0.006994443014264107, -0.004686631727963686, 0.029042914509773254, 0.01974066160619259, -0.06444118916988373, -0.003630364313721657, -0.044842544943094254, 0.016500849276781082, 0.004458069801330566, 0.025918493047356606, 0.02732093259692192, -0.024604815989732742, -0.0466177836060524, 0.02685937099158764, 0.031847793608903885, -0.038132138550281525, 0.06809817999601364, 0.05776628851890564, 0.036924976855516434, -0.0011428103316575289, 0.011636693961918354, 0.020876813679933548, -0.049280643463134766, -0.001099538872949779, -0.007171966601163149, 0.003435088088735938, -0.06405063718557358, 0.08783884346485138, 0.04395492374897003, -0.0028093161527067423, -0.03951682522892952, 0.06092621386051178, 0.02101883292198181, -0.04743439331650734, 0.03280642256140709, 0.03246912732720375, 0.07576721161603928, 0.04168261960148811, -0.009586292318999767, -0.002098110970109701, 0.06909231096506119, 0.009648425504565239, -0.04903211072087288, 0.04789595678448677, -0.01443269569426775, 0.01659848727285862, -0.039303798228502274, -0.005410041660070419, -0.015719743445515633, -0.026770608499646187, 0.03232710808515549, 0.025456931442022324, -0.005316841881722212, 0.013740352354943752, 0.011361531913280487, 0.04814448952674866, -0.03122645989060402, 0.00017807869880925864, 0.10836061090230942, -0.006381985265761614, 0.019651899114251137, 0.0039077457040548325, 0.01366934273391962, 0.01484987698495388, -0.031421735882759094, -0.00842794869095087, 0.025403674691915512, -0.03245137631893158, -0.0395878367125988, 0.08471442013978958, -0.008032958023250103, 0.015915021300315857, 0.003523850115016103, 0.059577032923698425, -0.019101575016975403, -0.031386230140924454, 0.029007410630583763, 0.0035704500041902065, 0.0006446337793022394, 0.01800980232656002, -0.0236994456499815, 0.0008831815794110298, 0.030374344438314438, -0.04267675429582596, -0.006222213618457317, 0.04079499840736389, -0.012311284430325031, 0.04122105613350868, -0.01426404807716608, 0.03710250183939934, -0.0069811283610761166, -0.006293223239481449, -0.0016587391728535295, 0.020681537687778473, 0.040510959923267365, -0.01602153480052948, -0.0300370492041111, -0.012284656055271626, -0.008685357868671417, -0.02968200109899044, -0.020255479961633682, -0.015897268429398537, 0.014450447633862495, -0.050097253173589706, 0.015808505937457085, 0.0788206234574318, -0.02494211308658123, 0.030711639672517776, 0.00582278473302722, -0.009257872588932514, 0.023841463029384613, -0.06664248555898666, -0.04381290450692177, 0.023823712021112442, 0.003503878600895405, 0.004194003064185381, -0.021480396389961243, -0.033889319747686386, 0.02132062427699566, -0.009541911073029041, -0.014592466875910759, 0.04871256649494171, -0.059506021440029144, 0.027800247073173523, -0.028368324041366577, -0.021870948374271393, 0.047611918300390244, 0.04775393754243851, -0.025865236297249794, -0.001662067836150527, 0.038558196276426315, -0.0717906802892685, 0.052440568804740906, 0.03470592945814133, 0.0651157796382904, 0.0019039441831409931, 0.00949753075838089, 0.04146958887577057, 0.04257023707032204, -0.005028365179896355, 0.07583822309970856, -0.056772153824567795, 0.002040415769442916, -0.07747144252061844, -0.04636925086379051, 0.05027477815747261, 0.01224915124475956, -0.04441648721694946, -0.05780179053544998, -0.010030101984739304, -0.011601189151406288, 0.029184933751821518, 0.007904252968728542, 0.021125348284840584, 0.037351034581661224, -0.09898734092712402, 0.017326336354017258, -0.035771071910858154, -0.01596827805042267, -0.04168261960148811, -0.010722445324063301, -0.0006263265968300402, 0.08535350859165192, -0.0036991548258811235, -0.05684316158294678, 0.007163090631365776, 0.022012967616319656, 0.006062442436814308, 0.050771843641996384, -0.00131145806517452, 0.033356744796037674, -0.04533961042761803, 0.004122993443161249, -0.01089996937662363, -0.006550632882863283, 0.025226149708032608, -0.02524390257894993, 0.032611146569252014, -0.013376427814364433, 0.004912974778562784, 0.0023211254738271236, -0.0033818308729678392, 0.009089224971830845, -0.05723371356725693, -0.040546465665102005, 0.017273077741265297, 0.03451065346598625, -0.024232016876339912, -0.03532726317644119, -0.013403057120740414, -0.017273077741265297, -0.009053720161318779, -0.06515128165483475, -0.05883143097162247, 0.029362458735704422, 0.0032043070532381535, 0.042499229311943054, 0.044523000717163086, 0.008294805884361267, 0.015915021300315857, 0.002862573368474841, 0.01816069893538952, -0.012692960910499096, 0.07189719378948212, -0.002753840060904622, -0.015693115070462227, 0.027072399854660034, 0.023592930287122726, 0.007251852657645941, 0.01400663796812296, -0.05329268425703049, -0.020699290558695793, -0.03271766006946564, 0.07534115761518478, -0.026681846007704735, -0.046120718121528625, 0.028279561549425125, -0.0181429460644722, -0.09188638627529144, 0.02219049073755741, -0.028279561549425125, -0.0001937507331604138, -0.06831120699644089, 0.03667644411325455, -0.011707703582942486, -0.01666949689388275, -0.04509107768535614, -0.06128126010298729, 0.0048020221292972565, 0.01029638759791851, -0.02969975396990776, -0.034546155482530594, -0.013012504205107689, 0.00027419126126915216, -0.01607479155063629, -0.015133915469050407, 0.047292374074459076, -0.02091231942176819, 0.032966192811727524, -0.00026448292192071676, -0.008618786931037903, 0.062346406280994415, 0.05741123855113983, 0.028563600033521652, 0.0029668686911463737, 0.00760246254503727, 0.011938484385609627, -0.0040564220398664474, -0.023149119690060616, 0.025403674691915512, 0.007167528849095106, -0.011370407417416573, -0.003876678878441453, -0.05066533014178276, -0.018169574439525604, -0.02249228209257126, 0.029415715485811234, 0.013127895072102547, -0.009453149512410164, -0.05975455418229103, 0.03168802335858345, 0.019172584637999535, -0.007673471700400114, -0.04640475660562515, 0.008219357579946518, 0.06121025234460831, 0.031847793608903885, -0.011432541534304619, -0.0807378813624382, 0.03156375512480736, 0.033001698553562164, 0.032238345593214035, -0.0030356592033058405, -0.005694080144166946, 0.0020692632533609867, 0.015142790973186493, -0.011219512671232224, -0.010438406839966774, -0.007291795685887337, 0.000019555371181922965, -0.006661585532128811, 0.01758374460041523, -0.0364634171128273, 0.0006346480804495513, -0.006386423483490944, -0.04576566815376282, -0.0395878367125988, -0.013962256722152233, -0.03587758541107178, -0.02130287140607834, 0.04239271581172943, 0.038948751986026764, 0.07097406685352325, 0.037848103791475296, -0.004029793199151754, 0.035469282418489456, 0.0026096017099916935, -0.00321318325586617, -0.03530950844287872, -0.06238190829753876, 0.004276107531040907, 0.03431537747383118, -0.02606051228940487, -0.03284192830324173, 0.005960365757346153, -0.03284192830324173, -0.015497839078307152, 0.04399042949080467, 0.05048780515789986, -0.03156375512480736, 0.04356437176465988, 0.009861454367637634, 0.017539365217089653, -0.022083977237343788, 0.03158150613307953, -0.014530333690345287, -0.01746835559606552, -0.01945662312209606, -0.017592621967196465, -0.05904445797204971, -0.07661932706832886, 0.018000926822423935, 0.05698518082499504, -0.024675825610756874, 0.06923433393239975, -0.017814526334404945, 0.012941494584083557, -0.029380209743976593, -0.02536816895008087, -0.0001949989382410422, 0.011707703582942486, 0.015409077517688274, 0.018799783661961555, 0.01585288718342781, 0.03481244295835495, -0.01425517164170742, 0.03167026862502098, 0.04537511616945267, -0.06387311220169067, 0.029362458735704422, 0.0006390861235558987, -0.00948865432292223, 0.029735257849097252, -0.03923279047012329, 0.00465556513518095, 0.04594319313764572, 0.020255479961633682, -0.023042606189846992, -0.017273077741265297, 0.031510498374700546, 0.02765822783112526, 0.03548703342676163, 0.006985566578805447, -0.06639394909143448, 0.01823170855641365, -0.02014896646142006, -0.03642791137099266, -0.002844820963218808, -0.05176597833633423, 0.0042960792779922485, 0.005525432527065277 ]
730,198
mmengine.logging.message_hub
_set_resumed_keys
Set corresponding resumed keys. This method is called by ``update_scalar``, ``update_scalars`` and ``update_info`` to set the corresponding key is true or false in :attr:`_resumed_keys`. Args: key (str): Key of :attr:`_log_scalrs` or :attr:`_runtime_info`. resumed (bool): Whether the corresponding ``HistoryBuffer`` could be resumed.
def _set_resumed_keys(self, key: str, resumed: bool) -> None: """Set corresponding resumed keys. This method is called by ``update_scalar``, ``update_scalars`` and ``update_info`` to set the corresponding key is true or false in :attr:`_resumed_keys`. Args: key (str): Key of :attr:`_log_scalrs` or :attr:`_runtime_info`. resumed (bool): Whether the corresponding ``HistoryBuffer`` could be resumed. """ if key not in self._resumed_keys: self._resumed_keys[key] = resumed else: assert self._resumed_keys[key] == resumed, \ f'{key} used to be {self._resumed_keys[key]}, but got ' \ '{resumed} now. resumed keys cannot be modified repeatedly.'
(self, key: str, resumed: bool) -> NoneType
[ 0.007826116867363453, 0.015599295496940613, -0.11011267453432083, 0.039880551397800446, -0.021387269720435143, -0.008134926669299603, -0.016455138102173805, -0.0020282173063606024, 0.06483236700296402, 0.0006551174446940422, -0.0015418421244248748, -0.002393274335190654, 0.056997425854206085, 0.041609883308410645, -0.03465725854039192, -0.022516630589962006, 0.03875119239091873, 0.023504819720983505, -0.0036726281978189945, -0.02505769208073616, -0.0025123865343630314, 0.047150809317827225, 0.053185831755399704, -0.028375187888741493, -0.006127664353698492, 0.03047509305179119, 0.0022190173622220755, 0.02712230384349823, 0.055056337267160416, 0.04118637368083, -0.006771753076463938, -0.013199403882026672, -0.007155559025704861, -0.025410616770386696, -0.00042351026786491275, -0.010023077018558979, -0.009423104114830494, 0.021934302523732185, -0.013887607492506504, 0.013808200135827065, -0.01939324103295803, 0.05900909751653671, 0.01872268319129944, -0.03666893020272255, -0.0007466574315913022, 0.03308673948049545, 0.01573164202272892, -0.005038007628172636, 0.06959685683250427, -0.00792758259922266, 0.027722276747226715, -0.005417402368038893, 0.016666894778609276, -0.022922493517398834, -0.021634316071867943, 0.022428398951888084, -0.00464979000389576, -0.015414009802043438, -0.04771549254655838, -0.04146871343255043, -0.00011228812945773825, -0.01868739165365696, 0.002492534462362528, 0.051456499844789505, 0.03931587189435959, -0.039880551397800446, 0.002010570839047432, -0.001579340430907905, 0.009246640838682652, -0.007649654522538185, -0.042774539440870285, -0.028163433074951172, -0.050785940140485764, -0.029098685830831528, -0.06952627003192902, 0.017955070361495018, -0.12444143742322922, -0.008426089771091938, -0.06151486933231354, 0.010076015256345272, 0.03418080881237984, -0.015634587034583092, -0.018457990139722824, -0.015766935423016548, 0.00848344061523676, 0.0399511381983757, 0.04743315279483795, -0.015405186451971531, 0.03804533928632736, 0.013278812170028687, -0.0032667641062289476, 0.04598615691065788, -0.04164517670869827, 0.008051106706261635, 0.028145788237452507, 0.008011402562260628, -0.014761097729206085, -0.036033667623996735, -0.023698929697275162, -0.023222479969263077, 0.023469528183341026, -0.0224460456520319, 0.06507941335439682, -0.005990905687212944, 0.014196417294442654, -0.017010996118187904, -0.03051038645207882, -0.0022190173622220755, 0.0441509485244751, -0.02435184083878994, -0.031163297593593597, -0.01505226083099842, -0.022728385403752327, 0.013887607492506504, -0.01930500939488411, 0.06973802298307419, 0.02468712069094181, -0.026151759549975395, 0.037692416459321976, 0.048103708773851395, 0.03998642787337303, -0.027016427367925644, -0.03527487814426422, 0.04552735388278961, -0.057879738509655, -0.04369214549660683, 0.034921951591968536, 0.09903082251548767, 0.059644363820552826, -0.06416180729866028, -0.00863343384116888, -0.00021506381744984537, -0.01699334941804409, 0.025198861956596375, 0.05064477026462555, 0.02708701230585575, -0.0009622726938687265, 0.0544210709631443, -0.0009914992842823267, 0.038433559238910675, -0.007243790198117495, 0.035874851047992706, 0.011461246758699417, 0.07143206894397736, 0.020152030512690544, -0.042068686336278915, -0.007415841333568096, 0.03836297243833542, 0.001806535990908742, 0.018457990139722824, 0.05184471607208252, -0.02216370403766632, -0.04418623819947243, 0.015405186451971531, -0.009970137849450111, 0.028639882802963257, -0.02092846669256687, 0.025975296273827553, 0.0046409666538238525, 0.015158139169216156, 0.00671881390735507, -0.07969051599502563, -0.016481608152389526, -0.039880551397800446, -0.03469255194067955, -0.017275691032409668, -0.03426903858780861, 0.028710467740893364, 0.01370232179760933, 0.042527489364147186, 0.056044526398181915, -0.0047777253203094006, -0.018175650388002396, 0.006052667740732431, 0.0012914857361465693, 0.023222479969263077, -0.0038799718022346497, -0.06807927787303925, -0.025498848408460617, 0.03531016781926155, 0.01930500939488411, 0.01326998881995678, -0.012952355667948723, -0.03751595318317413, 0.028163433074951172, 0.028375187888741493, -0.03167504072189331, 0.010076015256345272, 0.012820009142160416, 0.034498441964387894, -0.06447944045066833, -0.051985885947942734, 0.010799512267112732, 0.001246267231181264, -0.045456770807504654, 0.0054571065120399, 0.026681147515773773, -0.1042541116476059, -0.03705715015530586, -0.001455816556699574, -0.03608660399913788, 0.04725668951869011, 0.03885706886649132, -0.011487715877592564, 0.01071128062903881, 0.005108592566102743, -0.0269634872674942, -0.001880429801531136, 0.04506855085492134, 0.047150809317827225, -0.011770056560635567, -0.0588679276406765, 0.03511606156826019, -0.017099227756261826, 0.0067496951669454575, 0.004235102795064449, 0.026028236374258995, 0.029010454192757607, -0.038715898990631104, -0.018210941925644875, 0.08561965823173523, -0.02773992344737053, 0.010940682142972946, -0.02158137783408165, -0.007217321079224348, -0.002202474046498537, -0.008968712761998177, -0.053115248680114746, -0.047856662422418594, 0.0461273267865181, 0.008858423680067062, 0.01730215921998024, -0.06197367236018181, -0.06504411995410919, 0.005862970370799303, -0.008779015392065048, 0.003304262412711978, 0.004389507696032524, 0.0289398692548275, 0.042315736413002014, -0.009431926533579826, 0.06585584580898285, 0.05350346490740776, -0.02583412639796734, 0.00003822207872872241, -0.0012451643124222755, 0.05480928719043732, 0.007596715819090605, -0.06843220442533493, 0.02124609984457493, 0.06437356024980545, -0.03465725854039192, -0.025622371584177017, 0.0007510689902119339, 0.07898467034101486, 0.018334465101361275, 0.019499119371175766, 0.038468848913908005, 0.0399511381983757, 0.03592778742313385, 0.008549613878130913, -0.00665705231949687, -0.049515411257743835, -0.04573911055922508, 0.006185014732182026, 0.04926836118102074, 0.026557624340057373, 0.04189222678542137, -0.042033396661281586, 0.0013808199437335134, 0.029875120148062706, 0.014231709763407707, -0.003626306774094701, 0.029345734044909477, 0.006568820681422949, 0.03291027620434761, -0.045456770807504654, 0.004685082472860813, -0.019993213936686516, 0.01637573167681694, 0.061797209084033966, 0.004197604488581419, 0.03201031684875488, 0.03525723144412041, 0.04100991040468216, -0.04383331537246704, -0.024951813742518425, 0.0268399640917778, 0.024669473990797997, -0.001987410243600607, 0.016119860112667084, 0.03730419650673866, 0.036068957298994064, 0.020769650116562843, 0.013022941537201405, -0.012211212888360023, -0.023257773369550705, -0.03635130077600479, 0.022816617041826248, 0.06465590000152588, 0.07164382189512253, 0.017963893711566925, -0.026151759549975395, 0.006930569186806679, -0.002757228445261717, -0.0014205240877345204, 0.03573368117213249, -0.005589453503489494, 0.002620469778776169, 0.01128478441387415, -0.03506312146782875, 0.03490430489182472, -0.0561504028737545, -0.007362902630120516, 0.01745215244591236, -0.05731505900621414, 0.040868740528821945, 0.033139679580926895, -0.00866431463509798, 0.0399511381983757, -0.012502375990152359, 0.02782815508544445, -0.05537397041916847, -0.0009859849233180285, 0.025322385132312775, 0.016331614926457405, 0.06822044402360916, -0.028551651164889336, -0.012255328707396984, -0.008434913121163845, 0.0024704765528440475, -0.027175242081284523, -0.03402199223637581, 0.07898467034101486, -0.07347903400659561, -0.023804806172847748, 0.00668793311342597, -0.009281933307647705, 0.06776164472103119, 0.023575404658913612, 0.007609950378537178, -0.08823131024837494, -0.029998645186424255, -0.045950863510370255, 0.05279761552810669, -0.0009065766935236752, 0.04023347795009613, -0.015290485695004463, 0.05209176614880562, 0.007384960539638996, -0.039139408618211746, -0.026434099301695824, 0.02207547426223755, 0.010481879115104675, 0.06966744363307953, -0.07834940403699875, -0.028798699378967285, -0.05082123354077339, -0.022428398951888084, -0.026769379153847694, 0.009590743109583855, 0.036280713975429535, -0.05583277344703674, -0.007601127028465271, -0.02736935205757618, 0.010534818284213543, -0.06786752492189407, -0.016711009666323662, 0.012952355667948723, -0.005007126834243536, 0.0035226349718868732, -0.05922085419297218, -0.02791638672351837, 0.02216370403766632, 0.07764355093240738, -0.015414009802043438, -0.006736460607498884, 0.035910140722990036, 0.02361069805920124, 0.010737750679254532, 0.0001555076742079109, 0.011884757317602634, 0.04556264728307724, 0.026204697787761688, -0.041327543556690216, 0.07877290993928909, 0.04845663532614708, -0.006793810520321131, 0.09465454518795013, 0.018616806715726852, 0.02976924367249012, 0.014169948175549507, 0.027757570147514343, -0.05117416009306908, 0.02675173245370388, -0.020769650116562843, 0.004768902435898781, -0.0289398692548275, -0.012308267876505852, -0.04919777810573578, 0.01259060762822628, 0.03204561024904251, -0.08646668493747711, 0.0419275164604187, 0.05562101677060127, 0.0267164409160614, 0.03026333823800087, -0.014796390198171139, -0.01616397500038147, -0.02844577468931675, 0.019746167585253716, -0.03361612930893898, -0.002589588984847069, -0.03624542057514191, -0.033722005784511566, -0.0050027151592075825, -0.06190308555960655, -0.06359712779521942, 0.03786887601017952, 0.09416045248508453, -0.007177616935223341, -0.00786582101136446, 0.00746436882764101, 0.005915909074246883, -0.02976924367249012, 0.06070313975214958, -0.03465725854039192, -0.02583412639796734, 0.023451881483197212, -0.017910955473780632, 0.037939462810754776, 0.010261300951242447, 0.03506312146782875, 0.05272702872753143, -0.03786887601017952, -0.02084023505449295, 0.028957515954971313, 0.07460839301347733, -0.0748201459646225, -0.0024947402998805046, 0.00820551160722971, -0.08837247639894485, 0.03377494588494301, -0.010596579872071743, 0.029928060248494148, 0.033545542508363724, -0.017619792371988297, 0.05855029448866844, 0.021281391382217407, 0.028022263199090958, -0.01641102321445942, 0.030545679852366447, -0.01997556909918785, -0.023381296545267105, -0.002265338785946369, 0.0008370945579372346, -0.015555179677903652, 0.048774268478155136, -0.0049056606367230415, -0.025957651436328888, 0.03861001878976822, 0.00831138901412487, -0.05576218664646149, 0.02823401801288128, 0.043268632143735886, 0.02678702585399151, -0.008995181880891323, -0.018422696739435196, -0.024334194138646126, -0.04393919184803963, -0.038927651941776276, -0.027192888781428337, 0.06045609340071678, -0.020046154037117958, -0.03783358633518219, 0.03017510659992695, 0.03213384374976158, 0.022463690489530563, -0.01926971785724163, 0.002838842337951064, -0.0022851908579468727, -0.017531560733914375, 0.009528981521725655, -0.012299444526433945, 0.07143206894397736, -0.08674902468919754, -0.07722003757953644, 0.01926971785724163, -0.045703817158937454, 0.04418623819947243, -0.0068776304833590984, -0.044221531599760056, -0.014011131599545479, 0.0661734789609909, -0.0008905847789719701, -0.046903762966394424, 0.009767205454409122, 0.023628344759345055, 0.03751595318317413, -0.016093390062451363, -0.009378988295793533, -0.043903898447752, 0.0212108064442873, 0.019040316343307495, -0.004387301858514547, 0.030986836180090904, -0.02733405865728855, 0.03435727208852768, -0.04079815745353699, -0.04263336956501007, 0.044962674379348755, -0.024669473990797997, 0.024457719177007675, -0.01902266964316368, -0.02604588307440281, -0.07566717267036438, -0.03642188385128975, 0.03555721789598465, 0.01665807142853737, 0.004336568992584944, 0.013278812170028687, 0.03691598027944565, 0.06853807717561722, 0.02853400446474552, -0.006008551921695471, -0.012811185792088509, -0.017478622496128082, -0.055056337267160416, 0.0023271008394658566, 0.006577644031494856, -0.02915162406861782, -0.023204833269119263, 0.07524365931749344, 0.033633776009082794, 0.03223972022533417, 0.005240939557552338, 0.014002308249473572, -0.027775214985013008, 0.04178634658455849, -0.010402470827102661, 0.03525723144412041, 0.0426686592400074, 0.0018903558375313878, -0.006052667740732431, 0.00860696379095316, 0.007384960539638996, -0.011046559549868107, 0.03128682076931, 0.010270124301314354, -0.0593620240688324, -0.01939324103295803, 0.0038137983065098524, 0.01831682026386261, -0.0401981845498085, -0.03370435908436775, -0.04842134192585945, 0.03063390962779522, 0.013719968497753143, 0.004195398651063442, 0.0008547407924197614, -0.007398195099085569, -0.02336364984512329, 0.03712773323059082, -0.02022261545062065, 0.07863174378871918, -0.03573368117213249, -0.05696213245391846, 0.005620334297418594, 0.07256142795085907, -0.018846208229660988, 0.046162620186805725, 0.026239991188049316, 0.026151759549975395, 0.012228859588503838, -0.022516630589962006, -0.01967558264732361, 0.03980996459722519, -0.016331614926457405, -0.010781865566968918, -0.0571385957300663, 0.012537668459117413, -0.03017510659992695, 0.018952084705233574, -0.002238869434222579, -0.0288163460791111, 0.00015523195907007903, 0.007764355279505253, 0.08074929565191269, -0.041362836956977844, 0.023169541731476784, -0.07566717267036438, 0.043515682220458984, -0.023928331211209297, -0.01739039085805416, 0.021016698330640793, -0.005157120060175657, 0.11138320714235306, -0.004495385102927685, 0.014196417294442654, 0.011911226436495781, -0.025498848408460617, -0.037974756211042404, 0.038010045886039734, 0.022675445303320885, -0.06391476094722748, -0.05890322104096413, 0.0274575836956501, 0.05759739875793457, 0.021016698330640793, 0.01492873765528202, -0.04898602142930031, 0.026681147515773773, 0.0218284260481596, 0.027651691809296608, 0.004883602727204561, -0.008404032327234745, -0.028004616498947144, -0.023081310093402863, -0.005633568856865168, 0.005929144099354744, -0.06458532065153122, -0.03815121948719025, -0.013058234006166458, 0.006599701941013336, -0.0948663055896759, -0.02204018086194992, 0.017063934355974197, 0.0011690647806972265, -0.03393376246094704, -0.09867789596319199, -0.004164517857134342, 0.02897516079246998, 0.010014253668487072, -0.016861002892255783, 0.06906747072935104, -0.001783375279046595, 0.02931044064462185, 0.004506414290517569, 0.0038689428474754095, -0.01872268319129944, -0.02025790885090828, 0.02348717488348484, -0.0009964623022824526, -0.01211415883153677, -0.04333921894431114, 0.020769650116562843, -0.0032138254027813673, -0.049550700932741165, 0.028745761141180992, 0.01600515842437744, -0.01519343163818121, -0.008170219138264656, -0.0441509485244751, 0.007455545477569103, -0.05011538416147232, 0.0556563101708889, -0.0008139338460750878, -0.06829103082418442, -0.025198861956596375, -0.03213384374976158, 0.036986563354730606, -0.022834261879324913, -0.014046424068510532, -0.07665535807609558, 0.09020768851041794, 0.007658477406948805, 0.0013576592318713665, 0.06684403866529465, 0.02534003183245659, -0.01588163524866104, 0.029628073796629906, -0.09620741754770279, -0.03451608866453171, -0.06970273703336716, 0.033633776009082794, 0.01680806465446949, -0.03291027620434761, -0.03804533928632736, 0.036774810403585434, -0.038186509162187576, -0.04312746226787567, 0.017346275970339775, 0.022251935675740242, 0.0033307319972664118, -0.042315736413002014, 0.021881364285945892, 0.0033814648631960154, -0.01988733746111393, -0.014125832356512547, -0.03478078171610832, 0.0451391376554966, 0.00986426044255495, -0.025975296273827553, -0.03192208707332611, -0.042315736413002014, -0.038186509162187576, -0.06409122049808502, -0.028163433074951172, -0.02807520143687725, -0.036810100078582764, -0.008064341731369495, 0.028463419526815414, 0.01265236921608448, -0.04404506832361221, -0.08759604394435883, -0.0002884060959331691, -0.007429076358675957, -0.016508078202605247, -0.05999729037284851, -0.010967151261866093, 0.03875119239091873, -0.023098956793546677, -0.009952491149306297, -0.08914891630411148, -0.021440207958221436, -0.04535089060664177, 0.03047509305179119, -0.10905389487743378, 0.019287364557385445, 0.01263472344726324, 0.06458532065153122, 0.01058775745332241, -0.03285733982920647, 0.01868739165365696, -0.019622642546892166, -0.05953848734498024, -0.013225873000919819, 0.00875695701688528, 0.014672867022454739, -0.00022554128372576088, 0.0401981845498085, -0.006895276717841625, -0.016331614926457405, -0.0033241144847124815, 0.05600923299789429, -0.044433288276195526, -0.00506447721272707, -0.01702864281833172, 0.0716085284948349, 0.04732727259397507, -0.033139679580926895, -0.008068753406405449, -0.010005430318415165, -0.021034343168139458, -0.047150809317827225, 0.013508213683962822, 0.0056909192353487015, 0.00310574215836823, 0.056997425854206085, -0.00032562867272645235, 0.0017238191794604063, 0.027845801785588264, -0.011584770865738392, 0.0007427973323501647, -0.0022476925514638424, -0.04245690628886223, -0.013472921214997768, 0.039915844798088074, 0.005735035054385662, 0.035663094371557236, -0.015219900757074356, -0.049797751009464264, -0.01012895442545414, -0.03621012717485428, 0.04842134192585945, -0.021881364285945892, 0.031533870846033096, -0.019128547981381416 ]
730,199
mmengine.logging.message_hub
get_info
Get runtime information by key. If the key does not exist, this method will return default information. Args: key (str): Key of runtime information. default (Any, optional): The default returned value for the given key. Returns: Any: A copy of corresponding runtime information if the key exists.
def get_info(self, key: str, default: Optional[Any] = None) -> Any: """Get runtime information by key. If the key does not exist, this method will return default information. Args: key (str): Key of runtime information. default (Any, optional): The default returned value for the given key. Returns: Any: A copy of corresponding runtime information if the key exists. """ if key not in self.runtime_info: return default else: # TODO: There are restrictions on objects that can be saved # return copy.deepcopy(self._runtime_info[key]) return self._runtime_info[key]
(self, key: str, default: Optional[Any] = None) -> Any
[ 0.09755701571702957, -0.05745973065495491, -0.03668172284960747, 0.03040206804871559, 0.030313121154904366, -0.052834488451480865, 0.050770919770002365, 0.000726029509678483, 0.04724862053990364, -0.029316915199160576, 0.00820090901106596, 0.020457798615098, -0.03091796115040779, -0.07023251056671143, 0.0010128833819180727, 0.0029063415713608265, 0.0036156936548650265, 0.03493836149573326, -0.015610190108418465, -0.047711145132780075, 0.04077328369021416, 0.0072224922478199005, 0.028178393840789795, -0.03764234855771065, 0.023197364062070847, 0.07243839651346207, 0.07692132145166397, -0.018785595893859863, 0.06304559856653214, 0.007813990116119385, -0.03967034071683884, -0.03572109714150429, -0.02613261342048645, 0.04482926428318024, -0.0035601018462330103, 0.0281961839646101, -0.033817630261182785, 0.04525620862841606, -0.0759962722659111, -0.013751198537647724, 0.03200311213731766, -0.0022814893163740635, 0.01746918074786663, -0.04070212319493294, 0.018047336488962173, -0.0009333870839327574, -0.004011507611721754, 0.013706725090742111, 0.01832307130098343, -0.07571164518594742, 0.06824009865522385, -0.04852945730090141, -0.03874529153108597, 0.011723208241164684, -0.03210984915494919, -0.015965977683663368, -0.002695092698559165, 0.017736021429300308, -0.019283698871731758, 0.054755743592977524, 0.03552541136741638, -0.04269453510642052, -0.02310841716825962, 0.005034397356212139, 0.00003300765820313245, -0.009793058969080448, -0.006204050034284592, -0.012941781431436539, 0.010202215053141117, 0.014694035984575748, 0.016357343643903732, -0.033888787031173706, -0.023268522694706917, 0.0023526467848569155, 0.01325309555977583, -0.0342089980840683, -0.03710866719484329, -0.08304087072610855, 0.008952510543167591, -0.030206384137272835, -0.006497574970126152, -0.040453072637319565, -0.07784637063741684, -0.027395661920309067, 0.01706002466380596, 0.01585034653544426, 0.04884966462850571, -0.06340138614177704, -0.023873362690210342, 0.033372897654771805, -0.062013816088438034, 0.02262810431420803, -0.030508805066347122, 0.1141367256641388, 0.0069823358207941055, -0.07941184192895889, 0.017424708232283592, -0.05923866853117943, 0.03974149748682976, 0.016223924234509468, -0.0023904494009912014, -0.06347254663705826, 0.004941002931445837, -0.00879240594804287, 0.010700318031013012, -0.007498227991163731, 0.015058718621730804, 0.03974149748682976, 0.004745319951325655, 0.031451642513275146, -0.04835156351327896, -0.04500715807080269, -0.04205412045121193, 0.005977235268801451, 0.005021055229008198, 0.03438689187169075, -0.05301238223910332, 0.030419858172535896, 0.007685016840696335, 0.0335329994559288, -0.08538907021284103, 0.011216210201382637, -0.02193431742489338, -0.030135227367281914, 0.008298750966787338, 0.014871930703520775, -0.00004391755646793172, 0.015610190108418465, 0.02602587826550007, 0.03122038021683693, 0.04326379671692848, 0.01153641939163208, -0.013608883135020733, 0.06848914921283722, 0.008245382457971573, 0.0046385833993554115, 0.01710449904203415, 0.042658958584070206, -0.02575903758406639, 0.0453985258936882, -0.00039553598617203534, -0.009401693008840084, 0.01912359520792961, -0.002403791295364499, 0.005634789355099201, -0.06034161150455475, 0.0423031710088253, 0.00991758517920971, -0.04899198189377785, -0.0481380894780159, 0.047782301902770996, 0.03902992233633995, -0.07226050645112991, -0.04397537186741829, -0.004525176249444485, -0.027431240305304527, 0.026968715712428093, -0.011598682031035423, -0.04429558292031288, -0.04739093407988548, -0.05649910494685173, -0.009277166798710823, 0.01758481189608574, -0.13747641444206238, 0.004798687994480133, 0.00035940128145739436, 0.017335761338472366, 0.02602587826550007, 0.08119077980518341, 0.058882880955934525, -0.08296971768140793, 0.0035245229955762625, -0.03184301033616066, 0.007066835183650255, 0.08930274099111557, 0.03362194821238518, -0.03235889971256256, -0.06453990936279297, 0.08104845881462097, 0.02524314448237419, 0.0006537601002492011, -0.030864592641592026, -0.06574958562850952, 0.0069823358207941055, -0.01812738925218582, 0.05212291330099106, 0.023250732570886612, -0.020813586190342903, -0.004251664504408836, 0.060092560946941376, 0.003875863505527377, 0.04141370207071304, -0.0012363626156002283, -0.01313746441155672, -0.007578280288726091, -0.019692854955792427, 0.01786944270133972, -0.014204828068614006, -0.06386391073465347, 0.07275860756635666, 0.021062638610601425, -0.017976179718971252, 0.022130001336336136, 0.03403110429644585, -0.025154197588562965, -0.010068794712424278, 0.04212527722120285, 0.01600155606865883, -0.04486484080553055, 0.051909439265728, -0.02259252592921257, -0.03717982396483421, -0.022254526615142822, -0.0005623114993795753, 0.04411768913269043, -0.012968465685844421, 0.005852709524333477, 0.001661084359511733, -0.04123580828309059, 0.02782260626554489, 0.058989617973566055, -0.03577446565032005, 0.03267911076545715, 0.04731977730989456, -0.007480438798666, -0.004400650504976511, 0.00981974322348833, 0.008703459054231644, -0.015458980575203896, -0.076352059841156, 0.014898614026606083, -0.025830194354057312, -0.048742927610874176, 0.012390309944748878, 0.015823662281036377, -0.01384014543145895, 0.018927911296486855, -0.010228899307549, 0.05817130580544472, -0.019817380234599113, 0.05237196385860443, 0.014907509088516235, 0.00005302072167978622, -0.0006787764141336083, -0.02414020337164402, -0.04337053373456001, -0.008876905776560307, 0.024709463119506836, -0.003122037975117564, -0.049845870584249496, 0.10687866061925888, -0.006719942204654217, 0.004302808549255133, 0.005158923100680113, 0.002692868933081627, 0.0183942299336195, -0.060092560946941376, -0.03063333034515381, 0.038460660725831985, -0.023232944309711456, -0.03710866719484329, 0.03917223587632179, 0.007938515394926071, 0.032269954681396484, -0.016152765601873398, -0.012674940750002861, 0.023410838097333908, 0.022539157420396805, -0.017451392486691475, -0.010602477006614208, 0.04426000267267227, 0.02664850652217865, -0.012603783048689365, -0.029939543455839157, -0.02623935043811798, -0.024869566783308983, 0.018269704654812813, -0.024567147716879845, -0.012870623730123043, 0.006671021226793528, -0.006052840035408735, -0.002899670507758856, 0.01891012117266655, -0.04899198189377785, -0.03307047486305237, -0.04287242889404297, -0.022503579035401344, -0.017380233854055405, -0.01812738925218582, -0.010220005176961422, 0.013128570280969143, 0.03689519688487053, -0.05144691839814186, 0.022361263632774353, -0.037606772035360336, -0.01007768977433443, -0.07275860756635666, -0.0030531040392816067, 0.05955887958407402, 0.0009139299509115517, 0.006466443184763193, 0.012336942367255688, -0.018554333597421646, -0.008538907393813133, -0.00981974322348833, 0.03362194821238518, 0.04639472812414169, -0.04714188352227211, -0.023250732570886612, 0.028889968991279602, 0.0025194224435836077, -0.013688935898244381, 0.05838477984070778, 0.07962530851364136, -0.04482926428318024, -0.031967535614967346, -0.008832432329654694, 0.012710519134998322, 0.0021892068907618523, 0.10759023576974869, -0.021863160654902458, 0.043761901557445526, -0.029281336814165115, 0.01592150516808033, 0.04696398973464966, -0.06759968400001526, 0.008098619990050793, -0.0013831250835210085, 0.050557445734739304, 0.007355913054198027, -0.017958389595150948, -0.03564993664622307, 0.0010540214134380221, 0.04141370207071304, -0.010033216327428818, 0.02063569240272045, -0.05439995601773262, -0.030135227367281914, -0.0021458452101796865, 0.010638055391609669, -0.000306033092783764, -0.030579961836338043, -0.05464900657534599, -0.004471808206290007, 0.043726321309804916, -0.03620140999555588, 0.13434547185897827, -0.0419473834335804, 0.015894820913672447, -0.07471544295549393, -0.08752380311489105, -0.02623935043811798, 0.0020190957002341747, 0.020297694951295853, 0.023944519460201263, -0.05400858819484711, 0.01311967521905899, -0.041662752628326416, 0.002548330230638385, -0.021987685933709145, 0.0044050975702703, 0.02963712438941002, -0.054933637380599976, 0.03682403638958931, -0.009330535307526588, -0.04226759076118469, 0.0412713848054409, 0.03668172284960747, 0.05425763875246048, -0.0495256632566452, -0.020102011039853096, -0.009668533690273762, -0.014053618535399437, 0.014827457256615162, 0.037535615265369415, 0.020279904827475548, -0.006817783694714308, 0.021400636062026024, -0.007022361736744642, 0.007160229608416557, -0.004082664847373962, 0.06393507122993469, -0.03202090412378311, 0.03239447996020317, 0.02499409392476082, 0.022841576486825943, -0.022841576486825943, 0.0020279905293136835, 0.009277166798710823, -0.006168471183627844, -0.012612678110599518, -0.001794504700228572, -0.05970119312405586, -0.0012263561366125941, 0.033817630261182785, 0.009499534033238888, 0.045754313468933105, -0.01021111011505127, -0.05941656231880188, 0.06770642101764679, 0.050877656787633896, -0.007880699820816517, 0.015085402876138687, -0.003729101037606597, -0.038602977991104126, -0.033924367278814316, 0.020333273336291313, -0.027555765584111214, -0.054898057132959366, -0.014898614026606083, 0.021293900907039642, -0.032750267535448074, -0.027039872482419014, -0.048778507858514786, -0.01155420858412981, 0.051838282495737076, 0.045042734593153, 0.04198295995593071, -0.004567426163703203, 0.03401331603527069, -0.005207844078540802, -0.01802065223455429, -0.021471794694662094, 0.03892318531870842, -0.011740997433662415, 0.018821174278855324, -0.016704237088561058, -0.02152516134083271, 0.0121234692633152, -0.017976179718971252, 0.017816074192523956, -0.01411588117480278, -0.007667227182537317, 0.009677428752183914, 0.03831834718585014, -0.034546997398138046, 0.026701875030994415, -0.04810251295566559, -0.004262782633304596, 0.009739691391587257, -0.07076619565486908, -0.019657276570796967, 0.00220254878513515, 0.06514474749565125, -0.03515183553099632, -0.0008744597434997559, -0.03671730309724808, 0.039528023451566696, 0.05155365169048309, -0.06856030970811844, -0.025189775973558426, -0.047568827867507935, 0.06763526052236557, 0.02833849936723709, 0.03315942361950874, -0.07386154681444168, -0.06411296129226685, 0.012052311562001705, 0.055858686566352844, -0.015716927126049995, -0.03710866719484329, 0.005843814928084612, 0.03468931093811989, -0.023642100393772125, -0.011305157095193863, -0.02204105444252491, 0.00475421454757452, -0.0032865898683667183, -0.029654914513230324, -0.013991355895996094, 0.05151807516813278, 0.050877656787633896, 0.0017400247743353248, -0.033924367278814316, 0.0003229886060580611, 0.007097966503351927, 0.044758107513189316, 0.02100927010178566, -0.006733284331858158, -0.040595389902591705, 0.049810294061899185, 0.023197364062070847, -0.025296512991189957, 0.010744791477918625, -0.001449835253879428, -0.0342089980840683, 0.0003460592415649444, 0.030028490349650383, 0.018661070615053177, 0.0034022207837551832, -0.031167011708021164, 0.05034397542476654, -0.0020613456144928932, -0.004369519185274839, -0.008223145268857479, -0.006306339055299759, 0.02808944694697857, 0.024567147716879845, 0.04635915160179138, 0.04739093407988548, -0.0023615416139364243, -0.05411532521247864, 0.024709463119506836, 0.014809667132794857, -0.03707309067249298, -0.03148721903562546, -0.06592748314142227, 0.006968993693590164, 0.00949063990265131, 0.03319500386714935, 0.011723208241164684, -0.010771475732326508, 0.03910107910633087, -0.035507623106241226, 0.029174599796533585, -0.03538309782743454, -0.011491945944726467, -0.016152765601873398, -0.007062388118356466, -0.023339679464697838, 0.02495851367712021, 0.030384277924895287, 0.05657026171684265, -0.01136742066591978, 0.011723208241164684, -0.00426500616595149, -0.05856267362833023, -0.019728433340787888, -0.018047336488962173, 0.08659875392913818, 0.0007265853928402066, -0.030135227367281914, -0.030455436557531357, 0.020030854269862175, 0.02985059656202793, -0.04792461916804314, 0.015352243557572365, 0.0019812933169305325, -0.042587801814079285, -0.03589899092912674, 0.060875292867422104, -0.046786095947027206, -0.006937862373888493, -0.009757480584084988, 0.03682403638958931, -0.03367531672120094, -0.016161661595106125, 0.044615790247917175, -0.00377357448451221, -0.0121234692633152, -0.017273498699069023, -0.014898614026606083, 0.014747404493391514, 0.02705766260623932, 0.015432296320796013, 0.0004722527228295803, 0.038460660725831985, -0.04088002070784569, -0.0007165788556449115, 0.023428626358509064, 0.0412713848054409, 0.0060706292279064655, 0.003395549952983856, 0.03867413476109505, -0.006902283523231745, -0.024300307035446167, -0.07261629402637482, 0.06304559856653214, 0.006123997736722231, -0.013688935898244381, -0.005301238503307104, 0.005092212930321693, 0.07336344569921494, -0.007805095054209232, 0.0028262892737984657, 0.05820688605308533, 0.021774213761091232, 0.06969883292913437, -0.004411768633872271, -0.04721304029226303, -0.008196461945772171, 0.03091796115040779, 0.07507123053073883, -0.004296137951314449, 0.03445804864168167, -0.008485538884997368, -0.04080886021256447, -0.02348199486732483, 0.027039872482419014, 0.009704112075269222, -0.04426000267267227, 0.04639472812414169, -0.024122413247823715, 0.011803260073065758, 0.03458257392048836, 0.015343349426984787, 0.012328047305345535, 0.000042736231989692897, 0.057139523327350616, -0.015067613683640957, -0.014916404150426388, -0.005519158206880093, 0.043726321309804916, 0.00978416483849287, -0.0004981029196642339, 0.01148305181413889, -0.0007949633873067796, -0.011216210201382637, 0.024816200137138367, -0.017629286274313927, -0.007102414034307003, -0.04020402207970619, 0.005158923100680113, 0.01860770210623741, 0.03757119178771973, 0.04180506616830826, 0.017006658017635345, 0.022094422951340675, 0.033230580389499664, -0.026399455964565277, 0.003753561293706298, 0.060021404176950455, -0.0023393048904836178, 0.008538907393813133, -0.012336942367255688, -0.0027529080398380756, -0.025047462433576584, 0.00010159409430343658, 0.0037424429319798946, -0.05664141848683357, 0.017816074192523956, 0.036468248814344406, 0.027769237756729126, 0.01562798023223877, 0.0037046405486762524, -0.019852960482239723, 0.0471063069999218, -0.011420788243412971, -0.03538309782743454, 0.07699248194694519, -0.01625060848891735, 0.011402999050915241, 0.016152765601873398, 0.03525857254862785, -0.021293900907039642, 0.018483176827430725, 0.01657971180975437, -0.005812683142721653, 0.08410824090242386, 0.019408224150538445, -0.05664141848683357, -0.035294149070978165, -0.03011743724346161, 0.016641974449157715, 0.04233874753117561, -0.07197587192058563, -0.00047030701534822583, -0.020173167809844017, -0.07670784741640091, -0.03157616779208183, -0.08773726969957352, 0.0009256041957996786, -0.052763331681489944, -0.05354606360197067, 0.02348199486732483, -0.050557445734739304, -0.06308117508888245, -0.02517198771238327, 0.05852709338068962, -0.0285341814160347, 0.058028992265462875, -0.02933470532298088, 0.04223201423883438, -0.029654914513230324, -0.039705920964479446, -0.019141383469104767, 0.014765193685889244, 0.044509053230285645, 0.013164148665964603, -0.03415562957525253, 0.11755228787660599, -0.04625241458415985, -0.002899670507758856, 0.049810294061899185, -0.034849416464567184, 0.048600614070892334, 0.007480438798666, -0.0028196184430271387, 0.009988742880523205, -0.02042222023010254, -0.023464206606149673, -0.053795117884874344, 0.03118480183184147, -0.04312148317694664, -0.007685016840696335, -0.041484858840703964, -0.05361722409725189, 0.02399788796901703, 0.012354731559753418, -0.020760217681527138, -0.04223201423883438, -0.007493780460208654, -0.028516393154859543, -0.006813336629420519, 0.01987074874341488, 0.01939043588936329, -0.04945450648665428, 0.011456367559731007, 0.008307645097374916, -0.03668172284960747, 0.03757119178771973, 0.02572345919907093, 0.038602977991104126, -0.06820452213287354, -0.025936931371688843, 0.001486525870859623, -0.061017610132694244, 0.04305032268166542, -0.01983517035841942, 0.0242469385266304, 0.00046308006858453155, 0.017718233168125153, 0.0443667396903038, -0.03200311213731766, 0.039705920964479446, 0.06525148451328278, 0.02042222023010254, -0.10958264768123627, 0.012292468920350075, 0.11328283697366714, -0.0028974469751119614, -0.017718233168125153, -0.008178671821951866, 0.0030442094430327415, 0.023606520146131516, -0.04340611398220062, -0.007969646714627743, -0.03778466582298279, 0.03239447996020317, 0.013422095216810703, -0.01997748576104641, 0.05610773712396622, 0.015788083896040916, 0.03814045339822769, 0.03232332319021225, -0.037393298000097275, 0.02922796830534935, -0.034297943115234375, 0.005777104292064905, 0.003335510613396764, 0.006559837609529495, 0.04525620862841606, -0.005252317525446415, 0.010469055734574795, 0.03063333034515381, -0.019621698185801506, 0.004874292761087418, 0.005198949482291937, 0.08681222796440125, 0.02833849936723709, -0.013831251300871372, -0.03577446565032005, -0.014489457942545414, -0.009152641519904137, 0.009704112075269222, -0.012870623730123043, -0.036432672291994095, -0.026950925588607788 ]
730,200
mmengine.logging.message_hub
get_scalar
Get ``HistoryBuffer`` instance by key. Note: Considering the large memory footprint of history buffers in the post-training, :meth:`get_scalar` will not return a reference of history buffer rather than a copy. Args: key (str): Key of ``HistoryBuffer``. Returns: HistoryBuffer: Corresponding ``HistoryBuffer`` instance if the key exists.
def get_scalar(self, key: str) -> HistoryBuffer: """Get ``HistoryBuffer`` instance by key. Note: Considering the large memory footprint of history buffers in the post-training, :meth:`get_scalar` will not return a reference of history buffer rather than a copy. Args: key (str): Key of ``HistoryBuffer``. Returns: HistoryBuffer: Corresponding ``HistoryBuffer`` instance if the key exists. """ if key not in self.log_scalars: raise KeyError(f'{key} is not found in Messagehub.log_buffers: ' f'instance name is: {MessageHub.instance_name}') return self.log_scalars[key]
(self, key: str) -> mmengine.logging.history_buffer.HistoryBuffer
[ 0.026599546894431114, -0.10244444012641907, -0.09729044139385223, 0.049280647188425064, 0.0028991210274398327, -0.003486005589365959, -0.0006745862192474306, 0.043526530265808105, 0.03254782035946846, -0.019821692258119583, -0.0313299223780632, 0.004814217798411846, 0.016988761723041534, -0.0230341125279665, -0.03914916515350342, 0.002685106825083494, 0.05090450495481491, -0.029917869716882706, -0.013732214458286762, -0.019698137417435646, 0.0007413277635350823, -0.007413277868181467, 0.033165592700242996, 0.03734879940748215, -0.019486330449581146, 0.0445149689912796, 0.040278807282447815, 0.021763265132904053, 0.026370087638497353, 0.0066498867236077785, -0.03399517387151718, -0.06947300583124161, 0.017315298318862915, -0.0023409188725054264, -0.07526241987943649, -0.038549043238162994, -0.024710925295948982, -0.02081012912094593, -0.0552818700671196, -0.045609310269355774, 0.06089477986097336, 0.009240120649337769, 0.05581139028072357, -0.034736502915620804, 0.00806635245680809, 0.016362162306904793, -0.0033315622713416815, 0.032865531742572784, -0.01530312281101942, -0.032724324613809586, -0.007956035435199738, 0.00440825242549181, -0.05916501581668854, 0.01069630030542612, -0.03341270238161087, -0.00640719011425972, 0.0547170490026474, 0.018533194437623024, -0.0731443390250206, 0.06386008858680725, -0.03911386430263519, 0.009090090170502663, -0.010299161076545715, 0.007492705713957548, 0.06315406411886215, -0.10244444012641907, -0.0075500705279409885, 0.0030756276100873947, 0.038549043238162994, -0.025717012584209442, -0.018233133479952812, -0.010246208868920803, 0.021639710292220116, 0.023069413378834724, -0.0894535481929779, -0.056199703365564346, -0.002298998646438122, 0.0453622005879879, -0.025805266574025154, 0.012726126238703728, 0.043244119733572006, 0.0006933400291018188, 0.012858506292104721, -0.03496595844626427, -0.0026343611534684896, -0.04204387590289116, 0.027446778491139412, 0.01665339805185795, -0.026458341628313065, 0.035671986639499664, -0.054399337619543076, -0.028399914503097534, -0.06470732390880585, 0.03879615291953087, 0.025964122265577316, -0.06873167306184769, -0.022010374814271927, 0.017041712999343872, -0.002321061911061406, 0.02873527631163597, -0.021939771249890327, 0.04751557856798172, 0.00016326861805282533, 0.05214005336165428, -0.037913620471954346, 0.020933683961629868, 0.018180180341005325, 0.004262634553015232, 0.04599762335419655, 0.01706818863749504, -0.01036976370960474, 0.07134397327899933, 0.011534706689417362, 0.0077001010067760944, -0.03745470196008682, 0.05168113484978676, -0.043244119733572006, 0.018621448427438736, -0.02513454109430313, 0.025328699499368668, -0.013882244937121868, 0.012231907807290554, -0.03759590908885002, 0.03551312908530235, 0.021639710292220116, 0.03593674674630165, 0.05517596751451492, -0.029900219291448593, 0.010352112352848053, 0.005957098212093115, 0.028188105672597885, -0.008745902217924595, 0.02426965907216072, 0.05535247176885605, 0.03773711249232292, 0.0012951173121109605, 0.008701776154339314, 0.043102916330099106, -0.013564533554017544, 0.025822916999459267, 0.043738339096307755, 0.02614062838256359, 0.03297143429517746, 0.004995136987417936, 0.03360685706138611, -0.029176542535424232, 0.017827168107032776, 0.025575807318091393, -0.03463059663772583, 0.0014605922624468803, 0.006018875632435083, -0.003470561234280467, 0.014191131107509136, 0.01299971155822277, 0.023298872634768486, -0.0175800584256649, 0.004809805192053318, -0.008728251792490482, 0.002233911771327257, -0.03198299929499626, 0.040349412709474564, 0.0313299223780632, 0.006018875632435083, -0.10533914715051651, -0.061812616884708405, 0.009990273974835873, -0.01835668832063675, 0.020986635237932205, -0.027323223650455475, 0.022945860400795937, -0.022734051570296288, 0.0037529717665165663, -0.02375778928399086, 0.05729404464364052, -0.031224019825458527, 0.04077302664518356, -0.047339074313640594, 0.04377363994717598, 0.03879615291953087, 0.02425200864672661, 0.013026188127696514, -0.027958646416664124, -0.0221868809312582, -0.017527107149362564, -0.022504592314362526, -0.016450416296720505, 0.017041712999343872, -0.024375563487410545, 0.0005217976868152618, 0.04335002228617668, -0.03210655227303505, 0.018886206671595573, 0.035742588341236115, -0.05291668325662613, -0.000539448345080018, -0.013052663765847683, -0.017783040180802345, -0.015047188848257065, -0.03939627483487129, 0.10357408225536346, 0.012787903659045696, 0.005264309700578451, 0.004439141135662794, -0.008644411340355873, -0.04737437516450882, -0.009231295436620712, 0.035601384937763214, 0.031347572803497314, -0.05351680517196655, 0.013591009192168713, -0.02499333582818508, -0.03009437769651413, -0.03521306812763214, 0.059800438582897186, 0.007020550314337015, -0.047762688249349594, -0.06318936496973038, -0.00983141828328371, 0.010493317618966103, -0.018921509385108948, 0.146853506565094, -0.08154605329036713, -0.02432261034846306, 0.02130434848368168, -0.03182414174079895, 0.011896545998752117, 0.06040056422352791, 0.0026012661401182413, -0.014588271267712116, -0.05030438303947449, 0.05076330155134201, 0.0365721695125103, 0.010555095039308071, -0.02649364247918129, 0.007042613811790943, -0.03044738993048668, -0.03295378386974335, 0.05256366729736328, 0.05916501581668854, -0.01893915981054306, 0.0051231044344604015, 0.028382262215018272, 0.05874140188097954, 0.10477432608604431, -0.007475054822862148, -0.04335002228617668, 0.0116582615301013, 0.05595259740948677, -0.06820215284824371, 0.010043226182460785, 0.029335398226976395, -0.0024402039125561714, 0.015859119594097137, -0.017615359276533127, 0.008520856499671936, -0.06061236932873726, -0.028629371896386147, 0.0056879254989326, -0.002233911771327257, -0.026811353862285614, -0.07822772860527039, 0.014561795629560947, 0.004796567372977734, -0.009663737379014492, -0.04094953462481499, 0.007258834317326546, -0.0060012247413396835, 0.0446561723947525, 0.01879795454442501, 0.08091063052415848, -0.02073952741920948, 0.015206044539809227, -0.031435828655958176, -0.032512519508600235, -0.014164655469357967, -0.0887475237250328, 0.025858217850327492, 0.030659198760986328, 0.03148877993226051, 0.0016370988450944424, -0.011781816370785236, -0.033006735146045685, 0.02677605301141739, -0.015126616694033146, -0.01033446192741394, 0.013864594511687756, 0.0022791416849941015, -0.07596844434738159, 0.019786391407251358, -0.03907856345176697, 0.018374338746070862, 0.01893915981054306, -0.009769640862941742, 0.029900219291448593, -0.023369476199150085, 0.026952559128403664, -0.035460177809000015, 0.013846944086253643, 0.06760203093290329, 0.04260869696736336, 0.01069630030542612, 0.013449803926050663, 0.005149580538272858, 0.002519631991162896, -0.056411512196063995, -0.025364000350236893, 0.018921509385108948, -0.027976298704743385, -0.006032113451510668, 0.03129462152719498, -0.028488166630268097, 0.07109685987234116, 0.03187709301710129, 0.02562876045703888, -0.0025439015589654446, -0.028894132003188133, 0.008437016047537327, 0.026299485936760902, 0.021551458165049553, 0.07505061477422714, 0.009875545278191566, -0.00907243974506855, 0.0066278232261538506, 0.009487230330705643, -0.02621123194694519, -0.000538620981387794, -0.011216995306313038, -0.09354850649833679, 0.019962897524237633, -0.01908036507666111, -0.020615972578525543, -0.014738301746547222, 0.005983574315905571, 0.026811353862285614, -0.0221868809312582, -0.020262958481907845, -0.03996109589934349, 0.04112603887915611, -0.015170743688941002, -0.03897266089916229, 0.016309211030602455, -0.05478765070438385, -0.016821080818772316, 0.02239868976175785, 0.0754036232829094, -0.015276647172868252, 0.02614062838256359, -0.02511689066886902, 0.03512481600046158, -0.0446561723947525, -0.00943427812308073, -0.04642123728990555, 0.0024269658606499434, 0.03154173120856285, 0.04815100505948067, -0.02628183364868164, -0.0007325024344027042, -0.05990634486079216, -0.01713879220187664, 0.01828608475625515, 0.021110190078616142, 0.015744389966130257, -0.040137603878974915, -0.023210618644952774, -0.009628435596823692, 0.046844854950904846, -0.000621082610450685, -0.006945535074919462, 0.0007264350424520671, -0.003113135462626815, -0.015029538422822952, 0.022416340187191963, -0.013370376080274582, 0.08677065372467041, -0.06354238092899323, 0.022928208112716675, 0.03088865615427494, 0.025434602051973343, -0.010316811501979828, -0.02211627922952175, 0.04818630591034889, -0.0052201831713318825, -0.002938835183158517, 0.012699650600552559, -0.003836812451481819, 0.07063794881105423, -0.0230341125279665, -0.04991606995463371, 0.0364309661090374, -0.017041712999343872, 0.024852130562067032, -0.043667737394571304, -0.05517596751451492, -0.0227517019957304, -0.05768236145377159, -0.012620222754776478, 0.09630201011896133, 0.018745001405477524, 0.019274521619081497, -0.007413277868181467, 0.010775729082524776, 0.009496055543422699, -0.088465116918087, 0.017262347042560577, -0.04624473303556442, 0.007978098466992378, -0.011949497275054455, 0.029406001791357994, -0.05768236145377159, -0.056482113897800446, 0.026829004287719727, -0.039713986217975616, -0.06283635646104813, -0.008498793467879295, 0.026546593755483627, -0.028682325035333633, 0.032424263656139374, -0.0377018116414547, -0.039855193346738815, 0.047409676015377045, -0.02698785997927189, 0.014544145204126835, -0.03447174280881882, -0.0024446165189146996, 0.002925597131252289, 0.05199884623289108, -0.04384424164891243, 0.020104102790355682, 0.032424263656139374, 0.04260869696736336, -0.015056014060974121, -0.06580166518688202, -0.021251395344734192, -0.0022659036330878735, -0.0230341125279665, -0.013846944086253643, 0.00664547411724925, 0.03447174280881882, 0.0033183242194354534, 0.058423686772584915, -0.0027799790259450674, -0.01530312281101942, 0.07042613625526428, 0.03872555121779442, -0.0132909482344985, -0.03851374238729477, 0.0019923183135688305, 0.03512481600046158, -0.01828608475625515, -0.04825690761208534, 0.014199957251548767, 0.009116566739976406, 0.012655523605644703, -0.007082327734678984, 0.04924534633755684, -0.08677065372467041, -0.08592341840267181, -0.0455034039914608, 0.06749612838029861, -0.013670437037944794, -0.026758402585983276, 0.058070674538612366, -0.013952847570180893, -0.040420014411211014, -0.04973956197500229, -0.024075502529740334, 0.06530744582414627, -0.017809517681598663, 0.015859119594097137, -0.0003041981253772974, 0.03148877993226051, 0.02231043577194214, -0.017827168107032776, -0.04497388377785683, -0.02118079364299774, -0.01915096677839756, 0.035301323980093, 0.020968984812498093, -0.040137603878974915, -0.041231945157051086, -0.0351601168513298, -0.05153993144631386, -0.014932459220290184, -0.01483538094907999, 0.004840693902224302, 0.05291668325662613, -0.039643384516239166, 0.0116582615301013, 0.0540110245347023, 0.02478152886033058, -0.08345232903957367, 0.06403660029172897, -0.008684125728905201, 0.018762653693556786, -0.04447966441512108, 0.012602572329342365, 0.027464428916573524, 0.05206945165991783, 0.009522532112896442, 0.04084362834692001, -0.005952685605734587, -0.024887431412935257, -0.020845429971814156, -0.002565964823588729, 0.0044192844070494175, -0.056976333260536194, 0.023157667368650436, 0.023228270933032036, -0.015550232492387295, -0.04349122941493988, 0.00287264515645802, 0.024728575721383095, -0.024216707795858383, 0.014905983582139015, -0.05150463059544563, -0.06608407199382782, -0.056129101663827896, -0.01929217204451561, -0.0367133766412735, 0.009460754692554474, 0.042502790689468384, 0.06343647837638855, 0.03584849461913109, -0.07921616733074188, -0.007806004956364632, -0.06414250284433365, -0.07169698923826218, -0.05214005336165428, 0.012408414855599403, 0.05178704112768173, -0.02693490870296955, -0.023051762953400612, -0.013202694244682789, 0.06922589242458344, 0.011693563312292099, -0.010378588922321796, 0.030412089079618454, -0.012443715706467628, -0.0453622005879879, -0.021286698058247566, -0.05312848836183548, -0.032653722912073135, 0.011058139614760876, -0.02312236651778221, -0.014067577198147774, 0.048433415591716766, -0.015567882917821407, 0.070602647960186, -0.03777241334319115, -0.043738339096307755, 0.020774828270077705, 0.00448326813057065, 0.012223082594573498, -0.05831778421998024, 0.01562083512544632, 0.021039588376879692, -0.002574790269136429, 0.01756240800023079, 0.024887431412935257, -0.049139440059661865, 0.02476387843489647, -0.023140016943216324, 0.02333417348563671, 0.0652015432715416, -0.01973343826830387, -0.030288534238934517, -0.01652984507381916, 0.03710168972611427, 0.035107165575027466, 0.005286373198032379, 0.023810742422938347, 0.010793379507958889, 0.03904326260089874, -0.018109578639268875, 0.022998811677098274, 0.006685188040137291, -0.02829401008784771, 0.01723587140440941, -0.015170743688941002, 0.03184179216623306, 0.026899607852101326, 0.034083425998687744, 0.017968373373150826, 0.012249559164047241, 0.0453622005879879, 0.08218147605657578, -0.03491300716996193, 0.018886206671595573, -0.0058247181586921215, 0.02312236651778221, -0.002826312091201544, 0.04808039963245392, -0.009893195703625679, -0.015126616694033146, 0.054611146450042725, -0.00010990294686052948, 0.009954973123967648, -0.011755340732634068, -0.04698605835437775, 0.04903353750705719, 0.04024350643157959, 0.009443103335797787, 0.012408414855599403, 0.01750945672392845, -0.002028722781687975, -0.027234969660639763, -0.003958160988986492, 0.052528366446495056, 0.04349122941493988, -0.012752602808177471, -0.05983573943376541, 0.015982674434781075, -0.02398724853992462, 0.032424263656139374, 0.022151580080389977, 0.008141367696225643, 0.015276647172868252, 0.027323223650455475, 0.006071827374398708, 0.022698750719428062, 0.05291668325662613, 0.043173518031835556, -0.01922157034277916, 0.038619644939899445, -0.03228306025266647, -0.012664349749684334, 0.015797341242432594, -0.06961420923471451, 0.004964248277246952, -0.02497568540275097, 0.003283022902905941, -0.008225208148360252, 0.031577032059431076, -0.02202802523970604, 0.014729476533830166, 0.021869169548153877, 0.04236158728599548, 0.01241724006831646, 0.02411080338060856, 0.08274629712104797, -0.014605921693146229, 0.004240571521222591, -0.01980404183268547, -0.020704224705696106, -0.002490949584171176, 0.036466266959905624, 0.010307986289262772, -0.0008130336063914001, 0.06640178710222244, -0.017730088904500008, -0.0077574653550982475, -0.014394113793969154, -0.02174561470746994, 0.017041712999343872, 0.04412665218114853, 0.016971111297607422, 0.029423652216792107, -0.015859119594097137, -0.010811029933393002, -0.033448003232479095, -0.019892295822501183, -0.0011208170326426625, -0.007417690474539995, -0.010749252513051033, -0.04211447760462761, -0.04730377346277237, -0.022875256836414337, -0.0046244733966887, 0.0019007555674761534, 0.037560608237981796, 0.010272684507071972, -0.0728619322180748, -0.04589172080159187, -0.06382478773593903, 0.002218467416241765, 0.02908829040825367, 0.02815280482172966, 0.06170671060681343, 0.02497568540275097, -0.05291668325662613, 0.054399337619543076, 0.06287165731191635, -0.017438853159546852, 0.028046900406479836, -0.026899607852101326, 0.029864918440580368, -0.01570908911526203, 0.05845899134874344, -0.008154605515301228, -0.06333057582378387, 0.02506393939256668, -0.008353175595402718, 0.018374338746070862, -0.020545369014143944, -0.05139872431755066, 0.012470192275941372, -0.03576023876667023, -0.002035341924056411, -0.0022614910267293453, -0.00022863122285343707, -0.02967076189815998, -0.004353094380348921, -0.018127229064702988, 0.0036029412876814604, -0.004898058250546455, -0.012576095759868622, -0.004326618276536465, -0.011225820519030094, -0.021639710292220116, -0.019115665927529335, 0.010819855146110058, -0.05005727335810661, 0.022592846304178238, -0.014023450203239918, 0.018533194437623024, 0.028682325035333633, -0.08076942712068558, -0.0002010520693147555, -0.0554230771958828, 0.07141457498073578, -0.009222470223903656, -0.03226540982723236, 0.08253449201583862, 0.0629422590136528, 0.05775296315550804, 0.01943337731063366, 0.08677065372467041, -0.01151705626398325, -0.027993949130177498, 0.02504628896713257, 0.02901768684387207, 0.0030998974107205868, -0.034030474722385406, -0.004035382531583309, 0.09834948182106018, -0.03496595844626427, -0.04137314856052399, -0.06933179497718811, 0.11536472290754318, 0.03537192568182945, -0.0013006330700591207, -0.02319296821951866, -0.0002571756485849619, 0.01570908911526203, -0.012752602808177471, -0.04504448547959328, -0.017906595021486282, 0.035318974405527115, -0.004187619313597679, -0.0700378268957138, 0.0025549333076924086, 0.015232520177960396, 0.00554672023281455, 0.01245254185050726, 0.0320359505712986, -0.056764524430036545, -0.027482079342007637, 0.04335002228617668, 0.03505421429872513, 0.013749864883720875, 0.011102265678346157, -0.005665862001478672, 0.003455116879194975, 0.025893520563840866, -0.05521126836538315, -0.015567882917821407, -0.01720939390361309, -0.00448326813057065 ]
730,201
mmengine.logging.message_hub
load_state_dict
Loads log scalars, runtime information and resumed keys from ``state_dict`` or ``message_hub``. If ``state_dict`` is a dictionary returned by :meth:`state_dict`, it will only make copies of data which should be resumed from the source ``message_hub``. If ``state_dict`` is a ``message_hub`` instance, it will make copies of all data from the source message_hub. We suggest to load data from ``dict`` rather than a ``MessageHub`` instance. Args: state_dict (dict or MessageHub): A dictionary contains key ``log_scalars`` ``runtime_info`` and ``resumed_keys``, or a MessageHub instance.
def load_state_dict(self, state_dict: Union['MessageHub', dict]) -> None: """Loads log scalars, runtime information and resumed keys from ``state_dict`` or ``message_hub``. If ``state_dict`` is a dictionary returned by :meth:`state_dict`, it will only make copies of data which should be resumed from the source ``message_hub``. If ``state_dict`` is a ``message_hub`` instance, it will make copies of all data from the source message_hub. We suggest to load data from ``dict`` rather than a ``MessageHub`` instance. Args: state_dict (dict or MessageHub): A dictionary contains key ``log_scalars`` ``runtime_info`` and ``resumed_keys``, or a MessageHub instance. """ if isinstance(state_dict, dict): for key in ('log_scalars', 'runtime_info', 'resumed_keys'): assert key in state_dict, ( 'The loaded `state_dict` of `MessageHub` must contain ' f'key: `{key}`') # The old `MessageHub` could save non-HistoryBuffer `log_scalars`, # therefore the loaded `log_scalars` needs to be filtered. for key, value in state_dict['log_scalars'].items(): if not isinstance(value, HistoryBuffer): print_log( f'{key} in message_hub is not HistoryBuffer, ' f'just skip resuming it.', logger='current', level=logging.WARNING) continue self.log_scalars[key] = value for key, value in state_dict['runtime_info'].items(): try: self._runtime_info[key] = copy.deepcopy(value) except: # noqa: E722 print_log( f'{key} in message_hub cannot be copied, ' f'just return its reference.', logger='current', level=logging.WARNING) self._runtime_info[key] = value for key, value in state_dict['resumed_keys'].items(): if key not in set(self.log_scalars.keys()) | \ set(self._runtime_info.keys()): print_log( f'resumed key: {key} is not defined in message_hub, ' f'just skip resuming this key.', logger='current', level=logging.WARNING) continue elif not value: print_log( f'Although resumed key: {key} is False, {key} ' 'will still be loaded this time. This key will ' 'not be saved by the next calling of ' '`MessageHub.state_dict()`', logger='current', level=logging.WARNING) self._resumed_keys[key] = value # Since some checkpoints saved serialized `message_hub` instance, # `load_state_dict` support loading `message_hub` instance for # compatibility else: self._log_scalars = copy.deepcopy(state_dict._log_scalars) self._runtime_info = copy.deepcopy(state_dict._runtime_info) self._resumed_keys = copy.deepcopy(state_dict._resumed_keys)
(self, state_dict: Union[mmengine.logging.message_hub.MessageHub, dict]) -> NoneType
[ -0.026333123445510864, -0.012488371692597866, -0.1099054217338562, 0.010250347666442394, -0.014300106093287468, -0.030305374413728714, -0.01458107028156519, 0.0273988489061594, 0.05037977918982506, -0.06560997664928436, -0.0024790242314338684, 0.07343821227550507, 0.011761740781366825, 0.007992945611476898, -0.0709192231297493, 0.046853192150592804, 0.03406447917222977, 0.04479924961924553, -0.04181521758437157, -0.053092535585165024, -0.01416446827352047, -0.02267090044915676, 0.04340411722660065, 0.08394046127796173, -0.02114013023674488, -0.02813516929745674, -0.017061306163668633, -0.021760188043117523, 0.03751355782151222, 0.0028556615579873323, -0.02048131823539734, -0.022167103365063667, -0.02189582586288452, 0.03458765521645546, -0.03447139635682106, -0.0061957440339028835, 0.02674003690481186, -0.03220430389046669, -0.11478839069604874, 0.00507673155516386, -0.03247557953000069, -0.008501587435603142, 0.0393156036734581, -0.009082892909646034, 0.01882459782063961, 0.02505425177514553, -0.023329712450504303, 0.047356992959976196, 0.03710664436221123, -0.009082892909646034, -0.007082234136760235, -0.032533708959817886, -0.03784296289086342, 0.06181211397051811, -0.018611453473567963, 0.00035695769474841654, 0.014174156822264194, -0.026875674724578857, -0.044372957199811935, 0.02980157732963562, -0.05037977918982506, -0.03753293678164482, -0.03762982040643692, 0.047356992959976196, 0.05107734352350235, -0.06421484053134918, -0.006980505771934986, -0.012662763707339764, -0.06576498597860336, -0.04255153611302376, -0.025616180151700974, -0.02656564489006996, 0.012081458233296871, 0.01727445051074028, -0.06731513142585754, -0.012924350798130035, -0.06529994308948517, 0.03695163130760193, -0.024879859760403633, 0.024841105565428734, 0.0469694547355175, -0.016024645417928696, -0.02588745579123497, -0.0028556615579873323, -0.017603857442736626, -0.017603857442736626, 0.04468298703432083, 0.02127576805651188, -0.038075488060712814, -0.02272903174161911, -0.013883504085242748, 0.055999062955379486, -0.02437606267631054, 0.030770419165492058, 0.0790962502360344, -0.027902645990252495, -0.03549836575984955, 0.04762826859951019, -0.01721632108092308, -0.02185707353055477, -0.037242282181978226, -0.06545495986938477, -0.014803904108703136, -0.030266620218753815, -0.03202991187572479, -0.0782824233174324, 0.02515113539993763, -0.006990194320678711, 0.013554098084568977, -0.027263211086392403, -0.03462640941143036, -0.002133874222636223, -0.04100139066576958, 0.019066808745265007, 0.0014726397348567843, 0.03745542839169502, -0.000008491558219247963, 0.007368042599409819, -0.022457754239439964, 0.04065260663628578, -0.018378930166363716, 0.016014955937862396, -0.041970230638980865, 0.03294062614440918, -0.006384667940437794, 0.02505425177514553, 0.05165864899754524, 0.0017875132616609335, 0.022341493517160416, -0.04890713840723038, 0.0006642622174695134, -0.03433575853705406, -0.013805996626615524, 0.009979071095585823, 0.02052007056772709, -0.02672065980732441, -0.010124397464096546, -0.00895694363862276, 0.03526584431529045, 0.0005053115892224014, 0.034122612327337265, 0.004471205174922943, 0.007324444595724344, 0.02050069533288479, 0.09176870435476303, 0.01650906540453434, 0.040458835661411285, 0.02584870159626007, -0.010773521848022938, 0.004216884262859821, 0.041931476444005966, -0.00937354564666748, -0.08401796966791153, 0.04476049542427063, -0.03588590398430824, -0.05665787309408188, -0.0062102763913571835, -0.011965197511017323, -0.037222906947135925, -0.016664080321788788, 0.015181752853095531, -0.03553711995482445, 0.04844209551811218, -0.07998758554458618, -0.029704691842198372, 0.007566655054688454, 0.020558824762701988, -0.005406137555837631, -0.007794333156198263, 0.04650441184639931, -0.05200743302702904, -0.04879087954759598, -0.0470857173204422, 0.03230118751525879, 0.017574792727828026, 0.034122612327337265, -0.02437606267631054, -0.01973531022667885, -0.03757168725132942, 0.011112616397440434, 0.04456672817468643, 0.010734768584370613, -0.07595720142126083, 0.021372651681303978, -0.001697895466350019, 0.07502711564302444, -0.017526349052786827, -0.007934815250337124, 0.0389861986041069, 0.06828397512435913, -0.03980002552270889, -0.013505656272172928, 0.03991628438234329, -0.018204540014266968, 0.030770419165492058, 0.030266620218753815, -0.027321340516209602, -0.03398697450757027, -0.0011698765447363257, 0.04154394194483757, 0.030944809317588806, -0.021547043696045876, 0.04069136083126068, -0.04309408739209175, -0.06588125228881836, -0.009930629283189774, -0.03390946611762047, 0.06661757081747055, 0.039722517132759094, 0.029704691842198372, -0.06126956269145012, -0.06843899190425873, -0.007959036156535149, 0.021585797891020775, 0.031061071902513504, -0.03991628438234329, 0.008559717796742916, 0.028910242021083832, -0.00009665711695561185, -0.03373507410287857, 0.13742053508758545, 0.009286349639296532, -0.03770732507109642, -0.04658191651105881, -0.012963104993104935, -0.007484303787350655, -0.023349089547991753, -0.03588590398430824, 0.019270265474915504, 0.02747635543346405, 0.030944809317588806, 0.022419001907110214, -0.007067701779305935, -0.051426127552986145, 0.08432799577713013, 0.06491240859031677, -0.020578201860189438, 0.0026497826911509037, 0.06394356489181519, 0.07417453825473785, 0.0018395885126665235, 0.005803362932056189, 0.00012670634896494448, 0.01486203446984291, 0.007711981423199177, -0.07204308360815048, 0.03470391780138016, 0.03323127701878548, -0.0704929381608963, 0.028619589284062386, -0.004163598176091909, 0.004197507631033659, -0.0313323475420475, -0.016199035570025444, 0.03447139635682106, -0.015065491199493408, 0.06665632128715515, -0.03784296289086342, 0.005595061928033829, -0.03218492865562439, 0.006026196759194136, -0.016925668343901634, -0.020849477499723434, 0.030441012233495712, -0.03294062614440918, 0.002435426227748394, 0.028813358396291733, -0.0007005938095971942, 0.0073389774188399315, 0.01870833709836006, 0.001902563264593482, 0.0019619048107415438, -0.009586690925061703, 0.04851960018277168, 0.0002811155281960964, -0.03055727295577526, -0.0023324869107455015, -0.03697100654244423, -0.0006485185585916042, 0.05983567610383034, 0.023252205923199654, 0.019812816753983498, 0.040342576801776886, 0.011509841307997704, 0.01256587915122509, -0.021682681515812874, -0.03239807114005089, -0.07750735431909561, 0.025499919429421425, -0.05596030876040459, 0.03454890102148056, 0.011471088044345379, 0.004870852455496788, 0.05189117044210434, -0.002275567501783371, -0.024143539369106293, -0.04297782480716705, 0.019415590912103653, 0.0236397422850132, 0.006069794297218323, 0.054603930562734604, 0.016276543959975243, 0.04414043575525284, -0.011306384578347206, 0.012449618428945541, -0.04220275208353996, 0.01214927714318037, -0.010715391486883163, -0.03623468801379204, 0.0017705585341900587, -0.014125715009868145, 0.0551077276468277, 0.027631370350718498, 0.01732289232313633, 0.0078573077917099, -0.023019682615995407, 0.03757168725132942, 0.004870852455496788, 0.007566655054688454, 0.04813206568360329, -0.04259029030799866, 0.023969149217009544, 0.002386984182521701, 0.02577119506895542, 0.005808207206428051, -0.062432169914245605, 0.040497589856386185, -0.050767313688993454, 0.03451014682650566, -0.037377920001745224, -0.03836613893508911, -0.0047521693632006645, 0.023019682615995407, 0.02511238120496273, 0.011965197511017323, -0.008133427239954472, -0.012594944797456264, 0.04173770919442177, 0.010492557659745216, -0.016906291246414185, 0.035672757774591446, -0.05828552693128586, -0.023717248812317848, 0.025499919429421425, 0.043481625616550446, -0.01879553310573101, 0.022593392059206963, 0.013980388641357422, 0.052976273000240326, -0.02189582586288452, -0.06599751114845276, -0.02900712564587593, 0.00684971222653985, 0.06685008853673935, 0.05239497125148773, -0.014755462296307087, -0.018466126173734665, -0.06758640706539154, 0.04154394194483757, 0.010880094021558762, 0.03299875557422638, 0.016722211614251137, -0.0780886560678482, -0.013670358806848526, 0.016605950891971588, 0.026526890695095062, -0.03394822031259537, 0.01878584362566471, -0.0074988361448049545, -0.009809523820877075, -0.025519294664263725, -0.07711981236934662, -0.030421635136008263, 0.04925592243671417, 0.015869630500674248, 0.030072852969169617, -0.02420167066156864, 0.029607808217406273, -0.014629513025283813, 0.08525808900594711, 0.0708029642701149, 0.01173267513513565, -0.0028580836951732635, 0.023756003007292747, -0.00038814227445982397, 0.05596030876040459, 0.06367228925228119, -0.009320259094238281, 0.03706789016723633, -0.026313746348023415, 0.007198495324701071, 0.05960315465927124, 0.005788830108940601, -0.030169736593961716, 0.001941316993907094, 0.00451238127425313, 0.04018756002187729, 0.05177491158246994, 0.026216860860586166, -0.04414043575525284, 0.01177142933011055, 0.024996120482683182, -0.06642380356788635, 0.028793981298804283, 0.011345138773322105, -0.0038293476682156324, -0.025403033941984177, 0.06123080849647522, -0.008152804337441921, -0.08138272166252136, 0.07615097612142563, -0.03821112588047981, -0.0548752062022686, -0.009732016362249851, -0.016199035570025444, 0.0002518988912925124, 0.01570492796599865, -0.027050064876675606, -0.019309019669890404, 0.045884352177381516, 0.026139354333281517, 0.025325527414679527, 0.006534838583320379, 0.0058566490188241005, -0.0011940976837649941, 0.042822811752557755, -0.07708106189966202, 0.02123701386153698, 0.05022476240992546, 0.024879859760403633, 0.02185707353055477, -0.0067092301324009895, -0.02681754343211651, -0.005774297751486301, 0.03666097670793533, -0.01300185825675726, -0.0003057907160837203, 0.05006974935531616, -0.000620058795902878, 0.022554639726877213, -0.006854556500911713, -0.015133310109376907, 0.06336226314306259, -0.016276543959975243, 0.04371414706110954, -0.00313662551343441, -0.02290342189371586, 0.05351882800459862, 0.02290342189371586, -0.00944136455655098, -0.00789121724665165, -0.03286311775445938, -0.015540223568677902, -0.020733216777443886, -0.009068360552191734, 0.004839365370571613, -0.0030736508779227734, 0.046039365231990814, -0.00547395646572113, -0.02974344603717327, 0.007188806775957346, -0.004832098726183176, -0.0711904987692833, 0.04235776886343956, 0.038075488060712814, 0.03834676370024681, -0.01371880155056715, -0.046659424901008606, -0.022612769156694412, 0.004849053453654051, 0.007716825697571039, 0.030925434082746506, 0.041350170969963074, -0.03520771488547325, -0.003386102383956313, -0.02284529246389866, 0.02978220023214817, -0.0036258907057344913, -0.03449077159166336, -0.01956091821193695, 0.04762826859951019, 0.006840023677796125, -0.0017487596487626433, -0.00410304544493556, -0.0019279953557997942, -0.05363508686423302, -0.004415496718138456, 0.05433265492320061, 0.08479304611682892, 0.01955122873187065, -0.05049603804945946, -0.019183069467544556, -0.020694462582468987, 0.02582932449877262, -0.003795438213273883, -0.037222906947135925, -0.03695163130760193, 0.00048563198652118444, 0.07727482914924622, -0.03861803933978081, -0.007619941607117653, -0.03406447917222977, -0.01966749131679535, 0.05661911889910698, -0.00048169607180170715, 0.027689501643180847, 0.02127576805651188, 0.06623002886772156, 0.0028241740074008703, -0.006253874395042658, -0.01562741957604885, 0.04014880955219269, -0.011916755698621273, 0.003366725519299507, -0.01655750721693039, -0.07595720142126083, -0.049798473715782166, 0.054565176367759705, -0.023794757202267647, -0.006975661497563124, 0.06716012209653854, 0.04076886549592018, 0.05580529198050499, 0.00007281452417373657, -0.015046115033328533, -0.027825139462947845, -0.01874709129333496, -0.08099517971277237, 0.009271817281842232, 0.025403033941984177, -0.053712595254182816, -0.05243372172117233, 0.02588745579123497, 0.05890558660030365, 0.00768291624262929, -0.044334206730127335, 0.006873933132737875, -0.08448301255702972, -0.0941714346408844, -0.01649937778711319, -0.0018940859008580446, -0.030072852969169617, -0.009344480000436306, 0.022283364087343216, 0.02978220023214817, 0.04224150627851486, -0.021798942238092422, 0.045186784118413925, -0.03526584431529045, -0.038191746920347214, -0.02664315141737461, -0.03317314758896828, 0.0051057967357337475, -0.04177646338939667, -0.0075763436034321785, -0.07456207275390625, 0.0008416813798248768, 0.00036482952418737113, 0.012895285151898861, -0.048287078738212585, -0.0038753675762563944, 0.017642611637711525, -0.02894899621605873, -0.030344128608703613, 0.0023518637754023075, 0.01063788402825594, -0.04487675800919533, 0.06061074882745743, -0.027243833988904953, 0.023426596075296402, 0.045961860567331314, 0.024976743385195732, 0.0032867961563169956, 0.0017717696027830243, 0.025325527414679527, -0.0005740388296544552, 0.03294062614440918, 0.014445432461798191, 0.05247247591614723, -0.0011922810226678848, 0.03377382829785347, 0.024550452828407288, 0.04476049542427063, -0.004984691739082336, 0.022535262629389763, 0.029995344579219818, -0.034025728702545166, 0.07320569455623627, 0.035847149789333344, 0.007426172960549593, -0.05402262508869171, 0.05444891378283501, 0.023058436810970306, -0.019037744030356407, 0.017565103247761726, -0.0075375898741185665, 0.09246627241373062, 0.01890210621058941, -0.03526584431529045, -0.011664856225252151, -0.05328630283474922, 0.04371414706110954, 0.03216554969549179, -0.028910242021083832, -0.038966819643974304, -0.05816926807165146, 0.05037977918982506, 0.07801114767789841, 0.038191746920347214, 0.027011312544345856, -0.007813709788024426, 0.014697331935167313, 0.03668035566806793, 0.004778812639415264, 0.049914732575416565, -0.06363353878259659, -0.016044022515416145, -0.005546619649976492, 0.02028754912316799, 0.003979518078267574, 0.005314097739756107, -0.05894434079527855, -0.03821112588047981, 0.0312548391520977, -0.08363043516874313, 0.002700646873563528, 0.015850253403186798, -0.05789799243211746, -0.036370325833559036, -0.06909780204296112, -0.0007151263998821378, 0.003461187705397606, 0.02272903174161911, -0.037939850240945816, 0.01486203446984291, 0.024104787036776543, 0.053906362503767014, 0.008215779438614845, -0.019241200760006905, 0.025441788136959076, 0.010066267102956772, -0.021392028778791428, -0.015976203605532646, -0.03700976073741913, -0.004321034997701645, 0.02830955944955349, -0.012420552782714367, -0.013137496076524258, 0.07502711564302444, 0.006752828136086464, 0.019958142191171646, 0.03671910613775253, -0.04309408739209175, 0.04324910044670105, -0.024627961218357086, 0.051348619163036346, 0.02974344603717327, -0.0015525690978392959, 0.024879859760403633, -0.006927219685167074, -0.007678071968257427, 0.017080683261156082, -0.02270965464413166, -0.017487596720457077, 0.05964190512895584, 0.031816769391298294, -0.02598433941602707, 0.08804835379123688, 0.043481625616550446, -0.06781893223524094, -0.005415826104581356, -0.04421794414520264, -0.010763833299279213, -0.031836144626140594, 0.0005682863411493599, 0.04557432234287262, 0.01416446827352047, -0.028658343479037285, 0.057820484042167664, -0.038889314979314804, 0.01374786626547575, 0.05437140539288521, -0.02592620998620987, 0.01094791293144226, -0.02592620998620987, 0.028445197269320488, 0.0008325984817929566, -0.019958142191171646, -0.0029331687837839127, -0.03693225234746933, 0.043636638671159744, -0.01734226942062378, -0.016276543959975243, -0.0392574742436409, -0.007295379415154457, -0.049914732575416565, -0.07587970048189163, -0.0864206999540329, -0.0313517227768898, -0.03433575853705406, 0.019958142191171646, -0.001016678404994309, -0.017846068367362022, -0.03356068208813667, -0.025577425956726074, 0.020558824762701988, -0.06421484053134918, 0.016169970855116844, -0.0067092301324009895, -0.015491781756281853, -0.0022707232274115086, -0.04208649322390556, -0.002833862556144595, -0.05638659745454788, 0.014057896099984646, 0.00032970900065265596, 0.0022259142715483904, -0.0275732409209013, -0.04623313620686531, -0.009363857097923756, -0.039625633507966995, 0.027999531477689743, 0.004032804165035486, 0.031119201332330704, 0.057665470987558365, -0.010812275111675262, 0.016760963946580887, -0.018311111256480217, 0.011538906954228878, 0.02189582586288452, -0.002370029455050826, -0.002749088918790221, -0.09324134141206741, 0.004180552903562784, 0.02199271135032177, -0.02823205292224884, 0.007329288870096207, 0.02677878923714161, 0.0704154297709465, 0.021450160071253777, 0.000519541441462934, -0.03980002552270889, 0.027224456891417503, 0.01655750721693039, -0.03594403341412544, -0.03844364732503891, 0.06913655996322632, -0.02280653826892376, -0.008627536706626415, 0.006578436587005854, 0.041970230638980865, 0.03400634974241257, -0.0316229984164238, -0.026391252875328064, -0.033308785408735275, -0.04619438201189041, -0.01657688431441784, -0.01569523848593235, 0.0036113581154495478, -0.005813051480799913, -0.0062344977632164955, -0.0314873605966568, 0.032611217349767685, 0.020578201860189438, 0.06522243469953537, 0.037939850240945816, -0.01260463334619999, -0.009741704910993576 ]
730,202
mmengine.logging.message_hub
pop_info
Remove runtime information by key. If the key does not exist, this method will return the default value. Args: key (str): Key of runtime information. default (Any, optional): The default returned value for the given key. Returns: Any: The runtime information if the key exists.
def pop_info(self, key: str, default: Optional[Any] = None) -> Any: """Remove runtime information by key. If the key does not exist, this method will return the default value. Args: key (str): Key of runtime information. default (Any, optional): The default returned value for the given key. Returns: Any: The runtime information if the key exists. """ return self._runtime_info.pop(key, default)
(self, key: str, default: Optional[Any] = None) -> Any
[ 0.09546881914138794, -0.016880622133612633, -0.034125763922929764, -0.016620254144072533, -0.0056500183418393135, -0.05499003827571869, 0.025064904242753983, 0.03558383136987686, 0.068390391767025, -0.021489163860678673, -0.00065309350611642, 0.0157436765730381, -0.042075712233781815, -0.06141248717904091, -0.018069643527269363, 0.019961662590503693, 0.02862328663468361, 0.033605024218559265, 0.009069537743926048, -0.09046972543001175, 0.04624162241816521, 0.018694531172513962, 0.007151482161134481, -0.021593309938907623, 0.012141898274421692, 0.05669112130999565, 0.08081869035959244, -0.006292263045907021, 0.06540481746196747, -0.030706243589520454, -0.04683179408311844, -0.008496725000441074, -0.04336019977927208, 0.03509780764579773, -0.0167070422321558, 0.035392895340919495, -0.04027048498392105, 0.019909588620066643, -0.038291674107313156, -0.004430620931088924, 0.02989041991531849, 0.002088380279019475, 0.00220446172170341, -0.05558020994067192, 0.04214514419436455, 0.019440922886133194, 0.013973163440823555, 0.030029281973838806, -0.01589989848434925, -0.033552948385477066, 0.04856759309768677, 0.008540119975805283, -0.02857121266424656, 0.041867416352033615, -0.0333620123565197, -0.006982242222875357, -0.004309115465730429, 0.006522255949676037, 0.0006167502724565566, 0.03167828917503357, 0.0478038415312767, -0.017088918015360832, -0.06783493608236313, -0.020725412294268608, 0.0496785007417202, -0.005853974260389805, 0.012706032022833824, -0.00413770554587245, 0.007069032173603773, -0.030428515747189522, -0.011560405604541302, -0.018382087349891663, -0.01647271029651165, 0.01931941695511341, 0.047769125550985336, -0.06019742786884308, 0.008362200111150742, -0.06394675374031067, 0.017930779606103897, -0.07352834939956665, 0.010779297910630703, -0.010301953181624413, -0.04027048498392105, 0.015335763804614544, 0.022009901702404022, 0.024804534390568733, 0.1119241714477539, -0.05120600387454033, -0.05561492592096329, 0.027928968891501427, -0.021402373909950256, 0.0033132019452750683, -0.043499063700437546, 0.06814737617969513, 0.038916561752557755, -0.055753789842128754, 0.02325967513024807, -0.059398964047431946, 0.03558383136987686, -0.0342993438243866, 0.04908832907676697, -0.07609732449054718, 0.0073944940231740475, -0.022339703515172005, 0.024978114292025566, 0.04179798439145088, 0.04815100133419037, 0.021489163860678673, -0.0035800805781036615, 0.04794270545244217, -0.03015078790485859, -0.04756082966923714, -0.06668931245803833, -0.017774557694792747, 0.03520195558667183, 0.065265953540802, -0.06627272069454193, 0.01333959773182869, 0.015908576548099518, 0.040860652923583984, -0.07609732449054718, -0.004656274802982807, -0.026279961690306664, -0.036660026758909225, -0.008279750123620033, 0.0076288264244794846, -0.02325967513024807, 0.024179648607969284, 0.035549115389585495, 0.042388156056404114, 0.007433549501001835, 0.005103242117911577, -0.015283689834177494, 0.02805047482252121, -0.006756588816642761, -0.004124687053263187, 0.046172190457582474, 0.0029378358740359545, -0.007259969599545002, 0.01904168911278248, -0.01094419788569212, 0.021072572097182274, 0.005207390058785677, 0.0327892005443573, 0.022912517189979553, -0.0817907378077507, 0.02372834086418152, 0.00014021982497069985, -0.0478038415312767, -0.042492303997278214, -0.015734996646642685, 0.0162383783608675, -0.06596027314662933, -0.07477812469005585, 0.048914749175310135, -0.004447978921234608, 0.02105521410703659, 0.02020467258989811, -0.04724838584661484, -0.08415142446756363, -0.017757199704647064, 0.010744581930339336, 0.033657096326351166, -0.12261667847633362, -0.033917468041181564, -0.05117128789424896, 0.07332005351781845, 0.04440167918801308, 0.036660026758909225, 0.07109823077917099, -0.07352834939956665, 0.012567168101668358, 0.006583008915185928, -0.005302859004586935, 0.06047515571117401, 0.04294361174106598, -0.03749321028590202, -0.048081569373607635, 0.07762482762336731, 0.005237766541540623, 0.0018117377767339349, -0.027043713256716728, -0.0501992404460907, -0.020187314599752426, -0.010414780117571354, 0.01420749630779028, -0.022079333662986755, -0.02305137924849987, -0.02688749134540558, 0.03433405980467796, -0.0016804682090878487, 0.0019668745808303356, 0.0019495167070999742, 0.004960039164870977, 0.05651754140853882, 0.005485117435455322, -0.009746498428285122, 0.004174591042101383, -0.03204280510544777, 0.00417676055803895, 0.005211729556322098, -0.021957827731966972, 0.03784036636352539, 0.00216866098344326, -0.03787508234381676, -0.008531440980732441, 0.038604117929935455, -0.01252377312630415, -0.036660026758909225, 0.06884169578552246, 0.0051466370932757854, 0.007559394463896751, 0.05589265376329422, -0.02862328663468361, 0.029925134032964706, -0.0238498467952013, -0.014988604001700878, 0.007828443311154842, -0.03296278044581413, 0.02346797101199627, 0.04183270037174225, -0.04346434772014618, 0.05873936042189598, 0.04377679154276848, -0.019874872639775276, 0.024092858657240868, -0.01626441441476345, 0.01688930206000805, 0.01170794852077961, -0.07318118959665298, 0.044228099286556244, -0.023502686992287636, -0.03436877578496933, -0.02447473257780075, -0.002075362019240856, -0.022808369249105453, -0.007476944476366043, -0.02706107124686241, 0.07804141938686371, 0.007364117540419102, 0.03469857573509216, 0.03261562064290047, 0.0011152493534609675, 0.03089718148112297, 0.0027816141955554485, 0.008097491227090359, -0.015491985715925694, 0.04592917859554291, 0.01810435950756073, -0.04485298693180084, 0.11865906417369843, -0.0249433983117342, 0.023016663268208504, 0.0337786041200161, 0.0633912980556488, 0.0006026469054631889, -0.060023847967386246, -0.04974793270230293, 0.026505615562200546, -0.007945609278976917, -0.024092858657240868, -0.009720461443066597, 0.024440016597509384, 0.040235769003629684, 0.02631467767059803, 0.012402267195284367, 0.02626260370016098, 0.036764174699783325, -0.007476944476366043, 0.00648753996938467, 0.030515305697917938, -0.040027473121881485, 0.01076193992048502, -0.06009327992796898, 0.010275916196405888, 0.02841499261558056, -0.02258271537721157, -0.02936968021094799, 0.02810254879295826, 0.008605211973190308, 0.02457888051867485, -0.049609068781137466, 0.022912517189979553, -0.009477449581027031, -0.03745849430561066, 0.02178424783051014, -0.009295191615819931, -0.021506521850824356, 0.009008784778416157, 0.03735434636473656, 0.035184599459171295, 0.013547893613576889, -0.07581959664821625, 0.04183270037174225, -0.04638048633933067, -0.007416191510856152, -0.07227857410907745, 0.030376441776752472, 0.04193684831261635, 0.03745849430561066, 0.016099514439702034, -0.01481502503156662, -0.04603332653641701, -0.02100314013659954, 0.010041584260761738, 0.023658908903598785, 0.07922176271677017, -0.022929875180125237, -0.018503593280911446, 0.026644479483366013, 0.018034927546977997, -0.013001116923987865, -0.002178424736484885, 0.02362419292330742, -0.03641701489686966, -0.03514988347887993, 0.016906660050153732, -0.0015133977867662907, -0.003041983814910054, 0.07630562037229538, -0.018451519310474396, -0.02095106616616249, -0.050546400249004364, 0.02947382815182209, 0.015162183903157711, -0.07561130076646805, -0.03468121960759163, -0.011412863619625568, 0.05290708318352699, -0.0051683345809578896, -0.013860336504876614, -0.029282890260219574, -0.02046504244208336, -0.0028228394221514463, -0.00011642042954917997, 0.005866992752999067, -0.049123045057058334, -0.011343431659042835, 0.003096227301284671, 0.00002990181019413285, -0.051240719854831696, -0.02726936526596546, -0.04467940703034401, -0.0037167747505009174, 0.04294361174106598, -0.0037688484881073236, 0.13108736276626587, -0.04051349312067032, 0.0344555638730526, -0.0315394252538681, -0.018451519310474396, 0.006400750484317541, 0.008501064032316208, 0.024335870519280434, 0.04919247701764107, -0.05589265376329422, 0.004302605986595154, 0.008822186850011349, 0.0253599900752306, -0.03888184577226639, -0.0026470900047570467, 0.04530429467558861, -0.03933315351605415, 0.0159519724547863, -0.0014548145700246096, -0.07783312350511551, -0.008214658126235008, 0.029352322220802307, 0.016793832182884216, -0.03638229891657829, -0.012610563077032566, -0.03561854735016823, -0.007025637198239565, 0.031713005155324936, 0.0252558421343565, 0.04270059987902641, 0.01989223062992096, 0.06179436296224594, -0.015500664710998535, -0.02758180908858776, -0.007641844917088747, 0.039506733417510986, -0.026557689532637596, 0.018816035240888596, 0.02372834086418152, 0.06925828754901886, -0.04367264360189438, -0.01737532578408718, 0.00771127687767148, 0.0018985276110470295, -0.011169851757586002, -0.01758361980319023, -0.06283584237098694, 0.0025603000540286303, 0.020482400432229042, 0.020864276215434074, -0.011273999698460102, -0.036660026758909225, -0.06481464952230453, 0.05172673985362053, 0.06974431127309799, 0.025967517867684364, -0.014198817312717438, -0.014519939199090004, -0.00372979324311018, -0.022756295278668404, -0.023381181061267853, -0.03888184577226639, -0.057975608855485916, -0.017340609803795815, 0.057593733072280884, -0.04575560241937637, -0.02284308522939682, -0.03797923028469086, 0.03652116283774376, 0.05752430111169815, 0.04047877714037895, 0.05172673985362053, 0.025064904242753983, 0.009277833625674248, 0.010692507959902287, -0.009017463773488998, -0.054330434650182724, 0.020135242491960526, -0.02711314521729946, 0.03825695812702179, -0.041867416352033615, -0.045651454478502274, -0.031765080988407135, -0.023693624883890152, 0.01616026647388935, -0.03400425612926483, 0.005137958098202944, 0.0506158322095871, 0.016012724488973618, -0.02626260370016098, 0.013148659840226173, -0.02336382307112217, -0.035392895340919495, 0.009156327694654465, -0.07283402979373932, -0.003629984799772501, 0.00705167418345809, 0.04651935026049614, -0.00876577291637659, 0.04214514419436455, -0.023745698854327202, 0.04377679154276848, 0.05429571866989136, -0.06189851090312004, -0.0064832004718482494, -0.048116285353899, 0.04325605183839798, 0.01510143093764782, 0.04263116791844368, -0.09449677169322968, -0.07512528449296951, 0.048081569373607635, 0.014485223218798637, -0.04093008488416672, -0.035965707153081894, 0.01968393474817276, 0.005294180009514093, -0.023815130814909935, -0.0017824462847784162, 0.02888365648686886, 0.0169413760304451, -0.0049817366525530815, -0.044019803404808044, -0.0007171010365709662, 0.02763388305902481, -0.004066103603690863, 0.0060101961717009544, 0.004660614300519228, -0.025238484144210815, 0.01465880312025547, 0.055024754256010056, 0.04006218910217285, 0.00026253925170749426, -0.015275010839104652, 0.055233050137758255, 0.03947201743721962, -0.041659120470285416, 0.019492996856570244, -0.0055285124108195305, -0.010466854088008404, 0.013617324642837048, 0.0011477955849841237, 0.013617324642837048, 0.004582503344863653, -0.04211042821407318, 0.002877082908526063, 0.002892271149903536, -0.017496829852461815, 0.03188658505678177, -0.025620359927415848, 0.019961662590503693, 0.012749426998198032, 0.060336291790008545, 0.01984015665948391, 0.0023216281551867723, -0.023381181061267853, 0.006808662321418524, -0.01888546720147133, -0.014598050154745579, -0.033188432455062866, 0.012055108323693275, 0.037909798324108124, -0.014832383021712303, 0.01968393474817276, -0.027495019137859344, 0.008409935049712658, 0.0482204332947731, -0.02641882561147213, 0.04634577035903931, -0.01333959773182869, -0.019718650728464127, -0.029959850013256073, 0.02457888051867485, 0.005997177679091692, 0.012992437928915024, 0.0252558421343565, 0.028744792565703392, 0.01373883057385683, 0.0037319629918783903, -0.030428515747189522, -0.051657307893037796, -0.006908470764756203, 0.007134124170988798, 0.058912940323352814, -0.004491373896598816, 0.0014352868311107159, -0.03648644685745239, -0.008340503089129925, 0.0632871463894844, -0.047283101826906204, 0.004194118548184633, -0.012671316042542458, -0.029439112171530724, -0.03600042313337326, 0.039715029299259186, -0.01170794852077961, 0.00013154084444977343, -0.012237366288900375, -0.0054070064797997475, -0.030428515747189522, -0.015561417676508427, 0.060127995908260345, 0.011004950851202011, 0.02178424783051014, -0.09512165933847427, -0.0007675475790165365, 0.029595334082841873, 0.013296202756464481, 0.005702092312276363, 0.020239388570189476, 0.031174909323453903, -0.028276128694415092, 0.005255124531686306, 0.004556466359645128, 0.00033359843655489385, 0.012671316042542458, 0.04520014673471451, 0.015908576548099518, 0.029664766043424606, 0.01147361658513546, -0.08623438328504562, 0.026974281296133995, 0.0315394252538681, -0.01070986595004797, -0.01274074800312519, -0.05058111622929573, 0.06901527941226959, -0.021437089890241623, -0.022721579298377037, 0.039506733417510986, 0.055024754256010056, 0.061655499041080475, 0.025064904242753983, -0.017002128064632416, -0.014953888952732086, 0.038291674107313156, 0.09199722111225128, -0.022808369249105453, 0.008548798970878124, -0.011569084599614143, -0.016464032232761383, -0.017861347645521164, 0.03530610352754593, 0.03296278044581413, -0.03542761132121086, 0.04051349312067032, 0.014754272066056728, 0.0014125045854598284, 0.012332835234701633, 0.005376630462706089, 0.06425919383764267, 0.015031998977065086, -0.000223890645429492, 0.03867354989051819, 0.004222325515002012, -0.04985208064317703, 0.06727948039770126, 0.012758105993270874, -0.01815643347799778, 0.019597144797444344, -0.037701502442359924, 0.0006200048956088722, 0.013869015499949455, -0.027703315019607544, -0.010623075999319553, -0.04662349820137024, -0.03542761132121086, 0.053809698671102524, 0.04610275849699974, 0.00858351495116949, 0.05745486915111542, -0.002957363612949848, -0.0035019698552787304, -0.033448800444602966, -0.039020709693431854, 0.03390010818839073, -0.03442084789276123, -0.012697353027760983, 0.00018537766300141811, 0.008774451911449432, -0.05131015181541443, 0.038291674107313156, -0.01626441441476345, -0.022721579298377037, -0.0031309432815760374, 0.003399991663172841, 0.014615408144891262, 0.024040784686803818, -0.020378252491354942, -0.019770724698901176, 0.02700899727642536, -0.020239388570189476, -0.011846812441945076, 0.02983834594488144, 0.0341951958835125, -0.04027048498392105, 0.011404184624552727, 0.04141610860824585, -0.05304594710469246, 0.014598050154745579, 0.028658002614974976, 0.0013799583539366722, 0.07693050801753998, 0.007281667087227106, -0.026297319680452347, -0.046970658004283905, -0.019718650728464127, -0.013756188564002514, 0.020169958472251892, -0.065994992852211, 0.003974974621087313, 0.011525689624249935, -0.1001901850104332, -0.030966613441705704, -0.06523124128580093, -0.015778392553329468, -0.058392200618982315, -0.008722377941012383, 0.04835929721593857, -0.07422266900539398, -0.02447473257780075, 0.0019722990691661835, 0.03219902887940407, -0.024821892380714417, 0.04318661987781525, -0.07304232567548752, 0.0037992249708622694, -0.0321122370660305, -0.03749321028590202, -0.03178243711590767, -0.021749531850218773, 0.05915595218539238, -0.0043590194545686245, -0.001378873479552567, 0.08776187896728516, -0.013721472583711147, -0.015196899883449078, 0.009008784778416157, -0.04120781272649765, 0.0680779442191124, 0.014788988046348095, 0.00883086584508419, -0.0043112849816679955, -0.02178424783051014, 0.0024040783755481243, -0.07769425958395004, 0.011716627515852451, -0.051240719854831696, -0.05387913063168526, -0.023884562775492668, -0.04367264360189438, -0.007841461338102818, 0.016307810321450233, -0.004821175243705511, -0.029907777905464172, 0.013990521430969238, -0.025707149878144264, -0.022704221308231354, 0.02100314013659954, 0.032928064465522766, -0.03447292372584343, 0.025221126154065132, -0.01328752376139164, -0.021871037781238556, 0.045234862715005875, 0.009104253724217415, 0.007650523912161589, -0.05446929857134819, -0.017496829852461815, 0.03978446125984192, -0.06821680814027786, 0.006513576954603195, -0.0344555638730526, 0.033605024218559265, 0.010032905265688896, 0.064224474132061, 0.029091952368617058, -0.021298225969076157, 0.032389964908361435, 0.05304594710469246, 0.00968574546277523, -0.12081144750118256, 0.013669398613274097, 0.11872849613428116, -0.02362419292330742, -0.019492996856570244, -0.0040986500680446625, 0.012688674032688141, 0.016325168311595917, -0.03214695304632187, -0.025603001937270164, -0.025655075907707214, 0.06495351344347, -0.006617724895477295, -0.048081569373607635, 0.05474702641367912, 0.008279750123620033, 0.023485329002141953, 0.03693775460124016, -0.03752792626619339, -0.007012618705630302, -0.009876683354377747, 0.006556971929967403, 0.0034932908602058887, -0.007980325259268284, 0.009980831295251846, -0.021176720038056374, 0.02084691822528839, 0.007012618705630302, -0.04283946380019188, -0.004083461593836546, 0.025603001937270164, 0.05214333161711693, 0.04304775968194008, -0.01867717318236828, 0.006500558461993933, -0.015960650518536568, -0.043499063700437546, 0.03475065156817436, -0.008475027047097683, -0.04464469105005264, -0.029439112171530724 ]
730,203
mmengine.logging.message_hub
state_dict
Returns a dictionary containing log scalars, runtime information and resumed keys, which should be resumed. The returned ``state_dict`` can be loaded by :meth:`load_state_dict`. Returns: dict: A dictionary contains ``log_scalars``, ``runtime_info`` and ``resumed_keys``.
def state_dict(self) -> dict: """Returns a dictionary containing log scalars, runtime information and resumed keys, which should be resumed. The returned ``state_dict`` can be loaded by :meth:`load_state_dict`. Returns: dict: A dictionary contains ``log_scalars``, ``runtime_info`` and ``resumed_keys``. """ saved_scalars = OrderedDict() saved_info = OrderedDict() for key, value in self._log_scalars.items(): if self._resumed_keys.get(key, False): saved_scalars[key] = copy.deepcopy(value) for key, value in self._runtime_info.items(): if self._resumed_keys.get(key, False): try: saved_info[key] = copy.deepcopy(value) except: # noqa: E722 print_log( f'{key} in message_hub cannot be copied, ' f'just return its reference. ', logger='current', level=logging.WARNING) saved_info[key] = value return dict( log_scalars=saved_scalars, runtime_info=saved_info, resumed_keys=self._resumed_keys)
(self) -> dict
[ -0.008975556120276451, -0.03657609224319458, -0.06143435835838318, 0.0033482848666608334, -0.0011623064056038857, -0.02878916636109352, -0.04507432505488396, -0.018746651709079742, 0.03704405575990677, -0.0556316003203392, -0.006209886632859707, 0.05327305942773819, 0.00588231161236763, 0.03513476252555847, -0.05042783543467522, 0.01937372423708439, 0.0321585088968277, -0.004759197123348713, -0.05574391037225723, -0.036276593804359436, 0.0019911881536245346, -0.020571712404489517, 0.0402449332177639, 0.05375974252820015, -0.021357892081141472, -0.002199432346969843, -0.026673967018723488, -0.029444316402077675, 0.0429404079914093, 0.01212963555008173, -0.04855597764253616, -0.015414745546877384, -0.013514810241758823, 0.009415442124009132, 0.0019970377907156944, -0.026000097393989563, -0.008502911776304245, -0.014319708570837975, -0.11440791934728622, 0.0024287349078804255, -0.04836879298090935, -0.01359904371201992, -0.008165977895259857, -0.0166033748537302, 0.03277622163295746, 0.004263155162334442, 0.002990292152389884, 0.01645362563431263, 0.08580593764781952, -0.03691302612423897, 0.021638670936226845, -0.038335636258125305, -0.007248767651617527, 0.05937531590461731, -0.007272165734320879, -0.014881265349686146, 0.03841051086783409, -0.04110598564147949, -0.04331477731466293, 0.011530641466379166, -0.03451704978942871, -0.02682371623814106, 0.0065655396319925785, 0.01200796477496624, 0.038092296570539474, -0.0429404079914093, -0.022874096408486366, -0.021900730207562447, -0.058963507413864136, -0.0330757200717926, 0.015311792492866516, -0.08812703937292099, -0.0006411111098714173, -0.011072035878896713, -0.053572557866573334, -0.04372658580541611, -0.04690874367952347, 0.004024493042379618, -0.010922287590801716, -0.014010852202773094, -0.0015559813473373652, -0.02826504595577717, -0.07094339281320572, 0.008273608982563019, 0.01109075453132391, -0.018475232645869255, 0.058327075093984604, 0.009836610406637192, -0.033843182027339935, -0.03210235387086868, -0.004815353080630302, 0.06427957862615585, -0.009733658283948898, 0.06091023609042168, 0.041255734860897064, -0.03719380497932434, -0.0553695410490036, 0.03792382776737213, -0.012625677511096, -0.04818160831928253, -0.0347229540348053, -0.03009946644306183, -0.06207079067826271, -0.025401104241609573, -0.0264680627733469, -0.047620050609111786, 0.029294567182660103, -0.0251203253865242, 0.03792382776737213, -0.053310494869947433, -0.03496629372239113, 0.018119579181075096, -0.06895922124385834, 0.014656642451882362, 0.016725044697523117, 0.03182157501578331, 0.0010230870684608817, 0.007941354997456074, -0.01182077918201685, 0.019598346203565598, -0.018746651709079742, 0.019935280084609985, -0.04776979982852936, 0.0405069924890995, -0.028433512896299362, 0.024221833795309067, 0.013000048696994781, -0.0001825060899136588, 0.03374958783388138, -0.042266540229320526, -0.017324039712548256, -0.03535938635468483, -0.007744809612631798, 0.020028874278068542, 0.03534066677093506, -0.014647283591330051, 0.046272311359643936, 0.010922287590801716, 0.02427798882126808, 0.04204191640019417, 0.03191516920924187, 0.004745158366858959, -0.03331905975937843, 0.04499945044517517, 0.09246975183486938, 0.0073376805521547794, 0.051026832312345505, 0.05922556668519974, -0.012120275758206844, -0.031372327357530594, 0.08618031442165375, -0.009799173101782799, -0.061022549867630005, 0.03753073886036873, -0.015498979017138481, -0.03500373288989067, -0.002442773897200823, -0.01311236061155796, -0.05252431705594063, -0.012082839384675026, -0.022892815992236137, -0.019897842779755592, 0.010229700244963169, -0.06532782316207886, -0.026879871264100075, 0.014834469184279442, 0.05256175249814987, -0.0332067497074604, -0.015489619225263596, -0.005269278306514025, -0.0767461508512497, -0.04739542677998543, -0.05233713239431381, 0.015892067924141884, -0.0372873991727829, 0.04361427575349808, -0.012241946533322334, -0.004960421938449144, -0.03330034017562866, 0.001701050321571529, 0.03391805291175842, -0.009696220979094505, -0.11365917325019836, 0.019542191177606583, -0.01195180881768465, 0.03753073886036873, 0.001683501643128693, 0.005470503121614456, 0.05057758465409279, 0.05630546808242798, -0.02315487526357174, 0.00006562468479387462, 0.040544427931308746, 0.002592522418126464, 0.004403544589877129, 0.013393139466643333, -0.03927156701683998, -0.0348539836704731, -0.013692636042833328, 0.03326290473341942, 0.007707372773438692, -0.02231253869831562, 0.005713844671845436, -0.032851096242666245, -0.054433610290288925, -0.023267187178134918, -0.04230397567152977, 0.025082888081669807, 0.027272962033748627, 0.05619315803050995, -0.07876775413751602, -0.03275750204920769, 0.010950365103781223, 0.03519091755151749, 0.017548661679029465, -0.06993258744478226, 0.044550202786922455, 0.06330621242523193, 0.0016659529646858573, -0.01817573420703411, 0.09958280622959137, -0.0008745083468966186, -0.022874096408486366, -0.04133060947060585, -0.04380146041512489, -0.0036150244995951653, -0.006846318021416664, -0.03509732335805893, -0.003792850999161601, -0.006518743000924587, 0.01961706392467022, 0.0006001642323099077, -0.03290725126862526, -0.031128987669944763, 0.047133367508649826, 0.058963507413864136, -0.033356498926877975, -0.021245580166578293, 0.05514491721987724, 0.06952077895402908, -0.0008353163138963282, 0.00013534406025428325, 0.04829391837120056, 0.02974381297826767, 0.020141184329986572, -0.07071877270936966, 0.08842653781175613, 0.02244357019662857, -0.051251452416181564, 0.0029622141737490892, 0.02328590489923954, -0.01835356093943119, -0.044437892735004425, 0.004815353080630302, 0.042229101061820984, -0.004628167022019625, 0.05409667640924454, 0.011624233797192574, 0.03197132423520088, -0.03097923845052719, 0.05218738317489624, -0.005896350368857384, -0.03047383762896061, -0.017651613801717758, -0.006598297040909529, 0.015667445957660675, 0.02547597885131836, -0.00524120032787323, -0.03373086825013161, 0.021676108241081238, 0.09037327021360397, -0.002426394959911704, -0.01126858126372099, 0.01347737293690443, -0.025794193148612976, -0.04739542677998543, -0.006682530511170626, -0.015695523470640182, -0.011437048204243183, 0.032851096242666245, 0.01707133837044239, 0.020028874278068542, 0.02047812007367611, -0.020571712404489517, 0.030324088409543037, -0.009611987508833408, -0.028920195996761322, -0.02901378832757473, 0.0448497012257576, -0.02671140432357788, 0.016912231221795082, 0.01580783538520336, 0.005653009284287691, 0.024596204981207848, 0.05671727657318115, 0.010866131633520126, -0.07337680459022522, 0.009551151655614376, 0.03447961062192917, 0.04964165762066841, 0.07974112033843994, 0.044550202786922455, 0.007187932264059782, 0.026243438944220543, -0.01729596219956875, 0.007211330346763134, 0.0198604054749012, 0.014113804325461388, -0.013954696245491505, -0.03803614154458046, -0.01711813546717167, 0.02792811207473278, 0.05555672571063042, 0.054920293390750885, -0.01658465526998043, -0.062482599169015884, 0.0037905110511928797, -0.03799870237708092, 0.021526359021663666, 0.07558559626340866, -0.021657388657331467, 0.04477482661604881, 0.015938865020871162, 0.03464807942509651, 0.031054113060235977, -0.07547328621149063, 0.03410524129867554, -0.02047812007367611, 0.052486877888441086, -0.02609369158744812, -0.05787782743573189, -0.022855378687381744, 0.03021177649497986, 0.031765419989824295, -0.027160650119185448, 0.00925633404403925, 0.020534275099635124, 0.04372658580541611, -0.0016027778619900346, -0.042266540229320526, 0.04155523329973221, -0.032383132725954056, -0.048593416810035706, 0.006719967816025019, 0.003266391111537814, -0.04301528260111809, 0.019897842779755592, 0.001060524140484631, 0.029575346037745476, -0.039683375507593155, -0.062220536172389984, 0.008835166692733765, -0.019429879263043404, 0.09756120294332504, 0.036613527685403824, -0.01997271738946438, -0.02644934318959713, -0.08677930384874344, 0.015442823059856892, 0.007052222266793251, 0.05679215118288994, 0.03668840229511261, -0.05787782743573189, -0.011867575347423553, 0.04002030938863754, 0.0009160401532426476, -0.023866180330514908, 0.033356498926877975, 0.03418011590838432, -0.036519937217235565, -0.011811419390141964, -0.07734514772891998, -0.023941054940223694, 0.06521550565958023, 0.024203116074204445, 0.026861153542995453, -0.04159266874194145, 0.021788420155644417, -0.02680499665439129, 0.06761148571968079, 0.05915069207549095, 0.00655618030577898, -0.0039075021632015705, 0.01182077918201685, 0.028115296736359596, 0.05903837829828262, 0.0821371003985405, 0.003184497356414795, 0.05514491721987724, -0.019336286932229996, -0.04136804863810539, 0.031409766525030136, -0.018812166526913643, -0.005868272855877876, 0.023697713389992714, -0.003561208490282297, 0.03363727778196335, 0.01866241730749607, -0.01914910040795803, -0.04645949974656105, 0.020908646285533905, 0.025644445791840553, -0.03489141911268234, -0.029350722208619118, 0.014076367020606995, -0.02682371623814106, -0.0065655396319925785, 0.029107380658388138, 0.030155621469020844, -0.05544441565871239, 0.03648249804973602, -0.04941703379154205, -0.02985612489283085, -0.04855597764253616, -0.0164723452180624, -0.0326826274394989, 0.008624582551419735, -0.02863941714167595, 0.027516303583979607, 0.03403036668896675, 0.02059043012559414, 0.020646587014198303, 0.030043309554457664, 0.013804947957396507, -0.007566983345896006, 0.04526150971651077, -0.09104713797569275, 0.027890674769878387, 0.02500801347196102, 0.03109155036509037, 0.00493234395980835, -0.0016472344286739826, -0.007688654121011496, -0.010463682003319263, 0.01937372423708439, -0.04402608424425125, 0.02184457518160343, 0.016612734645605087, -0.010707023553550243, 0.06959565728902817, -0.005133568774908781, 0.003416139632463455, 0.06937102973461151, 0.017501866444945335, 0.050652459263801575, 0.013365061022341251, -0.04013261944055557, 0.012204510159790516, 0.037586893886327744, 0.02729167975485325, 0.02059043012559414, -0.050502710044384, 0.022948971018195152, -0.041517794132232666, -0.018793446943163872, 0.023510528728365898, -0.02671140432357788, 0.023192312568426132, -0.017417632043361664, -0.03292597085237503, 0.026187283918261528, -0.02010374702513218, -0.07229112833738327, 0.05098939314484596, 0.03637018799781799, 0.009172100573778152, -0.02609369158744812, -0.027946829795837402, -0.021170705556869507, 0.03513476252555847, 0.034797828644514084, 0.07169213891029358, 0.012092198245227337, -0.06192104145884514, -0.014722158201038837, -0.015751678496599197, -0.008063025772571564, -0.005966545082628727, -0.0374184288084507, -0.050764769315719604, 0.013074923306703568, -0.016154129058122635, -0.009574550203979015, 0.008278288878500462, 0.006266042590141296, -0.04136804863810539, 0.022967688739299774, 0.04863085225224495, 0.049566783010959625, 0.002948175184428692, -0.07734514772891998, -0.03670712187886238, -0.00676676444709301, 0.041779857128858566, -0.004085328429937363, -0.015274356119334698, -0.014937421306967735, 0.022293820977211, 0.07446248084306717, -0.018072782084345818, 0.0032429927960038185, -0.048219043761491776, 0.003289789194241166, 0.07281524688005447, -0.0006019191350787878, 0.021058395504951477, -0.018185093998908997, 0.03769920766353607, 0.008713495917618275, 0.014684720896184444, -0.0010330312652513385, 0.026056254282593727, 0.0073751178570091724, -0.019317567348480225, -0.04986627772450447, -0.05817732587456703, -0.052711501717567444, 0.04031980782747269, -0.019448596984148026, -0.005784038919955492, 0.04207935184240341, 0.058701444417238235, 0.05836451053619385, 0.0035916261840611696, -0.01731467992067337, -0.001168740913271904, 0.011165629141032696, -0.05390949174761772, -0.007599740754812956, 0.042828094214200974, -0.030548712238669395, -0.03885975852608681, 0.015620649792253971, 0.051139142364263535, -0.0030885646119713783, -0.03556529060006142, 0.013421216979622841, -0.06416726857423782, -0.09419186413288116, -0.013374420814216137, 0.02865813486278057, -0.013767510652542114, -0.020515555515885353, 0.008797729387879372, 0.02890147641301155, 0.04398864880204201, -0.006186488550156355, 0.021357892081141472, -0.037624333053827286, -0.04878060147166252, -0.0019245033618062735, -0.05413411557674408, -0.011053317226469517, -0.0675366148352623, -0.023866180330514908, -0.035303227603435516, 0.03769920766353607, -0.01299068983644247, 0.019935280084609985, -0.01738019473850727, -0.0029645541217178106, -0.0018180414335802197, -0.02169482596218586, -0.05304843559861183, -0.003820928744971752, 0.017698410898447037, -0.01870921440422535, 0.08625518530607224, -0.03191516920924187, 0.016350673511624336, 0.04451276734471321, 0.012270024977624416, 0.04582306742668152, 0.0017735848668962717, 0.02951918914914131, 0.007936675101518631, 0.05836451053619385, 0.03573375567793846, 0.047732360661029816, -0.018765369430184364, 0.06072305142879486, 0.008343803696334362, 0.0005103736184537411, -0.026767559349536896, -0.003261711448431015, 0.051251452416181564, -0.052973560988903046, 0.06109742447733879, 0.026262158527970314, 0.016884153708815575, -0.047507740557193756, 0.03964593634009361, 0.006822919938713312, 0.005367550998926163, 0.01707133837044239, 0.007379797287285328, 0.06813560426235199, 0.04878060147166252, -0.032345693558454514, 0.0000044922749111719895, -0.08460795134305954, 0.020515555515885353, 0.026000097393989563, -0.032982125878334045, -0.04106855019927025, -0.06008661910891533, 0.06929615885019302, 0.051139142364263535, 0.022162791341543198, 0.018269328400492668, -0.03071717917919159, -0.02558828890323639, 0.021376609802246094, 0.0015056752599775791, 0.05136376619338989, -0.05974968522787094, -0.010005077347159386, 0.00012766651343554258, -0.000272150500677526, 0.020272213965654373, -0.013131079263985157, -0.05581878498196602, -0.07169213891029358, 0.01786687783896923, -0.04776979982852936, 0.007590381428599358, 0.014591127634048462, -0.02147020399570465, -0.03681943193078041, -0.04634718596935272, -0.004026832990348339, 0.03779279813170433, 0.033581119030714035, -0.06278209388256073, 0.04926728457212448, 0.04477482661604881, 0.04930472373962402, 0.02220022864639759, -0.032813660800457, 0.04290296882390976, 0.0034535767044872046, -0.00683227926492691, -0.024914421141147614, -0.04915497452020645, -0.031896449625492096, 0.008133220486342907, 0.01200796477496624, -0.04544869437813759, 0.07307731360197067, 0.006771443877369165, 0.0210771132260561, 0.024203116074204445, -0.024090804159641266, 0.021283017471432686, -0.05068989470601082, 0.0497165322303772, 0.004639866296201944, 0.021863292902708054, 0.011193706654012203, -0.019691938534379005, -0.028096579015254974, 0.02291153371334076, -0.047245677560567856, -0.03167182579636574, 0.08153810352087021, 0.024446455761790276, -0.03277622163295746, 0.1048240140080452, 0.04889291152358055, -0.043090157210826874, 0.05473310872912407, -0.036875590682029724, 0.021488921716809273, -0.004862149246037006, -0.022705629467964172, 0.0545833595097065, 0.01767033338546753, -0.009017672389745712, 0.029799968004226685, -0.046534374356269836, 0.006846318021416664, 0.06637606024742126, -0.036145564168691635, 0.009261013939976692, 0.013879821635782719, 0.0023070641327649355, 0.013973414897918701, -0.01041688583791256, -0.022892815992236137, -0.02231253869831562, 0.014684720896184444, -0.005465823225677013, -0.010707023553550243, -0.0015594911528751254, -0.013028127141296864, -0.029837405309081078, -0.050914518535137177, -0.07839338481426239, 0.009321849793195724, -0.07146751135587692, 0.0014834469184279442, 0.010763179510831833, 0.024184396490454674, -0.026973463594913483, -0.005465823225677013, 0.021900730207562447, -0.023735150694847107, -0.01146512571722269, 0.010557275265455246, -0.004848110489547253, 0.02500801347196102, -0.0030207098461687565, -0.011895652860403061, -0.046983618289232254, 0.016753122210502625, -0.013804947957396507, 0.00649066548794508, -0.02693602629005909, -0.058102451264858246, 0.005554736591875553, -0.0212081428617239, 0.0405069924890995, 0.02644934318959713, 0.00998635869473219, 0.001634365413337946, 0.014740876853466034, 0.012344898656010628, -0.02096480131149292, 0.03331905975937843, 0.006223925389349461, -0.018849603831768036, -0.003537810407578945, -0.0972617045044899, 0.024895701557397842, 0.025064170360565186, -0.028358638286590576, 0.02938815951347351, 0.007683974225074053, 0.03586478531360626, 0.04791954904794693, 0.037231240421533585, -0.010257777757942677, 0.01651914045214653, 0.02938815951347351, -0.02521391771733761, -0.015143325552344322, 0.03867257386445999, -0.027591176331043243, 0.026861153542995453, -0.02706705778837204, 0.042977843433618546, 0.02560700848698616, -0.041779857128858566, -0.05312331020832062, -0.02693602629005909, -0.05507004261016846, 0.003984716255217791, -0.04136804863810539, -0.0005726713570766151, -0.0014167620101943612, -0.01176462322473526, -0.07011977583169937, 0.02732911705970764, 0.04425070807337761, 0.02341693453490734, 0.03373086825013161, -0.0018133617704734206, -0.020403245463967323 ]
730,204
mmengine.logging.message_hub
update_info
Update runtime information. The key corresponding runtime information will be overwritten each time calling ``update_info``. Note: The ``resumed`` argument needs to be consistent for the same ``key``. Examples: >>> message_hub = MessageHub(name='name') >>> message_hub.update_info('iter', 100) Args: key (str): Key of runtime information. value (Any): Value of runtime information. resumed (bool): Whether the corresponding ``HistoryBuffer`` could be resumed.
def update_info(self, key: str, value: Any, resumed: bool = True) -> None: """Update runtime information. The key corresponding runtime information will be overwritten each time calling ``update_info``. Note: The ``resumed`` argument needs to be consistent for the same ``key``. Examples: >>> message_hub = MessageHub(name='name') >>> message_hub.update_info('iter', 100) Args: key (str): Key of runtime information. value (Any): Value of runtime information. resumed (bool): Whether the corresponding ``HistoryBuffer`` could be resumed. """ self._set_resumed_keys(key, resumed) self._runtime_info[key] = value
(self, key: str, value: Any, resumed: bool = True) -> NoneType
[ 0.07643138617277145, -0.03427223488688469, -0.11027342081069946, 0.01360492967069149, 0.02991650626063347, -0.03617226332426071, -0.015218161977827549, 0.010342614725232124, 0.005256450269371271, -0.015325711108744144, -0.0024310520384460688, -0.014241260476410389, 0.027998551726341248, 0.005937592592090368, -0.022531485185027122, -0.006215427536517382, 0.06341797113418579, 0.009921381250023842, -0.034630730748176575, -0.03233635425567627, -0.003656660905107856, 0.013067184947431087, 0.02113334834575653, 0.0042638638988137245, 0.01941256783902645, 0.000966259220149368, 0.047536592930555344, 0.004853141959756613, 0.06736142933368683, 0.016652146354317665, -0.01386483944952488, -0.05416877195239067, -0.030436323955655098, -0.030776895582675934, 0.009056509472429752, 0.020792778581380844, -0.03932702913880348, -0.007900359109044075, -0.040904413908720016, -0.0019851725082844496, 0.03710435330867767, 0.027156084775924683, 0.00044055818580091, -0.005507397465407848, 0.06947655975818634, 0.03305334597826004, -0.006762133911252022, 0.025668324902653694, 0.02403716742992401, -0.028769318014383316, 0.005068239755928516, -0.03699680417776108, -0.00933882500976324, 0.0013925335370004177, 0.0015930673107504845, 0.05291403457522392, 0.0073402090929448605, -0.048468682914972305, -0.004420706070959568, -0.009724208153784275, 0.02038050815463066, -0.02599097229540348, -0.033931661397218704, 0.006116840988397598, 0.011059606447815895, -0.013497380539774895, 0.028733467683196068, 0.022280536592006683, -0.03943457826972008, -0.05900846794247627, 0.04502711817622185, -0.02988065592944622, -0.020219184458255768, -0.02405509352684021, -0.06736142933368683, 0.022513559088110924, -0.08819005638360977, 0.0002473063359502703, -0.01044120080769062, -0.017682824283838272, 0.03430808335542679, -0.03285617381334305, 0.016652146354317665, -0.06685953587293625, 0.024843784049153328, 0.012144058011472225, 0.05148005113005638, -0.05373857542872429, -0.02332017570734024, 0.07144828885793686, -0.021993739530444145, -0.029342912137508392, -0.02136637084186077, 0.031225016340613365, 0.018605951219797134, -0.0656047984957695, 0.019591815769672394, -0.0775785744190216, 0.0033788264263421297, 0.006475336849689484, 0.043879929929971695, -0.067970871925354, 0.03550904616713524, -0.0387892872095108, 0.007147517520934343, -0.016374312341213226, 0.0035670369397848845, 0.0279089268296957, 0.027532506734132767, -0.0031592475716024637, -0.006331938784569502, -0.047034695744514465, -0.06144624203443527, -0.04284029081463814, -0.01177659910172224, 0.0897674411535263, 0.010665261186659336, -0.023947544395923615, 0.06026320531964302, 0.04033081978559494, -0.04685544967651367, 0.0064618936739861965, -0.0066725099459290504, -0.015487034805119038, -0.06338212639093399, -0.00044587961747311056, 0.020488055422902107, 0.03918363153934479, 0.029091963544487953, -0.05391782522201538, -0.03493545204401016, -0.03179860860109329, 0.03239012882113457, 0.05642729625105858, 0.08869194984436035, 0.010181291028857231, -0.015307786874473095, -0.022011665627360344, -0.015648357570171356, 0.01871350035071373, -0.026851363480091095, 0.005915186833590269, 0.0019482026109471917, -0.010136479511857033, 0.030077828094363213, -0.06499535590410233, 0.00958081055432558, 0.035562820732593536, -0.02482585981488228, -0.02916366420686245, 0.018068207427859306, -0.005292299669235945, -0.02480793558061123, 0.0023683153558522463, -0.00297327758744359, -0.010952058248221874, 0.031063692644238472, -0.005973442457616329, -0.011059606447815895, 0.0065022241324186325, -0.036082640290260315, -0.027048535645008087, 0.006175096612423658, -0.07019355148077011, -0.06119529530405998, 0.003690270008519292, -0.010772810317575932, 0.054025374352931976, -0.0028970972634851933, 0.03552697226405144, 0.013407756574451923, -0.05707259103655815, -0.010862434282898903, 0.013345019891858101, 0.07187848538160324, 0.00028147551347501576, -0.008939998224377632, -0.04836113378405571, 0.07177093625068665, 0.026439093053340912, -0.007304359693080187, -0.011337441392242908, -0.07227282971143723, -0.027102310210466385, -0.04681960120797157, 0.030310850590467453, 0.002525157295167446, -0.006524630356580019, 0.03013160265982151, 0.028303273022174835, -0.019071996212005615, -0.043127089738845825, 0.010297802276909351, -0.016687996685504913, -0.00971524603664875, 0.02846459671854973, 0.0206135306507349, -0.05954621359705925, -0.011113381013274193, 0.014859666116535664, 0.007721111178398132, 0.0002278411266161129, 0.056534845381975174, 0.007577712647616863, 0.02213713899254799, 0.0055298032239079475, 0.05330837890505791, -0.0010009885299950838, 0.03843078762292862, 0.02579380013048649, -0.015280899591743946, -0.03495337814092636, 0.05273478478193283, -0.004328841343522072, 0.011857260949909687, 0.015621470287442207, -0.03237220272421837, -0.0052698939107358456, -0.03332221880555153, -0.05327253043651581, 0.06589159369468689, 0.007210254203528166, 0.0340929850935936, -0.014814854599535465, -0.012126132845878601, 0.007967577315866947, -0.012547366321086884, -0.014734192751348019, -0.0364949107170105, -0.03009575419127941, 0.00565527705475688, -0.006954825483262539, -0.04914982616901398, 0.0014474282506853342, -0.018785199150443077, -0.00638123182579875, -0.005328149534761906, -0.014545981772243977, 0.016679033637046814, 0.007470163982361555, 0.006470855791121721, 0.04402333125472069, 0.02285413071513176, 0.005296780727803707, -0.07091054320335388, -0.08589567989110947, 0.016687996685504913, 0.001509044785052538, -0.07259547710418701, -0.03968552500009537, 0.08403149992227554, -0.021760717034339905, -0.010217140428721905, -0.0015930673107504845, 0.027855152264237404, 0.006188540253788233, 0.027281558141112328, 0.001830571098253131, 0.02889479137957096, 0.013013411313295364, -0.05882922187447548, -0.0013073907466605306, -0.06736142933368683, 0.019287094473838806, 0.013999275863170624, 0.04348558560013771, 0.011713862419128418, 0.048504531383514404, -0.026869287714362144, -0.012466704472899437, -0.019054071977734566, 0.012932749465107918, -0.015155425295233727, 0.016634222120046616, -0.0316014364361763, -0.009150614961981773, -0.005341592710465193, -0.009643547236919403, -0.013031335547566414, -0.0535234771668911, 0.006896569859236479, -0.061625491827726364, 0.013174734078347683, -0.03014952875673771, 0.05183854699134827, -0.035365648567676544, 0.022262612357735634, 0.07209357619285583, -0.0030203303322196007, 0.010100629180669785, 0.04319878667593002, 0.012188869528472424, -0.03445148095488548, 0.05778958275914192, -0.02986273169517517, 0.014626643620431423, -0.06757652759552002, 0.03111746720969677, 0.06495950371026993, 0.0036028865724802017, 0.060872647911310196, 0.015245049260556698, -0.052878186106681824, -0.00861735176295042, 0.0014899997040629387, 0.013578042387962341, 0.07399360835552216, -0.008110975846648216, -0.020022010430693626, 0.005686645396053791, 0.03703265264630318, 0.032694850116968155, -0.02014748565852642, 0.03359109163284302, -0.015038914047181606, -0.06883126497268677, -0.01796962134540081, 0.018139906227588654, -0.030185377225279808, 0.052842333912849426, -0.003087548306211829, 0.008057201281189919, -0.005821081344038248, -0.004400540608912706, 0.00492932228371501, -0.03185238316655159, 0.0753558948636055, -0.0054894727654755116, 0.04172895476222038, -0.01744980178773403, 0.005776269361376762, -0.03515055030584335, 0.04197990149259567, 0.01996823586523533, -0.04076101630926132, 0.03507884964346886, -0.05280648544430733, -0.030776895582675934, 0.014026162214577198, 0.01632053777575493, 0.0000780709451646544, -0.027622129768133163, -0.06176888942718506, 0.001710698939859867, 0.04040251672267914, -0.025614552199840546, 0.08546548336744308, -0.018408779054880142, 0.07209357619285583, -0.006466374732553959, -0.07643138617277145, -0.0389326848089695, 0.00849635899066925, -0.0025677287485450506, 0.017602162435650826, -0.04836113378405571, -0.0037798939738422632, -0.10654506087303162, 0.007756961043924093, -0.06130284443497658, -0.038000594824552536, 0.0754275918006897, 0.017781410366296768, 0.02649286761879921, -0.05001021549105644, -0.040940262377262115, -0.025381529703736305, 0.06499535590410233, 0.0705878958106041, 0.013067184947431087, 0.0005721934721805155, -0.02452113851904869, 0.022710733115673065, 0.08568058162927628, 0.08618248254060745, 0.005915186833590269, -0.024879634380340576, 0.04344973713159561, 0.0069906753487885, 0.0006895450060255826, 0.02041635662317276, 0.03083067014813423, 0.01722574047744274, -0.012852087616920471, 0.03627981245517731, 0.06485195457935333, 0.03346561640501022, 0.006820389535278082, -0.007873471826314926, -0.0049562095664441586, -0.02378622069954872, 0.044847872108221054, -0.026098521426320076, -0.012959636747837067, -0.021760717034339905, 0.0008631915552541614, 0.04721394553780556, -0.03667415678501129, -0.04223084822297096, -0.018086131662130356, 0.006717321928590536, -0.016903094947338104, -0.03335806727409363, 0.024897558614611626, 0.04836113378405571, -0.049006424844264984, -0.004696299787610769, 0.01009166706353426, -0.04111951217055321, -0.013461531139910221, 0.005390886217355728, -0.0775785744190216, -0.035867542028427124, -0.018050281330943108, -0.02210128866136074, 0.03425430878996849, -0.0316552110016346, -0.07195018231868744, 0.007770404685288668, 0.07144828885793686, 0.032694850116968155, 0.01444739568978548, -0.03710435330867767, 0.0437723807990551, -0.03846663981676102, 0.03083067014813423, -0.024216417223215103, -0.046783749014139175, 0.012977560982108116, -0.0029307061340659857, 0.03140426427125931, -0.044095028191804886, 0.0014911199687048793, 0.07015769928693771, -0.01824745535850525, -0.0607292503118515, 0.039470426738262177, -0.0032040595542639494, -0.040510065853595734, -0.013353982008993626, -0.019538041204214096, -0.0340033620595932, 0.03498922660946846, 0.043091241270303726, -0.019753139466047287, 0.002469142433255911, -0.00826333649456501, -0.0051668258383870125, 0.029109889641404152, -0.0388251356780529, 0.00020207421039231122, -0.03239012882113457, 0.00933882500976324, 0.03565244376659393, -0.015155425295233727, -0.07356341183185577, -0.013103035278618336, 0.017440838739275932, 0.010521862655878067, -0.02188619039952755, -0.04807433485984802, 0.014581832103431225, -0.06277267634868622, -0.00042347359703853726, 0.0031502849888056517, 0.016903094947338104, 0.04997436702251434, -0.02744288183748722, -0.030490098521113396, -0.017888959497213364, 0.05269893631339073, -0.00687416410073638, 0.05904432013630867, 0.03278447315096855, -0.020739004015922546, 0.026295693591237068, 0.010548749938607216, 0.027622129768133163, -0.02306922897696495, -0.01796065829694271, 0.03735530003905296, 0.05707259103655815, -0.010512900538742542, 0.01919746957719326, 0.03140426427125931, -0.05316498130559921, 0.007116149179637432, 0.027622129768133163, 0.05983301252126694, -0.013210583478212357, -0.02306922897696495, -0.012493591755628586, 0.035598669201135635, -0.031708985567092896, -0.010064779780805111, -0.008276780135929585, -0.014124749228358269, -0.004830735735595226, 0.04054591804742813, 0.015155425295233727, -0.043091241270303726, -0.043736532330513, 0.04431012645363808, -0.028625918552279472, -0.030812745913863182, 0.04595920816063881, -0.022656958550214767, 0.06843692064285278, -0.024951333180069923, 0.026833439245820045, 0.01842670328915119, 0.0006206465186551213, 0.04007987305521965, -0.015442222356796265, 0.025435302406549454, -0.06090850010514259, -0.04183650389313698, 0.0017196612898260355, -0.03446940705180168, -0.043664831668138504, 0.0509781539440155, 0.023266401141881943, 0.10726205259561539, -0.006269201636314392, 0.013882764615118504, -0.04689129814505577, -0.032228805124759674, -0.0364411361515522, 0.004983096849173307, 0.05029701441526413, 0.006560479756444693, 0.029038188979029655, 0.017888959497213364, 0.003858315059915185, 0.08539378643035889, -0.04818188399076462, 0.04940077289938927, -0.002274210099130869, -0.02188619039952755, -0.024449439719319344, 0.015594583004713058, 0.011319516226649284, -0.03749869763851166, -0.023266401141881943, 0.007129592355340719, -0.045600712299346924, 0.022656958550214767, 0.031959932297468185, 0.018041320145130157, -0.06901051104068756, -0.06922560930252075, -0.003936735913157463, 0.04180065169930458, 0.05664239451289177, -0.07008600234985352, 0.020075784996151924, 0.023445649072527885, -0.02841082215309143, -0.008240930736064911, 0.020129559561610222, -0.007420870941132307, 0.006403638049960136, 0.029091963544487953, 0.02966555766761303, 0.07972954958677292, 0.02548907697200775, -0.08388810604810715, 0.07309737056493759, 0.027335332706570625, -0.021527694538235664, 0.020846553146839142, 0.05438387021422386, 0.04208745062351227, -0.024592837318778038, 0.014339846558868885, 0.023947544395923615, 0.0727747231721878, 0.05499331280589104, 0.07750687003135681, -0.04929322376847267, -0.041657254099845886, 0.01725262776017189, 0.031708985567092896, 0.010270914994180202, 0.049436621367931366, -0.019502190873026848, -0.005821081344038248, 0.03567036986351013, -0.006977231707423925, 0.04793093726038933, -0.0900542363524437, -0.009679396636784077, -0.03597509115934372, -0.002776104724034667, 0.030203301459550858, -0.0004279548011254519, 0.0035132623743265867, -0.03671000897884369, 0.033644866198301315, 0.007089261896908283, -0.05718014016747475, -0.04513466730713844, 0.017835184931755066, -0.008039277046918869, -0.02575794979929924, -0.04929322376847267, 0.013156809844076633, 0.016419123858213425, -0.00413390900939703, 0.009930344298481941, 0.03312504664063454, 0.03835909068584442, -0.030077828094363213, 0.0558895543217659, 0.03724775090813637, 0.03280239924788475, 0.011982734315097332, 0.03346561640501022, 0.046783749014139175, 0.006224389653652906, -0.009285050444304943, 0.035096775740385056, -0.015926191583275795, 0.001818247721530497, -0.04180065169930458, 0.016329500824213028, 0.016365349292755127, 0.0033698640763759613, -0.04664035141468048, -0.10912623256444931, 0.016867244616150856, 0.06707463413476944, -0.01142706535756588, 0.009007216431200504, 0.05194609612226486, -0.024234341457486153, 0.00033496986725367606, 0.024467363953590393, -0.040223270654678345, 0.034630730748176575, 0.021922040730714798, 0.011301591992378235, 0.012852087616920471, -0.013811064884066582, -0.013658704236149788, 0.06029905751347542, -0.0017028568545356393, -0.059653762727975845, 0.015460147522389889, 0.04104781150817871, -0.0037283601704984903, -0.024449439719319344, -0.04466862231492996, 0.056283898651599884, 0.014653530903160572, 0.01964559033513069, -0.009679396636784077, -0.02645701728761196, -0.03144011273980141, -0.004107021726667881, -0.027855152264237404, -0.042410098016262054, -0.008451547473669052, -0.07743517309427261, 0.06621424108743668, 0.02699476107954979, -0.012636990286409855, 0.05255553871393204, 0.053631026297807693, -0.051193252205848694, 0.05377442389726639, -0.03871758654713631, 0.007259547244757414, -0.04549316316843033, -0.031547661870718, -0.019591815769672394, -0.07399360835552216, 0.009760058484971523, 0.012520479038357735, -0.0008239810122177005, 0.03932702913880348, -0.01995031163096428, 0.03452318161725998, 0.023033378645777702, -0.042876143008470535, 0.020022010430693626, 0.03817984089255333, 0.01119404286146164, -0.022728657349944115, -0.020326733589172363, -0.005341592710465193, -0.011265742592513561, -0.05133664980530739, -0.07772196829319, -0.0032645557075738907, -0.07858236134052277, -0.049006424844264984, -0.03065142221748829, 0.011373290792107582, -0.039757225662469864, -0.020792778581380844, 0.02068522945046425, 0.028070250526070595, -0.05251969024538994, 0.0024915484245866537, 0.03201370686292648, -0.05685749277472496, -0.026385318487882614, 0.006529111415147781, 0.0039031270425766706, 0.04301954060792923, 0.0028455634601414204, -0.019824838265776634, -0.08360130339860916, -0.014599756337702274, 0.031708985567092896, 0.007546344306319952, -0.011884148232638836, 0.027066461741924286, 0.050906457006931305, 0.011749711818993092, 0.09371089935302734, 0.028590070083737373, -0.029575934633612633, -0.006999637931585312, -0.008810043334960938, 0.020846553146839142, 0.00009739612869452685, -0.0027850670740008354, 0.04065346717834473, -0.021993739530444145, -0.04108365997672081, -0.06090850010514259, -0.007550825364887714, 0.049938514828681946, -0.0024915484245866537, -0.03489960357546806, -0.04079686477780342, 0.0727747231721878, 0.027299484238028526, 0.0010917328763753176, 0.01944841630756855, 0.01386483944952488, 0.0027604205533862114, 0.032175030559301376, 0.004992058966308832, 0.009267126210033894, -0.02602682262659073, 0.06026320531964302, 0.039506278932094574, 0.010952058248221874, 0.020541829988360405, -0.04244594648480415, 0.01580071821808815, 0.04735734313726425, -0.07008600234985352, 0.01917954534292221, -0.015720056369900703, 0.0558537021279335, 0.019036145880818367, 0.04158555716276169, 0.001596428221091628, 0.058936771005392075, -0.03565244376659393, 0.010692148469388485, 0.005771788302809, -0.04836113378405571, -0.0035961647517979145 ]
730,205
mmengine.logging.message_hub
update_info_dict
Update runtime information with dictionary. The key corresponding runtime information will be overwritten each time calling ``update_info``. Note: The ``resumed`` argument needs to be consistent for the same ``info_dict``. Examples: >>> message_hub = MessageHub(name='name') >>> message_hub.update_info({'iter': 100}) Args: info_dict (str): Runtime information dictionary. resumed (bool): Whether the corresponding ``HistoryBuffer`` could be resumed.
def update_info_dict(self, info_dict: dict, resumed: bool = True) -> None: """Update runtime information with dictionary. The key corresponding runtime information will be overwritten each time calling ``update_info``. Note: The ``resumed`` argument needs to be consistent for the same ``info_dict``. Examples: >>> message_hub = MessageHub(name='name') >>> message_hub.update_info({'iter': 100}) Args: info_dict (str): Runtime information dictionary. resumed (bool): Whether the corresponding ``HistoryBuffer`` could be resumed. """ assert isinstance(info_dict, dict), ('`log_dict` must be a dict!, ' f'but got {type(info_dict)}') for key, value in info_dict.items(): self.update_info(key, value, resumed=resumed)
(self, info_dict: dict, resumed: bool = True) -> NoneType
[ 0.06671547889709473, 0.005198907572776079, -0.09430790692567825, -0.0252899918705225, 0.02066669426858425, -0.04125970974564552, -0.027113523334264755, 0.02029830403625965, 0.0017786342650651932, -0.005898849107325077, 0.001988156232982874, 0.005346263758838177, 0.037557389587163925, 0.003630946623161435, -0.04085448011755943, -0.01705646887421608, 0.013243630528450012, 0.01430275198072195, -0.05551641434431076, -0.05400601401925087, 0.0009296098141930997, -0.002636292949318886, 0.0527903251349926, 0.03831258788704872, -0.0019789463840425014, 0.02521631494164467, 0.008238127455115318, 0.01893525943160057, 0.08929780125617981, 0.05470595508813858, -0.030668489634990692, -0.04008086025714874, 0.01812480203807354, 0.022895455360412598, 0.005033132154494524, -0.0027652294375002384, -0.008574283681809902, -0.015131630003452301, -0.07913023233413696, 0.006373151671141386, 0.010572800412774086, 0.034020841121673584, -0.004321678541600704, 0.017148567363619804, 0.047706540673971176, 0.026597777381539345, -0.02598993293941021, 0.015702635049819946, 0.034536588937044144, -0.030705329030752182, 0.01053596194833517, -0.04796441271901131, -0.012423962354660034, 0.018170850351452827, -0.0031819709111005068, 0.03466552495956421, 0.011005659587681293, -0.05514802411198616, -0.02085088938474655, -0.03392874449491501, 0.00952288880944252, -0.07356753945350647, -0.044280510395765305, -0.006778380833566189, 0.03135001286864281, -0.03529178723692894, 0.016559142619371414, 0.01602497696876526, -0.012525268830358982, -0.0797196552157402, 0.02901073358952999, -0.01897209882736206, -0.028881797567009926, -0.015131630003452301, -0.06984679400920868, -0.0010827219812199473, -0.04129654914140701, -0.004954849369823933, 0.014183025807142258, -0.02853182703256607, 0.013427825644612312, -0.07202029973268509, 0.03595488891005516, -0.046748723834753036, -0.007906576618552208, 0.00028593416209332645, 0.043764762580394745, -0.03842310607433319, -0.019764138385653496, 0.05522170290350914, -0.0034651709720492363, -0.006207376252859831, -0.012783142738044262, 0.0063685467466712, 0.011889795772731304, -0.04026505723595619, -0.003082966199144721, -0.04044925048947334, -0.006386966444551945, 0.020390400663018227, 0.0324920229613781, -0.09666560590267181, 0.013280468992888927, -0.05113257095217705, -0.007819083519279957, -0.05234825611114502, 0.010379396378993988, -0.014965854585170746, 0.022158674895763397, 0.011263532564043999, -0.005576507654041052, -0.029323866590857506, -0.03897568956017494, -0.05584796518087387, -0.01634731888771057, 0.07062041759490967, 0.00948604941368103, -0.044906772673130035, 0.047706540673971176, 0.05326923355460167, -0.04214384779334068, 0.009113054722547531, 0.024461114779114723, -0.00865256693214178, -0.043580569326877594, -0.01926681213080883, -0.004063805099576712, 0.030889524146914482, 0.015104001387953758, -0.015214518643915653, -0.018723435699939728, -0.034389231353998184, 0.047190792858600616, 0.06085807457566261, 0.09703399986028671, -0.012672625482082367, -0.036636412143707275, 0.01373174786567688, -0.027887143194675446, 0.013022596016526222, -0.020390400663018227, -0.015039532445371151, -0.03221572935581207, 0.028108177706599236, 0.008362459018826485, -0.030981622636318207, -0.024829505011439323, 0.01911945454776287, -0.023263845592737198, -0.0723518505692482, 0.005479805171489716, 0.007998674176633358, -0.042291201651096344, 0.043948959559202194, -0.04884855076670647, 0.0048857759684324265, 0.03569701686501503, -0.006773775909096003, -0.00869401078671217, -0.020095689222216606, -0.03982298821210861, -0.020832469686865807, 0.011751649901270866, -0.06406306475400925, -0.05827934294939041, -0.025455767288804054, 0.009642614983022213, 0.009113054722547531, 0.0061797467060387135, 0.035936471074819565, 0.029065992683172226, -0.04866435378789902, 0.007736195810139179, 0.006875083316117525, 0.08789791911840439, 0.024424275383353233, 0.00797564908862114, -0.061558015644550323, 0.022527065128087997, 0.04067028686404228, 0.008316410705447197, -0.016595982015132904, -0.04921694099903107, 0.0015748684527352452, -0.037004802376031876, 0.0020480197854340076, -0.01258973777294159, 0.0003588927211239934, 0.010646479204297066, -0.009145288728177547, -0.008265757001936436, -0.007634888403117657, 0.023761171847581863, -0.04903274402022362, 0.016411786898970604, 0.03518127277493477, 0.004595668520778418, -0.03326564282178879, 0.014348801225423813, -0.00695797149091959, 0.014229074120521545, 0.012718673795461655, 0.01400804053992033, 0.020648274570703506, 0.0011351024731993675, -0.0032003906089812517, 0.04840648174285889, 0.006603395566344261, 0.04295430704951286, 0.022563904523849487, -0.008919649757444859, -0.0024935416877269745, 0.060637038201093674, -0.023061230778694153, 0.008017092943191528, 0.05061682313680649, 0.023540139198303223, 0.01627364009618759, -0.06664180010557175, -0.06841007620096207, 0.05194303020834923, 0.007851317524909973, 0.021016664803028107, -0.030208002775907516, -0.035126011818647385, -0.004526595585048199, -0.011899005621671677, 0.01319758128374815, -0.016117073595523834, -0.009808391332626343, -0.015104001387953758, -0.007284917868673801, -0.05676894262433052, -0.00906240101903677, 0.03228940814733505, -0.02554786577820778, -0.02580573782324791, -0.043506890535354614, 0.034794460982084274, 0.016669658944010735, 0.0417017787694931, 0.0815616026520729, -0.008224313147366047, 0.015601327642798424, -0.045643553137779236, -0.08694010227918625, 0.03251044079661369, 0.004275629762560129, -0.08060379326343536, -0.020795630291104317, 0.08716113865375519, -0.04019137844443321, -0.03661799430847168, 0.020206205546855927, 0.03135001286864281, 0.05378498136997223, 0.03383664786815643, 0.018557660281658173, 0.02081404998898506, 0.00234848796389997, -0.027408236637711525, -0.0028112782165408134, -0.05455860123038292, 0.0291580893099308, 0.022729679942131042, 0.03462868556380272, 0.00889662466943264, 0.006036995444446802, -0.03963879495859146, -0.0003974585561081767, 0.04100183770060539, -0.0002549951313994825, 0.01646704599261284, 0.05691629648208618, -0.012985757552087307, 0.010959610342979431, 0.034352391958236694, -0.027887143194675446, -0.03798103705048561, -0.025603124871850014, 0.043175339698791504, -0.06391571462154388, -0.020574597641825676, -0.0254741869866848, 0.04969584941864014, -0.013087064027786255, 0.02007726952433586, 0.1111065074801445, 0.020279884338378906, 0.007773034740239382, 0.0631052553653717, 0.04299114644527435, -0.020390400663018227, 0.03169998154044151, -0.07452534884214401, -0.005806751549243927, -0.03302618861198425, 0.07062041759490967, 0.030115904286503792, 0.005461385939270258, 0.060526520013809204, 0.011622712947428226, -0.02573206089437008, -0.008357854560017586, -0.005148253869265318, -0.003234927076846361, 0.05949502810835838, 0.016660450026392937, -0.015122421085834503, -0.00985443964600563, 0.033284060657024384, 0.03647063672542572, -0.003974010236561298, 0.02702142670750618, -0.046748723834753036, -0.05400601401925087, -0.00782829336822033, 0.029839612543582916, -0.03274989500641823, 0.06771013140678406, -0.012617366388440132, 0.04184913635253906, -0.017968235537409782, -0.0125528983771801, -0.022784939035773277, -0.05227458104491234, 0.064247265458107, 0.012433171272277832, 0.03392874449491501, -0.005802146624773741, 0.0048213074915111065, -0.02007726952433586, 0.03197627514600754, -0.011512195691466331, -0.003278673393651843, 0.05183251202106476, -0.05916347727179527, -0.010941190645098686, -0.015426342375576496, -0.01693674363195896, -0.00430095661431551, -0.028439728543162346, -0.04906958341598511, 0.022434968501329422, -0.021919220685958862, -0.007132956758141518, 0.06759961694478989, 0.0038934247568249702, 0.03794419765472412, -0.01620917208492756, -0.061521176248788834, -0.0313868522644043, 0.018916839733719826, 0.017480118200182915, 0.00898872222751379, -0.03584437444806099, 0.004305561538785696, -0.0767725333571434, 0.029434382915496826, -0.021200859919190407, -0.05713733285665512, 0.08134057372808456, 0.02890021726489067, -0.017185406759381294, -0.012037152424454689, -0.02495844103395939, -0.0014908293960615993, 0.0631420910358429, 0.043691087514162064, 0.0005666878423653543, 0.010572800412774086, -0.021900800988078117, 0.00207219528965652, 0.03845994547009468, 0.05061682313680649, 0.00920975673943758, -0.02107192389667034, 0.0483696423470974, -0.005235746968537569, 0.007948020473122597, 0.030318519100546837, 0.010158361867070198, 0.04796441271901131, -0.030115904286503792, 0.03669166937470436, -0.001586380647495389, 0.016706498339772224, 0.005737678613513708, -0.015739474445581436, -0.023079650476574898, -0.01757221668958664, 0.020574597641825676, -0.017489328980445862, 0.0055903224274516106, -0.022029738873243332, -0.02055617794394493, 0.045054130256175995, -0.009440001100301743, -0.07069409638643265, 0.007123746909201145, -0.02029830403625965, -0.0286055039614439, -0.06034232676029205, -0.012341073714196682, 0.05577428638935089, -0.033726129680871964, -0.01264499593526125, 0.03146053105592728, -0.01430275198072195, -0.025750480592250824, 0.030613232403993607, -0.03938091918826103, -0.04332269728183746, 0.011318790726363659, -0.042401719838380814, 0.03731793537735939, -0.05282716453075409, -0.061742208898067474, -0.007966439239680767, 0.06597869843244553, 0.06955208629369736, 0.001318146474659443, -0.03239992633461952, 0.06785748898983002, -0.002739902585744858, 0.0027030636556446552, -0.020942987874150276, -0.026634616777300835, 0.017673524096608162, 0.011410888284444809, 0.0339655838906765, -0.0245532114058733, 0.012248976156115532, -0.0002226170909125358, 0.043691087514162064, -0.020906148478388786, 0.03041061758995056, 0.021495573222637177, -0.05971606448292732, -0.013464664109051228, 0.007031649351119995, -0.026266226544976234, 0.05964238569140434, 0.007160585839301348, -0.01467114221304655, 0.027150362730026245, 0.016255220398306847, -0.05312187597155571, 0.010333347134292126, -0.007929600775241852, 0.011889795772731304, -0.025050537660717964, -0.008486790582537651, 0.016992000862956047, -0.01258973777294159, -0.03503391519188881, 0.001057970803231001, 0.025050537660717964, -0.01415539626032114, 0.015960508957505226, -0.07728827744722366, -0.027003007009625435, -0.07831977307796478, 0.02004043012857437, 0.0075658150017261505, 0.036746930330991745, 0.03610224649310112, -0.00961498636752367, -0.05629003420472145, -0.026487261056900024, 0.06281054019927979, 0.008887415751814842, 0.0527903251349926, 0.03171840310096741, -0.03437081351876259, 0.009550517424941063, 0.013216000981628895, 0.034720782190561295, -0.0276845283806324, 0.005051551386713982, 0.03426029533147812, 0.06409990787506104, -0.01590524986386299, 0.006345522589981556, 0.018437933176755905, -0.0705098956823349, -0.015140839852392673, 0.03343141824007034, 0.044169992208480835, -0.0037898148875683546, -0.02580573782324791, -0.028881797567009926, 0.021127182990312576, -0.03241834416985512, 0.009094635024666786, -0.029397543519735336, -0.01801428385078907, 0.01620917208492756, 0.03378138691186905, -0.012129249982535839, -0.0372810959815979, -0.009223571047186852, 0.01483691856265068, -0.014054088853299618, -0.03930724039673805, 0.037225838750600815, -0.017489328980445862, 0.10381238162517548, -0.021016664803028107, 0.046269819140434265, 0.009016351774334908, -0.031018460169434547, 0.01805112324655056, -0.01779324933886528, 0.029434382915496826, -0.06520507484674454, -0.061373818665742874, -0.02066669426858425, -0.01683543622493744, -0.03853362426161766, 0.06082123517990112, 0.022398129105567932, 0.06583134084939957, -0.014827708713710308, 0.015269776806235313, -0.061742208898067474, 0.024792665615677834, -0.03385506570339203, 0.010922771878540516, 0.004003941547125578, -0.011475357227027416, 0.04162809997797012, 0.027113523334264755, -0.03794419765472412, 0.06649444252252579, -0.027518752962350845, 0.06295789778232574, -0.06255266815423965, -0.07964597642421722, -0.010425444692373276, -0.00045156589476391673, 0.016595982015132904, -0.0024198635946959257, -0.04026505723595619, 0.03941775858402252, -0.02993170917034149, 0.009789971634745598, 0.013087064027786255, 0.04840648174285889, -0.041554421186447144, -0.07522529363632202, -0.0002696731826290488, 0.018880002200603485, 0.043064821511507034, -0.07356753945350647, 0.019395748153328896, 0.025860996916890144, -0.0668259933590889, -0.009826810099184513, 0.022361289709806442, -0.01746169850230217, 0.0014113952638581395, 0.025345250964164734, 0.01970887929201126, 0.06564714759588242, 0.0276845283806324, -0.04988004267215729, 0.08841366320848465, 0.013980410993099213, 0.01738802157342434, 0.027592431753873825, 0.05120624974370003, 0.017415650188922882, -0.02960015833377838, 0.025197895243763924, 0.002686946652829647, 0.04148074612021446, 0.006580371409654617, 0.11685339361429214, -0.03149736672639847, -0.022490225732326508, 0.03978614881634712, -0.01492901612073183, 0.00010001220653066412, 0.037520550191402435, -0.03577069565653801, -0.036783769726753235, 0.029986968263983727, 0.02007726952433586, 0.044464707374572754, -0.09659192711114883, -0.020500918850302696, -0.03276831656694412, -0.011079337447881699, -0.01406329870223999, -0.012635786086320877, 0.020427240058779716, -0.024940021336078644, -0.009067005477845669, 0.006842849310487509, -0.06933104991912842, -0.01948784478008747, -0.00340070272795856, -0.020685113966464996, -0.031018460169434547, -0.04991688206791878, 0.029839612543582916, 0.02941596321761608, -0.01529740635305643, 0.029139671474695206, -0.00878610834479332, 0.010904352180659771, 0.008072352036833763, 0.05960554629564285, 0.078982874751091, -0.021274538710713387, -0.01827215775847435, 0.04033873602747917, 0.08436137437820435, 0.014330381527543068, -0.01941416785120964, 0.002530380617827177, -0.03420503810048103, 0.008367064408957958, -0.05676894262433052, 0.012009522877633572, 0.020390400663018227, -0.023337524384260178, -0.04888539016246796, -0.06874162703752518, 0.005719258915632963, 0.043543729931116104, 0.006152117624878883, 0.006133697926998138, 0.01654072292149067, -0.00017584879242349416, -0.012423962354660034, 0.011567454785108566, -0.048553839325904846, 0.030779007822275162, 0.06292106211185455, 0.012166088446974754, 0.01764589361846447, -0.03258411958813667, 0.00005730914926971309, 0.05949502810835838, 0.01956152357161045, -0.04866435378789902, 0.04000718519091606, 0.030723748728632927, -0.0035296392161399126, 0.0076302834786474705, -0.08170896023511887, 0.043764762580394745, 0.01378700602799654, 0.020500918850302696, -0.0531587153673172, -0.011650342494249344, -0.03263937681913376, 0.00795723032206297, -0.022434968501329422, -0.025345250964164734, -0.01922997273504734, -0.07375173270702362, 0.05197986587882042, 0.022048158571124077, -0.01044386439025402, 0.07426747679710388, 0.05507434532046318, -0.06656812131404877, 0.07275708019733429, -0.015085581690073013, 0.013409405946731567, -0.046675048768520355, 0.014238283969461918, 0.03392874449491501, -0.08200367540121078, 0.027702948078513145, 0.0782460942864418, 0.0018292879685759544, 0.025897836312651634, -0.013768586330115795, 0.011806908063590527, 0.0631420910358429, -0.03343141824007034, -0.017885347828269005, 0.03720741719007492, -0.030355358496308327, -0.028992313891649246, 0.046675048768520355, 0.004084527026861906, -0.0077868495136499405, -0.02587941661477089, -0.044575221836566925, 0.018391884863376617, -0.07323598861694336, -0.05732152611017227, -0.05802146717905998, 0.005005502607673407, -0.022619163617491722, 0.01520530879497528, -0.003228019690141082, 0.012976547703146935, -0.05330607295036316, -0.01698279194533825, 0.03853362426161766, -0.05297452211380005, -0.007874341681599617, 0.025787319988012314, 0.01996675319969654, 0.028034498915076256, 0.022361289709806442, 0.004165112506598234, -0.08067747205495834, -0.031018460169434547, 0.061410658061504364, 0.045938268303871155, 0.00228862464427948, 0.019506264477968216, -0.03335773944854736, 0.005548878572881222, 0.05960554629564285, -0.01841951347887516, 0.013492293655872345, 0.01387910358607769, -0.025382090359926224, 0.009504469111561775, 0.02495844103395939, -0.008790712803602219, 0.04870119318366051, -0.03289725258946419, -0.063473641872406, -0.06328944861888885, -0.028623923659324646, -0.013160742819309235, -0.007022439502179623, -0.01694595254957676, -0.01573026552796364, 0.036636412143707275, -0.0018419513944536448, 0.011650342494249344, 0.007892761379480362, 0.0402282178401947, 0.03636011853814125, 0.02580573782324791, -0.017185406759381294, 0.018649756908416748, -0.05743204429745674, 0.060637038201093674, 0.017931396141648293, 0.06723122298717499, 0.03974930942058563, -0.07349386066198349, 0.008919649757444859, 0.02573206089437008, -0.05816882476210594, 0.0282371137291193, -0.021845543757081032, 0.037446871399879456, 0.05680577829480171, 0.04037557542324066, 0.0009589659166522324, 0.07058357447385788, -0.03709689900279045, 0.007593444548547268, 0.012525268830358982, -0.034462910145521164, -0.037557389587163925 ]
730,206
mmengine.logging.message_hub
update_scalar
Update :attr:_log_scalars. Update ``HistoryBuffer`` in :attr:`_log_scalars`. If corresponding key ``HistoryBuffer`` has been created, ``value`` and ``count`` is the argument of ``HistoryBuffer.update``, Otherwise, ``update_scalar`` will create an ``HistoryBuffer`` with value and count via the constructor of ``HistoryBuffer``. Examples: >>> message_hub = MessageHub(name='name') >>> # create loss `HistoryBuffer` with value=1, count=1 >>> message_hub.update_scalar('loss', 1) >>> # update loss `HistoryBuffer` with value >>> message_hub.update_scalar('loss', 3) >>> message_hub.update_scalar('loss', 3, resumed=False) AssertionError: loss used to be true, but got false now. resumed keys cannot be modified repeatedly' Note: The ``resumed`` argument needs to be consistent for the same ``key``. Args: key (str): Key of ``HistoryBuffer``. value (torch.Tensor or np.ndarray or int or float): Value of log. count (torch.Tensor or np.ndarray or int or float): Accumulation times of log, defaults to 1. `count` will be used in smooth statistics. resumed (str): Whether the corresponding ``HistoryBuffer`` could be resumed. Defaults to True.
def update_scalar(self, key: str, value: Union[int, float, np.ndarray, 'torch.Tensor'], count: int = 1, resumed: bool = True) -> None: """Update :attr:_log_scalars. Update ``HistoryBuffer`` in :attr:`_log_scalars`. If corresponding key ``HistoryBuffer`` has been created, ``value`` and ``count`` is the argument of ``HistoryBuffer.update``, Otherwise, ``update_scalar`` will create an ``HistoryBuffer`` with value and count via the constructor of ``HistoryBuffer``. Examples: >>> message_hub = MessageHub(name='name') >>> # create loss `HistoryBuffer` with value=1, count=1 >>> message_hub.update_scalar('loss', 1) >>> # update loss `HistoryBuffer` with value >>> message_hub.update_scalar('loss', 3) >>> message_hub.update_scalar('loss', 3, resumed=False) AssertionError: loss used to be true, but got false now. resumed keys cannot be modified repeatedly' Note: The ``resumed`` argument needs to be consistent for the same ``key``. Args: key (str): Key of ``HistoryBuffer``. value (torch.Tensor or np.ndarray or int or float): Value of log. count (torch.Tensor or np.ndarray or int or float): Accumulation times of log, defaults to 1. `count` will be used in smooth statistics. resumed (str): Whether the corresponding ``HistoryBuffer`` could be resumed. Defaults to True. """ self._set_resumed_keys(key, resumed) checked_value = self._get_valid_value(value) assert isinstance(count, int), ( f'The type of count must be int. but got {type(count): {count}}') if key in self._log_scalars: self._log_scalars[key].update(checked_value, count) else: self._log_scalars[key] = HistoryBuffer([checked_value], [count])
(self, key: str, value: Union[int, float, numpy.ndarray, ForwardRef('torch.Tensor')], count: int = 1, resumed: bool = True) -> None
[ -0.039759762585163116, -0.06873025745153427, -0.0929594486951828, 0.06130097061395645, 0.037090446799993515, 0.002746317069977522, -0.052266355603933334, -0.00276498356834054, 0.009771942161023617, -0.007769953925162554, -0.032573141157627106, -0.005968631245195866, 0.042485080659389496, 0.007307956460863352, -0.032871805131435394, 0.020029215142130852, 0.0683942586183548, 0.009725275449454784, -0.01952521689236164, 0.006271963007748127, 0.018498556688427925, -0.023034529760479927, 0.015465241856873035, 0.06817026436328888, -0.016790566965937614, -0.04017042741179466, 0.04020776227116585, 0.027103839442133904, -0.014485247433185577, 0.03247980773448944, -0.011573264375329018, -0.05043703317642212, 0.025703847408294678, -0.01864788867533207, -0.02583451382815838, -0.04196241870522499, -0.027551837265491486, -0.03837843984365463, -0.06843159347772598, -0.032685138285160065, 0.03942376747727394, 0.032927803695201874, 0.02962382510304451, -0.027346504852175713, 0.014727912843227386, 0.045583728700876236, 0.010219939053058624, 0.04170108586549759, 0.016202570870518684, -0.002659984165802598, -0.055290337651968, 0.012366593815386295, -0.038079775869846344, -0.017303897067904472, -0.008866613730788231, 0.04965303838253021, 0.07433022558689117, -0.007634621579200029, -0.031751811504364014, 0.00860061589628458, -0.024583853781223297, -0.01781722716987133, -0.03763177618384361, 0.007844620384275913, 0.03563445433974266, -0.07996752858161926, -0.0015528241638094187, 0.01958121731877327, 0.0014326581731438637, -0.035671789199113846, -0.03527979180216789, -0.02449052222073078, 0.035466454923152924, -0.011237266473472118, -0.09467677026987076, -0.006001297850161791, -0.03651178255677223, 0.08780747652053833, -0.0008475782815366983, -0.021522538736462593, 0.0884048119187355, -0.03763177618384361, 0.05898631736636162, -0.020663877949118614, 0.0036119786091148853, -0.004687638953328133, -0.009781274944543839, 0.016519902274012566, -0.005212635733187199, 0.05697032809257507, -0.061711635440588, -0.03227447718381882, -0.0225678663700819, 0.0034579795319586992, -0.011666597798466682, -0.013710585422813892, -0.017163898795843124, -0.016575900837779045, 0.01787322759628296, 0.05726899206638336, 0.03387979790568352, 0.007051291409879923, 0.04233574867248535, 0.008829280734062195, -0.013691918924450874, -0.01843322440981865, -0.013701251707971096, 0.016837233677506447, 0.05812765657901764, -0.018181225284934044, 0.021037207916378975, 0.03593312203884125, 0.009967940859496593, -0.04666639119386673, -0.04311974346637726, 0.04801038280129433, 0.0002027071313932538, -0.005819298792630434, -0.006845959462225437, 0.04375440627336502, 0.00048766378313302994, 0.004069309215992689, -0.0005194552359171212, 0.022605199366807938, 0.01177859678864479, 0.006085297092795372, 0.021783871576189995, 0.0079472865909338, 0.013346587307751179, 0.0028863162733614445, -0.030071821063756943, -0.01850789040327072, 0.04909304156899452, 0.024247856810688972, 0.10378605127334595, -0.055066339671611786, -0.01007060706615448, -0.01982388272881508, -0.02837316505610943, 0.004041309468448162, -0.0003785810840781778, 0.04364240914583206, 0.03333846852183342, 0.005063303280621767, 0.04927970841526985, 0.008315950632095337, 0.05607433617115021, 0.04237308353185654, -0.027645168825984, 0.010761269368231297, 0.004608306102454662, -0.005861298646777868, 0.03875176981091499, 0.054319679737091064, 0.0017406563274562359, -0.024751853197813034, 0.02738383784890175, -0.0480850487947464, -0.0025806513149291277, 0.004745971877127886, 0.047450385987758636, -0.008339283987879753, -0.01653856784105301, -0.028111834079027176, -0.07735420763492584, 0.00763928797096014, -0.027159839868545532, 0.08310350775718689, -0.05543966963887215, 0.012590591795742512, 0.03425313159823418, -0.07944486290216446, 0.035541120916604996, 0.0467410571873188, -0.01049993745982647, 0.05588766932487488, -0.057530324906110764, -0.00013897834287490696, 0.016734568402171135, 0.01693056710064411, 0.006299962755292654, -0.033487800508737564, 0.006057297345250845, -0.037837110459804535, -0.040133096277713776, -0.02318386174738407, -0.030407819896936417, -0.00878728087991476, 0.0012903256574645638, 0.056484997272491455, -0.025554515421390533, -0.04263441264629364, 0.026319844648241997, -0.05745565891265869, -0.022754531353712082, 0.032367806881666183, -0.006145963445305824, -0.04308241233229637, 0.02893316186964512, 0.06212230026721954, 0.016183903440833092, 0.0032969804015010595, 0.02393052540719509, -0.044463735073804855, 0.0034719794057309628, -0.03234914317727089, 0.051594361662864685, 0.045509062707424164, -0.034234464168548584, -0.023874524980783463, 0.0017966560553759336, -0.003667978337034583, -0.039125099778175354, 0.045023731887340546, -0.013271921314299107, -0.045023731887340546, -0.03822910785675049, 0.009790608659386635, 0.017163898795843124, -0.06159963458776474, 0.1279779076576233, -0.04453840106725693, -0.026245178654789925, -0.00610396359115839, -0.011134600266814232, 0.022157201543450356, 0.0427464134991169, -0.01664123497903347, 0.014699912630021572, 0.001975154969841242, -0.002575984690338373, 0.06981291621923447, 0.004106642212718725, 0.014802578836679459, 0.010061273351311684, -0.019431885331869125, -0.009319278411567211, 0.05626099929213524, 0.01558657456189394, 0.02236253395676613, -0.0009619109914638102, -0.020309213548898697, 0.036791782826185226, 0.06092764064669609, -0.07298623770475388, -0.048047713935375214, 0.004274641163647175, 0.05842632055282593, -0.07914619892835617, 0.022511865943670273, -0.009225944988429546, 0.017770560458302498, 0.005039969924837351, -0.012375926598906517, 0.008558616042137146, -0.0120212621986866, 0.03328246995806694, 0.010957268066704273, 0.0004278724663890898, -0.05002636834979057, -0.06701293587684631, -0.04670372232794762, -0.048682376742362976, -0.005613966844975948, -0.032871805131435394, -0.003847643965855241, 0.007550621870905161, 0.037519779056310654, 0.023781191557645798, 0.0943034440279007, -0.08616482466459274, 0.0038686436600983143, -0.03897576779127121, -0.008829280734062195, -0.014970578253269196, -0.025311850011348724, 0.009883941151201725, 0.02318386174738407, 0.028093166649341583, -0.00478797173127532, 0.022474532946944237, -0.021615872159600258, 0.008507282473146915, -0.0017733228160068393, 0.04588239639997482, 0.028279831632971764, 0.03354380279779434, 0.007195957470685244, -0.023949190974235535, -0.020869210362434387, 0.06742359697818756, 0.05088503286242485, 0.024938518181443214, 0.05962098017334938, -0.014419914223253727, 0.01446658093482256, -0.047077056020498276, 0.01224526111036539, 0.04535973072052002, 0.025498514994978905, 0.01877855509519577, -0.012338593602180481, 0.009426610544323921, -0.021522538736462593, 0.011675930581986904, -0.06869292259216309, 0.018171891570091248, 0.006696627009660006, 0.015203909948468208, 0.024210523813962936, -0.005221968982368708, 0.12110861390829086, -0.018601223826408386, 0.020066548138856888, 0.046890389174222946, -0.04244774952530861, -0.021839870139956474, -0.0165572352707386, -0.03503712639212608, 0.021727871149778366, 0.021653205156326294, 0.013178588822484016, -0.0017628228524699807, 0.004738972056657076, -0.03643711656332016, -0.0323304757475853, 0.035615790635347366, -0.030893150717020035, 0.00520330248400569, -0.039573099464178085, -0.022847864776849747, 0.00013205129653215408, 0.022959863767027855, 0.03307713568210602, -0.025181183591485023, -0.023127863183617592, -0.037463776767253876, 0.02603984624147415, 0.011591930873692036, 0.00471563870087266, -0.016631901264190674, -0.009995941072702408, -0.06809559464454651, 0.02850383147597313, 0.048047713935375214, -0.014811912551522255, 0.03382379934191704, -0.011591930873692036, 0.0659676119685173, -0.012105261906981468, -0.009790608659386635, -0.08019152283668518, 0.005641966592520475, 0.006878626067191362, 0.036231786012649536, -0.01889055408537388, -0.0293811596930027, -0.1081913560628891, -0.019375884905457497, -0.059023648500442505, -0.019805215299129486, 0.012655925005674362, -0.0001948321732925251, 0.018311891704797745, 0.0012599924812093377, 0.06914092600345612, -0.03641844913363457, -0.0026343176141381264, -0.014513247646391392, 0.010527937673032284, -0.008007952943444252, -0.043045077472925186, 0.007009292021393776, 0.09131678938865662, 0.016501234844326973, 0.02118654176592827, 0.004024975933134556, 0.013225254602730274, -0.020178547129034996, -0.005991964600980282, 0.07194090634584427, 0.008815281093120575, 0.005511300638318062, -0.025871846824884415, 0.03193847835063934, 0.08892747014760971, 0.0411410890519619, -0.03128514811396599, -0.01511991024017334, 0.0057166325859725475, 0.001373158534988761, 0.03942376747727394, -0.018106559291481972, -0.07660754770040512, -0.06902892142534256, -0.006598627660423517, 0.06372762471437454, 0.009622609242796898, 0.04084242507815361, -0.07197824120521545, -0.036903779953718185, 0.01260925829410553, -0.04170108586549759, 0.02949315868318081, -0.009613276459276676, -0.024677187204360962, -0.023258529603481293, -0.002162987133488059, -0.05868765339255333, -0.02200786955654621, 0.054506342858076096, -0.04980237036943436, -0.057231660932302475, -0.021111875772476196, 0.03412246331572533, -0.040245093405246735, -0.02032787911593914, -0.09183945506811142, -0.03527979180216789, 0.07444222271442413, 0.004363307263702154, 0.01909588649868965, -0.018125226721167564, 0.05185569450259209, -0.0016986565897241235, 0.0233705285936594, -0.037407778203487396, 0.0038989768363535404, 0.026879841461777687, 0.022885197773575783, -0.011022601276636124, -0.039946429431438446, -0.014606580138206482, 0.0496903732419014, -0.03595178574323654, -0.056858330965042114, 0.04076775908470154, 0.019693216308951378, -0.007457288913428783, 0.0315278135240078, 0.004531306680291891, -0.01995454914867878, 0.039386432617902756, 0.05002636834979057, -0.022642532363533974, -0.024210523813962936, 0.013430587016046047, 0.027981167659163475, -0.07433022558689117, -0.0019763216841965914, -0.016566568985581398, 0.019170552492141724, -0.008045285940170288, 0.030575819313526154, 0.015875905752182007, -0.0673115998506546, -0.09706608951091766, -0.0710449144244194, 0.04857037961483002, -0.023071862757205963, -0.006332629360258579, 0.03555978834629059, -0.04659172520041466, -0.023949190974235535, -0.037389110773801804, -0.015259909443557262, 0.06227163225412369, -0.03309580311179161, 0.008824614807963371, -0.0074806222692132, 0.03203181177377701, -0.031023815274238586, 0.02075720950961113, -0.006393295247107744, -0.024210523813962936, -0.02967982366681099, 0.024023856967687607, 0.040991757065057755, -0.0355224572122097, -0.01632390357553959, -0.01666923426091671, 0.002671650843694806, 0.008404617197811604, -0.03438379615545273, 0.040805090218782425, 0.03524245694279671, 0.009020613506436348, 0.03503712639212608, 0.09706608951091766, 0.052826352417469025, -0.02695450745522976, -0.013365253806114197, 0.005315301939845085, -0.0232398621737957, -0.05965831130743027, -0.04554639756679535, 0.00608996395021677, 0.020962541922926903, 0.016006572172045708, 0.007765287533402443, -0.03834110498428345, -0.056858330965042114, -0.026786508038640022, 0.009207278490066528, 0.026637176051735878, -0.002063821069896221, 0.03583978861570358, 0.03946109861135483, -0.0009269111906178296, -0.060703638941049576, -0.0022049869876354933, 0.026114512234926224, -0.02200786955654621, 0.009552610106766224, -0.009967940859496593, -0.09206345677375793, -0.058650318533182144, 0.010929268784821033, -0.016743900254368782, -0.030351819470524788, 0.025143850594758987, 0.014485247433185577, 0.032498475164175034, -0.06186096742749214, -0.02155987173318863, -0.05398368090391159, -0.044650401920080185, -0.07339689880609512, 0.03507445752620697, 0.02906382828950882, -0.07567422091960907, 0.0044543067924678326, 0.0006859959103167057, 0.06921558827161789, 0.041738420724868774, 0.012459926307201385, 0.008721948601305485, -0.01511991024017334, -0.05738099291920662, -0.0224371999502182, -0.034850459545850754, 0.01741589605808258, -0.0328531377017498, 0.0015096577117219567, -0.0060106310993433, 0.0448743999004364, -0.015689240768551826, 0.036343783140182495, 0.030333153903484344, -0.09587143361568451, -0.038079775869846344, -0.006346629001200199, 0.03748244419693947, -0.0285784974694252, -0.025386516004800797, 0.009725275449454784, 0.008861947804689407, 0.0029609824996441603, -0.01187192928045988, -0.023127863183617592, -0.015259909443557262, -0.01837722398340702, 0.04330641031265259, 0.01805989257991314, 0.003590978682041168, -0.012637258507311344, -0.01754656247794628, 0.000857494946103543, 0.04983970522880554, 0.021671870723366737, 0.04185041785240173, 0.028895828872919083, -0.022829197347164154, -0.0248451866209507, 0.025759847834706306, 0.009566609747707844, 0.03395446389913559, -0.03227447718381882, 0.0662289410829544, -0.0036796447820961475, -0.0022609864827245474, 0.013439920730888844, 0.018209224566817284, -0.020234547555446625, 0.06055430695414543, 0.08452216535806656, -0.03199447691440582, 0.07119424641132355, 0.012665258720517159, 0.06365295499563217, -0.06369028985500336, 0.05088503286242485, -0.03718378022313118, -0.04259708151221275, 0.026805173605680466, -0.006001297850161791, -0.02869049645960331, 0.001990321557968855, -0.011722597293555737, 0.04468773677945137, -0.032498475164175034, -0.02583451382815838, -0.04039442539215088, 0.015110577456653118, -0.04901837557554245, -0.07294890284538269, 0.016314569860696793, 0.09079413115978241, 0.03079981729388237, 0.01791989430785179, -0.007956619374454021, 0.04786105081439018, 0.00884328130632639, 0.03675444796681404, 0.038565102964639664, -0.0010657437378540635, 0.014074583537876606, 0.014979911036789417, 0.04039442539215088, 0.0004372057446744293, 0.012777257710695267, 0.016015905886888504, -0.0432690754532814, -0.019935881718993187, -0.06970091909170151, -0.006813292857259512, 0.016501234844326973, -0.040991757065057755, -0.036903779953718185, -0.035727787762880325, -0.014307915233075619, 0.0006200796342454851, 0.016790566965937614, 0.006225296296179295, 0.03331980109214783, 0.0018351557664573193, 0.0021699871867895126, 0.026991840451955795, 0.02299719676375389, 0.025647848844528198, 0.07018624991178513, 0.016333237290382385, 0.0011654930422082543, -0.04084242507815361, 0.005086636636406183, 0.06227163225412369, -0.0038523105904459953, -0.012991922907531261, 0.0366051159799099, 0.009501277469098568, 0.024303855374455452, -0.026133177801966667, -0.025927847251296043, 0.03673578053712845, 0.0299224890768528, 0.06324229389429092, 0.06469828635454178, 0.004209308419376612, 0.046143725514411926, 0.0043983072973787785, -0.00528263533487916, 0.00012191594578325748, 0.049055710434913635, 0.005655966699123383, -0.023221196606755257, -0.042298417538404465, 0.0020999875850975513, 0.009715942665934563, 0.010341271758079529, -0.0011579097481444478, 0.020794542506337166, -0.07608488202095032, -0.060143642127513885, -0.00005818715362693183, 0.028149167075753212, -0.015231910161674023, -0.018918555229902267, 0.04009576141834259, 0.014503913931548595, -0.031770478934049606, 0.01437324844300747, 0.005249968729913235, -0.015259909443557262, 0.007083958014845848, -0.017210565507411957, 0.026991840451955795, -0.012711924500763416, 0.048309046775102615, -0.005207969341427088, -0.029101161286234856, 0.018013225868344307, -0.03371179848909378, -0.04170108586549759, -0.039386432617902756, -0.04599439352750778, -0.026431843638420105, -0.042111750692129135, -0.009207278490066528, 0.014177249744534492, -0.011442598886787891, -0.0066872937604784966, 0.04218641668558121, 0.007769953925162554, -0.01704256609082222, -0.028839828446507454, -0.0037286444567143917, -0.029399825260043144, -0.04506106674671173, -0.005067970138043165, 0.015222576446831226, 0.017695894464850426, 0.01136793289333582, -0.04965303838253021, -0.03143448010087013, 0.016519902274012566, 0.06802093237638474, -0.03277847170829773, -0.03180781006813049, -0.02850383147597313, 0.05428234487771988, 0.007377956062555313, 0.02590917982161045, 0.03720244765281677, 0.019786549732089043, 0.008427949622273445, -0.04468773677945137, 0.06021830812096596, 0.08534349501132965, 0.03524245694279671, 0.007177290972322226, 0.014914577826857567, 0.0006381628918461502, -0.02137320674955845, -0.050474368035793304, 0.09176479279994965, 0.0077279540710151196, -0.015941238030791283, -0.044650401920080185, 0.08907680213451385, 0.01605323888361454, 0.01567990705370903, -0.03165847808122635, -0.004050642717629671, -0.018741222098469734, -0.00045062231947667897, -0.007214623969048262, -0.018545223399996758, 0.021485205739736557, -0.008087285794317722, -0.02361319400370121, 0.0071446243673563, 0.02435985580086708, -0.015063910745084286, -0.03251713886857033, 0.08310350775718689, -0.089226134121418, 0.00925394520163536, -0.004155641887336969, 0.010761269368231297, 0.00796128623187542, 0.03165847808122635, -0.00007236935925902799, 0.013561252504587173, 0.03074381686747074, -0.025013184174895287, 0.036586448550224304, -0.007578621618449688, 0.009543276391923428 ]
730,207
mmengine.logging.message_hub
update_scalars
Update :attr:`_log_scalars` with a dict. ``update_scalars`` iterates through each pair of log_dict key-value, and calls ``update_scalar``. If type of value is dict, the value should be ``dict(value=xxx) or dict(value=xxx, count=xxx)``. Item in ``log_dict`` has the same resume option. Note: The ``resumed`` argument needs to be consistent for the same ``log_dict``. Args: log_dict (str): Used for batch updating :attr:`_log_scalars`. resumed (bool): Whether all ``HistoryBuffer`` referred in log_dict should be resumed. Defaults to True. Examples: >>> message_hub = MessageHub.get_instance('mmengine') >>> log_dict = dict(a=1, b=2, c=3) >>> message_hub.update_scalars(log_dict) >>> # The default count of `a`, `b` and `c` is 1. >>> log_dict = dict(a=1, b=2, c=dict(value=1, count=2)) >>> message_hub.update_scalars(log_dict) >>> # The count of `c` is 2.
def update_scalars(self, log_dict: dict, resumed: bool = True) -> None: """Update :attr:`_log_scalars` with a dict. ``update_scalars`` iterates through each pair of log_dict key-value, and calls ``update_scalar``. If type of value is dict, the value should be ``dict(value=xxx) or dict(value=xxx, count=xxx)``. Item in ``log_dict`` has the same resume option. Note: The ``resumed`` argument needs to be consistent for the same ``log_dict``. Args: log_dict (str): Used for batch updating :attr:`_log_scalars`. resumed (bool): Whether all ``HistoryBuffer`` referred in log_dict should be resumed. Defaults to True. Examples: >>> message_hub = MessageHub.get_instance('mmengine') >>> log_dict = dict(a=1, b=2, c=3) >>> message_hub.update_scalars(log_dict) >>> # The default count of `a`, `b` and `c` is 1. >>> log_dict = dict(a=1, b=2, c=dict(value=1, count=2)) >>> message_hub.update_scalars(log_dict) >>> # The count of `c` is 2. """ assert isinstance(log_dict, dict), ('`log_dict` must be a dict!, ' f'but got {type(log_dict)}') for log_name, log_val in log_dict.items(): if isinstance(log_val, dict): assert 'value' in log_val, \ f'value must be defined in {log_val}' count = self._get_valid_value(log_val.get('count', 1)) value = log_val['value'] else: count = 1 value = log_val assert isinstance(count, int), ('The type of count must be int. but got ' f'{type(count): {count}}') self.update_scalar(log_name, value, count, resumed)
(self, log_dict: dict, resumed: bool = True) -> NoneType
[ 0.00346554396674037, -0.03543911874294281, -0.06911378353834152, 0.050418149679899216, -0.004772455431520939, -0.023594792932271957, -0.06749950349330902, -0.024270540103316307, 0.03194776177406311, 0.03695954382419586, -0.03252965584397316, 0.04332282021641731, 0.03896801173686981, 0.01720336452126503, -0.05308359116315842, 0.03821718320250511, 0.019896961748600006, 0.020591478794813156, 0.007320580538362265, 0.012745318002998829, 0.009723232127726078, -0.012285435572266579, 0.025302929803729057, 0.10564160346984863, -0.005166640505194664, -0.050643399357795715, 0.044599227607250214, 0.00721734156832099, 0.008803467266261578, 0.005208874586969614, -0.014012341387569904, -0.013083190657198429, 0.018376532942056656, 0.019596630707383156, -0.010136188007891178, -0.05713806673884392, 0.012595152482390404, -0.014143737033009529, -0.08717121928930283, -0.002298239851370454, 0.017081353813409805, 0.03643396496772766, 0.020328689366579056, -0.04020687937736511, 0.020647790282964706, 0.05653740465641022, -0.03114062175154686, 0.06183074787259102, 0.021511243656277657, -0.04489956051111221, -0.046476300805807114, -0.048240747302770615, -0.020835498347878456, 0.021098287776112556, -0.021398618817329407, 0.05909022316336632, 0.04223411902785301, -0.001355011248961091, -0.03863013908267021, -0.008643915876746178, -0.015035346150398254, -0.03117816336452961, -0.03791685029864311, -0.004565977491438389, 0.04377331584692001, -0.06596030294895172, -0.0050164745189249516, 0.02952633984386921, -0.023632334545254707, -0.04489956051111221, -0.07181677222251892, -0.024721037596464157, -0.011196733452379704, -0.020216064527630806, -0.07286792993545532, -0.0004971307353116572, -0.022599944844841957, 0.02954511158168316, 0.006306961644440889, -0.022806422784924507, 0.06194337084889412, -0.02950756996870041, 0.020910581573843956, -0.03953113406896591, -0.016067735850811005, 0.015251209028065205, -0.011478294618427753, 0.023613564670085907, -0.02719877101480961, 0.03534526377916336, -0.01714705117046833, 0.0033036465756595135, 0.020516395568847656, 0.01851731352508068, -0.0016811524983495474, 0.007006170693784952, -0.05529853701591492, -0.03816087171435356, 0.01617097482085228, 0.013721395283937454, 0.023763729259371758, -0.03754143789410591, 0.019803108647465706, -0.02977035939693451, -0.00734873628243804, -0.055824119597673416, -0.006072327494621277, -0.046926796436309814, 0.07177922874689102, 0.01328966859728098, 0.012050801888108253, 0.03252965584397316, -0.005917469039559364, -0.055824119597673416, -0.03055872954428196, 0.02952633984386921, -0.004434582311660051, -0.020797956734895706, 0.013148888945579529, 0.07084069401025772, -0.03874276205897331, 0.019652942195534706, 0.03695954382419586, 0.053008511662483215, 0.01647130586206913, -0.015654779970645905, 0.011985103599727154, 0.051994889974594116, 0.017081353813409805, 0.03847997263073921, 0.006302268709987402, -0.05878989025950432, 0.049104198813438416, 0.04043212905526161, 0.09625624865293503, -0.053871963173151016, 0.013355366885662079, -0.011375055648386478, 0.00747074605897069, -0.007104717195034027, 0.03093414381146431, 0.06340748816728592, -0.044373977929353714, 0.02834378555417061, 0.02772435173392296, 0.02898198924958706, 0.05758856609463692, 0.051319144666194916, -0.046739090234041214, -0.0011549857445061207, -0.02967650629580021, 0.0029071150347590446, 0.00780392624437809, 0.06971444934606552, -0.013392907567322254, -0.047902874648571014, -0.0005238203448243439, -0.045350056141614914, -0.020197292789816856, -0.04290986433625221, 0.009676305577158928, -0.017156437039375305, 0.013327210210263729, -0.021961741149425507, -0.047339752316474915, -0.006752766203135252, -0.021849116310477257, 0.05728823319077492, -0.06029154732823372, 0.010980870574712753, 0.019408922642469406, -0.06464635580778122, -0.004833460319787264, -0.011731699109077454, 0.03827349469065666, 0.07249251753091812, -0.02798714116215706, -0.023632334545254707, -0.014124966226518154, 0.011816167272627354, -0.0031394027173519135, -0.024308081716299057, -0.025678344070911407, -0.01658393070101738, -0.027705581858754158, 0.006626063957810402, -0.04253444820642471, -0.01694057323038578, -0.019859420135617256, 0.025959903374314308, -0.002440193435177207, -0.03553296998143196, 0.019014738500118256, -0.04523743316531181, 0.03502616286277771, 0.02967650629580021, -0.022205760702490807, -0.01842346042394638, 0.03825472667813301, 0.03542034700512886, 0.007695994805544615, -0.014002956449985504, 0.026804586872458458, -0.022337155416607857, 0.008066716603934765, -0.054923124611377716, 0.01573924720287323, 0.047677624970674515, -0.013599385507404804, -0.03298015147447586, -0.04463677108287811, 0.009207037277519703, -0.013805863447487354, 0.004741952754557133, 0.002334608230739832, 0.006874775979667902, 0.06340748816728592, 0.0021105327177792788, -0.04204640910029411, -0.05698790401220322, 0.12576381862163544, -0.03923080116510391, -0.012604537419974804, -0.0012787552550435066, -0.0010159651283174753, 0.011956947855651379, 0.022130677476525307, 0.026354089379310608, 0.03168497234582901, 0.02796837128698826, -0.0008159396820701659, 0.01374016609042883, 0.0049554696306586266, -0.014800711534917355, 0.024439476430416107, -0.005762610584497452, -0.01464116107672453, 0.06171812489628792, 0.04193378612399101, 0.06096729636192322, 0.013242742046713829, 0.021304765716195107, -0.016048964112997055, 0.06201845407485962, -0.06746196001768112, -0.054923124611377716, 0.04140820726752281, 0.052783261984586716, -0.06948920339345932, 0.04546268284320831, 0.04215903580188751, 0.016199130564928055, -0.004554245620965958, 0.022637486457824707, 0.019765567034482956, 0.02772435173392296, 0.06599784642457962, 0.04565038904547691, 0.03140341117978096, -0.05878989025950432, 0.004744299221783876, -0.019559089094400406, -0.02826870232820511, 0.04114541411399841, -0.04309757053852081, 0.00917418859899044, 0.05631215497851372, 0.006841926835477352, -0.015241824090480804, 0.08138983696699142, -0.07793602347373962, 0.01361815631389618, 0.01705319806933403, 0.00937128160148859, 0.018151285126805305, 0.01607711985707283, 0.04290986433625221, -0.013317825272679329, 0.0067011467181146145, 0.01398418564349413, 0.046288590878248215, -0.03324294462800026, 0.012369903735816479, -0.004885079804807901, 0.047565001994371414, 0.025509407743811607, -0.0010329760843887925, 0.010605456307530403, -0.026260236278176308, -0.022881506010890007, 0.08739646524190903, 0.017475539818406105, 0.026635650545358658, 0.02977035939693451, 0.004148328676819801, 0.03528895229101181, -0.015260593965649605, 0.004411119036376476, 0.01422820519655943, 0.008399896323680878, 0.03938096761703491, 0.003378729335963726, 0.06123008579015732, -0.020516395568847656, 0.024852432310581207, -0.06126762554049492, 0.04174607992172241, -0.007611526641994715, 0.008869164623320103, 0.010352051816880703, 0.00742381950840354, 0.11930669099092484, -0.023707417771220207, 0.00876123271882534, -0.01649007573723793, -0.0021750570740550756, -0.007376892492175102, 0.0043618460185825825, -0.005617137532681227, 0.017644476145505905, 0.006358581129461527, 0.027292625978589058, 0.03044610656797886, -0.004028665367513895, -0.01778525672852993, -0.03485722467303276, 0.021285995841026306, -0.004596479702740908, 0.011421982198953629, -0.048728786408901215, -0.03669675439596176, 0.002735832240432501, 0.023857584223151207, 0.022712569683790207, 0.03964375704526901, -0.04242182523012161, -0.026616878807544708, 0.01748492382466793, -0.010192500427365303, -0.03605855256319046, -0.018395304679870605, -0.051356688141822815, -0.019615400582551956, 0.023500939831137657, -0.02886936627328396, 0.0040755923837423325, 0.025584489107131958, -0.010520988143980503, 0.048090580850839615, -0.010361436754465103, -0.024401934817433357, -0.06216862052679062, 0.016142819076776505, 0.06438356637954712, 0.018320221453905106, 0.011131036095321178, -0.01727844588458538, -0.13935381174087524, 0.01420004852116108, -0.04565038904547691, 0.015579696744680405, 0.024477018043398857, -0.010154958814382553, 0.0039160409942269325, 0.04366069287061691, 0.054510168731212616, -0.06002875789999962, -0.023238150402903557, 0.01797296293079853, -0.006044171284884214, 0.01594572514295578, -0.04257199168205261, -0.0005921575357206166, 0.044449061155319214, 0.006508746650069952, 0.054697874933481216, -0.014631775207817554, 0.02916969731450081, -0.020065898075699806, 0.012304206378757954, 0.049291908740997314, -0.044298894703388214, 0.0002157166163669899, -0.012369903735816479, 0.05462279170751572, 0.026279006153345108, 0.024364393204450607, -0.048954036086797714, -0.0024448861368000507, 0.024739807471632957, 0.012473142705857754, 0.051506850868463516, 0.010342665947973728, -0.07313071936368942, -0.06190583109855652, -0.023388314992189407, 0.021229682490229607, 0.020047128200531006, -0.011872479692101479, -0.06483406573534012, -0.046063344925642014, 0.008780003525316715, -0.07376892864704132, 0.0020999740809202194, -0.00446508452296257, -0.04332282021641731, -0.01562662422657013, 0.0025129299610853195, -0.009995407424867153, 0.00006357114762067795, 0.08529414981603622, -0.021530015394091606, -0.048616163432598114, -0.03177882730960846, 0.004634021315723658, -0.02840009704232216, -0.053871963173151016, -0.08446823805570602, -0.0037846462801098824, 0.09250210225582123, 0.04613842815160751, 0.017850954085588455, 0.012679620645940304, 0.048503536731004715, -0.0032144857104867697, -0.01435959991067648, -0.049667321145534515, 0.0067433807998895645, 0.008489057421684265, 0.044599227607250214, -0.017700787633657455, -0.0015779135283082724, -0.011741084977984428, 0.008038559928536415, -0.007090638857334852, -0.05702544376254082, 0.006316347047686577, 0.06363273411989212, -0.011478294618427753, 0.0067433807998895645, 0.03863013908267021, -0.03176005557179451, 0.03568313643336296, -0.02809976600110531, -0.0009631725260987878, 0.010661768727004528, 0.0009121395996771753, 0.012707776390016079, -0.048428453505039215, 0.00793532095849514, -0.011318743228912354, 0.002562203211709857, -0.004516704007983208, 0.0010282833827659488, 0.06858820468187332, -0.017344145104289055, -0.06603538990020752, -0.03692200407385826, 0.03665921464562416, -0.005527976900339127, 0.012501298449933529, -0.047076962888240814, -0.02838132716715336, 0.013139503076672554, -0.01611466147005558, 0.0050305528566241264, 0.01891149953007698, -0.013055034913122654, -0.019559089094400406, 0.004784186836332083, 0.024439476430416107, -0.0034561585634946823, 0.03855505585670471, -0.022355925291776657, -0.046701546758413315, -0.01515735499560833, 0.01870502158999443, 0.03572067618370056, -0.04260953143239021, 0.007320580538362265, 0.019953273236751556, -0.008521906100213528, 0.03185391053557396, -0.021961741149425507, 0.014415912330150604, -0.006489975843578577, 0.011797396466135979, 0.007381584960967302, 0.09986022114753723, 0.02793082967400551, -0.03067135438323021, -0.03252965584397316, 0.03305523470044136, 0.02984544262290001, -0.024927513673901558, -0.07711011171340942, 0.00938066653907299, 0.006902931723743677, 0.026147611439228058, 0.006199029739946127, -0.03335556760430336, -0.011431368067860603, -0.023350773379206657, 0.006508746650069952, 0.03418147936463356, -0.009760773740708828, 0.02992052584886551, 0.050042737275362015, -0.01481009740382433, -0.051431771367788315, -0.04302248731255531, -0.002672481117770076, -0.03020208701491356, 0.009798315353691578, -0.024777349084615707, -0.07876193523406982, -0.021004434674978256, 0.010248812846839428, -0.0035054318141192198, -0.03172251582145691, 0.017625704407691956, -0.004875694401562214, -0.012689005583524704, -0.01645253412425518, -0.011947562918066978, -0.03053995966911316, 0.0067011467181146145, -0.07763569056987762, 0.019840650260448456, 0.007442589849233627, -0.06261911988258362, 0.0006945165805518627, -0.014885179698467255, 0.012416830286383629, 0.010736851021647453, 0.024101603776216507, 0.018676865845918655, -0.07662207633256912, -0.09160111099481583, 0.007869623601436615, -0.009995407424867153, 0.03174128383398056, 0.006856005173176527, 0.03147849440574646, 0.01838591881096363, 0.044186271727085114, -0.015917569398880005, -0.008826930075883865, 0.06629817932844162, -0.07763569056987762, -0.03421901911497116, 0.004983625840395689, -0.015973880887031555, -0.009474520571529865, -0.05725069344043732, -0.00829196535050869, 0.014631775207817554, -0.023444628342986107, -0.010933944024145603, -0.024007748812437057, -0.011271816678345203, -0.02915092557668686, 0.04054475203156471, -0.03117816336452961, -0.00022466204245574772, -0.007081253454089165, -0.024814890697598457, 0.03570190817117691, -0.008690842427313328, 0.04170853644609451, 0.03194776177406311, 0.002227849792689085, 0.0018078548600897193, -0.03714725375175476, 0.03645273670554161, 0.010990255512297153, 0.02772435173392296, -0.051394227892160416, 0.03968130052089691, -0.019690483808517456, -0.002632593270391226, 0.03900555521249771, -0.012557610869407654, -0.03938096761703491, 0.03983146697282791, 0.03448181226849556, -0.06284436583518982, 0.05837693437933922, 0.01699688658118248, 0.08446823805570602, -0.09039977937936783, 0.04358560964465141, -0.046401217579841614, -0.025284158065915108, -0.019765567034482956, 0.013712010346353054, 0.01630236953496933, 0.03564559668302536, -0.053871963173151016, 0.03022085689008236, -0.08003834635019302, -0.0020096399821341038, -0.04253444820642471, -0.00017597549594938755, -0.07451975345611572, -0.06562243402004242, 0.051581934094429016, 0.11382564157247543, 0.05315867438912392, 0.03498861938714981, -0.03222932294011116, 0.03949359059333801, 0.03731618821620941, 0.07177922874689102, 0.05818922817707062, -0.046513840556144714, -0.03776668757200241, 0.050155360251665115, 0.06614801287651062, 0.02864411659538746, -0.03093414381146431, -0.02862534672021866, -0.048653703182935715, -0.03542034700512886, -0.07801111042499542, 0.00871430616825819, -0.013514917343854904, -0.06284436583518982, -0.02971404790878296, -0.03911817818880081, -0.03371221199631691, -0.0034561585634946823, 0.07245497405529022, -0.03682814911007881, 0.026372859254479408, 0.024401934817433357, -0.017926037311553955, 0.0061896443367004395, -0.012914254330098629, 0.011581533588469028, 0.09835856407880783, 0.021698951721191406, 0.013749551959335804, -0.01572047732770443, 0.03410639613866806, 0.050117820501327515, -0.025359241291880608, -0.01893026940524578, 0.07981309294700623, 0.03136587142944336, 0.01840469054877758, -0.014218819327652454, -0.06731180101633072, 0.03241703286767006, 0.012839172035455704, 0.05867726728320122, 0.02817484922707081, -0.02905707247555256, 0.008902013301849365, 0.020535167306661606, -0.01665901206433773, -0.012247893959283829, -0.003876153379678726, -0.023087983950972557, 0.0012541186297312379, -0.03463197499513626, -0.0033599587623029947, 0.03979392349720001, 0.050192903727293015, -0.03228563815355301, 0.06280682235956192, -0.045612845569849014, -0.00905217882245779, -0.005926854442805052, 0.020291147753596306, 0.01686549000442028, -0.020347459241747856, 0.02856903336942196, 0.05589919909834862, -0.025284158065915108, -0.013627542182803154, 0.024064062163233757, -0.052069973200559616, 0.046701546758413315, -0.02802468277513981, -0.0020495278295129538, 0.007236111909151077, -0.013402293436229229, -0.025021368637681007, 0.0035312415566295385, 0.025227846577763557, -0.06051679700613022, -0.03420025110244751, -0.051206521689891815, -0.024401934817433357, -0.03466951847076416, -0.052633095532655716, -0.02916969731450081, 0.014256360940635204, 0.022431008517742157, 0.015861257910728455, 0.026185153052210808, 0.01562662422657013, 0.019596630707383156, -0.03354327380657196, 0.03121570497751236, -0.03523264080286026, -0.015711091458797455, 0.001689364667981863, 0.0019943888764828444, 0.017850954085588455, 0.047940414398908615, -0.026034986600279808, -0.03498861938714981, 0.02900076098740101, 0.05811414495110512, -0.014753784984350204, -0.017100125551223755, -0.025209074839949608, -0.026635650545358658, 0.0047912257723510265, 0.04204640910029411, -0.016987500712275505, 0.03057750128209591, 0.025922363623976707, -0.06228124350309372, 0.048165664076805115, 0.08018851280212402, 0.044937100261449814, 0.006489975843578577, -0.013852790929377079, -0.022243302315473557, -0.06310715526342392, -0.06873837113380432, 0.03534526377916336, -0.01709073968231678, -0.04043212905526161, -0.024833660572767258, 0.04073245823383331, 0.004321957938373089, -0.01716582290828228, -0.03741004317998886, 0.0007537616766057909, 0.0025340470019727945, -0.03298015147447586, -0.044674310833215714, 0.0017609280766919255, -0.012632694095373154, 0.019746795296669006, -0.02836255542933941, 0.052558012306690216, 0.02789328806102276, -0.05473541468381882, 0.0003818668192252517, 0.07204201817512512, -0.05713806673884392, 0.022393466904759407, -0.046776629984378815, 0.02911338396370411, 0.005344962235540152, 0.020535167306661606, -0.011440753005445004, 0.04264707490801811, 0.03502616286277771, 0.012679620645940304, 0.044937100261449814, -0.00392073392868042, -0.016931189224123955 ]
730,208
mmengine.fileio.backends.petrel_backend
PetrelBackend
Petrel storage backend (for internal usage). PetrelBackend supports reading and writing data to multiple clusters. If the file path contains the cluster name, PetrelBackend will read data from specified cluster or write data to it. Otherwise, PetrelBackend will access the default cluster. Args: path_mapping (dict, optional): Path mapping dict from local path to Petrel path. When ``path_mapping={'src': 'dst'}``, ``src`` in ``filepath`` will be replaced by ``dst``. Defaults to None. enable_mc (bool, optional): Whether to enable memcached support. Defaults to True. conf_path (str, optional): Config path of Petrel client. Default: None. `New in version 0.3.3`. Examples: >>> backend = PetrelBackend() >>> filepath1 = 'petrel://path/of/file' >>> filepath2 = 'cluster-name:petrel://path/of/file' >>> backend.get(filepath1) # get data from default cluster >>> client.get(filepath2) # get data from 'cluster-name' cluster
class PetrelBackend(BaseStorageBackend): """Petrel storage backend (for internal usage). PetrelBackend supports reading and writing data to multiple clusters. If the file path contains the cluster name, PetrelBackend will read data from specified cluster or write data to it. Otherwise, PetrelBackend will access the default cluster. Args: path_mapping (dict, optional): Path mapping dict from local path to Petrel path. When ``path_mapping={'src': 'dst'}``, ``src`` in ``filepath`` will be replaced by ``dst``. Defaults to None. enable_mc (bool, optional): Whether to enable memcached support. Defaults to True. conf_path (str, optional): Config path of Petrel client. Default: None. `New in version 0.3.3`. Examples: >>> backend = PetrelBackend() >>> filepath1 = 'petrel://path/of/file' >>> filepath2 = 'cluster-name:petrel://path/of/file' >>> backend.get(filepath1) # get data from default cluster >>> client.get(filepath2) # get data from 'cluster-name' cluster """ def __init__(self, path_mapping: Optional[dict] = None, enable_mc: bool = True, conf_path: Optional[str] = None): try: from petrel_client import client except ImportError: raise ImportError('Please install petrel_client to enable ' 'PetrelBackend.') self._client = client.Client(conf_path=conf_path, enable_mc=enable_mc) assert isinstance(path_mapping, dict) or path_mapping is None self.path_mapping = path_mapping def _map_path(self, filepath: Union[str, Path]) -> str: """Map ``filepath`` to a string path whose prefix will be replaced by :attr:`self.path_mapping`. Args: filepath (str or Path): Path to be mapped. """ filepath = str(filepath) if self.path_mapping is not None: for k, v in self.path_mapping.items(): filepath = filepath.replace(k, v, 1) return filepath def _format_path(self, filepath: str) -> str: """Convert a ``filepath`` to standard format of petrel oss. If the ``filepath`` is concatenated by ``os.path.join``, in a Windows environment, the ``filepath`` will be the format of 's3://bucket_name\\image.jpg'. By invoking :meth:`_format_path`, the above ``filepath`` will be converted to 's3://bucket_name/image.jpg'. Args: filepath (str): Path to be formatted. """ return re.sub(r'\\+', '/', filepath) def _replace_prefix(self, filepath: Union[str, Path]) -> str: filepath = str(filepath) return filepath.replace('petrel://', 's3://') def get(self, filepath: Union[str, Path]) -> bytes: """Read bytes from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns: bytes: Return bytes read from filepath. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.get(filepath) b'hello world' """ filepath = self._map_path(filepath) filepath = self._format_path(filepath) filepath = self._replace_prefix(filepath) value = self._client.Get(filepath) return value def get_text( self, filepath: Union[str, Path], encoding: str = 'utf-8', ) -> str: """Read text from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Returns: str: Expected text reading from ``filepath``. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.get_text(filepath) 'hello world' """ return str(self.get(filepath), encoding=encoding) def put(self, obj: bytes, filepath: Union[str, Path]) -> None: """Write bytes to a given ``filepath``. Args: obj (bytes): Data to be saved. filepath (str or Path): Path to write data. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.put(b'hello world', filepath) """ filepath = self._map_path(filepath) filepath = self._format_path(filepath) filepath = self._replace_prefix(filepath) self._client.put(filepath, obj) def put_text( self, obj: str, filepath: Union[str, Path], encoding: str = 'utf-8', ) -> None: """Write text to a given ``filepath``. Args: obj (str): Data to be written. filepath (str or Path): Path to write data. encoding (str): The encoding format used to encode the ``obj``. Defaults to 'utf-8'. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.put_text('hello world', filepath) """ self.put(bytes(obj, encoding=encoding), filepath) def exists(self, filepath: Union[str, Path]) -> bool: """Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns: bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.exists(filepath) True """ if not (has_method(self._client, 'contains') and has_method(self._client, 'isdir')): raise NotImplementedError( 'Current version of Petrel Python SDK has not supported ' 'the `contains` and `isdir` methods, please use a higher' 'version or dev branch instead.') filepath = self._map_path(filepath) filepath = self._format_path(filepath) filepath = self._replace_prefix(filepath) return self._client.contains(filepath) or self._client.isdir(filepath) def isdir(self, filepath: Union[str, Path]) -> bool: """Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a directory. Returns: bool: Return ``True`` if ``filepath`` points to a directory, ``False`` otherwise. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/dir' >>> backend.isdir(filepath) True """ if not has_method(self._client, 'isdir'): raise NotImplementedError( 'Current version of Petrel Python SDK has not supported ' 'the `isdir` method, please use a higher version or dev' ' branch instead.') filepath = self._map_path(filepath) filepath = self._format_path(filepath) filepath = self._replace_prefix(filepath) return self._client.isdir(filepath) def isfile(self, filepath: Union[str, Path]) -> bool: """Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns: bool: Return ``True`` if ``filepath`` points to a file, ``False`` otherwise. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.isfile(filepath) True """ if not has_method(self._client, 'contains'): raise NotImplementedError( 'Current version of Petrel Python SDK has not supported ' 'the `contains` method, please use a higher version or '
(path_mapping: Optional[dict] = None, enable_mc: bool = True, conf_path: Optional[str] = None)
[ 0.028220580890774727, -0.0860530436038971, -0.10166884958744049, 0.03559240326285362, 0.0193640124052763, -0.00938609428703785, -0.02786756493151188, 0.06541194021701813, 0.007174548227339983, -0.052204959094524384, 0.017079785466194153, -0.005627503618597984, -0.006551577243953943, 0.005225168075412512, -0.009282265789806843, -0.016436047852039337, -0.0010914969025179744, 0.011452281847596169, -0.0058351606130599976, -0.037606675177812576, -0.0018195940647274256, 0.032872095704078674, 0.10249947756528854, -0.0014652793761342764, 0.02429586462676525, 0.013092771172523499, 0.018190748989582062, -0.03349506855010986, 0.046432096511125565, 0.028802020475268364, 0.03756514564156532, -0.025064194574952126, 0.020817609503865242, 0.04950542002916336, -0.0050278943963348866, -0.0022621629759669304, 0.00792730413377285, 0.018948698416352272, -0.028677426278591156, -0.031003184616565704, -0.04205053299665451, 0.01811807043850422, 0.038686491549015045, -0.041012249886989594, 0.055236753076314926, 0.09178438037633896, -0.025126492604613304, 0.008197258226573467, 0.007148590870201588, -0.008539892733097076, 0.0028656660579144955, 0.04335877299308777, -0.02057880535721779, 0.017214762046933174, -0.002353013027459383, 0.013331577181816101, -0.0030577487777918577, 0.06383375078439713, -0.08003099262714386, 0.008571040816605091, 0.021575558930635452, -0.02977800741791725, 0.007148590870201588, -0.010465910658240318, 0.0033692342694848776, -0.028781255707144737, -0.05012838914990425, -0.05399081110954285, 0.0015950649976730347, -0.028781255707144737, -0.04281886667013168, -0.055984318256378174, 0.04028544947504997, -0.045809127390384674, 0.005964946001768112, -0.001422450179234147, 0.055195219814777374, 0.016103796660900116, 0.03521861881017685, 0.02077607810497284, -0.048633258789777756, -0.04481237381696701, 0.018190748989582062, -0.07421659678220749, 0.04493696615099907, 0.006904594134539366, 0.038354240357875824, -0.036485329270362854, -0.025251086801290512, 0.0023828635457903147, 0.007963644340634346, 0.0067280856892466545, 0.018014241009950638, -0.005357549525797367, 0.0044905818067491055, -0.07089408487081528, -0.01582346111536026, -0.04323418065905571, -0.010476293973624706, 0.0026489240117371082, -0.07355209439992905, 0.03370272368192673, -0.006670979782938957, 0.021388666704297066, 0.05399081110954285, -0.03700447082519531, -0.01841917261481285, -0.03629843518137932, 0.024794241413474083, -0.0103724654763937, -0.058310072869062424, -0.010320550762116909, 0.02645549736917019, -0.020391913130879402, 0.020568421110510826, 0.011223859153687954, -0.029881836846470833, -0.05216342955827713, -0.0013406852958723903, -0.03598695248365402, -0.0016924042720347643, 0.019457457587122917, -0.0024101187009364367, 0.008903292007744312, 0.05914070084691048, 0.0013121324591338634, 0.058019354939460754, 0.01144189853221178, -0.03690064325928688, -0.04335877299308777, -0.011140796355903149, 0.04713812842965126, -0.014889003708958626, 0.035924654453992844, 0.020599570125341415, 0.052204959094524384, 0.017256293445825577, 0.02226082608103752, -0.04730425402522087, 0.05548594146966934, 0.05311864987015724, -0.002902006031945348, -0.015771545469760895, -0.009469157084822655, 0.020506124943494797, -0.012718988582491875, -0.039704009890556335, -0.11794915050268173, -0.02045421116054058, 0.0036781239323318005, 0.022426951676607132, -0.061051145195961, -0.0060168602503836155, 0.03820887953042984, 0.004031140822917223, -0.0033043413423001766, -0.04418940097093582, -0.011338070034980774, -0.006613874342292547, 0.022468483075499535, -0.019083674997091293, -0.053617026656866074, 0.04663975164294243, -0.001976634608581662, -0.03154309093952179, 0.015553506091237068, -0.017578162252902985, -0.03029715083539486, -0.013871485367417336, 0.03611154481768608, 0.04001549631357193, 0.0050590429455041885, -0.07301218807697296, -0.019935067743062973, 0.04302652180194855, 0.014961684122681618, 0.04992073401808739, 0.013321193866431713, -0.017412036657333374, -0.02022578753530979, 0.005492526572197676, -0.031210841611027718, -0.003948078025132418, 0.05731332302093506, 0.02984030544757843, 0.060220517218112946, 0.013051239773631096, 0.03278903290629387, 0.0594729520380497, 0.06794536113739014, -0.030878590419888496, 0.01706940308213234, -0.0007702775183133781, 0.04431399703025818, 0.043151117861270905, -0.06437365710735321, 0.07650082558393478, -0.05041911080479622, -0.024731943383812904, 0.07529641687870026, -0.04132373631000519, -0.008690443821251392, 0.039870135486125946, 0.012573628686368465, -0.011545727029442787, 0.028116753324866295, 0.02790909633040428, 0.022966859862208366, -0.059929799288511276, 0.051748115569353104, -0.043151117861270905, -0.028179049491882324, -0.024773474782705307, 0.0074600763618946075, 0.056441161781549454, -0.012760519981384277, -0.047221191227436066, 0.06175718083977699, -0.027452250942587852, 0.04097071662545204, 0.0720984935760498, 0.02876048907637596, 0.006359494291245937, -0.03158462420105934, -0.020350381731987, -0.02051650732755661, 0.008565849624574184, 0.023195281624794006, -0.006042817607522011, -0.016622940078377724, -0.0023179708514362574, 0.021087564527988434, 0.05461378023028374, 0.03854113072156906, 0.0462244413793087, -0.03764820843935013, 0.015937671065330505, 0.04763650521636009, 0.043441835790872574, 0.009178437292575836, 0.013238131068646908, -0.0021297817584127188, -0.02977800741791725, -0.007205696776509285, -0.08073702454566956, -0.003639188129454851, 0.04221665859222412, -0.008596998639404774, 0.02655932493507862, -0.05328477546572685, 0.035530105233192444, 0.02340293861925602, -0.020142724737524986, 0.019291331991553307, 0.026746217161417007, -0.03374425694346428, -0.0032083000987768173, -0.031460028141736984, 0.002057101810351014, 0.013238131068646908, -0.08032171428203583, -0.014037610962986946, -0.0031018757726997137, 0.015511974692344666, 0.0164464320987463, -0.03814658522605896, 0.014369862154126167, 0.00971834547817707, -0.031896110624074936, 0.019717028364539146, 0.07251381129026413, 0.07243074476718903, -0.03318358212709427, -0.008005175739526749, -0.0009325095452368259, -0.03378578647971153, -0.025001898407936096, 0.020443826913833618, 0.016332220286130905, 0.00702399667352438, -0.043940212577581406, -0.012096017599105835, 0.015127809718251228, -0.0680699497461319, 0.04555993899703026, -0.04036851227283478, -0.06383375078439713, 0.012428268790245056, -0.01933286339044571, -0.014691730029881, -0.029466522857546806, -0.007792327553033829, -0.06358455866575241, -0.02672545053064823, 0.003358851419761777, 0.019249800592660904, -0.07334443926811218, -0.07056183367967606, 0.03866572678089142, -0.1049082949757576, -0.024337396025657654, 0.005523675121366978, 0.045643001794815063, 0.015107044018805027, -0.011358835734426975, -0.00840491522103548, 0.031210841611027718, -0.028573598712682724, -0.00011599587742239237, 0.03621537238359451, -0.004475007299333811, -0.06944049149751663, -0.05149892717599869, 0.05295252427458763, 0.03276826813817024, 0.05029451474547386, 0.002699540462344885, 0.048176415264606476, 0.013684594072401524, 0.0014523008139804006, -0.03673451766371727, 0.07297065854072571, -0.026891576126217842, 0.05137433111667633, 0.028511300683021545, -0.0642075315117836, 0.03567546606063843, 0.022198529914021492, 0.015325083397328854, 0.05627503618597984, 0.005100573878735304, 0.04115761071443558, 0.006063583306968212, 0.0034315313678234816, -0.0207449309527874, -0.011940275318920612, -0.020641101524233818, -0.07346903532743454, 0.02209470048546791, 0.016789065673947334, 0.0861361101269722, -0.02491883561015129, 0.010450336150825024, 0.022053169086575508, -0.007205696776509285, 0.014608667232096195, 0.040721528232097626, -0.014847472310066223, 0.027452250942587852, 0.04138603061437607, 0.028179049491882324, -0.008358192630112171, -0.024877304211258888, 0.02531338296830654, -0.007839050143957138, -0.07301218807697296, -0.02514725737273693, -0.01373650785535574, -0.02668391913175583, -0.011732618324458599, -0.021035650745034218, -0.058310072869062424, -0.00340557424351573, 0.027265358716249466, -0.037835098803043365, -0.019384777173399925, 0.033827319741249084, -0.015449677594006062, -0.007216079626232386, -0.0013951952569186687, 0.02060995250940323, -0.05793629214167595, -0.03204146772623062, -0.04352489858865738, 0.03633996844291687, -0.015179723501205444, 0.008539892733097076, -0.030650166794657707, -0.03584159165620804, 0.0540323406457901, 0.031335435807704926, 0.07226461917161942, -0.011005818843841553, 0.05340937152504921, 0.036194607615470886, 0.014650198630988598, 0.047055065631866455, -0.018471086397767067, 0.008140153251588345, -0.0011044754646718502, 0.030587870627641678, -0.0021557388827204704, 0.036256905645132065, -0.017578162252902985, -0.037835098803043365, -0.04867479205131531, -0.017017487436532974, 0.006385451648384333, 0.028282878920435905, 0.0012757924851030111, 0.04431399703025818, -0.06424906104803085, 0.0034081698395311832, 0.08356115967035294, 0.0012037614360451698, 0.053492434322834015, 0.07728992402553558, 0.028116753324866295, -0.007283567916601896, 0.041012249886989594, -0.03561316803097725, -0.006894211284816265, -0.009811791591346264, -0.010725482366979122, -0.029383460059762, 0.047678038477897644, -0.05212189629673958, -0.010429570451378822, 0.02248924970626831, 0.05041911080479622, -0.02107718214392662, -0.007974027656018734, 0.02425433322787285, 0.005020107142627239, 0.03141849860548973, -0.015366614796221256, 0.008622955530881882, -0.039247166365385056, -0.02747301571071148, 0.033765021711587906, 0.037835098803043365, -0.013227748684585094, -0.011545727029442787, -0.04302652180194855, 0.036589156836271286, 0.0018390619661659002, -0.012199846096336842, -0.005902648903429508, -0.01568848267197609, -0.029964899644255638, 0.026912342756986618, -0.03233218938112259, -0.01421411894261837, -0.04356643185019493, 0.03935099393129349, -0.0017611905932426453, -0.08310431241989136, 0.013290045782923698, 0.08846186846494675, 0.023693658411502838, -0.026704685762524605, 0.011244624853134155, 0.039641715586185455, 0.04950542002916336, -0.05494603142142296, 0.002855283208191395, 0.06661635637283325, -0.030546339228749275, -0.06250474601984024, -0.025728696957230568, 0.007356247864663601, 0.050045326352119446, 0.07853586226701736, -0.02826211228966713, 0.03386884927749634, -0.04124067351222038, 0.031563859432935715, 0.04913163557648659, -0.02531338296830654, -0.031127778813242912, 0.03137696534395218, -0.03831271082162857, -0.048467133194208145, 0.03154309093952179, 0.041012249886989594, 0.03594541922211647, 0.024046676233410835, 0.036381497979164124, -0.054281529039144516, -0.05328477546572685, -0.016986340284347534, -0.07836973667144775, -0.016498345881700516, 0.021741684526205063, 0.019156355410814285, -0.06379222124814987, 0.03777280077338219, 0.046265970915555954, 0.028739724308252335, -0.04963001236319542, 0.01006097998470068, 0.028552832081913948, 0.00840491522103548, 0.031563859432935715, -0.05594278499484062, 0.038686491549015045, -0.024939600378274918, 0.030712464824318886, -0.029092740267515182, -0.01861644722521305, 0.01531470101326704, -0.013892251066863537, -0.02140943333506584, 0.012282908894121647, 0.028116753324866295, -0.019249800592660904, -0.030587870627641678, 0.0022764394525438547, -0.013892251066863537, -0.008233598433434963, -0.038229648023843765, 0.030670933425426483, 0.028220580890774727, -0.01723552867770195, -0.04639056324958801, 0.07097715139389038, -0.028179049491882324, 0.01378842256963253, -0.0309201218187809, -0.04369102418422699, 0.017505481839179993, -0.01676829904317856, 0.032249126583337784, -0.058642324060201645, -0.0076469676569104195, -0.03528091683983803, -0.00950549729168415, -0.06217249482870102, 0.008731975220143795, 0.05116667598485947, -0.011265390552580357, 0.016602173447608948, -0.029238099232316017, -0.03247755020856857, 0.04178057983517647, 0.05527828261256218, -0.027099233120679855, -0.026891576126217842, 0.042237427085638046, -0.013964930549263954, 0.0193640124052763, 0.012480183504521847, -0.02340293861925602, -0.06566113233566284, 0.01814921759068966, -0.020101193338632584, 0.006551577243953943, -0.04717966169118881, 0.05486296862363815, -0.01500321552157402, 0.039371758699417114, -0.024960367009043694, 0.03266444057226181, -0.0023270559031516314, 0.004656707402318716, 0.030650166794657707, 0.029591117054224014, -0.08426719158887863, -0.033661194145679474, -0.02475271001458168, -0.0004899406339973211, 0.0009305627318099141, -0.05108361318707466, 0.029175803065299988, 0.06267087161540985, 0.0032212785445153713, 0.015771545469760895, 0.02853206731379032, 0.016487963497638702, -0.06674094498157501, 0.02809598669409752, 0.05540287867188454, 0.013123920187354088, -0.014868238009512424, 0.006042817607522011, 0.01373650785535574, -0.029009677469730377, -0.007065528072416782, 0.03544704243540764, -0.036028482019901276, -0.0018312748288735747, 0.02130560390651226, 0.017391270026564598, 0.015678100287914276, -0.008898100815713406, 0.021783215925097466, 0.03013102523982525, 0.0806124359369278, -0.029071973636746407, 0.008280321024358273, -0.06399987637996674, 0.0007118740468285978, 0.049380823969841, -0.029175803065299988, 0.02944575622677803, 0.0043036905117332935, 0.00027482100995257497, -0.011659937910735607, 0.08111081272363663, 0.0022738436236977577, -0.04792722687125206, 0.007158973719924688, -0.03629843518137932, -0.027161531150341034, -0.035571638494729996, -0.019447075203061104, -0.03469947725534439, 0.0066917454823851585, 0.03725365921854973, -0.033432770520448685, -0.03492790088057518, -0.0006696936907246709, -0.021617090329527855, -0.03409727290272713, 0.03143926337361336, -0.02442045882344246, -0.040783826261758804, 0.04076306149363518, 0.0438571497797966, -0.04709659889340401, -0.004835811443626881, -0.03226989135146141, 0.007974027656018734, 0.01910443976521492, -0.06246321275830269, -0.004937044344842434, 0.02288379706442356, -0.055693596601486206, -0.041635219007730484, -0.052371084690093994, -0.010901990346610546, -0.05070982873439789, 0.005726140923798084, 0.01562618650496006, 0.04124067351222038, -0.05743791535496712, 0.020007748156785965, -0.02707846835255623, 0.013508085161447525, 0.018990229815244675, -0.01946783997118473, -0.013840336352586746, -0.048633258789777756, -0.008005175739526749, -0.018356874585151672, 0.008129769936203957, -0.007480842061340809, -0.0571887269616127, 0.08713286370038986, -0.011088881641626358, -0.017349738627672195, 0.06520428508520126, -0.021284839138388634, -0.020142724737524986, -0.0023608000483363867, 0.07031264901161194, 0.028054455295205116, -0.05623350664973259, -0.021025266498327255, 0.009458774700760841, 0.006525619886815548, -0.043483369052410126, 0.02724459394812584, 0.00874754972755909, -0.0051031699404120445, -0.0059597548097372055, 0.031044716015458107, -0.043940212577581406, 0.048633258789777756, 0.04119914025068283, 0.002415310125797987, 0.009754685685038567, -0.036713749170303345, -0.032519079744815826, 0.03345353528857231, 0.0005609982763417065, 0.045643001794815063, -0.011961041018366814, -0.011099264957010746, 0.013404256664216518, -0.012615160085260868, 0.019031761214137077, -0.024046676233410835, 0.11844752728939056, -0.004311477765440941, 0.04510309174656868, 0.06150799244642258, -0.00788058154284954, 0.016404900699853897, -0.03561316803097725, 0.01729782484471798, -0.0016742342850193381, 0.028449004516005516, 0.023693658411502838, -0.031044716015458107, -0.011244624853134155, 0.03119007498025894, -0.03295515850186348, -0.0060168602503836155, 0.008628146722912788, 0.018574915826320648, -0.008742357604205608, -0.02048535831272602, -0.03928869590163231, -0.0043659876100718975, -0.026517793536186218, -0.03737825155258179, -0.039371758699417114, -0.01406875904649496, -0.03332894295454025, -0.02300839126110077, 0.06416600197553635, 0.10947675257921219, -0.06487203389406204, 0.032643675804138184, 0.0059909033589065075, 0.01769237220287323, -0.027514547109603882, -0.013684594072401524, -0.025001898407936096, -0.009889663197100163, -0.023693658411502838, 0.02481500618159771, -0.006561960093677044, 0.03615307807922363, -0.06773769855499268, -0.029694944620132446, -0.015740398317575455, -0.012085635215044022, 0.07691613584756851, -0.007143399678170681, 0.012199846096336842, -0.038686491549015045, -0.03424263373017311, -0.01426603365689516, -0.05602584779262543, 0.06358455866575241, -0.03413880616426468, 0.017048636451363564, 0.061466459184885025, 0.01480594091117382, -0.000258760032011196, -0.07400894165039062, -0.06902517378330231, 0.03820887953042984, -0.0023802679497748613, 0.06595185399055481, 0.021284839138388634, -0.03278903290629387, 0.03141849860548973, 0.039371758699417114, -0.014058376662433147, -0.039704009890556335, 0.01969626359641552, -0.029757242649793625, -0.03499019891023636, 0.017619693651795387, 0.03349506855010986, -0.01406875904649496, -0.00603243475779891, -0.05104207992553711, -0.012957794591784477, 0.003184938570484519, 0.011462664231657982, 0.0492977611720562, 0.02475271001458168, -0.04435552656650543, 0.05183117836713791 ]
730,209
mmengine.fileio.backends.petrel_backend
__init__
null
def __init__(self, path_mapping: Optional[dict] = None, enable_mc: bool = True, conf_path: Optional[str] = None): try: from petrel_client import client except ImportError: raise ImportError('Please install petrel_client to enable ' 'PetrelBackend.') self._client = client.Client(conf_path=conf_path, enable_mc=enable_mc) assert isinstance(path_mapping, dict) or path_mapping is None self.path_mapping = path_mapping
(self, path_mapping: Optional[dict] = None, enable_mc: bool = True, conf_path: Optional[str] = None)
[ 0.05660098046064377, -0.05196279287338257, -0.0033490171190351248, 0.007852868176996708, -0.04860670492053032, 0.00335844443179667, -0.0013374857371672988, 0.0905766561627388, -0.03026135079562664, -0.006971423514187336, 0.03250502794981003, 0.06139000505208969, -0.017911702394485474, 0.044684987515211105, -0.02090955711901188, -0.02239905670285225, -0.013160387985408306, 0.0009674676693975925, -0.025849414989352226, -0.04453415051102638, 0.0002775135508272797, 0.03633247688412666, 0.039179492741823196, 0.087409108877182, 0.0033843691926449537, 0.04400622472167015, -0.03902865946292877, 0.002672614762559533, 0.06316231936216354, -0.03610622137784958, 0.02492554858326912, 0.009983417578041553, -0.012217666953802109, 0.07010074704885483, -0.002493497682735324, 0.006429358851164579, 0.03005395270884037, -0.008734311908483505, -0.08062151819467545, -0.03084583766758442, 0.0390663668513298, 0.015781152993440628, 0.03324035182595253, -0.008583476766943932, 0.03791624680161476, 0.07549311220645905, -0.029903117567300797, 0.045514579862356186, 0.028583306819200516, 0.011246664449572563, -0.016214804723858833, 0.012066831812262535, -0.02745204232633114, 0.060635827481746674, -0.07025158405303955, 0.029733426868915558, 0.006575480569154024, 0.07187306880950928, -0.080319844186306, 0.006297377869486809, -0.09940052777528763, -0.030902400612831116, 0.023700011894106865, -0.015366355888545513, 0.0540744885802269, -0.03435276076197624, -0.06478380411863327, -0.04442102462053299, 0.039518874138593674, -0.010671604424715042, 0.01912781409919262, 0.018741298466920853, 0.012557046487927437, -0.03361743688583374, 0.06632986664772034, -0.00036736667971126735, -0.022663017734885216, -0.000970413675531745, 0.02468044124543667, 0.019401201978325844, -0.0545647032558918, -0.026094524189829826, -0.04219620302319527, -0.016450485214591026, 0.023586884140968323, 0.01130322739481926, 0.023662302643060684, -0.05807162821292877, 0.03352316468954086, 0.020683303475379944, -0.037444885820150375, 0.01163318008184433, -0.025698579847812653, 0.005675181746482849, 0.030449895188212395, -0.017214089632034302, 0.03489954024553299, -0.011887714266777039, -0.01796826720237732, 0.036615293473005295, -0.0411403551697731, -0.006254955194890499, -0.021701442077755928, 0.013546903617680073, 0.018722442910075188, -0.015903707593679428, 0.020004544407129288, -0.046268757432699203, 0.022776145488023758, -0.03288211673498154, -0.03672841936349869, 0.0550549179315567, 0.029921971261501312, 0.043855391442775726, -0.03861385956406593, 0.054790958762168884, -0.020098816603422165, -0.06863010674715042, 0.06983678787946701, 0.0032217497937381268, -0.03308951482176781, 0.01932578533887863, -0.021135808899998665, 0.026942972093820572, 0.05486637353897095, 0.02417137287557125, 0.03084583766758442, -0.003429148346185684, -0.02666015550494194, -0.012311939150094986, 0.07918858528137207, 0.04008450731635094, 0.007202390115708113, 0.002409831155091524, -0.02628306671977043, 0.034183070063591, -0.025227218866348267, 0.0371055081486702, -0.01845848187804222, 0.05626160278916359, -0.008602331392467022, -0.008088547736406326, -0.010586759075522423, 0.009318798780441284, 0.014734732918441296, -0.010153107345104218, -0.04091409966349602, -0.0355217345058918, -0.0499265156686306, 0.03755801171064377, -0.0059485710225999355, -0.06135229766368866, -0.015715163201093674, 0.019608601927757263, -0.03324035182595253, -0.017044398933649063, -0.02205967716872692, -0.009554479271173477, 0.03520121052861214, 0.0007135221385397017, -0.01656361110508442, -0.015658600255846977, 0.04702293500304222, -0.03284440562129021, -0.03420192748308182, -0.020023398101329803, -0.029582591727375984, -0.12127165496349335, -0.009474348276853561, 0.023794284090399742, -0.0001833887363318354, -0.07021387666463852, -0.007697318680584431, -0.03884011507034302, 0.045891668647527695, 0.012359075248241425, 0.0406501404941082, 0.012349647469818592, 0.0008826227276585996, -0.014678169041872025, 0.026603592559695244, 0.03329691290855408, -0.020475905388593674, 0.07896232604980469, 0.022738436236977577, 0.046268757432699203, 0.02637733891606331, 0.047626275569200516, 0.04815420135855675, 0.0643312931060791, -0.026547029614448547, 0.03621935099363327, 0.01945776678621769, 0.02513294853270054, 0.00491629121825099, -0.047173768281936646, 0.10520768910646439, -0.060296449810266495, -0.053169477730989456, 0.08092319220304489, -0.01213282160460949, -0.03139261528849602, -0.015658600255846977, 0.025019820779561996, 0.027508605271577835, 0.05792079120874405, 0.0033183787018060684, 0.04962484538555145, -0.0010328689822927117, -0.005481923930346966, -0.05079381912946701, -0.05045443773269653, 0.007169394753873348, -0.008536340668797493, 0.01007768977433443, -0.02288927137851715, -0.04147973284125328, 0.04374226555228233, -0.009738310240209103, 0.027301207184791565, 0.06987449526786804, 0.062483564019203186, 0.006994991563260555, -0.04355372115969658, -0.0050482721999287605, 0.022700726985931396, -0.016299650073051453, -0.010209671221673489, -0.04615563154220581, -0.004218677524477243, -0.0003499852609820664, -0.025321491062641144, 0.03925491124391556, -0.03514464572072029, 0.025736289098858833, -0.03940574824810028, 0.04890837520360947, 0.03687925264239311, -0.01809081993997097, 0.014960985630750656, 0.05003964155912399, 0.001622658921405673, -0.010200243443250656, -0.019231513142585754, -0.03746373951435089, 0.032391902059316635, -0.03963200002908707, -0.0515102855861187, 0.06010790541768074, 0.0336928553879261, 0.01397112850099802, -0.0053735109977424145, -0.016921846196055412, 0.046721264719963074, -0.005109549034386873, 0.014631032943725586, -0.01859046146273613, -0.05426303297281265, -0.03216564655303955, 0.0050482721999287605, -0.044684987515211105, 0.01833592727780342, -0.03701123595237732, 0.009163250215351582, 0.051434870809316635, -0.024435333907604218, 0.008225242607295513, -0.008701317012310028, 0.020230798050761223, -0.005741172004491091, 0.09955135732889175, 0.04117806255817413, 0.027923403307795525, 0.03190168738365173, -0.01710096374154091, -0.07387163490056992, -0.03627591207623482, -0.05365969240665436, -0.017129244282841682, 0.02735777013003826, -0.040838684886693954, -0.03582340478897095, 0.04939858987927437, 0.03126063570380211, -0.041705988347530365, -0.03469214215874672, -0.02375657483935356, 0.050190478563308716, 0.008946424350142479, -0.040800973773002625, -0.029695717617869377, 0.04525061696767807, -0.02935633808374405, 0.008347796276211739, 0.02396397292613983, -0.012783300131559372, -0.026754427701234818, -0.006815874483436346, -0.004701822064816952, -0.04811649024486542, 0.02977113611996174, -0.054828666150569916, 0.01850561797618866, 0.02645275741815567, 0.020098816603422165, -0.009945709258317947, 0.016620175912976265, -0.0035116365179419518, 0.03139261528849602, 0.05279238894581795, -0.0039782836101949215, -0.00017234122788067907, -0.059429146349430084, 0.03495610132813454, -0.012274229899048805, 0.047550857067108154, 0.014131391420960426, -0.0221539493650198, 0.04400622472167015, 0.014008836820721626, -0.05000193417072296, 0.036162786185741425, -0.01876015216112137, 0.03461672365665436, 0.0024982113391160965, -0.005529060028493404, 0.0385761521756649, -0.008267665281891823, 0.04811649024486542, 0.019570892676711082, -0.0689694806933403, 0.09050123393535614, 0.00386987067759037, -0.03312722221016884, -0.02769714966416359, -0.031807415187358856, -0.016243087127804756, -0.06832843273878098, -0.08424156904220581, -0.011312654241919518, 0.07752939313650131, -0.016299650073051453, -0.030072806403040886, 0.0018854424124583602, -0.0022483901120722294, 0.020607884973287582, -0.02520836517214775, -0.029714573174715042, -0.01490442268550396, -0.031317200511693954, -0.0016980766085907817, 0.01045477855950594, 0.015404065139591694, 0.03403223678469658, 0.03105323761701584, -0.05746828392148018, -0.008762593381106853, -0.002169437240809202, -0.03448474034667015, 0.009163250215351582, -0.013056688942015171, -0.05007735267281532, -0.010256806388497353, 0.030826983973383904, -0.03167543187737465, 0.0013150960439816117, -0.0036153357941657305, -0.04694751650094986, 0.020400486886501312, 0.03565371781587601, 0.021248936653137207, -0.07956567406654358, -0.03167543187737465, 0.006198391783982515, 0.027923403307795525, 0.022776145488023758, -0.021003829315304756, -0.008833297528326511, -0.05701578035950661, 0.03708665445446968, -0.012047977186739445, 0.03195824846625328, 0.021135808899998665, 0.041291188448667526, -0.04498665779829025, -0.033221494406461716, 0.03288211673498154, -0.0025453472044318914, 0.028055382892489433, -0.004428432788699865, 0.007211817428469658, -0.026396194472908974, 0.014169099740684032, -0.028998104855418205, -0.002181221265345812, -0.024397624656558037, -0.01667673885822296, 0.02024965174496174, 0.012161104008555412, 0.03009166195988655, 0.03829333558678627, -0.05147257819771767, 0.0226441640406847, 0.035502880811691284, 0.03286326304078102, 0.012057404033839703, 0.01866587996482849, 0.05320718511939049, 0.026924118399620056, 0.02901695854961872, 0.0254534725099802, 0.0021564748603850603, -0.06327544897794724, 0.021889986470341682, -0.09917426854372025, -0.01630907692015171, -0.0028446612413972616, -0.03116636350750923, 0.010549050755798817, 0.0005647489451803267, 0.009728883393108845, 0.013367787003517151, 0.027753712609410286, -0.06742341816425323, 0.05893893167376518, 0.011265518143773079, 0.03985825181007385, 0.0018029543571174145, 0.012161104008555412, 0.015611463226377964, 0.003556415904313326, 0.018524471670389175, -0.011039265431463718, -0.04679667949676514, 0.07334370911121368, 0.038519587367773056, -0.011812296696007252, 0.0035540589597076178, -0.015573754906654358, -0.06497234851121902, 0.006141828838735819, -0.041668277233839035, 0.015564327128231525, -0.05339572951197624, 0.04181911423802376, 0.006071124691516161, -0.08582533895969391, -0.022531036287546158, 0.10935565829277039, -0.0003723748668562621, -0.00956390704959631, -0.005481923930346966, 0.010756448842585087, 0.03316493332386017, 0.008475063368678093, -0.020230798050761223, 0.014169099740684032, -0.014565043151378632, 0.011095828376710415, -0.011953704990446568, 0.020928410813212395, -0.008060266263782978, 0.015243802219629288, -0.04325205087661743, 0.028639869764447212, 0.06221960112452507, 0.06889406591653824, 0.07289120554924011, -0.016874710097908974, -0.04981338977813721, 0.02967686392366886, 0.007244812324643135, -0.025491181761026382, 0.009314085356891155, 0.034503597766160965, 0.020664449781179428, 0.0025194224435836077, 0.014668742194771767, -0.04325205087661743, 0.00654248520731926, -0.01668616570532322, 0.010605613701045513, 0.0026089809834957123, 0.03341003879904747, -0.03520121052861214, -0.07394704967737198, 0.014546188525855541, -0.030940109863877296, -0.007353225257247686, -0.014649887569248676, 0.01722351647913456, 0.0447981134057045, -0.01664845645427704, 0.019193803891539574, 0.013697739690542221, 0.011538907885551453, 0.031072091311216354, 0.023247504606842995, 0.041630569845438004, 0.008159251883625984, -0.014423634856939316, -0.005067126359790564, -0.036407891660928726, 0.03693581745028496, 0.028752997517585754, 0.0022719581611454487, -0.056902654469013214, -0.018081393092870712, -0.03944345563650131, 0.00890400167554617, 0.0010316905099898577, 0.026226503774523735, -0.004218677524477243, -0.0025123520754277706, -0.02004225365817547, 0.04902150481939316, -0.04562770575284958, -0.009111400693655014, -0.04276183620095253, -0.0658019408583641, 0.009450780227780342, 0.026056814938783646, 0.024284498766064644, -0.05535658821463585, -0.010445350781083107, -0.059919361025094986, 0.013292369432747364, -0.030374476686120033, 0.049323175102472305, 0.05584680661559105, 0.005972139071673155, -0.01552661880850792, -0.04117806255817413, 0.04615563154220581, -0.0008225242490880191, 0.034918393939733505, -0.01796826720237732, -0.05128403380513191, -0.004572197794914246, -0.030657293274998665, 0.02662244625389576, -0.003803880186751485, -0.02132435329258442, -0.04178140312433243, 0.03401338309049606, -0.0026254786644130945, -0.020419342443346977, 0.000019940764104831032, -0.003971213009208441, 0.004638188518583775, 0.04951171949505806, -0.030449895188212395, -0.0478525273501873, 0.017364924773573875, -0.019071249291300774, 0.03895324096083641, 0.05196279287338257, -0.09495088458061218, -0.009738310240209103, -0.01403711922466755, 0.02222936600446701, -0.03410765528678894, -0.08635326474905014, 0.04404393583536148, 0.037614576518535614, -0.031317200511693954, -0.0018901560688391328, 0.0142822265625, -0.020721012726426125, 0.010539622977375984, 0.014942131005227566, -0.017826858907938004, 0.009097259491682053, 0.07062867283821106, -0.03804823011159897, 0.011142964474856853, 0.034710995852947235, -0.0039122928865253925, 0.040348466485738754, -0.000751230982132256, -0.010954420082271099, 0.06308690458536148, 0.005128403194248676, 0.01850561797618866, -0.012575901113450527, -0.0018383063143119216, 0.01452733390033245, 0.011331508867442608, 0.000449854793259874, -0.07549311220645905, -0.03199595957994461, -0.049662552773952484, -0.007042127661406994, -0.016780437901616096, -0.05611076578497887, 0.002521779155358672, 0.015592608600854874, -0.00858819019049406, 0.07142055779695511, 0.034333907067775726, -0.06832843273878098, 0.037821974605321884, 0.022625308483839035, -0.024020535871386528, -0.02988426201045513, 0.0033183787018060684, -0.026942972093820572, 0.011567189358174801, -0.016818147152662277, 0.01899583265185356, -0.031072091311216354, -0.0200799610465765, -0.007126972544938326, -0.026113377884030342, 0.0249632578343153, -0.07236327975988388, -0.04792794585227966, 0.0355217345058918, 0.021908840164542198, -0.009111400693655014, -0.01663902960717678, -0.04491123929619789, 0.006330372765660286, 0.022380201146006584, -0.03887782245874405, 0.027056097984313965, 0.030487604439258575, -0.07323058694601059, -0.01270788162946701, 0.039217203855514526, 0.02575514279305935, -0.04031075909733772, -0.04268641769886017, -0.004501493647694588, 0.028225073590874672, -0.027810275554656982, 0.053885944187641144, -0.011359790340065956, 0.07737855613231659, 0.053923655301332474, -0.06761196255683899, -0.007834013551473618, 0.012387356720864773, -0.028243927285075188, -0.025095239281654358, 0.02302125282585621, -0.03303295001387596, -0.016450485214591026, 0.05501721054315567, -0.005604477599263191, 0.018741298466920853, 0.05166112259030342, -0.051321741193532944, 0.028583306819200516, 0.004807878285646439, 0.03022364154458046, -0.021908840164542198, -0.034333907067775726, 0.016629602760076523, 0.01303783431649208, -0.06753654778003693, -0.01279272697865963, 0.057279739528894424, -0.029488319531083107, 0.003323092358186841, -0.029997389763593674, 0.03561600670218468, -0.05381052568554878, 0.04442102462053299, 0.03669070824980736, 0.007442784029990435, -0.008706030435860157, -0.06301148980855942, 0.01780800335109234, -0.01895812340080738, 0.015451200306415558, 0.01771373115479946, -0.028639869764447212, 0.009582760743796825, 0.015884852036833763, -0.022738436236977577, 0.05173654109239578, -0.012302512302994728, 0.04317663237452507, 0.008229956030845642, 0.046758972108364105, 0.029526028782129288, 0.024190226569771767, 0.04242245480418205, 0.01132208202034235, 0.013650603592395782, -0.007645469158887863, -0.01448962464928627, 0.00567046832293272, -0.0035399182233959436, -0.01393341924995184, -0.0022837421856820583, -0.1263246387243271, -0.006221959833055735, 0.03476755693554878, 0.03472984954714775, -0.004803164396435022, -0.04181911423802376, 0.009512057527899742, -0.02343604899942875, -0.046268757432699203, -0.04985109716653824, -0.020343923941254616, -0.014329362660646439, -0.0566386915743351, 0.030996672809123993, 0.06014561280608177, 0.11048692464828491, -0.012161104008555412, 0.01333007775247097, -0.0036506878677755594, -0.002197718946263194, 0.017025545239448547, -0.03793510049581528, -0.06780050694942474, -0.008140397258102894, -0.05803391709923744, -0.004463784862309694, -0.0021211227867752314, 0.08944538980722427, -0.0710434690117836, -0.05030360445380211, -0.03633247688412666, 0.019137240946292877, 0.0034550733398646116, -0.04053701087832451, -0.02818736433982849, -0.08846496045589447, -0.0468720979988575, -0.006325659342110157, -0.05788308382034302, 0.0011925423750653863, -0.004986995365470648, 0.05147257819771767, 0.05803391709923744, -0.012274229899048805, -0.007386220619082451, 0.015243802219629288, 0.013509195297956467, -0.010643322952091694, 0.0057977354153990746, 0.039481163024902344, 0.010294515639543533, -0.01751575991511345, 0.021908840164542198, -0.029111230745911598, 0.003002566983923316, -0.008720171637833118, 0.061126042157411575, -0.05973081663250923, -0.062747523188591, -0.03141147270798683, 0.008380791172385216, -0.028093092143535614, -0.053169477730989456, -0.03985825181007385, 0.019966835156083107, 0.021663732826709747, -0.031072091311216354, 0.048078782856464386, 0.039104074239730835, 0.014960985630750656, 0.0272823516279459 ]
730,210
mmengine.fileio.backends.petrel_backend
_format_path
Convert a ``filepath`` to standard format of petrel oss. If the ``filepath`` is concatenated by ``os.path.join``, in a Windows environment, the ``filepath`` will be the format of 's3://bucket_name\image.jpg'. By invoking :meth:`_format_path`, the above ``filepath`` will be converted to 's3://bucket_name/image.jpg'. Args: filepath (str): Path to be formatted.
def _format_path(self, filepath: str) -> str: """Convert a ``filepath`` to standard format of petrel oss. If the ``filepath`` is concatenated by ``os.path.join``, in a Windows environment, the ``filepath`` will be the format of 's3://bucket_name\\image.jpg'. By invoking :meth:`_format_path`, the above ``filepath`` will be converted to 's3://bucket_name/image.jpg'. Args: filepath (str): Path to be formatted. """ return re.sub(r'\\+', '/', filepath)
(self, filepath: str) -> str
[ -0.04808497801423073, -0.004857582971453667, -0.03134043887257576, 0.04278748109936714, 0.006001361180096865, -0.06460724771022797, 0.018744992092251778, 0.0358785055577755, 0.054234523326158524, -0.004628364462405443, 0.025079762563109398, -0.01015045028179884, -0.010317154228687286, 0.02463521622121334, -0.024116579443216324, 0.044824980199337006, 0.030136464163661003, 0.005047440994530916, 0.032229531556367874, 0.020412037149071693, 0.013345618732273579, -0.025913283228874207, 0.03143305331468582, -0.020801013335585594, 0.027617374435067177, 0.03335941582918167, -0.006825622171163559, 0.010530165396630764, -0.04023134708404541, -0.07438723742961884, 0.01667044684290886, -0.007089570630341768, 0.028599077835679054, 0.037786345928907394, 0.004406091757118702, 0.01898578740656376, -0.00739519577473402, 0.008112951181828976, -0.0393793024122715, -0.032322145998477936, -0.029006578028202057, 0.04534361511468887, -0.016827890649437904, -0.04178725555539131, 0.023190444335341454, 0.056012701243162155, -0.007288690190762281, 0.004299586173146963, -0.02222726307809353, -0.004991872701793909, 0.012308347038924694, 0.011141415685415268, -0.06182883679866791, -0.005265082698315382, -0.04927043244242668, -0.014197664335370064, 0.05241929367184639, 0.0028247146401554346, -0.04137975350022316, -0.021171467378735542, 0.014892266131937504, -0.02726544253528118, 0.023820215836167336, 0.014456981793045998, 0.006603349465876818, 0.01861533336341381, -0.014642209745943546, -0.02509828470647335, -0.003125708783045411, -0.011919369921088219, -0.015929538756608963, -0.027117261663079262, 0.01640186831355095, -0.055234748870134354, -0.003278521355241537, 0.023764649406075478, 0.007774911355227232, 0.019189536571502686, 0.05090043321251869, -0.015614652074873447, -0.012549142353236675, -0.06016179174184799, 0.006186588201671839, -0.03445225581526756, 0.07942541688680649, -0.015253459103405476, -0.004031006712466478, -0.02307930774986744, -0.04045362025499344, 0.03845316544175148, 0.039490435272455215, -0.02424624003469944, 0.008705678395926952, -0.004593634512275457, 0.032155439257621765, 0.002348912414163351, 0.032155439257621765, -0.07557269185781479, 0.014531073160469532, -0.025672487914562225, -0.06071747466921806, -0.046047478914260864, -0.014494027942419052, -0.03011794202029705, 0.02533908002078533, -0.08172223716974258, 0.013188175857067108, 0.031155213713645935, 0.005464202258735895, -0.002343124011531472, -0.04060180112719536, -0.05212293192744255, -0.021986467763781548, -0.0071497694589197636, 0.061347246170043945, -0.016438912600278854, 0.021504877135157585, -0.03450782597064972, 0.0393793024122715, -0.02863612398505211, 0.010326416231691837, -0.016003629192709923, -0.039564527571201324, 0.01011340506374836, 0.05227111279964447, -0.004862213972955942, -0.0036605524364858866, 0.03830498456954956, -0.014151357114315033, 0.026357829570770264, -0.08127769082784653, 0.09150223433971405, -0.04256520792841911, -0.03465600684285164, 0.024375898763537407, 0.02633930742740631, -0.05256747826933861, 0.025598397478461266, 0.06030997261404991, 0.10246767848730087, 0.07231269776821136, -0.032322145998477936, -0.017476186156272888, -0.04764043167233467, 0.07372042536735535, 0.003709174459800124, 0.042120661586523056, -0.0177447646856308, -0.036397144198417664, 0.012669540010392666, 0.015633175149559975, 0.035248734056949615, 0.07427610456943512, -0.0022296723909676075, 0.0494186133146286, -0.027969306334853172, 0.03148862347006798, -0.04267634451389313, 0.024764874950051308, -0.016068458557128906, 0.0509374774992466, -0.0075480081140995026, 0.006158804055303335, 0.0001260413118870929, -0.0042694867588579655, 0.02339419350028038, -0.009502154774963856, 0.05104861408472061, 0.032396234571933746, -0.003188223112374544, 0.03460044041275978, -0.037415891885757446, -0.07016406208276749, 0.016272209584712982, 0.055234748870134354, 0.043120890855789185, 0.006279201712459326, 0.028376806527376175, 0.03837907314300537, -0.031303394585847855, 0.027154305949807167, -0.02695055678486824, 0.0571611113846302, 0.09046495705842972, -0.0026927401777356863, -0.0030608794186264277, -0.014030959457159042, -0.01207681279629469, -0.0018719523213803768, 0.014771868474781513, -0.009353972971439362, 0.04563998058438301, -0.0029358509927988052, 0.027913738042116165, 0.02895100973546505, -0.06727451831102371, 0.07016406208276749, -0.06460724771022797, -0.04930747672915459, 0.03800861909985542, 0.0013313203817233443, 0.024987148120999336, -0.018531979992985725, -0.02332010306417942, 0.07049746811389923, -0.011632267385721207, 0.012919596396386623, 0.001047112513333559, -0.09283586591482162, 0.03643418848514557, -0.008404684253036976, -0.02122703567147255, 0.004005537834018469, -0.0193006731569767, 0.010354200378060341, 0.042972709983587265, -0.0478627048432827, 0.09594768285751343, -0.01856902614235878, 0.05838361009955406, -0.016966810449957848, -0.019874878227710724, -0.018865389749407768, -0.020634308457374573, 0.02956225909292698, 0.016198117285966873, 0.02100476436316967, 0.05256747826933861, 0.02076396718621254, -0.008557496592402458, 0.0034984785597771406, -0.07016406208276749, 0.03482271358370781, 0.056086793541908264, 0.0571611113846302, -0.04593634232878685, -0.019115446135401726, -0.042194753885269165, 0.024746352806687355, -0.016966810449957848, 0.014142096042633057, -0.037175096571445465, 0.006413491442799568, -0.045677024871110916, -0.007353519555181265, -0.03511907532811165, 0.0016381029272451997, -0.005714258644729853, 0.034081801772117615, -0.006927496753633022, 0.019189536571502686, 0.07127542048692703, -0.017772549763321877, 0.025691011920571327, -0.030247600749135017, -0.03636009618639946, -0.047973841428756714, -0.02904362417757511, -0.045677024871110916, 0.016781583428382874, -0.03823089227080345, -0.0347486212849617, 0.005973577033728361, -0.049529749900102615, -0.011391472071409225, -0.04545475170016289, -0.01039124559611082, 0.00805275235325098, 0.01278067659586668, 0.011076586320996284, 0.018846867606043816, 0.042417027056217194, -0.01552203856408596, -0.006788576487451792, -0.028599077835679054, -0.03271112218499184, -0.04704770818352699, 0.010891358368098736, 0.015271982178092003, -0.01591101661324501, -0.007233121898025274, 0.023727603256702423, 0.008789029903709888, 0.010400506667792797, 0.040342483669519424, -0.018217094242572784, 0.022412490099668503, -0.03698987141251564, -0.034933846443891525, 0.03604521229863167, 0.018393060192465782, 0.016309253871440887, -0.01844862848520279, -0.025116806849837303, -0.052382249385118484, -0.009228944778442383, 0.017809594050049782, -0.07309065014123917, 0.033396463841199875, -0.06160656362771988, -0.024042489007115364, 0.08320405334234238, 0.06475542485713959, 0.006506104953587055, -0.01767067424952984, 0.02030090056359768, -0.04626975208520889, -0.057790882885456085, -0.01153965387493372, 0.04993725195527077, -0.014808913692831993, -0.042417027056217194, -0.015142322517931461, 0.06660769879817963, 0.06479246914386749, 0.07742496579885483, -0.0285805556923151, -0.012067551724612713, -0.0018314338522031903, 0.0034382797311991453, -0.01722612790763378, 0.05497543141245842, 0.02880282886326313, 0.0358785055577755, 0.0071497694589197636, -0.0687192901968956, -0.04563998058438301, 0.021449308842420578, -0.018041128292679787, 0.04541770741343498, 0.04071293771266937, 0.02346828579902649, 0.0204490814357996, -0.02917328290641308, 0.011993460357189178, -0.037101007997989655, -0.005413264501839876, -0.06016179174184799, -0.014281016774475574, 0.07823996245861053, 0.050381794571876526, -0.0013382664183154702, -0.00437367707490921, 0.009136331267654896, -0.05890224501490593, 0.02980305440723896, 0.018161525949835777, -0.03993498161435127, -0.03889771178364754, -0.06005065515637398, 0.0258762389421463, -0.006209741346538067, -0.009946700185537338, 0.03852725401520729, -0.030766235664486885, 0.01786516234278679, -0.05460497736930847, -0.0006228264537639916, 0.00915022287517786, 0.02880282886326313, 0.035396914929151535, -0.021708626300096512, 0.05041884258389473, -0.01649448089301586, 0.02407953515648842, 0.04608452692627907, 0.028080442920327187, 0.002769146580249071, -0.013438232243061066, 0.03450782597064972, 0.002294501755386591, -0.022968171164393425, 0.012882551178336143, -0.057939063757658005, -0.02454260364174843, 0.057716794312000275, -0.00554292369633913, -0.050381794571876526, -0.0010123823303729296, -0.01688345894217491, 0.011521131731569767, 0.08475996553897858, -0.0061263893730938435, 0.0447508879005909, 0.011354426853358746, 0.0006876559345982969, 0.030080895870923996, -0.04949270561337471, -0.02385726198554039, -0.03623043745756149, -0.019874878227710724, 0.022671807557344437, 0.08438950777053833, -0.040120210498571396, -0.0320257805287838, -0.04693657159805298, 0.05186361446976662, 0.013679028488695621, 0.04678838700056076, 0.026154078543186188, 0.0035887768026441336, -0.07142360508441925, -0.0135123236104846, -0.00861306395381689, -0.039416346698999405, 0.027358056977391243, -0.00545957125723362, 0.07397974282503128, -0.015373856760561466, -0.00005433813203126192, -0.012289823964238167, -0.06305133551359177, -0.01991192251443863, -0.006320877932012081, 0.06912678480148315, 0.01346601638942957, -0.09765177220106125, -0.027580328285694122, -0.020986240357160568, 0.03441521152853966, -0.058568838983774185, -0.015392379835247993, -0.04030543565750122, 0.06016179174184799, 0.007196076214313507, -0.06960837543010712, -0.014938573352992535, 0.015503515489399433, 0.11876767128705978, 0.03797157481312752, -0.013336357660591602, 0.024264762178063393, -0.0028386067133396864, -0.034470781683921814, 0.025894761085510254, -0.014160619117319584, 0.04534361511468887, 0.043120890855789185, 0.012826982885599136, -0.006005991715937853, 0.05756860971450806, -0.009668859653174877, -0.0486406609416008, -0.04315793514251709, 0.043824754655361176, -0.005681843962520361, -0.023838739842176437, 0.003352612257003784, 0.03178498521447182, 0.007446133065968752, -0.014957095496356487, -0.012049028649926186, 0.026228170841932297, 0.0005632064421661198, -0.011715619824826717, -0.06016179174184799, 0.033692825585603714, -0.035174641758203506, -0.0021335857454687357, -0.01837453804910183, -0.035563621670007706, 0.05067816004157066, 0.0803145095705986, 0.021560445427894592, -0.03667498379945755, -0.08616768568754196, -0.0018684793030843139, 0.010557949542999268, -0.029988281428813934, -0.04060180112719536, 0.018513457849621773, -0.05734633654356003, -0.033396463841199875, 0.07660996913909912, -0.016096243634819984, 0.03172941878437996, -0.0019599352963268757, 0.06645951420068741, -0.017290959134697914, 0.014531073160469532, -0.036008164286613464, -0.07349815219640732, -0.023264534771442413, 0.045677024871110916, 0.039268165826797485, 0.03343350812792778, -0.00828428566455841, 0.01968965120613575, 0.031859077513217926, -0.02965487353503704, 0.06423678994178772, 0.07601723819971085, -0.04912225157022476, 0.020171241834759712, -0.022579194977879524, -0.0035308932419866323, -0.050752248615026474, 0.029599305242300034, -0.0354895293712616, 0.03404475748538971, 0.01502192486077547, -0.05719815567135811, -0.05564224720001221, 0.017754025757312775, 0.018022606149315834, 0.058494746685028076, 0.002191469306126237, -0.006858036853373051, -0.0001736504927976057, -0.0026533794589340687, -0.015457209199666977, 0.02278294414281845, -0.033007483929395676, 0.02670976147055626, -0.03367430344223976, -0.012465789914131165, -0.03967566415667534, 0.023579420521855354, 0.03689725697040558, -0.006413491442799568, -0.027747033163905144, -0.05160429701209068, -0.04641793295741081, -0.02402396686375141, -0.03334089368581772, -0.02680237405002117, 0.03174794092774391, -0.0011646159691736102, -0.0517154298722744, 0.05071520432829857, -0.028691692277789116, 0.0378233939409256, -0.018754253163933754, 0.014595902524888515, 0.007552638649940491, 0.05371588468551636, -0.02237544395029545, -0.02856203354895115, -0.018670901656150818, -0.004274117294698954, 0.008117581717669964, 0.0018985787173733115, -0.05056702345609665, -0.028006350621581078, 0.030229076743125916, 0.021578967571258545, 0.020652832463383675, -0.05982838198542595, 0.04338020831346512, -0.03815679997205734, 0.000021959551304462366, 0.006260679103434086, -0.01728169620037079, 0.09817041456699371, 0.07905496656894684, 0.04252816364169121, -0.011984199285507202, -0.05008543282747269, -0.04415816068649292, -0.034618962556123734, -0.0328407809138298, 0.018948741257190704, 0.008923320099711418, 0.004369046539068222, -0.06727451831102371, 0.005353065673261881, -0.034322597086429596, 0.06131020188331604, -0.024838965386152267, -0.013984653167426586, 0.031007030978798866, 0.027617374435067177, 0.06427383422851562, -0.02895100973546505, -0.04004611819982529, -0.013614198192954063, 0.06620019674301147, -0.012521358206868172, 0.0694601982831955, 0.05141906812787056, 0.0006523469928652048, -0.044009979814291, -0.002539927838370204, -0.02039351314306259, 0.013141869567334652, 0.0034568023402243853, 0.01913396827876568, 0.013067778199911118, 0.005149316042661667, -0.014818175695836544, -0.022727375850081444, -0.06801542639732361, 0.05334543064236641, 0.007154400460422039, -0.004540381487458944, -0.046454980969429016, 0.029377032071352005, -0.003908293787389994, 0.061347246170043945, 0.006607980001717806, 0.0006864983006380498, 0.04538066312670708, -0.005987469106912613, 0.09661450237035751, -0.00033717136830091476, 0.003371134866029024, 0.033155668526887894, -0.010659825056791306, -0.03330384939908981, -0.0121601652354002, -0.0076359910890460014, 0.05853179097175598, 0.01432732306420803, 0.01868942379951477, 0.03800861909985542, 0.08698268979787827, -0.0447508879005909, -0.033322371542453766, -0.029766010120511055, -0.0016334722749888897, -0.0335816890001297, -0.016235163435339928, -0.0011559334816411138, -0.00042110244976356626, 0.006418121978640556, -0.0053623272106051445, 0.018967265263199806, -0.0764617845416069, -0.03356316685676575, -0.08868677914142609, 0.003294728696346283, -0.04730702564120293, 0.03713805228471756, -0.009335450828075409, 0.03250737115740776, -0.014030959457159042, -0.0235608983784914, 0.015457209199666977, -0.04638088867068291, -0.03158123791217804, 0.012206471525132656, -0.07546155899763107, -0.04182429984211922, -0.03019203245639801, 0.009557723067700863, -0.010974710807204247, -0.008048121817409992, -0.0556052029132843, 0.0029103823471814394, -0.0028223993722349405, -0.02100476436316967, 0.021282603964209557, -0.017976298928260803, -0.020967718213796616, -0.009196530096232891, 0.023764649406075478, 0.06849701702594757, -0.06397747248411179, 0.01818004809319973, -0.005445679184049368, 0.04349134489893913, 0.0035725694615393877, -0.02926589548587799, 0.050381794571876526, -0.03272964432835579, -0.03750850632786751, 0.02695055678486824, -0.03119225986301899, -0.017189083620905876, 0.03769373521208763, 0.006959911901503801, -0.0012595448642969131, -0.02052317187190056, -0.01574431173503399, 0.02007862739264965, -0.014938573352992535, 0.06279201805591583, 0.014281016774475574, -0.004257909953594208, 0.024690784513950348, -0.04441748186945915, -0.02454260364174843, -0.009594768285751343, -0.005394741892814636, 0.020875103771686554, -0.00879829190671444, 0.006557042710483074, 0.035174641758203506, -0.004443137440830469, 0.026913510635495186, -0.028450896963477135, -0.06957133114337921, -0.020893627777695656, -0.01720760576426983, -0.04086111858487129, 0.011854540556669235, 0.05467906594276428, 0.041120436042547226, 0.02678385190665722, -0.03900884464383125, 0.02215317264199257, 0.03776782378554344, -0.00804349035024643, -0.00005227603469393216, -0.006714485585689545, -0.04371361806988716, -0.008048121817409992, -0.02354237623512745, 0.01039124559611082, -0.02417214773595333, -0.04130566492676735, -0.0026719023007899523, 0.025042716413736343, -0.042898617684841156, 0.05590156465768814, 0.0026719023007899523, -0.03904589265584946, -0.038564302027225494, 0.07223860174417496, -0.08453769236803055, -0.001351000857539475, -0.011150676757097244, 0.034933846443891525, -0.021634535863995552, 0.007001587655395269, -0.019337719306349754, 0.00956698413938284, 0.025505784898996353, -0.0046885632909834385, 0.02015271782875061, -0.03686021268367767, 0.03745293617248535, -0.01404948253184557, -0.011206245049834251, 0.019022831693291664, 0.004917781800031662, 0.0043412623926997185, 0.0078026955015957355, 0.03765668720006943, 0.03554509952664375, -0.015957321971654892, 0.043269071727991104, -0.05704997479915619, -0.06282906234264374, 0.051233839243650436, -0.003977754153311253, 0.05497543141245842, -0.010317154228687286, -0.048529524356126785, 0.013373402878642082, 0.016411129385232925, 0.010002268478274345, -0.025653965771198273, -0.03689725697040558, 0.050752248615026474, -0.08061087131500244, -0.00008704231004230678, 0.007316473871469498, 0.010946926660835743, -0.0027598850429058075, -0.025616919621825218, -0.003373450133949518, 0.03960157185792923, 0.030303169041872025, 0.018531979992985725, 0.05630906671285629, -0.04237998276948929, -0.016272209584712982 ]
730,211
mmengine.fileio.backends.petrel_backend
_map_path
Map ``filepath`` to a string path whose prefix will be replaced by :attr:`self.path_mapping`. Args: filepath (str or Path): Path to be mapped.
def _map_path(self, filepath: Union[str, Path]) -> str: """Map ``filepath`` to a string path whose prefix will be replaced by :attr:`self.path_mapping`. Args: filepath (str or Path): Path to be mapped. """ filepath = str(filepath) if self.path_mapping is not None: for k, v in self.path_mapping.items(): filepath = filepath.replace(k, v, 1) return filepath
(self, filepath: Union[str, pathlib.Path]) -> str
[ 0.015193982049822807, 0.01070061232894659, -0.02122362144291401, 0.0489475317299366, -0.04372598975896835, -0.027368703857064247, 0.035147737711668015, 0.10457295924425125, 0.05512813478708267, -0.0512208566069603, 0.021454505622386932, 0.016481608152389526, -0.017192021012306213, 0.060740407556295395, 0.012165841646492481, -0.0003257914795540273, -0.0002546113100834191, 0.02246684581041336, -0.009368586353957653, -0.015034139156341553, 0.019944876432418823, 0.002107931999489665, 0.06507392972707748, 0.0030325802508741617, -0.030139319598674774, 0.05512813478708267, -0.03156014531850815, -0.0001263343874597922, 0.04855680465698242, -0.06386622786521912, 0.020264562219381332, -0.053174495697021484, 0.005341426003724337, 0.008866855874657631, -0.006105121225118637, 0.007352786138653755, -0.013542269356548786, 0.021294662728905678, -0.04017391800880432, -0.07040204107761383, 0.01511406060308218, 0.05775666609406471, -0.042411722242832184, -0.02442048490047455, -0.0051327417604625225, 0.03811371698975563, -0.07445140182971954, 0.014421406202018261, 0.04756222665309906, 0.046780768781900406, 0.01238784659653902, -0.03022812120616436, -0.06368862837553024, 0.000193282583495602, -0.006131761707365513, 0.03404659777879715, 0.006575770676136017, -0.008924577385187149, -0.03557398542761803, -0.01996263675391674, 0.022360283881425858, -0.05303241312503815, -0.007956638000905514, -0.029251301661133766, 0.05871572718024254, -0.0005433558253571391, 0.015531428158283234, -0.04411671683192253, 0.026693809777498245, -0.005687753204256296, -0.02722662128508091, -0.025450585409998894, 0.019944876432418823, -0.042020995169878006, 0.01336466521024704, 0.02227148227393627, -0.006673452444374561, 0.02935786359012127, 0.045715149492025375, -0.02008695900440216, -0.0347747728228569, -0.07310160994529724, -0.028327763080596924, -0.09057779610157013, 0.009333065710961819, 0.03562726825475693, 0.0429445318877697, -0.051718149334192276, -0.046034835278987885, -0.010887096635997295, -0.01941206492483616, -0.020442165434360504, -0.0028793972451239824, 0.039392463862895966, 0.013293623924255371, 0.004262484610080719, 0.026942456141114235, -0.05544782057404518, 0.024704650044441223, -0.0045821708627045155, 0.01978503353893757, -0.03127598017454147, -0.011633031070232391, -0.03736778348684311, 0.04031600058078766, -0.06319133192300797, 0.032199520617723465, 0.004280244931578636, 0.00969715230166912, 0.010194442234933376, -0.08375782519578934, -0.03853996470570564, -0.014785493724048138, -0.0037274539936333895, 0.010203322395682335, 0.03436628356575966, -0.025947876274585724, -0.05232200026512146, 0.046851810067892075, 0.029517706483602524, -0.008360685780644417, 0.004204763565212488, -0.08482344448566437, 0.002646292559802532, 0.028238961473107338, -0.00779235502704978, 0.030370203778147697, 0.05818291753530502, 0.013924116268754005, -0.00649140914902091, -0.0022722152061760426, 0.052357520908117294, 0.0029726391658186913, 0.02903817780315876, 0.011561989784240723, 0.04269588738679886, -0.08318949490785599, 0.033140819519758224, 0.05566094443202019, 0.11430563032627106, 0.043086614459753036, -0.046603165566921234, 0.025450585409998894, -0.027368703857064247, 0.10450191795825958, -0.005598951131105423, 0.06034968048334122, 0.021685391664505005, -0.05374282971024513, -0.02070857211947441, 0.0026951334439218044, 0.016010958701372147, 0.008635971695184708, 0.015078539960086346, -0.004382367245852947, -0.00010364830814069137, 0.016179680824279785, 0.03562726825475693, 0.012014878913760185, -0.05740145966410637, 0.04969346895813942, -0.04493369162082672, 0.003227944253012538, -0.07352785766124725, 0.010594050399959087, -0.02477569319307804, -0.006344886031001806, 0.030068278312683105, 0.03443732485175133, -0.02335486374795437, -0.00938634667545557, -0.016996657475829124, -0.030316922813653946, 0.03550294414162636, 0.0706862062215805, -0.004964018706232309, 0.00502173975110054, 0.024065278470516205, 0.03797163441777229, 0.03857548534870148, 0.04745566472411156, -0.0021201421041041613, -0.020122479647397995, 0.06244540214538574, 0.005967478733509779, 0.022324763238430023, -0.0010567409917712212, 0.02534402348101139, 0.018071159720420837, 0.03072541020810604, 0.01377315353602171, 0.02383439429104328, 0.021046018227934837, 0.026835892349481583, 0.042660366743803024, -0.047349099069833755, 0.07992158830165863, -0.07402515411376953, -0.08773614466190338, 0.07473556697368622, 0.00479085510596633, -0.032075196504592896, 0.006828855723142624, 0.03505893796682358, -0.02608995884656906, 0.00015637435717508197, 0.026427404955029488, 0.057294897735118866, 0.006811095401644707, 0.03067212924361229, -0.015318304300308228, -0.0596037432551384, -0.003210183698683977, -0.06653027981519699, 0.010816055350005627, 0.02353246696293354, -0.07242672145366669, 0.07235568016767502, -0.04013839736580849, 0.0727464035153389, 0.037829551845788956, 0.07317265123128891, -0.023319343104958534, -0.03719018027186394, 0.02978411130607128, -0.029144739732146263, -0.039392463862895966, 0.015185101889073849, 0.021756432950496674, 0.021578827872872353, 0.031151659786701202, -0.0572238564491272, 0.0030658808536827564, 0.0086803724989295, 0.0752328559756279, -0.0466742068529129, 0.013222582638263702, -0.046212438493967056, 0.026569487527012825, -0.006970938295125961, 0.005856476258486509, -0.014794373884797096, -0.009501788765192032, -0.012556569650769234, -0.02202283777296543, 0.00861821137368679, -0.03191535547375679, -0.031204940751194954, 0.033069778233766556, 0.014998617582023144, 0.09363257884979248, 0.04607035592198372, -0.02878953143954277, 0.04500473290681839, -0.0028127958066761494, 0.015460386872291565, -0.03202191740274429, -0.009910277090966702, -0.03205743804574013, 0.05594511330127716, -0.026995737105607986, 0.018364204093813896, -0.012556569650769234, -0.09896068274974823, 0.022733252495527267, -0.033513784408569336, -0.03754538670182228, 0.04031600058078766, 0.02177419327199459, -0.006904337089508772, 0.030405724421143532, 0.023585747927427292, -0.040848810225725174, 0.030441245064139366, -0.0039006175938993692, 0.013613310642540455, -0.02992619387805462, 0.011375506408512592, 0.03672840818762779, 0.01790243573486805, -0.03362034633755684, -0.02529074251651764, -0.005052820313721895, -0.025201940909028053, 0.010656211525201797, -0.014474687166512012, 0.05200231447815895, 0.014989737421274185, 0.019802793860435486, -0.0037341141141951084, 0.049728989601135254, -0.023052938282489777, -0.10102088749408722, 0.013373545370995998, -0.04113297909498215, -0.06518049538135529, -0.006629051640629768, -0.05693969130516052, 0.022626688703894615, -0.05534125864505768, -0.007810115348547697, 0.023585747927427292, 0.06855496019124985, 0.016605930402874947, 0.002901597646996379, 0.009226503781974316, -0.023195020854473114, -0.025752510875463486, 0.01283185463398695, 0.029748590663075447, -0.046603165566921234, -0.040600165724754333, -0.0670630931854248, 0.01661480963230133, 0.049657948315143585, 0.06276508420705795, -0.0010484157828614116, 0.06539361923933029, 0.004941818304359913, 0.018666131421923637, -0.013018338941037655, 0.04670972749590874, -0.056726567447185516, 0.02204059809446335, -0.012201362289488316, -0.016073118895292282, 0.010460847988724709, 0.01423492282629013, 0.037403304129838943, -0.02127690240740776, 0.04074224829673767, 0.014155001379549503, -0.012290163896977901, -0.04237620159983635, 0.012503288686275482, -0.014678931795060635, -0.015371585264801979, -0.009421867318451405, -0.036834970116615295, 0.08631531149148941, 0.05594511330127716, -0.0394279845058918, -0.008098720572888851, 0.013755393214523792, -0.008982298895716667, 0.0466742068529129, -0.03054780699312687, -0.007002019323408604, -0.030814211815595627, -0.04688733071088791, 0.03935694321990013, -0.009146581403911114, -0.017271943390369415, -0.012565449811518192, 0.0032434845343232155, 0.018808213993906975, -0.03022812120616436, 0.027386464178562164, -0.02077961340546608, 0.05321001634001732, 0.04230516031384468, -0.041275061666965485, 0.002313286066055298, -0.045537546277046204, 0.06283612549304962, 0.020424405112862587, 0.012441127561032772, 0.007996599189937115, -0.021063778549432755, 0.03617784008383751, 0.013799794018268585, 0.017342984676361084, 0.0034299681428819895, -0.01964295096695423, -0.005234864074736834, 0.053352098912000656, 0.022608928382396698, -0.0016494927695021033, -0.03868204727768898, 0.01236120518296957, 0.01496309693902731, 0.0381847582757473, 0.0024753492325544357, 0.08794926851987839, -0.04237620159983635, 0.03640872240066528, 0.0681997537612915, -0.0513274185359478, 0.003094741376116872, -0.018381964415311813, 0.00035714960540644825, -0.0027550747618079185, 0.04724253714084625, -0.05775666609406471, 0.0197139922529459, -0.04450744390487671, 0.007978838868439198, 0.004702053498476744, 0.07707992941141129, 0.008072080090641975, 0.0006887686904519796, -0.06020759791135788, -0.01976727321743965, 0.05090117081999779, -0.011464308016002178, 0.04287349060177803, 0.02596563659608364, 0.07178734987974167, -0.01629512384533882, -0.023692309856414795, -0.02697797678411007, -0.05374282971024513, 0.002686253283172846, -0.048912011086940765, 0.015904396772384644, 0.040458083152770996, -0.06141529977321625, -0.053494181483983994, 0.013133781030774117, -0.0146434111520648, -0.054346680641174316, -0.0028261160477995872, -0.02559266798198223, 0.009395226836204529, 0.037651948630809784, -0.046851810067892075, 0.0146434111520648, -0.02047768607735634, 0.029304582625627518, 0.07892701029777527, -0.005052820313721895, -0.04805951565504074, -0.012991698458790779, -0.02296413667500019, 0.04298005253076553, 0.003629772225394845, 0.04287349060177803, -0.009945797733962536, 0.010052359662950039, -0.059426140040159225, 0.013568909838795662, -0.0036630728282034397, -0.013373545370995998, -0.017547229304909706, 0.029144739732146263, 0.017422907054424286, -0.0908619686961174, 0.008040999993681908, 0.03992527350783348, 0.016357285901904106, -0.07821659743785858, -0.05303241312503815, 0.03635544329881668, -0.010665091685950756, 0.031453583389520645, -0.019056858494877815, -0.054915010929107666, -0.04631900042295456, 0.01750282756984234, 0.02216492034494877, -0.035645026713609695, 0.009661631658673286, 0.09150134027004242, -0.023496946319937706, -0.014865415170788765, 0.04287349060177803, -0.010709492489695549, 0.043406303972005844, -0.053174495697021484, -0.043086614459753036, 0.01582447439432144, -0.04681628942489624, -0.0016272923676297069, 0.01198823843151331, -0.014510208740830421, 0.028238961473107338, 0.0013475667219609022, 0.08411303162574768, 0.0067622545175254345, 0.007561470381915569, -0.03235936164855957, -0.027990316972136497, 0.002430948195978999, 0.05068804696202278, 0.034082118421792984, 0.009785954840481281, 0.029322342947125435, 0.017467306926846504, -0.026764851063489914, -0.04187891259789467, 0.053920432925224304, 0.09619007259607315, -0.022981896996498108, -0.006651252042502165, -0.013497868552803993, 0.03180879354476929, -0.008738094009459019, -0.004901857580989599, -0.03850444406270981, 0.02333710342645645, 0.006842175964266062, -0.07228463888168335, -0.04511129483580589, 0.08063200116157532, -0.011659671552479267, 0.07722201198339462, -0.01678353361785412, 0.016259603202342987, -0.06027863919734955, 0.011819514445960522, -0.005718833766877651, 0.014012918807566166, -0.01693449728190899, -0.013231462799012661, -0.015478147193789482, 0.014341484755277634, -0.03623111918568611, -0.026178760454058647, -0.02553938701748848, -0.019625190645456314, -0.03786507248878479, -0.05757906287908554, -0.03484581410884857, -0.000859712075907737, 0.017023298889398575, -0.03319409862160683, 0.040600165724754333, -0.000866372196469456, -0.0008702572667971253, 0.02402975782752037, -0.04518233612179756, 0.017769232392311096, 0.005252624396234751, 0.04692285135388374, 0.034011077135801315, 0.04482712969183922, 0.05502157285809517, -0.0679866299033165, -0.018044518306851387, 0.004813055507838726, -0.023177260532975197, 0.0013520069187507033, -0.03191535547375679, -0.012947297655045986, 0.0680931955575943, -0.0027040138375014067, -0.030831972137093544, -0.021685391664505005, 0.05217991769313812, -0.008067640475928783, -0.029588747769594193, 0.014661171473562717, -0.01916342042386532, 0.04255380481481552, 0.009484028443694115, -0.028754010796546936, -0.01470557227730751, -0.03084973245859146, -0.0477043092250824, -0.0053858268074691296, -0.01681017316877842, -0.0015906615881249309, -0.004702053498476744, 0.001781585393473506, -0.005403587594628334, 0.023319343104958534, -0.05338761955499649, 0.026196520775556564, 0.02916250005364418, -0.021578827872872353, 0.046780768781900406, -0.003674173029139638, 0.042092036455869675, -0.041594747453927994, -0.06667236238718033, 0.011730712838470936, 0.09093300998210907, -0.029322342947125435, 0.04663868620991707, 0.02347918599843979, -0.03719018027186394, 0.05601615458726883, 0.03237712383270264, 0.07651159912347794, 0.03017484024167061, -0.029144739732146263, -0.01902133785188198, 0.05139845982193947, 0.008120921440422535, -0.06031415984034538, -0.044720567762851715, -0.05683312937617302, 0.016010958701372147, 0.008955658413469791, -0.04575067013502121, -0.015220622532069683, 0.047526706010103226, -0.029322342947125435, 0.035520706325769424, -0.008018799126148224, -0.026196520775556564, -0.015327184461057186, 0.018115559592843056, 0.06827079504728317, -0.006775574758648872, 0.015247263014316559, 0.040848810225725174, 0.01579783298075199, -0.019927116110920906, 0.0477043092250824, -0.008929016999900341, 0.05011971667408943, 0.0323416031897068, -0.011535349301993847, 0.0016372825484722853, 0.0037940554320812225, 0.01800011843442917, -0.029126979410648346, -0.047100454568862915, -0.026320843026041985, -0.049728989601135254, -0.03394003584980965, -0.004349066410213709, -0.011437667533755302, 0.00926202442497015, 0.012956177815794945, 0.0335315465927124, -0.027706149965524673, 0.012902895919978619, -0.04926721751689911, -0.008418407291173935, -0.057294897735118866, -0.017769232392311096, 0.011100220493972301, 0.01733410358428955, -0.0275285467505455, 0.00898673851042986, -0.013622190803289413, -0.020175760611891747, -0.02640964463353157, -0.023692309856414795, -0.09029363095760345, -0.03209295868873596, -0.011206782422959805, 0.015327184461057186, -0.026320843026041985, 0.020122479647397995, -0.024882255122065544, 0.013000578619539738, -0.012494408525526524, -0.007410507183521986, 0.0167657732963562, -0.022005077451467514, 0.012663131579756737, 0.06297820806503296, 0.06262300163507462, 0.013657711446285248, -0.06290716677904129, 0.015957677736878395, 0.014989737421274185, -0.013080500066280365, -0.006100681144744158, -0.044223278760910034, -0.027954796329140663, -0.014616770669817924, -0.0020080299582332373, 0.028132399544119835, -0.02561042830348015, -0.004746454302221537, 0.0011843935353681445, -0.0019325483590364456, -0.029943954199552536, -0.0442943200469017, -0.09000946581363678, 0.04525337740778923, 0.0009363035787828267, 0.059426140040159225, 0.013879715465009212, 0.008067640475928783, -0.026125479489564896, -0.06958506256341934, -0.017849154770374298, -0.0008069860632531345, 0.01336466521024704, -0.0003965553769376129, 0.0232838224619627, 0.01996263675391674, 0.00549238920211792, 0.06702756881713867, 0.050545964390039444, 0.036071278154850006, -0.05985238775610924, -0.004158142488449812, 0.0007742404122836888, -0.04550202563405037, 0.04244724288582802, 0.018364204093813896, -0.033016495406627655, 0.008600451052188873, -0.012787453830242157, 0.030387964099645615, 0.028096878901124, -0.019003577530384064, -0.029553227126598358, 0.008338485844433308, -0.06653027981519699, -0.02371007204055786, -0.02434944361448288, -0.005265944637358189, 0.0053858268074691296, -0.007472668308764696, -0.010940377600491047, 0.034952376037836075, -0.018364204093813896, 0.00479085510596633, -0.021738672628998756, -0.03612455725669861, -0.014794373884797096, 0.029588747769594193, -0.04095537215471268, 0.0256637092679739, -0.06823527812957764, 0.020424405112862587, 0.021134819835424423, -0.018088920041918755, 0.00047037185868248343, 0.021507786586880684, -0.026303082704544067, -0.02953546680510044, 0.05740145966410637, -0.054346680641174316, 0.030583327636122704, -0.04749118536710739, -0.03287441283464432, -0.0037873953115195036, -0.0345616452395916, 0.0005380832008086145, -0.039889752864837646, 0.016481608152389526, 0.024296162649989128, -0.03861100599169731, -0.016676971688866615, -0.010673971846699715, 0.005212663672864437, 0.014723332598805428, -0.01705881953239441, 0.05939061939716339, 0.014696692116558552, -0.021880755200982094, 0.07438036054372787, 0.004990659188479185, 0.016819054260849953, -0.043654948472976685, -0.03356706723570824, -0.038149237632751465, -0.05626479908823967, -0.029553227126598358, 0.017076579853892326, 0.007628071587532759, 0.011872796341776848, -0.037580907344818115, 0.027421984821558, -0.0003446618502493948, -0.006225003860890865, 0.05676208809018135, 0.017946837469935417, -0.04074224829673767, -0.02333710342645645 ]
730,212
mmengine.fileio.backends.petrel_backend
_replace_prefix
null
def _replace_prefix(self, filepath: Union[str, Path]) -> str: filepath = str(filepath) return filepath.replace('petrel://', 's3://')
(self, filepath: Union[str, pathlib.Path]) -> str
[ -0.07722868770360947, -0.03124251589179039, -0.027433738112449646, 0.05799172446131706, -0.030013877898454666, -0.02904851920902729, 0.021588928997516632, 0.08502177149057388, 0.11359638720750809, -0.017788926139473915, 0.01367298886179924, -0.012672525830566883, -0.03080371581017971, 0.028732582926750183, -0.023256367072463036, -0.015006938949227333, 0.003477485151961446, 0.046091485768556595, -0.022097937762737274, -0.00038093270268291235, -0.018131190910935402, 0.043458689004182816, 0.005340188276022673, -0.022642048075795174, 0.015621257945895195, 0.06933030486106873, -0.02920648641884327, 0.01751687191426754, -0.009872986003756523, -0.06964623928070068, 0.051813431084156036, -0.0007876448798924685, 0.00621778704226017, 0.045494720339775085, 0.03608686104416847, -0.006639034487307072, 0.004589841701090336, 0.01032056100666523, -0.0576406866312027, -0.03759633004665375, -0.014708555303514004, 0.021887313574552536, -0.0023585467133671045, -0.05683329701423645, 0.06813676655292511, 0.0817922055721283, 0.018956134095788002, 0.059992652386426926, 0.04426608234643936, 0.017306247726082802, 0.019394932314753532, 0.025064220651984215, -0.03194459527730942, -0.019781075417995453, -0.02427438087761402, -0.0008315248414874077, 0.029224038124084473, 0.032207876443862915, -0.059711821377277374, 0.03173397108912468, 0.02376537397503853, -0.023695167154073715, 0.004975984804332256, -0.018868373706936836, 0.021694241091609, 0.0016531766159459949, 0.026977386325597763, -0.0186753012239933, -0.02157137729227543, -0.05069010332226753, 0.010355665348470211, -0.025503020733594894, 0.012681301683187485, -0.04633721336722374, 0.013444812968373299, 0.02025497891008854, 0.02246652916073799, -0.01465589925646782, 0.00481801712885499, -0.02427438087761402, -0.03371734544634819, -0.07786056399345398, 0.010303009301424026, -0.04795199632644653, 0.028206024318933487, -0.021220337599515915, 0.018763061612844467, -0.04907532408833504, -0.031031891703605652, -0.023361679166555405, 0.004888224881142378, -0.011645735241472721, -0.016735808923840523, -0.047460541129112244, 0.028311336413025856, 0.010469753295183182, 0.028785239905118942, -0.11261347681283951, 0.03387531265616417, -0.041598182171583176, -0.0001936202315846458, 0.009206010960042477, -0.027749672532081604, -0.023203711956739426, 0.05174322426319122, -0.01927206851541996, 0.016604168340563774, 0.005954507738351822, -0.0024024266749620438, 0.018692852929234505, -0.059711821377277374, -0.06452105939388275, -0.013163981027901173, 0.012031879276037216, 0.06192336976528168, -0.02948731929063797, 0.0012714212061837316, -0.021975073963403702, 0.03025960549712181, 0.01679724082350731, -0.015129802748560905, 0.010750585235655308, -0.061747848987579346, 0.03273443505167961, 0.04387993738055229, -0.018043430522084236, 0.04826793074607849, 0.037034668028354645, -0.001702541601844132, -0.012751510366797447, -0.03448963165283203, 0.05342821404337883, -0.05033906549215317, -0.0532526932656765, 0.015200010500848293, 0.05458664149045944, -0.0074727535247802734, 0.02959262952208519, 0.024958908557891846, 0.06901437044143677, 0.01855243742465973, -0.0010476334718987346, -0.017200935631990433, -0.01614781655371189, 0.022764911875128746, 0.009179683402180672, 0.005941343493759632, -0.017016639932990074, -0.05388456583023071, -0.01602495275437832, 0.015726570039987564, -0.013980148360133171, 0.062344614416360855, 0.028732582926750183, -0.0056297960691154, 0.007586841471493244, -0.04068547859787941, -0.030768612399697304, -0.001231929287314415, -0.03382265567779541, 0.0390004888176918, -0.02806560881435871, -0.010557512752711773, -0.05090072751045227, -0.02695983462035656, -0.036157067865133286, 0.017990775406360626, 0.003091341583058238, 0.00006866524927318096, 0.0066521987318992615, 0.04398525133728981, 0.03773674741387367, -0.009381530806422234, 0.032804641872644424, 0.062063783407211304, 0.0263630673289299, 0.0241690706461668, 0.0058974637649953365, 0.017683615908026695, -0.003146191593259573, 0.01911410130560398, 0.0029421497602015734, 0.04251088574528694, 0.052620820701122284, 0.017911789938807487, 0.005572752095758915, -0.003532334929332137, 0.009513170458376408, 0.04932105168700218, -0.006546886637806892, 0.030400021001696587, 0.055323824286460876, -0.003731988836079836, 0.018078533932566643, 0.04981250688433647, -0.08558343350887299, 0.0900767371058464, -0.033418960869312286, -0.037701644003391266, 0.01364666037261486, -0.007446425501257181, 0.04029933363199234, -0.014129339717328548, 0.00673995865508914, 0.04528409615159035, 0.008315248414874077, 0.02525729313492775, 0.011584303341805935, -0.06662730127573013, 0.06578480452299118, -0.010987536981701851, -0.0033963071182370186, 0.008609243668615818, -0.044511809945106506, -0.01145266368985176, -0.007595617324113846, -0.05967671424150467, 0.06483699381351471, -0.012935806065797806, 0.03724529221653938, 0.003642034949734807, 0.01656028814613819, -0.016472529619932175, -0.041106726974248886, -0.0016685347072780132, -0.004445037804543972, 0.010030954144895077, 0.056517358869314194, -0.007077834103256464, -0.01976352371275425, 0.005853583570569754, -0.06662730127573013, 0.034226350486278534, 0.020360291004180908, 0.07680744677782059, -0.05690350383520126, -0.00621778704226017, 0.008635572157800198, 0.062344614416360855, -0.01743788830935955, -0.015463289804756641, -0.028135815635323524, 0.028925655409693718, -0.019078997895121574, -0.027697017416357994, 0.029943669214844704, -0.017227264121174812, -0.03310302644968033, 0.03794737160205841, 0.043950147926807404, 0.03970256820321083, 0.07364808768033981, -0.015436962246894836, 0.0631520077586174, 0.024730732664465904, -0.027486393228173256, -0.02673165872693062, -0.011593080125749111, -0.02887299843132496, 0.01235659047961235, -0.05897463858127594, -0.03312057629227638, 0.043353378772735596, -0.056412048637866974, -0.005761435721069574, -0.006323099136352539, -0.023677615448832512, 0.017604630440473557, 0.012725181877613068, 0.014638347551226616, 0.017271144315600395, -0.008894463069736958, 0.013953820802271366, 0.01435751561075449, 0.01627945713698864, -0.010487305000424385, -0.06539866328239441, 0.030171845108270645, 0.009811554104089737, -0.03808778524398804, -0.02327391877770424, -0.02509932406246662, 0.04075568541884422, -0.0042256382293999195, 0.047074396163225174, -0.040931206196546555, 0.04661804810166359, -0.027275769039988518, -0.0033304872922599316, 0.008771599270403385, 0.0044976938515901566, -0.015349202789366245, -0.05335800349712372, -0.03310302644968033, -0.0763159915804863, 0.0017113175708800554, 0.01103141624480486, 0.012040655128657818, 0.0013613750925287604, 0.008521484211087227, -0.040264230221509933, 0.025994475930929184, 0.0008315248414874077, 0.005164668895304203, 0.0293820071965456, 0.021975073963403702, 0.0007081124931573868, -0.027539048343896866, 0.00036667173844762146, 0.05093583092093468, -0.04489795118570328, -0.024520110338926315, -0.10341624170541763, -0.017279919236898422, 0.05258571729063988, 0.0631520077586174, -0.019026340916752815, 0.04496816173195839, 0.013313173316419125, -0.012523334473371506, 0.0024177846498787403, 0.02915383130311966, -0.0757543221116066, 0.06160743162035942, -0.02453766204416752, -0.04454691335558891, -0.03784205764532089, 0.0160512812435627, -0.015647586435079575, 0.016981536522507668, 0.019026340916752815, 0.0012505782069638371, -0.04753074795007706, -0.038122888654470444, -0.017350127920508385, -0.018412021920084953, 0.02107992209494114, -0.0312776193022728, 0.024642974138259888, 0.06080004200339317, 0.05335800349712372, -0.014822643250226974, -0.004651273600757122, 0.0058316439390182495, -0.0543409138917923, 0.005287532694637775, -0.0038197485264390707, -0.025678539648652077, -0.011426336131989956, -0.020448051393032074, 0.030505333095788956, 0.007341113872826099, 0.023203711956739426, 0.015691466629505157, 0.05297186225652695, 0.025854060426354408, -0.05293675884604454, 0.02262449637055397, -0.0031242514960467815, 0.03850903362035751, 0.006406471133232117, -0.06876864284276962, 0.0615021213889122, -0.0024068146012723446, 0.051532600075006485, 0.02806560881435871, -0.017499320209026337, -0.014515483751893044, -0.06076493859291077, 0.01684989593923092, 0.0017595855752006173, -0.022536735981702805, -0.0362272784113884, -0.06069473177194595, -0.016209248453378677, 0.05019864812493324, 0.01663927175104618, -0.0334891676902771, -0.011522871442139149, -0.031927041709423065, 0.042686402797698975, 0.06364346295595169, 0.021115025505423546, 0.06346794217824936, -0.02806560881435871, 0.011075296439230442, 0.034226350486278534, -0.043669313192367554, 0.007529797498136759, -0.002977253869175911, 0.031172307208180428, -0.014612019062042236, 0.09751877188682556, -0.03608686104416847, -0.019412484019994736, -0.06459126621484756, -0.03854413703083992, -0.04904022067785263, 0.06824208050966263, -0.0063055469654500484, -0.006362590938806534, -0.07122591882944107, 0.008574140258133411, 0.02432703785598278, 0.011356128379702568, 0.022168144583702087, 0.027223113924264908, 0.061642538756132126, -0.014980610460042953, 0.032032355666160583, -0.0702781081199646, -0.04177370294928551, -0.01559493038803339, -0.010592617094516754, 0.055604659020900726, 0.03921111300587654, -0.027082698419690132, -0.07112060487270355, -0.014664675109088421, 0.05040927231311798, -0.046372320502996445, -0.005651736166328192, 0.013874836266040802, 0.016402320936322212, 0.028574615716934204, -0.05957140401005745, 0.03696446120738983, -0.04194922000169754, 0.07147164642810822, 0.04426608234643936, 0.004425291903316975, 0.005875523667782545, 0.013769524171948433, 0.014919178560376167, 0.043353378772735596, 0.010706705041229725, 0.04893490672111511, 0.017174607142806053, -0.032751984894275665, -0.04651273414492607, 0.03403327986598015, -0.021430961787700653, -0.03025960549712181, -0.03101433999836445, 0.010838344693183899, 0.016683151945471764, -0.059817131608724594, -0.009618482552468777, 0.0053533525206148624, 0.047636061906814575, -0.06216909736394882, -0.018868373706936836, 0.0010432455455884337, -0.005063744727522135, 0.025432812049984932, -0.03113720379769802, 0.012321487069129944, -0.014594467356801033, -0.019026340916752815, -0.050479479134082794, -0.03031226061284542, 0.057675790041685104, 0.06399450451135635, -0.0020437082275748253, -0.023466991260647774, -0.0053182486444711685, 0.0010234995279461145, 0.00581847969442606, -0.06336262822151184, -0.04739033430814743, 0.030979236587882042, -0.07666702568531036, 0.0050461930222809315, 0.05511320382356644, -0.01764851063489914, 0.04079078882932663, -0.03805268183350563, 0.06718896329402924, 0.026591243222355843, 0.01738523133099079, -0.05237509310245514, -0.049988023936748505, -0.004107162356376648, 0.026889625936746597, 0.05111135169863701, 0.031821731477975845, -0.02136075310409069, 0.045494720339775085, 0.005463052075356245, -0.03369979187846184, 0.06132660061120987, 0.10334602743387222, -0.05079541727900505, 0.019359828904271126, 0.013032341375946999, -0.0064766788855195045, -0.034349214285612106, 0.06409981101751328, -0.040158919990062714, 0.023291470482945442, 0.017709942534565926, -0.08438989520072937, -0.049005113542079926, 0.056025903671979904, 0.019623108208179474, 0.03998339921236038, -0.05009333789348602, 0.019693316891789436, -0.00572194391861558, 0.023379230871796608, -0.008982223458588123, 0.057359855622053146, 0.0120845353230834, 0.01238291896879673, -0.0068189422599971294, 0.011540424078702927, -0.059711821377277374, 0.03382265567779541, 0.03129517287015915, -0.03145314007997513, -0.030768612399697304, -0.06964623928070068, -0.019745972007513046, 0.01899123750627041, -0.01872795820236206, -0.054270707070827484, 0.023133503273129463, -0.007433261722326279, -0.02202772907912731, 0.03161110728979111, -0.03320833668112755, 0.023028191179037094, -0.02376537397503853, -0.014120563864707947, 0.020009251311421394, 0.05690350383520126, 0.009627258405089378, -0.053568627685308456, 0.0384388267993927, -0.015989849343895912, -0.0037166308611631393, 0.019078997895121574, -0.0390004888176918, -0.012540886178612709, -0.007661437150090933, 0.04496816173195839, -0.03970256820321083, 0.02613489143550396, 0.022852672263979912, 0.02239632047712803, -0.02652103453874588, -0.008933955803513527, -0.025292396545410156, 0.005950119812041521, 0.023642510175704956, -0.030119189992547035, -0.04967208951711655, -0.0384388267993927, -0.04187901318073273, -0.00004459984484128654, 0.0022422648034989834, 0.007516633253544569, 0.043353378772735596, 0.03766654059290886, -0.008863747119903564, 0.0008644347544759512, -0.04223005101084709, -0.0003529592650011182, 0.012777837924659252, 0.01265497412532568, 0.04882959648966789, 0.017227264121174812, 0.07842222601175308, 0.041036516427993774, -0.07842222601175308, 0.005335800349712372, 0.08080929517745972, -0.032804641872644424, 0.0324009470641613, 0.015024490654468536, -0.0069242543540894985, 0.00044401013292372227, 0.03773674741387367, 0.003484067041426897, 0.004412127658724785, -0.01265497412532568, -0.006002775393426418, 0.03448963165283203, 0.016709480434656143, -0.04595107212662697, -0.05967671424150467, -0.03113720379769802, 0.00012286382843740284, -0.029522422701120377, -0.01597229763865471, -0.02525729313492775, 0.04847855493426323, -0.030540436506271362, 0.04893490672111511, 0.02376537397503853, 0.014032804407179356, 0.014331188052892685, 0.011285919696092606, 0.0625552386045456, -0.04205453395843506, 0.016454976052045822, -0.0000773383944761008, -0.003301965305581689, -0.012040655128657818, -0.02887299843132496, -0.011549199931323528, 0.0516028068959713, -0.006375755183398724, -0.012023103423416615, 0.00653372285887599, 0.027381081134080887, -0.009100698865950108, -0.025573227554559708, -0.08832153677940369, -0.017709942534565926, -0.05486747622489929, -0.027802329510450363, -0.026784313842654228, 0.005164668895304203, -0.00561224389821291, 0.02014966681599617, 0.05683329701423645, -0.024783389642834663, -0.0056297960691154, -0.08691737800836563, 0.014971834607422352, -0.056517358869314194, 0.018096085637807846, -0.010741808451712132, 0.008517095819115639, -0.014410171657800674, 0.00005210742529015988, 0.019254516810178757, -0.047565851360559464, -0.04079078882932663, 0.028732582926750183, -0.05360373109579086, -0.06101066619157791, 0.013427261263132095, -0.010478529147803783, -0.034401871263980865, -0.012935806065797806, -0.04868917912244797, -0.027714569121599197, -0.02760925702750683, 0.021782001480460167, 0.00841178372502327, -0.0063055469654500484, 0.008354740217328072, 0.030557988211512566, 0.0757543221116066, 0.05518341064453125, -0.06216909736394882, 0.056587569415569305, 0.0010849314276129007, 0.03385775908827782, -0.023905789479613304, -0.027767224237322807, 0.0713663324713707, 0.027486393228173256, -0.0025889163371175528, 0.07217372208833694, -0.07533308118581772, 0.0007827084045857191, 0.006805778481066227, -0.027872536331415176, 0.029522422701120377, -0.07442037761211395, -0.04479264095425606, 0.055429138243198395, -0.021343201398849487, 0.046758461743593216, 0.0003126445517409593, 0.014208324253559113, -0.002238973742350936, -0.05072520673274994, -0.050058234483003616, 0.02629285864531994, -0.004655661527067423, -0.014840194955468178, 0.0024375305511057377, -0.002384874736890197, 0.028293784707784653, -0.0007744809263385832, -0.0028170919977128506, -0.01238291896879673, -0.0016926686512306333, -0.030119189992547035, 0.018324261531233788, -0.059817131608724594, 0.026433274149894714, 0.04416076838970184, -0.016604168340563774, 0.014761211350560188, -0.04184390977025032, 0.056692879647016525, 0.08298573642969131, -0.006669750437140465, -0.039351530373096466, -0.013295621611177921, -0.018359366804361343, 0.010232801549136639, -0.07101529091596603, -0.06961113214492798, 0.05121666565537453, -0.000005536413937079487, -0.0028894939459860325, -0.008995387703180313, 0.004427485633641481, 0.0499529205262661, -0.0032273693941533566, 0.0027929581701755524, -0.09407858550548553, 0.028258679434657097, -0.018640197813510895, -0.00813972856849432, -0.03647300601005554, -0.022589392960071564, 0.057956621050834656, -0.003824136685580015, -0.03464759886264801, 0.03886007145047188, 0.008517095819115639, -0.07786056399345398, 0.06080004200339317, -0.0056254081428050995, 0.06662730127573013, 0.0006422926089726388, -0.06989196687936783, 0.035876236855983734, -0.01666560024023056, 0.008701391518115997, 0.0015829687472432852, 0.02136075310409069, 0.01576167345046997, -0.05040927231311798, -0.020676227286458015, -0.04538940638303757, 0.008534647524356842, 0.03320833668112755, -0.002953119808807969, 0.055429138243198395, -0.0021095280535519123, -0.025660987943410873, 0.06417002528905869, 0.006257279310375452, 0.03312057629227638, -0.020799091085791588, -0.02882034331560135, -0.013901164755225182, -0.08375802636146545, -0.019588004797697067, 0.02536260336637497, 0.0005526129971258342, -0.01578800193965435, -0.029961220920085907, -0.012786613777279854, 0.0708397701382637, 0.014594467356801033, 0.020290084183216095, 0.0047302572056651115, -0.02130809798836708, -0.0156388096511364 ]
730,213
mmengine.fileio.backends.petrel_backend
copy_if_symlink_fails
Create a symbolic link pointing to src named dst. Directly copy src to dst because PetrelBacekend does not support create a symbolic link. Args: src (str or Path): A file or directory to be copied. dst (str or Path): Copy a file or directory to dst. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. Returns: bool: Return False because PetrelBackend does not support create a symbolic link. Examples: >>> backend = PetrelBackend() >>> src = 'petrel://path/of/file' >>> dst = 'petrel://path/of/your/file' >>> backend.copy_if_symlink_fails(src, dst) False >>> src = 'petrel://path/of/dir' >>> dst = 'petrel://path/of/your/dir' >>> backend.copy_if_symlink_fails(src, dst) False
def copy_if_symlink_fails( self, src: Union[str, Path], dst: Union[str, Path], ) -> bool: """Create a symbolic link pointing to src named dst. Directly copy src to dst because PetrelBacekend does not support create a symbolic link. Args: src (str or Path): A file or directory to be copied. dst (str or Path): Copy a file or directory to dst. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. Returns: bool: Return False because PetrelBackend does not support create a symbolic link. Examples: >>> backend = PetrelBackend() >>> src = 'petrel://path/of/file' >>> dst = 'petrel://path/of/your/file' >>> backend.copy_if_symlink_fails(src, dst) False >>> src = 'petrel://path/of/dir' >>> dst = 'petrel://path/of/your/dir' >>> backend.copy_if_symlink_fails(src, dst) False """ if self.isfile(src): self.copyfile(src, dst) else: self.copytree(src, dst) return False
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> bool
[ 0.017480891197919846, -0.027439307421445847, -0.007074487861245871, -0.001821120735257864, -0.03897501528263092, -0.0054971943609416485, 0.010331738740205765, 0.030519230291247368, 0.06499569118022919, -0.020980803295969963, 0.05331065505743027, 0.008675114251673222, 0.06443570554256439, -0.021242130547761917, -0.028129955753684044, -0.0028815940022468567, 0.016696911305189133, 0.04016965255141258, -0.00215244572609663, 0.059545163065195084, 0.007275149691849947, 0.04091630131006241, 0.05749187991023064, 0.0022154441103339195, -0.011918365955352783, 0.08601383119821548, -0.002091780537739396, 0.0003788654285017401, -0.010947723872959614, 0.07403013110160828, 0.00534319831058383, -0.02309008315205574, 0.08168327063322067, 0.024602046236395836, 0.04435088112950325, 0.024340718984603882, -0.047561466693878174, 0.018264872953295708, -0.12894608080387115, -0.08982173353433609, 0.007699805777519941, -0.005767854396253824, -0.008348455652594566, 0.024079391732811928, 0.03417780250310898, -0.032273851335048676, -0.047150809317827225, -0.004006232134997845, -0.0245647132396698, -0.06861693412065506, -0.0227914247661829, 0.06294240802526474, 0.010285073891282082, 0.031564537435770035, -0.013476992957293987, 0.016995571553707123, 0.002024115528911352, 0.07272350043058395, -0.09430161863565445, 0.02391139604151249, 0.013682321645319462, -0.01133971381932497, -0.02868994139134884, -0.015399611555039883, 0.024284720420837402, -0.07877134531736374, -0.056483905762434006, -0.07201418280601501, -0.0008213125984184444, 0.009911749511957169, -0.06981156766414642, 0.06353972852230072, -0.019804833456873894, -0.0023589404299855232, 0.03443913161754608, 0.0026412666775286198, 0.06088912859559059, -0.02077547460794449, 0.06529434770345688, -0.021298129111528397, -0.05737988278269768, -0.07085687667131424, -0.003982899244874716, -0.024303385987877846, 0.0008848943398334086, 0.023836731910705566, 0.023127416148781776, -0.024788707494735718, -0.028857937082648277, 0.019580839201807976, -0.02014082483947277, -0.015268947929143906, 0.030799223110079765, -0.064958356320858, 0.0028629277367144823, 0.012609015218913555, 0.0030122571624815464, -0.03464445844292641, 0.04282025247812271, 0.0267486572265625, 0.0028115955647081137, 0.014410302974283695, -0.03496178239583969, 0.02609534189105034, 0.061971768736839294, 0.01665024645626545, 0.0011823867680504918, -0.005310532636940479, -0.03636175021529198, -0.07025955617427826, -0.012795676477253437, 0.002176945097744465, 0.07410479336977005, -0.035521768033504486, -0.022530097514390945, -0.035689763724803925, 0.03890034928917885, -0.0778006985783577, 0.0024219388142228127, -0.0025549354031682014, 0.006705830805003643, 0.028073957189917564, 0.022119442000985146, -0.0371270626783371, 0.06320373713970184, -0.020215488970279694, 0.051929354667663574, -0.02148479036986828, -0.007051155436784029, 0.01785421557724476, -0.011162384413182735, 0.012347687967121601, -0.022996753454208374, 0.03376714885234833, -0.03322582691907883, -0.006794495042413473, -0.011078386567533016, 0.0330205000936985, -0.005119204055517912, -0.04681481793522835, 0.018414201214909554, -0.05450528860092163, -0.028185954317450523, 0.04535885527729988, -0.0032525844871997833, -0.0005468612071126699, -0.03503644838929176, 0.016108926385641098, 0.07365680485963821, 0.020215488970279694, 0.040953632444143295, -0.012049028649926186, -0.061859771609306335, 0.07496344298124313, -0.05510260909795761, 0.026188671588897705, -0.05846252292394638, -0.02030882053077221, 0.02693532034754753, 0.01959950476884842, -0.03578309714794159, -0.07612074166536331, -0.0040108985267579556, -0.005590525455772877, 0.017919547855854034, 0.002116279909387231, -0.009678422473371029, -0.023538071662187576, 0.03897501528263092, 0.05178002640604973, 0.012917007319629192, -0.004636216443032026, 0.0865364819765091, -0.006836493965238333, 0.02085014060139656, 0.010173076763749123, 0.07877134531736374, -0.0031732532661408186, -0.038713689893484116, -0.031191213056445122, 0.038825687021017075, -0.03171386569738388, 0.01511961780488491, 0.003579242853447795, 0.013075670227408409, 0.03359915316104889, -0.056782566010951996, 0.014886290766298771, -0.00008144586172420532, 0.016668912023305893, 0.00030070074717514217, 0.042260266840457916, 0.018572865054011345, 0.0015516275307163596, -0.02473270893096924, -0.058499857783317566, 0.037052396684885025, -0.013476992957293987, -0.011386379599571228, 0.08967240154743195, -0.019692836329340935, -0.025311360135674477, 0.023108750581741333, 0.038228366523981094, 0.008031130768358707, -0.023351410403847694, 0.016799576580524445, 0.06671298295259476, -0.05136936902999878, -0.01891818828880787, -0.018526198342442513, -0.06417437642812729, 0.008740445598959923, 0.03779904544353485, 0.01930084638297558, 0.031676534563302994, -0.005235867574810982, 0.0302952341735363, -0.04625483229756355, 0.03565243259072304, -0.010471735149621964, -0.005529860500246286, -0.029380591586232185, 0.01967417076230049, 0.03496178239583969, -0.005581192206591368, 0.03460712730884552, 0.024490049108862877, 0.049988072365522385, 0.002659932943060994, -0.03023923560976982, 0.002785929711535573, 0.021634120494127274, -0.014242307282984257, 0.07627007365226746, -0.01571693643927574, 0.06275574862957001, -0.003737905528396368, 0.004946541972458363, 0.010359738022089005, -0.03442046418786049, 0.029436590149998665, 0.03897501528263092, 0.02126079611480236, 0.025647351518273354, -0.00222827703692019, 0.000053118448704481125, -0.030220570042729378, -0.039124347269535065, -0.043081577867269516, 0.0004762796452268958, 0.05532660335302353, -0.06279308348894119, -0.002356607234105468, -0.004582550842314959, -0.04016965255141258, -0.0037635716143995523, -0.033991143107414246, 0.015726270154118538, 0.0464041605591774, -0.014428968541324139, -0.003740238957107067, -0.00022836923017166555, -0.033393822610378265, -0.028727274388074875, -0.05461728572845459, -0.017154233530163765, 0.03447646275162697, 0.0018001211574301124, 0.039124347269535065, 0.1015441045165062, -0.013094335794448853, -0.009393762797117233, 0.03774304687976837, 0.04401488974690437, -0.010070412419736385, -0.004904543049633503, 0.036100421100854874, 0.06753429770469666, -0.020234156399965286, 0.02120479755103588, -0.005632524378597736, -0.00715848570689559, -0.05835052579641342, -0.022698093205690384, -0.027681967243552208, -0.0030379232484847307, -0.0030869219917804003, -0.01995416358113289, -0.008661114610731602, 0.017480891197919846, 0.024602046236395836, -0.012245024554431438, 0.030425898730754852, 0.014102310873568058, 0.07063288241624832, -0.0013322996674105525, -0.033039167523384094, -0.008992440067231655, -0.039646998047828674, -0.026561995968222618, -0.008423120714724064, -0.0025362693704664707, 0.05640924349427223, -0.05155603215098381, -0.021839449182152748, 0.02344474196434021, -0.0001486004184698686, -0.0009292265167459846, 0.010061079636216164, 0.013654321432113647, -0.06365172564983368, -0.019095517694950104, -0.0031802530866116285, 0.02450871467590332, 0.04158828407526016, 0.0035045782569795847, -0.007508477196097374, -0.022007444873452187, -0.011974364519119263, -0.06861693412065506, 0.06955024600028992, -0.012189025990664959, 0.032815173268318176, -0.01210502814501524, -0.00865178182721138, 0.06294240802526474, -0.000055561096814926714, 0.0015527941286563873, 0.0431189127266407, 0.020047493278980255, 0.03727639093995094, 0.013579657301306725, 0.019879497587680817, -0.05939583480358124, -0.01659424789249897, -0.017807550728321075, -0.06738496571779251, -0.0034112471621483564, -0.010145077481865883, 0.05644657462835312, 0.00892710778862238, 0.024378051981329918, -0.04662815481424332, 0.07444078475236893, 0.016220923513174057, -0.06921425461769104, 0.0010243074502795935, -0.018171541392803192, 0.08534184843301773, 0.004472887143492699, 0.061859771609306335, -0.018264872953295708, -0.03783637657761574, -0.02510603331029415, -0.016416918486356735, -0.011871700175106525, -0.013532991521060467, 0.021988777443766594, -0.05319865792989731, 0.059545163065195084, 0.002792929532006383, -0.014092977158725262, -0.016314255073666573, 0.02510603331029415, 0.005571859423071146, 0.005021206568926573, 0.0017441225936636329, -0.056707900017499924, -0.0015784600982442498, 0.0011497209779918194, -0.014886290766298771, 0.02952992171049118, -0.07634473592042923, 0.04140162095427513, -0.043604232370853424, 0.03856435790657997, -0.04069230705499649, 0.019170181825757027, 0.02060747891664505, 0.05409463495016098, -0.02551668882369995, -0.027439307421445847, 0.02267942763864994, 0.04192427545785904, -0.015754269436001778, 0.011899699456989765, -0.022287437692284584, 0.03718306124210358, -0.015894265845417976, -0.010303739458322525, 0.0021979445591568947, 0.05835052579641342, -0.021055467426776886, 0.003952566999942064, -0.06402505189180374, -0.00809179525822401, 0.029436590149998665, -0.037407055497169495, 0.07989131659269333, -0.02928726002573967, 0.03307649865746498, -0.015987595543265343, 0.040132321417331696, -0.029679249972105026, 0.03100454993546009, 0.016911573708057404, 0.008390454575419426, 0.012609015218913555, 0.08616315573453903, 0.0007606474682688713, 0.02421005629003048, -0.04382822662591934, -0.0192448478192091, -0.0302952341735363, 0.066041000187397, -0.019067518413066864, -0.0709688737988472, -0.045022863894701004, -0.009585090912878513, -0.010509068146348, -0.029025934636592865, 0.024546047672629356, 0.002054448239505291, 0.015464942902326584, -0.04565751552581787, 0.04016965255141258, 0.015128951519727707, -0.049278754740953445, 0.021522123366594315, 0.033692482858896255, 0.002792929532006383, 0.06391305476427078, 0.009239766746759415, 0.046964146196842194, -0.023948729038238525, 0.022007444873452187, -0.025367358699440956, -0.01727556437253952, -0.005987182259559631, 0.009501093067228794, -0.024303385987877846, -0.008199126459658146, -0.008791778236627579, -0.052825331687927246, -0.030873887240886688, -0.026767324656248093, -0.03904968127608299, 0.010070412419736385, 0.06596633791923523, -0.03391647711396217, 0.04132695496082306, 0.02650599740445614, 0.0363057516515255, -0.03359915316104889, -0.03867635503411293, -0.02603934332728386, -0.041961606591939926, -0.05681989714503288, 0.04009498655796051, 0.016995571553707123, 0.0105743994936347, 0.060553137212991714, -0.031676534563302994, -0.0005742771900258958, 0.02421005629003048, 0.038415029644966125, 0.02060747891664505, -0.0007565642590634525, 0.02574068307876587, -0.000044951990275876597, -0.02290342189371586, 0.05991848558187485, 0.05383330583572388, 0.031023217365145683, -0.031265877187252045, -0.026412665843963623, -0.0015936264535412192, -0.02090613916516304, 0.04155094921588898, -0.006374505814164877, -0.009995747357606888, 0.020626146346330643, 0.015931596979498863, -0.005707189440727234, -0.026953985914587975, 0.006019847933202982, 0.02887660451233387, -0.00948242750018835, 0.0294739231467247, 0.026543330401182175, -0.0447615347802639, -0.005655857268720865, -0.02827928587794304, -0.04842011258006096, -0.0022667760495096445, -0.029081933200359344, 0.07638207077980042, -0.02480737306177616, -0.04517219215631485, -0.0049605416133999825, -0.0038709023501724005, -0.038228366523981094, -0.014540966600179672, -0.03053789585828781, 0.03389780968427658, -0.013029004447162151, 0.0008084796136245131, -0.016463585197925568, 0.012683679349720478, -0.012711678631603718, 0.04005765542387962, 0.00015997512673493475, 0.06380105763673782, 0.06514502316713333, 0.02350074052810669, 0.016463585197925568, -0.028615277260541916, -0.024191388860344887, -0.035167112946510315, 0.02609534189105034, -0.04610550403594971, 0.02822328731417656, -0.039721664041280746, -0.02148479036986828, 0.001384798320941627, 0.02822328731417656, 0.01828353852033615, 0.03570843115448952, -0.03315116465091705, 0.017676886171102524, -0.0009198934421874583, -0.02628200314939022, -0.046740151941776276, 0.03199385851621628, 0.0551399402320385, 0.022586096078157425, 0.009575758129358292, -0.028615277260541916, -0.0259273461997509, -0.012179692275822163, -0.005917184054851532, -0.029847245663404465, -0.01930084638297558, -0.016248922795057297, -0.005319865886121988, -0.03391647711396217, -0.011675705201923847, 0.032796505838632584, -0.06092646345496178, 0.014018313027918339, 0.037519052624702454, 0.032329849898815155, 0.052825331687927246, 0.016556914895772934, 0.0766807273030281, 0.03744438663125038, -0.001279801013879478, 0.02533002756536007, 0.017079569399356842, -0.03040723130106926, -0.08175793290138245, 0.02904460020363331, -0.018526198342442513, 0.004351556766778231, -0.03148987144231796, 0.019823499023914337, -0.033636484295129776, 0.0312472116202116, -0.01954350620508194, -0.0035839094780385494, 0.01213302742689848, -0.023519406095147133, 0.019823499023914337, 0.02516203187406063, -0.044425543397665024, 0.018703527748584747, -0.03518577665090561, 0.025292694568634033, 0.019972829148173332, -0.07220084220170975, 0.037705715745687485, 0.004423888400197029, 0.038937684148550034, 0.009347097016870975, -0.04659082368016243, -0.02226877026259899, 0.016780909150838852, -0.04819611459970474, -0.07115553319454193, -0.05991848558187485, 0.0554012693464756, -0.0038405696395784616, -0.04143895208835602, 0.0016881240298971534, -0.04688948392868042, -0.022156773135066032, -0.06208376586437225, 0.03748172149062157, 0.035055115818977356, -0.027961960062384605, -0.022399434819817543, -0.03596976026892662, -0.03934834152460098, 0.01648225076496601, -0.01340232789516449, -0.03796704113483429, -0.05644657462835312, 0.011433044448494911, -0.04610550403594971, -0.01334632933139801, 0.05398263782262802, 0.00792846642434597, -0.036175087094306946, 0.015810267999768257, -0.03886301815509796, -0.025124698877334595, 0.003595575923100114, 0.021391460672020912, 0.03908701241016388, 0.015548940747976303, -0.005716522224247456, 0.031097881495952606, 0.042036272585392, -0.03294583410024643, -0.013075670227408409, 0.018703527748584747, 0.0354844368994236, -0.07750204205513, -0.011983697302639484, -0.006831827573478222, -0.03352448716759682, 0.05846252292394638, 0.01499828789383173, -0.03290850296616554, -0.0925096645951271, 0.014326305128633976, -0.008185126818716526, 0.0783233568072319, 0.018824858590960503, -0.0537586435675621, -0.03143387287855148, -0.013038337230682373, 0.016043594107031822, -0.022212771698832512, -0.0035302441101521254, -0.004505552817136049, -0.07156619429588318, 0.009123102761805058, -0.0013089668937027454, 0.022996753454208374, 0.011759703047573566, 0.014279639348387718, -0.01254368294030428, 0.08549117296934128, 0.055065277963876724, 0.01978616788983345, -0.06779561936855316, -0.002799929352477193, 0.03331916034221649, 0.021802116185426712, -0.03184453025460243, -0.013271665200591087, -0.0034345800522714853, 0.021298129111528397, 0.03176986426115036, 0.038825687021017075, -0.07167819142341614, -0.05256400629878044, 0.0027369309682399035, -0.06563034653663635, -0.004090229980647564, -0.09243500232696533, -0.006789828650653362, 0.01580093428492546, -0.005571859423071146, 0.005665190517902374, -0.011078386567533016, 0.006822494324296713, -0.07951799035072327, -0.012179692275822163, -0.025946011766791344, -0.003567576641216874, 0.025890013203024864, -0.03408447280526161, 0.035167112946510315, 0.05838786065578461, -0.019207514822483063, 0.010751728899776936, -0.03626841679215431, 0.03018323704600334, 0.05256400629878044, 0.07376880198717117, 0.04506019502878189, -0.07190218567848206, -0.024340718984603882, -0.01314100157469511, 0.04636682942509651, -0.03477512300014496, -0.007793136406689882, 0.02822328731417656, 0.048158783465623856, 0.011237049475312233, -0.056595902889966965, 0.0037892377004027367, -0.05555059760808945, -0.08056329935789108, -0.05092138051986694, 0.03324449434876442, 0.005772520788013935, -0.010210408829152584, -0.015464942902326584, 0.04326824098825455, -0.007447811774909496, -0.018376870080828667, -0.11543174833059311, 0.0026086007710546255, -0.017284896224737167, -0.02331407740712166, -0.04072963818907738, 0.015539607964456081, -0.03890034928917885, -0.026543330401182175, 0.02107413485646248, -0.022100774571299553, -0.07339548319578171, -0.05226534605026245, -0.028652610257267952, 0.04211093485355377, -0.00816179346293211, 0.004997873678803444, 0.05805186927318573, 0.027476640418171883, 0.0031475871801376343, -0.017910214141011238, -0.012151692993938923, 0.038751021027565, 0.055961254984140396, 0.031153880059719086, 0.011125052347779274, 0.06656365096569061, -0.03346848860383034, 0.009930416010320187, -0.05144403502345085, 0.054542623460292816, -0.0032035857439041138, -0.029959242790937424, 0.044910866767168045, 0.020588813349604607, 0.023407408967614174, 0.05551326647400856, -0.014522300101816654, -0.014298305846750736, 0.03542843833565712, 0.05823852866888046, -0.03283383697271347, -0.011591707356274128, -0.01571693643927574, 0.002001949353143573, -0.018414201214909554, -0.04222293570637703, 0.04028164967894554, 0.0024032725486904383, 0.012021029368042946, 0.031321875751018524, 0.007261150050908327, -0.08190726488828659, 0.004489220213145018 ]
730,214
mmengine.fileio.backends.petrel_backend
copyfile
Copy a file src to dst and return the destination file. src and dst should have the same prefix. If dst specifies a directory, the file will be copied into dst using the base filename from src. If dst specifies a file that already exists, it will be replaced. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to dst. Returns: str: The destination file. Raises: SameFileError: If src and dst are the same file, a SameFileError will be raised. Examples: >>> backend = PetrelBackend() >>> # dst is a file >>> src = 'petrel://path/of/file' >>> dst = 'petrel://path/of/file1' >>> backend.copyfile(src, dst) 'petrel://path/of/file1' >>> # dst is a directory >>> dst = 'petrel://path/of/dir' >>> backend.copyfile(src, dst) 'petrel://path/of/dir/file'
def copyfile( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Copy a file src to dst and return the destination file. src and dst should have the same prefix. If dst specifies a directory, the file will be copied into dst using the base filename from src. If dst specifies a file that already exists, it will be replaced. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to dst. Returns: str: The destination file. Raises: SameFileError: If src and dst are the same file, a SameFileError will be raised. Examples: >>> backend = PetrelBackend() >>> # dst is a file >>> src = 'petrel://path/of/file' >>> dst = 'petrel://path/of/file1' >>> backend.copyfile(src, dst) 'petrel://path/of/file1' >>> # dst is a directory >>> dst = 'petrel://path/of/dir' >>> backend.copyfile(src, dst) 'petrel://path/of/dir/file' """ src = self._format_path(self._map_path(src)) dst = self._format_path(self._map_path(dst)) if self.isdir(dst): dst = self.join_path(dst, src.split('/')[-1]) if src == dst: raise SameFileError('src and dst should not be same') self.put(self.get(src), dst) return dst
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> str
[ -0.028364401310682297, -0.06062008813023567, -0.015355308540165424, 0.02323324978351593, -0.06825005263090134, -0.034716349095106125, 0.0250453669577837, 0.040171775966882706, 0.0379781611263752, -0.047954343259334564, -0.009203647263348103, -0.00564617570489645, -0.005441119894385338, 0.047610994428396225, -0.011912285350263119, 0.017625223845243454, 0.03799723461270332, -0.010309992358088493, -0.03435392677783966, 0.028478851541876793, 0.02578928880393505, -0.0005516823730431497, 0.06989049911499023, 0.03591806814074516, -0.006442553363740444, 0.016194604337215424, -0.01699575036764145, -0.04841214045882225, -0.01340966671705246, 0.008369119837880135, 0.05234157294034958, -0.05035778135061264, 0.04158331826329231, -0.008192677050828934, -0.05943744257092476, 0.005202683620154858, -0.03769203647971153, -0.004940403625369072, -0.1321510225534439, -0.1001051664352417, 0.017768286168575287, -0.06870785355567932, 0.06928010284900665, 0.024320518597960472, 0.06260387599468231, -0.007472598925232887, -0.022661002352833748, -0.020085887983441353, 0.009489770978689194, -0.0055460319854319096, -0.0016809770604595542, 0.08667642623186111, -0.02699100784957409, -0.016766851767897606, -0.005107309203594923, 0.06512176990509033, -0.019589940086007118, 0.03387705236673355, -0.10193635523319244, 0.06977605074644089, 0.02353844791650772, -0.046352047473192215, -0.0011146904435008764, -0.015851255506277084, 0.008764924481511116, -0.01899861730635166, -0.0420411191880703, -0.043681561946868896, 0.04658094793558121, -0.009179803542792797, -0.010166930966079235, 0.05752994865179062, -0.0008422767859883606, 0.013619490899145603, 0.02275637537240982, 0.044368255883455276, 0.022947125136852264, -0.013037705793976784, 0.08186954259872437, -0.017424937337636948, -0.04841214045882225, -0.06691481173038483, -0.010538891889154911, -0.05466871336102486, -0.000974609050899744, -0.04318561404943466, -0.004983322229236364, -0.0870579183101654, -0.03187418729066849, 0.028059203177690506, -0.009575608186423779, -0.010042943991720676, -0.015908481553196907, -0.029451671987771988, 0.03496432304382324, -0.06199347972869873, -0.011435412801802158, 0.03914172947406769, -0.008998592384159565, 0.03736776113510132, -0.03433484956622124, 0.018588507547974586, -0.03753943741321564, 0.013695790432393551, 0.054096464067697525, -0.009198878891766071, 0.014163126237690449, 0.024415893480181694, -0.010119243524968624, -0.012875569052994251, -0.024949992075562477, 0.010186005383729935, 0.04810694232583046, -0.002325947629287839, 0.008268976584076881, -0.04318561404943466, -0.01516455877572298, -0.04364341124892235, -0.0029971464537084103, 0.028822200372815132, 0.015975242480635643, 0.034678198397159576, 0.003943738993257284, -0.007138787768781185, 0.043414510786533356, -0.03080599196255207, 0.03729146346449852, -0.026895632967352867, -0.041774068027734756, 0.01544114574790001, -0.026495059952139854, -0.007849328219890594, 0.03944692760705948, 0.045360151678323746, 0.00340725714340806, -0.005560338497161865, 0.017358174547553062, 0.056995853781700134, 0.003001915058121085, 0.05096817761659622, 0.06691481173038483, -0.056690655648708344, 0.00845495704561472, 0.019761614501476288, 0.027238981798291206, -0.06172643229365349, -0.02691470831632614, -0.027448805049061775, 0.0033834134228527546, 0.05287567153573036, -0.02474016696214676, 0.004706735722720623, -0.032293833792209625, 0.022203203290700912, 0.006447322200983763, -0.020791659131646156, 0.0016797848511487246, -0.037138864398002625, -0.02453034371137619, -0.01925612799823284, -0.021230382844805717, -0.054401662200689316, 0.043452661484479904, -0.04333821311593056, 0.026113562285900116, 0.032599031925201416, -0.008159295655786991, 0.029699645936489105, 0.036967188119888306, -0.014535087160766125, -0.028536075726151466, -0.0282118022441864, 0.016366278752684593, -0.026628583669662476, 0.028879424557089806, -0.02916554920375347, 0.05066297948360443, -0.0017870813608169556, -0.00006385626329574734, -0.036490317434072495, 0.07160723954439163, -0.04299486428499222, 0.00022100079513620585, 0.037272389978170395, 0.033896129578351974, 0.018741106614470482, -0.00893182959407568, 0.04165961965918541, 0.014897510409355164, 0.02077258564531803, 0.01933242939412594, 0.013724402524530888, -0.00223295739851892, -0.010634266771376133, 0.00014783060760237277, -0.0837770327925682, 0.03475449979305267, -0.05611840635538101, 0.014849822968244553, 0.0661136656999588, -0.008702930994331837, -0.034067802131175995, 0.06008598953485489, 0.05848369747400284, 0.0063376412726938725, -0.0032236611004918814, 0.02763955481350422, 0.08354813605546951, -0.05268492177128792, -0.02361474744975567, 0.007238931022584438, -0.029909471049904823, 0.03742498904466629, -0.027200831100344658, 0.027238981798291206, -0.015469757840037346, -0.043719708919525146, 0.0013304754393175244, -0.04585609957575798, 0.06935639679431915, 0.0009394396911375225, 0.011511712335050106, -0.0420411191880703, 0.003919895272701979, 0.029318148270249367, -0.0549357607960701, 0.010796403512358665, 0.02603726275265217, 0.010996690019965172, -0.02937537245452404, -0.0050834654830396175, -0.008688624948263168, 0.049213286489248276, -0.026895632967352867, 0.0339915007352829, -0.018245158717036247, 0.015565132722258568, -0.002808781573548913, -0.008812611922621727, -0.029222773388028145, -0.0059656803496181965, 0.01683361455798149, 0.025846512988209724, 0.07996205240488052, 0.008259438909590244, -0.05108262971043587, -0.009408703073859215, -0.02927999757230282, 0.01068195328116417, 0.004296625033020973, 0.06374837458133698, 0.029661497101187706, -0.08423483371734619, 0.037577588111162186, 0.017901809886097908, 0.030100218951702118, -0.01241777092218399, -0.01812117174267769, 0.008001928217709064, 0.055736906826496124, -0.03380075469613075, -0.055050209164619446, -0.0035693938843905926, -0.0643206238746643, -0.009871269576251507, -0.04589425027370453, -0.07374362647533417, 0.005445888731628656, -0.0017358174081891775, -0.01090131513774395, 0.11887488514184952, 0.023786421865224838, -0.023328622803092003, 0.0032570420298725367, 0.04982368275523186, -0.05394386500120163, -0.05134967714548111, 0.06489286571741104, 0.08736312389373779, -0.029489822685718536, 0.05318086966872215, -0.01345735415816307, -0.021039633080363274, -0.0663425624370575, -0.024301445111632347, 0.033381104469299316, -0.006852664053440094, -0.06420616805553436, -0.004604208283126354, -0.011864598840475082, 0.010758253745734692, 0.014306187629699707, -0.06260387599468231, -0.007381992880254984, -0.0242251455783844, -0.00734384311363101, -0.0023903255350887775, -0.04421565681695938, 0.004680507816374302, -0.018226083368062973, -0.01178829837590456, 0.005283751990646124, 0.016938526183366776, 0.03572731837630272, -0.05077742785215378, -0.0209824088960886, 0.03990472853183746, 0.018092559650540352, -0.04948033392429352, 0.028669601306319237, 0.00746306125074625, -0.10742993652820587, -0.01908445544540882, 0.012503608129918575, 0.005388664081692696, 0.03483079746365547, -0.027200831100344658, 0.026857484132051468, -0.00548403849825263, -0.04585609957575798, -0.07771120965480804, 0.056652504950761795, -0.020257562398910522, 0.09583238512277603, 0.062107931822538376, -0.013943764381110668, 0.06729631125926971, -0.002184078097343445, 0.013276142068207264, 0.02063906006515026, 0.007067256607115269, 0.07702451199293137, -0.02241302840411663, 0.030996739864349365, -0.028669601306319237, -0.007567973341792822, -0.007458292413502932, -0.010367217473685741, 0.02569391392171383, 0.011464024893939495, 0.08217474073171616, -0.015002422034740448, 0.007305693347007036, -0.05611840635538101, 0.03872208297252655, 0.005197914782911539, -0.057377349585294724, -0.016146916896104813, -0.009017666801810265, 0.025598539039492607, -0.000829758879262954, 0.013552729040384293, 0.017596611753106117, -0.044330108910799026, -0.014592311345040798, 0.04066772386431694, 0.007959009148180485, -0.01651887781918049, 0.017749210819602013, -0.022908976301550865, 0.07538407295942307, -0.0009352670167572796, 0.00956130214035511, -0.036929041147232056, -0.02760140597820282, 0.026418760418891907, -0.018245158717036247, 0.005469732452183962, -0.057339202612638474, 0.01014785561710596, -0.005708169192075729, 0.002194807631894946, 0.030958591029047966, -0.05382941663265228, -0.009737744927406311, -0.005984755232930183, 0.046619098633527756, -0.011855061165988445, 0.008450188674032688, -0.001145687187090516, 0.07988575100898743, -0.017720598727464676, -0.03753943741321564, 0.04398676007986069, 0.005226527340710163, -0.0005257524317130446, 0.029318148270249367, -0.035975292325019836, 0.01237008348107338, -0.052494172006845474, 0.008497875183820724, 0.027887528762221336, 0.02227950282394886, -0.00486648827791214, -0.032904233783483505, -0.07366733253002167, 0.023462148383259773, 0.013028168119490147, -0.03282793238759041, 0.023652898147702217, -0.008226058445870876, 0.00046971984556876123, 0.006161198019981384, 0.014411100186407566, -0.0776730626821518, -0.003433485049754381, 0.08270884305238724, 0.04005732759833336, 0.0726754367351532, 0.03906543180346489, -0.03216031193733215, -0.013266605325043201, -0.03937062993645668, -0.01999051310122013, -0.027067307382822037, 0.015393458306789398, -0.032255686819553375, -0.08789721876382828, 0.03944692760705948, -0.020391086116433144, -0.05318086966872215, -0.0036290029529482126, -0.00764427287504077, -0.027448805049061775, 0.04165961965918541, -0.05230342224240303, 0.02361474744975567, -0.006795439403504133, -0.015593744814395905, 0.00008449592132819816, 0.02950889617204666, 0.0040987227112054825, 0.026552284136414528, 0.003857902018353343, 0.0772915631532669, -0.012446383014321327, 0.02063906006515026, -0.018073484301567078, 0.04059142246842384, 0.015813106670975685, -0.03416317701339722, -0.03967582806944847, 0.037882786244153976, -0.01747262477874756, -0.08797352015972137, -0.026857484132051468, -0.056042104959487915, -0.05787329748272896, 0.032942380756139755, 0.00804484635591507, -0.0614212341606617, 0.008993823081254959, 0.02937537245452404, 0.022737301886081696, -0.00007238781836349517, -0.017491698265075684, -0.03740591183304787, -0.06191718205809593, -0.02535056509077549, 0.006204116623848677, 0.010023868642747402, 0.04658094793558121, 0.14260408282279968, -0.017148351296782494, -0.011807373724877834, 0.03837873414158821, 0.02552223950624466, 0.035708244889974594, -0.030310044065117836, -0.003214123658835888, 0.014783061109483242, -0.013686252757906914, -0.031092114746570587, 0.02992854453623295, 0.05588950589299202, -0.008898449130356312, -0.018893705680966377, 0.021382981911301613, -0.0379018597304821, 0.06073453649878502, 0.025770213454961777, -0.012303321622312069, -0.02453034371137619, -0.0017274721758440137, 0.030729692429304123, 0.029222773388028145, 0.034849874675273895, 0.024721093475818634, 0.010453054681420326, 0.02132575772702694, 0.0040796478278934956, 0.013533653691411018, -0.03361000493168831, -0.04711504653096199, -0.07820715755224228, 0.05207452550530434, -0.04551275074481964, 0.0008822149247862399, -0.02716268226504326, 0.022565627470612526, -0.017835047096014023, -0.01403913926333189, -0.03763481229543686, 0.004453992936760187, -0.035975292325019836, 0.021306682378053665, -0.0452457033097744, -0.018102096393704414, -0.021650031208992004, 0.022184127941727638, -0.007548898458480835, 0.030863216146826744, -0.029966695234179497, 0.03139731287956238, 0.046008698642253876, 0.004260859452188015, -0.010786865837872028, -0.00670483335852623, -0.014077289029955864, -0.052494172006845474, 0.003633771790191531, -0.007477367762476206, 0.04963293299078941, -0.03443022444844246, -0.03948507830500603, 0.022222278639674187, 0.01622321642935276, -0.0024415894877165556, -0.005560338497161865, 0.005784468725323677, -0.013094930909574032, -0.009947569109499454, -0.015813106670975685, -0.00387697690166533, 0.028669601306319237, 0.05844554677605629, -0.037005338817834854, -0.01317123044282198, -0.023385848850011826, 0.023671971634030342, -0.020238487049937248, 0.0012136416044086218, 0.012436846271157265, -0.016251828521490097, -0.02128760702908039, -0.038130760192871094, -0.0452457033097744, 0.017577536404132843, 0.04753469303250313, -0.032255686819553375, -0.003686227835714817, -0.00874108076095581, -0.008144989609718323, -0.0033810290042310953, -0.00501670315861702, 0.0934670940041542, -0.008354813791811466, -0.0009537458536215127, 0.01665240339934826, 0.016976676881313324, 0.013686252757906914, -0.050205182284116745, 0.020658135414123535, 0.028745900839567184, -0.007296155672520399, 0.02828810177743435, 0.01239869650453329, 0.02565576322376728, 0.00710540683940053, -0.048221390694379807, 0.042422614991664886, 0.048221390694379807, -0.05707215145230293, 0.004291856195777655, 0.0314163900911808, -0.016805002465844154, 0.019351502880454063, 0.016042005270719528, 0.008369119837880135, 0.03769203647971153, -0.05875074490904808, 0.03851225599646568, 0.05077742785215378, 0.03835965692996979, -0.03286608308553696, 0.03771110996603966, -0.02573206275701523, -0.010577041655778885, -0.03174066171050072, -0.0356319434940815, -0.013037705793976784, 0.026590434834361076, 0.024473119527101517, 0.0026394915767014027, -0.01176922395825386, -0.04932773485779762, -0.08820241689682007, -0.05466871336102486, 0.052456021308898926, -0.006909888703376055, -0.007730110082775354, -0.016671476885676384, -0.019351502880454063, -0.004225094337016344, 0.030786916613578796, 0.03408687561750412, -0.030615242198109627, -0.03929432854056358, 0.03456375002861023, -0.019046304747462273, -0.026399685069918633, 0.02210782840847969, -0.012303321622312069, -0.042117416858673096, 0.033247578889131546, 0.0024415894877165556, -0.006962344981729984, 0.002794475294649601, -0.0404006764292717, 0.04387230798602104, -0.007138787768781185, 0.04715319350361824, -0.005450657568871975, 0.04291856288909912, -0.010958540253341198, -0.019322890788316727, -0.02500721625983715, 0.011616624891757965, -0.06653331220149994, -0.035498421639204025, -0.028841273859143257, -0.06065823510289192, 0.024816466495394707, 0.02746788039803505, -0.00035288598155602813, -0.06832635402679443, 0.007482136134058237, -0.012207946740090847, 0.018960468471050262, 0.04295671358704567, 0.013695790432393551, -0.019132141023874283, 0.00048432406038045883, 0.006528390571475029, -0.07305693626403809, 0.005488807335495949, -0.027029158547520638, -0.05970449000597, 0.008874605409801006, -0.04783989116549492, 0.027029158547520638, 0.014248963445425034, -0.043681561946868896, 0.007100638002157211, 0.09110180288553238, -0.01399145182222128, 0.076108917593956, -0.03845503181219101, 0.018292846158146858, 0.05627100542187691, 0.03036726824939251, 0.019198903813958168, 0.023042500019073486, -0.03837873414158821, 0.02384364604949951, 0.01090131513774395, 0.005999061278998852, -0.054058317095041275, -0.022527476772665977, -0.017596611753106117, -0.052837520837783813, -0.008483569137752056, -0.0838533341884613, -0.035288598388433456, 0.042765963822603226, 0.000665833824314177, 0.03660476580262184, 0.002340253908187151, 0.010672416538000107, -0.05070113018155098, 0.08484522998332977, -0.025579463690519333, 0.015469757840037346, -0.046352047473192215, -0.02094425819814205, 0.07988575100898743, -0.009122579358518124, -0.016194604337215424, -0.027067307382822037, -0.031263791024684906, 0.033209431916475296, 0.035536572337150574, 0.003259426448494196, -0.014067751355469227, -0.004387231077998877, 0.04257521405816078, 0.039523229002952576, -0.0038745924830436707, -0.02681933343410492, 0.027715854346752167, -0.02037201076745987, -0.01237008348107338, 0.04055327549576759, -0.008178371004760265, 0.017100663855671883, -0.02569391392171383, 0.013247529976069927, -0.03412502631545067, 0.0758037194609642, -0.037615735083818436, 0.029661497101187706, 0.0034764036536216736, 0.04707689583301544, 0.02544593997299671, 0.014945197850465775, -0.019065380096435547, -0.03101581521332264, -0.010338605381548405, -0.03200771287083626, -0.006633302662521601, -0.01985698938369751, -0.08492153137922287, 0.022260427474975586, -0.017882734537124634, 0.004473068285733461, -0.02292804978787899, -0.025236114859580994, -0.05073928087949753, 0.013905614614486694, 0.05546985939145088, -0.019217979162931442, 0.04612315073609352, 0.04967108368873596, -0.011044377461075783, -0.033075906336307526, -0.022126903757452965, 0.03387705236673355, 0.015975242480635643, 0.02453034371137619, 0.032732557505369186, 0.03835965692996979, -0.002596573205664754, 0.018483594059944153, -0.01154986210167408, 0.06237497925758362, -0.02214597910642624, -0.002097048796713352, 0.0029685338959097862, -0.017205575481057167, 0.05531726032495499, 0.03183603659272194, -0.006275647785514593, 0.019217979162931442, 0.04944218695163727, 0.0024845078587532043, -0.06451137363910675, 0.0015307620633393526, -0.0006479510921053588, 0.030920440331101418, 0.012694356963038445, -0.051807474344968796, 0.0436052605509758, 0.01317123044282198, 0.03914172947406769, 0.035364896059036255, 0.05611840635538101, -0.028669601306319237, 0.026590434834361076 ]
730,215
mmengine.fileio.backends.petrel_backend
copyfile_from_local
Upload a local file src to dst and return the destination file. Args: src (str or Path): A local file to be copied. dst (str or Path): Copy file to dst. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. Returns: str: If dst specifies a directory, the file will be copied into dst using the base filename from src. Examples: >>> backend = PetrelBackend() >>> # dst is a file >>> src = 'path/of/your/file' >>> dst = 'petrel://path/of/file1' >>> backend.copyfile_from_local(src, dst) 'petrel://path/of/file1' >>> # dst is a directory >>> dst = 'petrel://path/of/dir' >>> backend.copyfile_from_local(src, dst) 'petrel://path/of/dir/file'
def copyfile_from_local( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Upload a local file src to dst and return the destination file. Args: src (str or Path): A local file to be copied. dst (str or Path): Copy file to dst. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. Returns: str: If dst specifies a directory, the file will be copied into dst using the base filename from src. Examples: >>> backend = PetrelBackend() >>> # dst is a file >>> src = 'path/of/your/file' >>> dst = 'petrel://path/of/file1' >>> backend.copyfile_from_local(src, dst) 'petrel://path/of/file1' >>> # dst is a directory >>> dst = 'petrel://path/of/dir' >>> backend.copyfile_from_local(src, dst) 'petrel://path/of/dir/file' """ dst = self._format_path(self._map_path(dst)) if self.isdir(dst): dst = self.join_path(dst, osp.basename(src)) with open(src, 'rb') as f: self.put(f.read(), dst) return dst
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> str
[ -0.049093183130025864, -0.01816796138882637, -0.06051470339298248, 0.01480926014482975, -0.030470294877886772, -0.04638298973441124, 0.02448851615190506, 0.028360217809677124, 0.059237040579319, -0.03379995748400688, -0.03316112980246544, -0.03873638063669205, -0.025901686400175095, -0.0004942469531670213, -0.029095841571688652, 0.035793885588645935, 0.005202599801123142, -0.013734863139688969, -0.015360978431999683, 0.009451792575418949, 0.024740176275372505, -0.034787241369485855, 0.10167089849710464, 0.06547047942876816, 0.015573921613395214, -0.02044258639216423, -0.02290111780166626, -0.06845169514417648, -0.029560444876551628, 0.003675697138532996, 0.09021066129207611, 0.011160180903971195, 0.03157373145222664, 0.015254505909979343, -0.022165494039654732, -0.006460902746766806, -0.0011270282557234168, 0.006959384307265282, -0.09578590840101242, -0.10654924064874649, -0.010143859311938286, -0.04227898642420769, 0.0629538744688034, 0.0335870161652565, 0.08997835963964462, -0.001632164348848164, 0.026424366980791092, -0.0690324455499649, 0.04553121700882912, -0.022378437221050262, -0.012108747847378254, 0.10492312908172607, -0.02758587710559368, 0.011276332661509514, -0.019184283912181854, 0.048512425273656845, 0.00003383958392078057, 0.0038499238435178995, -0.12203604727983475, 0.03321920335292816, -0.02808919921517372, -0.02679217793047428, 0.017548490315675735, -0.00858065951615572, -0.011740936897695065, -0.04115619137883186, -0.0404592864215374, -0.014538241550326347, 0.010395520366728306, -0.009737330488860607, -0.05006110668182373, 0.036529507488012314, -0.010598784312605858, 0.01726779155433178, 0.01586429961025715, 0.044834308326244354, 0.06287644058465958, -0.021197568625211716, 0.042511288076639175, 0.02419813722372055, -0.022630099207162857, -0.0528874509036541, -0.004631523508578539, -0.03379995748400688, -0.04553121700882912, -0.045182764530181885, -0.03654886782169342, -0.06740633398294449, -0.015070600435137749, 0.01621275208890438, 0.006146327126771212, 0.023365721106529236, -0.025379007682204247, -0.0302767101675272, 0.01871967874467373, -0.060282401740550995, -0.018371226266026497, 0.01498348731547594, -0.04119490832090378, 0.02890225686132908, -0.05087416619062424, 0.01700645126402378, -0.044834308326244354, 0.0005402234382927418, 0.05706888809800148, -0.00095522147603333, 0.024294931441545486, -0.012766937725245953, 0.02146858721971512, 0.011586068198084831, 0.01795501820743084, -0.0216815322637558, 0.013241221196949482, 0.012844371609389782, 0.01444144919514656, -0.027489084750413895, 0.005071929655969143, -0.04375023394823074, -0.02218485251069069, 0.003828145330771804, 0.0015232728328555822, 0.033335354179143906, -0.0010514090536162257, -0.03230935335159302, 0.03581324592232704, -0.02456595003604889, 0.07654354721307755, -0.05548148974776268, -0.06272157281637192, -0.007119092158973217, -0.0018656764877960086, 0.025127345696091652, -0.012699183076620102, 0.06221825256943703, 0.007196526043117046, -0.008871037513017654, 0.01592237502336502, 0.05242284759879112, 0.0038499238435178995, 0.04115619137883186, 0.07267184555530548, -0.04924805089831352, 0.0007453026482835412, 0.016086922958493233, 0.02543708309531212, -0.01951337791979313, -0.031960900872945786, -0.06682557612657547, -0.002618238562718034, 0.041349779814481735, -0.008871037513017654, -0.0196972843259573, -0.043014608323574066, 0.07286543399095535, 0.0034675931092351675, -0.024682100862264633, -0.022049343213438988, -0.02803112380206585, 0.014180108904838562, -0.001350256148725748, -0.05137748643755913, -0.025340290740132332, 0.08370620012283325, -0.011537672020494938, 0.009659896604716778, 0.017896942794322968, 0.017654960975050926, 0.010269689373672009, -0.01874871738255024, -0.002935234224423766, 0.013609033077955246, -0.0044137402437627316, 0.014576958492398262, -0.028050482273101807, 0.019977983087301254, -0.04541506618261337, 0.0386008694767952, -0.023946477100253105, 0.008251565508544445, -0.015244826674461365, 0.03958815336227417, -0.018893906846642494, 0.019919907674193382, 0.02065553143620491, 0.03964623063802719, 0.004389542154967785, -0.03523248806595802, 0.02890225686132908, 0.006412506569176912, 0.011769974604249, 0.04196925088763237, 0.001500284532085061, -0.020926550030708313, -0.023520590737462044, 0.008319320157170296, -0.04932548478245735, 0.054862018674612045, -0.06725146621465683, -0.002260106150060892, 0.037381283938884735, 0.001837848569266498, -0.017838867381215096, 0.029560444876551628, 0.04421483725309372, -0.00429032975807786, 0.02803112380206585, 0.010337444953620434, 0.06632225960493088, -0.03999468311667442, 0.02210741862654686, -0.00046520918840542436, -0.015903016552329063, 0.007182007189840078, -0.006165685597807169, 0.002439172239974141, 0.001019951538182795, -0.09477926790714264, 0.07003909349441528, 0.006078572478145361, 0.06423153728246689, -0.015593280084431171, -0.003711994271725416, -0.025979120284318924, -0.025843610987067223, 0.03606490418314934, -0.05838526785373688, 0.006780318450182676, 0.024236854165792465, 0.005328429862856865, 0.005841430276632309, -0.006644808687269688, -0.03668437898159027, 0.03747807443141937, -0.020113492384552956, 0.009959953837096691, 0.002673894166946411, 0.03972366452217102, -0.02470145933330059, -0.007012620568275452, -0.01732586696743965, 0.01036648266017437, 0.004166919272392988, 0.02448851615190506, 0.01871967874467373, -0.0319996178150177, -0.029792748391628265, -0.017732394859194756, -0.028844179585576057, 0.03790396451950073, -0.004592806566506624, 0.016086922958493233, 0.05462971702218056, -0.09121730178594589, 0.06686429679393768, 0.03459365665912628, -0.009011386893689632, -0.007859555073082447, -0.023656100034713745, -0.023094702512025833, 0.024895044043660164, -0.05056443065404892, -0.07631124556064606, 0.024836968630552292, -0.025185421109199524, -0.016667677089571953, -0.058695003390312195, -0.05714632198214531, 0.0021282262168824673, 0.004849306773394346, -0.010356803424656391, 0.1541711837053299, 0.03316112980246544, 0.0012776616495102644, -0.004362924490123987, 0.06039855256676674, -0.047505784779787064, -0.0605534203350544, 0.07286543399095535, 0.051687221974134445, -0.008275763131678104, 0.018893906846642494, -0.0208878330886364, -0.029231350868940353, -0.06686429679393768, -0.02384968474507332, 0.024740176275372505, -0.01740330085158348, -0.0769694373011589, -0.00394671643152833, -0.03625848889350891, 0.030025050044059753, 0.034051619470119476, -0.036432716995477676, -0.03033478558063507, -0.02803112380206585, -0.025243498384952545, -0.012341050431132317, -0.026617951691150665, 0.010347124189138412, 0.006760959979146719, -0.03407097980380058, -0.014906053431332111, -0.01380261778831482, 0.025979120284318924, -0.00521711865440011, -0.028495727106928825, 0.0388718880712986, -0.02572746016085148, -0.05354563891887665, 0.003540187608450651, 0.01387037243694067, -0.08517744392156601, -0.026927687227725983, -0.02998633310198784, 0.014489845372736454, 0.04169823229312897, -0.012021634727716446, 0.005536533892154694, 0.024101344868540764, -0.04824140667915344, -0.0288248211145401, 0.0589660219848156, -0.039336491376161575, 0.08471284061670303, 0.01159574743360281, -0.015506166964769363, 0.0735236257314682, 0.01560295931994915, 0.001540211495012045, 0.028708670288324356, -0.003157857106998563, 0.06810323894023895, -0.019561775028705597, 0.004558929242193699, 0.002160893753170967, -0.013928447850048542, -0.021294360980391502, -0.02954108640551567, 0.051532354205846786, -0.032328713685274124, 0.09594077616930008, -0.019736001268029213, 0.0286893118172884, -0.025107987225055695, 0.027798820286989212, 0.06624482572078705, -0.04123362526297569, -0.002901356667280197, 0.04595710337162018, 0.038910605013370514, -0.02803112380206585, -0.005144523922353983, 0.010327765718102455, -0.03707154840230942, -0.01932947337627411, 0.03019927628338337, 0.018603527918457985, -0.0005620017764158547, 0.04096260666847229, -0.025049911811947823, 0.04347921535372734, -0.025340290740132332, 0.015583600848913193, -0.038910605013370514, -0.01412203349173069, -0.011750616133213043, 0.025243498384952545, -0.018003415316343307, -0.07716302573680878, 0.021836400032043457, 0.010482633486390114, -0.006518978159874678, 0.053352054208517075, -0.024740176275372505, -0.03300626203417778, -0.0049654580652713776, 0.040498003363609314, -0.03126399591565132, -0.007782121188938618, 0.018874548375606537, 0.07243954390287399, 0.0005834776093252003, -0.0019382708705961704, 0.053855374455451965, 0.03480660170316696, 0.009664736688137054, 0.03289010748267174, -0.043634083122015, -0.014296259731054306, -0.02774074487388134, 0.008725848980247974, 0.007114252541214228, 0.08502257615327835, 0.015554563142359257, -0.00932112243026495, -0.07224596291780472, -0.007999904453754425, -0.009809925220906734, 0.017761433497071266, 0.02998633310198784, 0.00007803899643477052, -0.029153916984796524, -0.02998633310198784, 0.007409469690173864, -0.05675915256142616, 0.025185421109199524, 0.052693866193294525, 0.03151565417647362, 0.032619088888168335, 0.06368950009346008, -0.006538337096571922, 0.0325222983956337, -0.029444294050335884, -0.009282405488193035, -0.051261335611343384, 0.028360217809677124, -0.03827177360653877, -0.1039164811372757, 0.03157373145222664, -0.008643575012683868, -0.027353575453162193, -0.007622413337230682, 0.006543176714330912, -0.05571379140019417, 0.023714175447821617, -0.03844600170850754, -0.004474235698580742, -0.018187319859862328, -0.04398253560066223, 0.008130574598908424, 0.02028771862387657, -0.01217650342732668, 0.058695003390312195, -0.016338583081960678, 0.05354563891887665, 0.04452457278966904, 0.044602006673812866, 0.00596242118626833, 0.021720249205827713, 0.023675458505749702, -0.024469157680869102, -0.044834308326244354, 0.017761433497071266, -0.039336491376161575, -0.0745689794421196, -0.02086847461760044, -0.10515543073415756, -0.032038334757089615, -0.0021028181072324514, 0.04615068808197975, -0.07391079515218735, 0.012031313963234425, 0.008658093400299549, 0.018448660150170326, -0.014818939380347729, -0.0011488066520541906, -0.021352436393499374, -0.032541655004024506, -0.024604666978120804, 0.032696522772312164, 0.018129244446754456, 0.042085401713848114, 0.14820875227451324, -0.005662364419549704, 0.01986183226108551, 0.017790470272302628, 0.04599582031369209, 0.01458663772791624, -0.04371151700615883, -0.00006249925354495645, 0.012524955905973911, -0.018497057259082794, -0.01589333638548851, 0.05613968148827553, 0.05776579678058624, -0.014799580909311771, -0.014073637314140797, 0.0219525508582592, -0.03422584757208824, 0.02607591263949871, 0.021546022966504097, -0.024527233093976974, 0.008643575012683868, 0.02570810168981552, 0.010618142783641815, 0.011557030491530895, 0.025379007682204247, 0.06442512571811676, 0.03157373145222664, 0.04088517278432846, -0.022417154163122177, 0.013783259317278862, -0.012660466134548187, -0.04723476618528366, -0.08177034556865692, 0.05215182527899742, -0.04038185253739357, 0.035213131457567215, -0.01845834031701088, 0.011682860553264618, 0.022572023794054985, 0.0052219582721591, -0.025475800037384033, 0.007375592365860939, -0.027043839916586876, 0.008658093400299549, 0.0002040205436060205, -0.02969595417380333, -0.0407303050160408, 0.04328563064336777, -0.031244635581970215, 0.008275763131678104, -0.005894666537642479, -0.010298727080225945, 0.026346933096647263, 0.044176120311021805, -0.0034748525358736515, 0.005163882859051228, -0.02977338805794716, -0.06783222407102585, -0.01445112843066454, -0.03589067980647087, 0.05675915256142616, -0.026385650038719177, -0.05521047115325928, 0.04162079840898514, 0.0045540896244347095, 0.0404592864215374, -0.04224026948213577, 0.019977983087301254, 0.011818370781838894, 0.011218256317079067, -0.006436704657971859, -0.022843042388558388, 0.06407666951417923, 0.061018023639917374, -0.03443878889083862, -0.0719362273812294, -0.02073296532034874, -0.004677500110119581, -0.028418293222784996, -0.02015220932662487, 0.02816663309931755, -0.02266881614923477, -0.0020931388717144728, -0.048860881477594376, -0.03937520831823349, 0.019242359325289726, 0.023385081440210342, -0.044834308326244354, -0.005347788333892822, -0.034361355006694794, -0.009359839372336864, 0.017074206843972206, -0.003029606770724058, 0.05722375586628914, -0.001448258524760604, 0.009901878423988819, -0.008024103008210659, 0.009306604042649269, 0.006533497478812933, -0.00957278348505497, 0.008014422841370106, 0.07782121002674103, -0.02528221532702446, 0.007917630486190319, 0.005013854242861271, 0.00004794256165041588, -0.0010895212180912495, -0.048512425273656845, 0.03838792443275452, 0.008391913957893848, -0.05439741536974907, -0.0018680962966755033, 0.033916112035512924, -0.00311672012321651, 0.005246156360954046, -0.007583696395158768, 0.029018407687544823, 0.05733990669250488, -0.05675915256142616, 0.02737293392419815, 0.039123550057411194, 0.0468088798224926, -0.04855114221572876, 0.017209716141223907, 0.004580707289278507, -0.013037956319749355, -0.07046497613191605, -0.004745254758745432, -0.014102675020694733, 0.005580090451985598, 0.04498917981982231, 0.018981019034981728, -0.005110646598041058, -0.0949341356754303, -0.0589660219848156, -0.05757220834493637, 0.043595366179943085, -0.003356281667947769, 0.002332700416445732, -0.033993545919656754, -0.06024368479847908, 0.003378059947863221, 0.026133989915251732, -0.022165494039654732, -0.045840952545404434, -0.02028771862387657, 0.02729550004005432, -0.01192484237253666, -0.017838867381215096, -0.0013187985168769956, -0.024527233093976974, -0.00809185765683651, 0.08479027450084686, -0.006238279864192009, 0.02052002027630806, 0.0024585307110100985, 0.02766331098973751, 0.04847370833158493, -0.011818370781838894, 0.02644372545182705, -0.01586429961025715, 0.052693866193294525, -0.0008451199973933399, -0.04220155254006386, 0.006310874596238136, -0.016706394031643867, -0.06450255960226059, -0.003980593755841255, -0.044253554195165634, -0.044679440557956696, 0.024895044043660164, 0.04913190007209778, 0.0208878330886364, -0.07255569845438004, -0.009611500427126884, -0.018448660150170326, 0.018129244446754456, -0.012263616546988487, -0.02493376098573208, -0.022707533091306686, -0.0020193345844745636, -0.004520212300121784, -0.040265701711177826, -0.013783259317278862, -0.010753652080893517, -0.05242284759879112, 0.008817801252007484, -0.012921805493533611, 0.01451888307929039, 0.005323590245097876, -0.010385841131210327, 0.03422584757208824, 0.03560030087828636, 0.03364508971571922, 0.0859517827630043, -0.03230935335159302, 0.02448851615190506, 0.0327933169901371, 0.010608463548123837, -0.004578287713229656, 0.058617569506168365, 0.01700645126402378, 0.008871037513017654, 0.04255000501871109, 0.004646042361855507, -0.051532354205846786, -0.02131371945142746, -0.022146135568618774, -0.06090187281370163, 0.003056224901229143, -0.05664300173521042, -0.026695385575294495, 0.03560030087828636, 0.018022773787379265, 0.04146593064069748, -0.0210233423858881, -0.0010018028551712632, -0.018922943621873856, 0.0296185202896595, -0.002681153593584895, 0.03126399591565132, 0.0023339104373008013, -0.00796118751168251, 0.0655866339802742, 0.022552665323019028, -0.041504647582769394, 0.017606565728783607, -0.006635129451751709, 0.0393945686519146, 0.037323206663131714, 0.045686084777116776, 0.003070743754506111, -0.026985762640833855, 0.026346933096647263, 0.032038334757089615, -0.03083810769021511, -0.03823305666446686, 0.04003340005874634, 0.0019056033343076706, 0.005918864626437426, 0.02535964921116829, -0.057107605040073395, 0.010472954250872135, -0.02969595417380333, 0.009079141542315483, -0.021139493212103844, 0.057107605040073395, -0.04979008808732033, 0.017180677503347397, -0.0036369801964610815, 0.032251279801130295, -0.00006888907228130847, 0.03070259839296341, 0.02745036780834198, -0.007230403833091259, -0.03151565417647362, -0.024798251688480377, -0.003578904550522566, -0.012002276256680489, -0.10376161336898804, 0.003528088564053178, -0.020616812631487846, 0.01842930167913437, -0.057610925287008286, -0.04436970502138138, -0.0367618128657341, -0.005154203157871962, 0.04762193560600281, 0.0009431224316358566, 0.04638298973441124, 0.033838674426078796, -0.005178401712328196, -0.0322706364095211, -0.017819508910179138, 0.04824140667915344, 0.04239513725042343, 0.0011348926927894354, 0.045763518661260605, 0.02621142379939556, -0.012370088137686253, 0.013357372023165226, -0.008498386479914188, 0.048357557505369186, 0.0044403583742678165, 0.01986183226108551, -0.03627784922719002, -0.02781817875802517, 0.08300929516553879, 0.04278230667114258, -0.002567422343418002, 0.02311406098306179, 0.014702788554131985, 0.011160180903971195, -0.050099823623895645, -0.00784019660204649, 0.003711994271725416, -0.027508443221449852, 0.008962990716099739, -0.052771300077438354, 0.009950274601578712, 0.013986524194478989, 0.034361355006694794, 0.006059213541448116, 0.0423177033662796, -0.03416777029633522, 0.007675649598240852 ]
730,216
mmengine.fileio.backends.petrel_backend
copyfile_to_local
Copy the file src to local dst and return the destination file. If dst specifies a directory, the file will be copied into dst using the base filename from src. If dst specifies a file that already exists, it will be replaced. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to to local dst. Returns: str: If dst specifies a directory, the file will be copied into dst using the base filename from src. Examples: >>> backend = PetrelBackend() >>> # dst is a file >>> src = 'petrel://path/of/file' >>> dst = 'path/of/your/file' >>> backend.copyfile_to_local(src, dst) 'path/of/your/file' >>> # dst is a directory >>> dst = 'path/of/your/dir' >>> backend.copyfile_to_local(src, dst) 'path/of/your/dir/file'
def copyfile_to_local( self, src: Union[str, Path], dst: Union[str, Path], ) -> Union[str, Path]: """Copy the file src to local dst and return the destination file. If dst specifies a directory, the file will be copied into dst using the base filename from src. If dst specifies a file that already exists, it will be replaced. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to to local dst. Returns: str: If dst specifies a directory, the file will be copied into dst using the base filename from src. Examples: >>> backend = PetrelBackend() >>> # dst is a file >>> src = 'petrel://path/of/file' >>> dst = 'path/of/your/file' >>> backend.copyfile_to_local(src, dst) 'path/of/your/file' >>> # dst is a directory >>> dst = 'path/of/your/dir' >>> backend.copyfile_to_local(src, dst) 'path/of/your/dir/file' """ if osp.isdir(dst): basename = osp.basename(src) if isinstance(dst, str): dst = osp.join(dst, basename) else: assert isinstance(dst, Path) dst = dst / basename with open(dst, 'wb') as f: f.write(self.get(src)) return dst
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> Union[str, pathlib.Path]
[ -0.04308345913887024, -0.04602009057998657, -0.03375193104147911, 0.015021250583231449, -0.02785934880375862, -0.0523570291697979, 0.015629827976226807, 0.03518160432577133, 0.04041730612516403, -0.03846599534153938, -0.028110507875680923, -0.04497681185603142, -0.022217927500605583, 0.017890261486172676, -0.021870167925953865, 0.049188558012247086, 0.0039460971020162106, -0.013427356258034706, -0.02302936464548111, 0.01237441971898079, 0.03815687447786331, -0.03481452539563179, 0.08948994427919388, 0.04439721629023552, -0.0021131180692464113, -0.018952857702970505, -0.023608962073922157, -0.06993816792964935, -0.02260432578623295, -0.00023138642427511513, 0.07727974653244019, -0.0072546363808214664, 0.03369396924972534, 0.004197256173938513, -0.038350075483322144, 0.0058974106796085835, -0.00008422284736298025, 0.009143159724771976, -0.0754636749625206, -0.12217927724123001, -0.01779366098344326, -0.03485316410660744, 0.050386395305395126, 0.037229519337415695, 0.0904173031449318, -0.012838098220527172, 0.013697834685444832, -0.0506955124437809, 0.04107418656349182, -0.012065300717949867, 0.0011145188473165035, 0.11800616979598999, -0.024806799367070198, -0.005090803373605013, -0.0027265259996056557, 0.03634079918265343, 0.00763137498870492, 0.003562113270163536, -0.12310663610696793, 0.03522024303674698, -0.00554965203627944, -0.035374805331230164, 0.013697834685444832, -0.0024258594494313, -0.006370749324560165, -0.021406490355730057, -0.05278206616640091, -0.02511591836810112, 0.025502316653728485, 0.012239179573953152, -0.03238021209836006, 0.02660355344414711, -0.011147603392601013, 0.02969474345445633, 0.020981451496481895, 0.060432761907577515, 0.05444358289241791, -0.035915762186050415, 0.06004636362195015, 0.0022773374803364277, -0.04636784642934799, -0.05664605274796486, -0.012132920324802399, -0.027627509087324142, -0.03363601118326187, -0.05266614630818367, -0.01214258000254631, -0.08199381083250046, 0.0035307183861732483, 0.039837710559368134, 0.002526081632822752, 0.022237246856093407, -0.020382532849907875, -0.03444744646549225, 0.04659968614578247, -0.06777434051036835, -0.006863407324999571, 0.03326893225312233, -0.03670787811279297, 0.03612828254699707, -0.047758884727954865, 0.020343894138932228, -0.04242658242583275, 0.004153786227107048, 0.06263523548841476, -0.014499612152576447, 0.02785934880375862, 0.008225463330745697, 0.005858771037310362, 0.006694357842206955, -0.01923299767076969, -0.003180544590577483, 0.01195904053747654, 0.0006598965846933424, 0.019020477309823036, -0.02416924014687538, -0.0028835006523877382, -0.042967539280653, -0.024439720436930656, 0.01904945820569992, -0.002145720412954688, 0.03742271661758423, -0.004612634889781475, -0.029192425310611725, 0.03255409374833107, -0.024014681577682495, 0.06789025664329529, -0.04176970198750496, -0.0452086515724659, 0.012326119467616081, -0.02695131115615368, 0.015272409655153751, -0.011273182928562164, 0.07086552679538727, 0.004755119327455759, -0.0002114627422997728, 0.011137943714857101, 0.05309118703007698, 0.010751544497907162, 0.0534389466047287, 0.06510818749666214, -0.05815301090478897, 0.001444165245629847, 0.01606452651321888, 0.03792503476142883, -0.035915762186050415, -0.028728745877742767, -0.05687789246439934, -0.026874031871557236, 0.0324961319565773, 0.002970440313220024, -0.019194357097148895, -0.06495362520217896, 0.04300617799162865, 0.012422719039022923, -0.004119976423680782, -0.012538638897240162, -0.027994588017463684, 0.0097034377977252, -0.026468314230442047, -0.046329207718372345, -0.026816071942448616, 0.07461359351873398, -0.016112826764583588, 0.02279752492904663, 0.0272604301571846, 0.018006181344389915, 0.02428516000509262, 0.004776854533702135, -0.0024946867488324642, -0.0018160740146413445, -0.009505408816039562, 0.026816071942448616, -0.009688948281109333, 0.02677743136882782, -0.043778978288173676, 0.04772024229168892, -0.03301777318120003, 0.010249226354062557, 0.003182959510013461, 0.07013136893510818, -0.03326893225312233, -0.0015504249604418874, 0.029965221881866455, 0.04408809542655945, -0.00627897959202528, -0.029675422236323357, 0.029849302023649216, -0.02154172956943512, 0.029791342094540596, 0.04308345913887024, 0.013098916970193386, -0.004854134283959866, -0.020807571709156036, 0.0009442619048058987, -0.061321478337049484, 0.03968314826488495, -0.06105099990963936, -0.01821869984269142, 0.03417696803808212, 0.009771058335900307, -0.021561048924922943, 0.04095826670527458, 0.05158423259854317, -0.01653786562383175, 0.019010817632079124, -0.0033254441805183887, 0.06866305321455002, -0.04231066256761551, 0.01109930407255888, 0.009384659118950367, -0.01934891752898693, 0.021503088995814323, -0.019542116671800613, 0.020691651850938797, -0.006163059733808041, -0.0880989134311676, 0.06522410362958908, -0.014190493151545525, 0.07399535924196243, -0.024304481223225594, -0.023183923214673996, -0.018431220203638077, 0.010287865996360779, 0.03535548597574234, -0.04099690541625023, 0.002719281008467078, 0.02880602516233921, -0.008674651384353638, -0.008549071848392487, 0.008370362222194672, -0.023551002144813538, 0.03628284111618996, -0.01982225477695465, 0.02780138887465, -0.014383693225681782, 0.018073800951242447, -0.005085973534733057, 0.005511011928319931, -0.03125965595245361, 0.0007607224979437888, 0.013465995900332928, 0.02998454123735428, 0.05533229932188988, -0.01082882471382618, -0.03375193104147911, -0.018189720809459686, -0.034602005034685135, 0.044435855001211166, 0.0020986280869692564, 0.034969083964824677, 0.03438948839902878, -0.10069551318883896, 0.04806800186634064, 0.032341573387384415, -0.0002078402612823993, -0.010964063927531242, -0.010220246389508247, -0.010162286460399628, 0.033906489610672, -0.048299841582775116, -0.06004636362195015, 0.023551002144813538, -0.027395669370889664, -0.013948994688689709, -0.057225652039051056, -0.05498453974723816, -0.007781104650348425, 0.006032650358974934, -0.004289025906473398, 0.13238020241260529, 0.041151463985443115, -0.018247680738568306, -0.009389488957822323, 0.05981452390551567, -0.06035548076033592, -0.06727202236652374, 0.0705564096570015, 0.06792889535427094, -0.009756567887961864, 0.0308346189558506, -0.01392967440187931, -0.03315301239490509, -0.06329211592674255, -0.02843894623219967, 0.03315301239490509, -0.027782069519162178, -0.08469860255718231, -0.008012943901121616, -0.02791730873286724, 0.019590415060520172, 0.04053322598338127, -0.04528593271970749, -0.026642192155122757, -0.013272796757519245, -0.008230293169617653, -0.005892580840736628, -0.027221791446208954, 0.017957881093025208, -0.010432765819132328, -0.02434311993420124, -0.021561048924922943, 0.0105969849973917, 0.039489950984716415, -0.021580370143055916, -0.009751738049089909, 0.03481452539563179, -0.014006953686475754, -0.058114368468523026, 0.02557959593832493, 0.022275887429714203, -0.09520864486694336, -0.02780138887465, -0.00624999962747097, 0.027646830305457115, 0.02706723101437092, -0.03272797167301178, 0.017098143696784973, 0.009539218619465828, -0.04760432243347168, -0.05088871344923973, 0.05471406131982803, -0.01673106476664543, 0.08778978884220123, 0.033906489610672, -0.026448993012309074, 0.08554867655038834, 0.00027712032897397876, 0.005230872891843319, 0.03247681260108948, 0.0006194454617798328, 0.06476042419672012, -0.022333847358822823, 0.011186243034899235, -0.010519705712795258, 0.002022555796429515, -0.031626734882593155, -0.0388137511909008, 0.05575733631849289, -0.01214258000254631, 0.09134466201066971, -0.017185084521770477, 0.0220247283577919, -0.034428127110004425, 0.02642967365682125, 0.05200926959514618, -0.05158423259854317, -0.0054240720346570015, 0.02297140471637249, 0.0523570291697979, -0.011746521107852459, -0.010297526605427265, 0.00907071027904749, -0.03921947255730629, -0.014615532010793686, 0.032109733670949936, 0.022391807287931442, -0.0209428109228611, 0.04339257627725601, -0.04034002870321274, 0.04999999701976776, -0.0136302150785923, 0.016112826764583588, -0.036746520549058914, -0.01338871568441391, -0.013910354115068913, 0.019503476098179817, -0.02076893113553524, -0.06313755363225937, 0.02368624322116375, 0.004801004193723202, -0.007104906719177961, 0.04934311658143997, -0.032225653529167175, -0.029656102880835533, -0.013794435188174248, 0.059003084897994995, -0.02826506830751896, 0.002622681437060237, 0.026352394372224808, 0.06897217780351639, -0.0060471403412520885, -0.012219860218465328, 0.054366301745176315, 0.032225653529167175, 0.006467348895967007, 0.05490725859999657, -0.0473724864423275, -0.014064913615584373, -0.04088098555803299, 0.013089257292449474, 0.021889489144086838, 0.06081916019320488, 0.013243816792964935, -0.013195516541600227, -0.06866305321455002, 0.006597758270800114, 0.002637171419337392, 0.021619008854031563, 0.02159968949854374, -0.0027530910447239876, -0.029424263164401054, -0.026159195229411125, 0.0062016998417675495, -0.07032456994056702, 0.0239760410040617, 0.05540957674384117, 0.03363601118326187, 0.046561047434806824, 0.05224110931158066, -0.019802935421466827, 0.02285548485815525, -0.03046754002571106, -0.03106645867228508, -0.021503088995814323, 0.013311436399817467, -0.038060273975133896, -0.08330756425857544, 0.04088098555803299, -0.015272409655153751, -0.027782069519162178, -0.014470632188022137, 0.006621908396482468, -0.04308345913887024, 0.014808731153607368, -0.054482221603393555, 0.010036706924438477, -0.007375385612249374, -0.03533616289496422, 0.026854712516069412, 0.03230293467640877, -0.011505022644996643, 0.056143734604120255, -0.016769705340266228, 0.061321478337049484, 0.029617462307214737, 0.049961354583501816, -0.0036852778866887093, 0.018199380487203598, 0.03195517510175705, -0.013977974653244019, -0.039064910262823105, 0.016508886590600014, -0.03541344404220581, -0.0803709402680397, -0.007119396701455116, -0.09018546342849731, -0.03164605796337128, 0.005593121517449617, 0.04034002870321274, -0.06692425906658173, 0.011920400895178318, 0.01630602590739727, 0.02333848364651203, -0.022102007642388344, -0.004786514211446047, -0.033597368746995926, -0.044899534434080124, -0.01893353834748268, 0.051275111734867096, 0.008138523437082767, 0.062403395771980286, 0.1453631967306137, -0.02254636585712433, 0.0027579208835959435, -0.0027241110801696777, 0.02838098630309105, 0.014277433045208454, -0.030486859381198883, -0.007013136986643076, 0.007191846612840891, -0.026758112013339996, -0.011562982574105263, 0.04868623986840248, 0.06201699748635292, -0.01648956537246704, -0.020923491567373276, 0.02339644357562065, -0.02554095722734928, 0.033906489610672, 0.013224496506154537, -0.02059505321085453, -0.005506182089447975, 0.017069164663553238, 0.023551002144813538, 0.00934118963778019, 0.016673104837536812, 0.0660741850733757, 0.019687015563249588, 0.038659192621707916, -0.02308732457458973, 0.034254249185323715, -0.02260432578623295, -0.0705564096570015, -0.08979906886816025, 0.06534002721309662, -0.04034002870321274, 0.016982223838567734, -0.024072641506791115, 0.01869203895330429, 0.010017387568950653, 0.01395865436643362, -0.023821482434868813, 0.009998067282140255, -0.034602005034685135, 0.011166923679411411, -0.010374805890023708, -0.025811435654759407, -0.04223338142037392, 0.04459041357040405, -0.027221791446208954, 0.02285548485815525, -0.01079984474927187, 0.00013116425543557853, 0.013060277327895164, 0.031858574599027634, -0.009065880440175533, -0.004798589274287224, -0.019687015563249588, -0.07121329009532928, -0.02219860814511776, -0.01544628944247961, 0.0517774298787117, -0.04625193029642105, -0.062287475913763046, 0.040803708136081696, -0.005032843444496393, 0.03578052297234535, -0.047758884727954865, 0.004351815674453974, 0.00890166126191616, 0.005800811108201742, 0.00608577998355031, -0.019609736278653145, 0.059119004756212234, 0.07314527779817581, -0.034737247973680496, -0.049304477870464325, -0.04934311658143997, -0.007423685863614082, -0.017281683161854744, -0.029115144163370132, 0.022642966359853745, -0.016856644302606583, -0.006240339484065771, -0.053825344890356064, -0.04122874513268471, 0.026854712516069412, 0.018836937844753265, -0.030815299600362778, -0.014644511975347996, -0.014345052652060986, -0.01550424937158823, 0.002105873078107834, 0.004127221647650003, 0.06023956090211868, -0.006964837200939655, 0.018769318237900734, -0.003240919439122081, 0.024381760507822037, 0.0005506182205863297, -0.0239760410040617, 0.008819551207125187, 0.07472951710224152, -0.03433152660727501, 0.0032457492779940367, 0.0042431410402059555, 0.020788252353668213, 0.011263523250818253, -0.0639876276254654, 0.06105099990963936, 0.0413060262799263, -0.039721790701150894, -0.002140890574082732, 0.028709426522254944, -0.0009297719807364047, 0.018102779984474182, -0.004119976423680782, 0.026352394372224808, 0.05231839045882225, -0.07233384251594543, 0.025985315442085266, 0.02552163600921631, 0.044126734137535095, -0.049420397728681564, 0.014084233902394772, 0.006602588575333357, 0.0007371763349510729, -0.05413446202874184, -0.009505408816039562, -0.0028062209021300077, 0.015079210512340069, 0.04594280943274498, 0.007022797130048275, -0.00035892819869332016, -0.09629056602716446, -0.07202472537755966, -0.04300617799162865, 0.04826120287179947, -0.011872101575136185, -0.007863214239478111, -0.02975270338356495, -0.05792117118835449, -0.00608577998355031, 0.03143353760242462, 0.004083751700818539, -0.054250381886959076, -0.01927163638174534, 0.021329209208488464, -0.017948221415281296, -0.030023181810975075, -0.006612248253077269, -0.017117463052272797, -0.020846212282776833, 0.08137557655572891, -0.0037649725563824177, 0.012065300717949867, 0.0021360605023801327, -0.00425763102248311, 0.02975270338356495, -0.001948898658156395, 0.02886398509144783, 0.0010402578627690673, 0.05340030416846275, -0.0018824862781912088, -0.04285161942243576, 0.004412190522998571, -0.01779366098344326, -0.05255022644996643, -0.021503088995814323, -0.057998448610305786, -0.05034775659441948, 0.00910934992134571, 0.05908036604523659, 0.011514682322740555, -0.05738021060824394, -0.00415137130767107, -0.029366303235292435, 0.021754248067736626, 0.0018136590952053666, -0.014383693225681782, 0.003673203056678176, 0.02445903979241848, -0.010896444320678711, -0.05158423259854317, -0.010539025068283081, -0.007481645327061415, -0.0446290522813797, 0.013900694437325, -0.040146827697753906, 0.003917117137461901, 0.007969473488628864, -0.02219860814511776, 0.009007920511066914, 0.06251931190490723, 0.015079210512340069, 0.0743817538022995, -0.03670787811279297, 0.0319938138127327, 0.03854327276349068, 0.009065880440175533, 0.016914604231715202, 0.025637555867433548, -0.00541441235691309, 0.031684696674346924, 0.04447449371218681, -0.0031153399031609297, -0.0540185421705246, -0.02208268828690052, -0.028226427733898163, -0.05653013661503792, 0.01892387866973877, -0.06642194092273712, -0.036031682044267654, 0.025753475725650787, 0.0035500384401530027, 0.044242653995752335, -0.007013136986643076, -0.011659582145512104, -0.022836165502667427, 0.04003090783953667, -0.0015745748532935977, 0.018846597522497177, -0.002482611918821931, -0.022333847358822823, 0.07693199068307877, -0.005965030286461115, -0.033597368746995926, -0.006018160376697779, -0.010635625571012497, 0.04277433827519417, 0.04107418656349182, 0.03659196197986603, 0.0073705557733774185, 0.001372923026792705, 0.019204016774892807, 0.03755795583128929, -0.023222563788294792, -0.02623647451400757, 0.033172331750392914, -0.016875965520739555, -0.011649921536445618, 0.010935083962976933, -0.042156100273132324, 0.01544628944247961, -0.04041730612516403, 0.010249226354062557, -0.039837710559368134, 0.05544821918010712, -0.04045594856142998, 0.01868237927556038, -0.009201119653880596, 0.013639875687658787, -0.007727974560111761, 0.03236089274287224, 0.011562982574105263, -0.00887268129736185, -0.034312207251787186, -0.02577279508113861, 0.0004805834323633462, -0.0011374612804502249, -0.10517773777246475, -0.002707206178456545, -0.02785934880375862, 0.017822641879320145, -0.03527820482850075, -0.05034775659441948, -0.03956723213195801, -0.002162625314667821, 0.04265841841697693, -0.019590415060520172, 0.03695903718471527, 0.05687789246439934, -0.0006967252120375633, -0.018778977915644646, -0.025965994223952293, 0.03238021209836006, 0.03280525282025337, -0.014296753332018852, 0.036997679620981216, 0.03309505060315132, 0.0004343967011664063, 0.014354713261127472, -0.011505022644996643, 0.03340417146682739, -0.010664604604244232, 0.009664798155426979, -0.02279752492904663, -0.028593506664037704, 0.0671560987830162, 0.04868623986840248, -0.007843893952667713, 0.031336937099695206, 0.026738792657852173, 0.03106645867228508, -0.04976815730333328, 0.00824478268623352, 0.004914509132504463, 0.004994203802198172, 0.01868237927556038, -0.0649922639131546, -0.004875869024544954, 0.002437934512272477, 0.037171557545661926, 0.0174942035228014, 0.045788250863552094, -0.03278593346476555, 0.017465222626924515 ]
730,217
mmengine.fileio.backends.petrel_backend
copytree
Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. src and dst should have the same prefix. Args: src (str or Path): A directory to be copied. dst (str or Path): Copy directory to dst. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. Returns: str: The destination directory. Raises: FileExistsError: If dst had already existed, a FileExistsError will be raised. Examples: >>> backend = PetrelBackend() >>> src = 'petrel://path/of/dir' >>> dst = 'petrel://path/of/dir1' >>> backend.copytree(src, dst) 'petrel://path/of/dir1'
def copytree( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. src and dst should have the same prefix. Args: src (str or Path): A directory to be copied. dst (str or Path): Copy directory to dst. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. Returns: str: The destination directory. Raises: FileExistsError: If dst had already existed, a FileExistsError will be raised. Examples: >>> backend = PetrelBackend() >>> src = 'petrel://path/of/dir' >>> dst = 'petrel://path/of/dir1' >>> backend.copytree(src, dst) 'petrel://path/of/dir1' """ src = self._format_path(self._map_path(src)) dst = self._format_path(self._map_path(dst)) if self.exists(dst): raise FileExistsError('dst should not exist') for path in self.list_dir_or_file(src, list_dir=False, recursive=True): src_path = self.join_path(src, path) dst_path = self.join_path(dst, path) self.put(self.get(src_path), dst_path) return dst
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> str
[ -0.031520143151283264, -0.018574370071291924, -0.024707600474357605, -0.03761455416679382, -0.03612006455659866, 0.0214080773293972, 0.028705844655632973, 0.04091407731175423, 0.07398693263530731, -0.0587703138589859, 0.005895470269024372, -0.008564201183617115, -0.02268906868994236, 0.014246173202991486, -0.033849216997623444, -0.02197093702852726, 0.017497172579169273, 0.015585390850901604, -0.011296011507511139, 0.026532040908932686, -0.007671389263123274, -0.0105972895398736, 0.09603551030158997, 0.039147861301898956, -0.05721759796142578, -0.02827884815633297, 0.005089998245239258, -0.023116065189242363, -0.0448346845805645, 0.03934195265173912, 0.04794012010097504, -0.018516143783926964, 0.03551838919520378, -0.008282771334052086, -0.06261328607797623, 0.0021689506247639656, -0.05290881171822548, -0.0022647823207080364, -0.09029045701026917, -0.0992962121963501, -0.023989468812942505, -0.07367639243602753, 0.028356483206152916, 0.03990481048822403, 0.08602048456668854, -0.020049450919032097, 0.016691701486706734, -0.05151136592030525, 0.018943140283226967, -0.06214747205376625, 0.0030520581640303135, 0.08726266026496887, -0.04681440070271492, -0.03342222049832344, 0.024707600474357605, 0.0678148865699768, -0.018826685845851898, 0.0015539294108748436, -0.0316171869635582, 0.04941520094871521, 0.022592023015022278, -0.0034936119336634874, -0.03303404152393341, 0.021349851042032242, -0.04068116843700409, -0.027308398857712746, -0.0886601060628891, -0.042854972183704376, 0.0316171869635582, 0.00378474616445601, -0.10178055614233017, 0.020340584218502045, 0.03547956794500351, -0.002235668944194913, 0.006545669864863157, 0.06009012460708618, 0.030239151790738106, -0.032898180186748505, 0.030006244778633118, 0.005264678969979286, -0.07876154035329819, -0.06082766503095627, -0.03612006455659866, -0.035945385694503784, 0.035169027745723724, 0.006725202780216932, -0.026590269058942795, -0.032238274812698364, -0.034334439784288406, -0.01922456920146942, -0.025483958423137665, -0.029094023630023003, 0.012877841480076313, 0.015789184719324112, 0.0035760998725891113, -0.0028919342439621687, 0.014139424078166485, 0.0405258983373642, -0.0204764474183321, 0.025056960061192513, -0.013324247673153877, 0.03231590986251831, -0.06727144122123718, -0.002734236419200897, 0.04134107381105423, -0.005017214920371771, -0.011936507187783718, 0.022223252803087234, 0.0370711050927639, -0.023368380963802338, 0.03021974302828312, -0.000866124639287591, 0.07949908077716827, -0.015255438163876534, -0.01375124417245388, -0.0053956895135343075, -0.034450896084308624, -0.04304906353354454, -0.038041550666093826, 0.009219253435730934, 0.007336584851145744, 0.03872086480259895, 0.048056572675704956, -0.006181752309203148, 0.03309226781129837, 0.005424802657216787, 0.08012016862630844, 0.006720350589603186, -0.07293885201215744, -0.021155761554837227, -0.014847850427031517, 0.010121770203113556, -0.006851361133158207, 0.04068116843700409, 0.07200722396373749, -0.005031771492213011, 0.014042378403246403, 0.0022502257488667965, -0.006958110257983208, -0.001820802572183311, 0.05356871709227562, -0.04906583949923515, 0.02202916331589222, 0.03683819621801376, 0.02445528283715248, -0.04607686027884483, -0.037323419004678726, 0.00923866219818592, 0.04328196868300438, 0.03580952063202858, -0.010762265883386135, 0.023251928389072418, -0.00417777756229043, 0.04572749882936478, -0.03990481048822403, -0.009122208692133427, -0.03188891336321831, -0.013052522204816341, 0.014585829339921474, 0.0010317072737962008, -0.047668393701314926, -0.05318053811788559, 0.043747782707214355, -0.0583433173596859, 0.036721743643283844, 0.03021974302828312, 0.018632596358656883, -0.0015163245843723416, -0.03683819621801376, -0.007525822147727013, -0.02208739146590233, -0.04145752638578415, -0.016517020761966705, -0.03481966629624367, -0.014430558308959007, -0.03514961898326874, 0.05030801147222519, 0.043087881058454514, -0.03967190533876419, -0.02666790410876274, 0.07161904126405716, 0.013654199428856373, 0.006385546177625656, 0.019438067451119423, -0.0017371014691889286, -0.010694334283471107, -0.007870331406593323, 0.06649507582187653, 0.013295134529471397, 0.02053467370569706, -0.014372331090271473, 0.030530285090208054, -0.00910279992967844, -0.006108968518674374, 0.030355606228113174, -0.042078614234924316, 0.040254171937704086, -0.05275353789329529, 0.025697456672787666, 0.11691954731941223, -0.009345411323010921, -0.02146630361676216, 0.10620579868555069, 0.02008826844394207, 0.025930363684892654, -0.03468380123376846, -0.04794012010097504, 0.08485595136880875, -0.015410710126161575, -0.056635331362485886, 0.021679801866412163, 0.00944730918854475, 0.05368516966700554, -0.04044826328754425, -0.009568614885210991, -0.029579246416687965, -0.04436887055635452, 0.004937152843922377, -0.0061429343186318874, 0.016148250550031662, -0.00460477452725172, 0.003335914108902216, -0.046348582953214645, -0.03010328859090805, -0.02136925980448723, -0.06975578516721725, -0.023387789726257324, -0.014352922327816486, 0.07095913589000702, -0.05046328157186508, 0.0019457477610558271, -0.018778163939714432, 0.040370624512434006, -0.030685557052493095, 0.0583433173596859, -0.050773825496435165, 0.023484835401177406, -0.053258173167705536, 0.015362188220024109, 0.006831951905041933, -0.016846973448991776, -0.021039307117462158, 0.02185448259115219, 0.03945840522646904, 0.03183068707585335, -0.019603043794631958, 0.026299133896827698, -0.0466979444026947, 0.05989603325724602, 0.0012324686395004392, -0.05120082199573517, 0.020243540406227112, -0.07926616817712784, 0.01876845955848694, 0.013877402991056442, 0.028958160430192947, 0.014508193358778954, 0.018186191096901894, 0.0030180925969034433, 0.06525290757417679, -0.004730932880192995, -0.06152638792991638, -0.016895495355129242, -0.0274442620575428, -0.024532919749617577, -0.040370624512434006, -0.032626453787088394, -0.046348582953214645, 0.013634790666401386, 0.004202038515359163, 0.13345597684383392, 0.004968692548573017, 0.013207794167101383, 0.024979325011372566, 0.058964405208826065, -0.00113603041972965, -0.06055593863129616, 0.07651010155677795, 0.05399571359157562, -0.020398812368512154, 0.032684680074453354, -0.025425730273127556, -0.06284619867801666, -0.09657896310091019, -0.016759632155299187, 0.006157490890473127, 0.016691701486706734, -0.009777260944247246, 0.014420853927731514, -0.013770653866231441, 0.038546185940504074, -0.0019760741852223873, -0.05279235541820526, -0.004903187043964863, 0.021621575579047203, -0.011033990420401096, 0.0006714285118505359, -0.02125280536711216, -0.0006307910080067813, 0.03565425053238869, -0.031461916863918304, 0.011354238726198673, 0.03709051385521889, 0.05438389256596565, -0.016924608498811722, -0.01034497283399105, 0.043903056532144547, 0.006298205815255642, -0.048949383199214935, 0.018467620015144348, -0.040875259786844254, -0.09114445000886917, 0.004561104346066713, -0.01773007959127426, -0.00982093159109354, 0.010150883346796036, 0.004226299934089184, -0.02334897220134735, -0.03338340297341347, -0.023310154676437378, -0.08439013361930847, 0.04347606003284454, -0.03431503102183342, 0.05073500797152519, 0.0018098850268870592, -0.00570138031616807, 0.0387984998524189, 0.057139962911605835, 0.0727059468626976, 0.0008418633951805532, -0.005060885101556778, 0.01173271331936121, 0.017351604998111725, 0.03709051385521889, 0.01916634291410446, 0.030122697353363037, 0.010820492170751095, -0.040370624512434006, -0.03530488908290863, 0.03099610097706318, 0.10597289353609085, -0.009418195113539696, 0.03862382099032402, -0.004400980658829212, 0.07418102771043777, 0.02860879898071289, -0.02418355830013752, -0.01937013678252697, 0.02367892488837242, 0.0659516304731369, 0.019108116626739502, 0.03831327706575394, 0.003192773088812828, -0.031520143151283264, -0.01775919459760189, 0.032684680074453354, 0.04021535441279411, 0.0018863078439608216, 0.002836133586242795, -0.0645153671503067, 0.03396566957235336, 0.03093787468969822, 0.01219852827489376, -0.0031539550982415676, -0.02738603577017784, 0.0060070715844631195, -0.03309226781129837, -0.022456161677837372, -0.02146630361676216, 0.0006417085533030331, 0.020340584218502045, 0.00911735650151968, 0.03004506230354309, -0.04964810609817505, 0.002811872400343418, -0.007157051935791969, 0.0022611431777477264, -0.03877909108996391, 0.011926802806556225, 0.011043695732951164, 0.04347606003284454, -0.009136765263974667, -0.0012367143062874675, 0.010558471083641052, 0.03514961898326874, -0.03480025753378868, 0.06851360946893692, 0.0028458379674702883, -0.020340584218502045, -0.044291235506534576, -0.04840593412518501, -0.005293792579323053, 0.02202916331589222, 0.010781674645841122, -0.058459773659706116, -0.07965435087680817, 0.04091407731175423, 0.01073315180838108, -0.044019509106874466, 0.0021859335247427225, 0.017584513872861862, -0.011674486100673676, 0.02955983765423298, 0.016565542668104172, -0.039380770176649094, 0.013266020454466343, 0.06032303348183632, 0.022262070327997208, 0.041030529886484146, 0.001035952940583229, -0.011684190481901169, -0.008404077030718327, 0.0090882433578372, 0.030006244778633118, -0.026240907609462738, -0.016517020761966705, -0.005056032910943031, -0.03689642250537872, 0.013799767009913921, -0.027754805982112885, -0.02218443527817726, -0.045300502330064774, 0.0024989028461277485, -0.026318542659282684, 0.07569492608308792, -0.04157398268580437, 0.006972666829824448, -0.026687312871217728, -0.021776847541332245, 0.018749050796031952, 0.0013901663478463888, 0.014246173202991486, 0.024591146036982536, 0.00342325447127223, 0.07806281745433807, 0.018496733158826828, 0.007069712039083242, -0.00056983478134498, -0.0037556327879428864, 0.024882279336452484, -0.04603804275393486, -0.050890278071165085, 0.04002126678824425, -0.029191067442297935, -0.07499620318412781, -0.015177803114056587, -0.049221109598875046, -0.04991983249783516, -0.004728506784886122, 0.016245294362306595, -0.012751683592796326, 0.017856238409876823, 0.037265192717313766, 0.025445139035582542, -0.04642622172832489, -0.04083644226193428, -0.031966548413038254, -0.03891495615243912, -0.020884035155177116, -0.0042821005918085575, 0.031131964176893234, -0.038487955927848816, 0.1589205265045166, 0.02397006005048752, -0.000749064376577735, 0.03342222049832344, 0.08858247101306915, 0.005783868487924337, -0.04118580371141434, -0.04436887055635452, 0.04747430235147476, -0.019971814006567, 0.005958549212664366, 0.02230088971555233, 0.040370624512434006, -0.012906954623758793, -0.05162781849503517, -0.04250561073422432, -0.060245394706726074, 0.003920608665794134, -0.03586774691939354, 0.04040944576263428, 0.05205481871962547, -0.01250907126814127, -0.05333580821752548, -0.024649372324347496, 0.025367503985762596, 0.05651887506246567, 0.00834099855273962, 0.01823471300303936, 0.00040728479507379234, -0.008467156440019608, -0.025445139035582542, -0.03252940997481346, -0.053879257291555405, 0.01850643754005432, -0.07662655413150787, 0.020224131643772125, -0.05252063274383545, -0.008088681846857071, -0.03381039947271347, -0.007326880469918251, -0.03291758894920349, -0.01850643754005432, -0.047280214726924896, 0.02523164078593254, -0.025367503985762596, 0.04006008431315422, -0.0060070715844631195, 0.048056572675704956, 0.007040598429739475, 0.0021895726677030325, -0.0456886813044548, -0.0066912369802594185, 0.052326541393995285, 0.01148039661347866, 0.023834196850657463, 0.009947089478373528, -0.014275286346673965, -0.05698469281196594, -0.013110749423503876, 0.0003187314432580024, 0.079033263027668, 0.007035746239125729, 0.00455139996483922, 0.05799395591020584, 0.03868204727768898, 0.053374625742435455, 0.007084268610924482, 0.008821370080113411, -0.021621575579047203, 0.016963426023721695, -0.010616698302328587, 0.03087964653968811, 0.03398507833480835, 0.03349985554814339, 0.015536868013441563, 0.008617576211690903, 0.0010765905026346445, -0.01844821125268936, -0.026027409359812737, -0.0038696604315191507, 0.0007508839480578899, 0.015342778526246548, 0.011713304556906223, 0.0016194346826523542, -0.005745050497353077, 0.04254442825913429, 0.04188452288508415, -0.012324686162173748, -0.0012931216042488813, -0.00990827102214098, -0.006390398368239403, 0.07138613611459732, 0.0026687313802540302, 0.05108436942100525, -0.010558471083641052, 0.0022902567870914936, 0.026590269058942795, 0.0028992125298827887, -0.006172047462314367, -0.026745539158582687, -0.023271337151527405, 0.020709354430437088, 0.06210865452885628, 0.000869763782247901, 0.009709329344332218, 0.025192823261022568, 0.014139424078166485, -0.05457798019051552, 0.03130664303898811, 0.02136925980448723, -0.04980337992310524, -0.007089120801538229, 0.016604360193014145, -0.0072298357263207436, -0.03177246078848839, -0.029792746528983116, -0.014576124958693981, 0.015624208375811577, -0.009680216200649738, 0.025212232023477554, 0.040758803486824036, 0.035828929394483566, -0.02550336718559265, -0.0033383402042090893, 0.00455867825075984, 0.01549805048853159, -0.024435874074697495, -0.024086512625217438, 0.02678435854613781, 0.047901298850774765, 0.05019155889749527, 0.03530488908290863, 0.014187945984303951, -0.06187574937939644, -0.10061602294445038, -0.037789236754179, 0.06261328607797623, -0.009059129282832146, 0.006535965483635664, -0.021097533404827118, -0.0012233706656843424, 0.029152249917387962, 0.03130664303898811, -0.026415588334202766, 0.013537745922803879, -0.04262206330895424, 0.01403267402201891, 0.0013574138283729553, 0.021291622892022133, 0.006972666829824448, 0.03610065579414368, -0.04840593412518501, 0.026046818122267723, -0.02633795142173767, 0.01439173985272646, -0.03648883476853371, -0.028259437531232834, 0.03427621349692345, 0.015895934775471687, 0.027153128758072853, -0.014896373264491558, 0.010383791290223598, -0.016012387350201607, -0.03617829084396362, -0.024804644286632538, -0.003241295460611582, -0.07006632536649704, -0.031578369438648224, 0.0005310168489813805, -0.040487080812454224, 0.018215304240584373, -0.01814737357199192, -0.059857215732336044, -0.04079762473702431, 0.011878279969096184, -0.007263801526278257, -0.004148663952946663, 0.0011032777838408947, 0.005560665391385555, -0.008957232348620892, -0.027094900608062744, 0.0064534773118793964, -0.042971424758434296, -0.04918229207396507, -0.03714874014258385, -0.0031224156264215708, -0.06113820895552635, -0.024862870573997498, -0.008913562633097172, 0.0006690024165436625, -0.026434997096657753, 0.028045939281582832, 0.021485712379217148, 0.08842720091342926, 0.0423891581594944, -0.022494979202747345, 0.04215624928474426, 0.04498995840549469, 0.0060070715844631195, 0.0053956895135343075, 0.0010213962523266673, -0.03689642250537872, 0.015197211876511574, 0.045184046030044556, -0.012295573018491268, -0.025716865435242653, 0.003658588044345379, -0.05081264302134514, -0.06346727907657623, 0.018331758677959442, -0.0876508429646492, -0.020340584218502045, -0.006293353624641895, -0.04029298946261406, 0.02251438796520233, -0.017652444541454315, 0.010810787789523602, -0.025270458310842514, 0.0250763688236475, 0.028240028768777847, -0.0003003838937729597, 0.010121770203113556, -0.045067593455314636, 0.07154140621423721, 0.010752560570836067, -0.03241295367479324, 0.02086462639272213, -0.04809539020061493, 0.04126343876123428, 0.024746417999267578, 0.05516025051474571, -0.0013307264307513833, -0.03237413614988327, 0.03171423077583313, 0.05418980121612549, -0.022533796727657318, -0.03575129434466362, -0.002862820867449045, 0.002549851546064019, -0.02086462639272213, -0.009621988981962204, -0.06470945477485657, 0.07196840643882751, -0.025037551298737526, -0.014838146045804024, 0.02627972513437271, 0.04161280021071434, -0.015420414507389069, 0.020961672067642212, -0.006705794017761946, 0.032024774700403214, 0.025988589972257614, -0.01671111024916172, -0.04460177943110466, -0.031966548413038254, -0.008884449489414692, -0.018991662189364433, -0.03542134165763855, -0.02323251962661743, -0.09774349629878998, -0.00039121173904277384, -0.03641119971871376, -0.013857994228601456, 0.016216181218624115, 0.019418658688664436, -0.029191067442297935, 0.0433984212577343, 0.033014632761478424, -0.025134596973657608, 0.041690435260534286, 0.08043070882558823, -0.03730401024222374, -0.024940507486462593, -0.011713304556906223, 0.02905520610511303, 0.027638351544737816, 0.01939924992620945, 0.024998733773827553, 0.06296265125274658, 0.015265142545104027, 0.03336399421095848, -0.010364381596446037, 0.04149634391069412, -0.007404516451060772, -0.0022878304589539766, -0.026202088221907616, 0.0012627951800823212, 0.03476144000887871, 0.04370896518230438, -0.009816078469157219, 0.029288113117218018, 0.023640107363462448, -0.0219127107411623, -0.03747869282960892, -0.00920954905450344, 0.003360175294801593, -0.005924583412706852, -0.012004438787698746, -0.00911735650151968, -0.0022029164247214794, -0.031966548413038254, 0.028123576194047928, 0.03961367532610893, 0.04436887055635452, -0.007312323898077011, -0.0008655180572532117 ]
730,218
mmengine.fileio.backends.petrel_backend
copytree_from_local
Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. Args: src (str or Path): A local directory to be copied. dst (str or Path): Copy directory to dst. Returns: str: The destination directory. Raises: FileExistsError: If dst had already existed, a FileExistsError will be raised. Examples: >>> backend = PetrelBackend() >>> src = 'path/of/your/dir' >>> dst = 'petrel://path/of/dir1' >>> backend.copytree_from_local(src, dst) 'petrel://path/of/dir1'
def copytree_from_local( self, src: Union[str, Path], dst: Union[str, Path], ) -> str: """Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. Args: src (str or Path): A local directory to be copied. dst (str or Path): Copy directory to dst. Returns: str: The destination directory. Raises: FileExistsError: If dst had already existed, a FileExistsError will be raised. Examples: >>> backend = PetrelBackend() >>> src = 'path/of/your/dir' >>> dst = 'petrel://path/of/dir1' >>> backend.copytree_from_local(src, dst) 'petrel://path/of/dir1' """ dst = self._format_path(self._map_path(dst)) if self.exists(dst): raise FileExistsError('dst should not exist') src = str(src) for cur_dir, _, files in os.walk(src): for f in files: src_path = osp.join(cur_dir, f) dst_path = self.join_path(dst, src_path.replace(src, '')) self.copyfile_from_local(src_path, dst_path) return dst
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> str
[ -0.026623642072081566, -0.01119447685778141, -0.030740700662136078, -0.01339024119079113, -0.017762163653969765, -0.007797903846949339, 0.031230825930833817, 0.024525903165340424, 0.05618803948163986, -0.03793574869632721, -0.01580166071653366, -0.04575815796852112, -0.020977390930056572, -0.00038352355477400124, -0.03964138776063919, 0.01994812674820423, -0.0012387933675199747, 0.009101638570427895, -0.013066757470369339, -0.006204994395375252, 0.0005097310058772564, -0.029564397409558296, 0.10398512333631516, 0.06332427263259888, -0.039190471172332764, -0.02752547338604927, -0.01622316986322403, -0.022016458213329315, -0.038523901253938675, 0.0107141537591815, 0.05218861252069473, 0.012419791892170906, 0.03166213631629944, 0.010086792521178722, -0.05658014118671417, -0.008925193920731544, -0.012194333598017693, -0.013184388168156147, -0.06787264347076416, -0.10774929076433182, -0.024251433089375496, -0.020252004265785217, 0.020134374499320984, 0.05120835825800896, 0.10006411373615265, -0.02866256609559059, 0.05203177034854889, -0.07979250699281693, 0.04814997315406799, -0.038131799548864365, -0.005332570523023605, 0.09465312212705612, -0.052580710500478745, -0.015399757772684097, 0.020918576046824455, 0.043052662163972855, -0.004869401454925537, -0.025408130139112473, -0.05791328102350235, 0.01332162320613861, -0.027054952457547188, 0.0053521753288805485, -0.013164782896637917, 0.024780768901109695, -0.04442501813173294, -0.043444763869047165, -0.07728306204080582, -0.018644390627741814, 0.005651152227073908, 0.007464618422091007, -0.10147567838430405, 0.029074272140860558, 0.014615556225180626, 0.016380010172724724, -0.0043449667282402515, 0.05203177034854889, 0.06254006922245026, -0.051914140582084656, 0.026192331686615944, 0.011361119337379932, -0.05991299822926521, -0.054070696234703064, -0.01573304273188114, -0.034308817237615585, -0.009694691747426987, -0.0031196516938507557, -0.020957786589860916, -0.03640655428171158, 0.009219269268214703, -0.017732756212353706, 0.003715154714882374, 0.017624929547309875, -0.009871136397123337, 0.0006224599783308804, 0.004727264866232872, -0.012429594062268734, 0.011067043989896774, 0.028525330126285553, -0.044189754873514175, 0.006793145556002855, -0.027760734781622887, 0.02529049851000309, -0.08618374913930893, -0.009307491593062878, 0.05246308073401451, 0.015409559942781925, -0.008425265550613403, 0.015086077153682709, 0.04552289843559265, -0.0012087731156498194, 0.010003470815718174, -0.0077733974903821945, 0.05062020942568779, -0.00479098130017519, -0.003715154714882374, 0.0034333323128521442, -0.011635590344667435, -0.0407392680644989, -0.04983600601553917, -0.0012951578246429563, 0.021447911858558655, 0.03475973382592201, 0.025525759905576706, -0.031073985621333122, 0.014125430025160313, 0.009258478879928589, 0.09802518784999847, -0.024251433089375496, -0.06320664286613464, 0.0035926231648772955, -0.006371637340635061, 0.03121122159063816, -0.021800803020596504, 0.06403005123138428, 0.06187349930405617, -0.002497191773727536, -0.013066757470369339, 0.025486549362540245, -0.00626871082931757, 0.003759266110137105, 0.07987092435359955, -0.04877733439207077, 0.015360547229647636, 0.03021136298775673, 0.01749749667942524, -0.029976103454828262, -0.05089467763900757, -0.016919147223234177, 0.0038303344044834375, 0.026898112148046494, -0.0065529840067029, -0.011684603057801723, -0.030270179733633995, 0.07940040528774261, -0.027858758345246315, 0.00778320012614131, -0.020565684884786606, -0.018967874348163605, 0.04916943609714508, -0.024035776033997536, -0.05807012319564819, -0.041641101241111755, 0.06167744845151901, -0.030877934768795967, 0.02436906285583973, 0.009307491593062878, 0.01332162320613861, -0.02642759121954441, -0.05324728414416313, 0.016772110015153885, -0.005484509281814098, -0.009390813298523426, 0.011468946933746338, -0.026545220986008644, -0.012635447084903717, -0.05195334926247597, 0.027054952457547188, 0.0036367345601320267, -0.02340841479599476, -0.009518246166408062, 0.04485632851719856, 0.008258622139692307, 0.03948454558849335, 0.007513630669564009, 0.004050890915095806, 0.003421079134568572, -0.009532949887216091, 0.024604322388768196, 0.002548655029386282, 0.022937893867492676, 0.010233829729259014, 0.03693589195609093, -0.018644390627741814, -0.01229235902428627, 0.040111906826496124, -0.007405803073197603, 0.04375844448804855, -0.03415197506546974, -0.01884044148027897, 0.0775575339794159, -0.003533808048814535, -0.011880652979016304, 0.04901259392499924, 0.012037493288516998, -0.013978391885757446, 0.020624499768018723, -0.06567687541246414, 0.09073211997747421, -0.010184817016124725, -0.019644247367978096, 0.013733329251408577, 0.01863458938896656, 0.03807298466563225, -0.023898541927337646, -0.011547367088496685, -0.005881511606276035, -0.10492616146802902, 0.04411133751273155, 0.021624356508255005, 0.02678048238158226, -0.009106540121138096, -0.01994812674820423, -0.020075559616088867, -0.016948554664850235, -0.01253742165863514, -0.06171666085720062, -0.02423182688653469, -0.002683439524844289, 0.0538354329764843, -0.03340698406100273, 0.02480037324130535, -0.04618946835398674, 0.02699613757431507, -0.027466658502817154, 0.03146608546376228, -0.04293503239750862, 0.04324871301651001, -0.058815114200115204, 0.02085976116359234, -0.01066514104604721, -0.019144318997859955, -0.008812464773654938, 0.02291828952729702, 0.02323197014629841, 0.017909202724695206, -0.010616128332912922, -0.0038621926214545965, -0.038700345903635025, 0.06116772070527077, 0.014282270334661007, -0.06301059573888779, 0.025349313393235207, -0.0910457968711853, 0.03630853071808815, 0.035151831805706024, 0.00019222126866225153, 0.0036122282035648823, 0.006062858272343874, -0.01980108767747879, 0.05285518243908882, -0.011684603057801723, -0.07634201645851135, -0.00519043393433094, -0.007891028188169003, -0.03313251584768295, -0.05783486366271973, -0.019742272794246674, -0.026309961453080177, 0.0035142030101269484, -0.009822123683989048, 0.1565266251564026, 0.022585004568099976, 0.028035204857587814, 0.014076417312026024, 0.0676765888929367, -0.009341800585389137, -0.08587006479501724, 0.08775214850902557, 0.03411276638507843, -0.012223741039633751, -0.004352318588644266, -0.006567687727510929, -0.05395306646823883, -0.06932341307401657, -0.035445909947156906, 0.005577633157372475, -0.005087507423013449, -0.05681540071964264, -0.001453223405405879, -0.024114197120070457, 0.027251003310084343, 0.01092980895191431, -0.024702347815036774, -0.01767394132912159, -0.008052769117057323, -0.021016601473093033, 0.005636448506265879, -0.0006279738736338913, -0.011253291741013527, 0.034406840801239014, -0.05752118304371834, -0.00603835191577673, 0.022859474644064903, 0.035053808242082596, -0.023467231541872025, -0.021977247670292854, 0.05434516444802284, -0.007297975476831198, -0.04113136976957321, 0.00821941252797842, -0.04920864477753639, -0.05865827575325966, -0.00246165762655437, -0.022937893867492676, 0.00452631339430809, -0.006371637340635061, 0.005881511606276035, -0.004197928588837385, 0.008288029581308365, -0.028956640511751175, -0.06132455915212631, 0.06701002269983292, -0.03495578467845917, 0.05579593777656555, -0.018585575744509697, -0.014370492659509182, 0.07061734795570374, 0.05203177034854889, 0.05532541871070862, 0.022839870303869247, 0.003474992932751775, 0.004477300681173801, 0.006087364163249731, 0.008072374388575554, 0.022722238674759865, 0.042346883565187454, -0.01951681636273861, -0.037994563579559326, -0.0013735779793933034, -0.03389710932970047, 0.10892558842897415, -0.027015741914510727, 0.03230910375714302, -0.017575915902853012, 0.04944390431046486, 0.06006983667612076, -0.014997853897511959, -0.006062858272343874, 0.03752404451370239, 0.06983314454555511, 0.009807419963181019, 0.018516957759857178, 0.007048011291772127, -0.02305552549660206, -0.036328136920928955, 0.047522611916065216, 0.03658300265669823, 0.012390384450554848, 0.03464210405945778, -0.03623010963201523, 0.032113052904605865, 0.02901545725762844, 0.008332140743732452, -0.046032629907131195, -0.010155409574508667, -0.019144318997859955, -0.008386055007576942, -0.03095635585486889, -0.027427447959780693, 0.0015684030950069427, 0.015487980097532272, -0.005709967575967312, 0.04246451333165169, -0.03560274839401245, 0.0012228642590343952, -0.01530173234641552, 0.019850101321935654, -0.05379622429609299, 0.0049821301363408566, 0.04517000913619995, 0.03666142001748085, 0.017909202724695206, 0.012968732975423336, 0.02638838067650795, 0.05195334926247597, -0.017223026603460312, 0.07979250699281693, -0.02954479306936264, -0.033740270882844925, -0.03960217535495758, -0.02529049851000309, -0.005690362304449081, 0.06461820751428604, 0.04042558744549751, -0.04026874899864197, -0.08187063783407211, 0.037739697843790054, -0.01092980895191431, 0.0020070658065378666, 0.009140849113464355, 0.03113280050456524, -0.0306426752358675, -0.01732105202972889, -0.01229235902428627, -0.03844548016786575, 0.027858758345246315, 0.051522038877010345, 0.01565462350845337, 0.008243918418884277, 0.033250145614147186, -0.00017675166600383818, 0.01689954288303852, 0.01332162320613861, 0.027858758345246315, -0.035367488861083984, -0.006214797031134367, -0.0031539604533463717, -0.05767802149057388, 0.0432095043361187, -0.01589968614280224, -0.010674943216145039, -0.05363938584923744, -0.001955602550879121, -0.04077848047018051, 0.06132455915212631, -0.043797656893730164, -0.013811749406158924, -0.006307920906692743, -0.030662279576063156, 0.03591642901301384, -0.006053055636584759, -0.0011242263717576861, 0.054109904915094376, -0.01891886256635189, 0.08022381365299225, 0.038876790553331375, 0.026368776336312294, -0.0018820837140083313, -0.0138999717310071, 0.03687707707285881, -0.027721524238586426, -0.061834290623664856, 0.046346310526132584, -0.03889639675617218, -0.07849857211112976, -0.008435067720711231, -0.08673268556594849, -0.020820550620555878, -0.03938652202486992, 0.0329364649951458, -0.024035776033997536, 0.007317580282688141, 0.014664568938314915, 0.023467231541872025, -0.053717803210020065, -0.009724099189043045, -0.028290070593357086, -0.010331855155527592, -0.00738619826734066, 0.0382494293153286, 0.025761019438505173, -0.005386484321206808, 0.17032857239246368, 0.0251532644033432, 0.007547939661890268, 0.0001371586840832606, 0.057442761957645416, 0.007008801214396954, -0.0414450503885746, -0.04728735238313675, 0.037563253194093704, -0.010870994068682194, 0.0023011413868516684, 0.049718376249074936, 0.05316886305809021, -0.0336422435939312, -0.046032629907131195, -0.03640655428171158, -0.05552146956324577, -0.008915390819311142, -0.02915269136428833, -0.0028133229352533817, 0.05305123329162598, -0.004009230528026819, -0.049639955163002014, -0.03879836946725845, 0.016497639939188957, 0.07355809956789017, -0.012409988790750504, 0.03783772513270378, -0.01845814287662506, 0.02093818038702011, -0.026662852615118027, -0.05493331700563431, -0.08092959970235825, 0.03138766437768936, -0.05414911359548569, 0.04077848047018051, -0.03509301692247391, -0.01810525357723236, -0.001846549566835165, 0.019438395276665688, -0.025917859748005867, -0.004045989830046892, -0.046699199825525284, 0.03348540514707565, 0.004886555951088667, 0.02111462689936161, -0.017732756212353706, 0.05971694737672806, -0.012468804605305195, -0.005690362304449081, -0.02915269136428833, -0.011655195616185665, 0.03948454558849335, 0.025957070291042328, 0.008190005086362362, 0.007822410203516483, -0.006508872844278812, -0.06963709741830826, -0.03509301692247391, -0.006450057495385408, 0.07696937769651413, -0.019085504114627838, -0.020055953413248062, 0.05908958613872528, 0.006450057495385408, 0.09496680647134781, -0.02823125571012497, 0.021428307518363, -0.014331283047795296, 0.02023239992558956, -0.004438090603798628, 0.019242344424128532, 0.08061591535806656, 0.06610818952322006, 0.011145464144647121, -0.03475973382592201, -0.023820120841264725, -0.03283843770623207, -0.029584001749753952, -0.03134845569729805, 0.04005309194326401, 0.008650722913444042, 0.017330853268504143, -0.020467659458518028, -0.006601996719837189, 0.04767945408821106, 0.021173441782593727, -0.019830496981739998, -0.0034284309949725866, -0.021173441782593727, -0.01556640025228262, 0.050071265548467636, 0.022330138832330704, 0.010586720891296864, -0.016281984746456146, 0.014576345682144165, 0.009268281981348991, 0.014007799327373505, -0.007023504935204983, 0.010204422287642956, -0.007464618422091007, 0.04920864477753639, 0.014713580720126629, -0.015478177927434444, -0.009483937174081802, 0.02011476829648018, 0.013801947236061096, -0.0690881535410881, 0.04183715209364891, 0.008243918418884277, -0.03524985909461975, -0.013615698553621769, 0.010684745386242867, 0.006508872844278812, -0.023467231541872025, -0.02423182688653469, -0.003911205101758242, 0.03130924701690674, -0.038484688848257065, 0.010880796238780022, 0.037210363894701004, 0.04175873100757599, -0.046032629907131195, -0.015213510021567345, 0.025584574788808823, 0.01174341794103384, -0.03485775738954544, 0.0012063224567100406, 0.03060346469283104, 0.01393918227404356, 0.04771866276860237, 0.04097453132271767, 0.010753363370895386, -0.10437722504138947, -0.06618660688400269, -0.02560417912900448, 0.030328994616866112, -0.01505666971206665, -0.0024175462312996387, -0.025564970448613167, -0.02928992733359337, 0.03007412888109684, 0.029231112450361252, -0.04026874899864197, -0.013860762119293213, -0.015478177927434444, 0.009861334227025509, 0.013821551576256752, -0.0011303529608994722, -0.005195335019379854, 0.013262808322906494, -0.01622316986322403, 0.08296851813793182, -0.016281984746456146, 0.018713008612394333, -0.02915269136428833, 0.017683744430541992, 0.03728878125548363, -0.0031858186703175306, 0.023349599912762642, -0.028701776638627052, 0.02691771648824215, -0.020389240235090256, -0.041248999536037445, 0.0015880081336945295, -0.032289497554302216, -0.05748197063803673, 0.007645965088158846, -0.02093818038702011, -0.026113910600543022, -0.004173422697931528, 0.018683601170778275, -0.028701776638627052, -0.03822982311248779, 0.0026760876644402742, -0.02252618968486786, 0.00849878415465355, 0.011910060420632362, -0.030054522678256035, -0.02076173573732376, -0.01569383218884468, -0.01604672335088253, -0.038876790553331375, -0.07242101430892944, -0.012939325533807278, -0.010282842442393303, -0.02717258222401142, -0.010498497635126114, -0.031152404844760895, 0.0023329996038228273, -0.010253435000777245, 0.03626932203769684, 0.020996995270252228, 0.08555638790130615, 0.04505237936973572, -0.03201502561569214, 0.04615025967359543, 0.042699772864580154, -0.01622316986322403, 0.010322052985429764, 0.02327118068933487, -0.0038842482026666403, 0.03722996637225151, 0.06344190239906311, -0.004609634634107351, -0.03042702004313469, 0.0031417072750627995, -0.06391242146492004, -0.051874931901693344, 0.022114483639597893, -0.05132598802447319, -0.029917288571596146, -0.016742702573537827, -0.01795821450650692, 0.03844548016786575, -0.01202769111841917, 0.007111727725714445, -0.01855616830289364, 0.00021151997498236597, 0.06708844006061554, 0.000950844376347959, 0.031093589961528778, -0.021095020696520805, 0.06493188440799713, 0.008346845395863056, -0.04920864477753639, 0.039092447608709335, -0.014723383821547031, 0.05140440911054611, 0.02989768236875534, 0.06630423665046692, 0.021565541625022888, -0.04520921781659126, 0.029427161440253258, 0.040935318917036057, -0.04830681532621384, -0.06010904535651207, 0.01997753418982029, 0.019673656672239304, -0.00778320012614131, -0.007092122454196215, -0.07979250699281693, 0.05309044197201729, -0.03474012762308121, -0.010959216393530369, 0.017987621948122978, 0.018252290785312653, -0.015193904750049114, 0.02529049851000309, -0.023682886734604836, 0.022055668756365776, 0.0010770517401397228, 0.01139052677899599, -0.001181816216558218, -0.0048350924625992775, -0.0255061537027359, -0.007190147880464792, -0.01909530721604824, -0.013576488941907883, -0.13237321376800537, -0.016203563660383224, -0.03056425414979458, -0.003166213631629944, 0.00037310837069526315, 0.018683601170778275, -0.036681026220321655, 0.006945084780454636, 0.04579737037420273, -0.033740270882844925, 0.02401617169380188, 0.05501173809170723, -0.018938466906547546, -0.020918576046824455, -0.011272897012531757, 0.022859474644064903, 0.057011451572179794, -0.015458572655916214, 0.029427161440253258, 0.03081911988556385, 0.00320052239112556, 0.00571976974606514, 0.0038523899856954813, 0.002505769021809101, -0.010508300736546516, 0.005298261530697346, -0.03621050715446472, -0.027643103152513504, 0.04842444509267807, 0.05238466337323189, -0.010224027559161186, 0.027427447959780693, -0.00751853222027421, -0.010351460427045822, -0.04022953659296036, -0.0154977822676301, 0.00683725718408823, -0.0033500108402222395, 0.008802661672234535, -0.006018746644258499, -0.03868073970079422, -0.022408558055758476, 0.03636734560132027, 0.022232113406062126, 0.04242530092597008, -0.003989625256508589, -0.0016688788309693336 ]
730,219
mmengine.fileio.backends.petrel_backend
copytree_to_local
Recursively copy an entire directory tree rooted at src to a local directory named dst and return the destination directory. Args: src (str or Path): A directory to be copied. dst (str or Path): Copy directory to local dst. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. Returns: str: The destination directory. Examples: >>> backend = PetrelBackend() >>> src = 'petrel://path/of/dir' >>> dst = 'path/of/your/dir' >>> backend.copytree_to_local(src, dst) 'path/of/your/dir'
def copytree_to_local( self, src: Union[str, Path], dst: Union[str, Path], ) -> Union[str, Path]: """Recursively copy an entire directory tree rooted at src to a local directory named dst and return the destination directory. Args: src (str or Path): A directory to be copied. dst (str or Path): Copy directory to local dst. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. Returns: str: The destination directory. Examples: >>> backend = PetrelBackend() >>> src = 'petrel://path/of/dir' >>> dst = 'path/of/your/dir' >>> backend.copytree_to_local(src, dst) 'path/of/your/dir' """ for path in self.list_dir_or_file(src, list_dir=False, recursive=True): dst_path = osp.join(dst, path) mmengine.mkdir_or_exist(osp.dirname(dst_path)) with open(dst_path, 'wb') as f: f.write(self.get(self.join_path(src, path))) return dst
(self, src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path]) -> Union[str, pathlib.Path]
[ -0.03645588085055351, -0.014783062972128391, -0.029604723677039146, -0.00869421660900116, -0.027713418006896973, 0.0031602175440639257, 0.02068856917321682, 0.03736293688416481, 0.06638868898153305, -0.057588327676057816, -0.006807735655456781, -0.04971432313323021, -0.03361892327666283, 0.005799361038953066, -0.03593480959534645, 0.010276737622916698, -0.007222665008157492, 0.008559123612940311, -0.004988801199942827, 0.01457077357918024, -0.005678741727024317, -0.020225390791893005, 0.10483237355947495, 0.041415736079216, -0.043577227741479874, -0.0401419997215271, -0.008723164908587933, -0.027732716873288155, -0.027346735820174217, 0.026883559301495552, 0.06137093901634216, 0.004332634154707193, 0.037633124738931656, -0.008211740292608738, -0.035355836153030396, -0.0027284014504402876, -0.025455430150032043, -0.00606954749673605, -0.06577111780643463, -0.12397702038288116, -0.028485380113124847, -0.039350736886262894, 0.035143546760082245, 0.05106525495648384, 0.09163182973861694, -0.016857709735631943, 0.04249648004770279, -0.07572942227125168, 0.05195301026105881, -0.04415619745850563, -0.01250577624887228, 0.1125519871711731, -0.042766667902469635, -0.0021771728061139584, 0.015005001798272133, 0.04033498838543892, 0.0008829309954307973, -0.02223249152302742, -0.06681326776742935, 0.009200816042721272, -0.00884860847145319, 0.0038598075043410063, -0.017870908603072166, 0.02437468431890011, -0.042959656566381454, -0.05052487924695015, -0.08684567362070084, -0.023236041888594627, -0.0029527528677135706, 0.0121390949934721, -0.12420860677957535, 0.0011832722229883075, 0.01888410933315754, 0.023641321808099747, 0.0020432856399565935, 0.07484167069196701, 0.06422720104455948, -0.05148983374238014, 0.021248240023851395, 0.021441230550408363, -0.06333944201469421, -0.0450439527630806, -0.026883559301495552, -0.015834860503673553, -0.004841646179556847, -0.0010324985487386584, -0.027018653228878975, -0.01831478625535965, 0.012602271512150764, -0.013007551431655884, -0.012882107868790627, 0.018131446093320847, 0.002330358838662505, 0.008501226082444191, 0.029102949425578117, -0.007145468611270189, 0.004764449782669544, 0.035876911133527756, -0.049559928476810455, 0.009910056367516518, -0.021035950630903244, 0.04392461106181145, -0.0670834556221962, -0.007106870878487825, 0.051103852689266205, -0.0032060525845736265, 0.007227489724755287, 0.0064169298857450485, 0.04859497770667076, 0.002576421480625868, -0.001999862724915147, -0.006127444561570883, 0.040296390652656555, -0.010006550699472427, -0.008935454301536083, 0.004195128567516804, -0.029797714203596115, -0.03383121266961098, -0.030820563435554504, -0.000940224970690906, 0.005924804601818323, 0.04114554822444916, 0.026613373309373856, -0.019540276378393173, 0.01864287070930004, 0.010981152765452862, 0.10992731899023056, -0.009157393127679825, -0.0701713040471077, -0.025687020272016525, -0.015969954431056976, 0.028967855498194695, -0.03219079598784447, 0.06198851019144058, 0.06291486322879791, -0.0007448222604580224, -0.00583795877173543, 0.007290211506187916, -0.00029506420833058655, -0.0018454705132171512, 0.043191246688365936, -0.05237758904695511, 0.008747288957238197, 0.02532033808529377, 0.01641383208334446, -0.03286626189947128, -0.039485830813646317, -0.015661168843507767, 0.0031312687788158655, 0.020109597593545914, -0.006653343327343464, -0.010489027015864849, -0.04083676263689995, 0.06588691473007202, -0.025706319138407707, 0.026787064969539642, -0.029508229345083237, -0.00972671527415514, 0.04041218385100365, -0.0065568480640649796, -0.06472897529602051, -0.043384235352277756, 0.06685186922550201, -0.0379033088684082, 0.027867810800671577, 0.0060020009987056255, 0.006831859238445759, -0.019675368443131447, -0.05237758904695511, 0.003818797180429101, -0.0004028674156870693, -0.025706319138407707, -0.0016910781851038337, -0.02047627978026867, -0.009417930617928505, -0.05847608298063278, 0.04639488831162453, 0.0076520685106515884, -0.03448738157749176, 0.007594171445816755, 0.048633575439453125, 0.010778512805700302, 0.023506227880716324, 0.014937454834580421, 0.013364583253860474, -0.01789020746946335, -0.013856709003448486, 0.0401419997215271, 0.0013340460136532784, 0.02192370779812336, 0.009977602399885654, 0.02254127711057663, -0.01596030406653881, -0.011232039891183376, 0.018604272976517677, -0.011289937421679497, 0.04288246110081673, -0.04766862466931343, -0.008448153734207153, 0.08229109644889832, -0.015526075847446918, -0.021344736218452454, 0.08175072073936462, 0.022618472576141357, -0.004940553568303585, 0.00919116660952568, -0.053072355687618256, 0.08275427669286728, -0.013827760703861713, -0.014840960502624512, 0.012611920945346355, 0.011289937421679497, 0.03379261493682861, -0.025358935818076134, -0.006373507436364889, -0.013268088921904564, -0.09834789484739304, 0.05179861932992935, 0.018353385850787163, 0.034429483115673065, -0.02130613848567009, -0.0361470989882946, -0.025358935818076134, -0.018179694190621376, -0.018864808604121208, -0.06534653902053833, -0.022502677515149117, 0.0029117423109710217, 0.04465797170996666, -0.03925424441695213, 0.02726954035460949, -0.04087536036968231, 0.025050150230526924, -0.03745943307876587, 0.03925424441695213, -0.047089651226997375, 0.03852088004350662, -0.04241928458213806, 0.02367991954088211, 0.000919116660952568, -0.0185270756483078, -0.017012102529406548, 0.024779964238405228, 0.027655521407723427, 0.006889756303280592, -0.011637319810688496, 0.009133270010352135, -0.051605626940727234, 0.06993971019983292, 0.011241689324378967, -0.05917084962129593, 0.02313954569399357, -0.08352623879909515, 0.03991040959954262, 0.040720969438552856, -0.002957577584311366, 0.009278012439608574, 0.004224076867103577, -0.013065448962152004, 0.041531529277563095, -0.021344736218452454, -0.07279597222805023, 0.019656069576740265, -0.017967404797673225, -0.030646871775388718, -0.04670367017388344, -0.027520427480340004, -0.043384235352277756, 0.017349835485219955, -0.0019431718392297626, 0.1137099340558052, 0.032267991453409195, 0.029083650559186935, 0.028080100193619728, 0.06083056703209877, -0.016587523743510246, -0.08144193887710571, 0.0965723842382431, 0.0361470989882946, -0.009244238957762718, 0.005649793427437544, -0.02572561800479889, -0.05890066176652908, -0.08020680397748947, -0.034429483115673065, -0.00527828698977828, -0.0140014523640275, -0.05176001787185669, -0.003317022230476141, -0.038327887654304504, 0.02213599719107151, 0.025687020272016525, -0.049868714064359665, -0.020746465772390366, 0.00902712531387806, -0.010836409404873848, -0.016143644228577614, -0.011791711673140526, 0.012621570378541946, 0.035143546760082245, -0.027713418006896973, -0.011897856369614601, 0.023313237354159355, 0.04500535503029823, -0.014474278315901756, 0.0008883588598109782, 0.03991040959954262, -0.0035027754493057728, -0.049559928476810455, 0.019472729414701462, -0.046780869364738464, -0.06831859052181244, -0.019482377916574478, -0.030531078577041626, 0.011367132887244225, 0.00374401337467134, 0.0031119699124246836, -0.01826654002070427, -0.008370957337319851, -0.036089200526475906, -0.06766242533922195, 0.059325240552425385, -0.03244168311357498, 0.05982701852917671, -0.0022423069458454847, -0.015304137021303177, 0.07183101773262024, 0.05434609204530716, 0.06469037383794785, 0.016211191192269325, -0.00492849200963974, 0.010836409404873848, 0.014657619409263134, 0.011000451631844044, 0.02130613848567009, 0.0454685315489769, -0.017784062772989273, -0.049251142889261246, 0.00014632591046392918, -0.021595623344182968, 0.10460078716278076, -0.006542373914271593, 0.03622429445385933, -0.01230313628911972, 0.05403730645775795, 0.06773962080478668, -0.01603749953210354, -0.017224391922354698, 0.05010030046105385, 0.07781372219324112, 0.0018925118492916226, 0.02686426043510437, -0.009987251833081245, -0.03056967630982399, -0.018208641558885574, 0.030202994123101234, 0.0326346717774868, -0.012997901998460293, 0.026323888450860977, -0.04755282774567604, 0.04095255956053734, 0.0064555280841887, 0.011251338757574558, -0.03271187096834183, 0.0017260577296838164, -0.03944723308086395, 0.0023496579378843307, -0.03693835809826851, -0.0187683142721653, 0.009673642925918102, 0.014995352365076542, -0.011830310337245464, 0.04396320879459381, -0.035143546760082245, -0.01859462261199951, -0.002798360539600253, 0.012168043293058872, -0.03859807550907135, -0.01029603648930788, 0.04265087470412254, 0.059942811727523804, 0.0040359110571444035, 0.010218840092420578, 0.02263777144253254, 0.059132251888513565, -0.03201710432767868, 0.08931594341993332, -0.011540824547410011, -0.025339636951684952, -0.035355836153030396, -0.01831478625535965, -0.003924941644072533, 0.059441037476062775, 0.022869359701871872, -0.02983631193637848, -0.077620729804039, 0.02254127711057663, -0.002031223848462105, -0.01090395636856556, 0.009200816042721272, 0.01987800933420658, -0.034950558096170425, -0.012872458435595036, -0.0012285043485462666, -0.02892925776541233, 0.02026399038732052, 0.0454685315489769, 0.0158638097345829, 0.014078647829592228, 0.039080552756786346, 0.0043446957133710384, 0.014377783052623272, 0.011550473980605602, 0.013962853699922562, -0.022193893790245056, -0.00897887721657753, 0.010797811672091484, -0.04766862466931343, 0.02335183508694172, -0.011753113940358162, -0.003201227867975831, -0.029199443757534027, 0.013268088921904564, -0.038038402795791626, 0.06052178144454956, -0.04265087470412254, 0.00033200375037267804, -0.02190440706908703, -0.0405665785074234, 0.053998708724975586, 0.005061172880232334, -0.009297311305999756, 0.05577421933412552, -0.00504669826477766, 0.07256438583135605, 0.0485563799738884, 0.02759762480854988, 0.006238413974642754, -0.008607370778918266, 0.03006790019571781, -0.012322436086833477, -0.06198851019144058, 0.031167946755886078, -0.05010030046105385, -0.07098186016082764, -0.007878832519054413, -0.07746633887290955, -0.025474729016423225, -0.026323888450860977, 0.051837217062711716, -0.02088155969977379, 0.022695668041706085, 0.027134446427226067, 0.013557573780417442, -0.0454685315489769, -0.018816562369465828, -0.017012102529406548, -0.021750016137957573, -0.014464628882706165, 0.042959656566381454, 0.029315238818526268, -0.013132994994521141, 0.16211192309856415, 0.015419931150972843, 0.02481856197118759, -0.003152980236336589, 0.07291176170110703, 0.010527624748647213, -0.0458931103348732, -0.05731814354658127, 0.03900335729122162, -0.02335183508694172, 0.006909055635333061, 0.04037358611822128, 0.05021609738469124, -0.012631219811737537, -0.0639956071972847, -0.03852088004350662, -0.05237758904695511, -0.019472729414701462, -0.042264893651008606, -0.0028393708635121584, 0.0727187767624855, 0.016133995726704597, -0.05299515649676323, -0.04261227697134018, 0.029295939952135086, 0.0670834556221962, 0.005056347697973251, 0.02541683241724968, -0.019163943827152252, 0.007270912639796734, -0.01833408512175083, -0.04396320879459381, -0.06712205708026886, 0.03715064749121666, -0.06009720265865326, 0.025088749825954437, -0.04315264895558357, -0.015362034551799297, -0.012621570378541946, 0.015255889855325222, -0.014831310138106346, -0.0005156461847946048, -0.035259343683719635, 0.029276641085743904, -0.0019286975730210543, 0.027501128613948822, -0.030106499791145325, 0.06646588444709778, -0.00593927875161171, -0.0077919866889715195, -0.0262466911226511, -0.017253339290618896, 0.02171141840517521, 0.03605060279369354, 0.021576324477791786, -0.001145880320109427, -0.009234589524567127, -0.07256438583135605, -0.030820563435554504, -0.0052638123743236065, 0.06318505108356476, -0.024529077112674713, -0.006672642193734646, 0.043191246688365936, 0.006141918711364269, 0.0825226828455925, -0.014734815806150436, 0.005818659905344248, 0.002735638525336981, 0.025918608531355858, 0.010305685922503471, 0.0074832020327448845, 0.06584832072257996, 0.049868714064359665, 0.015169044025242329, -0.03591550886631012, -0.0035389610566198826, -0.03068546950817108, -0.026092298328876495, -0.02223249152302742, 0.010875008068978786, 0.012621570378541946, 0.01563222147524357, -0.011897856369614601, -0.012264538556337357, 0.049251142889261246, 0.017069999128580093, -0.005953753367066383, -0.001890099490992725, -0.023544825613498688, -0.014261988922953606, 0.06785541772842407, 0.009736364707350731, 0.019540276378393173, -0.008211740292608738, 0.02037978358566761, 0.008477102033793926, 0.012322436086833477, -0.005649793427437544, -0.00463176891207695, -0.014454979449510574, 0.05403730645775795, 0.02634318731725216, -0.026497578248381615, -0.009813561104238033, 0.02840818278491497, 0.014686567708849907, -0.06187271699309349, 0.05056348070502281, 0.013470727950334549, -0.03292416036128998, -0.014281287789344788, 0.016848059371113777, -0.01607609912753105, -0.02047627978026867, -0.03458387404680252, -0.011492577381432056, 0.027115147560834885, -0.02171141840517521, 0.012235590256750584, 0.032789066433906555, 0.04859497770667076, -0.033715419471263885, -0.011598722077906132, 0.036089200526475906, 0.023293938487768173, -0.043268442153930664, -0.012602271512150764, 0.028060801327228546, 0.03842438384890556, 0.05550403147935867, 0.026265989989042282, 0.015255889855325222, -0.09911985695362091, -0.07897166162729263, -0.028659071773290634, 0.05754972994327545, -0.019588522613048553, -0.013750564306974411, -0.026111599057912827, -0.02790640853345394, 0.017784062772989273, 0.02047627978026867, -0.0564303882420063, -0.0095964465290308, -0.030955657362937927, 0.0163173358887434, 0.008202090859413147, 0.019675368443131447, -0.002300204010680318, 0.02007099986076355, -0.02719234488904476, 0.0564303882420063, -0.03219079598784447, 0.010324984788894653, -0.025494029745459557, -0.00406244769692421, 0.03815419599413872, 0.009673642925918102, 0.018160395324230194, -0.017784062772989273, 0.018179694190621376, -0.010788162238895893, -0.030801264569163322, 0.012872458435595036, -0.03141883388161659, -0.053072355687618256, -0.014068998396396637, -0.021595623344182968, -0.04048938304185867, -0.007748563773930073, 0.008370957337319851, -0.030820563435554504, -0.04963712394237518, 0.005934454035013914, -0.016240140423178673, -0.010730264708399773, -0.005461627617478371, -0.024104498326778412, -0.0034569401759654284, -0.014744465239346027, -0.03228728845715523, -0.03574181720614433, -0.06882037222385406, -0.016423480585217476, -0.012660169042646885, -0.04106835275888443, -0.016587523743510246, -0.025243140757083893, 0.014020751230418682, -0.010074097663164139, 0.047089651226997375, 0.027655521407723427, 0.10027780383825302, 0.033078551292419434, -0.03466107323765755, 0.04735983908176422, 0.03574181720614433, -0.016857709735631943, 0.004158942494541407, 0.02130613848567009, -0.009741188958287239, 0.03601200506091118, 0.05886206403374672, 0.0012399632250890136, -0.04299825802445412, 0.011791711673140526, -0.050370488315820694, -0.07028709352016449, 0.02335183508694172, -0.07210120558738708, -0.029508229345083237, -0.018179694190621376, -0.028446782380342484, 0.04932834208011627, -0.011830310337245464, -0.00758934672921896, -0.010720615275204182, 0.006441053934395313, 0.047707222402095795, 0.002759762341156602, 0.04253507778048515, -0.030801264569163322, 0.0693221464753151, 0.009948654100298882, -0.03199780359864235, 0.04392461106181145, -0.021692117676138878, 0.05650758370757103, 0.030839862301945686, 0.06943793594837189, 0.010855709202587605, -0.028137996792793274, 0.029701219871640205, 0.037845414131879807, -0.04048938304185867, -0.046896662563085556, 0.00890650600194931, 0.017542826011776924, -0.008308235555887222, -0.014947105199098587, -0.08522455394268036, 0.06002000719308853, -0.03406280279159546, -0.010189891792833805, 0.02313954569399357, 0.016587523743510246, -0.022213192656636238, 0.017629671841859818, -0.021885108202695847, 0.023930806666612625, 0.0020951516926288605, 0.010103045962750912, -0.011096946895122528, -0.01414619479328394, -0.015931354835629463, -0.014676918275654316, -0.015989253297448158, -0.004923666827380657, -0.09919705241918564, -0.008390257135033607, -0.03846298158168793, -0.004897130653262138, -0.008510875515639782, 0.0026343187782913446, -0.033715419471263885, 0.01893235556781292, 0.03807700052857399, -0.03313644975423813, 0.03406280279159546, 0.07484167069196701, -0.028948556631803513, -0.011994351632893085, -0.017658619210124016, 0.017832310870289803, 0.053072355687618256, -0.014734815806150436, 0.026883559301495552, 0.05426889285445213, 0.00268980348482728, 0.010218840092420578, 0.0024184107314795256, 0.02821519412100315, -0.004875419661402702, 0.0009685704717412591, -0.03068546950817108, -0.02016749419271946, 0.03413999825716019, 0.06164112687110901, -0.013972503133118153, 0.039080552756786346, 0.0026101949624717236, -0.007217840291559696, -0.020360484719276428, 0.002499225316569209, 0.011019750498235226, -0.013277738355100155, -0.004361582454293966, -0.014937454834580421, -0.03230658918619156, -0.026690568774938583, 0.03265397250652313, 0.025957206264138222, 0.036185696721076965, -0.005360307637602091, 0.010508325882256031 ]
730,220
mmengine.fileio.backends.petrel_backend
exists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns: bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.exists(filepath) True
def exists(self, filepath: Union[str, Path]) -> bool: """Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns: bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.exists(filepath) True """ if not (has_method(self._client, 'contains') and has_method(self._client, 'isdir')): raise NotImplementedError( 'Current version of Petrel Python SDK has not supported ' 'the `contains` and `isdir` methods, please use a higher' 'version or dev branch instead.') filepath = self._map_path(filepath) filepath = self._format_path(filepath) filepath = self._replace_prefix(filepath) return self._client.contains(filepath) or self._client.isdir(filepath)
(self, filepath: Union[str, pathlib.Path]) -> bool
[ 0.01543942466378212, -0.09647573530673981, -0.05867164954543114, 0.025900758802890778, 0.04849503934383392, 0.012022728100419044, 0.01008476410061121, 0.008091690950095654, -0.042984239757061005, -0.013014672324061394, 0.019232692196965218, 0.023769916966557503, 0.041992295533418655, -0.0762694701552391, -0.01117773912847042, -0.025882389396429062, 0.04166164621710777, 0.01306978054344654, -0.00924895890057087, -0.060618799179792404, -0.006929830648005009, 0.04669484496116638, 0.07869422435760498, 0.0358569361269474, 0.026029344648122787, 0.03495683893561363, 0.015430239960551262, -0.021345164626836777, -0.0156506709754467, 0.04107382893562317, -0.0032444833777844906, 0.008780540898442268, 0.017340650781989098, 0.018378516659140587, 0.02081245370209217, 0.0470622293651104, -0.023126989603042603, 0.014897529035806656, -0.04603354632854462, -0.05742253363132477, -0.031760577112436295, 0.0810454934835434, 0.009262735955417156, 0.02928071655333042, 0.006911461241543293, 0.017827438190579414, -0.0652846097946167, 0.0015499125001952052, -0.008178945630788803, -0.0009930920787155628, 0.07737162709236145, 0.02744378335773945, -0.04008188471198082, -0.023071881383657455, -0.04342510178685188, -0.0032628527842462063, 0.039457328617572784, 0.0762694701552391, -0.03205448389053345, 0.002295018406584859, -0.0007858630269765854, -0.0342220664024353, 0.0063695660792291164, -0.04783374443650246, 0.008188130334019661, 0.005226075183600187, -0.008229461498558521, -0.07803292572498322, 0.03424043580889702, -0.02718661166727543, -0.018598949536681175, 0.030566569417715073, 0.033101536333560944, -0.03638964891433716, 0.00540976831689477, 0.009781669825315475, 0.03927363455295563, 0.04037579521536827, 0.01545779313892126, 0.007223740220069885, -0.06252920627593994, -0.06991367787122726, 0.014392372220754623, -0.03297295421361923, 0.023108620196580887, 0.05499778315424919, 0.030676785856485367, -0.022594278678297997, -0.02898680791258812, 0.0691421702504158, -0.01322591956704855, 0.029225608333945274, 0.03379957377910614, -0.021381903439760208, 0.04684180021286011, -0.055842772126197815, 0.04026557877659798, -0.03479151800274849, -0.002769176848232746, -0.026341622695326805, -0.03536096587777138, -0.006994123570621014, 0.03045635297894478, 0.010571550577878952, 0.033781204372644424, 0.0476500503718853, -0.013382058590650558, 0.008178945630788803, 0.038465384393930435, -0.020996147766709328, -0.02748052217066288, -0.04610702395439148, 0.06396201997995377, -0.00447063660249114, 0.021877875551581383, -0.06436613947153091, 0.00909741222858429, -0.015127145685255527, -0.02808671072125435, -0.03673866391181946, 0.0169916320592165, 0.009106596931815147, 0.013721891678869724, -0.008587663061916828, 0.06928912550210953, -0.031760577112436295, 0.025441525503993034, 0.011682895943522453, -0.028545944020152092, 0.016018059104681015, -0.030180813744664192, 0.053785406053066254, 0.025900758802890778, 0.02116147056221962, -0.033046428114175797, 0.057569488883018494, 0.027627477422356606, 0.008119245059788227, -0.02924397774040699, 0.06756240874528885, 0.0221901535987854, -0.013795369304716587, -0.00592410983517766, 0.003926444798707962, 0.04908285662531853, 0.05044218897819519, -0.04603354632854462, -0.04210251197218895, 0.02202483080327511, 0.028068341314792633, 0.0035292080137878656, -0.043976183980703354, 0.01776314526796341, 0.009928624145686626, -0.00649355910718441, 0.004112434573471546, -0.004422416910529137, 0.022208523005247116, -0.018764274194836617, -0.025294572114944458, 0.0053133293986320496, 0.03411184996366501, -0.031154388561844826, -0.002213504631072283, -0.030731894075870514, 0.0264518391340971, -0.06741545349359512, 0.04783374443650246, 0.010626658797264099, 0.06120661646127701, 0.022631017491221428, -0.012996302917599678, -0.018075423315167427, 0.00554753839969635, 0.015935396775603294, -0.035158902406692505, 0.06759914755821228, 0.058598171919584274, -0.008844833821058273, 0.021271687000989914, 0.037602026015520096, -0.04967067763209343, 0.002219245070591569, -0.007141078356653452, 0.04089013487100601, 0.037565287202596664, -0.0004411510017234832, -0.02683759480714798, 0.026396730914711952, 0.05742253363132477, -0.037014205008745193, 0.012096205726265907, 0.06976672261953354, 0.05194847285747528, 0.01212375983595848, -0.04742961749434471, 0.09221404790878296, -0.02106962539255619, -0.08493979275226593, 0.026764117181301117, 0.059663593769073486, -0.018415255472064018, 0.0009328176965937018, 0.007862074300646782, -0.033560771495103836, -0.010562366805970669, 0.0029436855111271143, 0.01616501249372959, -0.00478521129116416, 0.029942013323307037, -0.043204668909311295, -0.09125884622335434, -0.004420120734721422, 0.0140158012509346, 0.037436701357364655, 0.056614283472299576, -0.05565907806158066, 0.05665102228522301, -0.027241719886660576, 0.0179284680634737, 0.09067102521657944, 0.022741233929991722, 0.023384161293506622, -0.016587506979703903, 0.030511461198329926, 0.0009362619020976126, -0.02064713090658188, 0.05047892779111862, -0.053564973175525665, -0.016504844650626183, -0.020738976076245308, 0.025864019989967346, 0.04000840708613396, 0.03306479752063751, 0.006539482623338699, -0.007425802759826183, 0.023126989603042603, 0.06965651363134384, 0.04077991843223572, 0.021620703861117363, 0.014713835902512074, 0.027370305731892586, 0.001476435107178986, 0.0012227087281644344, -0.05639385059475899, -0.019673556089401245, 0.019893987104296684, -0.0055245766416192055, -0.010718505829572678, -0.046988751739263535, 0.02296166680753231, 0.012491146102547646, -0.030952325090765953, -0.01577925682067871, 0.007816150784492493, -0.039236895740032196, -0.050038062036037445, -0.004789803642779589, -0.004117026925086975, 0.038722552359104156, -0.028417358174920082, 0.03626106306910515, 0.04948698356747627, 0.016284413635730743, -0.029942013323307037, -0.04963393881917, 0.02812344767153263, 0.011508386582136154, -0.02443121187388897, -0.029868535697460175, -0.012619731947779655, 0.06352115422487259, 0.004057326354086399, -0.020500175654888153, 0.02090430073440075, -0.0014511772897094488, -0.016073165461421013, -0.015081222169101238, 0.01498937513679266, 0.031209496781229973, -0.059884026646614075, -0.009533683769404888, 0.05338128283619881, -0.0516178235411644, 0.0016429071547463536, -0.01361167524009943, -0.03271578252315521, 0.07913508266210556, -0.025478264316916466, 0.005533761344850063, -0.005914925131946802, -0.011545125395059586, -0.0267457477748394, -0.012261529453098774, -0.013097334653139114, 0.07516731321811676, 0.000477602647151798, -0.009120373986661434, 0.025735436007380486, -0.08596847951412201, -0.01680793985724449, 0.027021288871765137, 0.0021836543455719948, 0.007251294329762459, -0.02266775630414486, 0.006305273622274399, 0.006291496567428112, 0.0035429850686341524, -0.02026137337088585, 0.014548511244356632, -0.03642638772726059, -0.01204109750688076, -0.02459653653204441, 0.011398171074688435, 0.09030363708734512, 0.017515158280730247, -0.04761331155896187, -0.04000840708613396, -0.04441704601049423, 0.018727535381913185, -0.03613247722387314, 0.0666806772351265, 0.015494531951844692, 0.01586191914975643, -0.034258805215358734, -0.03543444350361824, -0.0026497761718928814, 0.0159996896982193, -0.018084608018398285, 0.045041605830192566, 0.047539833933115005, -0.016449738293886185, 0.1010313332080841, -0.03052983060479164, -0.0218962449580431, -0.026911072432994843, -0.007467133924365044, -0.01103078480809927, 0.04316793382167816, 0.1004435122013092, 0.02176765911281109, -0.039457328617572784, -0.018204009160399437, 0.0033110722433775663, -0.011985989287495613, -0.005506207700818777, -0.022006461396813393, 0.0056899008341133595, 0.04555594548583031, -0.0038965947460383177, 0.008500408381223679, 0.0018438217230141163, -0.03672029450535774, 0.0310074333101511, -0.004707141313701868, -0.011039968580007553, 0.03642638772726059, 0.0743957981467247, 0.008325899951159954, 0.007986067794263363, 0.0033064798917621374, -0.055548861622810364, -0.02356785349547863, 0.006906869355589151, -0.010020471177995205, -0.03383631259202957, 0.04959720000624657, 0.0006877019186504185, -0.07248538732528687, 0.042727068066596985, 0.04177186265587807, -0.02700291946530342, -0.019893987104296684, -0.037436701357364655, 0.028931699693202972, -0.04584985598921776, 0.0017508270684629679, -0.057312317192554474, 0.048017434775829315, 0.010461335070431232, -0.0032352986745536327, 0.06620307266712189, -0.004587740637362003, 0.02004094235599041, 0.04772352799773216, 0.050038062036037445, 0.03229328617453575, -0.0064705973491072655, -0.05856143310666084, -0.029776688665151596, -0.004048141650855541, 0.0018426737515255809, -0.021620703861117363, -0.061353571712970734, -0.025992605835199356, -0.07942899316549301, 0.01114100031554699, 0.009414282627403736, 0.01160941831767559, 0.03633454069495201, 0.03332196921110153, -0.07898812741041183, 0.014089277945458889, 0.044784434139728546, -0.022520802915096283, 0.06447635591030121, 0.03376283496618271, 0.018249932676553726, -0.0012560031609609723, -0.04886242374777794, -0.020702237263321877, -0.05521821603178978, -0.018139716237783432, -0.0345710851252079, -0.0672684982419014, 0.08692368119955063, -0.03376283496618271, -0.002932204632088542, 0.010406226851046085, 0.013088149949908257, -0.01128795463591814, -0.017854992300271988, -0.018305040895938873, 0.06928912550210953, -0.0001859894982771948, 0.025606850162148476, -0.007278847973793745, -0.04265359044075012, 0.011012415401637554, -0.01667935401201248, -0.01720288023352623, -0.06899521499872208, 0.04691527411341667, -0.029997119680047035, 0.010397042147815228, -0.03453434631228447, -0.02360459230840206, -0.05139739438891411, -0.05294041708111763, -0.008477446623146534, -0.015852734446525574, -0.02533130906522274, -0.06337419897317886, -0.01982050947844982, 0.03260556608438492, -0.012289083562791348, -0.04162490740418434, -0.04460074007511139, 0.0939040258526802, -0.0064292666502296925, -0.05238933861255646, 0.038979724049568176, 0.08133940398693085, 0.010112317278981209, -0.05466713383793831, 0.003951702732592821, -0.03600389137864113, 0.00823405385017395, -0.033652618527412415, -0.01673446223139763, -0.02228200063109398, 0.05955337733030319, 0.04845830053091049, -0.04992784559726715, 0.013290212489664555, -0.031925901770591736, 0.009395914152264595, 0.009216812439262867, 0.01974703185260296, 0.03194427117705345, 0.013299397192895412, -0.03174220770597458, -0.04331488534808159, -0.0015636894386261702, 0.0310074333101511, 0.005598054267466068, 0.03905320167541504, 0.051801517605781555, -0.06576221436262131, 0.006539482623338699, -0.010773614048957825, -0.04360879585146904, -0.06381506472826004, 0.049009378999471664, 0.03611410781741142, -0.03521401062607765, 0.003478692378848791, 0.050001323223114014, 0.0024890445638448, -0.061390310525894165, 0.05565907806158066, -0.027370305731892586, 0.014869974926114082, -0.013235104270279408, 0.026029344648122787, 0.0018288966966792941, -0.033909786492586136, 0.0581573061645031, -0.04213925078511238, -0.02751726098358631, -0.01755189709365368, 0.005037789698690176, 0.031925901770591736, 0.08809932321310043, -0.021602334454655647, -0.030291030183434486, 0.01193088199943304, 0.026984550058841705, -0.04265359044075012, 0.013905584812164307, -0.010498073883354664, 0.06477026641368866, -0.046547889709472656, 0.004557890817523003, 0.026764117181301117, 0.06737871468067169, -0.03221980854868889, -0.04996458441019058, -0.03839190676808357, -0.010690951719880104, 0.013382058590650558, -0.030676785856485367, 0.03523238003253937, -0.014456665143370628, -0.025092508643865585, 0.024963922798633575, -0.014713835902512074, -0.04140447452664375, -0.003983849193900824, 0.0025051177944988012, 0.006805837620049715, 0.016367075964808464, -0.04967067763209343, -0.045776378363370895, 0.05396910011768341, 0.029041914269328117, 0.004635960329324007, -0.018801013007760048, 0.010626658797264099, -0.006199650000780821, 0.03139318898320198, 0.0070446389727294445, -0.03901646286249161, -0.019508231431245804, 0.006360381375998259, -0.032954584807157516, -0.02459653653204441, -0.11594723165035248, 0.07575512677431107, 0.005763377994298935, 0.04390270635485649, 0.016486477106809616, 0.03058493882417679, -0.0020975482184439898, 0.08038420230150223, 0.09566748887300491, 0.021602334454655647, -0.07502035796642303, -0.025864019989967346, -0.016670169308781624, -0.013529013842344284, -0.053087372332811356, -0.049780890345573425, 0.015145515091717243, -0.011444094590842724, -0.03205448389053345, 0.016578322276473045, -0.007949328981339931, 0.05819404497742653, -0.07494688034057617, 0.029556255787611008, 0.04493138939142227, 0.021400272846221924, -0.031154388561844826, -0.011692080646753311, -0.027333566918969154, 0.035287488251924515, -0.007379879243671894, 0.03809799626469612, -0.002799027133733034, -0.04882568493485451, -0.01651402935385704, -0.03052983060479164, 0.028233664110302925, -0.048237867653369904, 0.0014213271206244826, 0.014980190433561802, 0.05338128283619881, -0.03719789907336235, -0.019985834136605263, -0.00739824865013361, 0.013198365457355976, 0.059884026646614075, -0.0063649737276136875, 0.03332196921110153, -0.009106596931815147, 0.030823741108179092, -0.0398247130215168, 0.09096493571996689, -0.0013799960725009441, -0.03828169032931328, -0.04291076213121414, -0.030823741108179092, -0.03857559710741043, -0.019508231431245804, 0.011517571285367012, -0.01038785744458437, -0.009432652033865452, -0.026047714054584503, -0.04037579521536827, -0.004277758300304413, -0.025570111349225044, 0.011627787724137306, 0.016412999480962753, 0.07064845412969589, 0.035893674939870834, -0.005662346724420786, -0.007710527628660202, -0.016504844650626183, -0.04269032925367355, 0.016504844650626183, -0.02555174194276333, 0.05753275007009506, 0.022337108850479126, -0.03174220770597458, 0.00034413798130117357, 0.044784434139728546, -0.01586191914975643, -0.03942058980464935, -0.04493138939142227, 0.0345710851252079, -0.019489862024784088, 0.010130686685442924, -0.02992364391684532, -0.00034586008405312896, -0.07211799919605255, 0.012371745891869068, -0.03324849158525467, 0.05646732822060585, -0.00639712018892169, -0.0456661619246006, -0.06381506472826004, -0.05172803997993469, 0.007462541572749615, 0.03203611820936203, 0.01788254640996456, -0.004146876744925976, -0.03348729386925697, 0.08773193508386612, 0.006126172374933958, -0.0027576962020248175, 0.058855343610048294, -0.06311702728271484, -0.017175326123833656, -0.004691068548709154, 0.015604748390614986, 0.008955049328505993, -0.026984550058841705, -0.027425413951277733, 0.03787756338715553, 0.001301926444284618, -0.03335870802402496, -0.011554310098290443, 0.005184744019061327, -0.001866783481091261, 0.008178945630788803, 0.02933582477271557, -0.06227203831076622, -0.00558886956423521, 0.05503452196717262, -0.006980346515774727, 0.04860525578260422, -0.03297295421361923, -0.0171661414206028, 0.036922357976436615, 0.028196925297379494, -0.05742253363132477, -0.0017818253254517913, -0.04011862352490425, 0.006617552135139704, -0.019379645586013794, 0.0280316025018692, -0.018902042880654335, 0.04518855735659599, -0.002336349571123719, 0.008684102445840836, 0.07046476006507874, -0.0313013419508934, 0.0176345594227314, -0.01498937513679266, -0.03168709948658943, -0.04886242374777794, -0.013345320709049702, 0.07314668595790863, 0.018286671489477158, -0.02296166680753231, 0.04934002831578255, 0.030511461198329926, -0.017864177003502846, -0.03148503601551056, 0.022814711555838585, 0.012197236530482769, -0.0007709379424341023, 0.01914084516465664, 0.006847168784588575, 0.02421078085899353, -0.04382922872900963, -0.015218991786241531, 0.015852734446525574, 0.030327768996357918, -0.046547889709472656, 0.024394473060965538, 0.0736977607011795, -0.05143413320183754, 0.03986145183444023, -0.047245923429727554, 0.020959408953785896, 0.007274255622178316, 0.0385388620197773, -0.045519206672906876, 0.024798600003123283, -0.03758365660905838, -0.02321883663535118, -0.041955556720495224, -0.024265889078378677, -0.0463641956448555, 0.0032651489600539207, -0.02386176399886608, -0.0369039885699749, 0.05551212280988693, 0.00001640503433009144, -0.024541428312659264, -0.018993889912962914, 0.014392372220754623, 0.00395629508420825, -0.022869819775223732, 0.014282156713306904, -0.002189394785091281, 0.026396730914711952, 0.01677120104432106, 0.0019264838192611933, -0.01755189709365368, -0.0028242848347872496, -0.10749733448028564, 0.05396910011768341, 0.02193298377096653, 0.04529877379536629, -0.04353531822562218, -0.02305351197719574, 0.005428137723356485, 0.03762039542198181, -0.015274100005626678, -0.027590738609433174, 0.013620859943330288, -0.019728664308786392, -0.007862074300646782, -0.015209808014333248, 0.03978797420859337, -0.03379957377910614, 0.0012709281872957945, -0.05492430552840233, -0.005836855620145798, -0.018598949536681175, -0.0020137380342930555, 0.037344854325056076, 0.0059975869953632355, -0.03664682060480118, 0.012785055674612522 ]
730,221
mmengine.fileio.backends.petrel_backend
generate_presigned_url
Generate the presigned url of video stream which can be passed to mmcv.VideoReader. Now only work on Petrel backend. Note: Now only work on Petrel backend. Args: url (str): Url of video stream. client_method (str): Method of client, 'get_object' or 'put_object'. Default: 'get_object'. expires_in (int): expires, in seconds. Default: 3600. Returns: str: Generated presigned url.
def generate_presigned_url(self, url: str, client_method: str = 'get_object', expires_in: int = 3600) -> str: """Generate the presigned url of video stream which can be passed to mmcv.VideoReader. Now only work on Petrel backend. Note: Now only work on Petrel backend. Args: url (str): Url of video stream. client_method (str): Method of client, 'get_object' or 'put_object'. Default: 'get_object'. expires_in (int): expires, in seconds. Default: 3600. Returns: str: Generated presigned url. """ return self._client.generate_presigned_url(url, client_method, expires_in)
(self, url: str, client_method: str = 'get_object', expires_in: int = 3600) -> str
[ -0.031490448862314224, -0.038023434579372406, -0.06470590084791183, 0.030315980315208435, -0.017635386437177658, 0.032683271914720535, 0.02798539400100708, 0.023966507986187935, 0.04136332869529724, 0.050428763031959534, 0.00486303586512804, 0.0338393896818161, -0.012891632504761219, 0.0341513566672802, 0.010083917528390884, 0.018846556544303894, 0.06874313950538635, -0.060998983681201935, -0.011671286076307297, -0.03872077539563179, 0.03648194298148155, 0.001043717609718442, -0.01583698019385338, -0.011221684515476227, -0.002002561464905739, 0.071459099650383, 0.017901476472616196, -0.02692103199660778, -0.027948692440986633, 0.00042064112494699657, 0.08052453398704529, 0.049878232181072235, 0.03255481272935867, 0.0046726432628929615, 0.032573163509368896, 0.041950564831495285, -0.03461013361811638, 0.019415440037846565, -0.12838414311408997, -0.030774757266044617, 0.02365453913807869, 0.010698678903281689, 0.07079845666885376, -0.012093360535800457, 0.05197025462985039, 0.05186014622449875, -0.019360387697815895, -0.004406552761793137, 0.0036862727720290422, -0.05523674562573433, 0.03901439160108566, 0.03136199340224266, 0.04488673806190491, -0.0070192874409258366, -0.059824515134096146, -0.004697876051068306, 0.00567507091909647, 0.0735144168138504, -0.016901342198252678, 0.0396750308573246, -0.027214648202061653, -0.03850056231021881, 0.04727237671613693, 0.011478599160909653, 0.049584612250328064, 0.03393114358186722, -0.006624739151448011, -0.021672623232007027, -0.0010219257092103362, -0.020608261227607727, 0.05894366279244423, -0.048630356788635254, -0.034867048263549805, 0.024920763447880745, 0.0015976907452568412, -0.05905377119779587, 0.007501003332436085, 0.010441763326525688, 0.017176609486341476, 0.006822013296186924, 0.038133539259433746, -0.057181958109140396, 0.04165694862604141, -0.07410165667533875, 0.043859075754880905, -0.02820560708642006, 0.018011583015322685, -0.11377668380737305, -0.008441495709121227, 0.05872344970703125, 0.007799208164215088, 0.007744154892861843, -0.03457343205809593, -0.052630893886089325, -0.016323283314704895, -0.0027090779040008783, 0.014313841238617897, -0.01413033064454794, 0.03769311308860779, -0.037399496883153915, 0.01380001101642847, 0.0428314171731472, -0.0698809027671814, -0.02534283883869648, 0.03468353673815727, -0.023177411407232285, 0.004587769508361816, -0.041400033980607986, -0.03277502581477165, 0.03670215606689453, 0.007308316882699728, -0.0018706630216911435, -0.010772082954645157, -0.01764456182718277, 0.0645957961678505, -0.020443100482225418, -0.026388850063085556, -0.052740998566150665, 0.009652666747570038, -0.00425515603274107, -0.004601533059030771, 0.008097412995994091, -0.03455508127808571, -0.028572628274559975, -0.017800545319914818, -0.014992831274867058, 0.03325215354561806, -0.005826467182487249, -0.008918624371290207, -0.022241506725549698, -0.035215720534324646, 0.0336008258163929, 0.008670884184539318, 0.017213311046361923, -0.08859900385141373, -0.0032297896686941385, 0.048300039023160934, 0.028113851323723793, 0.030829811468720436, 0.07476229220628738, -0.029875556007027626, 0.0449601411819458, 0.033857740461826324, 0.04540056735277176, 0.009661843068897724, -0.032389651983976364, 0.03011411987245083, -0.005789765156805515, 0.0275266170501709, 0.014286314137279987, 0.06151281297206879, -0.05659472569823265, 0.028811192139983177, 0.03141704574227333, 0.07920325547456741, -0.05468621477484703, -0.00008645078196423128, 0.01486437302082777, -0.04073939472436905, -0.0064962818287312984, 0.03679390996694565, 0.015359852463006973, 0.01056104525923729, -0.021709324792027473, 0.025526350364089012, -0.0022193335462361574, 0.12177775800228119, 0.0566314272582531, 0.04011545702815056, 0.05853993818163872, 0.0336008258163929, 0.01092806737869978, -0.0183786042034626, -0.020773420110344887, 0.06947718560695648, 0.012368626892566681, 0.05626440420746803, -0.001967006130144, 0.019929271191358566, -0.020149484276771545, 0.003238965291529894, -0.014598282985389233, 0.04264790564775467, 0.031086726114153862, 0.04984152689576149, 0.013772483915090561, 0.011515301652252674, -0.010469290427863598, -0.02798539400100708, -0.06309100985527039, -0.07402824610471725, 0.018250146880745888, -0.005808116402477026, -0.00039913595537655056, -0.025379540398716927, -0.03095826879143715, -0.020424749702215195, 0.014148681424558163, -0.038573965430259705, 0.030371034517884254, 0.028113851323723793, 0.020498154684901237, -0.03701412305235863, -0.05842983350157738, 0.020700016990303993, 0.009198477491736412, -0.03354576975107193, -0.03668380528688431, 0.04191386327147484, 0.04426280036568642, 0.05002503842115402, 0.008881921879947186, 0.01926863193511963, -0.02765507437288761, -0.05002503842115402, -0.04239099100232124, -0.04444631189107895, 0.07575324922800064, -0.0549798309803009, 0.03971173241734505, 0.04675854742527008, -0.009515034034848213, -0.04191386327147484, -0.03416970744729042, 0.03934471309185028, -0.02231491170823574, -0.003895016387104988, -0.02528778649866581, -0.06973409652709961, -0.06437557935714722, -0.020700016990303993, 0.011753865517675877, 0.004872211255133152, 0.037564657628536224, 0.006042092572897673, 0.000007562651262560394, -0.0261869877576828, 0.01124003529548645, 0.02640720084309578, 0.0029636991675943136, 0.01866304688155651, 0.032573163509368896, 0.009432454593479633, 0.03787662461400032, -0.0008544721058569849, 0.05975111201405525, -0.015414905734360218, 0.05017184838652611, -0.02321411482989788, 0.00825798511505127, 0.07109207659959793, -0.056668128818273544, -0.036995772272348404, 0.03327050432562828, 0.006913768593221903, 0.02196624130010605, -0.03461013361811638, -0.006528396159410477, -0.006725670304149389, 0.009363637305796146, -0.0026196164544671774, -0.050722379237413406, -0.035380877554416656, -0.017350943759083748, 0.01365320198237896, -0.050722379237413406, -0.026333797723054886, 0.020094430074095726, -0.012414504773914814, 0.01213923841714859, -0.019011717289686203, 0.0023087949957698584, -0.04624471813440323, -0.04580429196357727, 0.038463860750198364, -0.0518234446644783, -0.06855963170528412, 0.009487507864832878, -0.01292833499610424, -0.0751660168170929, -0.012056658044457436, 0.006514632608741522, 0.08867240697145462, -0.03960162773728371, 0.030389385297894478, 0.014901075512170792, 0.0016814175760373473, 0.006422877311706543, 0.04727237671613693, -0.027783531695604324, 0.028003744781017303, -0.006060443352907896, -0.051566530019044876, -0.019030068069696426, -0.01002886425703764, 0.021250547841191292, 0.042354289442300797, -0.016837114468216896, -0.03422475978732109, -0.008120352402329445, -0.03264656662940979, 0.036169975996017456, -0.02477395534515381, 0.028370767831802368, -0.027801884338259697, 0.052630893886089325, -0.018975015729665756, -0.0396750308573246, -0.0005769120180048048, -0.025985127314925194, -0.015130463987588882, -0.012909983284771442, -0.08206602185964584, -0.01770878955721855, 0.00047081985394470394, 0.018562115728855133, 0.01910347305238247, 0.003250434761866927, 0.03550933673977852, -0.011808918789029121, 0.019819164648652077, 0.04000535234808922, 0.0003079540329053998, 0.036225028336048126, 0.0117722162976861, -0.02675587125122547, -0.004599238745868206, 0.03732609376311302, -0.05648461729288101, 0.012919158674776554, -0.01115745585411787, 0.04521705582737923, -0.04371226951479912, 0.041730351746082306, -0.009368225000798702, 0.0036059869453310966, -0.009152600541710854, -0.003172442549839616, 0.04499684274196625, 0.003339896211400628, 0.03637183830142021, -0.08705751597881317, -0.05086918920278549, 0.007560644298791885, -0.024810656905174255, 0.05428249016404152, -0.020993633195757866, -0.0038399631157517433, 0.04749258980154991, -0.04055588319897652, -0.01714908331632614, 0.04433620348572731, 0.007712040562182665, 0.006326534319669008, 0.00019096590403933078, 0.024572093039751053, -0.0019956796895712614, -0.02741651050746441, -0.014378069899976254, -0.013552270829677582, 0.019030068069696426, -0.03422475978732109, -0.009363637305796146, -0.021562516689300537, -0.037509605288505554, 0.03714258223772049, 0.016029667109251022, -0.04991493374109268, 0.03114178031682968, 0.06129259988665581, -0.03817024081945419, 0.00820751953870058, -0.023250816389918327, 0.008602067828178406, -0.0070605771616101265, -0.013249478302896023, 0.004592357203364372, 0.006867891177535057, 0.016029667109251022, 0.05688834190368652, -0.02782023511826992, 0.03242635354399681, 0.04752929136157036, -0.002509509911760688, 0.07263356447219849, 0.013974346220493317, 0.06433887779712677, -0.00712480628862977, 0.0080652991309762, -0.0373077429831028, -0.01680041290819645, 0.01893831230700016, 0.02136065438389778, 0.0013671553460881114, 0.0357295498251915, -0.07795538008213043, -0.07663410156965256, 0.0253978930413723, 0.023617837578058243, 0.02893964946269989, 0.06643090397119522, 0.009927933104336262, -0.050538867712020874, -0.0016080131754279137, -0.014323016628623009, -0.04462982341647148, 0.03695907071232796, 0.02651730738580227, 0.04011545702815056, -0.04573088511824608, -0.03585800528526306, -0.04540056735277176, -0.06551335006952286, -0.02196624130010605, 0.02760002203285694, -0.018176743760704994, -0.06011813133955002, -0.039528220891952515, -0.024205071851611137, 0.019030068069696426, 0.05754898115992546, 0.0582096204161644, -0.0013178368099033833, 0.04562078043818474, -0.037399496883153915, 0.00497314240783453, 0.011441897600889206, -0.01267141941934824, 0.050098445266485214, 0.01149695087224245, 0.07289048284292221, -0.005881520453840494, 0.03591306135058403, -0.021379007026553154, 0.00791849009692669, 0.04580429196357727, 0.02517767995595932, 0.02079177089035511, -0.02213140018284321, 0.03624337911605835, -0.009423278272151947, -0.04892397299408913, -0.051676634699106216, 0.014726740308105946, 0.11164795607328415, 0.022057995200157166, -0.03806013613939285, -0.021085388958454132, 0.05754898115992546, 0.014313841238617897, -0.006436640862375498, 0.04095960780978203, -0.01489190012216568, -0.009964635595679283, -0.003810142632573843, 0.010836311616003513, 0.0037505016662180424, -0.0014795557362958789, -0.08103836327791214, 0.00130636733956635, 0.06760536879301071, 0.026205340400338173, 0.025526350364089012, -0.013900942169129848, 0.008184581063687801, 0.04114311560988426, -0.02844417095184326, 0.010019688867032528, -0.06463249772787094, -0.00868464820086956, -0.0002756962785497308, -0.04147343710064888, -0.028462521731853485, 0.022957198321819305, 0.008046947419643402, 0.0009932521497830749, -0.007968955673277378, 0.020094430074095726, -0.03743619844317436, 0.02765507437288761, -0.0291048102080822, -0.014121154323220253, -0.025140976533293724, 0.04984152689576149, -0.019984323531389236, 0.04918089136481285, -0.06334792077541351, 0.03938141465187073, -0.005051134154200554, 0.035270772874355316, -0.0034729414619505405, 0.060448452830314636, -0.020131133496761322, 0.05303461477160454, -0.11575859785079956, 0.002686138963326812, -0.014983654953539371, 0.01508458610624075, -0.001269665197469294, -0.013524744659662247, 0.025159327313303947, 0.0029476420022547245, 0.01179974339902401, 0.01166210975497961, 0.038794178515672684, 0.04191386327147484, -0.04073939472436905, 0.028462521731853485, -0.06588037312030792, 0.036041516810655594, 0.056227702647447586, -0.012157589197158813, 0.0006784163997508585, 0.013157723471522331, -0.023893103003501892, -0.018250146880745888, 0.02416837029159069, -0.01247873343527317, -0.03820694610476494, -0.07949686795473099, 0.040886200964450836, -0.007936840876936913, 0.0038353754207491875, 0.015414905734360218, -0.01769961416721344, 0.03404124826192856, -0.01657102443277836, -0.037839923053979874, 0.0026884330436587334, 0.0623936653137207, 0.03506891056895256, 0.008634182624518871, -0.03229789808392525, 0.03255481272935867, 0.021507464349269867, 0.036940719932317734, -0.032114386558532715, -0.033417314291000366, 0.03345401585102081, 0.0301691722124815, -0.0035555213689804077, 0.0132311275228858, -0.088819220662117, -0.009771948680281639, -0.0079276654869318, 0.018020758405327797, 0.022351613268256187, 0.003979890141636133, 0.02359948679804802, -0.04444631189107895, -0.017378471791744232, 0.025379540398716927, 0.06118249520659447, -0.0481165274977684, 0.006822013296186924, 0.04892397299408913, 0.028058798983693123, -0.022957198321819305, -0.012019956484436989, -0.027012787759304047, -0.03193087503314018, -0.004399671219289303, -0.030646299943327904, -0.01391011755913496, -0.08294687420129776, 0.05479631945490837, -0.0034041251055896282, 0.017561981454491615, -0.0030371034517884254, -0.052227169275283813, 0.08412133902311325, 0.002663200255483389, -0.0034339455887675285, -0.01961730234324932, -0.02760002203285694, -0.023122359067201614, -0.0061338478699326515, 0.006707319058477879, 0.06488941609859467, 0.01961730234324932, -0.019286982715129852, -0.00047081985394470394, 0.0576590895652771, -0.016983922570943832, -0.08412133902311325, -0.025893371552228928, 0.024461986497044563, 0.009643491357564926, -0.0034018310252577066, 0.04657503589987755, -0.03916120156645775, -0.0173142421990633, -0.042794715613126755, 0.0354175791144371, 0.006679792422801256, -0.031215183436870575, 0.04308833181858063, 0.03229789808392525, 0.0031196833588182926, 0.014873549342155457, 0.010533519089221954, 0.009909582324326038, -0.005753063131123781, -0.0009014967363327742, -0.05468621477484703, -0.033288855105638504, -0.06668781489133835, 0.03727104142308235, 0.014662511646747589, 0.014735915698111057, -0.03640853986144066, 0.03701412305235863, -0.05703515186905861, -0.060448452830314636, 0.0029981073457747698, 0.015479134395718575, -0.09571922570466995, 0.040886200964450836, 0.007840498350560665, -0.0024429871700704098, 0.007404659874737263, -0.01160705741494894, -0.0007214267388917506, 0.030444439500570297, -0.007854261435568333, -0.010120620019733906, 0.022553475573658943, -0.02202129364013672, -0.007432186510413885, -0.046501632779836655, 0.03185747191309929, -0.021782729774713516, 0.04055588319897652, 0.004021179862320423, 0.02033299393951893, -0.028847895562648773, 0.011552004143595695, 0.043859075754880905, 0.0145524051040411, -0.010973944328725338, -0.013221952132880688, -0.05017184838652611, -0.07270697504281998, -0.0015575477154925466, -0.016378337517380714, 0.04433620348572731, -0.022076347842812538, -0.029526885598897934, 0.0023925218265503645, -0.04844684526324272, 0.06701813638210297, -0.024792306125164032, 0.09615965187549591, -0.015662645921111107, 0.013735782355070114, -0.012809052132070065, 0.0455106757581234, -0.007028462830930948, 0.009570087306201458, 0.004977730102837086, 0.0449601411819458, -0.043969184160232544, 0.0013866533990949392, -0.06936707347631454, -0.023067304864525795, 0.034867048263549805, 0.02292049676179886, -0.018075812608003616, -0.04360216110944748, 0.03376598283648491, -0.011414370499551296, -0.03552768751978874, -0.042354289442300797, -0.003745913738384843, 0.07846920937299728, -0.02286544255912304, -0.030756406486034393, -0.032573163509368896, -0.028627682477235794, -0.025471296161413193, -0.005289698485285044, -0.00580352870747447, 0.02675587125122547, -0.00002044783286692109, -0.08698411285877228, -0.007051401771605015, 0.040262266993522644, -0.0005307475803419948, -0.03695907071232796, -0.02326916716992855, 0.006711906753480434, -0.019525546580553055, -0.013515569269657135, -0.052227169275283813, -0.00022508743859361857, 0.03139869496226311, 0.0010832870611920953, -0.009368225000798702, -0.04000535234808922, 0.021213846281170845, -0.03198593109846115, 0.0359681136906147, 0.025214381515979767, 0.021984592080116272, -0.07362452894449234, 0.028976352885365486, 0.057292066514492035, -0.01079043373465538, 0.008368091657757759, -0.05197025462985039, 0.0025507998652756214, -0.02517767995595932, 0.01553418766707182, -0.05916387587785721, 0.0518234446644783, 0.014965304173529148, 0.006303595378994942, 0.036445241421461105, 0.013891765847802162, -0.0010557604255154729, -0.006725670304149389, -0.06808249652385712, -0.01641503907740116, -0.007803795859217644, 0.014056925661861897, -0.01736929640173912, -0.03605986759066582, -0.023801349103450775, 0.038463860750198364, -0.04426280036568642, -0.0003483837645035237, 0.052630893886089325, 0.03005906566977501, -0.04595109820365906, -0.020534856244921684, -0.0003369143232703209, -0.039087794721126556, -0.030719704926013947, 0.00497314240783453, -0.004982317797839642, -0.055713873356580734, 0.02893964946269989, 0.016442565247416496, -0.027214648202061653, 0.08023091405630112, 0.027691777795553207, 0.014607458375394344, -0.026058530434966087, -0.011074875481426716, -0.018901610746979713, 0.03277502581477165, 0.04095960780978203, -0.04602450504899025, -0.015148814767599106, -0.00022824153711553663, -0.06705483794212341, -0.05428249016404152, 0.05714525654911995, -0.020021026954054832, -0.04602450504899025, -0.0825064480304718, 0.034756943583488464, 0.03416970744729042, -0.0351790152490139, 0.011065700091421604, 0.07347771525382996, -0.0048859743401408195, 0.008735112845897675 ]
730,222
mmengine.fileio.backends.petrel_backend
get
Read bytes from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns: bytes: Return bytes read from filepath. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.get(filepath) b'hello world'
def get(self, filepath: Union[str, Path]) -> bytes: """Read bytes from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns: bytes: Return bytes read from filepath. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.get(filepath) b'hello world' """ filepath = self._map_path(filepath) filepath = self._format_path(filepath) filepath = self._replace_prefix(filepath) value = self._client.Get(filepath) return value
(self, filepath: Union[str, pathlib.Path]) -> bytes
[ 0.04208141937851906, -0.08070509880781174, -0.06058400124311447, 0.04741516709327698, -0.006092425901442766, -0.02889419160783291, 0.0074120680801570415, 0.035037197172641754, 0.053300678730010986, -0.07367926836013794, 0.035478610545396805, 0.03976399824023247, -0.04079396277666092, -0.010649100877344608, 0.0342831164598465, -0.010354825295507908, 0.008865054696798325, -0.006552231498062611, 0.02048894390463829, -0.0117250457406044, -0.0006356814410537481, 0.016810497269034386, 0.07058937102556229, 0.042633187025785446, -0.010630708187818527, 0.036214299499988556, -0.030549492686986923, -0.04848191514611244, 0.0001356426946585998, 0.023431699723005295, 0.0885034054517746, -0.045355238020420074, 0.005517668556421995, 0.017399048432707787, -0.022052282467484474, 0.04127216339111328, 0.00043911446118727326, 0.023670798167586327, -0.028912583366036415, -0.003929039929062128, -0.03884438797831535, 0.01600123941898346, 0.0765116736292839, -0.018153129145503044, 0.0048509505577385426, -0.007159174885600805, -0.054588135331869125, -0.023192601278424263, -0.026926223188638687, 0.03185534104704857, 0.08453068137168884, 0.02957470342516899, -0.0184657983481884, -0.02655837871134281, -0.01305848266929388, 0.0011357201728969812, -0.051424670964479446, 0.017445029690861702, -0.05021078512072563, 0.08379499614238739, -0.01843820884823799, -0.06819838285446167, 0.0002063378196908161, -0.0618346743285656, 0.018888819962739944, -0.005145226139575243, 0.006120014004409313, -0.0515718087553978, 0.01775769703090191, -0.04410456493496895, 0.02453523315489292, 0.013867740519344807, -0.03205765411257744, -0.044509194791316986, -0.03507398068904877, -0.020470550283789635, 0.03542343154549599, 0.010575531981885433, 0.006331524811685085, 0.03961686044931412, -0.0036094749812036753, -0.03687641769647598, 0.039432939141988754, -0.01960611529648304, -0.003607176011428237, -0.019532546401023865, 0.042044635862112045, -0.020452158525586128, -0.018245091661810875, 0.01975325308740139, 0.01843820884823799, -0.013251600787043571, -0.03558896481990814, 0.031671419739723206, 0.0559859462082386, -0.08725273609161377, 0.027661912143230438, 0.0471944585442543, -0.007108596619218588, 0.014621822163462639, -0.0553973950445652, 0.03917544707655907, 0.022181028500199318, 0.005926895886659622, 0.006685575004667044, 0.013214816339313984, 0.022181028500199318, 0.008846662007272243, 0.044509194791316986, -0.02479272522032261, -0.028084933757781982, -0.002076022792607546, -0.015155196189880371, 0.03279334306716919, -0.012883756309747696, 0.02172122150659561, -0.02449844963848591, -0.005113039631396532, 0.03007129393517971, 0.000608667847700417, -0.00858917087316513, 0.011072121560573578, 0.00022659801470581442, -0.01775769703090191, 0.07820376008749008, 0.07687951624393463, 0.018217502161860466, -0.035037197172641754, -0.0009276580531150103, 0.040315765887498856, 0.028802230954170227, 0.03753853961825371, 0.006823516916483641, 0.05179251730442047, -0.024020250886678696, 0.04984293878078461, 0.04487703740596771, 0.023542052134871483, 0.03273816779255867, 0.06176110357046127, 0.05605951324105263, -0.021022317931056023, 0.05756767839193344, -0.04888654500246048, 0.020065922290086746, -0.003671548794955015, 0.046642690896987915, -0.09527174383401871, -0.022824756801128387, 0.04009505733847618, 0.031230004504323006, 0.003837078809738159, -0.0040577854961156845, 0.008437435142695904, 0.04384707286953926, 0.003968123346567154, -0.010106530040502548, 0.016893262043595314, -0.06334283947944641, 0.008350071497261524, -0.03774085268378258, 0.029206858947873116, 0.025546805933117867, -0.07827732712030411, 0.0060096606612205505, 0.02749638259410858, -0.05348460003733635, 0.031818557530641556, 0.027643520385026932, -0.004837156273424625, -0.08482495695352554, 0.0269630067050457, -0.06400495767593384, -0.001965669449418783, 0.09931803494691849, -0.06540276855230331, 0.02341330796480179, 0.0559859462082386, 0.029887372627854347, 0.028857408091425896, 0.011633085086941719, -0.05278569832444191, -0.011881380341947079, 0.03558896481990814, 0.07022152841091156, 0.0384029746055603, 0.025841081514954567, 0.0020840694196522236, 0.04976937174797058, 0.043626368045806885, -0.034135978668928146, 0.017978403717279434, -0.0008213279652409256, 0.030531100928783417, 0.0002878096420317888, -0.08754701167345047, 0.08865054696798325, -0.03378652408719063, -0.06308534741401672, 0.0621289499104023, 0.03652696684002876, -0.02262244187295437, 0.014014878310263157, 0.00206567719578743, -0.0454288050532341, 0.003563494421541691, 0.034191153943538666, 0.018530171364545822, -0.00908576138317585, 0.04119859263300896, -0.02922525256872177, -0.03145071119070053, -0.027514774352312088, -0.03086216002702713, 0.02795618772506714, 0.010823826305568218, -0.08313287794589996, 0.0340072326362133, -0.028305640444159508, 0.049659017473459244, 0.08188220113515854, 0.05396280065178871, -0.026448024436831474, 0.013757387176156044, 0.013132051564753056, -0.002077172277495265, -0.011964145116508007, 0.00019268733740318567, -0.07989583909511566, -0.017619755119085312, -0.0044670128263533115, 0.011044533923268318, 0.09475676715373993, -0.01984521560370922, 0.05135110393166542, 0.039432939141988754, -0.01167906541377306, 0.031082866713404655, -0.0037336223758757114, 0.03818226605653763, 0.03965364396572113, -0.0014380423817783594, 0.00514982407912612, 0.06768340617418289, -0.07139863073825836, -0.012359578162431717, 0.04197106510400772, 0.019569331780076027, -0.03227836266160011, -0.045612726360559464, 0.04583343490958214, -0.028176894411444664, 0.01826348342001438, 0.002095564501360059, 0.016727732494473457, 0.02341330796480179, 0.007623578887432814, -0.08394213020801544, -0.015339119359850883, 0.04274354130029678, -0.028967760503292084, 0.027588343247771263, 0.01901756413280964, -0.03678445890545845, -0.003563494421541691, -0.02863669954240322, -0.019569331780076027, 0.019771646708250046, 0.03255424648523331, 0.004864744376391172, -0.05146145820617676, 0.047672659158706665, -0.0011041085235774517, -0.012377969920635223, -0.00415434455499053, -0.08379499614238739, 0.02517896145582199, 0.06698449701070786, 0.00948119442909956, -0.016654163599014282, -0.12742136418819427, 0.007816697470843792, 0.04546558856964111, -0.05234428495168686, -0.023027069866657257, -0.013665426522493362, -0.024424880743026733, -0.021813184022903442, -0.03514754772186279, 0.0030715023167431355, 0.03176337853074074, -0.03352903202176094, -0.05701591074466705, -0.06315891444683075, 0.05771481618285179, -0.011743438430130482, -0.048114072531461716, -0.04443562403321266, 0.0644831582903862, -0.028287248685956, 0.011219259351491928, -0.007274126634001732, 0.05296961963176727, 0.03744657710194588, -0.026245711371302605, 0.0032232380472123623, 0.03492684289813042, -0.046090926975011826, -0.029758626595139503, 0.022990286350250244, -0.005936091765761375, -0.04355279728770256, -0.0002250174293294549, 0.04943831264972687, -0.0005891260807402432, -0.010667492635548115, 0.012571088038384914, 0.059075839817523956, 0.03639822080731392, -0.0055452571250498295, -0.0025059410836547613, 0.02059929631650448, 0.045796651393175125, 0.004864744376391172, 0.0002544737362768501, 0.003043913980945945, 0.006713163573294878, 0.03969043120741844, -0.019624508917331696, 0.05466170608997345, 0.08313287794589996, 0.03176337853074074, 0.027294067665934563, -0.018300266936421394, -0.0002728659601416439, -0.025601983070373535, 0.0037474166601896286, -0.034632567316293716, -0.02705496922135353, 0.03141392767429352, 0.07849803566932678, -0.057751599699258804, 0.046385202556848526, 0.014658606611192226, 0.020010745152831078, 0.02078321948647499, 0.01649782992899418, -0.02438809536397457, 0.008028208278119564, -0.022585656493902206, 0.01305848266929388, -0.0313587486743927, -0.04182392731308937, -0.011789418756961823, -0.06691092997789383, -0.025399668142199516, -0.0035795874428004026, 0.014465488493442535, -0.002577211009338498, 0.01740824431180954, -0.0378144234418869, -0.019918784499168396, -0.05793552100658417, 0.02291671745479107, -0.03479809686541557, -0.022456912323832512, 0.01852097362279892, 0.022199420258402824, -0.04211820289492607, 0.04553915932774544, 0.0005184309557080269, 0.026999792084097862, -0.026098573580384254, 0.016231141984462738, -0.0028507953975349665, -0.04656912386417389, -0.03446703776717186, -0.06893407553434372, 0.05146145820617676, 0.07452531158924103, 0.021997105330228806, 0.024020250886678696, -0.03525790199637413, 0.024719156324863434, 0.010961768217384815, 0.006575221661478281, 0.011688261292874813, -0.019734861329197884, -0.02177639864385128, -0.022806363180279732, 0.03203926235437393, -0.024958254769444466, 0.02863669954240322, -0.027073360979557037, -0.03630625829100609, -0.03625108301639557, 0.05076255276799202, 0.015697767958045006, 0.05102004483342171, 0.011439966037869453, 0.00338876829482615, -0.008363866247236729, -0.05396280065178871, 0.04877619072794914, -0.018015189096331596, 0.0342831164598465, 0.022291380912065506, 0.026208925992250443, -0.03446703776717186, -0.037501756101846695, -0.04899689927697182, 0.02968505769968033, 0.00278412364423275, -0.025510022416710854, 0.01621275022625923, 0.026392849162220955, -0.01746342144906521, -0.02893097698688507, 0.04230212792754173, -0.0005460192915052176, -0.04439884051680565, -0.012709029950201511, -0.0007655765512026846, -0.027422813698649406, 0.009784665890038013, -0.004427928943186998, 0.03821905329823494, -0.010511158965528011, 0.01281018741428852, 0.04914403706789017, 0.06187145784497261, -0.06838230788707733, -0.03358421102166176, -0.018925603479146957, 0.02558359131217003, 0.003616372123360634, -0.026834262534976006, -0.00367844570428133, 0.0518660843372345, -0.004499198868870735, 0.00939383078366518, 0.013895329087972641, 0.0009414522210136056, -0.027238890528678894, -0.0015932267997413874, -0.04178714379668236, -0.0334002859890461, -0.0010489318519830704, 0.0765116736292839, -0.054146721959114075, -0.03807191550731659, -0.060032233595848083, 0.10270220786333084, -0.01823589578270912, -0.0271101463586092, 0.01370221097022295, -0.0319472998380661, -0.0046325428411364555, -0.03625108301639557, -0.02394668199121952, -0.0033726750407367945, 0.02907811477780342, 0.05028435215353966, -0.1054978221654892, 0.0023461587261408567, -0.03290369734168053, -0.010428394190967083, 0.051424670964479446, -0.027330853044986725, -0.02192353643476963, 0.02655837871134281, -0.045649513602256775, -0.05006364732980728, -0.020121097564697266, 0.02306385524570942, 0.005002686288207769, 0.03855011239647865, 0.02004752866923809, -0.04134573042392731, -0.06628559529781342, -0.023965073749423027, -0.0539260134100914, -0.05973795801401138, 0.048261210322380066, 0.012092890217900276, -0.014364331029355526, 0.0030301196966320276, 0.07320106774568558, 0.04152965173125267, -0.03935936838388443, -0.0017691025277599692, 0.08570778369903564, -0.02573072910308838, 0.002848496427759528, -0.012359578162431717, 0.04351601377129555, -0.012249224819242954, -0.00980305764824152, -0.0076879519037902355, 0.04472989961504936, -0.04292746260762215, -0.03431989997625351, 0.030383961275219917, 0.04414134845137596, -0.038734033703804016, -0.02731245942413807, -0.005995866842567921, -0.00353130791336298, 0.006170592736452818, -0.010906592011451721, 0.0086443480104208, 0.05326389521360397, -0.013196424581110477, -0.009600743651390076, -0.06404174119234085, 0.03242550045251846, -0.005218795035034418, 0.016231141984462738, -0.014097643084824085, 0.009320261888206005, 0.044362057000398636, -0.005991268437355757, -0.017297891899943352, -0.01799679547548294, 0.009407625533640385, -0.03965364396572113, -0.03391527011990547, -0.06978011876344681, -0.02948274277150631, 0.020213060081005096, 0.039874352514743805, 0.0049107251688838005, -0.001547246240079403, -0.006685575004667044, 0.003814088413491845, -0.048077285289764404, -0.02593304216861725, -0.019440585747361183, -0.05929654464125633, -0.010161706246435642, 0.026852654293179512, -0.002905972069129348, -0.00896621122956276, -0.006363711319863796, 0.007306313142180443, -0.01577133685350418, -0.01910952664911747, -0.03551539406180382, 0.04553915932774544, -0.0064510744996368885, 0.010906592011451721, -0.05190287157893181, -0.00021912615920882672, -0.02083839476108551, 0.0043566590175032616, 0.032259970903396606, -0.014796548523008823, -0.017077185213565826, -0.028452778235077858, -0.04049968719482422, 0.05179251730442047, -0.01711396872997284, -0.05683198571205139, 0.02321099303662777, -0.008768495172262192, 0.048077285289764404, 0.03525790199637413, 0.03569931536912918, 0.03954329341650009, -0.0867377519607544, 0.015596610493957996, 0.057604461908340454, 0.022548872977495193, -0.0019599217921495438, 0.07724735885858536, 0.03007129393517971, 0.005227990914136171, -0.0018955491250380874, 0.00929267331957817, -0.003250826383009553, 0.00265997601673007, -0.03248067572712898, -0.0133343655616045, 0.04785658046603203, 0.004289987497031689, 0.024461664259433746, 0.01808875799179077, 0.04314816743135452, -0.028084933757781982, -0.042890679091215134, 0.008478817529976368, -0.04859226942062378, 0.021114278584718704, -0.006198181305080652, 0.034540604799985886, 0.01696683093905449, -0.02957470342516899, 0.0075500099919736385, 0.030935728922486305, 0.007563804276287556, 0.02558359131217003, -0.03036556951701641, 0.007182165514677763, 0.003273816779255867, -0.02839760109782219, 0.08350072056055069, -0.004506096243858337, -0.02247530408203602, 0.04999007657170296, 0.0003523261402733624, -0.025749120861291885, -0.03349224850535393, -0.02593304216861725, 0.010961768217384815, 0.014732175506651402, 0.02701818384230137, -0.027533166110515594, -0.011964145116508007, -0.051387887448072433, -0.01703120395541191, 0.022898325696587563, -0.027146929875016212, 0.011982536874711514, 0.05495598167181015, -0.019790038466453552, 0.014870117418467999, 0.007058017887175083, -0.020305020734667778, -0.012653853744268417, 0.026539986953139305, 0.03352903202176094, -0.01289295218884945, 0.013150443322956562, 0.031119652092456818, 0.04539202153682709, -0.06146682798862457, 0.04583343490958214, 0.00719595979899168, 0.011274436488747597, 0.01901756413280964, -0.027937795966863632, -0.01984521560370922, -0.044067781418561935, 0.013545876368880272, -0.0038738632574677467, 0.005945288110524416, -0.023082247003912926, -0.0237443670630455, 0.06805124878883362, -0.024829508736729622, -0.004731400869786739, 0.026135357096791267, -0.01565178669989109, 0.00542110949754715, -0.037060342729091644, -0.009563959203660488, 0.11859308928251266, -0.025068607181310654, -0.009140937589108944, 0.028176894411444664, -0.0019070442067459226, -0.008855857886373997, -0.0035382050555199385, -0.04094110056757927, -0.047231242060661316, -0.010483570396900177, -0.013030894100666046, -0.004384247586131096, 0.053006403148174286, -0.014428704045712948, 0.006823516916483641, 0.07849803566932678, -0.052123576402664185, -0.05565488338470459, -0.0175829716026783, 0.02216263674199581, -0.007959237322211266, -0.022254597395658493, 0.014401115477085114, 0.009122545830905437, 0.015320726670324802, 0.013371150009334087, -0.014465488493442535, 0.0691547840833664, -0.022751187905669212, 0.009646723978221416, 0.03617751598358154, 0.03139553591609001, 0.018769269809126854, -0.0384029746055603, -0.02997933328151703, -0.03466935083270073, 0.011522731743752956, 0.008460425771772861, -0.0026415837928652763, 0.04355279728770256, 0.03352903202176094, -0.03595680743455887, -0.022254597395658493, 0.03170820325613022, -0.015090824104845524, -0.05653771013021469, 0.02078321948647499, -0.0030600070022046566, 0.0033014051150530577, -0.025565197691321373, -0.027919404208660126, -0.03086216002702713, -0.05749410763382912, -0.0008552386425435543, -0.03599359095096588, -0.0035290089435875416, 0.016746124252676964, -0.0662488117814064, 0.026043396443128586, -0.0005075105582363904, -0.09159330278635025, 0.014428704045712948, -0.047783009707927704, 0.01178022287786007, -0.04862905293703079, -0.004979696124792099, 0.03586484491825104, 0.013647033832967281, 0.024903077632188797, 0.007784510962665081, -0.014842528849840164, -0.0043888455256819725, -0.07835089415311813, 0.05234428495168686, 0.04024219512939453, -0.04715767502784729, 0.04859226942062378, -0.06341640651226044, -0.0469001829624176, -0.03866046667098999, -0.023266170173883438, -0.06599131971597672, 0.11800453811883926, 0.02341330796480179, -0.021463731303811073, 0.010584727860987186, -0.041014671325683594, -0.023284561932086945, 0.05109361186623573, -0.03639822080731392, 0.03757532313466072, 0.0011920463293790817, 0.013932113535702229, 0.01600123941898346, -0.011485947296023369, -0.0009811104973778129, -0.011458358727395535, 0.026797477155923843, -0.01249751914292574, 0.006657986901700497, -0.02874705381691456, 0.0012644657399505377, -0.046679478138685226, 0.0165622029453516, -0.006106220185756683, 0.04149286821484566, -0.020010745152831078, 0.025197353214025497, -0.01178022287786007, 0.02499503828585148, -0.05988509580492973, 0.0334002859890461 ]
730,223
mmengine.fileio.backends.petrel_backend
get_local_path
Download a file from ``filepath`` to a local temporary directory, and return the temporary path. ``get_local_path`` is decorated by :meth:`contxtlib.contextmanager`. It can be called with ``with`` statement, and when exists from the ``with`` statement, the temporary path will be released. Args: filepath (str or Path): Download a file from ``filepath``. Yields: Iterable[str]: Only yield one temporary path. Examples: >>> backend = PetrelBackend() >>> # After existing from the ``with`` clause, >>> # the path will be removed >>> filepath = 'petrel://path/of/file' >>> with backend.get_local_path(filepath) as path: ... # do something here
def join_path( self, filepath: Union[str, Path], *filepaths: Union[str, Path], ) -> str: r"""Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and any members of \*filepaths. Args: filepath (str or Path): Path to be concatenated. Returns: str: The result after concatenation. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.join_path(filepath, 'another/path') 'petrel://path/of/file/another/path' >>> backend.join_path(filepath, '/another/path') 'petrel://path/of/file/another/path' """ filepath = self._format_path(self._map_path(filepath)) if filepath.endswith('/'): filepath = filepath[:-1] formatted_paths = [filepath] for path in filepaths: formatted_path = self._format_path(self._map_path(path)) formatted_paths.append(formatted_path.lstrip('/')) return '/'.join(formatted_paths)
(self, filepath: Union[str, pathlib.Path]) -> Generator[Union[str, pathlib.Path], NoneType, NoneType]
[ -0.08099471032619476, -0.0333310030400753, -0.03340565413236618, 0.07547064870595932, -0.03394686058163643, -0.046805236488580704, -0.008715329691767693, 0.016002986580133438, 0.007940840907394886, -0.007441622205078602, 0.020136702805757523, -0.008113468065857887, -0.014388691633939743, 0.051620129495859146, -0.0112627437338233, 0.0050715007819235325, 0.04568549618124962, -0.05068701133131981, 0.03025171160697937, 0.0033289012499153614, 0.024335738271474838, 0.0020610261708498, 0.028497448191046715, 0.008426062762737274, 0.010572236031293869, 0.04408053308725357, -0.03478666767477989, 0.03840716928243637, -0.03213661164045334, 0.00015731799066998065, 0.042363591492176056, -0.01624559797346592, 0.0021706675179302692, -0.0333310030400753, -0.0043623303063213825, 0.043856583535671234, -0.03017706237733364, 0.05337439477443695, 0.07039447873830795, 0.005790002178400755, 0.0003190099960193038, 0.024242425337433815, 0.03260317072272301, -0.04755173251032829, -0.011915926821529865, 0.014099424704909325, -0.03627965971827507, 0.04848485067486763, 0.010301630944013596, -0.01713206060230732, 0.003494529752060771, 0.03538386523723602, -0.05273987352848053, -0.020864535123109818, 0.006895747967064381, 0.022469500079751015, 0.03667156770825386, -0.005034175701439381, -0.03982551023364067, -0.05557655543088913, 0.02666853554546833, -0.07285791635513306, 0.02741502970457077, 0.013978119008243084, 0.04262486472725868, 0.029523877426981926, -0.03213661164045334, 0.012111881747841835, 0.035906411707401276, -0.016544196754693985, -0.01563907042145729, 0.016058973968029022, -0.03603704646229744, -0.08427929133176804, -0.0014008445432409644, 0.02765764109790325, 0.03478666767477989, 0.013567547313869, 0.0329764187335968, -0.01347423531115055, -0.04460307955741882, -0.06274290382862091, -0.04191569611430168, -0.02422376349568367, 0.06692327558994293, -0.0014066766016185284, -0.04415518045425415, -0.04549887031316757, -0.07595586776733398, 0.011990576051175594, 0.004005412571132183, 0.017794575542211533, -0.005295448936522007, 0.0006934239063411951, 0.021872304379940033, -0.027303054928779602, -0.0014043437549844384, -0.014323373325169086, 0.0340588353574276, 0.009475821629166603, -0.020435301586985588, -0.06326545029878616, 0.007213008124381304, -0.04687988758087158, 0.03790328651666641, -0.04605874419212341, -0.0075769247487187386, 0.02894534543156624, 0.03340565413236618, -0.005314111243933439, -0.02788158878684044, -0.047327782958745956, 0.04124385118484497, -0.045162949711084366, -0.01699209213256836, 0.0292626041918993, -0.0329764187335968, 0.005724683869630098, 0.06143654137849808, -0.023682555183768272, 0.0016049642581492662, -0.016254929825663567, -0.03213661164045334, 0.017971867695450783, 0.03185667470097542, -0.034768007695674896, -0.0031072855927050114, 0.016124293208122253, -0.03256584703922272, -0.03655959293246269, -0.05818928778171539, 0.09129634499549866, 0.015191174112260342, 0.006928407121449709, 0.013586209155619144, 0.03124081715941429, -0.0606527216732502, -0.006821098271757364, 0.05344904214143753, 0.08644412457942963, 0.0493059977889061, -0.02737770602107048, 0.0034595378674566746, 0.024914272129535675, 0.08465253561735153, -0.008929946459829807, 0.008608020842075348, -0.0274896789342165, -0.0070077222771942616, 0.013520890846848488, -0.02241351269185543, 0.00883196946233511, 0.0013366927159950137, 0.0037091472186148167, 0.057293493300676346, -0.017859892919659615, -0.009219213388860226, 0.056696295738220215, -0.014640633948147297, -0.055837828665971756, 0.02823617495596409, -0.01645088382065296, 0.0130356689915061, -0.011197425425052643, 0.019726131111383438, 0.019091609865427017, 0.017001423984766006, 0.06890149414539337, 0.03150209039449692, 0.02454102411866188, 0.040833279490470886, -0.040236081928014755, -0.0001876443566288799, 0.0068397605791687965, -0.03064362145960331, -0.03741806373000145, -0.03575711324810982, 0.05535260587930679, 0.031726039946079254, -0.01787855662405491, 0.00639186380431056, -0.04213964566588402, 0.03150209039449692, 0.008654676377773285, 0.04654396325349808, 0.008650011382997036, -0.008719994686543941, -0.009629786014556885, 0.02284274809062481, -0.006629808805882931, -0.010544242337346077, 0.015648402273654938, 0.029449228197336197, 0.02599668875336647, 0.011104113422334194, -0.08136795461177826, 0.05654699727892876, -0.07117830216884613, -0.048186253756284714, 0.06856556981801987, -0.02127510868012905, -0.01069354172796011, 0.03642895817756653, -0.03142743930220604, 0.03766067326068878, -0.005122822243720293, 0.008374741300940514, 0.033816225826740265, 0.015629740431904793, 0.006690461654216051, 0.027676302939653397, -0.00978841632604599, -0.010404274798929691, -0.06263093650341034, -0.010264306329190731, 0.05617374926805496, -0.027247069403529167, 0.027974901720881462, -0.06710990518331528, 0.05221732705831528, 0.009881728328764439, -0.0014381692744791508, 0.02177899330854416, -0.006531831342726946, 0.017934542149305344, 0.016469545662403107, -0.03028903529047966, 0.06938671320676804, 0.04490167647600174, -0.02379452809691429, 0.020341988652944565, -0.00861735176295042, 0.003951758146286011, -0.016002986580133438, 0.023029372096061707, -0.04919402301311493, 0.00518814055249095, 0.0006001120200380683, 0.030662283301353455, 0.013390254229307175, 0.024447713047266006, -0.008090140298008919, 0.008169454522430897, -0.0745002031326294, 0.0007371638203039765, -0.0006065272027626634, 0.0219842791557312, -0.055240631103515625, 0.02000606618821621, -0.012186530977487564, 0.03174469992518425, 0.05076166242361069, 0.016366902738809586, 0.045946769416332245, 0.003622833639383316, 0.027228405699133873, -0.019352883100509644, -0.005911307409405708, -0.02493293397128582, 0.022320201620459557, 0.03570112586021423, 0.0329950787127018, -0.009485152550041676, -0.06681130826473236, -0.0205659382045269, -0.02993445098400116, -0.03596239909529686, -0.04549887031316757, -0.0039260974153876305, 0.006933072581887245, -0.03292043134570122, 0.027153756469488144, 0.02060326188802719, 0.006807101424783468, -0.0015688060084357858, 0.06606481224298477, -0.06281755864620209, 0.0521426759660244, -0.003270581364631653, 0.013240955770015717, -0.030139736831188202, 0.01957683265209198, -0.00409639161080122, -0.05188140273094177, 0.006363870110362768, 0.006013950332999229, 0.008090140298008919, 0.013894138857722282, -0.04034805670380592, 0.009741759859025478, 0.0826369971036911, 0.0019735463429242373, 0.015741713345050812, -0.001369351870380342, -0.019819442182779312, -0.04210231825709343, 0.09226678311824799, -0.027620315551757812, 0.06975995749235153, -0.07636643946170807, 0.011607998050749302, 0.03308839350938797, 0.06781907379627228, 0.0005840740632265806, -0.021797655150294304, -0.10092613101005554, 0.001357687870040536, -0.0021799986716359854, 0.019390208646655083, 0.01727202907204628, -0.04277416691184044, -0.06046609580516815, -0.061735138297080994, 0.020230015739798546, 0.0698719322681427, 0.031147504225373268, -0.0019513847073540092, 0.0029113306663930416, -0.03575711324810982, -0.04781300574541092, -0.02894534543156624, 0.02213357761502266, 0.004656262695789337, 0.025026245042681694, -0.02918795496225357, 0.013819489628076553, 0.0007027550600469112, -0.003711479948833585, -0.004614272154867649, -0.0283668115735054, 0.08995264768600464, -0.0017822568770498037, -0.0014638301217928529, -0.008929946459829807, 0.018606388941407204, 0.027228405699133873, 0.027862926945090294, -0.0018883991288021207, 0.011626659892499447, 0.0801735669374466, 0.034600045531988144, -0.013614202849566936, -0.019688805565238, -0.005365433171391487, -0.02457834966480732, 0.020304664969444275, 0.02088319882750511, 0.020621925592422485, 0.007115030661225319, -0.03753003850579262, 0.04557352140545845, -0.024951595813035965, -0.018932979553937912, -0.01069354172796011, -0.005943966563791037, 0.034991953521966934, -0.07476148009300232, 0.06121259182691574, 0.014463340863585472, 0.06572888791561127, 0.02898266911506653, -0.019707469269633293, 0.035906411707401276, -0.008416731841862202, 0.0365222692489624, 0.06442251801490784, 0.0376046858727932, 0.02808687463402748, -0.06483308970928192, 0.006541162729263306, -0.0005694940336979926, -0.021853642538189888, 0.07748618721961975, -0.008668673224747181, 0.03060629591345787, 0.06752047687768936, -0.009251873008906841, -0.0031935989391058683, 0.02312268316745758, 0.012102550826966763, -0.03627965971827507, 0.00204819580540061, 0.0407959520816803, 0.024746309965848923, -0.014164743013679981, 0.09084844589233398, 0.0822637528181076, -0.07255931943655014, -0.0082441046833992, 0.011001470498740673, 0.005197471473366022, 0.003646161640062928, -0.003825786989182234, -0.053113121539354324, -0.05983157828450203, -0.04997784271836281, 0.06427322328090668, -0.011859939433634281, 0.02599668875336647, -0.03265915811061859, 0.008771316148340702, -0.04639466479420662, -0.007264329586178064, 0.021013835445046425, -0.03797793388366699, 0.07296989113092422, 0.014612640254199505, 0.041729070246219635, -0.014603309333324432, -0.02844146080315113, -0.04478970170021057, -0.0010754193644970655, -0.004973523318767548, 0.001259710406884551, 0.04684256389737129, 0.0032075957860797644, -0.09756690263748169, -0.06688595563173294, 0.04001213237643242, 0.028460122644901276, -0.07666503638029099, -0.017477314919233322, -0.0613618902862072, 0.022581474855542183, -0.022189565002918243, -0.04068397730588913, 0.016086967661976814, 0.02521286904811859, 0.04120652377605438, -0.0007348310318775475, -0.007912847213447094, 0.000790818186942488, 0.0019887094385921955, -0.01741199567914009, 0.04994051903486252, 0.013250286690890789, 0.03844449296593666, -0.04915669932961464, 0.03497329354286194, -0.05606177821755409, 0.017439989373087883, -0.04195301979780197, -0.06005552411079407, -0.031800687313079834, 0.014314042404294014, -0.058674510568380356, -0.05479273572564125, -0.031128842383623123, -0.007917513139545918, 0.01047892402857542, -0.027265731245279312, -0.035626474767923355, 0.07793407887220383, 0.016544196754693985, -0.0076749022118747234, 0.005925304256379604, 0.025511467829346657, -0.02280542254447937, 0.004824223928153515, 0.0012130544055253267, 0.008552033454179764, 0.006909744814038277, 0.14414818584918976, -0.00039949148776941, -0.03586908429861069, -0.008808641694486141, -0.015060537494719028, 0.0054960697889328, -0.058039989322423935, -0.0028880026657134295, 0.05632305145263672, -0.062332335859537125, -0.05326241999864578, 0.010469593107700348, 0.023775866255164146, 0.05490471050143242, 0.009713766165077686, 0.038145896047353745, 0.019987404346466064, -0.05326241999864578, -0.06569156050682068, -0.057368144392967224, -0.027303054928779602, 0.0052721211686730385, 0.05800266191363335, 0.03926564007997513, 0.029169293120503426, 0.06696060299873352, -0.003156274324283004, -0.0397135354578495, 0.051582805812358856, 0.026761846616864204, -0.03790328651666641, -0.012989013455808163, -0.02812420018017292, 0.046805236488580704, -0.06042877212166786, 0.008822638541460037, -0.04411785677075386, 0.03336832672357559, 0.033573612570762634, -0.06643805652856827, -0.037007492035627365, 0.0418410450220108, -0.010730866342782974, 0.0737537071108818, -0.0029346586670726538, 0.05210535228252411, -0.057480115443468094, -0.030456997454166412, 0.005048172548413277, -0.0036648239474743605, -0.026612548157572746, -0.0064245229586958885, -0.0026920477394014597, -0.02209625206887722, 0.012867707759141922, -0.00363916321657598, 0.02461567334830761, 0.0023561250418424606, -0.03934028744697571, 0.03189399838447571, -0.06472112238407135, 0.022712111473083496, -0.03432010859251022, -0.01175729651004076, 0.01720670983195305, 0.010217650793492794, -0.053150445222854614, 0.0514335073530674, -0.024037139490246773, 0.06501971930265427, -0.04441645368933678, 0.027247069403529167, 0.033144380897283554, 0.01989409327507019, -0.05344904214143753, 0.004297011997550726, 0.010964145883917809, 0.011887933127582073, -0.014071431010961533, 0.050873637199401855, -0.004621270578354597, -0.03599972277879715, 0.006550493650138378, -0.07248466461896896, 0.0041757067665457726, -0.012121212668716908, 0.08853431046009064, 0.0058273267932236195, -0.004544288385659456, 0.021200459450483322, 0.028310824185609818, 0.07192479819059372, 0.03021438606083393, -0.017048079520463943, 0.0008158957352861762, -0.04329671338200569, -0.03717545419931412, -0.010497585870325565, -0.007241001818329096, 0.026724521070718765, -0.006648471113294363, -0.022861409932374954, 0.022936059162020683, 0.002587071852758527, 0.00787552259862423, 0.03060629591345787, 0.008939278312027454, -0.08495113253593445, -0.0007220006664283574, 0.021555043756961823, -0.05692024528980255, -0.061585839837789536, -0.0052861180156469345, -0.03551449999213219, -0.003954090643674135, -0.02603401429951191, 0.03836984559893608, 0.04471505060791969, -0.06438519805669785, 0.04445377737283707, -0.015863019973039627, -0.005253458861261606, 0.02276809886097908, 0.015107193030416965, 0.040273405611515045, 0.022226888686418533, -0.02894534543156624, -0.04366995766758919, -0.009461824782192707, -0.039452262222766876, 0.0343947596848011, 0.0649077445268631, 0.0005394592881202698, -0.009583129547536373, -0.021797655150294304, 0.03840716928243637, 0.05848788470029831, -0.008024821989238262, -0.0017274362035095692, -0.02465299889445305, -0.0029859801288694143, 0.055165983736515045, -0.04833555221557617, -0.011552010662853718, -0.005780670791864395, 0.018223809078335762, -0.019371546804904938, 0.017328016459941864, 0.023215996101498604, 0.07868057489395142, 0.015760377049446106, 0.030699608847498894, -0.029710501432418823, 0.009928383864462376, -0.041617099195718765, 0.023813191801309586, 0.014985887333750725, 0.012849045917391777, -0.03284578025341034, -0.03904169052839279, 0.0015956331044435501, 0.030904894694685936, -0.03361093997955322, 0.012326499447226524, 0.003060629591345787, -0.0336855873465538, -0.017467983067035675, 0.00009455117833567783, -0.001367019023746252, -0.04639466479420662, -0.0032192599028348923, 0.002855343511328101, -0.007502275053411722, -0.04624536633491516, -0.0010036858730018139, -0.03096088208258152, 0.0001017682661768049, -0.06431054323911667, -0.0006403527804650366, -0.03822054713964462, -0.07580657303333282, -0.05359834432601929, 0.02146173268556595, -0.0015186507953330874, -0.05479273572564125, -0.060876671224832535, 0.007623580284416676, -0.022936059162020683, -0.01787855662405491, 0.00562204048037529, -0.042400918900966644, -0.03784729912877083, 0.0006922574830241501, 0.036727555096149445, 0.05076166242361069, -0.05333707109093666, 0.02780693955719471, 0.07117830216884613, 0.019782118499279022, -0.01812116615474224, 0.04352065920829773, 0.016590852290391922, -0.060279473662376404, -0.0057153524830937386, 0.014509997330605984, -0.03822054713964462, 0.03896703943610191, 0.008990599773824215, -0.005402757786214352, -0.04911937192082405, -0.03295775502920151, -0.0028506778180599213, 0.09532741457223892, 0.0057013556361198425, -0.013455572538077831, -0.0000597779217059724, -0.039601560682058334, -0.06864021718502045, 0.006251895800232887, -0.0066391401924192905, 0.022786760702729225, -0.021443068981170654, 0.020062053576111794, -0.03575711324810982, 0.021853642538189888, 0.04587211832404137, 0.0188023429363966, 0.02351459302008152, 0.008747988380491734, -0.0329950787127018, -0.024205101653933525, -0.004220029804855585, -0.0058553204871714115, 0.04549887031316757, 0.01985676772892475, -0.05180675536394119, 0.010805515572428703, -0.021611031144857407, 0.006097931414842606, 0.07539600133895874, -0.05053771287202835, -0.025268856436014175, 0.010348287411034107, 0.007828867062926292, 0.040833279490470886, 0.008211445063352585, 0.01035761833190918, -0.0023654561955481768, -0.019520845264196396, 0.04180372133851051, 0.056621648371219635, -0.020416639745235443, 0.03570112586021423, -0.0748361274600029, 0.019371546804904938, -0.03096088208258152, 0.015741713345050812, 0.0010369282681494951, 0.010236312635242939, -0.013464904390275478, 0.06427322328090668, -0.05647234991192818, 0.003538853023201227, 0.0028926681261509657, 0.04277416691184044, -0.003300907788798213, -0.014351367019116879, 0.04900739714503288, -0.07360441237688065, 0.015657734125852585, 0.04299811273813248, -0.009611123241484165, 0.004021741915494204, -0.01297968253493309, -0.0007424126379191875, 0.002381785772740841, 0.0400867834687233, -0.008696666918694973, -0.037082139402627945, -0.04725313559174538, 0.008580027148127556, -0.046767912805080414, 0.031259480863809586, -0.023365294560790062, 0.029131967574357986, -0.019446196034550667, -0.04908204823732376, 0.026407262310385704, -0.02446637488901615, 0.033536288887262344, -0.024671660736203194, -0.06610213220119476, 0.024727648124098778, -0.03028903529047966, -0.020118040964007378, 0.011785290203988552, -0.04038538038730621, -0.029057318344712257, -0.019707469269633293, 0.04038538038730621, -0.007138358894735575, -0.0003391303471289575, 0.08360744267702103, 0.05647234991192818, -0.0649077445268631, 0.012765064835548401 ]
730,224
mmengine.fileio.backends.petrel_backend
get_text
Read text from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Returns: str: Expected text reading from ``filepath``. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.get_text(filepath) 'hello world'
def get_text( self, filepath: Union[str, Path], encoding: str = 'utf-8', ) -> str: """Read text from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. Returns: str: Expected text reading from ``filepath``. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.get_text(filepath) 'hello world' """ return str(self.get(filepath), encoding=encoding)
(self, filepath: Union[str, pathlib.Path], encoding: str = 'utf-8') -> str
[ 0.011480373330414295, -0.1005142331123352, -0.011173265986144543, 0.07312753796577454, 0.03172232210636139, 0.0003390029596630484, -0.015111458487808704, -0.019094813615083694, 0.10318786650896072, -0.03564244881272316, 0.03790058568120003, -0.0013774641556665301, -0.0437898114323616, 0.0006763123092241585, 0.019365791231393814, -0.003353334730491042, -0.05871158465743065, -0.01796574518084526, 0.03119843266904354, -0.012654604390263557, -0.030692610889673233, -0.011426177807152271, 0.043392378836870193, 0.02483951672911644, -0.017188945785164833, -0.0014960163971409202, -0.05701346695423126, -0.06456468254327774, -0.02742282673716545, 0.024622736498713493, 0.03887610137462616, -0.05242493003606796, -0.023845937103033066, 0.005324689205735922, -0.07262171804904938, 0.05592956021428108, -0.03522695228457451, -0.03432369604706764, -0.005717605352401733, -0.03912901505827904, -0.05647151172161102, 0.07565665245056152, 0.07833028584718704, -0.010441629216074944, -0.029536444693803787, -0.042994946241378784, -0.04798091575503349, -0.04440402239561081, -0.022888485342264175, 0.0109474528580904, 0.04700540006160736, 0.06626279652118683, -0.06846673786640167, -0.007180878426879644, -0.04581310227513313, -0.025327274575829506, -0.02823575586080551, 0.01383786927908659, -0.026935068890452385, -0.015834063291549683, -0.0038591576740145683, -0.05657990276813507, 0.03051195852458477, 0.013052036985754967, 0.008662217296659946, -0.004459822550415993, 0.025345340371131897, -0.048811908811330795, 0.06785252690315247, -0.06351689994335175, 0.05701346695423126, 0.005717605352401733, -0.009366756305098534, -0.07222428172826767, 0.022454923018813133, -0.020287111401557922, -0.011308754794299603, 0.00945708155632019, 0.022202011197805405, 0.020955519750714302, -0.018661251291632652, 0.007275720126926899, 0.035172756761312485, -0.014488212764263153, 0.019076749682426453, -0.08100391924381256, 0.021100040525197983, -0.02563438192009926, -0.008594472892582417, -0.004742089658975601, 0.036401182413101196, -0.04938999190926552, -0.01590632274746895, 0.040863264352083206, 0.010956484824419022, -0.030819065868854523, 0.028651254251599312, -0.0036649578250944614, -0.022996876388788223, 0.0011832643067464232, -0.04346463829278946, 0.03829801827669144, 0.0238820668309927, 0.014334659092128277, 0.032733965665102005, -0.0367082916200161, -0.009565472602844238, 0.012428791262209415, 0.09776833653450012, -0.013214622624218464, -0.014912743121385574, -0.007009259890764952, 0.01902255415916443, 0.027097655460238457, 0.013214622624218464, -0.02523694932460785, -0.08309947699308395, -0.022599443793296814, 0.005189200863242149, -0.03647344186902046, 0.014813384972512722, 0.009339658543467522, -0.05347270518541336, -0.02632085606455803, 0.022743964567780495, 0.05466500297188759, 0.01269976794719696, -0.03228234127163887, 0.03237266466021538, 0.0005597359267994761, -0.0032494603656232357, 0.028271887451410294, 0.06662409752607346, 0.00047025721869431436, 0.026519572362303734, 0.04332011938095093, 0.0037327019963413477, 0.04700540006160736, 0.035552121698856354, 0.05683281645178795, 0.024369824677705765, -0.02483951672911644, 0.018010908737778664, -0.036762483417987823, -0.009872579015791416, 0.005148554220795631, 0.039237406104803085, -0.09834641963243484, -0.012175879441201687, 0.025327274575829506, 0.0702732503414154, -0.01849866658449173, -0.026971198618412018, -0.015843095257878304, 0.0385870598256588, 0.009213202632963657, 0.0010980195365846157, 0.05845867469906807, -0.07413918524980545, 0.04223621264100075, -0.03511856123805046, 0.027043459936976433, 0.0293015968054533, -0.01452434342354536, 0.006223428063094616, 0.02227427251636982, -0.030548090115189552, -0.03255331516265869, -0.00999903492629528, -0.03952644765377045, -0.027224110439419746, -0.019492246210575104, -0.08331625908613205, 0.009168040007352829, 0.042055562138557434, -0.0025449213571846485, 0.043139465153217316, 0.0640227273106575, 0.013991422019898891, 0.03833414986729622, -0.015436630696058273, -0.10716219246387482, -0.0318126454949379, 0.0003486000350676477, 0.061782654374837875, 0.007605408318340778, 0.010784866288304329, 0.010107425041496754, 0.026356985792517662, 0.02847060188651085, 0.010342271998524666, -0.030548090115189552, -0.023827871307730675, 0.04010453075170517, -0.02619439922273159, -0.07637925446033478, 0.0750785693526268, -0.04357302933931351, -0.06019292399287224, 0.019401920959353447, 0.0485951267182827, -0.005744702648371458, 0.03257138282060623, 0.036491509526968, -0.040863264352083206, 0.028940295800566673, 0.003084616269916296, 0.016845708712935448, -0.021623928099870682, 0.05766380950808525, -0.021244561299681664, -0.039634834975004196, -0.026772482320666313, 0.004913708195090294, 0.03833414986729622, 0.015508891083300114, -0.08916935324668884, 0.049462251365184784, 0.0011488276068121195, 0.04053809121251106, 0.036943137645721436, 0.03143328055739403, -0.04223621264100075, 0.04689700901508331, 0.014045617543160915, 0.00945708155632019, -0.007366045843809843, 0.045054368674755096, -0.026844743639230728, -0.018200591206550598, 0.0010697927791625261, -0.005812447052448988, 0.04628279432654381, 0.0023033006582409143, 0.04928160086274147, 0.016628926619887352, -0.019203204661607742, -0.01106487587094307, 0.01945611648261547, 0.00034916456206701696, 0.008571891114115715, -0.0251285582780838, 0.0016010197577998042, 0.04801704362034798, -0.03634698688983917, -0.010107425041496754, -0.0049272570759058, 0.03930966556072235, 0.023809805512428284, -0.05094359070062637, 0.058530934154987335, -0.004425950348377228, 0.006467306986451149, 0.02850673347711563, -0.01080293208360672, 0.024749191477894783, 0.01552695594727993, -0.05773606896400452, -0.017044425010681152, 0.05737476795911789, 0.015843095257878304, 0.007799608167260885, -0.027477022260427475, -0.023412372916936874, 0.005013066343963146, -0.05939805880188942, -0.07739090174436569, 0.054628871381282806, 0.020720673725008965, -0.03195716813206673, -0.022725900635123253, 0.07316366583108902, 0.0041527156718075275, -0.04198329895734787, -0.04519888758659363, -0.042994946241378784, -0.008057036437094212, 0.0613129585981369, 0.026122139766812325, -0.0029581605922430754, -0.09661217033863068, 0.032192014157772064, 0.01085712667554617, -0.06586536765098572, 0.034233368933200836, -0.006950548384338617, 0.0015265012625604868, -0.009845481254160404, -0.009118360467255116, -0.0026036330964416265, 0.009014486335217953, -0.028163496404886246, -0.0056498609483242035, -0.01581599749624729, 0.0690448209643364, -0.005193717312067747, -0.03334818035364151, -0.037719935178756714, 0.02863318845629692, -0.051630064845085144, 0.06275817006826401, 0.0006571181584149599, -0.014876612462103367, -0.019419986754655838, -0.043139465153217316, -0.005234363488852978, 0.01633085310459137, -0.018336080014705658, 0.014867579564452171, 0.005532437935471535, -0.014280464500188828, -0.057157985866069794, 0.01606890931725502, 0.08440016210079193, -0.042597513645887375, 0.026158269494771957, -0.009357723407447338, -0.004773703403770924, 0.02281622588634491, -0.045271147042512894, 0.011498438194394112, -0.007280236575752497, 0.03392626345157623, 0.006151167675852776, 0.0027820258401334286, -0.03862319141626358, 0.013395274057984352, 0.013458501547574997, 0.0012397177051752806, 0.028560929000377655, 0.0625775158405304, 0.036943137645721436, 0.01646634191274643, -0.05419531092047691, -0.05105198174715042, -0.029879679903388023, 0.02563438192009926, -0.06680475175380707, -0.011046811006963253, 0.027874454855918884, 0.08013679832220078, -0.06539567559957504, -0.01618633233010769, 0.010793899185955524, 0.0052524288184940815, 0.0736333578824997, 0.0410800464451313, -0.0402490496635437, 0.033691417425870895, -0.0437898114323616, 0.025200819596648216, -0.008278333581984043, -0.035696644335985184, -0.04122456535696983, -0.08837448805570602, 0.0022163623943924904, -0.02523694932460785, 0.017216043546795845, -0.011236494407057762, -0.01195006538182497, -0.07099585235118866, -0.007343464531004429, -0.035317275673151016, 0.04425950348377228, -0.00817445944994688, -0.016646992415189743, 0.009226751513779163, 0.07833028584718704, -0.031162302941083908, 0.0638059452176094, 0.012004260905086994, 0.011335852555930614, -0.017730899155139923, 0.05238879844546318, -0.0019069974077865481, 0.005884707439690828, -0.048667389899492264, -0.06915321201086044, -0.016800545156002045, 0.04599375277757645, 0.00580793060362339, 0.04798091575503349, -0.043970461934804916, 0.009190620854496956, 0.010495824739336967, 0.0224187932908535, -0.02054002322256565, -0.018534796312451363, 0.01310623250901699, -0.034341759979724884, 0.049895815551280975, 0.009005454368889332, 0.039634834975004196, -0.019618703052401543, -0.04537953808903694, -0.005180168431252241, 0.02402658760547638, 0.02054002322256565, 0.05184684693813324, 0.021804580464959145, -0.011579731479287148, -0.0014869838487356901, -0.05444822087883949, 0.010784866288304329, 0.0003601729986257851, 0.10419951379299164, -0.00434917351230979, 0.020016133785247803, -0.044620804488658905, 0.01661086268723011, -0.019419986754655838, 0.03499210625886917, 0.01891416311264038, -0.04270590469241142, 0.0023733030539005995, -0.0008445435669273138, -0.01744185760617256, -0.022978810593485832, 0.007352496962994337, 0.026953134685754776, -0.058783844113349915, 0.017468955367803574, -0.018173493444919586, -0.00002879125895560719, 0.019257400184869766, -0.0076957340352237225, 0.039887748658657074, -0.01686377450823784, 0.04982355609536171, 0.05311140418052673, 0.036401182413101196, -0.09986389428377151, -0.0656847134232521, -0.010468726977705956, -0.016114072874188423, 0.026393115520477295, -0.04010453075170517, 0.003940450493246317, -0.009402886033058167, -0.055423736572265625, 0.04834221675992012, 0.024062717333436012, 0.01768573559820652, 0.010161620564758778, 0.03145134449005127, -0.0260679442435503, -0.021027781069278717, -0.01289848331362009, 0.0062911720015108585, -0.04223621264100075, -0.00020986569870729, 0.023719480261206627, 0.06008453294634819, 0.023303983733057976, -0.023249788209795952, 0.003791413502767682, 0.032228145748376846, -0.0052253310568630695, -0.027061523869633675, 0.028831904754042625, -0.057988982647657394, 0.06398659199476242, 0.02995194122195244, -0.09292688965797424, 0.052713971585035324, -0.03195716813206673, -0.028723513707518578, 0.06373368203639984, -0.08555632829666138, -0.017053456977009773, 0.0010872933780774474, -0.007343464531004429, -0.07450048625469208, -0.011841675266623497, 0.004656280390918255, 0.029590638354420662, -0.02254524827003479, 0.002856544451788068, -0.03443208709359169, -0.007460887543857098, 0.001877641654573381, -0.03376367688179016, -0.0107397036626935, 0.008422854356467724, 0.00543759623542428, 0.00843188725411892, 0.05022098869085312, 0.029464183375239372, -0.0013718188274651766, -0.016096007078886032, 0.01689087226986885, 0.04386207088828087, 0.006539567373692989, -0.006747316103428602, -0.030819065868854523, 0.03251718729734421, -0.03372754901647568, 0.045307278633117676, -0.001037614420056343, 0.04415111243724823, -0.028055105358362198, -0.021172301843762398, 0.028253821656107903, 0.09769608080387115, -0.0022886227816343307, 0.022039426490664482, -0.003373658051714301, 0.03996000811457634, 0.03661796450614929, -0.0023168495390564203, 0.022653639316558838, 0.04032130911946297, 0.02418917417526245, 0.01161586120724678, -0.032752033323049545, -0.00493177305907011, -0.005835028365254402, 0.03251718729734421, -0.018733512610197067, 0.014126910828053951, -0.03172232210636139, -0.0011742317583411932, -0.03551599383354187, -0.005148554220795631, 0.036762483417987823, -0.027603477239608765, -0.0569412037730217, -0.012934613972902298, -0.04411498084664345, 0.03334818035364151, -0.0012713316828012466, -0.0027526700869202614, -0.0011448758887127042, 0.016421178355813026, -0.009321593679487705, -0.026664093136787415, -0.04696926847100258, 0.026266660541296005, -0.007944129407405853, 0.05470113083720207, 0.011128103360533714, 0.01996193826198578, -0.04823382571339607, 0.006160200107842684, 0.03526308014988899, -0.05444822087883949, 0.011995228938758373, -0.018308982253074646, 0.055965688079595566, 0.04465693607926369, -0.0032201046124100685, -0.037467025220394135, -0.016773449257016182, -0.016908936202526093, 0.038695450872182846, 0.06062648817896843, -0.019492246210575104, 0.02539953589439392, -0.0030326792038977146, -0.057194117456674576, 0.04711379110813141, -0.014957905746996403, -0.021623928099870682, 0.02904868684709072, 0.023954326286911964, 0.026953134685754776, 0.01377464085817337, 0.05336431413888931, -0.012302335351705551, -0.06261365115642548, 0.029139012098312378, 0.04183878004550934, 0.03614827245473862, -0.029897745698690414, 0.008025421760976315, 0.00489564286544919, 0.06167426332831383, 0.0009139812900684774, 0.018715446814894676, 0.05051003023982048, 0.024731125682592392, -0.05751928687095642, 0.0007942999945953488, 0.03582309931516647, 0.018001874908804893, 0.05549599602818489, -0.012952678836882114, 0.03916514292359352, -0.02077486924827099, -0.002130553126335144, 0.02688087336719036, -0.00722604151815176, 0.03739476203918457, 0.003337527858093381, 0.05000420659780502, 0.00952934194356203, 0.0075150830671191216, 0.025453729555010796, 0.046644095331430435, -0.017351532354950905, -0.0096467649564147, -0.03336624428629875, -0.006381497718393803, 0.017360564321279526, -0.028994491323828697, 0.07041776925325394, 0.012139749713242054, -0.025562120601534843, 0.025869227945804596, 0.02523694932460785, -0.02633891999721527, -0.06416724622249603, -0.014470147900283337, -0.059181276708841324, 0.04805317521095276, 0.016701187938451767, 0.0143888546153903, -0.04581310227513313, 0.03416110947728157, -0.016656024381518364, 0.06326398998498917, 0.008653184399008751, 0.019329659640789032, 0.055026303976774216, -0.0014327885583043098, 0.04653570428490639, 0.016231495887041092, -0.06727444380521774, -0.02834414690732956, 0.010369368828833103, -0.003829801920801401, -0.04209169000387192, -0.011263592168688774, 0.028922230005264282, 0.034341759979724884, -0.03591342642903328, -0.013259786181151867, 0.00408722972497344, 0.01223007496446371, -0.034377891570329666, -0.05079907178878784, -0.019636766985058784, -0.06167426332831383, -0.032607510685920715, -0.006376981269568205, -0.006656990386545658, -0.056760553270578384, -0.017794126644730568, 0.07493405044078827, -0.015969552099704742, -0.007600892335176468, 0.04266977310180664, -0.01175135001540184, -0.018823837861418724, -0.012257172726094723, 0.02483951672911644, 0.08750735968351364, -0.05444822087883949, 0.03251718729734421, 0.04068261384963989, 0.010649378411471844, 0.009700960479676723, 0.015012100338935852, -0.03992387652397156, 0.0008727703243494034, -0.053003013134002686, -0.020341306924819946, -0.005076293833553791, 0.06622666865587234, 0.0074247573502361774, 0.025869227945804596, 0.06449241936206818, -0.0001775460987119004, -0.045307278633117676, 0.02621246501803398, 0.018859967589378357, 0.04646344482898712, -0.026700222864747047, 0.015689542517066002, -0.0019973230082541704, 0.014921775087714195, 0.017794126644730568, -0.039237406104803085, -0.008888030424714088, -0.0176767036318779, -0.02093745395541191, 0.013133330270648003, 0.022635573521256447, 0.06445629149675369, 0.015165654011070728, -0.04201943054795265, 0.0034368860069662333, -0.021804580464959145, 0.011110038496553898, 0.03656376898288727, 0.00884286779910326, 0.03195716813206673, -0.05112424120306969, 0.019094813615083694, 0.010134522803127766, 0.013341078534722328, -0.04902869090437889, 0.02175038494169712, -0.052063629031181335, -0.010206783190369606, -0.04209169000387192, -0.030728740617632866, -0.03419724106788635, -0.04899255931377411, -0.047583483159542084, -0.045162759721279144, 0.0019352241652086377, 0.0437898114323616, -0.048558998852968216, 0.06351689994335175, -0.0003353334905114025, -0.04563245177268982, 0.04310333728790283, -0.015834063291549683, -0.014018519781529903, -0.030024200677871704, 0.005424047354608774, 0.03739476203918457, 0.00016385613707825541, -0.008829318918287754, 0.03564244881272316, 0.003960773814469576, -0.01011645793914795, -0.026700222864747047, 0.020829064771533012, 0.015978584066033363, -0.012112651951611042, 0.02550792507827282, -0.0840388610959053, -0.05831415206193924, -0.01700829528272152, -0.009917741641402245, -0.06261365115642548, 0.06210782378911972, 0.02984355017542839, -0.04494597762823105, 0.005970516707748175, -0.10434403270483017, -0.055170826613903046, 0.08570084720849991, -0.02254524827003479, 0.002592342207208276, 0.014813384972512722, -0.0072847530245780945, -0.0021429727785289288, -0.007569278124719858, 0.014542408287525177, -0.026519572362303734, 0.015436630696058273, -0.03728637471795082, 0.040574222803115845, 0.04563245177268982, -0.0014971453929319978, -0.04187490791082382, 0.05307527258992195, -0.01727927103638649, 0.034757260233163834, -0.01620439812541008, 0.03240879625082016, -0.02283428981900215, -0.0015908580971881747, -0.02715185098350048, 0.010468726977705956 ]
730,225
mmengine.fileio.backends.petrel_backend
isdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a directory. Returns: bool: Return ``True`` if ``filepath`` points to a directory, ``False`` otherwise. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/dir' >>> backend.isdir(filepath) True
def isdir(self, filepath: Union[str, Path]) -> bool: """Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a directory. Returns: bool: Return ``True`` if ``filepath`` points to a directory, ``False`` otherwise. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/dir' >>> backend.isdir(filepath) True """ if not has_method(self._client, 'isdir'): raise NotImplementedError( 'Current version of Petrel Python SDK has not supported ' 'the `isdir` method, please use a higher version or dev' ' branch instead.') filepath = self._map_path(filepath) filepath = self._format_path(filepath) filepath = self._replace_prefix(filepath) return self._client.isdir(filepath)
(self, filepath: Union[str, pathlib.Path]) -> bool
[ 0.0018351670587435365, -0.0017294952413067222, -0.016822952777147293, -0.003848802065476775, 0.052300501614809036, 0.014427724294364452, 0.021416153758764267, 0.00786198303103447, -0.07495653629302979, -0.009233367629349232, 0.007223255466669798, 0.0015850771451368928, 0.0003181895590387285, -0.022073667496442795, -0.027559207752346992, -0.062369849532842636, -0.004797500092536211, -0.0008447873988188803, -0.0065375627018511295, -0.06315886974334717, -0.01819433644413948, 0.0681183934211731, 0.06890740990638733, 0.00641075661405921, -0.025736955925822258, 0.03479185700416565, 0.004987709224224091, 0.0038112299516797066, -0.03490457311272621, 0.04493635147809982, -0.0007273742812685668, 0.018579453229904175, 0.014211684465408325, 0.004473439883440733, -0.014117754064500332, 0.03866179287433624, -0.01685113087296486, 0.015273098833858967, -0.06853169202804565, -0.03588144853711128, -0.06913284957408905, 0.06304614990949631, 0.005039371084421873, 0.05173691734671593, 0.015066451393067837, 0.00557477492839098, -0.057748470455408096, -0.026788977906107903, 0.0022167598363012075, 0.015714572742581367, 0.0737166553735733, -0.0035857968032360077, -0.029588107019662857, -0.03473549708724022, 0.02878030389547348, -0.0028625319246202707, 0.046589527279138565, 0.015010093338787556, -0.010078742168843746, 0.006753602996468544, -0.0006334437639452517, -0.04035254195332527, -0.02137858048081398, -0.06586406379938126, -0.006316825747489929, 0.004269141238182783, -0.05936407297849655, -0.035975381731987, 0.0010989868314936757, -0.005631133448332548, -0.10046806186437607, 0.05072246864438057, 0.04459819942712784, -0.01619361713528633, -0.005504327360540628, 0.018466735258698463, 0.024327998980879784, 0.038624219596385956, -0.008120291866362095, -0.0027592084370553493, -0.09610968828201294, -0.03873693570494652, -0.009012631140649319, -0.0053164660930633545, 0.03715890645980835, 0.03206787258386612, 0.004299668595194817, 0.004041359759867191, -0.05872534587979317, 0.01261486578732729, -0.0028179148212075233, -0.03017047606408596, 0.04831784963607788, -0.006889801938086748, -0.00732188206166029, -0.0038746329955756664, 0.017649540677666664, -0.011534664779901505, -0.029794754460453987, -0.030489839613437653, -0.035599660128355026, 0.014662550762295723, 0.057936329394578934, -0.011008654721081257, -0.012830905616283417, -0.01634390652179718, -0.04328317195177078, 0.010266602970659733, 0.018100406974554062, -0.029945041984319687, -0.05252593383193016, -0.042682018131017685, 0.035336654633283615, 0.03629474341869354, 0.005753242876380682, -0.003193636890500784, 0.008096808567643166, -0.06094210594892502, -0.03343925625085831, -0.013469633646309376, 0.014728302136063576, 0.01844795048236847, 0.034829430282115936, -0.02739013358950615, 0.06766752898693085, -0.01017267256975174, 0.03847393020987511, 0.0038041851948946714, -0.09671083837747574, 0.05913864076137543, -0.04362132400274277, 0.054968126118183136, 0.01089593768119812, 0.016945062205195427, -0.003832364222034812, 0.0681183934211731, 0.03824849799275398, 0.006993125658482313, -0.012370646931231022, 0.08002878725528717, 0.0627831444144249, 0.008411476388573647, 0.007505046669393778, -0.014690729789435863, 0.04369646683335304, 0.056245580315589905, -0.052901655435562134, 0.0029893380124121904, -0.0051520876586437225, 0.027221057564020157, -0.033833764493465424, -0.03037712350487709, 0.05936407297849655, 0.030696487054228783, 0.012586686760187149, 0.023257190361618996, -0.04362132400274277, 0.006532866042107344, -0.00968423392623663, -0.01212642714381218, -0.027465278282761574, -0.011046226136386395, 0.004623728804290295, -0.018053442239761353, 0.008838859386742115, 0.01782800815999508, -0.014371366240084171, 0.010238423943519592, -0.027427705004811287, 0.0521126389503479, 0.00593640748411417, -0.006020945031195879, 0.014465296640992165, 0.0006269860896281898, 0.0009868573397397995, -0.007148110773414373, 0.0618814118206501, 0.07897676527500153, -0.012727582827210426, 0.01870156265795231, 0.048693571239709854, -0.005053460597991943, 0.003510652342811227, 0.034603994339704514, 0.021622801199555397, 0.02513580024242401, -0.010050563141703606, -0.01459679938852787, 0.015940004959702492, 0.0420432910323143, -0.07627156376838684, 0.045612648129463196, 0.02010112628340721, 0.00031378655694425106, -0.024684933945536613, 0.020364131778478622, 0.09160102158784866, -0.039601098746061325, -0.06729181110858917, 0.02774706855416298, 0.07540740072727203, 0.007772748824208975, -0.029118454083800316, -0.01727381907403469, -0.014690729789435863, 0.008162559941411018, -0.050234030932188034, 0.03308232128620148, 0.02261846326291561, 0.0032335573341697454, -0.019199393689632416, -0.08604033291339874, 0.02673261985182762, 0.034866999834775925, 0.01566760614514351, -0.0053164660930633545, -0.039901673793792725, 0.0681183934211731, -0.011760097928345203, 0.015817895531654358, 0.07777445018291473, 0.05293922871351242, 0.017245639115571976, -0.05556928366422653, 0.02045806311070919, -0.022280313074588776, -0.025567881762981415, 0.03982653096318245, -0.032499950379133224, -0.030358336865901947, -0.023557769134640694, -0.012464577332139015, 0.018682776018977165, 0.05297680199146271, 0.03182365372776985, -0.015742750838398933, 0.029118454083800316, 0.020439276471734047, -0.010651718825101852, 0.003670334117487073, -0.011534664779901505, -0.028460940346121788, 0.010445071384310722, -0.000960439327172935, -0.07352879643440247, -0.013835961930453777, 0.038774508982896805, -0.0012762806145474315, -0.007941823452711105, -0.009036113508045673, -0.03146671503782272, -0.013920499943196774, -0.04020225256681442, -0.01876731403172016, -0.007660032249987125, -0.001596818445250392, -0.05545656755566597, 0.07882647216320038, -0.032556310296058655, 0.01207946240901947, 0.005391610786318779, -0.004269141238182783, -0.00791834108531475, 0.005269500892609358, 0.03407798334956169, -0.031128566712141037, 0.05237564444541931, -0.02605631947517395, 0.08280912786722183, -0.008472531102597713, 0.07146232575178146, 0.016315726563334465, 0.027878571301698685, -0.0017835053149610758, 0.03956352546811104, 0.020777426660060883, -0.01670084334909916, -0.03417191654443741, 0.018466735258698463, 0.04621380567550659, -0.032969605177640915, -0.004473439883440733, -0.019143035635352135, -0.055531710386276245, 0.002101694932207465, -0.005241321865469217, -0.024064993485808372, 0.07168775796890259, -0.019312109798192978, 0.04775426536798477, 0.025887245312333107, -0.03328896686434746, -0.004950137343257666, 0.013779603876173496, 0.008336331695318222, 0.05293922871351242, 0.011609809473156929, -0.034096769988536835, -0.005189660005271435, -0.076083704829216, -0.025661811232566833, 0.05143633857369423, 0.045762937515974045, 0.010905331000685692, -0.03238723427057266, 0.016278155148029327, 0.01012570783495903, 0.02055199258029461, 0.009834523312747478, 0.0028578354977071285, -0.0013878231402486563, 0.010398105718195438, -0.03216180205345154, 0.000057495737564750016, 0.07950277626514435, 0.018955174833536148, -0.03911265730857849, -0.05827448144555092, -0.07138717919588089, 0.05669644847512245, -0.05308951810002327, 0.06376001983880997, 0.0071668969467282295, 0.03302596136927605, -0.07446809858083725, -0.002105217194184661, 0.03037712350487709, 0.021979736164212227, 0.03253752365708351, 0.028254292905330658, 0.03580630570650101, -0.015273098833858967, 0.06657793372869492, -0.036877114325761795, -0.00835042167454958, -0.02924995683133602, -0.0038112299516797066, -0.04824270308017731, 0.0007068269769661129, 0.09843916445970535, 0.033739835023880005, -0.05673402175307274, 0.013037553057074547, -0.006044427398592234, 0.00607730308547616, -0.0018915253458544612, -0.003219467820599675, 0.020213842391967773, 0.10249695926904678, 0.06616464257240295, 0.047453686594963074, 0.052450791001319885, -0.023933490738272667, -0.014944341965019703, -0.036144454032182693, 0.011854028329253197, 0.03357075899839401, 0.09648540616035461, -0.00420338986441493, 0.036106884479522705, 0.015019486658275127, -0.030245620757341385, 0.015075844712555408, 0.018635811284184456, 0.011234087869524956, -0.04655195400118828, 0.01927453838288784, -0.055982574820518494, 0.04493635147809982, 0.05857505649328232, 0.0692831352353096, -0.013882927596569061, -0.006114875432103872, -0.024609791114926338, 0.01989447884261608, -0.016888704150915146, 0.01483162585645914, -0.08108080178499222, 0.042343869805336, 0.01989447884261608, -0.013319344259798527, 0.04215600714087486, 0.047303397208452225, 0.044222477823495865, 0.01773407869040966, 0.055118415504693985, 0.06725423783063889, -0.02199852280318737, -0.07799988240003586, -0.05350281298160553, -0.03608809784054756, 0.008707357570528984, -0.00798878911882639, -0.03930051997303963, -0.06518776714801788, -0.08145652711391449, 0.005678098648786545, -0.013206628151237965, 0.00009481109736952931, -0.03881208226084709, 0.055531710386276245, -0.03915023058652878, -0.004696524702012539, 0.054855410009622574, -0.028179150074720383, 0.05286408215761185, 0.04302016645669937, 0.045049067586660385, -0.031072208657860756, -0.06252013891935349, 0.043809182941913605, -0.04302016645669937, 0.0031466716900467873, -0.002281337045133114, -0.03884965553879738, 0.04850570857524872, -0.018955174833536148, -0.024609791114926338, 0.07108660042285919, 0.015038272365927696, 0.005654615815728903, -0.04689010605216026, -0.023557769134640694, 0.01459679938852787, 0.017226852476596832, 0.017301997169852257, 0.0012175741139799356, -0.042945023626089096, 0.010914723388850689, -0.029775967821478844, -0.012239144183695316, -0.003733737161383033, 0.03203029930591583, -0.04095369577407837, 0.012783940881490707, -0.02765313908457756, -0.05932650342583656, -0.003358015324920416, -0.05590743198990822, -0.00560295395553112, -0.04516178369522095, -0.015789717435836792, -0.0627831444144249, -0.009599696844816208, 0.00940244272351265, -0.015761537477374077, 0.0013420319883152843, -0.0420432910323143, 0.0796530619263649, 0.010567180812358856, -0.040051963180303574, 0.013657494448125362, 0.09340448677539825, 0.01113076414912939, -0.06473689526319504, 0.026356898248195648, -0.006114875432103872, 0.029982615262269974, -0.013845355249941349, -0.032143015414476395, -0.018926994875073433, 0.011609809473156929, 0.06105482205748558, -0.021002858877182007, -0.0022437646985054016, 0.013788997195661068, -0.0018163810018450022, 0.0011048574233427644, -0.003534134943038225, 0.02102164551615715, 0.01674780808389187, -0.028329437598586082, -0.0005618217983283103, 0.023614127188920975, 0.026713833212852478, 0.04782940819859505, 0.016165439039468765, 0.006683154962956905, -0.04948258772492409, 0.010510822758078575, -0.0282730795443058, -0.03858665004372597, -0.03206787258386612, 0.01598697155714035, 0.004635469987988472, -0.02708955481648445, -0.03770370036363602, 0.08611547946929932, 0.011515879072248936, -0.059852514415979385, 0.05252593383193016, 0.0031795473769307137, 0.027314988896250725, -0.055982574820518494, 0.03058376908302307, 0.0044663953594863415, -0.03695225715637207, 0.03915023058652878, -0.042945023626089096, 0.017395928502082825, -0.0037102545611560345, -0.0047458382323384285, 0.004158772993832827, 0.052300501614809036, -0.011891600675880909, 0.012032496742904186, 0.011140156537294388, 0.00360458274371922, -0.05436697229743004, 0.014963128603994846, -0.017142316326498985, 0.055118415504693985, -0.06135540083050728, -0.021472511813044548, 0.029926257207989693, 0.05586985871195793, 0.012314287945628166, -0.017968904227018356, -0.0343409888446331, -0.034359775483608246, 0.010482643730938435, -0.05853748694062233, -0.0012833253713324666, 0.016118472442030907, -0.03225573152303696, 0.07747387140989304, 0.0010713947704061866, -0.04426005110144615, 0.0008306978270411491, 0.00043061262113042176, 0.011778884567320347, 0.023820774629712105, -0.03422827273607254, 0.002808521967381239, 0.048543281853199005, 0.01751803793013096, -0.010059956461191177, 0.015423387289047241, -0.04151728004217148, 0.0021286997944116592, 0.014286828227341175, -0.01640026457607746, -0.02179187536239624, -0.026788977906107903, 0.04065312072634697, -0.010952295735478401, -0.0029846415854990482, -0.069884292781353, 0.05068489536643028, 0.0297571811825037, -0.0009933150140568614, 0.021867020055651665, -0.016729021444916725, 0.010736255906522274, 0.07518196851015091, 0.0675172433257103, 0.0208713561296463, -0.04835541918873787, -0.018485521897673607, -0.04963287338614464, -0.028254292905330658, -0.041705142706632614, -0.026244180276989937, 0.008449047803878784, 0.039638668298721313, -0.013807782903313637, 0.05549413710832596, -0.005753242876380682, 0.01578032411634922, -0.050346747040748596, 0.0346415676176548, -0.025173373520374298, -0.018523093312978745, -0.013695066794753075, 0.013225413858890533, 0.02883666194975376, -0.007138717919588089, -0.000960439327172935, 0.006871015764772892, -0.0009698324138298631, -0.027427705004811287, -0.042531728744506836, 0.009956632740795612, -0.00641075661405921, -0.07071087509393692, -0.035130005329847336, -0.007260827347636223, 0.041141558438539505, -0.0319739431142807, -0.020833784714341164, 0.005377520807087421, 0.007462778128683567, 0.047716692090034485, -0.012624259106814861, 0.009778164327144623, -0.010106921195983887, 0.022130025550723076, -0.012455184012651443, 0.10783220827579498, 0.012342466972768307, -0.02522973157465458, -0.019612688571214676, -0.023369908332824707, -0.02128465101122856, -0.007354757748544216, -0.005349341779947281, 0.024609791114926338, 0.00891400407999754, -0.0322745181620121, -0.0297571811825037, -0.002080560429021716, 0.006030337885022163, 0.028141576796770096, 0.0065375627018511295, 0.08318484574556351, 0.03948838263750076, 0.008068629540503025, -0.050760041922330856, -0.009111258201301098, -0.051361195743083954, 0.004043708089739084, -0.04523692652583122, 0.06244499608874321, -0.004837420769035816, -0.021040432155132294, -0.03638867288827896, 0.036971043795347214, -0.001111315214075148, -0.0016390872187912464, -0.0595143623650074, 0.01608090102672577, 0.00643893564119935, -0.0143619729205966, -0.03052741102874279, -0.024421928450465202, -0.08325999230146408, -0.03043348155915737, -0.056245580315589905, 0.052713796496391296, -0.07469353079795837, -0.018100406974554062, -0.030564984306693077, -0.022881468757987022, 0.00010486459359526634, 0.02502308413386345, -0.03349561616778374, 0.01654116064310074, -0.01338509563356638, 0.07506925612688065, -0.001761196879670024, -0.015019486658275127, 0.057635754346847534, -0.05267622321844101, -0.07356636226177216, -0.029682036489248276, 0.021303437650203705, 0.03586266562342644, -0.008768412284553051, 0.015263705514371395, -0.007894858717918396, 0.02425285428762436, -0.04542478919029236, -0.017893759533762932, -0.024910368025302887, 0.01410836074501276, 0.005570078268647194, 0.002124003367498517, -0.008312849327921867, 0.043771613389253616, -0.00804514717310667, -0.010848972015082836, 0.07649699598550797, -0.03293203189969063, -0.01604332961142063, 0.06094210594892502, 0.0143619729205966, -0.05207506939768791, -0.04215600714087486, -0.016015149652957916, 0.010520216077566147, -0.07416751980781555, 0.07860103994607925, -0.0370086170732975, 0.031372785568237305, -0.014578012749552727, -0.009186402894556522, 0.044635772705078125, -0.0399768203496933, 0.010398105718195438, -0.021867020055651665, -0.02821672149002552, -0.031786080449819565, 0.013864141888916492, 0.0014113057404756546, 0.025624239817261696, -0.033589545637369156, 0.046326521784067154, 0.06770510226488113, -0.034359775483608246, -0.024760078638792038, 0.020984072238206863, -0.011158943176269531, -0.010520216077566147, -0.008308152668178082, 0.057748470455408096, -0.025473950430750847, -0.009900274686515331, 0.024760078638792038, 0.028179150074720383, 0.0056405263021588326, -0.010059956461191177, 0.02214881218969822, 0.01551731862127781, -0.08002878725528717, 0.03325139731168747, -0.04606351628899574, -0.012539721094071865, 0.0022003219928592443, 0.0784507542848587, -0.08130624145269394, 0.011741312220692635, -0.07717330008745193, -0.028855448588728905, -0.022130025550723076, -0.022656036540865898, -0.05632072687149048, 0.010557787492871284, 0.01462497841566801, -0.03539301082491875, 0.039751388132572174, 0.009139437228441238, -0.02616903744637966, 0.004609639290720224, -0.0009058422292582691, -0.05143633857369423, 0.015197954140603542, -0.01702020689845085, 0.04583808407187462, 0.03854907676577568, 0.016381477937102318, 0.01037932001054287, 0.02081499807536602, 0.038060639053583145, -0.10753163695335388, 0.05628315359354019, 0.02928752824664116, 0.02688290923833847, -0.031786080449819565, 0.009937847033143044, -0.02226152829825878, 0.033946480602025986, -0.037910349667072296, -0.04636409506201744, -0.00669254781678319, -0.027615565806627274, 0.0032476468477398157, -0.0349421463906765, 0.006908588111400604, -0.006894498597830534, -0.044372767210006714, -0.026488400995731354, -0.020007196813821793, -0.015047665685415268, -0.01912424899637699, 0.013742031529545784, 0.029945041984319687, -0.056245580315589905, 0.01267122384160757 ]
730,226
mmengine.fileio.backends.petrel_backend
isfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns: bool: Return ``True`` if ``filepath`` points to a file, ``False`` otherwise. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.isfile(filepath) True
def isfile(self, filepath: Union[str, Path]) -> bool: """Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns: bool: Return ``True`` if ``filepath`` points to a file, ``False`` otherwise. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.isfile(filepath) True """ if not has_method(self._client, 'contains'): raise NotImplementedError( 'Current version of Petrel Python SDK has not supported ' 'the `contains` method, please use a higher version or ' 'dev branch instead.') filepath = self._map_path(filepath) filepath = self._format_path(filepath) filepath = self._replace_prefix(filepath) return self._client.contains(filepath)
(self, filepath: Union[str, pathlib.Path]) -> bool
[ 0.03339789807796478, -0.10319893062114716, -0.025157103314995766, 0.02604544535279274, 0.015612146817147732, -0.02230306714773178, 0.0661153644323349, -0.0028209597803652287, -0.03404052555561066, -0.02362613007426262, 0.031073085963726044, 0.014752155169844627, 0.013447992503643036, -0.05057881772518158, -0.020318470895290375, -0.006350703537464142, 0.032226040959358215, -0.026234453544020653, 0.007092563901096582, -0.03738598898053169, -0.03266075998544693, 0.01862684078514576, 0.05583326891064644, 0.03347349911928177, 0.021868346258997917, 0.051108043640851974, -0.024060850962996483, -0.014922263100743294, 0.011189335025846958, 0.010130884125828743, 0.01259745191782713, -0.0191749669611454, 0.016481587663292885, -0.01861738972365856, -0.013003821484744549, 0.018948156386613846, -0.012578551657497883, 0.018135417252779007, -0.024514472112059593, -0.04067474603652954, -0.0525067113339901, 0.07787172496318817, -0.0009131499100476503, 0.05723193660378456, -0.03536359220743179, 0.009875722229480743, -0.06520811468362808, 0.0176723450422287, 0.02150922827422619, 0.008202992379665375, 0.07012235373258591, -0.00701696053147316, -0.032226040959358215, -0.008368374779820442, -0.023588327690958977, -0.03972969949245453, 0.009601659141480923, 0.05069222301244736, -0.04921795427799225, 0.01322118192911148, 0.014137876220047474, -0.040901556611061096, 0.022926796227693558, -0.08838062733411789, 0.016944659873843193, 0.011529550887644291, -0.0136275514960289, -0.0631290152668953, 0.01158625353127718, -0.017757399007678032, -0.04075034707784653, 0.04831070825457573, 0.026820382103323936, -0.024571174755692482, -0.006128618028014898, -0.010508902370929718, 0.03644094243645668, 0.027217300608754158, 0.006199496332556009, -0.004786653909832239, -0.04925575479865074, -0.05091903358697891, -0.0006503092008642852, -0.014260731637477875, 0.025062598288059235, -0.0019148978171870112, 0.04921795427799225, -0.013192830607295036, -0.033284492790699005, 0.05511503666639328, 0.008599910885095596, -0.003291119821369648, 0.031318798661231995, -0.03305768221616745, 0.042678240686655045, -0.013580298982560635, 0.043131861835718155, -0.034248437732458115, -0.01777629926800728, -0.0373481847345829, -0.04831070825457573, 0.009275618009269238, 0.04301845654845238, 0.004394460003823042, 0.023134706541895866, 0.022926796227693558, 0.0007690305355936289, 0.010556154884397984, 0.05394317954778671, -0.04150638356804848, -0.047630276530981064, -0.05764775723218918, 0.030524959787726402, 0.052317701280117035, 0.012588001787662506, -0.06879928708076477, 0.013079425320029259, -0.008637713268399239, -0.00883617252111435, -0.01166185736656189, 0.020469678565859795, -0.00802343338727951, 0.015385335311293602, -0.007796622812747955, 0.04918015003204346, -0.04619380831718445, 0.027935534715652466, -0.02411755360662937, -0.03415393456816673, 0.0004937861231155694, -0.04154418781399727, 0.018853651359677315, 0.0073241000063717365, 0.045702386647462845, -0.04487074539065361, 0.06929071247577667, 0.032282743602991104, 0.002167697297409177, -0.00046691138413734734, 0.07023575901985168, 0.039654094725847244, -0.0020070397295057774, -0.018598489463329315, -0.009256717748939991, 0.0156499482691288, 0.027274003252387047, -0.02060198411345482, -0.028956184163689613, 0.01347634382545948, 0.03339789807796478, -0.0009657180635258555, -0.03991870954632759, 0.020375173538923264, 0.003957376815378666, 0.012162731029093266, -0.013684254139661789, -0.0010182862170040607, 0.017436083406209946, -0.0479704923927784, -0.006416856776922941, -0.006350703537464142, 0.03216933831572533, -0.012550200335681438, 0.009819019585847855, 0.006138068623840809, 0.007711568847298622, -0.08323957771062851, 0.03326559066772461, -0.004181825090199709, 0.031110886484384537, -0.018645741045475006, -0.0055143386125564575, -0.0004701599827967584, 0.02568632736802101, 0.042073410004377365, -0.03160231187939644, 0.06036948785185814, 0.06600195169448853, 0.021830543875694275, 0.03422953560948372, 0.03054386004805565, -0.0454377718269825, -0.0002777546760626137, 0.027670923620462418, 0.044492725282907486, 0.03602512180805206, -0.01395831722766161, -0.009743415750563145, 0.052468907088041306, 0.04910454899072647, -0.039502888917922974, 0.014118975028395653, 0.03196142613887787, 0.031621210277080536, -0.018711894750595093, -0.041922204196453094, 0.09677262604236603, -0.0014033920597285032, -0.1165807768702507, 0.009913523681461811, 0.03755609691143036, -0.036724455654621124, -0.03088407590985298, 0.014128425158560276, -0.03404052555561066, 0.01867409236729145, 0.012805362232029438, -0.0011913476046174765, 0.016727300360798836, 0.04880213364958763, -0.05122144892811775, -0.09647021442651749, -0.02508149854838848, 0.032471753656864166, 0.04566458240151405, 0.05545525252819061, -0.07658646255731583, 0.06668239086866379, -0.04366108775138855, 0.049331359565258026, 0.11227136850357056, 0.059046421200037, -0.002884750487282872, -0.017540037631988525, 0.04608040302991867, 0.026631373912096024, -0.010868019424378872, 0.06498130410909653, -0.033946022391319275, -0.01084911823272705, -0.032982077449560165, -0.00172234489582479, 0.043887898325920105, 0.03447524830698967, 0.012795912101864815, 0.012559650465846062, 0.02215185947716236, 0.04063694179058075, 0.0006981521146371961, 0.03600621968507767, 0.028030039742588997, 0.024703480303287506, 0.007858050987124443, -0.014875011518597603, -0.10886920243501663, -0.05091903358697891, 0.04184659942984581, -0.008916500955820084, -0.059084225445985794, -0.022189659997820854, 0.03954068943858147, -0.02009166032075882, -0.01496951561421156, -0.030713967978954315, -0.0007589894230477512, 0.005093793384730816, -0.03199923038482666, 0.01811651699244976, -0.002535083796828985, 0.04638281837105751, -0.015489290468394756, 0.038633447140455246, 0.06123892590403557, -0.013003821484744549, 0.006204221397638321, -0.05447240546345711, -0.0037849058862775564, 0.0191749669611454, 0.010102532804012299, -0.04842411354184151, 0.09079994261264801, 0.046458419412374496, 0.015158524736762047, 0.005117419641464949, 0.0009031087975017726, -0.0323016457259655, -0.04381229355931282, 0.0194301288574934, 0.004928410518914461, 0.04604260250926018, -0.06471669673919678, 0.005216649267822504, 0.0214525256305933, -0.027784328907728195, 0.008439253084361553, -0.016623344272375107, -0.04453052952885628, 0.0721636489033699, -0.02644236385822296, 0.015366435050964355, -0.004056606441736221, -0.023285912349820137, -0.015810605138540268, -0.029409805312752724, -0.02175493910908699, 0.08452484011650085, 0.022340867668390274, -0.01816376857459545, 0.014572597108781338, -0.07254166901111603, 0.011293290182948112, 0.045248761773109436, 0.029315302148461342, -0.026272255927324295, -0.029561012983322144, 0.01166185736656189, 0.0015356984222307801, -0.017804650589823723, -0.03725368157029152, 0.00688937958329916, 0.0017731409752741456, -0.02634785883128643, -0.044190313667058945, -0.031923625618219376, 0.08006422966718674, 0.031923625618219376, -0.01568775065243244, -0.07405374199151993, -0.02326701208949089, -0.001319519360549748, -0.035514798015356064, 0.03942728415131569, 0.015404236502945423, 0.030052436515688896, -0.021074507385492325, -0.03725368157029152, 0.010499452240765095, -0.02598874270915985, -0.02988232858479023, 0.018305525183677673, 0.07254166901111603, 0.0009166938252747059, 0.06936631351709366, -0.029920130968093872, -0.03749939426779747, -0.03774510324001312, 0.004044793546199799, -0.014336335472762585, 0.015111272223293781, 0.08906105905771255, 0.03422953560948372, -0.047441266477108, 0.0011913476046174765, -0.00017852494784165174, -0.03513678163290024, -0.011142082512378693, -0.044190313667058945, 0.0017176195979118347, 0.06184375658631325, 0.00006039429354132153, 0.00439209770411253, -0.020129462704062462, -0.04275384545326233, -0.018844200298190117, -0.042829446494579315, 0.017133669927716255, 0.006615316029638052, 0.05768555775284767, 0.013495245017111301, 0.057723358273506165, 0.058781810104846954, -0.03538249060511589, -0.018088165670633316, -0.008916500955820084, -0.003888860810548067, -0.017029713839292526, 0.05900862067937851, 0.03188582509756088, -0.040258925408124924, 0.038633447140455246, 0.03972969949245453, -0.005726973991841078, -0.014081173576414585, -0.01882530003786087, 0.004349570255726576, -0.03617633134126663, -0.022832291200757027, -0.0797618106007576, 0.013807110488414764, 0.02903178706765175, 0.029050689190626144, 0.035911716520786285, 0.00600576214492321, 0.043283067643642426, 0.008401451632380486, 0.04437931999564171, 0.025572922080755234, -0.04264044016599655, -0.03942728415131569, -0.04332087188959122, 0.02649906650185585, -0.01098142471164465, -0.002110994653776288, -0.034947771579027176, -0.03593061864376068, -0.061805956065654755, 0.004330669529736042, -0.0014624574687331915, 0.0007613520137965679, 0.01410952489823103, 0.04245143011212349, -0.016831254586577415, -0.015735002234578133, 0.02115011028945446, -0.022473175078630447, 0.06690920144319534, 0.04199780896306038, 0.05674051120877266, -0.019808147102594376, -0.03492886945605278, 0.014364686794579029, -0.05541744828224182, -0.027878832072019577, -0.04725226014852524, -0.03976750001311302, 0.06898830085992813, -0.03300097584724426, -0.03385151922702789, 0.058025773614645004, -0.015782253816723824, -0.008519582450389862, 0.001428199582733214, -0.011709109880030155, 0.01857013814151287, 0.010546703822910786, 0.013344038277864456, 0.02734960801899433, -0.04596699774265289, 0.022832291200757027, 0.005018190015107393, -0.03653544560074806, -0.021036705002188683, 0.05386757478117943, -0.0277654267847538, 0.014525344595313072, -0.03738598898053169, -0.031980328261852264, -0.050956837832927704, -0.01822047121822834, -0.016245326027274132, -0.03782070800662041, -0.008311672136187553, -0.06792984902858734, -0.02746301330626011, 0.015111272223293781, -0.02205735445022583, -0.02659357152879238, -0.024797985330224037, 0.08354199677705765, -0.011236587539315224, -0.05791236832737923, 0.03390822187066078, 0.09117795526981354, 0.01031989324837923, -0.04819730296730995, 0.027330705896019936, -0.007725744508206844, 0.023437120020389557, -0.009355947375297546, -0.006218397058546543, -0.05662710592150688, 0.05507723242044449, 0.056702710688114166, -0.09873832017183304, 0.0484619177877903, -0.01619807444512844, -0.007673766929656267, 0.008448704145848751, 0.017247075214982033, 0.031016383320093155, 0.024212056770920753, -0.03755609691143036, -0.028408057987689972, -0.01080186665058136, 0.05571986362338066, 0.03517458215355873, 0.013967767357826233, 0.056249089539051056, -0.056816115975379944, 0.013287335634231567, -0.007631239946931601, -0.06517031788825989, -0.06879928708076477, 0.02341821976006031, 0.04574018716812134, -0.021433625370264053, 0.009544956497848034, 0.028256850317120552, -0.03819872438907623, -0.06263759732246399, 0.03398382291197777, -0.006648392882198095, 0.031470004469156265, 0.007829699665307999, 0.0413929782807827, 0.03912486881017685, -0.01958133652806282, 0.08361759781837463, -0.023437120020389557, 0.03211263567209244, -0.0011683121556416154, -0.012455695308744907, 0.006053014192730188, 0.11060808598995209, -0.00936539750546217, -0.017133669927716255, 0.011831965297460556, -0.02054528146982193, -0.06365824490785599, -0.0005850420566275716, 0.0011393701424822211, 0.05209089070558548, -0.03317108750343323, 0.0077021182514727116, 0.016188623383641243, 0.030146941542625427, 0.012701407074928284, -0.007309924345463514, -0.02009166032075882, -0.022586580365896225, 0.009611109271645546, -0.06021827831864357, -0.01012143399566412, -0.0030383202247321606, -0.008472329936921597, 0.013712605461478233, -0.01430798415094614, -0.05330054834485054, -0.013315686956048012, -0.007262672297656536, 0.016746200621128082, 0.015668848529458046, -0.03653544560074806, -0.02734960801899433, 0.029561012983322144, 0.009837920777499676, -0.0021157199516892433, -0.01816376857459545, 0.0029839801136404276, -0.008335298858582973, 0.0071823433972895145, 0.03139439970254898, -0.04169539362192154, -0.035458095371723175, 0.012682505883276463, -0.055946674197912216, -0.018003109842538834, -0.10455980151891708, 0.04052353650331497, -0.0055852169170975685, 0.014525344595313072, -0.00802343338727951, 0.016850154846906662, 0.009549681097269058, 0.08157630264759064, 0.11030567437410355, 0.025251606479287148, -0.047819286584854126, -0.029409805312752724, -0.03354910388588905, -0.010017478838562965, -0.037121374160051346, -0.031715717166662216, 0.0011830783914774656, -0.05571986362338066, 0.0021535216365009546, 0.023796238005161285, 0.014185127802193165, 0.03946508839726448, -0.05545525252819061, 0.04158198833465576, 0.002972166985273361, 0.012058776803314686, -0.013854362070560455, 0.002719367388635874, -0.017643993720412254, 0.007574537303298712, 0.015545993112027645, 0.018607938662171364, -0.0023472560569643974, -0.027236202731728554, -0.05424559488892555, -0.012058776803314686, 0.017643993720412254, -0.058781810104846954, 0.028748273849487305, -0.01736048050224781, 0.06025607883930206, -0.028332455083727837, -0.015253028832376003, 0.022435372695326805, -0.023739535361528397, 0.05016299709677696, 0.002527995966374874, 0.009800118394196033, 0.010953073389828205, 0.045097555965185165, -0.006497185677289963, 0.09367287904024124, 0.015706650912761688, -0.016283128410577774, -0.04899114370346069, -0.002639038721099496, -0.06010487303137779, -0.030676167458295822, 0.03271746262907982, -0.021679336205124855, 0.012654154561460018, 0.0055143386125564575, -0.009303969331085682, 0.009932424873113632, -0.002431128639727831, 0.012531299144029617, 0.022038454189896584, 0.07556581497192383, 0.056097883731126785, -0.02417425625026226, -0.0079525550827384, -0.01471435371786356, -0.04940696060657501, 0.014260731637477875, -0.00566554581746459, 0.0963946059346199, 0.030506057664752007, 0.008075411431491375, -0.009686713106930256, 0.043585482984781265, -0.05987806245684624, -0.03266075998544693, -0.023210309445858, 0.02407975122332573, -0.03375701233744621, 0.0013561397790908813, -0.01973254419863224, 0.011728011071681976, -0.09064873307943344, 0.0041794623248279095, -0.0055521405301988125, 0.027652021497488022, -0.02649906650185585, -0.02181164361536503, -0.09382408857345581, -0.0234749224036932, 0.0008186454069800675, 0.015508191660046577, 0.01625477708876133, -0.003813257208094001, -0.05643809959292412, 0.10380376130342484, -0.005816753022372723, 0.020923299714922905, 0.07738029956817627, -0.06517031788825989, -0.03404052555561066, -0.02075319178402424, -0.010168686509132385, 0.046307213604450226, -0.02821904979646206, -0.005509613547474146, 0.03946508839726448, 0.03356800600886345, -0.02604544535279274, -0.015215227380394936, -0.0117374612018466, 0.01882530003786087, 0.006757073104381561, 0.028653770685195923, -0.06630437076091766, 0.009020456112921238, 0.051410458981990814, -0.02755751833319664, 0.08271035552024841, -0.031205391511321068, -0.029617715626955032, 0.08187871426343918, 0.031224293634295464, -0.058630604296922684, -0.0012273774482309818, -0.018560687080025673, -0.01314557809382677, -0.009029906243085861, 0.03630863502621651, -0.008236068300902843, 0.046874240040779114, -0.004543304909020662, -0.0007040586788207293, 0.028124544769525528, -0.009020456112921238, 0.01254074927419424, -0.026234453544020653, -0.026933787390589714, -0.03254735469818115, -0.02579973265528679, 0.017785750329494476, 0.013637001626193523, 0.01496951561421156, 0.026480166241526604, 0.05167507007718086, -0.03300097584724426, 0.0038794104475528, 0.01045219972729683, 0.0038864982780069113, 0.013391289860010147, -0.005339505150914192, 0.01559324562549591, 0.006397956050932407, -0.045702386647462845, -0.009426825679838657, 0.0249869953840971, 0.01595236174762249, -0.018485084176063538, -0.000892477051820606, 0.045551177114248276, -0.034758761525154114, 0.04785708710551262, -0.03676225617527962, -0.03305768221616745, -0.029145194217562675, 0.05073002353310585, -0.05265791714191437, 0.007735194638371468, -0.03916267305612564, -0.030203644186258316, -0.0199404526501894, -0.04702544957399368, -0.03957849368453026, 0.004009354393929243, 0.005485987290740013, -0.030676167458295822, 0.023739535361528397, 0.016925759613513947, -0.03307658061385155, -0.01797475852072239, -0.003638423979282379, -0.03266075998544693, -0.022397570312023163, -0.006275100167840719, -0.01669894903898239, 0.02251097559928894, 0.020375173538923264, -0.009809568524360657, -0.01816376857459545, -0.03770730271935463, -0.10667669773101807, 0.04097715765237808, 0.0016242964193224907, 0.07186123728752136, -0.023909643292427063, 0.0013124315300956368, 0.016632795333862305, -0.0076690418645739555, -0.013334587216377258, -0.01726597547531128, -0.010187586769461632, -0.0003709302400238812, 0.034191735088825226, -0.024287661537528038, 0.03124319389462471, -0.004181825090199709, -0.026877084746956825, -0.04574018716812134, 0.007314649876207113, 0.00018221652135252953, -0.011983172968029976, 0.016632795333862305, 0.0026862910017371178, -0.071672223508358, 0.04487074539065361 ]
730,227
mmengine.fileio.backends.petrel_backend
join_path
Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and any members of \*filepaths. Args: filepath (str or Path): Path to be concatenated. Returns: str: The result after concatenation. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.join_path(filepath, 'another/path') 'petrel://path/of/file/another/path' >>> backend.join_path(filepath, '/another/path') 'petrel://path/of/file/another/path'
def join_path( self, filepath: Union[str, Path], *filepaths: Union[str, Path], ) -> str: r"""Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and any members of \*filepaths. Args: filepath (str or Path): Path to be concatenated. Returns: str: The result after concatenation. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.join_path(filepath, 'another/path') 'petrel://path/of/file/another/path' >>> backend.join_path(filepath, '/another/path') 'petrel://path/of/file/another/path' """ filepath = self._format_path(self._map_path(filepath)) if filepath.endswith('/'): filepath = filepath[:-1] formatted_paths = [filepath] for path in filepaths: formatted_path = self._format_path(self._map_path(path)) formatted_paths.append(formatted_path.lstrip('/')) return '/'.join(formatted_paths)
(self, filepath: Union[str, pathlib.Path], *filepaths: Union[str, pathlib.Path]) -> str
[ -0.08099471032619476, -0.0333310030400753, -0.03340565413236618, 0.07547064870595932, -0.03394686058163643, -0.046805236488580704, -0.008715329691767693, 0.016002986580133438, 0.007940840907394886, -0.007441622205078602, 0.020136702805757523, -0.008113468065857887, -0.014388691633939743, 0.051620129495859146, -0.0112627437338233, 0.0050715007819235325, 0.04568549618124962, -0.05068701133131981, 0.03025171160697937, 0.0033289012499153614, 0.024335738271474838, 0.0020610261708498, 0.028497448191046715, 0.008426062762737274, 0.010572236031293869, 0.04408053308725357, -0.03478666767477989, 0.03840716928243637, -0.03213661164045334, 0.00015731799066998065, 0.042363591492176056, -0.01624559797346592, 0.0021706675179302692, -0.0333310030400753, -0.0043623303063213825, 0.043856583535671234, -0.03017706237733364, 0.05337439477443695, 0.07039447873830795, 0.005790002178400755, 0.0003190099960193038, 0.024242425337433815, 0.03260317072272301, -0.04755173251032829, -0.011915926821529865, 0.014099424704909325, -0.03627965971827507, 0.04848485067486763, 0.010301630944013596, -0.01713206060230732, 0.003494529752060771, 0.03538386523723602, -0.05273987352848053, -0.020864535123109818, 0.006895747967064381, 0.022469500079751015, 0.03667156770825386, -0.005034175701439381, -0.03982551023364067, -0.05557655543088913, 0.02666853554546833, -0.07285791635513306, 0.02741502970457077, 0.013978119008243084, 0.04262486472725868, 0.029523877426981926, -0.03213661164045334, 0.012111881747841835, 0.035906411707401276, -0.016544196754693985, -0.01563907042145729, 0.016058973968029022, -0.03603704646229744, -0.08427929133176804, -0.0014008445432409644, 0.02765764109790325, 0.03478666767477989, 0.013567547313869, 0.0329764187335968, -0.01347423531115055, -0.04460307955741882, -0.06274290382862091, -0.04191569611430168, -0.02422376349568367, 0.06692327558994293, -0.0014066766016185284, -0.04415518045425415, -0.04549887031316757, -0.07595586776733398, 0.011990576051175594, 0.004005412571132183, 0.017794575542211533, -0.005295448936522007, 0.0006934239063411951, 0.021872304379940033, -0.027303054928779602, -0.0014043437549844384, -0.014323373325169086, 0.0340588353574276, 0.009475821629166603, -0.020435301586985588, -0.06326545029878616, 0.007213008124381304, -0.04687988758087158, 0.03790328651666641, -0.04605874419212341, -0.0075769247487187386, 0.02894534543156624, 0.03340565413236618, -0.005314111243933439, -0.02788158878684044, -0.047327782958745956, 0.04124385118484497, -0.045162949711084366, -0.01699209213256836, 0.0292626041918993, -0.0329764187335968, 0.005724683869630098, 0.06143654137849808, -0.023682555183768272, 0.0016049642581492662, -0.016254929825663567, -0.03213661164045334, 0.017971867695450783, 0.03185667470097542, -0.034768007695674896, -0.0031072855927050114, 0.016124293208122253, -0.03256584703922272, -0.03655959293246269, -0.05818928778171539, 0.09129634499549866, 0.015191174112260342, 0.006928407121449709, 0.013586209155619144, 0.03124081715941429, -0.0606527216732502, -0.006821098271757364, 0.05344904214143753, 0.08644412457942963, 0.0493059977889061, -0.02737770602107048, 0.0034595378674566746, 0.024914272129535675, 0.08465253561735153, -0.008929946459829807, 0.008608020842075348, -0.0274896789342165, -0.0070077222771942616, 0.013520890846848488, -0.02241351269185543, 0.00883196946233511, 0.0013366927159950137, 0.0037091472186148167, 0.057293493300676346, -0.017859892919659615, -0.009219213388860226, 0.056696295738220215, -0.014640633948147297, -0.055837828665971756, 0.02823617495596409, -0.01645088382065296, 0.0130356689915061, -0.011197425425052643, 0.019726131111383438, 0.019091609865427017, 0.017001423984766006, 0.06890149414539337, 0.03150209039449692, 0.02454102411866188, 0.040833279490470886, -0.040236081928014755, -0.0001876443566288799, 0.0068397605791687965, -0.03064362145960331, -0.03741806373000145, -0.03575711324810982, 0.05535260587930679, 0.031726039946079254, -0.01787855662405491, 0.00639186380431056, -0.04213964566588402, 0.03150209039449692, 0.008654676377773285, 0.04654396325349808, 0.008650011382997036, -0.008719994686543941, -0.009629786014556885, 0.02284274809062481, -0.006629808805882931, -0.010544242337346077, 0.015648402273654938, 0.029449228197336197, 0.02599668875336647, 0.011104113422334194, -0.08136795461177826, 0.05654699727892876, -0.07117830216884613, -0.048186253756284714, 0.06856556981801987, -0.02127510868012905, -0.01069354172796011, 0.03642895817756653, -0.03142743930220604, 0.03766067326068878, -0.005122822243720293, 0.008374741300940514, 0.033816225826740265, 0.015629740431904793, 0.006690461654216051, 0.027676302939653397, -0.00978841632604599, -0.010404274798929691, -0.06263093650341034, -0.010264306329190731, 0.05617374926805496, -0.027247069403529167, 0.027974901720881462, -0.06710990518331528, 0.05221732705831528, 0.009881728328764439, -0.0014381692744791508, 0.02177899330854416, -0.006531831342726946, 0.017934542149305344, 0.016469545662403107, -0.03028903529047966, 0.06938671320676804, 0.04490167647600174, -0.02379452809691429, 0.020341988652944565, -0.00861735176295042, 0.003951758146286011, -0.016002986580133438, 0.023029372096061707, -0.04919402301311493, 0.00518814055249095, 0.0006001120200380683, 0.030662283301353455, 0.013390254229307175, 0.024447713047266006, -0.008090140298008919, 0.008169454522430897, -0.0745002031326294, 0.0007371638203039765, -0.0006065272027626634, 0.0219842791557312, -0.055240631103515625, 0.02000606618821621, -0.012186530977487564, 0.03174469992518425, 0.05076166242361069, 0.016366902738809586, 0.045946769416332245, 0.003622833639383316, 0.027228405699133873, -0.019352883100509644, -0.005911307409405708, -0.02493293397128582, 0.022320201620459557, 0.03570112586021423, 0.0329950787127018, -0.009485152550041676, -0.06681130826473236, -0.0205659382045269, -0.02993445098400116, -0.03596239909529686, -0.04549887031316757, -0.0039260974153876305, 0.006933072581887245, -0.03292043134570122, 0.027153756469488144, 0.02060326188802719, 0.006807101424783468, -0.0015688060084357858, 0.06606481224298477, -0.06281755864620209, 0.0521426759660244, -0.003270581364631653, 0.013240955770015717, -0.030139736831188202, 0.01957683265209198, -0.00409639161080122, -0.05188140273094177, 0.006363870110362768, 0.006013950332999229, 0.008090140298008919, 0.013894138857722282, -0.04034805670380592, 0.009741759859025478, 0.0826369971036911, 0.0019735463429242373, 0.015741713345050812, -0.001369351870380342, -0.019819442182779312, -0.04210231825709343, 0.09226678311824799, -0.027620315551757812, 0.06975995749235153, -0.07636643946170807, 0.011607998050749302, 0.03308839350938797, 0.06781907379627228, 0.0005840740632265806, -0.021797655150294304, -0.10092613101005554, 0.001357687870040536, -0.0021799986716359854, 0.019390208646655083, 0.01727202907204628, -0.04277416691184044, -0.06046609580516815, -0.061735138297080994, 0.020230015739798546, 0.0698719322681427, 0.031147504225373268, -0.0019513847073540092, 0.0029113306663930416, -0.03575711324810982, -0.04781300574541092, -0.02894534543156624, 0.02213357761502266, 0.004656262695789337, 0.025026245042681694, -0.02918795496225357, 0.013819489628076553, 0.0007027550600469112, -0.003711479948833585, -0.004614272154867649, -0.0283668115735054, 0.08995264768600464, -0.0017822568770498037, -0.0014638301217928529, -0.008929946459829807, 0.018606388941407204, 0.027228405699133873, 0.027862926945090294, -0.0018883991288021207, 0.011626659892499447, 0.0801735669374466, 0.034600045531988144, -0.013614202849566936, -0.019688805565238, -0.005365433171391487, -0.02457834966480732, 0.020304664969444275, 0.02088319882750511, 0.020621925592422485, 0.007115030661225319, -0.03753003850579262, 0.04557352140545845, -0.024951595813035965, -0.018932979553937912, -0.01069354172796011, -0.005943966563791037, 0.034991953521966934, -0.07476148009300232, 0.06121259182691574, 0.014463340863585472, 0.06572888791561127, 0.02898266911506653, -0.019707469269633293, 0.035906411707401276, -0.008416731841862202, 0.0365222692489624, 0.06442251801490784, 0.0376046858727932, 0.02808687463402748, -0.06483308970928192, 0.006541162729263306, -0.0005694940336979926, -0.021853642538189888, 0.07748618721961975, -0.008668673224747181, 0.03060629591345787, 0.06752047687768936, -0.009251873008906841, -0.0031935989391058683, 0.02312268316745758, 0.012102550826966763, -0.03627965971827507, 0.00204819580540061, 0.0407959520816803, 0.024746309965848923, -0.014164743013679981, 0.09084844589233398, 0.0822637528181076, -0.07255931943655014, -0.0082441046833992, 0.011001470498740673, 0.005197471473366022, 0.003646161640062928, -0.003825786989182234, -0.053113121539354324, -0.05983157828450203, -0.04997784271836281, 0.06427322328090668, -0.011859939433634281, 0.02599668875336647, -0.03265915811061859, 0.008771316148340702, -0.04639466479420662, -0.007264329586178064, 0.021013835445046425, -0.03797793388366699, 0.07296989113092422, 0.014612640254199505, 0.041729070246219635, -0.014603309333324432, -0.02844146080315113, -0.04478970170021057, -0.0010754193644970655, -0.004973523318767548, 0.001259710406884551, 0.04684256389737129, 0.0032075957860797644, -0.09756690263748169, -0.06688595563173294, 0.04001213237643242, 0.028460122644901276, -0.07666503638029099, -0.017477314919233322, -0.0613618902862072, 0.022581474855542183, -0.022189565002918243, -0.04068397730588913, 0.016086967661976814, 0.02521286904811859, 0.04120652377605438, -0.0007348310318775475, -0.007912847213447094, 0.000790818186942488, 0.0019887094385921955, -0.01741199567914009, 0.04994051903486252, 0.013250286690890789, 0.03844449296593666, -0.04915669932961464, 0.03497329354286194, -0.05606177821755409, 0.017439989373087883, -0.04195301979780197, -0.06005552411079407, -0.031800687313079834, 0.014314042404294014, -0.058674510568380356, -0.05479273572564125, -0.031128842383623123, -0.007917513139545918, 0.01047892402857542, -0.027265731245279312, -0.035626474767923355, 0.07793407887220383, 0.016544196754693985, -0.0076749022118747234, 0.005925304256379604, 0.025511467829346657, -0.02280542254447937, 0.004824223928153515, 0.0012130544055253267, 0.008552033454179764, 0.006909744814038277, 0.14414818584918976, -0.00039949148776941, -0.03586908429861069, -0.008808641694486141, -0.015060537494719028, 0.0054960697889328, -0.058039989322423935, -0.0028880026657134295, 0.05632305145263672, -0.062332335859537125, -0.05326241999864578, 0.010469593107700348, 0.023775866255164146, 0.05490471050143242, 0.009713766165077686, 0.038145896047353745, 0.019987404346466064, -0.05326241999864578, -0.06569156050682068, -0.057368144392967224, -0.027303054928779602, 0.0052721211686730385, 0.05800266191363335, 0.03926564007997513, 0.029169293120503426, 0.06696060299873352, -0.003156274324283004, -0.0397135354578495, 0.051582805812358856, 0.026761846616864204, -0.03790328651666641, -0.012989013455808163, -0.02812420018017292, 0.046805236488580704, -0.06042877212166786, 0.008822638541460037, -0.04411785677075386, 0.03336832672357559, 0.033573612570762634, -0.06643805652856827, -0.037007492035627365, 0.0418410450220108, -0.010730866342782974, 0.0737537071108818, -0.0029346586670726538, 0.05210535228252411, -0.057480115443468094, -0.030456997454166412, 0.005048172548413277, -0.0036648239474743605, -0.026612548157572746, -0.0064245229586958885, -0.0026920477394014597, -0.02209625206887722, 0.012867707759141922, -0.00363916321657598, 0.02461567334830761, 0.0023561250418424606, -0.03934028744697571, 0.03189399838447571, -0.06472112238407135, 0.022712111473083496, -0.03432010859251022, -0.01175729651004076, 0.01720670983195305, 0.010217650793492794, -0.053150445222854614, 0.0514335073530674, -0.024037139490246773, 0.06501971930265427, -0.04441645368933678, 0.027247069403529167, 0.033144380897283554, 0.01989409327507019, -0.05344904214143753, 0.004297011997550726, 0.010964145883917809, 0.011887933127582073, -0.014071431010961533, 0.050873637199401855, -0.004621270578354597, -0.03599972277879715, 0.006550493650138378, -0.07248466461896896, 0.0041757067665457726, -0.012121212668716908, 0.08853431046009064, 0.0058273267932236195, -0.004544288385659456, 0.021200459450483322, 0.028310824185609818, 0.07192479819059372, 0.03021438606083393, -0.017048079520463943, 0.0008158957352861762, -0.04329671338200569, -0.03717545419931412, -0.010497585870325565, -0.007241001818329096, 0.026724521070718765, -0.006648471113294363, -0.022861409932374954, 0.022936059162020683, 0.002587071852758527, 0.00787552259862423, 0.03060629591345787, 0.008939278312027454, -0.08495113253593445, -0.0007220006664283574, 0.021555043756961823, -0.05692024528980255, -0.061585839837789536, -0.0052861180156469345, -0.03551449999213219, -0.003954090643674135, -0.02603401429951191, 0.03836984559893608, 0.04471505060791969, -0.06438519805669785, 0.04445377737283707, -0.015863019973039627, -0.005253458861261606, 0.02276809886097908, 0.015107193030416965, 0.040273405611515045, 0.022226888686418533, -0.02894534543156624, -0.04366995766758919, -0.009461824782192707, -0.039452262222766876, 0.0343947596848011, 0.0649077445268631, 0.0005394592881202698, -0.009583129547536373, -0.021797655150294304, 0.03840716928243637, 0.05848788470029831, -0.008024821989238262, -0.0017274362035095692, -0.02465299889445305, -0.0029859801288694143, 0.055165983736515045, -0.04833555221557617, -0.011552010662853718, -0.005780670791864395, 0.018223809078335762, -0.019371546804904938, 0.017328016459941864, 0.023215996101498604, 0.07868057489395142, 0.015760377049446106, 0.030699608847498894, -0.029710501432418823, 0.009928383864462376, -0.041617099195718765, 0.023813191801309586, 0.014985887333750725, 0.012849045917391777, -0.03284578025341034, -0.03904169052839279, 0.0015956331044435501, 0.030904894694685936, -0.03361093997955322, 0.012326499447226524, 0.003060629591345787, -0.0336855873465538, -0.017467983067035675, 0.00009455117833567783, -0.001367019023746252, -0.04639466479420662, -0.0032192599028348923, 0.002855343511328101, -0.007502275053411722, -0.04624536633491516, -0.0010036858730018139, -0.03096088208258152, 0.0001017682661768049, -0.06431054323911667, -0.0006403527804650366, -0.03822054713964462, -0.07580657303333282, -0.05359834432601929, 0.02146173268556595, -0.0015186507953330874, -0.05479273572564125, -0.060876671224832535, 0.007623580284416676, -0.022936059162020683, -0.01787855662405491, 0.00562204048037529, -0.042400918900966644, -0.03784729912877083, 0.0006922574830241501, 0.036727555096149445, 0.05076166242361069, -0.05333707109093666, 0.02780693955719471, 0.07117830216884613, 0.019782118499279022, -0.01812116615474224, 0.04352065920829773, 0.016590852290391922, -0.060279473662376404, -0.0057153524830937386, 0.014509997330605984, -0.03822054713964462, 0.03896703943610191, 0.008990599773824215, -0.005402757786214352, -0.04911937192082405, -0.03295775502920151, -0.0028506778180599213, 0.09532741457223892, 0.0057013556361198425, -0.013455572538077831, -0.0000597779217059724, -0.039601560682058334, -0.06864021718502045, 0.006251895800232887, -0.0066391401924192905, 0.022786760702729225, -0.021443068981170654, 0.020062053576111794, -0.03575711324810982, 0.021853642538189888, 0.04587211832404137, 0.0188023429363966, 0.02351459302008152, 0.008747988380491734, -0.0329950787127018, -0.024205101653933525, -0.004220029804855585, -0.0058553204871714115, 0.04549887031316757, 0.01985676772892475, -0.05180675536394119, 0.010805515572428703, -0.021611031144857407, 0.006097931414842606, 0.07539600133895874, -0.05053771287202835, -0.025268856436014175, 0.010348287411034107, 0.007828867062926292, 0.040833279490470886, 0.008211445063352585, 0.01035761833190918, -0.0023654561955481768, -0.019520845264196396, 0.04180372133851051, 0.056621648371219635, -0.020416639745235443, 0.03570112586021423, -0.0748361274600029, 0.019371546804904938, -0.03096088208258152, 0.015741713345050812, 0.0010369282681494951, 0.010236312635242939, -0.013464904390275478, 0.06427322328090668, -0.05647234991192818, 0.003538853023201227, 0.0028926681261509657, 0.04277416691184044, -0.003300907788798213, -0.014351367019116879, 0.04900739714503288, -0.07360441237688065, 0.015657734125852585, 0.04299811273813248, -0.009611123241484165, 0.004021741915494204, -0.01297968253493309, -0.0007424126379191875, 0.002381785772740841, 0.0400867834687233, -0.008696666918694973, -0.037082139402627945, -0.04725313559174538, 0.008580027148127556, -0.046767912805080414, 0.031259480863809586, -0.023365294560790062, 0.029131967574357986, -0.019446196034550667, -0.04908204823732376, 0.026407262310385704, -0.02446637488901615, 0.033536288887262344, -0.024671660736203194, -0.06610213220119476, 0.024727648124098778, -0.03028903529047966, -0.020118040964007378, 0.011785290203988552, -0.04038538038730621, -0.029057318344712257, -0.019707469269633293, 0.04038538038730621, -0.007138358894735575, -0.0003391303471289575, 0.08360744267702103, 0.05647234991192818, -0.0649077445268631, 0.012765064835548401 ]
730,228
mmengine.fileio.backends.petrel_backend
list_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: Petrel has no concept of directories but it simulates the directory hierarchy in the filesystem through public prefixes. In addition, if the returned path ends with '/', it means the path is a public prefix which is a logical directory. Note: :meth:`list_dir_or_file` returns the path relative to ``dir_path``. In addition, the returned path of directory will not contains the suffix '/' which is consistent with other backends. Args: dir_path (str | Path): Path of the directory. list_dir (bool): List the directories. Defaults to True. list_file (bool): List the path of files. Defaults to True. suffix (str or tuple[str], optional): File suffix that we are interested in. Defaults to None. recursive (bool): If set to True, recursively scan the directory. Defaults to False. Yields: Iterable[str]: A relative path to ``dir_path``. Examples: >>> backend = PetrelBackend() >>> dir_path = 'petrel://path/of/dir' >>> # list those files and directories in current directory >>> for file_path in backend.list_dir_or_file(dir_path): ... print(file_path) >>> # only list files >>> for file_path in backend.list_dir_or_file(dir_path, list_dir=False): ... print(file_path) >>> # only list directories >>> for file_path in backend.list_dir_or_file(dir_path, list_file=False): ... print(file_path) >>> # only list files ending with specified suffixes >>> for file_path in backend.list_dir_or_file(dir_path, suffix='.txt'): ... print(file_path) >>> # list all files and directory recursively >>> for file_path in backend.list_dir_or_file(dir_path, recursive=True): ... print(file_path)
def list_dir_or_file(self, dir_path: Union[str, Path], list_dir: bool = True, list_file: bool = True, suffix: Optional[Union[str, Tuple[str]]] = None, recursive: bool = False) -> Iterator[str]: """Scan a directory to find the interested directories or files in arbitrary order. Note: Petrel has no concept of directories but it simulates the directory hierarchy in the filesystem through public prefixes. In addition, if the returned path ends with '/', it means the path is a public prefix which is a logical directory. Note: :meth:`list_dir_or_file` returns the path relative to ``dir_path``. In addition, the returned path of directory will not contains the suffix '/' which is consistent with other backends. Args: dir_path (str | Path): Path of the directory. list_dir (bool): List the directories. Defaults to True. list_file (bool): List the path of files. Defaults to True. suffix (str or tuple[str], optional): File suffix that we are interested in. Defaults to None. recursive (bool): If set to True, recursively scan the directory. Defaults to False. Yields: Iterable[str]: A relative path to ``dir_path``. Examples: >>> backend = PetrelBackend() >>> dir_path = 'petrel://path/of/dir' >>> # list those files and directories in current directory >>> for file_path in backend.list_dir_or_file(dir_path): ... print(file_path) >>> # only list files >>> for file_path in backend.list_dir_or_file(dir_path, list_dir=False): ... print(file_path) >>> # only list directories >>> for file_path in backend.list_dir_or_file(dir_path, list_file=False): ... print(file_path) >>> # only list files ending with specified suffixes >>> for file_path in backend.list_dir_or_file(dir_path, suffix='.txt'): ... print(file_path) >>> # list all files and directory recursively >>> for file_path in backend.list_dir_or_file(dir_path, recursive=True): ... print(file_path) """ # noqa: E501 if not has_method(self._client, 'list'): raise NotImplementedError( 'Current version of Petrel Python SDK has not supported ' 'the `list` method, please use a higher version or dev' ' branch instead.') dir_path = self._map_path(dir_path) dir_path = self._format_path(dir_path) dir_path = self._replace_prefix(dir_path) if list_dir and suffix is not None: raise TypeError( '`list_dir` should be False when `suffix` is not None') if (suffix is not None) and not isinstance(suffix, (str, tuple)): raise TypeError('`suffix` must be a string or tuple of strings') # Petrel's simulated directory hierarchy assumes that directory paths # should end with `/` if not dir_path.endswith('/'): dir_path += '/' root = dir_path def _list_dir_or_file(dir_path, list_dir, list_file, suffix, recursive): for path in self._client.list(dir_path): # the `self.isdir` is not used here to determine whether path # is a directory, because `self.isdir` relies on # `self._client.list` if path.endswith('/'): # a directory path next_dir_path = self.join_path(dir_path, path) if list_dir: # get the relative path and exclude the last # character '/' rel_dir = next_dir_path[len(root):-1] yield rel_dir if recursive: yield from _list_dir_or_file(next_dir_path, list_dir, list_file, suffix, recursive) else: # a file path absolute_path = self.join_path(dir_path, path) rel_path = absolute_path[len(root):] if (suffix is None or rel_path.endswith(suffix)) and list_file: yield rel_path return _list_dir_or_file(dir_path, list_dir, list_file, suffix, recursive)
(self, dir_path: Union[str, pathlib.Path], list_dir: bool = True, list_file: bool = True, suffix: Union[str, Tuple[str], NoneType] = None, recursive: bool = False) -> Iterator[str]
[ 0.030386341735720634, -0.039927173405885696, -0.05235430598258972, 0.023330938071012497, 0.03706091269850731, 0.03834371641278267, -0.016225425526499748, 0.006113347131758928, 0.01080358773469925, -0.05343666672706604, 0.04026791453361511, -0.007561509031802416, -0.022449012845754623, -0.007526432164013386, 0.015293389558792114, 0.012457197532057762, 0.011184418573975563, 0.036860477179288864, -0.03742170333862305, -0.00914496649056673, -0.0024390751495957375, 0.04024787247180939, 0.07921294122934341, 0.03591841831803322, -0.004108970984816551, -0.013569626025855541, -0.01564415544271469, 0.003024102421477437, -0.016255490481853485, 0.018941354006528854, 0.02421286329627037, -0.013399254530668259, 0.006915097590535879, 0.011996190994977951, -0.022489100694656372, 0.04914730414748192, -0.025315269827842712, 0.036178987473249435, -0.06353872269392014, -0.012296847067773342, -0.0015082929749041796, -0.0398469977080822, 0.027560170739889145, 0.014461574144661427, -0.0074412464164197445, 0.016656365245580673, -0.016065074130892754, -0.014221048913896084, -0.007651705760508776, -0.03455544263124466, 0.035136714577674866, 0.0390252023935318, -0.042332421988248825, -0.06895054131746292, 0.04181128740310669, -0.0016197864897549152, -0.013138685375452042, 0.023250762373209, 0.04080909863114357, 0.02357146330177784, 0.040007349103689194, -0.021086037158966064, -0.060852859169244766, -0.010026891715824604, -0.020945729687809944, -0.00989159569144249, -0.06377924978733063, -0.07271876186132431, -0.019081661477684975, 0.03411448001861572, -0.041330236941576004, 0.012096409685909748, 0.044617410749197006, 0.02252918668091297, -0.0017889057053253055, -0.011224506422877312, 0.02804122120141983, 0.0027610280085355043, -0.01411080826073885, -0.02625732682645321, -0.02972489781677723, 0.00031459308229386806, 0.012617547996342182, -0.006163456477224827, 0.06369907408952713, 0.006218576803803444, 0.02220848761498928, -0.036359380930662155, 0.017037196084856987, 0.025235095992684364, -0.016806693747639656, -0.04181128740310669, 0.0207853801548481, 0.0002768544654827565, -0.051993515342473984, -0.005988073535263538, 0.007025338243693113, 0.013760042376816273, -0.010933871380984783, -0.0038935006596148014, -0.045258812606334686, 0.034896187484264374, 0.016987087205052376, 0.01573435217142105, 0.02671833336353302, -0.02511483244597912, -0.06838931143283844, 0.027119208127260208, 0.0596502348780632, -0.0020294308196753263, -0.08378291875123978, 0.03289181366562843, 0.10342580825090408, -0.00716063380241394, -0.020645074546337128, 0.013128663413226604, -0.014080742374062538, -0.048586077988147736, 0.010973959229886532, -0.005015951115638018, 0.030767172574996948, -0.0017876529600471258, -0.004494813270866871, -0.018119560554623604, -0.013539561070501804, -0.028462141752243042, 0.03940603509545326, -0.014832383021712303, -0.02371176891028881, 0.052234042435884476, -0.01587465964257717, 0.06598406285047531, 0.026137065142393112, 0.0174581166356802, 0.05271509289741516, 0.004730327520519495, -0.013820173218846321, 0.0012139002792537212, -0.020685162395238876, 0.04790458828210831, 0.053316403180360794, 0.0013304046588018537, 0.018390150740742683, 0.02467386983335018, -0.015443718060851097, -0.007245819550007582, -0.0059980954974889755, -0.01952262409031391, 0.009139955043792725, 0.03164909780025482, -0.055641479790210724, -0.05171290412545204, 0.04177119955420494, 0.044978201389312744, 0.0256760586053133, 0.027780653908848763, -0.06233609840273857, -0.0019880905747413635, -0.023791944608092308, 0.009746278636157513, -0.01596485637128353, -0.08073627203702927, -0.001890377257950604, -0.014351332560181618, -0.004835557192564011, 0.03090748004615307, -0.06265679746866226, 0.020544854924082756, 0.017668575048446655, 0.003064190037548542, 0.05752559378743172, -0.022008050233125687, 0.01764853112399578, -0.026297414675354958, -0.04409627616405487, 0.042973823845386505, 0.02854231558740139, 0.02206818014383316, -0.025515707209706306, -0.0207853801548481, 0.02335098199546337, -0.01955268904566765, 0.04521872475743294, -0.020825468003749847, -0.018039384856820107, 0.06209557130932808, 0.029985466971993446, -0.012146519497036934, 0.021126125007867813, 0.02954450435936451, -0.10735438764095306, 0.01796923205256462, 0.00016160283121280372, -0.017718685790896416, -0.026598071679472923, 0.015123018063604832, 0.02539544552564621, -0.024954482913017273, -0.0009276503114961088, -0.022669494152069092, 0.028602447360754013, 0.02335098199546337, 0.05580183118581772, -0.004339474253356457, -0.04377557337284088, 0.043655313551425934, -0.021867742761969566, 0.05900883302092552, -0.005096126347780228, -0.0195126011967659, 0.002533030230551958, -0.041009534150362015, 0.005512034520506859, -0.04766406491398811, 0.007897241972386837, -0.0023877129424363375, -0.037541963160037994, 0.013148707337677479, -0.06542283296585083, 0.014331289567053318, 0.0398469977080822, 0.0038534130435436964, -0.041610848158597946, -0.0547194667160511, 0.005827723536640406, -0.006003106478601694, -0.02056489884853363, 0.014942623674869537, -0.002414020476862788, -0.019592776894569397, -0.028782840818166733, -0.0298652034252882, 0.027099164202809334, 0.023872120305895805, -0.014010588638484478, -0.03942607715725899, 0.028782840818166733, 0.02543553337454796, -0.01754831336438656, 0.0068549662828445435, -0.005632296670228243, 0.01623544655740261, 0.007140589877963066, -0.0020244198385626078, -0.086428701877594, 0.014862448908388615, 0.06265679746866226, -0.0044797807931900024, 0.022509144619107246, 0.015604068525135517, -0.022288663312792778, 0.03251098096370697, -0.00018947618082165718, -0.003522691084071994, 0.02607693336904049, -0.008864353410899639, -0.03369356319308281, 0.04437688738107681, -0.010382668115198612, 0.041009534150362015, 0.011885950341820717, 0.0004346990608610213, -0.016806693747639656, -0.061253733932971954, 0.015303411521017551, -0.05580183118581772, 0.0019517611945047975, -0.0614541731774807, 0.006408992689102888, 0.060291633009910583, 0.08931499719619751, -0.028141440823674202, -0.00886936392635107, -0.004818018991500139, 0.0356578528881073, 0.03259115666151047, 0.005968030076473951, 0.021847698837518692, -0.033893998712301254, 0.023551419377326965, -0.04770415276288986, 0.004492308013141155, -0.028422053903341293, -0.021466867998242378, 0.014892514795064926, 0.028422053903341293, -0.05415824428200722, 0.08013495802879333, -0.05275518074631691, 0.01731780916452408, 0.06642502546310425, -0.03128831088542938, -0.005827723536640406, -0.028963234275579453, 0.021647261455655098, -0.009831464849412441, 0.03439509496092796, -0.0828208178281784, 0.03970669209957123, -0.08185871690511703, -0.0389450266957283, 0.01847032643854618, 0.12082379311323166, 0.01039269007742405, -0.03798292577266693, -0.03756200894713402, 0.032571110874414444, -0.04153067246079445, -0.013319078832864761, -0.015483805909752846, -0.025154920294880867, -0.020665118470788002, -0.0007610365282744169, 0.00016520444478373975, 0.006218576803803444, -0.03128831088542938, -0.00593796418979764, 0.041650936007499695, -0.028462141752243042, 0.0186507198959589, -0.04453723877668381, 0.11697538942098618, -0.0013354156399145722, 0.04193154722452164, 0.005872821900993586, 0.00800247211009264, 0.03577811270952225, 0.07103508710861206, 0.04610064998269081, 0.03383386880159378, 0.008724046871066093, -0.0316290557384491, -0.05343666672706604, 0.0013905359664931893, 0.016766605898737907, 0.029785029590129852, 0.008017504587769508, -0.010923849418759346, 0.0191017035394907, 0.006594397593289614, 0.012898160144686699, -0.03283168002963066, -0.0024052513763308525, 0.0011393625754863024, 0.031809449195861816, 0.0032521001994609833, 0.07756935805082321, 0.04746362566947937, 0.06662546098232269, 0.04245268553495407, 0.10535001009702682, 0.008648882620036602, -0.0035126691218465567, -0.042252250015735626, -0.00194925582036376, -0.03752192109823227, -0.04481784999370575, 0.08225959539413452, -0.014221048913896084, 0.030626866966485977, -0.012828007340431213, -0.012547394260764122, 0.010543018579483032, 0.02758021466434002, -0.0014594363747164607, -0.029704853892326355, 0.00020607492479030043, -0.025796320289373398, 0.02721942774951458, 0.02110608108341694, 0.00614341301843524, -0.04678213968873024, -0.00019057231838814914, -0.07736891508102417, 0.055641479790210724, -0.0026633148081600666, 0.01851041428744793, -0.020825468003749847, 0.045298900455236435, 0.08755114674568176, 0.005647329613566399, 0.043214350938797, 0.06522239744663239, 0.015062886290252209, 0.03916550800204277, -0.0024303060490638018, 0.06758756190538406, -0.004214200656861067, -0.0431341752409935, -0.06169469654560089, -0.004685229156166315, 0.01956271007657051, 0.03772236034274101, 0.0008149041677825153, -0.04802485182881355, -0.0796138197183609, 0.022990193217992783, -0.014782274141907692, -0.025375401601195335, -0.0356578528881073, 0.024814175441861153, -0.016375752165913582, -0.028141440823674202, 0.06141408532857895, -0.032531023025512695, -0.004472264088690281, 0.05403798073530197, 0.010833652690052986, -0.06558318436145782, 0.031308356672525406, -0.017608443275094032, -0.043013911694288254, 0.0027961046434938908, 0.05303579196333885, -0.004444703925400972, 0.08145784586668015, -0.058247171342372894, 0.012326912954449654, 0.05107150226831436, 0.04750371351838112, 0.0005248960223980248, -0.08803220093250275, 0.021947918459773064, 0.06409994512796402, 0.06846948713064194, 0.002152198925614357, 0.025094788521528244, -0.004720305558294058, -0.03437504917383194, 0.016105161979794502, 0.028462141752243042, -0.00381833640858531, -0.0012245485559105873, -0.039506252855062485, 0.07079456746578217, -0.030486561357975006, -0.056242793798446655, -0.048906777054071426, -0.04638126492500305, -0.03064691089093685, -0.007611618377268314, -0.007516410667449236, 0.00804757047444582, 0.01686682552099228, 0.04417644813656807, -0.0027610280085355043, -0.028281746432185173, 0.033352818340063095, 0.01432126760482788, -0.0481451153755188, -0.004346990492194891, 0.0017776311142370105, 0.12106432020664215, 0.004950808826833963, -0.02639763429760933, 0.005116169806569815, 0.030626866966485977, -0.0021885281894356012, -0.03637942671775818, -0.02731964737176895, 0.046501524746418, 0.0026557983364909887, 0.08554676920175552, -0.0191017035394907, 0.013138685375452042, -0.02521505206823349, 0.02585645206272602, 0.031709231436252594, -0.0497085265815258, -0.07408174127340317, -0.0037782490253448486, -0.07420200109481812, -0.05600227043032646, 0.004043828696012497, 0.000603505119215697, 0.013238904066383839, -0.01085369661450386, -0.028462141752243042, 0.0024941954761743546, -0.07520419359207153, -0.03277155011892319, -0.08594764769077301, 0.024593694135546684, -0.01386026106774807, -0.022549230605363846, -0.0681087002158165, 0.049949053674936295, 0.05944979563355446, -0.04746362566947937, -0.0645008236169815, 0.032711416482925415, -0.002603183500468731, -0.016526080667972565, -0.02088559977710247, -0.06502196192741394, 0.013299035839736462, -0.04189145937561989, 0.017568357288837433, -0.011585294269025326, -0.0023864603135734797, 0.030666954815387726, -0.046621788293123245, 0.01153518445789814, 0.018941354006528854, 0.012817985378205776, 0.017939167097210884, -0.020945729687809944, -0.0064490800723433495, -0.03569793701171875, 0.015714308246970177, 0.016065074130892754, 0.029484372586011887, 0.0053115966729819775, -0.0032771548721939325, -0.03108787350356579, 0.000808640499599278, 0.023651638999581337, -0.003322253469377756, 0.03343299403786659, -0.01255741622298956, -0.028161484748125076, -0.023250762373209, -0.013940435834228992, 0.006890042684972286, 0.015664199367165565, 0.006243631709367037, -0.021326562389731407, -0.032450851052999496, 0.01169553492218256, 0.034074392169713974, -0.024493476375937462, 0.014732164330780506, -0.039365947246551514, -0.0007666738820262253, 0.021947918459773064, 0.009510764852166176, 0.007606607396155596, 0.052234042435884476, -0.04582003876566887, -0.01021229662001133, 0.037962883710861206, 0.08217941969633102, -0.006338839419186115, -0.050590451806783676, 0.04217207431793213, -0.02836192212998867, 0.014942623674869537, -0.03555763140320778, 0.10727421194314957, 0.023270806297659874, 0.011094221845269203, -0.0397668220102787, -0.007726870011538267, 0.06233609840273857, 0.02457365207374096, -0.008959561586380005, 0.03493627533316612, -0.03523693233728409, -0.03577811270952225, -0.04145049676299095, -0.050269752740859985, 0.03291185572743416, -0.1161736398935318, -0.009555863216519356, 0.07764953374862671, 0.04305399954319, 0.04092935845255852, -0.010583105497062206, 0.03692060708999634, -0.0962902307510376, 0.06209557130932808, -0.016746561974287033, -0.041691023856401443, -0.02278975583612919, 0.015353521332144737, 0.01659623347222805, -0.00027591490652412176, -0.001986837713047862, 0.02335098199546337, -0.035998594015836716, -0.0033172424882650375, -0.05215386673808098, 0.045900214463472366, -0.03419465571641922, -0.030927523970603943, 0.010342581197619438, 0.026878682896494865, 0.05247456580400467, -0.006469123996794224, 0.004910721443593502, -0.042933735996484756, -0.04257294908165932, 0.02278975583612919, -0.02156708762049675, -0.048626165837049484, 0.01484240498393774, -0.04385574907064438, 0.019813258200883865, 0.03004559874534607, 0.030947567895054817, -0.018259866163134575, 0.024653825908899307, 0.014782274141907692, -0.0050635552033782005, -0.027700478211045265, -0.0697522908449173, 0.07323990017175674, 0.006318795494735241, 0.001924201031215489, 0.040688835084438324, -0.03808314725756645, 0.031669143587350845, 0.018770981580018997, -0.041290149092674255, 0.013289013877511024, -0.013258947990834713, -0.0039010171312838793, 0.015143061988055706, 0.05536086857318878, -0.04509846121072769, -0.08610799908638, 0.0042542885057628155, 0.0019667940214276314, 0.03760209679603577, -0.0596502348780632, 0.006704638246446848, 0.003813325660303235, 0.0034349996130913496, 0.008197898045182228, -0.008794200606644154, -0.0014970183838158846, -0.0290834978222847, -0.009911639615893364, 0.03579815849661827, -0.017257679253816605, -0.0861881747841835, -0.008608795702457428, -0.03533715009689331, -0.006674572359770536, -0.04205181077122688, 0.008162821643054485, -0.01221667230129242, -0.005702449940145016, -0.014952645637094975, -0.006248642690479755, 0.0023689221125096083, -0.029945379123091698, -0.004449714906513691, 0.07420200109481812, 0.002828675787895918, -0.0002893818018492311, 0.011976147070527077, -0.07035360485315323, -0.04870633780956268, -0.04746362566947937, 0.05351684242486954, 0.037822578102350235, -0.06281714886426926, 0.02270958200097084, 0.0497085265815258, 0.027620302513241768, -0.010653259232640266, 0.023972338065505028, -0.052234042435884476, -0.07372095435857773, -0.015654178336262703, -0.021687349304556847, -0.01103409007191658, 0.04521872475743294, -0.03870450332760811, 0.0382034070789814, 0.01459185779094696, -0.04670196399092674, -0.02725951559841633, 0.05239439010620117, -0.0008167832856997848, 0.012828007340431213, -0.010132120922207832, 0.02643772028386593, 0.008328182622790337, -0.0282216165214777, 0.06009119749069214, -0.004600043408572674, 0.08129749447107315, 0.00530157471075654, 0.05247456580400467, -0.0005073577049188316, -0.024593694135546684, 0.03842388838529587, -0.030847348272800446, -0.050911154597997665, -0.005316607654094696, 0.00016567420971114188, -0.02170739322900772, -0.031889624893665314, 0.017668575048446655, 0.02421286329627037, -0.019863367080688477, 0.0008969582850113511, 0.04517863690853119, -0.0020031232852488756, -0.015213214792311192, -0.0009170020930469036, 0.0035728004295378923, 0.005015951115638018, -0.016285555437207222, -0.01228682603687048, 0.002414020476862788, -0.009686147794127464, 0.015102974139153957, 0.008268051780760288, 0.023270806297659874, 0.019853346049785614, -0.07283902913331985, -0.025615926831960678, -0.018931332975625992, 0.044978201389312744, -0.028522271662950516, 0.061534345149993896, -0.037642184644937515, 0.017989275977015495, -0.048225291073322296, -0.01911172643303871, -0.009039736352860928, 0.02174748107790947, -0.01773872785270214, -0.02260936237871647, -0.029163671657443047, -0.009049758315086365, 0.08658904582262039, -0.042252250015735626, -0.020544854924082756, 0.056282881647348404, -0.06177487224340439, -0.014301223680377007, -0.04120997339487076, 0.035537589341402054, 0.04842572659254074, -0.01573435217142105, 0.0373816154897213, -0.032370675355196, 0.04072892293334007, -0.04076901078224182, -0.016716497018933296, 0.02307036891579628, 0.02707912214100361, 0.07127561420202255, -0.04541916400194168, -0.001812707632780075, 0.010322537273168564, 0.028121396899223328, -0.07620637863874435, 0.014391420409083366, 0.033392906188964844, -0.051873255521059036, 0.0004929512506350875, -0.003407439449802041, -0.022188443690538406, -0.008919473737478256, -0.02786082774400711, -0.027660390362143517, 0.014521704986691475, -0.017858991399407387, 0.0037156122270971537, 0.044978201389312744, 0.05006931722164154, -0.014431508257985115, 0.015042842365801334 ]
730,229
mmengine.fileio.backends.petrel_backend
put
Write bytes to a given ``filepath``. Args: obj (bytes): Data to be saved. filepath (str or Path): Path to write data. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.put(b'hello world', filepath)
def put(self, obj: bytes, filepath: Union[str, Path]) -> None: """Write bytes to a given ``filepath``. Args: obj (bytes): Data to be saved. filepath (str or Path): Path to write data. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.put(b'hello world', filepath) """ filepath = self._map_path(filepath) filepath = self._format_path(filepath) filepath = self._replace_prefix(filepath) self._client.put(filepath, obj)
(self, obj: bytes, filepath: Union[str, pathlib.Path]) -> NoneType
[ -0.023425409570336342, -0.030793221667408943, -0.09334911406040192, 0.03867219761013985, -0.0017637358978390694, -0.0786839947104454, 0.004448448307812214, 0.1130906194448471, -0.03891896456480026, -0.0509401299059391, 0.01583726890385151, -0.03331378847360611, -0.009861938655376434, -0.04202120006084442, -0.023989452049136162, 0.02333727851510048, -0.0068258014507591724, -0.08030562102794647, 0.009068753570318222, 0.02906583994626999, 0.014057008549571037, 0.012876044027507305, 0.0793890506029129, 0.0335429310798645, 0.01347533892840147, 0.027779117226600647, -0.017247376963496208, 0.019688624888658524, -0.020816711708903313, -0.011404244229197502, 0.07205648720264435, -0.08636908233165741, 0.02880144491791725, 0.018983570858836174, 0.0031264727003872395, -0.014444787986576557, 0.016225049272179604, 0.034054093062877655, -0.0159077737480402, -0.017520584166049957, 0.006244131829589605, 0.07367811352014542, -0.004252355080097914, -0.03246772289276123, 0.07819046080112457, 0.03747360408306122, -0.005155705381184816, 0.06539373099803925, 0.040152810513973236, 0.0029964782297611237, 0.024218594655394554, -0.03800239413976669, -0.03089897893369198, -0.04149241000413895, 0.0002916608937084675, 0.03378969803452492, 0.017088739201426506, 0.011342551559209824, -0.0709989070892334, 0.04371333122253418, -0.0012382506392896175, -0.045370206236839294, 0.017652781680226326, -0.05495893582701683, 0.025011781603097916, -0.014303777366876602, -0.03810815513134003, -0.002888516988605261, -0.002163633704185486, -0.01811988092958927, 0.000794287072494626, -0.06631030142307281, 0.06172745302319527, -0.04314928874373436, -0.04230322316288948, 0.013316702097654343, 0.01036428939551115, 0.03280262276530266, 0.03488253429532051, 0.029224475845694542, 0.013642789795994759, -0.05051710084080696, 0.0075528877787292, -0.044453635811805725, -0.00855318270623684, 0.02242070809006691, 0.02335490472614765, -0.028907202184200287, -0.03417747840285301, 0.006354296579957008, -0.009994136169552803, -0.011897781863808632, -0.00486046401783824, -0.044665154069662094, 0.04110463336110115, -0.03930674493312836, 0.041280895471572876, -0.005437726620584726, 0.0029480059165507555, 0.02977089397609234, -0.026280878111720085, -0.01908932998776436, 0.025628702715039253, 0.01153644174337387, 0.036028243601322174, -0.05978855490684509, 0.032714493572711945, -0.03373682126402855, -0.012029979377985, -0.008976215496659279, 0.005763814318925142, -0.00025475575239397585, -0.08206824958324432, -0.004296421073377132, 0.03077559545636177, 0.0031705384608358145, 0.01495595183223486, -0.023443035781383514, 0.031145747750997543, -0.022455960512161255, 0.008672161027789116, -0.03218570351600647, -0.03558758646249771, 0.027779117226600647, 0.045370206236839294, 0.014964764937758446, 0.07149244844913483, 0.03764986991882324, -0.032502975314855576, -0.027197446674108505, -0.02532905526459217, 0.021468885242938995, -0.017458893358707428, 0.03905997425317764, 0.002844450995326042, 0.06472393125295639, 0.04350181296467781, -0.030793221667408943, -0.011545254848897457, -0.04364282637834549, 0.03937724977731705, -0.03817865997552872, -0.008143370039761066, -0.05263226106762886, 0.07670984417200089, 0.010928332805633545, -0.05097538232803345, -0.08481796085834503, -0.03733259439468384, 0.017458893358707428, -0.01477968879044056, 0.012329626828432083, 0.0011368991108611226, 0.03835492208600044, -0.005992956459522247, -0.012955361977219582, -0.01697416789829731, -0.013871932402253151, -0.021733280271291733, 0.04209170863032341, 0.009958883747458458, 0.011985912919044495, 0.04787314683198929, 0.010945959016680717, 0.00803320575505495, 0.010478860698640347, -0.00976499356329441, 0.035622838884592056, 0.004776739049702883, 0.018648670986294746, -0.03260873630642891, -0.02545243874192238, -0.05065811052918434, 0.0242538470774889, 0.07967106997966766, -0.002050163922831416, 0.008473864756524563, -0.0009039008873514831, 0.01868392340838909, 0.01938897743821144, 0.01662164181470871, 0.00006430860958062112, 0.04519394412636757, 0.03132200986146927, 0.017282629385590553, 0.01833139732480049, 0.011977099813520908, 0.0671563670039177, 0.017009420320391655, 0.023302026093006134, 0.029947156086564064, 0.04663930460810661, 0.0006945880595594645, 0.04124564304947853, 0.029806146398186684, -0.01875442825257778, 0.06296129524707794, -0.08862525224685669, -0.02490602247416973, 0.1054055318236351, 0.01901882328093052, -0.009527038782835007, 0.04819042235612869, -0.01495595183223486, 0.040152810513973236, 0.016718586906790733, 0.06095189228653908, 0.05146891996264458, -0.04632202908396721, -0.003906438127160072, 0.021698027849197388, -0.005481792613863945, -0.04956527799367905, -0.04307878389954567, 0.06370160728693008, 0.009148072451353073, -0.08044663071632385, 0.0463925339281559, 0.003318159142509103, 0.056192781776189804, 0.05196245759725571, 0.046780314296483994, -0.04854295030236244, 0.0022715949453413486, 0.03481202572584152, 0.007561701349914074, 0.015511182136833668, -0.03315515071153641, -0.010849013924598694, -0.023707430809736252, -0.023672178387641907, 0.026756789535284042, 0.02992952987551689, -0.006957998964935541, 0.03740309923887253, 0.05245599523186684, -0.022579345852136612, 0.023866068571805954, -0.00514689227566123, -0.0056624626740813255, 0.04272625595331192, -0.03185080364346504, -0.03456525877118111, 0.006830208003520966, -0.03527031093835831, 0.03276737034320831, 0.03535844385623932, -0.04350181296467781, -0.02948887273669243, -0.06891900300979614, 0.05784965679049492, -0.004280997905880213, -0.03444187343120575, 0.00922739040106535, 0.022808488458395004, -0.010091081261634827, 0.05767339468002319, -0.024994153529405594, -0.018701549619436264, 0.03516455367207527, -0.07720338553190231, 0.0034834060352295637, 0.033278536051511765, -0.01654232293367386, 0.001774752396158874, -0.0026351383421570063, -0.03308464586734772, -0.009236203506588936, -0.00484724435955286, 0.0332256555557251, -0.013052307069301605, 0.04420686885714531, -0.012990614399313927, 0.010531740263104439, 0.022138686850667, -0.05827268958091736, -0.02673916146159172, 0.047344356775283813, 0.026844920590519905, -0.015572873875498772, -0.025875471532344818, -0.021980049088597298, 0.04406585916876793, -0.0386369451880455, 0.04526444897055626, -0.01908932998776436, -0.004091514740139246, 0.03542894870042801, -0.03202706575393677, -0.02589309774339199, -0.021609896793961525, 0.012188616208732128, -0.05340781807899475, 0.025082286447286606, 0.003371038008481264, 0.034970663487911224, -0.054923683404922485, -0.00300749484449625, 0.053866103291511536, -0.04526444897055626, -0.004444041755050421, 0.06913051754236221, 0.04886022210121155, 0.023425409570336342, 0.005331968888640404, 0.0058255065232515335, 0.04099887236952782, -0.03357818350195885, -0.04152766242623329, 0.01859579235315323, 0.028960080817341805, -0.04484141618013382, -0.04974154010415077, 0.05425388365983963, 0.054712168872356415, 0.04099887236952782, 0.0050191013142466545, 0.01231200061738491, -0.030387815088033676, -0.0033490052446722984, 0.02363692596554756, -0.0407521054148674, -0.030299684032797813, 0.012787912040948868, 0.05918926000595093, -0.0551704540848732, 0.0181022547185421, 0.005750594194978476, -0.0007221292471513152, -0.020957721397280693, 0.04321979358792305, 0.011651013046503067, 0.029330234974622726, 0.011730330996215343, 0.034917786717414856, -0.035904861986637115, -0.016815531998872757, 0.0032961261458694935, -0.0012052012607455254, 0.08418341726064682, 0.051257405430078506, 0.00359797733835876, 0.03743835166096687, 0.033930711448192596, -0.018067002296447754, 0.017934804782271385, -0.0618332102894783, -0.03601061925292015, -0.025364307686686516, 0.08058764040470123, -0.05037608742713928, -0.005424506962299347, 0.017088739201426506, -0.021186864003539085, -0.018507659435272217, -0.03156878054141998, 0.028554676100611687, -0.035834357142448425, -0.009994136169552803, -0.08686261624097824, -0.013325515203177929, -0.025628702715039253, -0.027638105675578117, -0.013924811035394669, -0.033860206604003906, -0.0016194202471524477, 0.008416579104959965, 0.046357281506061554, -0.023231519386172295, 0.02384844236075878, 0.03698006644845009, -0.016092851758003235, -0.02561107650399208, 0.028466543182730675, 0.03980028256773949, 0.02086959034204483, 0.01456817239522934, -0.007433910388499498, 0.0011534238001331687, 0.02561107650399208, 0.043466560542583466, 0.007711525075137615, 0.0094829723238945, 0.010919519700109959, 0.04371333122253418, 0.029682761058211327, 0.0597180500626564, 0.0035473015159368515, 0.01675383932888508, -0.0034106974489986897, 0.022403081879019737, 0.023090509697794914, 0.032996512949466705, -0.08108117431402206, -0.008068458177149296, -0.029171597212553024, 0.026351382955908775, 0.013413647189736366, -0.006812581792473793, -0.006733262911438942, 0.020781459286808968, -0.055769748985767365, -0.017485331743955612, 0.06066987290978432, 0.0321328230202198, 0.07135143876075745, -0.040434829890728, 0.03817865997552872, 0.01640131138265133, 0.041844937950372696, -0.027567600831389427, 0.004719453398138285, 0.033930711448192596, -0.03232671320438385, 0.0008537760004401207, 0.017344322055578232, -0.0428672656416893, -0.06197422370314598, -0.009236203506588936, 0.00582109997048974, -0.043819088488817215, 0.007909821346402168, 0.021098732948303223, 0.01759990304708481, -0.02509991265833378, -0.054430145770311356, 0.022737981751561165, -0.11323162913322449, 0.03694481402635574, 0.014127514325082302, 0.05340781807899475, -0.04448888823390007, -0.0009534750133752823, 0.00456081610172987, 0.03445950150489807, -0.010337850078940392, 0.022579345852136612, -0.03241484612226486, -0.004280997905880213, 0.016965355724096298, 0.04790839925408363, -0.03530556336045265, -0.035552334040403366, -0.02044655755162239, -0.051609933376312256, 0.012770285829901695, -0.054430145770311356, -0.009879564866423607, 0.0913749635219574, 0.03296126052737236, 0.022896619513630867, -0.06631030142307281, 0.03378969803452492, 0.022367829456925392, -0.012796725146472454, -0.0275852270424366, -0.006865460425615311, -0.05813167989253998, -0.031515900045633316, -0.03319040313363075, -0.020763831213116646, 0.01901882328093052, 0.09574629366397858, -0.03453000634908676, -0.03174504265189171, 0.011219167150557041, 0.008698600344359875, 0.00700206495821476, 0.006301417481154203, -0.03948300704360008, 0.027426589280366898, -0.02467687986791134, -0.03061695769429207, 0.023531168699264526, 0.034917786717414856, 0.04032907262444496, 0.031515900045633316, 0.046498291194438934, -0.07748540490865707, -0.0456874817609787, 0.0069359662011265755, -0.03796714171767235, -0.017987683415412903, 0.04032907262444496, 0.028766192495822906, 0.013202130794525146, 0.001754922792315483, 0.03535844385623932, 0.07600478827953339, -0.008319634012877941, 0.015819642692804337, 0.006830208003520966, -0.0435723215341568, -0.032714493572711945, -0.01612810418009758, 0.03712107986211777, -0.03824916481971741, 0.03262636065483093, -0.09257355332374573, -0.02573445998132229, -0.045370206236839294, -0.026421887800097466, -0.026192745193839073, -0.027144568040966988, -0.018419528380036354, -0.03063458390533924, -0.003192571457475424, -0.008742665871977806, -0.03817865997552872, 0.022949498146772385, -0.028343159705400467, 0.02723269909620285, -0.016991794109344482, -0.0034040873870253563, -0.023178640753030777, 0.0428672656416893, -0.013378394767642021, -0.010619871318340302, -0.04981204494833946, -0.042902518063783646, 0.028871949762105942, -0.05016457289457321, 0.07032910734415054, -0.016295554116368294, 0.05862521752715111, -0.015396610833704472, -0.0178290456533432, -0.06049361079931259, -0.007513228803873062, 0.01924796588718891, -0.017908364534378052, 0.0010349968215450644, -0.00883961096405983, -0.014162766747176647, 0.07039961218833923, 0.003650856204330921, 0.020622821524739265, -0.04406585916876793, 0.04607526212930679, -0.03757936507463455, -0.022720355540513992, -0.02964750863611698, -0.04420686885714531, -0.02851942367851734, 0.0037367846816778183, -0.02829028107225895, -0.027056436985731125, -0.06740313768386841, 0.0009722029790282249, -0.030088167637586594, 0.004838431254029274, -0.03712107986211777, 0.02439485862851143, 0.06405413150787354, -0.04843718931078911, 0.04589899629354477, 0.005763814318925142, -0.026933051645755768, -0.0036398398224264383, -0.03028205782175064, -0.0039042350836098194, 0.03631026670336723, 0.013669229112565517, 0.02328439988195896, 0.041562918573617935, 0.035816729068756104, 0.01915983483195305, 0.012382506392896175, 0.04875446483492851, -0.03375444561243057, 0.009888377971947193, 0.09334911406040192, 0.02340778335928917, -0.02765573188662529, 0.05012932047247887, 0.025998855009675026, -0.023866068571805954, 0.016789091750979424, 0.021909544244408607, -0.023866068571805954, -0.0709989070892334, 0.014409535564482212, -0.056051772087812424, 0.0041598170064389706, 0.021398380398750305, 0.004794365260750055, 0.056756824254989624, 0.04755587503314018, -0.0671563670039177, -0.016868410632014275, -0.02525855042040348, 0.020781459286808968, 0.028625180944800377, -0.019071703776717186, 0.022949498146772385, -0.03132200986146927, 0.0038161033298820257, -0.042479485273361206, 0.07008233666419983, -0.0037081418558955193, -0.003265280043706298, -0.04068160057067871, -0.033278536051511765, 0.01562575250864029, 0.009033501148223877, 0.06772041320800781, -0.06962405145168304, 0.01591658778488636, 0.030370188876986504, -0.03514692932367325, -0.029048213735222816, 0.03488253429532051, 0.027320832014083862, 0.026915425434708595, -0.01184490229934454, -0.008680974133312702, -0.03234434127807617, 0.014532919973134995, -0.03849593177437782, 0.009703301824629307, -0.027391336858272552, -0.05749713256955147, 0.0026902207173407078, 0.03437136858701706, -0.04589899629354477, -0.017855485901236534, 0.013343141414225101, -0.04931850731372833, -0.008513523265719414, -0.062079980969429016, -0.021257368847727776, 0.015326105058193207, 0.00735899806022644, 0.04265575110912323, 0.04152766242623329, -0.05710935220122337, -0.029594630002975464, -0.014409535564482212, -0.0021404989529401064, -0.03817865997552872, 0.0009055533446371555, 0.002659374615177512, -0.014665117487311363, 0.00047343256301246583, 0.026439514011144638, 0.03394833579659462, -0.0003249857109040022, -0.06017633527517319, -0.02539956010878086, -0.025593450292944908, -0.006266165059059858, 0.013545844703912735, -0.00866334792226553, 0.005944484379142523, 0.02652764692902565, 0.06119866296648979, 0.09574629366397858, -0.041774433106184006, 0.023513542488217354, 0.03659228980541229, 0.018137507140636444, -0.04054058715701103, 0.004375739488750696, -0.03417747840285301, -0.04974154010415077, 0.04149241000413895, 0.010981211438775063, -0.062220990657806396, -0.020816711708903313, -0.003362224902957678, 0.0009628389962017536, 0.04914224520325661, -0.034759148955345154, -0.040716852992773056, 0.024377232417464256, 0.006332263816148043, -0.00920095108449459, -0.032220955938100815, -0.013986502774059772, -0.0068830871023237705, -0.04173918068408966, -0.02347828820347786, 0.003342395182698965, 0.022226817905902863, -0.03937724977731705, 0.0731140673160553, 0.05460641160607338, 0.04755587503314018, 0.01689484901726246, -0.0604231022298336, 0.00816540326923132, -0.020058779045939445, -0.03551708161830902, -0.008751478977501392, -0.02446536347270012, -0.008328447118401527, 0.05566399171948433, 0.0032917195931077003, 0.04149241000413895, -0.026122240349650383, -0.012708593159914017, 0.03461813926696777, -0.01626911386847496, -0.01166863925755024, -0.012972988188266754, -0.03870745003223419, -0.020534690469503403, -0.06468868255615234, 0.031145747750997543, -0.04244423285126686, -0.02404233254492283, 0.005331968888640404, 0.02645714022219181, -0.07262053340673447, 0.002269391668960452, 0.03948300704360008, -0.014762062579393387, 0.015564060769975185, -0.0027871655765920877, -0.037015318870544434, -0.009315522387623787, 0.014250898733735085, 0.03082847408950329, -0.04131614789366722, 0.040223315358161926, -0.0836193710565567, -0.03736784681677818, 0.015396610833704472, -0.03324328362941742, 0.014532919973134995, 0.046921323984861374, -0.0217861607670784, 0.011624572798609734, -0.042973022907972336, -0.05185670033097267, -0.017088739201426506, 0.01960049383342266, -0.05742662400007248, 0.05220922827720642, 0.051186900585889816, 0.005979736801236868, -0.008218282833695412, -0.01212692353874445, -0.07396013289690018, 0.1215512603521347, -0.01689484901726246, 0.05855471268296242, 0.03430086374282837, -0.004267778247594833, 0.03750885650515556, 0.014057008549571037, -0.0023310838732868433, -0.012479450553655624, 0.03028205782175064, 0.07269103825092316, -0.03135726600885391, -0.02434197999536991, 0.05178619548678398, 0.01135136466473341, -0.007482382468879223, -0.06271453201770782, -0.02319626696407795, -0.0009121632319875062, -0.002771742409095168, 0.028660433366894722, 0.05911875516176224, -0.05904825031757355, 0.018965944647789 ]
730,230
mmengine.fileio.backends.petrel_backend
put_text
Write text to a given ``filepath``. Args: obj (str): Data to be written. filepath (str or Path): Path to write data. encoding (str): The encoding format used to encode the ``obj``. Defaults to 'utf-8'. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.put_text('hello world', filepath)
def put_text( self, obj: str, filepath: Union[str, Path], encoding: str = 'utf-8', ) -> None: """Write text to a given ``filepath``. Args: obj (str): Data to be written. filepath (str or Path): Path to write data. encoding (str): The encoding format used to encode the ``obj``. Defaults to 'utf-8'. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.put_text('hello world', filepath) """ self.put(bytes(obj, encoding=encoding), filepath)
(self, obj: str, filepath: Union[str, pathlib.Path], encoding: str = 'utf-8') -> NoneType
[ -0.011061870492994785, -0.04821664094924927, -0.07413696497678757, 0.03271966800093651, 0.03589499369263649, -0.054153118282556534, 0.0038828717079013586, 0.07185901701450348, 0.014910227619111538, -0.014910227619111538, 0.00815403088927269, -0.05001138895750046, -0.005457592196762562, -0.025695983320474625, -0.016221774742007256, 0.03190857917070389, -0.06285075098276138, -0.04814761132001877, 0.036516252905130386, 0.011148156598210335, -0.005121076479554176, -0.007783000823110342, 0.06184983253479004, 0.022140998393297195, 0.023970261216163635, -0.005889022257179022, -0.03579144924879074, -0.009267120622098446, -0.017334865406155586, -0.004806132521480322, 0.057362958788871765, -0.09815900027751923, 0.015436572954058647, -0.0032659266144037247, -0.05418763309717178, -0.006635396741330624, 0.004517074208706617, -0.019983846694231033, 0.014996513724327087, -0.058950621634721756, -0.009085919708013535, 0.11472591757774353, 0.003641270799562335, -0.01813732646405697, 0.01786120980978012, 0.015074171125888824, -0.02384946122765541, 0.036895912140607834, 0.010578668676316738, 0.003876400412991643, -0.0019328072667121887, -0.0043811737559735775, -0.04949367418885231, -0.02906113862991333, -0.05643106997013092, 0.013805766589939594, 0.012649533338844776, 0.026541586965322495, -0.04652543365955353, -0.041935015469789505, 0.032667893916368484, -0.02811199240386486, 0.05287608504295349, -0.011225813999772072, 0.01810281164944172, -0.02804296277463436, -0.006730311084538698, -0.007399028167128563, 0.025057466700673103, -0.03397944197058678, 0.034566186368465424, -0.0594683401286602, 0.05311768501996994, -0.04956270009279251, -0.021502481773495674, -0.00005477141166920774, -0.012511475943028927, 0.03955351933836937, 0.03938094899058342, 0.021882139146327972, -0.004258215893059969, -0.03511841967701912, 0.0025777954142540693, -0.038552604615688324, 0.0002668126253411174, -0.029250968247652054, -0.006117680110037327, -0.032529838383197784, -0.0034794844686985016, -0.016592806205153465, 0.02459152229130268, -0.05515403673052788, -0.0015002985019236803, -0.005466220434755087, -0.0072652846574783325, -0.03972609341144562, 0.04224564507603645, -0.05863999202847481, -0.03057977184653282, 0.0216232817620039, -0.030804116278886795, -0.0032616122625768185, 0.03215017914772034, 0.006087480112910271, 0.05536112189292908, -0.09401726722717285, 0.002234808402135968, -0.032253723591566086, 0.04749183729290962, 0.012356161139905453, 0.012442447245121002, -0.0006644024979323149, -0.023021114990115166, -0.015212228521704674, 0.04462714120745659, -0.025333581492304802, -0.04328107833862305, -0.03965706378221512, 0.013011935167014599, -0.06126308813691139, 0.01810281164944172, -0.02303837239742279, -0.04586965963244438, -0.0041309441439807415, 0.011389757506549358, 0.009517350234091282, 0.05801873281598091, 0.006756197195500135, 0.009310264140367508, -0.034928590059280396, -0.02124362252652645, 0.02490215189754963, 0.02919919602572918, -0.013469250872731209, 0.027835875749588013, 0.052358370274305344, -0.003214155090972781, 0.004473931156098843, 0.019845789298415184, -0.022641457617282867, 0.03710299730300903, -0.05643106997013092, -0.016774006187915802, -0.041935015469789505, 0.031649719923734665, 0.02902662381529808, -0.0338931567966938, -0.1205933690071106, -0.030597029253840446, 0.021640539169311523, 0.027991192415356636, 0.005983937066048384, -0.026973016560077667, 0.008210116997361183, -0.0008234924171119928, -0.003237883560359478, -0.012036902830004692, 0.01248558983206749, -0.034013956785202026, 0.06726859509944916, 0.01648063398897648, 0.025626953691244125, 0.0344453863799572, 0.05870902165770531, 0.001676106359809637, 0.052013225853443146, 0.025454381480813026, -0.002262851456180215, -0.009198091924190521, -0.012761705555021763, 0.016230404376983643, -0.041865985840559006, -0.07786452025175095, 0.03487681597471237, 0.05491243675351143, 0.04121021181344986, 0.016972463577985764, 0.007252341601997614, 0.025264551863074303, 0.03548081964254379, -0.01772315241396427, -0.040036723017692566, 0.015566001646220684, 0.01208004541695118, 0.027387188747525215, -0.013003306463360786, -0.00026249830261804163, 0.06474904716014862, -0.006255737971514463, 0.0013999909861013293, 0.029630625620484352, -0.011527814902365208, -0.01459959801286459, 0.0422801598906517, -0.002774096094071865, -0.01982853189110756, 0.07710520923137665, -0.09981568902730942, -0.0508052222430706, 0.06267818063497543, 0.052220311015844345, 0.003861300414428115, 0.045179370790719986, 0.0008062351844273508, 0.04086506739258766, 0.021226365119218826, 0.038690660148859024, 0.034359101206064224, -0.02479860745370388, 0.016929320991039276, 0.01975950412452221, -0.020967507734894753, -0.028301822021603584, 0.009310264140367508, 0.06499064713716507, 0.028025705367326736, -0.09042777121067047, 0.04431651160120964, 0.03180503472685814, 0.03934643417596817, 0.014297597110271454, 0.0432465635240078, -0.04635285958647728, 0.04593868926167488, 0.03391041234135628, 0.011199927888810635, 0.022382598370313644, 0.001596291782334447, 0.022037453949451447, -0.0297341700643301, -0.010647697374224663, 0.025264551863074303, -0.012899762950837612, 0.0338931567966938, 0.02032899111509323, 0.01486708503216505, -0.04148632660508156, -0.01863778382539749, -0.0211745947599411, -0.021295394748449326, 0.040140267461538315, -0.022244540974497795, -0.02490215189754963, 0.00977620854973793, -0.011838444508612156, 0.029682397842407227, -0.0002825867850333452, -0.010966955684125423, -0.004098586738109589, -0.07337764650583267, 0.06102148815989494, 0.011381128802895546, -0.052185796201229095, 0.018534241244196892, -0.019362587481737137, -0.0017354279989376664, 0.040381867438554764, -0.0340312160551548, -0.024246377870440483, 0.045524515211582184, -0.040036723017692566, -0.021657796576619148, -0.01752469502389431, 0.02455700747668743, 0.020518820732831955, -0.03508390486240387, -0.07745034992694855, 0.02472957968711853, -0.02845713682472706, -0.007325684651732445, -0.010052323341369629, 0.05518855154514313, 0.0071401698514819145, -0.025264551863074303, -0.02581678330898285, -0.018724070861935616, -0.038725174963474274, 0.06143566220998764, 0.025316324084997177, -0.022382598370313644, -0.0074766855686903, -0.016825778409838676, 0.031684234738349915, -0.07710520923137665, 0.07676006108522415, -0.015755830332636833, 0.007675143424421549, 0.0343763567507267, -0.005643106997013092, -0.020173676311969757, -0.015574630349874496, 0.020139161497354507, -0.026092898100614548, 0.050391048192977905, 0.002528181066736579, 0.04666348919272423, -0.04445456713438034, -0.030493486672639847, 0.020484305918216705, -0.07241124659776688, 0.04390233755111694, 0.03875968977808952, 0.014892970211803913, 0.0022089225240051746, -0.021864881739020348, 0.018016524612903595, 0.011458786204457283, -0.011821187101304531, 0.006790711544454098, -0.0064369384199380875, 0.02114007994532585, -0.059295766055583954, -0.014478798024356365, 0.09815900027751923, 0.019034700468182564, 0.06423132866621017, -0.008408574387431145, -0.03561887890100479, -0.028336334973573685, -0.03394492715597153, 0.038483574986457825, -0.06568093597888947, -0.0016405133064836264, 0.007463742513209581, 0.05598238483071327, -0.06191886216402054, 0.022417113184928894, -0.004681017715483904, -0.00004368230656837113, -0.014841198921203613, 0.03522196039557457, 0.05684524402022362, 0.038414545357227325, -0.03194309398531914, -0.0003769621253013611, -0.036516252905130386, -0.00036024421569891274, -0.026438042521476746, -0.00027773319743573666, 0.06174629181623459, 0.058985136449337006, -0.014910227619111538, -0.01419405359774828, 0.014099138788878918, 0.0007204884313978255, 0.04952818900346756, -0.023625118657946587, -0.045179370790719986, -0.0031084546353667974, 0.03800037130713463, -0.027059301733970642, 0.008956491015851498, 0.009042777121067047, -0.04265981912612915, -0.05456729233264923, -0.02195116877555847, 0.01208004541695118, -0.015842117369174957, -0.01786120980978012, -0.10133432596921921, -0.03613659366965294, 0.002756838919594884, -0.027352673932909966, 0.003287498140707612, -0.016825778409838676, -0.020242705941200256, 0.00040446582715958357, 0.08110887557268143, -0.028664221987128258, 0.050632648169994354, 0.06126308813691139, -0.009871123358607292, -0.014659998007118702, 0.04072701185941696, 0.041831471025943756, 0.04428199678659439, -0.000740442075766623, -0.029078396037220955, -0.01789572462439537, 0.013684965670108795, 0.038552604615688324, 0.025350838899612427, -0.006320452317595482, -0.0032939696684479713, 0.029682397842407227, 0.038725174963474274, 0.01451331190764904, 0.0012684047687798738, 0.02719735912978649, -0.013900681398808956, 0.03727556765079498, 0.033168353140354156, 0.05001138895750046, -0.06985718011856079, -0.006501653231680393, -0.005893336609005928, 0.023331744596362114, 0.019310815259814262, 0.012960162945091724, 0.04076152667403221, 0.008218745701014996, -0.04655994847416878, -0.057466503232717514, 0.0344453863799572, 0.019673217087984085, 0.10720177739858627, -0.043453648686409, 0.030251886695623398, 0.008348174393177032, 0.05622398480772972, -0.030338171869516373, 0.006342024076730013, 0.03765522688627243, -0.03106297366321087, -0.0009610107517801225, 0.004918304271996021, -0.03931191936135292, -0.057328443974256516, -0.02462603524327278, 0.017507437616586685, -0.051944196224212646, 0.0001427764364052564, 0.00896511971950531, 0.015350286848843098, -0.0069373976439237595, -0.03789683058857918, 0.027715075761079788, -0.0845603197813034, 0.0685456320643425, 0.015678172931075096, 0.02493666484951973, -0.07254930585622787, -0.04586965963244438, 0.008861576206982136, -0.0005468378076329827, 0.007550028618425131, -0.005444649141281843, -0.04041638225317001, -0.0301138274371624, -0.013762623071670532, 0.0859408974647522, -0.031649719923734665, -0.013753995299339294, 0.010578668676316738, -0.003054525936022401, 0.02673141472041607, -0.01884487085044384, -0.03215017914772034, 0.036516252905130386, 0.028301822021603584, 0.03313383832573891, 0.007856343872845173, 0.014176796190440655, 0.034566186368465424, -0.0018346569268032908, -0.03133909031748772, 0.040209293365478516, -0.05650009959936142, -0.041865985840559006, 0.008456031791865826, -0.06726859509944916, 0.03796585649251938, 0.06999523937702179, -0.04742280766367912, 0.0021905868779867887, -0.010285296477377415, -0.009603636339306831, 0.03713751211762428, -0.0301138274371624, -0.04231467470526695, -0.001643749070353806, 0.010932440869510174, -0.05998605489730835, 0.02057059295475483, 0.0297341700643301, 0.05001138895750046, -0.002482880838215351, 0.006121994461864233, -0.06212594732642174, -0.02233082801103592, 0.01874132826924324, -0.035135675221681595, 0.01860327087342739, 0.029785940423607826, 0.009034148417413235, 0.02070865035057068, 0.04980430379509926, 0.013486508280038834, 0.07634589076042175, -0.0005414449260570109, 0.029043881222605705, 0.014875713735818863, 0.0006946026114746928, -0.027835875749588013, -0.03586047887802124, 0.027283646166324615, -0.054118603467941284, 0.07220415771007538, -0.07178998738527298, -0.019190015271306038, -0.03125280514359474, -0.0056042782962322235, -0.025350838899612427, 0.005716450046747923, 0.004952818620949984, -0.006544796284288168, 0.004909675568342209, 0.019190015271306038, -0.004581788554787636, 0.020259961485862732, -0.03325463831424713, 0.008387003093957901, 0.003641270799562335, 0.006091794464737177, 0.012571875937283039, 0.002142051002010703, -0.03215017914772034, -0.012062788009643555, -0.032667893916368484, -0.0169465783983469, -0.042176615446805954, -0.03296126797795296, 0.020846707746386528, -0.04486874118447304, 0.08097082376480103, -0.0345834456384182, -0.048906926065683365, -0.0216232817620039, -0.006954655051231384, 0.033548012375831604, -0.022313570603728294, 0.003880714764818549, 0.0074464851059019566, -0.014703141525387764, 0.06492161750793457, 0.004264687653630972, 0.007783000823110342, 0.0041158441454172134, 0.05781164765357971, 0.02959611266851425, -0.005086562130600214, -0.006894254591315985, -0.053842488676309586, -0.02747347578406334, 0.0508742481470108, -0.05784616246819496, -0.014530569314956665, -0.058950621634721756, 0.04583514481782913, 0.03765522688627243, 0.006592253688722849, -0.06671636551618576, -0.012045531533658504, 0.07731229066848755, -0.04738829284906387, 0.06481807678937912, -0.0072437128983438015, -0.001518634264357388, 0.014176796190440655, -0.025730498135089874, 0.011139527894556522, 0.02564421109855175, 0.025178266689181328, 0.010803012177348137, 0.04959721490740776, 0.04048541188240051, 0.009042777121067047, 0.0128393629565835, 0.014323482289910316, -0.04086506739258766, 0.045282915234565735, 0.04224564507603645, 0.04400588199496269, -0.043557193130254745, -0.002776253269985318, -0.005190105177462101, 0.01681714877486229, 0.032253723591566086, 0.01497062761336565, 0.00945695023983717, -0.053773459047079086, -0.0013320407597348094, -0.041693415492773056, 0.026507072150707245, 0.04107215628027916, 0.016903435811400414, 0.043867822736501694, 0.03220194950699806, -0.0598134845495224, 0.020725907757878304, -0.014375254511833191, 0.014841198921203613, 0.05346282944083214, -0.03139086067676544, 0.045524515211582184, -0.013693594373762608, 0.018551498651504517, -0.028629709035158157, 0.06285075098276138, -0.03724105656147003, -0.020139161497354507, -0.03579144924879074, -0.06140114739537239, 0.046801548451185226, 0.009517350234091282, 0.08007344603538513, -0.04252175986766815, 0.0015380486147478223, 0.025989355519413948, -0.001736506586894393, -0.03258160874247551, 0.020208191126585007, 0.00882706232368946, -0.030424457043409348, 0.010164495557546616, 0.0036455851513892412, 0.008710576221346855, -0.016083717346191406, 0.02628272771835327, 0.011812559328973293, 0.02888856641948223, -0.011752158403396606, 0.00784771516919136, 0.026075640693306923, -0.021191852167248726, -0.0008267281227745116, 0.022244540974497795, -0.08801176398992538, -0.028232792392373085, -0.0848364382982254, -0.048492755740880966, -0.00022070351406000555, 0.01234753243625164, 0.05335928872227669, 0.01167450100183487, -0.043350107967853546, -0.04935561493039131, -0.040381867438554764, 0.002422480611130595, -0.06160823255777359, -0.018154582008719444, -0.008503489196300507, -0.03522196039557457, -0.027387188747525215, 0.008387003093957901, 0.018361669033765793, -0.029993027448654175, -0.049010470509529114, 0.005358363036066294, -0.03993317857384682, 0.010906555689871311, 0.014133653603494167, 0.008667432703077793, -0.02053607814013958, 0.04245273023843765, 0.07434405386447906, 0.07510337233543396, -0.050667162984609604, 0.04987332969903946, 0.03575693443417549, 0.014366625808179379, -0.007709657773375511, 0.018085554242134094, -0.04814761132001877, -0.018655041232705116, -0.003934643231332302, 0.011122270487248898, -0.04925207048654556, -0.024453463032841682, 0.03606756404042244, 0.02709381654858589, 0.06968460977077484, -0.019397102296352386, -0.03365155681967735, 0.055499181151390076, 0.010733983479440212, 0.024988437071442604, -0.03280595317482948, 0.007260970305651426, -0.020035618916153908, -0.03466973081231117, -0.014004223980009556, -0.02310740202665329, -0.019949331879615784, -0.027180103585124016, 0.0510813370347023, 0.038621630519628525, 0.0344453863799572, 0.036516252905130386, -0.0012888977071270347, -0.027059301733970642, 0.013693594373762608, -0.060986973345279694, -0.001808771165087819, 0.034186530858278275, -0.03109748847782612, 0.0849744901061058, -0.02743896096944809, 0.029958512634038925, -0.016523776575922966, -0.0016318847192451358, 0.02286580018699169, -0.02462603524327278, -0.05329025909304619, -0.0517025962471962, -0.05874353647232056, 0.008973748423159122, -0.05449826270341873, 0.017265835776925087, -0.07027135044336319, -0.05867450684309006, 0.0256096962839365, 0.0601586289703846, -0.062367551028728485, 0.02395300567150116, 0.036826882511377335, 0.022140998393297195, 0.028405364602804184, -0.010190381668508053, -0.07061649858951569, 0.007593171671032906, 0.02202019840478897, 0.03717202693223953, -0.04655994847416878, 0.02754250355064869, -0.0518406517803669, -0.034013956785202026, 0.019103730097413063, -0.0022606942802667618, 0.012019645422697067, 0.040002208203077316, 0.013003306463360786, -0.011346613988280296, -0.04445456713438034, -0.06157371774315834, 0.001566091668792069, 0.031511660665273666, -0.06823500245809555, 0.03522196039557457, 0.06354103982448578, -0.02296934463083744, 0.010915184393525124, -0.059261251240968704, -0.10050597786903381, 0.10982487350702286, -0.009301635436713696, 0.04272884875535965, 0.013417479582130909, -0.0025152380112558603, 0.043350107967853546, 0.021036537364125252, 0.001954378793016076, -0.03449716046452522, 0.027352673932909966, 0.06302332133054733, 0.021122822538018227, 0.03482504561543465, 0.018189096823334694, 0.012183588929474354, 0.015954289585351944, -0.07531045377254486, 0.012494218535721302, 0.00455158855766058, 0.010380210354924202, 0.017334865406155586, 0.03466973081231117, -0.04100312665104866, 0.00409427285194397 ]
730,231
mmengine.fileio.backends.petrel_backend
remove
Remove a file. Args: filepath (str or Path): Path to be removed. Raises: FileNotFoundError: If filepath does not exist, an FileNotFoundError will be raised. IsADirectoryError: If filepath is a directory, an IsADirectoryError will be raised. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.remove(filepath)
def remove(self, filepath: Union[str, Path]) -> None: """Remove a file. Args: filepath (str or Path): Path to be removed. Raises: FileNotFoundError: If filepath does not exist, an FileNotFoundError will be raised. IsADirectoryError: If filepath is a directory, an IsADirectoryError will be raised. Examples: >>> backend = PetrelBackend() >>> filepath = 'petrel://path/of/file' >>> backend.remove(filepath) """ if not has_method(self._client, 'delete'): raise NotImplementedError( 'Current version of Petrel Python SDK has not supported ' 'the `delete` method, please use a higher version or dev ' 'branch instead.') if not self.exists(filepath): raise FileNotFoundError(f'filepath {filepath} does not exist') if self.isdir(filepath): raise IsADirectoryError('filepath should be a file') filepath = self._map_path(filepath) filepath = self._format_path(filepath) filepath = self._replace_prefix(filepath) self._client.delete(filepath)
(self, filepath: Union[str, pathlib.Path]) -> NoneType
[ -0.006390711292624474, -0.003369689453393221, -0.03182051330804825, 0.002135589485988021, 0.004716189112514257, -0.04462946206331253, -0.025838108733296394, 0.0690729022026062, -0.03396756947040558, 0.013845776207745075, 0.011001382023096085, 0.011230768635869026, -0.0132952481508255, -0.010781170800328255, -0.04587732255458832, 0.008340497501194477, 0.024333331733942032, -0.01869959756731987, -0.026333583518862724, -0.07164202630519867, 0.010827048681676388, 0.015928607434034348, 0.02818702720105648, 0.05663096904754639, -0.004885935224592686, 0.04697838053107262, -0.017497612163424492, -0.009088298305869102, -0.010588486678898335, -0.00501897931098938, 0.03385746479034424, 0.004670311696827412, -0.036701858043670654, -0.0007248616893775761, -0.02389291115105152, 0.0542820505797863, -0.02348919026553631, 0.01204738486558199, -0.06892608851194382, -0.01409351360052824, -0.04011513292789459, 0.06272348016500473, 0.03088461421430111, -0.0017880686791613698, 0.016644293442368507, 0.00417942414060235, -0.01677274890244007, 0.00885432306677103, -0.01753431372344494, 0.010138888843357563, 0.04683157056570053, 0.05211663991212845, -0.06074157729744911, -0.0010775435948744416, 0.011561085470020771, -0.052703868597745895, 0.027379587292671204, 0.028480643406510353, -0.021800903603434563, 0.008234979584813118, 0.057218197733163834, -0.02846229262650013, -0.04092257469892502, -0.04701508209109306, 0.02994871698319912, -0.020553041249513626, 0.0026379460468888283, -0.025581195950508118, 0.04345500096678734, -0.03638989478349686, -0.06870587915182114, 0.0017295751022174954, 0.044042229652404785, -0.01578179933130741, 0.0356375053524971, -0.011836349964141846, 0.05608044192194939, 0.029196329414844513, 0.05637405440211296, -0.05156611278653145, -0.007083458825945854, -0.034664906561374664, -0.01069859229028225, 0.006519167684018612, 0.035490699112415314, 0.011625314131379128, 0.06129210442304611, -0.045253392308950424, -0.03640824556350708, 0.022975364699959755, -0.007340371608734131, -0.023397434502840042, -0.0072899069637060165, -0.015965308994054794, 0.04286777228116989, -0.010570134967565536, 0.011836349964141846, -0.018828053027391434, 0.018332578241825104, -0.03616968169808388, -0.0009519544546492398, -0.007078871130943298, 0.03824333846569061, 0.010184765793383121, 0.016506660729646683, 0.012405228801071644, 0.040408745408058167, -0.016515836119651794, 0.030866263434290886, 0.016369029879570007, -0.086689792573452, -0.03556410223245621, 0.023397434502840042, 0.03165535256266594, 0.010927978903055191, -0.009973729960620403, -0.03580266237258911, -0.04701508209109306, 0.049107085913419724, -0.027838360518217087, -0.0017880686791613698, -0.07061437517404556, -0.039307691156864166, -0.02917797863483429, 0.04859326034784317, 0.002010573633015156, 0.04011513292789459, -0.010597662068903446, -0.03772951290011406, 0.0038858093321323395, -0.0920482650399208, 0.0012054266408085823, 0.01337782759219408, 0.021213674917817116, -0.011533559300005436, 0.04132629185914993, 0.09718652069568634, -0.045473601669073105, 0.025838108733296394, 0.06426495313644409, 0.026884112507104874, 0.028260432183742523, 0.02372775226831436, 0.004899698309600353, 0.06532930582761765, -0.03259124979376793, -0.04407893121242523, -0.044262442737817764, -0.03005882352590561, 0.0024750817101448774, -0.04943740367889404, -0.006271430291235447, 0.03989491984248161, -0.006698089186102152, 0.04752890765666962, 0.038206636905670166, -0.018002262338995934, 0.023122170940041542, -0.05729160085320473, -0.008184514939785004, 0.018341753631830215, 0.06753142178058624, 0.041840121150016785, -0.03376571089029312, -0.006587983574718237, -0.028223728761076927, 0.012093262746930122, 0.0696234256029129, -0.002842100104317069, 0.0498778261244297, -0.027893412858247757, -0.015708396211266518, 0.03038913942873478, 0.021085217595100403, 0.011239944025874138, -0.045473601669073105, 0.056667670607566833, 0.06628355383872986, -0.009450729005038738, 0.015047762542963028, 0.042794369161129, -0.05365811660885811, 0.022755153477191925, -0.010882101021707058, 0.06672398000955582, 0.013001633808016777, -0.02024107612669468, 0.016313975676894188, 0.0383901447057724, 0.026021618396043777, -0.014001759700477123, 0.011717068962752819, 0.023140521720051765, 0.04268426075577736, 0.05472247302532196, -0.03226093575358391, 0.07758773118257523, -0.05710809305310249, -0.05953041464090347, -0.03027903288602829, 0.03270135819911957, 0.007147687021642923, -0.0015953839756548405, -0.022296380251646042, -0.034554801881313324, -0.0029246793128550053, 0.002089712070301175, 0.00581724476069212, -0.0039133355021476746, 0.044812969863414764, -0.0007931042346172035, -0.044482652097940445, 0.03585771471261978, -0.024333331733942032, 0.03293991833925247, -0.0394911989569664, -0.09403016418218613, 0.024058068171143532, -0.004739127587527037, 0.05354801192879677, 0.04517998918890953, 0.07663348317146301, 0.004147310275584459, -0.00893690250813961, 0.05571342259645462, 0.03525213524699211, -0.03761940449476242, 0.05824584886431694, 0.0058906483463943005, -0.025507792830467224, 0.03741754591464996, 0.0011245679343119264, 0.04440924897789955, -0.0400417298078537, 0.0353989414870739, -0.0127447210252285, -0.02615007385611534, 0.0030187279917299747, -0.027379587292671204, 0.00002664827297849115, -0.014790848828852177, -0.012542860582470894, 0.006225552875548601, 0.0641915500164032, -0.06591653823852539, 0.036151330918073654, 0.010597662068903446, -0.011882226914167404, -0.005656674038618803, -0.07545902580022812, 0.0422438383102417, -0.002307629445567727, 0.004161073360592127, 0.04026193916797638, 0.041289590299129486, 0.009285570122301579, -0.03200402110815048, -0.012616263702511787, -0.0542820505797863, 0.04562041163444519, -0.0019406108185648918, -0.036316487938165665, 0.05277727171778679, -0.016699345782399178, 0.05296078324317932, -0.009698466397821903, 0.028994468972086906, 0.031361740082502365, 0.056667670607566833, -0.0035073214676231146, 0.008184514939785004, 0.030646052211523056, 0.049510806798934937, -0.03723403438925743, 0.026241829618811607, -0.0003263024555053562, -0.06375113129615784, -0.009010306559503078, 0.044923074543476105, 0.05376822501420975, -0.03772951290011406, -0.01985570602118969, 0.04958420991897583, -0.0157726239413023, 0.057071391493082047, 0.04077576473355293, 0.01791968196630478, 0.02581975795328617, -0.0009794809157028794, 0.053804926574230194, 0.033343639224767685, -0.050611864775419235, -0.04672146588563919, 0.014157742261886597, 0.028994468972086906, 0.017938032746315002, -0.06184263154864311, 0.012331824749708176, 0.05575012415647507, -0.03407767787575722, 0.01168954186141491, 0.025838108733296394, 0.059053290635347366, 0.005798893515020609, -0.028425589203834534, -0.013368652202188969, 0.049180492758750916, -0.004807943478226662, -0.01009301096200943, 0.036151330918073654, 0.013331950642168522, 0.003810111666098237, -0.09087380021810532, 0.01682780310511589, 0.09924183040857315, 0.03805982694029808, 0.01732327789068222, -0.013065861538052559, -0.02510407194495201, -0.03556410223245621, -0.03547234833240509, -0.006234728265553713, -0.013910004869103432, 0.04015183448791504, 0.004163367208093405, -0.029967067763209343, -0.06165912374854088, 0.0021046223118901253, -0.019543740898370743, 0.01163448952138424, 0.07876218855381012, 0.052373554557561874, 0.022516591474413872, -0.05505278706550598, -0.023030417039990425, -0.04187682271003723, 0.06386123597621918, -0.010946329683065414, -0.0004848659737035632, 0.10041628777980804, -0.007500942330807447, -0.03824333846569061, 0.031233282759785652, 0.0230120662599802, -0.04826294630765915, 0.0011498003732413054, -0.023617645725607872, -0.049510806798934937, 0.06753142178058624, 0.0038238749839365482, 0.06602664291858673, 0.048116136342287064, -0.03637154400348663, -0.019213423132896423, -0.026021618396043777, -0.01803896389901638, -0.008643288165330887, 0.08096430450677872, -0.005986990872770548, -0.04000502824783325, -0.009414026513695717, -0.062466565519571304, -0.00563832325860858, -0.008794683031737804, 0.0161671694368124, -0.06052136421203613, -0.005968639627099037, 0.005252953618764877, -0.032242584973573685, 0.005918174982070923, 0.04521669074892998, -0.03868376091122627, -0.015167043544352055, 0.02332403138279915, 0.008014768362045288, 0.03308672457933426, 0.032627951353788376, -0.025691300630569458, -0.0043881661258637905, 0.019231773912906647, -0.002219315618276596, 0.05986073240637779, -0.007464240770787001, 0.01611211523413658, -0.020718200132250786, 0.09307591617107391, 0.0466480627655983, -0.03044419176876545, -0.04921719431877136, -0.002223903313279152, -0.007234854158014059, -0.026994217187166214, 0.02029612846672535, -0.049400702118873596, -0.016616767272353172, -0.04077576473355293, -0.014166917651891708, -0.011395927518606186, -0.016534186899662018, -0.0024980201851576567, 0.011662015691399574, -0.012790597975254059, -0.0663936659693718, 0.016534186899662018, 0.0012753895716741681, 0.058502763509750366, 0.0018832641653716564, 0.0608883835375309, -0.022314731031656265, -0.034995224326848984, 0.008753393776714802, -0.00995537918061018, 0.015809325501322746, 0.0020759489852935076, 0.02409476973116398, 0.05692458525300026, -0.011616138741374016, -0.04066566005349159, 0.0493272989988327, -0.004858408588916063, 0.002660884754732251, 0.02626018039882183, -0.061255402863025665, -0.024076418951153755, -0.004918049089610577, 0.015258798375725746, 0.028058571740984917, -0.04033534228801727, -0.019488686695694923, 0.008675402030348778, -0.004986864980310202, -0.06422825157642365, -0.001782334060408175, -0.03093966655433178, 0.0008166163461282849, -0.010643539018929005, -0.04855655878782272, -0.03303167223930359, -0.011010557413101196, 0.000936470867600292, -0.001627498073503375, -0.03481171280145645, -0.02526923082768917, -0.03409602865576744, -0.020644795149564743, -0.01798391155898571, -0.025672949850559235, 0.0035119091626256704, 0.048116136342287064, -0.024957263842225075, -0.004734539892524481, -0.02205781824886799, 0.09190145879983902, -0.005551156122237444, -0.03277476131916046, -0.014212794601917267, -0.06290698796510696, 0.0059594642370939255, -0.035600803792476654, -0.0328848659992218, -0.013754021376371384, 0.1085641011595726, 0.07912921160459518, -0.07329361140727997, -0.02062644436955452, 0.032352689653635025, 0.029691804200410843, -0.02057139202952385, -0.049180492758750916, -0.020828304812312126, 0.034224484115839005, -0.08243237435817719, 0.0015024823369458318, 0.024975614622235298, -0.0013786136405542493, 0.057071391493082047, 0.004931812174618244, 0.013359476812183857, 0.012166665866971016, 0.020222723484039307, 0.026847409084439278, -0.043932124972343445, -0.05296078324317932, 0.05075867101550102, 0.04352840408682823, 0.03916088491678238, -0.00794136431068182, 0.02046128734946251, 0.02752639353275299, -0.0364265963435173, -0.003956919070333242, -0.027875062078237534, 0.012552035972476006, -0.03558245301246643, 0.032242584973573685, -0.002775578061118722, -0.016635118052363396, 0.01190975308418274, -0.01925012469291687, 0.02598491683602333, -0.006230140570551157, -0.026388635858893394, -0.00907453428953886, 0.06077827885746956, 0.041399698704481125, 0.020479638129472733, 0.018607841804623604, 0.042390648275613785, -0.07744092494249344, -0.009881975129246712, -0.05285067856311798, 0.06771492958068848, 0.01731410250067711, 0.021800903603434563, 0.023691050708293915, 0.03734414279460907, -0.020167671144008636, -0.0047437152825295925, -0.011928103864192963, -0.01704801432788372, 0.0005829287692904472, -0.06782503426074982, -0.03000376932322979, 0.044812969863414764, 0.0005284494254738092, -0.008482716977596283, -0.026682252064347267, -0.034940168261528015, 0.02062644436955452, 0.03407767787575722, 0.015983659774065018, 0.041730012744665146, -0.05615384504199028, -0.048740070313215256, 0.012322649359703064, -0.040298640727996826, -0.023837856948375702, -0.030590999871492386, 0.053034186363220215, -0.01753431372344494, -0.00018795365758705884, 0.044592760503292084, -0.015029411762952805, 0.024700351059436798, -0.017167294397950172, -0.061585720628499985, -0.036646805703639984, -0.040628958493471146, 0.001760542276315391, 0.05163951590657234, -0.02956334687769413, -0.003876633942127228, 0.013588863424956799, 0.002906328532844782, 0.05901658907532692, 0.06734791398048401, 0.011717068962752819, -0.017882980406284332, 0.0037917608860880136, -0.04000502824783325, -0.041619908064603806, -0.018763825297355652, 0.010716943070292473, -0.008689165115356445, 0.03138009086251259, 0.041399698704481125, 0.053364504128694534, -0.0010144623229280114, 0.05956711620092392, -0.07692709565162659, -0.007078871130943298, -0.012487807311117649, 0.0630170926451683, -0.020828304812312126, -0.03624308481812477, 0.022094519808888435, 0.02002086490392685, -0.007147687021642923, -0.005587858147919178, 0.04631774500012398, -0.02741628885269165, -0.03143514320254326, 0.026223478838801384, -0.026663901284337044, -0.04466616362333298, 0.01787380501627922, 0.01991075836122036, 0.015956133604049683, -0.051712919026613235, -0.004479920491576195, 0.008482716977596283, -0.04037204384803772, 0.08610256016254425, -0.013662267476320267, -0.04789592698216438, -0.0145339360460639, 0.04653795808553696, -0.005321769509464502, 0.02348919026553631, 0.07538561522960663, -0.016369029879570007, -0.08646958321332932, 0.038757164031267166, 0.022406484931707382, -0.0160478875041008, 0.0768536925315857, -0.05714479461312294, -0.027673201635479927, -0.009937028400599957, -0.04202362895011902, -0.03044419176876545, 0.0010993353789672256, 0.024425087496638298, 0.020644795149564743, 0.04198692739009857, 0.007239441853016615, 0.024351684376597404, -0.00824415497481823, -0.049180492758750916, -0.05835595726966858, -0.028810959309339523, -0.07233936339616776, 0.015506535768508911, 0.0063127195462584496, -0.03481171280145645, 0.012607088312506676, 0.0015460657887160778, -0.02156234160065651, -0.03850024938583374, 0.03721568360924721, 0.0032274697441607714, -0.09116742014884949, -0.023287329822778702, 0.020259426906704903, 0.007110984995961189, -0.07204575091600418, 0.0008739629993215203, -0.04103267937898636, 0.03382076323032379, -0.045803919434547424, 0.06731121242046356, -0.08610256016254425, -0.04125288873910904, 0.04969431832432747, -0.034940168261528015, -0.01874547451734543, 0.00003548324093571864, -0.06485218554735184, 0.07824836671352386, -0.01163448952138424, -0.0013912298018112779, 0.023966314271092415, -0.05853946506977081, -0.08632276952266693, 0.010294871404767036, -0.018727123737335205, 0.050171442329883575, 0.0021550871897488832, -0.030756158754229546, 0.047418802976608276, 0.024755403399467468, -0.036096278578042984, 0.02653544396162033, 0.05817244574427605, -0.027820009738206863, -0.030866263434290886, 0.045473601669073105, -0.034334588795900345, 0.012322649359703064, -0.013469582423567772, -0.016864504665136337, 0.027709903195500374, -0.03082956187427044, 0.00290862238034606, 0.05846606194972992, 0.05729160085320473, -0.0367385596036911, -0.013331950642168522, -0.03227928653359413, 0.0015437719412147999, -0.047565609216690063, 0.05916339531540871, 0.00545940175652504, -0.010817873291671276, -0.0055740950629115105, -0.004803355783224106, 0.018222473561763763, 0.026553794741630554, -0.03149019554257393, -0.023085469380021095, -0.007789969444274902, -0.025562845170497894, -0.026186777278780937, -0.026572145521640778, -0.010138888843357563, 0.008124873973429203, 0.047418802976608276, -0.0076477499678730965, -0.009781045839190483, 0.003525672247633338, 0.04396882653236389, 0.01594695821404457, 0.02057139202952385, 0.0005086648161523044, 0.011340874247252941, -0.021213674917817116, -0.013983407989144325, -0.024149823933839798, 0.039748113602399826, -0.02260834537446499, 0.01803896389901638, -0.006945827044546604, 0.03738084435462952, -0.019433634355664253, 0.040078431367874146, 0.02890271320939064, -0.022021114826202393, -0.027397938072681427, 0.01688285544514656, -0.033343639224767685, -0.025067370384931564, -0.014763322658836842, 0.03512367978692055, -0.0036610104143619537, -0.008858911693096161, -0.03960130736231804, 0.04264755919575691, -0.017837103456258774, -0.07248616963624954, 0.08169833570718765, -0.01324019581079483, -0.04903368279337883, -0.021654097363352776, -0.00770739046856761, -0.017772875726222992, -0.02725112996995449, 0.013698969036340714, 0.013579688034951687, 0.0920482650399208, -0.03049924410879612, -0.05266716703772545, -0.00021490658400580287, -0.02348919026553631, -0.07204575091600418, 0.059053290635347366, 0.00484005780890584, 0.012093262746930122, 0.025746354833245277, -0.012166665866971016, -0.014497234486043453, -0.024186525493860245, -0.03960130736231804, -0.009271807037293911, 0.03266465291380882, -0.02917797863483429, -0.045363496989011765, -0.01288235280662775, 0.006087921094149351, 0.0035967822186648846, -0.025122422724962234, -0.026039969176054, 0.006601747125387192, -0.0012937405845150352, -0.021800903603434563, 0.05956711620092392, 0.028664151206612587, -0.04778582230210304, 0.01781875267624855 ]
730,232
mmengine.fileio.backends.petrel_backend
rmtree
Recursively delete a directory tree. Args: dir_path (str or Path): A directory to be removed. Examples: >>> backend = PetrelBackend() >>> dir_path = 'petrel://path/of/dir' >>> backend.rmtree(dir_path)
def rmtree(self, dir_path: Union[str, Path]) -> None: """Recursively delete a directory tree. Args: dir_path (str or Path): A directory to be removed. Examples: >>> backend = PetrelBackend() >>> dir_path = 'petrel://path/of/dir' >>> backend.rmtree(dir_path) """ for path in self.list_dir_or_file( dir_path, list_dir=False, recursive=True): filepath = self.join_path(dir_path, path) self.remove(filepath)
(self, dir_path: Union[str, pathlib.Path]) -> NoneType
[ 0.04809683933854103, 0.006104812491685152, 0.025976741686463356, -0.05881386622786522, 0.04257144778966904, 0.02740444429218769, -0.036341480910778046, 0.030630677938461304, -0.004964505787938833, -0.008983391337096691, 0.03569252789020538, 0.04138479009270668, 0.016418561339378357, 0.0028345428872853518, -0.04142187163233757, -0.043127696961164474, -0.0265144482254982, -0.0037523505743592978, -0.012663893401622772, -0.06630466133356094, -0.006929912604391575, 0.05187932029366493, 0.0588880330324173, 0.047948505729436874, -0.022249886766076088, 0.01275660190731287, -0.004487060476094484, 0.023992793634533882, -0.027052152901887894, 0.013665138743817806, 0.025772785767912865, 0.021749263629317284, -0.031557757407426834, 0.025253621861338615, -0.04561226814985275, 0.005775699857622385, -0.052732229232788086, -0.009966094978153706, -0.08632955700159073, -0.04561226814985275, -0.018068762496113777, -0.0038056576158851385, -0.030445260927081108, 0.008589383214712143, 0.027497151866555214, -0.040643125772476196, 0.02499403990805149, -0.003995708655565977, -0.02017323113977909, -0.05284348130226135, 0.0316690057516098, 0.043646860867738724, -0.025179455056786537, -0.015695441514253616, 0.03569252789020538, -0.004127817694097757, -0.03346753865480423, 0.029388392344117165, 0.04665059596300125, -0.014277010224759579, 0.06159510090947151, 0.019097819924354553, -0.10628028959035873, 0.020024897530674934, -0.008844329975545406, -0.05428972467780113, -0.05588429793715477, -0.003773209871724248, 0.023566337302327156, -0.023974252864718437, -0.14744257926940918, 0.01327576581388712, -0.013461180962622166, 0.021118851378560066, -0.00419966597110033, 0.011597753502428532, 0.04739225655794144, -0.022750508040189743, -0.017290016636252403, -0.03801022097468376, -0.01404524128884077, -0.015231901779770851, -0.009493284858763218, 0.0005458175437524915, 0.0011594276875257492, -0.002183270175009966, 0.033931076526641846, 0.016900643706321716, 0.006642518099397421, 0.00023017622879706323, 0.03908563405275345, -0.04327603057026863, -0.002873943652957678, 0.004691017791628838, -0.013192328624427319, 0.018152199685573578, 0.05551346763968468, 0.01506502740085125, -0.062410932034254074, -0.04079145938158035, 0.02933276630938053, 0.03285566717386246, -0.05773845687508583, -0.026588615030050278, -0.019190527498722076, 0.04290519654750824, -0.022286970168352127, -0.017456891015172005, 0.05985219404101372, 0.046910177916288376, -0.04038354381918907, 0.0005443689879029989, 0.04520435258746147, 0.051248904317617416, -0.025865493342280388, -0.0007329715299420059, -0.036823563277721405, -0.08529122918844223, 0.010086615569889545, -0.007453712169080973, 0.03526607155799866, -0.02402987703680992, 0.005604190286248922, -0.013776388019323349, 0.05929594859480858, 0.047911420464515686, 0.0743517056107521, -0.005914761684834957, -0.10865361243486404, 0.02940693311393261, -0.03721293434500694, 0.039678964763879776, 0.014397530816495419, 0.05314014479517937, 0.04045771062374115, 0.018625009804964066, 0.03406086936593056, -0.047911420464515686, 0.024493416771292686, 0.041162289679050446, 0.06382009387016296, 0.046131432056427, 0.026532988995313644, -0.0002621894236654043, 0.03956771641969681, -0.011069318279623985, -0.0691971480846405, 0.024326542392373085, -0.036341480910778046, 0.013915450312197208, -0.10383280366659164, -0.00858011282980442, 0.08996370434761047, 0.04175562039017677, -0.009993907064199448, 0.049357663840055466, -0.04246019944548607, 0.02069239504635334, -0.0038450586143881083, -0.008139749988913536, 0.006165072787553072, -0.028350064530968666, 0.0433872789144516, -0.02434508502483368, -0.02610653266310692, 0.0030500886496156454, -0.008139749988913536, 0.005632002372294664, -0.08121208846569061, 0.019783858209848404, 0.0022191943135112524, -0.023158423602581024, 0.003362977644428611, -0.025809869170188904, -0.06100177392363548, 0.01876407116651535, 0.0043526338413357735, 0.05822053551673889, -0.028665270656347275, 0.00037112116115167737, -0.012376499362289906, 0.019338859245181084, -0.005641273222863674, -0.029944639652967453, 0.029536724090576172, 0.027293194085359573, 0.018550843000411987, -0.007286837790161371, 0.009372764267027378, -0.0048532565124332905, -0.08766455203294754, 0.01313670352101326, -0.012422853149473667, -0.021434057503938675, 0.04487060382962227, 0.05966677889227867, 0.06463591754436493, -0.07772626727819443, 0.010411093011498451, 0.0253092460334301, -0.005497576203197241, 0.008301989175379276, 0.053733475506305695, 0.011810981668531895, -0.045426853001117706, -0.009395942091941833, -0.027942148968577385, 0.028071939945220947, 0.007305379491299391, -0.008654278703033924, 0.03773209825158119, -0.016807934269309044, 0.026903821155428886, -0.000793231651186943, -0.004672476090490818, -0.08699705451726913, -0.011662648990750313, 0.012719518505036831, -0.01844886504113674, 0.0020951975602656603, -0.005386326462030411, 0.03956771641969681, -0.040754374116659164, -0.060927607119083405, -0.0108468197286129, -0.01396180409938097, -0.09456201642751694, 0.03801022097468376, 0.02799777314066887, -0.05859136953949928, 0.02406696043908596, 0.04275686666369438, 0.08566205948591232, -0.02571715973317623, -0.020673852413892746, -0.0433872789144516, 0.03172462806105614, -0.06778798997402191, -0.0450931042432785, -0.015343151055276394, -0.027052152901887894, -0.04349852725863457, 0.022083012387156487, 0.009043651632964611, -0.007736471015959978, 0.05825762078166008, 0.07290545850992203, 0.0005226405919529498, 0.0192832350730896, -0.062299683690071106, -0.06982756406068802, -0.016103355213999748, -0.011885147541761398, 0.03547002747654915, 0.04876433312892914, 0.009312504902482033, 0.009103911928832531, 0.10338780283927917, -0.025624452158808708, 0.06534049659967422, 0.02490133047103882, -0.04242311790585518, -0.016372207552194595, 0.01512992288917303, -0.0032563635613769293, -0.0038126108702272177, 0.01508356910198927, 0.01394326239824295, 0.05143431946635246, 0.016418561339378357, 0.08877705037593842, -0.052695147693157196, 0.08373373746871948, -0.014212114736437798, 0.04142187163233757, 0.07249754667282104, -0.05377056077122688, -0.009312504902482033, 0.022639259696006775, 0.02434508502483368, -0.05632929503917694, -0.06930840015411377, 0.016279499977827072, 0.009715783409774303, 0.0008204645710065961, 0.03676793724298477, 0.006480279378592968, 0.035859402269124985, 0.021563848480582237, 0.05733054131269455, 0.03265170753002167, -0.04231186583638191, 0.0009369287872686982, 0.031242549419403076, 0.04828225448727608, -0.012914204970002174, -0.010392551310360432, 0.04182978719472885, 0.004375811200588942, -0.030834633857011795, 0.009266151115298271, 0.03294837474822998, 0.0021566166542470455, 0.020748019218444824, 0.027812357991933823, -0.02933276630938053, 0.013387015089392662, 0.03172462806105614, -0.010401821695268154, 0.036063358187675476, -0.032688792794942856, 0.023047173395752907, -0.05451222136616707, 0.022806134074926376, 0.048504751175642014, 0.014304823242127895, 0.023603420704603195, -0.036619603633880615, -0.06756548583507538, -0.02723756991326809, -0.02041427046060562, -0.011060047894716263, 0.015092839486896992, 0.0523243173956871, -0.051768068224191666, -0.030185678973793983, -0.025976741686463356, 0.032206710427999496, -0.0028090481646358967, 0.01404524128884077, 0.004992318339645863, 0.002924933098256588, 0.0389002189040184, -0.036378566175699234, 0.07309087365865707, 0.026180699467658997, 0.05110057443380356, -0.008371519856154919, -0.036693770438432693, 0.031557757407426834, -0.011180567555129528, 0.0043085976503789425, 0.0010545519180595875, 0.014786903746426105, -0.009780678898096085, 0.021953221410512924, -0.02221280336380005, 0.0012863215524703264, 0.0888512134552002, 0.03102005086839199, 0.056069713085889816, 0.07802293449640274, 0.008408603258430958, -0.006396842189133167, -0.02482716552913189, -0.003824199317023158, 0.0006350488401949406, 0.09589701145887375, -0.058072205632925034, -0.006702778395265341, 0.004285420756787062, 0.00791261624544859, -0.0032586813904345036, -0.0011727544479072094, -0.0007121122325770557, -0.0447593554854393, -0.07490795105695724, 0.00067676737671718, 0.012914204970002174, 0.050766825675964355, 0.06530341506004333, -0.03990146145224571, -0.030037347227334976, -0.014573675580322742, 0.044054776430130005, 0.02313988283276558, 0.024882789701223373, -0.04713267460465431, 0.04012396186590195, 0.019023653119802475, -0.00273719965480268, 0.008825788274407387, 0.07691044360399246, -0.05098932236433029, -0.00010770045628305525, 0.009076099842786789, 0.02775673381984234, -0.010494530200958252, -0.03697189316153526, -0.012228166684508324, -0.027552776038646698, -0.03897438570857048, -0.004354951903223991, 0.006865017116069794, -0.05284348130226135, -0.03728710114955902, 0.03934521600604057, 0.008144385181367397, -0.04090270772576332, -0.012979100458323956, 0.03178025409579277, 0.007745741866528988, -0.015936480835080147, -0.005891584325581789, -0.007555690594017506, 0.002924933098256588, -0.005136015359312296, 0.039271049201488495, -0.022231344133615494, 0.0017741966294124722, 0.028906309977173805, 0.05299181118607521, 0.04142187163233757, 0.03852938860654831, -0.017002621665596962, 0.027793817222118378, -0.0019144173711538315, -0.0068140276707708836, 0.06593383103609085, 0.03728710114955902, -0.016687415540218353, -0.02775673381984234, -0.05117473751306534, -0.004660887643694878, 0.0034394615795463324, 0.0026004554238170385, 0.01156994141638279, 0.0029365215450525284, -0.011597753502428532, 0.050803907215595245, 0.0020812915172427893, -0.05488305166363716, -0.03941938281059265, -0.02936984971165657, 0.014703466556966305, 0.020117605105042458, -0.08291791379451752, -0.030630677938461304, -0.05295472964644432, 0.024252375587821007, -0.05770137161016464, -0.024196751415729523, 0.05925886332988739, -0.026848196983337402, -0.012858579866588116, 0.03508065268397331, -0.0027835534419864416, 0.004398988094180822, -0.03267024829983711, -0.006369030103087425, 0.01502794399857521, -0.02213863655924797, 0.040606044232845306, -0.012181812897324562, -0.07498211413621902, -0.04034646227955818, 0.0012167906388640404, 0.029184434562921524, -0.0006257780478335917, -0.04349852725863457, 0.027460068464279175, 0.019468650221824646, 0.055142633616924286, -0.03226233646273613, 0.02961089089512825, 0.02430800162255764, 0.053251396864652634, 0.014953778125345707, -0.014378989115357399, -0.07516753673553467, 0.0045519559644162655, -0.013247952796518803, -0.016603978350758553, 0.02968505769968033, -0.009391305968165398, 0.0347839891910553, -0.05618096515536308, -0.0595555305480957, -0.04101395606994629, -0.005849866196513176, -0.007027255836874247, -0.04583476483821869, 0.05202765017747879, -0.023566337302327156, -0.004243702162057161, -0.0204884372651577, 0.005200910847634077, 0.025327786803245544, 0.009266151115298271, -0.02920297533273697, -0.04231186583638191, -0.024938413873314857, -0.006100177299231291, -0.02454904094338417, -0.05017349496483803, -0.04390644282102585, -0.0499139130115509, 0.017614493146538734, -0.03422774374485016, 0.01980239897966385, 0.03077900968492031, 0.012126187793910503, -0.06018594279885292, 0.018189283087849617, 0.05217598378658295, 0.046131432056427, 0.03191004693508148, 0.04780017212033272, -0.0544009730219841, 0.0037824807222932577, -0.02731173485517502, 0.011282546445727348, -0.032206710427999496, -0.0385664701461792, 0.03756522387266159, 0.005784970708191395, 0.02523507922887802, -0.012395041063427925, -0.014332635328173637, -0.00592403206974268, -0.06827006489038467, 0.013767117634415627, -0.012116917409002781, 0.05981511250138283, 0.016576165333390236, 0.004373493138700724, -0.013544618152081966, 0.04865308478474617, 0.04513018578290939, 0.07157047092914581, 0.02089635096490383, 0.01675231009721756, -0.018189283087849617, 0.005224087741225958, 0.032762959599494934, -0.006684236694127321, -0.05592138320207596, -0.011671919375658035, 0.024604666978120804, -0.023955710232257843, -0.005265806335955858, -0.007680846378207207, -0.001986265880987048, 0.024771539494395256, -0.01812438666820526, -0.009284691885113716, 0.0192832350730896, 0.015194818377494812, 0.006763038225471973, 0.0740179568529129, -0.0495801642537117, -0.04001271352171898, 0.005886949133127928, 0.049394749104976654, -0.015760336071252823, -0.01647418737411499, -0.010160781443119049, -0.01032765582203865, 0.04995099455118179, -0.031205466017127037, -0.04223770275712013, 0.02961089089512825, 0.024326542392373085, 0.018625009804964066, 0.11377108842134476, 0.042089369148015976, -0.0019677244126796722, 0.046910177916288376, 0.0028971205465495586, -0.0643763393163681, 0.0069762663915753365, -0.040235210210084915, -0.02117447555065155, -0.013043995946645737, -0.00011385684047127143, 0.05477180331945419, -0.03749105706810951, -0.03491378203034401, -0.020618228241801262, -0.004452295135706663, -0.014230656437575817, 0.010355467908084393, 0.01724366284906864, -0.05354806035757065, -0.04713267460465431, 0.004359587095677853, 0.07038380950689316, 0.015231901779770851, -0.10791195183992386, 0.035173363983631134, 0.004672476090490818, -0.04108812287449837, 0.028628187254071236, -0.0014891199534758925, -0.008487404324114323, 0.01365586742758751, 0.011820252053439617, -0.008617195300757885, 0.017503244802355766, 0.03526607155799866, 0.017735013738274574, -0.037342727184295654, 0.051285989582538605, -0.031279630959033966, -0.011050776578485966, 0.0002663902414496988, 0.018050219863653183, 0.021879054605960846, 0.00275805895216763, -0.011662648990750313, -0.007500065956264734, 0.01394326239824295, 0.02595820091664791, 0.007106057368218899, 0.028034856542944908, -0.0012874804669991136, -0.035210445523262024, -0.029722139239311218, -0.005177733954042196, -0.013563159853219986, -0.08477206528186798, -0.07323920726776123, -0.0017707201186567545, 0.019672608003020287, 0.015806689858436584, 0.028739437460899353, -0.0031288901809602976, -0.008955579251050949, -0.01767011731863022, 0.020951976999640465, 0.024437792599201202, -0.02210155315697193, -0.016455644741654396, -0.0096416175365448, -0.03437607362866402, -0.06930840015411377, -0.0671204924583435, -0.04105104133486748, 0.004936693701893091, -0.03274441510438919, 0.01996927335858345, 0.012747330591082573, -0.04653934761881828, 0.012802955694496632, -0.011106401681900024, -0.0420152023434639, -0.03061213530600071, -0.021044684574007988, -0.00018164946231991053, -0.001912099658511579, -0.00922443252056837, -0.011894418857991695, -0.0021763169206678867, -0.03291128948330879, 0.020469896495342255, 0.020877810195088387, 0.017456891015172005, -0.03700897842645645, -0.0169562678784132, 0.06207718327641487, 0.03574815019965172, -0.014434614218771458, 0.0026954810600727797, 0.015639815479516983, -0.004746642429381609, 0.0022829310037195683, 0.0027742828242480755, 0.060927607119083405, 0.012469206936657429, -0.0657484158873558, 0.004857891704887152, 0.04524143412709236, -0.05098932236433029, -0.023028632625937462, 0.02100760117173195, 0.016659602522850037, 0.020469896495342255, -0.026254866272211075, 0.0005319113261066377, 0.048430588096380234, -0.035377319902181625, 0.07357295602560043, -0.0041625830344855785, 0.05136015638709068, -0.012988370843231678, 0.003541440237313509, 0.04561226814985275, 0.05740470811724663, -0.048912666738033295, -0.037657931447029114, -0.06548883020877838, -0.03526607155799866, 0.015408046543598175, -0.05736762285232544, -0.012163271196186543, -0.00103427201975137, 0.059073448181152344, -0.03534023463726044, -0.002542512957006693, -0.02334383875131607, -0.011087859980762005, -0.05488305166363716, -0.016344396397471428, -0.010531612671911716, 0.053659308701753616, 0.02616215869784355, 0.03574815019965172, 0.03194712847471237, 0.024567583575844765, -0.008955579251050949, 0.04379519447684288, -0.01728074438869953, 0.04034646227955818, -0.02551320381462574, 0.025605911388993263, -0.008422508835792542, -0.007013349793851376, -0.043053530156612396, 0.030222762376070023, -0.03982729837298393, -0.024808622896671295, -0.055624715983867645, -0.036063358187675476, 0.008570841513574123, -0.016446374356746674, 0.0230657160282135, 0.044054776430130005, 0.015843773260712624, 0.014851799234747887, 0.025939660146832466, -0.05299181118607521, -0.004482425283640623, 0.014592217281460762, -0.019505733624100685, -0.01719730719923973, -0.00048092202632687986, 0.02382591925561428, 0.07305379211902618, 0.05836886912584305, -0.0254761204123497, -0.012089105322957039, -0.007759647909551859, 0.020136147737503052, -0.05699679255485535, 0.06396842002868652, 0.027812357991933823, 0.014786903746426105, 0.025383412837982178, -0.009817762300372124, -0.04431435838341713, 0.034728363156318665, -0.0616321861743927, -0.04034646227955818, 0.04720684140920639, 0.02024739608168602, -0.025531744584441185, -0.019895106554031372, -0.06552591919898987, -0.014286281540989876, -0.021953221410512924, 0.0426826998591423, -0.03838105499744415, -0.028183190152049065, -0.06348634511232376, 0.029462557286024094, 0.03309670463204384, -0.006531268823891878, -0.018810424953699112 ]
730,233
mmengine.fileio.handlers.pickle_handler
PickleHandler
null
class PickleHandler(BaseFileHandler): str_like = False def load_from_fileobj(self, file, **kwargs): return pickle.load(file, **kwargs) def load_from_path(self, filepath, **kwargs): return super().load_from_path(filepath, mode='rb', **kwargs) def dump_to_str(self, obj, **kwargs): kwargs.setdefault('protocol', 2) return pickle.dumps(obj, **kwargs) def dump_to_fileobj(self, obj, file, **kwargs): kwargs.setdefault('protocol', 2) pickle.dump(obj, file, **kwargs) def dump_to_path(self, obj, filepath, **kwargs): super().dump_to_path(obj, filepath, mode='wb', **kwargs)
()
[ 0.008117607794702053, -0.022045712918043137, -0.054960474371910095, 0.014133182354271412, 0.023019826039671898, -0.035136424005031586, -0.022917287424206734, 0.06866641342639923, -0.04087856411933899, -0.027668224647641182, -0.0014237856958061457, -0.02168682962656021, -0.04839802905917168, 0.0026382224168628454, 0.005490066017955542, 0.0065026311203837395, -0.055678244680166245, -0.015064571052789688, 0.005182451568543911, 0.029616450890898705, -0.014304079115390778, 0.006741886492818594, 0.061146948486566544, 0.035170603543519974, -0.00211591855622828, 0.007040956523269415, -0.042040660977363586, 0.014791135676205158, 0.05974559113383293, 0.010159826837480068, -0.00044833761057816446, -0.09857339411973953, 0.0014996211975812912, 0.026506124064326286, 0.0007273803348653018, -0.037358082830905914, -0.03115452267229557, 0.058925285935401917, -0.04675741866230965, 0.004253199324011803, -0.004554404877126217, 0.023019826039671898, -0.013449594378471375, -0.00243741855956614, 0.023566696792840958, 0.06032664328813553, -0.0197044238448143, 0.06507758051156998, 0.0032064549159258604, -0.012714737094938755, -0.005528517998754978, 0.014936397783458233, -0.04210902005434036, 0.010911773890256882, 0.03253879025578499, 0.06254830211400986, 0.02378886193037033, 0.037870775908231735, -0.05068805068731308, 0.012090963311493397, -0.01515856385231018, 0.018200531601905823, 0.10828033834695816, -0.026078881695866585, -0.00806206651031971, -0.048979081213474274, -0.03276095539331436, 0.0018446195172145963, -0.019550617784261703, 0.032231174409389496, 0.017081154510378838, -0.09269453585147858, -0.013509407639503479, 0.04234827682375908, -0.023019826039671898, 0.0304880253970623, -0.04176722839474678, 0.02462625876069069, 0.023720504716038704, 0.06254830211400986, 0.0059258537366986275, -0.09966713190078735, -0.012509660795331001, 0.015252557583153248, -0.043134402483701706, -0.06476996093988419, 0.019858231768012047, 0.004943195730447769, 0.00939079001545906, 0.0474751852452755, -0.07314391434192657, 0.024950962513685226, -0.04525352641940117, 0.040058258920907974, -0.05390091612935066, -0.08920823782682419, -0.009083176031708717, 0.023310350254178047, -0.0030547839123755693, -0.003691375255584717, -0.05995066836476326, -0.011843162588775158, -0.03619598597288132, -0.018132172524929047, -0.015141474083065987, -0.05721631646156311, 0.03540986031293869, -0.0073400260880589485, -0.039716463536024094, -0.01835433766245842, 0.023105274885892868, -0.011091215535998344, -0.034418657422065735, 0.08162041008472443, -0.019174642860889435, -0.011586816981434822, -0.01705552078783512, -0.002770667662844062, 0.008288504555821419, -0.03599090874195099, 0.0010718445992097259, 0.03831510618329048, -0.050927307456731796, 0.03992154076695442, 0.06367622315883636, 0.05284135416150093, 0.021738098934292793, -0.05981395021080971, 0.056225113570690155, 0.00810479000210762, 0.0032256809063255787, 0.05649854987859726, -0.029787346720695496, 0.007446836680173874, 0.010851959697902203, -0.0031530496198683977, -0.035888370126485825, 0.020695626735687256, 0.024318642914295197, 0.04046840965747833, 0.010663973167538643, -0.053148966282606125, 0.07389586418867111, -0.01973860338330269, 0.019123373553156853, 0.010732331313192844, 0.03423066809773445, -0.001899092923849821, -0.012928358279168606, 0.014765501022338867, 0.04320276156067848, 0.023754682391881943, -0.05390091612935066, 0.0696234405040741, 0.0024993687402457, -0.012321674264967442, -0.013757208362221718, 0.032060276716947556, -0.021413395181298256, -0.025942165404558182, 0.003778959857299924, -0.02900122106075287, 0.05065387114882469, -0.06770939379930496, 0.013902471400797367, 0.023344529792666435, 0.056396011263132095, -0.007369933184236288, 0.05376419797539711, 0.024489540606737137, -0.07006777077913284, 0.019345540553331375, -0.08305594325065613, 0.08510670810937881, 0.05301224812865257, 0.049525950103998184, -0.015568716451525688, -0.012953992933034897, 0.015859242528676987, 0.02125958725810051, 0.0038579998072236776, -0.038246747106313705, -0.010450351983308792, 0.02908666990697384, 0.08955002576112747, 0.02079816535115242, 0.029018310829997063, 0.029582271352410316, 0.00972403958439827, 0.042587533593177795, 0.02079816535115242, -0.04029751196503639, -0.029360104352235794, -0.031889379024505615, 0.035683292895555496, 0.05872020870447159, 0.01941389963030815, -0.09009689837694168, -0.014637327753007412, 0.05212358385324478, -0.02353251725435257, -0.03086399845778942, -0.01965315453708172, -0.04340783879160881, -0.01944807916879654, 0.014799680560827255, 0.08189384639263153, 0.03503388538956642, -0.03708465024828911, 0.017875825986266136, 0.03264132887125015, -0.008027886971831322, -0.02037092298269272, 0.0607026144862175, 0.08770433813333511, -0.04327112063765526, -0.07040956616401672, 0.042997684329748154, -0.013415414839982986, 0.021652650088071823, 0.06487250328063965, 0.10117102414369583, -0.08825121074914932, 0.05414016917347908, -0.017491308972239494, 0.005511428229510784, 0.046586520969867706, -0.054584503173828125, -0.0017965547740459442, 0.01332142110913992, 0.006737614516168833, 0.005836132448166609, -0.046791598200798035, 0.06124948710203171, 0.03435029834508896, 0.04029751196503639, 0.0015188470715656877, -0.039135415107011795, -0.00420833844691515, 0.015440544113516808, 0.05304642766714096, -0.02522439695894718, 0.022763481363654137, -0.06767521053552628, 0.05335404351353645, -0.04655234143137932, 0.049525950103998184, 0.025497833266854286, -0.01932845078408718, 0.02778785303235054, 0.08565358072519302, 0.03865690156817436, -0.03363253176212311, 0.032692596316337585, 0.004768026527017355, -0.06432563066482544, 0.008369680494070053, -0.030368397012352943, -0.015978869050741196, -0.029445553198456764, -0.06572698801755905, -0.029103759676218033, 0.03106907568871975, 0.004090846981853247, 0.02028547413647175, -0.022592583671212196, -0.015474723652005196, -0.07519467920064926, 0.024557899683713913, 0.03267550840973854, 0.03961392492055893, -0.014765501022338867, -0.03746062144637108, 0.04829549416899681, -0.09207930415868759, -0.0633002519607544, -0.007254577707499266, 0.01924300193786621, 0.01543199922889471, 0.011783348396420479, -0.019670244306325912, -0.0017281959298998117, 0.05325150489807129, -0.06647893041372299, 0.030676010996103287, 0.023669235408306122, -0.017243508249521255, 0.010424717329442501, 0.03903287649154663, -0.023805951699614525, -0.005037188995629549, 0.038075853139162064, -0.06623967736959457, -0.008929368108510971, -0.031923558562994, -0.008232963271439075, -0.06087351217865944, -0.014312624000012875, 0.08510670810937881, -0.02715553343296051, -0.05684034153819084, -0.04846638813614845, 0.02028547413647175, -0.005280717276036739, 0.0036166077479720116, -0.024660436436533928, 0.050927307456731796, -0.0004614219069480896, -0.031086165457963943, 0.03139377757906914, 0.04374963417649269, -0.0050243716686964035, -0.00844231154769659, -0.007587826810777187, 0.02155011147260666, 0.07827083021402359, 0.0035311593674123287, 0.06972597539424896, -0.03137668967247009, 0.04761190339922905, -0.06835880130529404, 0.021242497488856316, -0.031086165457963943, 0.02736061066389084, 0.08223563432693481, -0.02845435030758381, 0.037358082830905914, 0.0008197715505957603, 0.005532790441066027, 0.0174742192029953, -0.04029751196503639, 0.015192743390798569, 0.024985142052173615, -0.017405860126018524, -0.0010536868358030915, -0.004810750484466553, 0.0035845646634697914, 0.004840657580643892, 0.018251799046993256, -0.019721513614058495, 0.04665488004684448, -0.010074377991259098, -0.004844930022954941, 0.012928358279168606, -0.029736077412962914, 0.004095119424164295, 0.01721787266433239, 0.043305300176143646, 0.03927212953567505, 0.02664284221827984, 0.008369680494070053, -0.07341735064983368, -0.032145727425813675, -0.011125395074486732, 0.00985221192240715, -0.07601498812437057, -0.023635055869817734, -0.014372438192367554, 0.007822810672223568, -0.0006227059639059007, 0.003612335305660963, -0.05376419797539711, -0.030676010996103287, -0.0070794085040688515, 0.019379720091819763, 0.02836890146136284, 0.013885381631553173, 0.007378478068858385, 0.037528980523347855, -0.01873031072318554, -0.0037063288036733866, -0.0004705008177552372, -0.04081020504236221, -0.01595323532819748, -0.00022109800192993134, 0.022660942748188972, 0.027343520894646645, 0.008185965940356255, -0.04576621577143669, -0.009835122153162956, 0.05506301298737526, 0.008070610463619232, 0.010877594351768494, -0.01212514191865921, 0.029906975105404854, 0.007369933184236288, 0.059301260858774185, 0.0394088476896286, -0.007297302130609751, 0.016346298158168793, 0.029650630429387093, 0.02108868956565857, -0.04703085497021675, -0.03457246348261833, -0.007767268922179937, -0.014808225445449352, 0.0008224418270401657, 0.07095643877983093, -0.002448099432513118, 0.046073831617832184, 0.025156037881970406, -0.04556114226579666, -0.0842863991856575, 0.04087856411933899, -0.011586816981434822, 0.055883318185806274, 0.020815255120396614, 0.024181926622986794, 0.04087856411933899, -0.020353833213448524, 0.05646437034010887, 0.013663215562701225, -0.006968325469642878, -0.044809192419052124, 0.015440544113516808, -0.0029180662240833044, -0.023395799100399017, -0.02824927493929863, -0.03166721388697624, 0.011774803511798382, -0.004498863592743874, 0.09310468286275864, 0.012355852872133255, -0.03657195717096329, 0.030556384474039078, -0.013082165271043777, -0.05055133253335953, -0.013825567439198494, 0.031017806380987167, 0.06972597539424896, -0.002924474887549877, -0.038793619722127914, -0.04836385324597359, -0.04648398607969284, 0.0468941368162632, -0.03493134677410126, 0.004048122558742762, -0.025070590898394585, 0.011544092558324337, 0.01662827841937542, -0.02491678297519684, -0.016277939081192017, 0.027685314416885376, -0.013962284661829472, 0.07950128614902496, -0.051337458193302155, -0.030573474243283272, 0.04036587104201317, 0.08408132195472717, 0.018747400492429733, -0.05068805068731308, -0.012842909432947636, -0.0017239234875887632, -0.021293766796588898, -0.011552637442946434, -0.04450158029794693, 0.050585512071847916, -0.044228143990039825, 0.022797660902142525, -0.023891400545835495, -0.014680052176117897, -0.04409142583608627, 0.04098110273480415, -0.01654282957315445, -0.011057035997509956, -0.03383760526776314, 0.010937408544123173, 0.024267373606562614, -0.018456876277923584, 0.010014564730226994, 0.013124889694154263, 0.01389392651617527, -0.0448775514960289, 0.0010029517579823732, 0.007989434525370598, 0.04248499497771263, 0.048979081213474274, -0.021874817088246346, 0.01573961414396763, -0.0828508660197258, -0.03684539347887039, -0.05742139369249344, -0.010475986637175083, 0.007562192156910896, -0.015543082728981972, -0.06494086235761642, 0.042997684329748154, -0.014850949868559837, 0.03506806492805481, 0.005934398155659437, 0.009835122153162956, 0.037358082830905914, -0.07341735064983368, -0.01662827841937542, 0.04508262872695923, 0.013586311601102352, -0.04815877601504326, 0.029958244413137436, -0.03725554794073105, -0.014449341222643852, 0.006814518012106419, -0.02192608453333378, -0.011860252358019352, -0.009339520707726479, 0.0021746642887592316, -0.024660436436533928, 0.023652145639061928, 0.021840637549757957, -0.02951391227543354, 0.002448099432513118, -0.05537062883377075, -0.0024630529806017876, -0.026847919449210167, 0.06535101681947708, -0.03674285486340523, 0.018935387954115868, -0.008869554847478867, 0.0373922623693943, -0.020148755982518196, -0.002892431803047657, 0.03520478308200836, -0.011253567412495613, 0.03633270412683487, -0.042040660977363586, -0.04118617624044418, -0.027104264125227928, -0.026745380833745003, 0.004189112689346075, 0.01751694269478321, 0.06914492696523666, 0.035888370126485825, -0.0051610893569886684, 0.016440290957689285, -0.025070590898394585, 0.011065580882132053, 0.07806575298309326, -0.026420677080750465, -0.011219387874007225, -0.030300037935376167, -0.06829044222831726, -0.008057793602347374, -0.008544850163161755, -0.04556114226579666, -0.05889110639691353, -0.03279513493180275, -0.024181926622986794, -0.010450351983308792, 0.044433221220970154, 0.017773287370800972, -0.041527971625328064, 0.026078881695866585, -0.03811003267765045, 0.06777775287628174, -0.030453845858573914, -0.018320158123970032, -0.08681567758321762, -0.0026873552706092596, -0.03224826604127884, 0.002458780538290739, 0.006336006335914135, -0.031120343133807182, 0.019225912168622017, -0.05998484790325165, 0.06258248537778854, 0.011851707473397255, 0.028744876384735107, 0.0325046107172966, 0.04033169150352478, -0.035683292895555496, -0.010364903137087822, -0.007489561103284359, 0.07772395759820938, -0.0035311593674123287, -0.03619598597288132, 0.023207813501358032, 0.041527971625328064, 0.050209540873765945, -0.009672770276665688, -0.00016982889792416245, -0.03364961966872215, 0.0063744583167135715, 0.03118870221078396, -0.012740371748805046, -0.0047552092000842094, -0.027463147416710854, -0.04809041693806648, 0.010971587151288986, 0.03852018341422081, -0.008702930063009262, 0.07177674025297165, 0.005942943040281534, -0.019892411306500435, 0.0007823878549970686, -0.05738721415400505, 0.025788357481360435, 0.0014771909918636084, -0.00926261767745018, -0.017371680587530136, 0.04942341148853302, -0.022045712918043137, -0.010091467760503292, 0.006079660728573799, -0.057489752769470215, -0.046415627002716064, 0.0003853193193208426, -0.003890042891725898, 0.00993766076862812, 0.04190394654870033, -0.007314391899853945, 0.01717514917254448, -0.051884330809116364, -0.0069426908157765865, 0.058412596583366394, -0.007886896841228008, 0.007395567838102579, 0.027975838631391525, 0.013184703886508942, -0.018593594431877136, -0.004413415212184191, -0.005848949775099754, 0.0002548768534325063, -0.007750179152935743, -0.009211348369717598, 0.018661953508853912, -0.03465791046619415, -0.01654282957315445, -0.020575998350977898, 0.003740508109331131, 0.012518205679953098, -0.05355912074446678, -0.040946923196315765, -0.04176722839474678, 0.04675741866230965, -0.01638047769665718, 0.017739109694957733, 0.010621248744428158, -0.0053319865837693214, 0.011202298104763031, -0.024301553145051003, 0.009356610476970673, 0.049320872873067856, -0.05923290178179741, -0.03363253176212311, -0.06726506352424622, -0.04764608293771744, 0.027941659092903137, 0.03705047070980072, -0.0399898998439312, 0.03356417268514633, -0.03961392492055893, 0.02045637182891369, -0.008638843894004822, -0.03481172025203705, 0.044604118913412094, -0.006421454716473818, 0.029291745275259018, 0.08702075481414795, -0.0003773085481952876, 0.026762470602989197, 0.005143999587744474, -0.05253373831510544, -0.0037554616574198008, 0.031598854809999466, 0.004396325442939997, 0.04012661427259445, 0.0032491793390363455, -0.03262423723936081, 0.025019321590662003, 0.03262423723936081, -0.014150272123515606, 0.004511680919677019, 0.02163556031882763, -0.021567201241850853, -0.006400092504918575, -0.015466178767383099, -0.03903287649154663, -0.022917287424206734, -0.002139416756108403, 0.023429978638887405, -0.010270909406244755, 0.023139454424381256, 0.017072610557079315, -0.019892411306500435, 0.000600809755269438, 0.014175905846059322, 0.051508355885744095, 0.022712212055921555, 0.030795639380812645, 0.01399646420031786, -0.030248768627643585, 0.021122869104146957, 0.0251731276512146, -0.026113061234354973, -0.02341288886964321, -0.051508355885744095, -0.03848600387573242, 0.061659637838602066, -0.04850056767463684, 0.02358378656208515, -0.03561493381857872, -0.017286231741309166, -0.0020454234909266233, 0.04159633070230484, -0.008963547646999359, 0.01370593998581171, -0.03756316006183624, -0.06008738651871681, -0.011022856459021568, 0.011390285566449165, 0.0008822557865642011, -0.019055016338825226, 0.02845435030758381, 0.020781075581908226, -0.0045843119733035564, -0.012791640125215054, 0.003749052993953228, -0.019430989399552345, 0.005361893214285374, -0.016824809834361076, 0.019841141998767853, -0.06446234881877899, -0.01895247772336006, -0.006545355077832937, 0.02255840413272381, 0.033905964344739914, -0.029018310829997063, -0.042074840515851974, -0.013987919315695763, -0.028385991230607033, 0.03947720676660538, 0.0297702569514513, -0.028300544247031212, -0.06254830211400986, 0.02883032336831093, 0.029206298291683197, -0.045697856694459915, -0.009553142823278904, -0.02695045806467533, 0.03578583151102066, 0.03687957301735878, 0.0388277992606163, -0.028779055923223495, 0.024985142052173615, 0.061112768948078156, 0.01861068420112133, -0.03154758736491203, 0.05017536133527756, 0.0759466290473938, -0.08291922509670258, 0.024831334128975868, 0.006434272043406963, 0.02062726765871048, -0.02571999840438366, 0.015731068328022957, -0.01620958000421524, -0.06412055343389511, -0.003338900161907077, -0.028385991230607033, -0.02445536106824875, 0.0034670729655772448, -0.05123491957783699, -0.02180645801126957, -0.00779717555269599, -0.0012486162595450878, 0.03893033787608147, 0.060600075870752335, -0.0059087639674544334, 0.012441301718354225 ]
730,234
mmengine.fileio.handlers.pickle_handler
dump_to_fileobj
null
def dump_to_fileobj(self, obj, file, **kwargs): kwargs.setdefault('protocol', 2) pickle.dump(obj, file, **kwargs)
(self, obj, file, **kwargs)
[ -0.017752263695001602, 0.009340629912912846, -0.0375652089715004, 0.006262275855988264, 0.012473879382014275, -0.08769720047712326, -0.039152950048446655, 0.0571923553943634, -0.06334061920642853, -0.029643410816788673, -0.01429808884859085, -0.028967777267098427, -0.055469490587711334, -0.03513292968273163, -0.0010894587030634284, 0.031400058418512344, -0.08215700834989548, -0.017650919035077095, -0.00976290088146925, 0.08958896994590759, -0.01005004532635212, 0.026586169376969337, 0.030639968812465668, 0.010894586332142353, 0.055469490587711334, 0.006811228115111589, -0.04080824926495552, 0.04239598661661148, -0.008411634713411331, 0.022329680621623993, -0.027126675471663475, -0.09202124923467636, 0.006220048759132624, 0.026113227009773254, 0.022177662700414658, -0.018360333517193794, 0.019559582695364952, 0.09627774357795715, -0.07857614755630493, -0.011629337444901466, 0.007837345823645592, 0.05283452197909355, -0.02251547947525978, 0.023208003491163254, 0.029694082215428352, 0.042328424751758575, -0.014070062898099422, 0.0723603218793869, 0.028410378843545914, -0.03989614546298981, -0.0325317420065403, -0.02574162743985653, -0.010987485758960247, -0.02194119058549404, -0.0038342189509421587, 0.022194553166627884, 0.027886763215065002, 0.025370029732584953, -0.0289171040058136, 0.030302152037620544, -0.030268371105194092, 0.0018189314287155867, 0.06019892543554306, -0.055064111948013306, -0.02128244750201702, -0.04570659250020981, -0.066482312977314, 0.01020206231623888, -0.07303595542907715, 0.04732811078429222, 0.03817328065633774, -0.04861181601881981, 0.027734745293855667, 0.02185673639178276, -0.025505157187581062, 0.01346199307590723, -0.012389425188302994, 0.004328275565057993, -0.03587612882256508, 0.04384860023856163, -0.013808255083858967, -0.07540067285299301, -0.026586169376969337, 0.002605410758405924, -0.052766960114240646, -0.050267115235328674, 0.05884765833616257, 0.006507193204015493, -0.011232403106987476, -0.01766780950129032, -0.029153576120734215, 0.0397610180079937, -0.03506536781787872, 0.007778228260576725, -0.06438785046339035, -0.08614324033260345, 0.008301843889057636, 0.03868000581860542, -0.04526742920279503, -0.027396930381655693, -0.04830778017640114, -0.11229024827480316, -0.102628692984581, -0.014483888633549213, -0.006405848078429699, -0.049963079392910004, 0.031839217990636826, 0.0007753947284072638, -0.08546760678291321, 0.017329992726445198, 0.011604001745581627, 0.03520049527287483, -0.029626518487930298, 0.027565836906433105, 0.058104462921619415, -0.014509224332869053, 0.03992992639541626, 0.020573033019900322, -0.003705426352098584, -0.03138316422700882, -0.015877382829785347, 0.01939067430794239, -0.03246418014168739, 0.07080636918544769, -0.015134185552597046, 0.010083826258778572, 0.04547011852264404, -0.015294648706912994, 0.033342503011226654, -0.018985295668244362, -0.012000936083495617, -0.020471688359975815, -0.029271811246871948, 0.007896464318037033, 0.01064122375100851, -0.03199123591184616, -0.031079130247235298, -0.020218325778841972, -0.010649669915437698, -0.04330809414386749, 0.05266561359167099, -0.05631403252482414, 0.01618986204266548, -0.020961523056030273, -0.023647164925932884, 0.03526805713772774, -0.03547074645757675, -0.03881513327360153, -0.0344066247344017, -0.005396620836108923, 0.04209195449948311, 0.03297090530395508, -0.07425209879875183, -0.003694869577884674, -0.00907882209867239, -0.003236705670133233, -0.019627146422863007, -0.006946354638785124, -0.010185171850025654, 0.0016120187938213348, -0.02472817711532116, 0.0339505709707737, 0.044794484972953796, 0.012127617374062538, 0.019846728071570396, 0.016637468710541725, 0.026788858696818352, -0.010852359235286713, 0.030352825298905373, 0.02842726930975914, -0.044625576585531235, -0.004058022517710924, -0.0433756560087204, 0.06043539568781853, 0.055064111948013306, 0.0520913265645504, 0.030167026445269585, -0.042463552206754684, -0.015243975445628166, 0.04857803136110306, 0.0019171094754710793, -0.018563024699687958, 0.052023760974407196, 0.05283452197909355, 0.030352825298905373, 0.000575343961827457, 0.026518605649471283, 0.05141569301486015, 0.03736251965165138, 0.004115028772503138, 0.09708850085735321, 0.04138254001736641, -0.008073817938566208, -0.02212698943912983, 0.020505469292402267, -0.046787604689598083, 0.009644664824008942, -0.05074005946516991, 0.01982983760535717, 0.061144810169935226, 0.010286516509950161, -0.008221612311899662, 0.00683234166353941, -0.0202689990401268, 0.0030973562970757484, 0.02040412463247776, 0.09810195118188858, -0.005139035638421774, -0.023191113024950027, 0.01088614109903574, 0.06722550839185715, -0.014661242254078388, -0.01925554871559143, -0.004454956855624914, 0.08127868175506592, -0.0055528609082102776, -0.023039095103740692, 0.03688957542181015, -0.013918045908212662, 0.029947444796562195, 0.0034689547028392553, 0.043037839233875275, -0.07708975672721863, 0.018123863264918327, -0.02234657108783722, 0.006291835103183985, 0.04293649643659592, -0.05702344700694084, -0.0008413745672442019, -0.01262589730322361, 0.012279635295271873, -0.00824272632598877, -0.06303658336400986, 0.048544250428676605, 0.020860178396105766, 0.09452109783887863, -0.03645041584968567, -0.03278510645031929, -0.017110412940382957, -0.012279635295271873, 0.05729370191693306, -0.046956513077020645, 0.020640596747398376, -0.051280565559864044, 0.06405003368854523, 0.012718796730041504, 0.06124615669250488, -0.05628025159239769, -0.033072248101234436, 0.008221612311899662, 0.0882377028465271, 0.027599619701504707, -0.050706278532743454, 0.01788739114999771, -0.023258674889802933, -0.048983413726091385, 0.0018548244843259454, -0.05401688069105148, -0.007668437901884317, 0.014272753149271011, -0.05077384039759636, -0.00809493102133274, 0.014711914584040642, -0.018883951008319855, 0.0238836370408535, 0.014095399528741837, -0.06303658336400986, -0.06918484717607498, 0.022903967648744583, 0.03597747161984444, -0.010539879091084003, -0.03547074645757675, -0.008445415645837784, 0.0693875402212143, -0.04128119349479675, -0.07391428202390671, -0.034930240362882614, 0.0027468714397400618, 0.023123549297451973, -0.0034689547028392553, 0.04503095895051956, 0.013681573793292046, 0.019272439181804657, -0.05820580571889877, 0.015362211503088474, -0.0008936305530369282, 0.01974538341164589, 0.051719728857278824, 0.004144588019698858, -0.04584171622991562, -0.0101176081225276, 0.04803752526640892, 0.0067647784017026424, 0.022667497396469116, -0.04077446833252907, 0.03337628394365311, -0.004999686498194933, -0.013588674366474152, 0.0695226639509201, -0.0013396540889516473, -0.055064111948013306, -0.001128518721088767, 0.04567280784249306, 0.00759242894127965, 0.003131137927994132, -0.00034916517324745655, 0.0434432215988636, -0.007879572920501232, -0.0476997084915638, 0.019762273877859116, 0.046348441392183304, -0.008842350915074348, -0.0025758519768714905, 0.03428838774561882, 0.014010945335030556, 0.04020018130540848, -0.023157330229878426, -0.0028777755796909332, 0.0060933674685657024, 0.02710978500545025, -0.040031272917985916, -0.02204253524541855, -0.03450797125697136, -0.019289329648017883, 0.11066873371601105, -0.04553768411278725, 0.02199186384677887, -0.014686577953398228, 0.025403810665011406, -0.0022507032845169306, -0.02856239676475525, 0.03574100136756897, 0.05192241817712784, 0.026957767084240913, 0.030302152037620544, 0.018799496814608574, -0.001022950978949666, 0.0017196978442370892, 0.029187357053160667, 0.014002500101923943, 0.00862699281424284, -0.012026272714138031, 0.029238030314445496, -0.042328424751758575, -0.020387234166264534, 0.007951359264552593, -0.06290145963430405, 0.02648482471704483, -0.020370343700051308, 0.056212689727544785, -0.0658404603600502, 0.029694082215428352, 0.013233967125415802, 0.020640596747398376, -0.038848914206027985, -0.00791335478425026, 0.016299651935696602, -0.00686612306162715, -0.0008894078782759607, -0.041754137724637985, -0.03405191749334335, 0.019373783841729164, 0.002656083321198821, -0.03124803863465786, 0.059557072818279266, 0.018495460972189903, 0.014821705408394337, 0.0080527039244771, 0.006756332702934742, -0.04881450533866882, -0.041010938584804535, -0.010303407907485962, -0.00799780897796154, -0.02705911360681057, 0.022279007360339165, 0.030082572251558304, 0.005177040118724108, 0.01741444692015648, 0.014619015157222748, -0.004127697087824345, 0.04655113443732262, -0.022447915747761726, 0.049253664910793304, 0.004404284525662661, 0.031214257702231407, 0.015488892793655396, 0.012144507840275764, 0.04134875535964966, 0.011840472929179668, 0.01780293695628643, 0.04128119349479675, 0.0476997084915638, -0.009754455648362637, -0.03341006487607956, 0.006139817647635937, 0.014711914584040642, 0.0019867841619998217, 0.032058797776699066, -0.024913977831602097, 0.012017826549708843, -0.011604001745581627, -0.022363461554050446, -0.08053548634052277, 0.032599303871393204, -0.006946354638785124, 0.03776790201663971, -0.02106286771595478, -0.011105721816420555, 0.04655113443732262, 0.006692992057651281, 0.0029643410816788673, 0.029373155906796455, 0.005747105460613966, -0.01832655258476734, 0.030048789456486702, 0.06313793361186981, -0.02180606499314308, -0.005240380764007568, -0.02207631804049015, -0.010725677944719791, 0.007127930875867605, 0.07283326983451843, 0.04090959578752518, -0.02357960119843483, 0.007816232740879059, -0.08479197323322296, -0.010894586332142353, -0.0412474125623703, 0.05901656672358513, 0.04655113443732262, 0.012972159311175346, -0.034491077065467834, -0.00472521036863327, -0.0008741005440242589, 0.06857677549123764, -0.030487950891256332, 0.005345948506146669, -0.04442288726568222, 0.017211757600307465, 0.07350890338420868, 0.05452360585331917, -0.026788858696818352, -0.022549260407686234, -0.0010102828964591026, -0.018765714019536972, -0.028748195618391037, 0.01687394082546234, -0.019492020830512047, 0.03705848380923271, 0.07161712646484375, 0.03482889384031296, -0.04482826963067055, 0.025488264858722687, -0.027599619701504707, -0.028883323073387146, -0.04016639664769173, 0.06847543269395828, -0.03124803863465786, 0.0108608053997159, -0.04090959578752518, -0.004644978791475296, -0.05236157774925232, 0.047091640532016754, -0.03094400465488434, -0.0426662415266037, 0.002466061385348439, -0.04834156110882759, 0.04553768411278725, 0.015387548133730888, -0.02428901568055153, -0.025859864428639412, 0.026163898408412933, -0.05384797230362892, 0.0005658428999595344, 0.028748195618391037, 0.09141318500041962, 0.001171801472082734, -0.029288703575730324, -0.016282761469483376, -0.06986048072576523, -0.014281198382377625, -0.058104462921619415, 0.015784483402967453, 0.007275725714862347, 0.002444947836920619, -0.004036908969283104, 0.01996496319770813, 0.007263057865202427, 0.04307162016630173, 0.015108848921954632, 0.03574100136756897, 0.03229527175426483, -0.09519673138856888, -0.03226149082183838, 0.034795112907886505, 0.04388238117098808, -0.05256427079439163, 0.044051289558410645, -0.057496391236782074, -0.04732811078429222, -0.01443321630358696, -0.004501406569033861, -0.04857803136110306, -0.06682012975215912, -0.030639968812465668, -0.010835468769073486, -0.05242914333939552, 0.0022591487504541874, -0.010691897012293339, 0.024660615250468254, -0.034795112907886505, -0.013394429348409176, 0.005227712448686361, 0.07175225764513016, -0.003475288627669215, 0.04560524597764015, -0.019019076600670815, -0.0040094610303640366, -0.009990926831960678, 0.007778228260576725, 0.04165279120206833, -0.002423834288492799, 0.0671917274594307, -0.006828119046986103, 0.024694396182894707, -0.05631403252482414, -0.07796808332204819, 0.013647791929543018, 0.05124678462743759, 0.031535182148218155, 0.039288073778152466, -0.006114481016993523, 0.01454300619661808, -0.013233967125415802, 0.0314338393509388, 0.04921988397836685, 0.0108608053997159, 0.017000623047351837, -0.0021662490908056498, -0.06844165176153183, -0.011451983824372292, -0.039152950048446655, -0.04722676798701286, -0.06614449620246887, -0.025538938120007515, -0.023731619119644165, 0.007702219299972057, 0.020167652517557144, 0.005519079510122538, -0.02102908492088318, 0.0579017736017704, -0.0311129130423069, 0.055773526430130005, 0.018191425129771233, -0.019897399470210075, -0.02010009065270424, -0.0017334215808659792, -0.0009443030576221645, 0.010987485758960247, -0.04560524597764015, -0.00392922991886735, 0.04749701917171478, -0.020505469292402267, 0.02815701626241207, 0.016536124050617218, 0.04324052855372429, 0.04844290763139725, -0.00253362488001585, -0.04354456439614296, -0.0026476378552615643, 0.013833591714501381, 0.04712542146444321, 0.0020015635527670383, -0.011316857300698757, 0.04773348942399025, 0.01414607185870409, 0.011029712855815887, 0.07114418596029282, -0.0043177190236747265, -0.026957767084240913, -0.04141632094979286, 0.038848914206027985, -0.013301529921591282, -0.030639968812465668, 0.015091958455741405, -0.014593678526580334, 0.038139499723911285, -0.053172338753938675, 0.013183294795453548, 0.023208003491163254, -0.005987799726426601, 0.013943381607532501, -0.024086326360702515, -0.04236220568418503, 0.00945042073726654, -0.005717546679079533, -0.025454483926296234, -0.0161054078489542, 0.03313981369137764, 0.001517007825896144, 0.014272753149271011, -0.0003607776015996933, -0.00804003607481718, -0.01051454246044159, -0.007837345823645592, 0.034930240362882614, -0.066482312977314, 0.016823269426822662, 0.010337188839912415, 0.018005626276135445, -0.04009883478283882, 0.029288703575730324, 0.035808563232421875, -0.024356579408049583, -0.02124866656959057, 0.00727150309830904, 0.009188612923026085, 0.03878134861588478, -0.07222519814968109, -0.0030699088238179684, -0.016603687778115273, -0.011848919093608856, 0.007647324353456497, 0.03628150746226311, -0.02574162743985653, 0.0376327745616436, -0.031619638204574585, 0.027346257120370865, 0.020556142553687096, -0.04793618246912956, -0.03922051191329956, -0.0024871749337762594, 0.02547137439250946, 0.004296605475246906, -0.0031733650248497725, -0.05242914333939552, -0.031974345445632935, 0.0072546121664345264, -0.055469490587711334, 0.010624333284795284, 0.01053143385797739, -0.0035808563698083162, 0.0036864241119474173, -0.07317108660936356, -0.050976529717445374, 0.005666874349117279, 0.021738501265645027, -0.044659361243247986, 0.016122298315167427, -0.04036908969283104, 0.0021936967968940735, -0.049996864050626755, -0.023731619119644165, -0.007545979227870703, 0.0376327745616436, 0.04830778017640114, 0.10107474029064178, 0.010835468769073486, 0.05655050650238991, 0.013453547842800617, -0.02700844034552574, -0.02886643260717392, 0.01562401931732893, -0.04242977127432823, -0.019711600616574287, 0.05232779681682587, -0.024829523637890816, -0.048679377883672714, -0.04327431321144104, -0.018495460972189903, -0.01780293695628643, 0.06421894580125809, 0.004923677537590265, 0.01854613423347473, -0.0047927736304700375, -0.023545820266008377, -0.03216014429926872, -0.046078190207481384, 0.005730214528739452, -0.024525487795472145, 0.002301375847309828, -0.021839845925569534, 0.011207067407667637, -0.037126049399375916, -0.03807193413376808, 0.03895025700330734, 0.0086818877607584, 0.07776539027690887, -0.012913040816783905, -0.027565836906433105, -0.0016109631396830082, 0.052023760974407196, -0.03844353184103966, -0.0005795666947960854, -0.03513292968273163, 0.0018220985075458884, 0.061279937624931335, 0.008825459517538548, 0.044929612427949905, -0.025049103423953056, -0.05918547511100769, 0.003692758036777377, 0.06209069862961769, 0.026721296831965446, -0.0026603059377521276, -0.02428901568055153, -0.02472817711532116, -0.04547011852264404, 0.01277791429311037, -0.02305598556995392, -0.04844290763139725, 0.040031272917985916, 0.023039095103740692, -0.013394429348409176, -0.025572719052433968, 0.04428775981068611, -0.017701592296361923, 0.027076004073023796, -0.04313918575644493, -0.031264930963516235, -0.04719298332929611, 0.028410378843545914, 0.0014885045820847154, -0.007410852704197168, 0.06533373892307281, -0.035808563232421875, -0.025218011811375618, 0.004653424024581909, -0.02829214371740818, 0.02851172350347042, 0.07425209879875183, -0.0001724712346913293, -0.007309507578611374, -0.0013829368399456143, -0.013850482180714607, 0.0187826044857502, -0.003891225438565016, -0.013157958164811134, 0.02119799330830574, 0.06296902149915695, 0.011207067407667637, 0.015497338026762009, 0.012313416227698326, 0.02229589782655239, -0.004450734239071608, -0.007917577400803566, 0.05391553416848183, 0.07803564518690109, -0.039152950048446655, 0.024694396182894707, 0.018563024699687958, 0.022143879905343056, 0.013799809850752354, 0.02856239676475525, 0.06459054350852966, -0.010624333284795284, 0.004250155761837959, -0.014120735228061676, 0.04864559695124626, -0.037430085241794586, -0.07715731859207153, -0.017971845343708992, 0.018883951008319855, 0.001885439152829349, 0.031535182148218155, 0.057091012597084045, -0.0289508868008852, -0.01837722584605217 ]
730,235
mmengine.fileio.handlers.pickle_handler
dump_to_path
null
def dump_to_path(self, obj, filepath, **kwargs): super().dump_to_path(obj, filepath, mode='wb', **kwargs)
(self, obj, filepath, **kwargs)
[ -0.015520463697612286, -0.011158227920532227, -0.023124901577830315, 0.01906583271920681, 0.028952443972229958, -0.07309692353010178, -0.03728953376412392, 0.07693703472614288, -0.041028592735528946, -0.029979843646287918, -0.008623415604233742, -0.010577158071100712, 0.006219133269041777, -0.010745584033429623, -0.020884834229946136, 0.04170229658484459, -0.013836203143000603, -0.020851148292422295, 0.0005215945420786738, 0.11358655244112015, -0.009255013428628445, -0.023680707439780235, 0.014568855985999107, 0.01202562265098095, 0.029693517833948135, 0.0343589223921299, -0.04267916828393936, 0.029592463746666908, -0.0071328445337712765, 0.007785495836287737, -0.01573941670358181, -0.08488674461841583, 0.04389183595776558, 0.053997401148080826, -0.0014179371064528823, -0.004960148129612207, -0.00017237357678823173, 0.08576256036758423, -0.0644398182630539, -0.02305753156542778, -0.0014010944869369268, 0.0725579559803009, -0.018914248794317245, 0.0003252728783991188, 0.01413094811141491, 0.0030400909017771482, -0.05170680582523346, 0.03366837278008461, 0.02846400812268257, -0.04230863228440285, 0.004162229597568512, 0.0010158198419958353, -0.03745796158909798, -0.009768713265657425, -0.03395469859242439, 0.021070102229714394, 0.04173598438501358, 0.012370895594358444, -0.031664103269577026, 0.011284547857940197, -0.017331043258309364, -0.009625550359487534, 0.09095008671283722, -0.06757254153490067, -0.010812954977154732, -0.001769526512362063, -0.08394356071949005, 0.006539142690598965, -0.0369189977645874, 0.049921490252017975, 0.016893135383725166, -0.09000689536333084, 0.05170680582523346, 0.009364490397274494, -0.025011273100972176, 0.0012274050386622548, -0.04958463832736015, -0.03749164566397667, 0.010122407227754593, 0.010366625152528286, -0.042443372309207916, -0.08609941601753235, -0.056355368345975876, -0.01331408228725195, -0.04183704033493996, -0.01363409124314785, 0.0562543123960495, -0.0036190554965287447, -0.01346566528081894, 0.021828019991517067, -0.007065474055707455, 0.038502201437950134, -0.03355047479271889, -0.02095220424234867, -0.00103371508885175, -0.06706726551055908, 0.005141206085681915, 0.027167126536369324, 0.016396278515458107, -0.0014295163564383984, -0.06171131506562233, -0.1065126582980156, -0.00252849655225873, -0.01273301150649786, -0.01011398620903492, -0.05251525342464447, 0.037727441638708115, -0.007170740514993668, -0.029811415821313858, -0.002644289517775178, -0.04715930297970772, 0.03213569521903992, -0.01234563160687685, -0.005469636991620064, 0.028699804097414017, -0.061340779066085815, 0.01945321261882782, -0.008476042188704014, 0.03408943861722946, -0.06673041731119156, 0.014804652892053127, -0.012261418625712395, -0.03193358704447746, 0.051976289600133896, 0.012446687556803226, 0.03947907313704491, 0.03129356727004051, 0.043352872133255005, 0.004191704094409943, -0.018139488995075226, -0.04877619445323944, 0.014695175923407078, -0.0399506650865078, -0.0093392264097929, 0.02533128298819065, -0.005798067897558212, 0.008850790560245514, -0.02864927612245083, -0.006859152112156153, 0.050224658101797104, 0.0369189977645874, -0.07707177847623825, 0.03702005371451378, -0.024034401401877403, 0.05308790132403374, 0.047428786754608154, 0.0062991357408463955, -0.0030969346407800913, -0.04045594483613968, -0.02452283725142479, 0.044464487582445145, 0.06457456201314926, -0.08481937646865845, -0.007040210068225861, 0.010535051114857197, -0.03516736626625061, -0.009625550359487534, 0.048506710678339005, -0.0063749272376298904, -0.00662335567176342, 0.005671748425811529, 0.03168094530701637, 0.012261418625712395, -0.0071454765275120735, 0.030047213658690453, 0.027419766411185265, 0.011612978763878345, 0.04904567450284958, 0.03275887295603752, -0.0019611110910773277, -0.034207336604595184, -0.03880536928772926, -0.031967271119356155, 0.056793276220560074, 0.010535051114857197, 0.05413214489817619, 0.03129356727004051, 0.0199753325432539, 0.006859152112156153, 0.05642273649573326, 0.04112964868545532, -0.00932238344103098, -0.005414898507297039, 0.07013262063264847, 0.04217389225959778, -0.02477547712624073, -0.0024758633226156235, 0.044430799782276154, 0.01013082917779684, 0.033904168754816055, 0.05642273649573326, 0.05861227586865425, 0.019352156668901443, -0.017061561346054077, 0.03346626088023186, -0.06285661458969116, 0.033819958567619324, -0.10698425024747849, -0.03513368219137192, 0.10671476274728775, 0.035066310316324234, -0.027621878311038017, 0.022265927866101265, -0.046654023230075836, 0.033297836780548096, 0.018796350806951523, 0.02322595752775669, -0.031377777457237244, -0.03830008953809738, 0.019385842606425285, 0.031579889357089996, -0.026678690686821938, -0.004909620154649019, -0.014215161092579365, 0.07309692353010178, -0.010021352209150791, -0.05702907219529152, 0.03489788621664047, -0.019267944619059563, 0.026560792699456215, 0.0011074014473706484, 0.06507983803749084, -0.10961169749498367, 0.01717946119606495, 0.005048571620136499, 0.0076886508613824844, 0.03614423796534538, -0.07565699517726898, 0.0080507667735219, -0.022131187841296196, -0.019604796543717384, -0.01864476688206196, -0.020969048142433167, 0.027925044298171997, -0.010257148183882236, 0.0751180350780487, -0.03151252120733261, -0.022619623690843582, -0.025651292875409126, -0.008943424560129642, 0.030720917508006096, -0.036986369639635086, 0.019048990681767464, -0.021878547966480255, 0.03378627076745033, -0.01595837064087391, 0.029440879821777344, -0.043386559933423996, -0.016808923333883286, -0.044767651706933975, 0.10839902609586716, 0.0021453271619975567, -0.04052331671118736, 0.03341573476791382, -0.009238170459866524, -0.057770147919654846, 0.020211130380630493, -0.05049413815140724, 0.01541940774768591, 0.005878070369362831, -0.033735744655132294, -0.02150801010429859, 0.008985531516373158, -0.029440879821777344, 0.005537007469683886, -0.013541457243263721, -0.0425107441842556, -0.07262532413005829, -0.010577158071100712, 0.029609305784106255, -0.06110498309135437, 0.052279457449913025, -0.04284759610891342, 0.03846851736307144, -0.042274948209524155, -0.032051485031843185, -0.059925999492406845, -0.011520343832671642, -0.03937801718711853, 0.015335194766521454, 0.02241751179099083, -0.017785795032978058, 0.05955546349287033, -0.025348125025629997, 0.02516285702586174, -0.020430084317922592, 0.011461394838988781, 0.024573365226387978, 0.006922312080860138, -0.0324220210313797, -0.002644289517775178, 0.06386717408895493, -0.012918280437588692, 0.013785675168037415, 0.0024548100773245096, 0.011478237807750702, -0.0045475042425096035, -0.04769826680421829, 0.017246831208467484, 0.006172815803438425, -0.0017505786381661892, 0.004084332380443811, 0.08380881696939468, 0.03109145537018776, -0.016438385471701622, 0.03184937313199043, 0.0009095008717849851, -0.014029893092811108, -0.02563444897532463, 0.049146730452775955, 0.02907034195959568, -0.023596493527293205, 0.028329268097877502, 0.07457906752824783, 0.04160124436020851, 0.029727203771471977, 0.00025553395971655846, -0.011486658826470375, 0.0038822211790829897, 0.038502201437950134, -0.06235133484005928, -0.022686993703246117, -0.03026616759598255, -0.02069956623017788, 0.09761975705623627, -0.03974855691194534, -0.0010763478931039572, 0.039142221212387085, -0.008105505257844925, -0.005865438375622034, -0.0001568467851029709, 0.02834611013531685, 0.08306774497032166, 0.026038672775030136, 0.047428786754608154, 0.026560792699456215, -0.013154077343642712, 0.0018916354747489095, 0.004505397751927376, 0.05871333181858063, 0.037727441638708115, 0.018931090831756592, 0.0034885252825915813, -0.010467681102454662, -0.028969286009669304, 0.011141384951770306, -0.026998700574040413, -0.014509906992316246, 0.006635987665504217, 0.04065805673599243, -0.05615325644612312, 0.022215399891138077, -0.00014421483501791954, 0.01945321261882782, -0.03328099474310875, -0.008968688547611237, 0.026914488524198532, 0.02258593775331974, -0.030687231570482254, -0.053660549223423004, -0.02064903825521469, -0.011208755895495415, -0.022703835740685463, -0.015427828766405582, 0.07653281092643738, 0.026645006611943245, 0.0019116360927000642, 0.0168510302901268, -0.003758006962016225, -0.03131040930747986, -0.017465785145759583, 0.007288638968020678, -0.0071370555087924, -0.020362714305520058, 0.037121109664440155, 0.005579113960266113, -0.024236513301730156, -0.02283857762813568, -0.0034779985435307026, 0.0199753325432539, 0.047731950879096985, -0.010804533027112484, 0.027537664398550987, 0.004880145657807589, 0.03560527414083481, 0.002943245694041252, 0.034241024404764175, 0.036481089890003204, 0.009398175403475761, -0.017221566289663315, 0.04672139510512352, 0.026897644624114037, 0.0039011691696941853, -0.02263646572828293, 0.01729735918343067, -0.020160602405667305, 0.02344491146504879, 0.06494509428739548, -0.0018116330029442906, 0.014838337898254395, -0.03131040930747986, -0.045542411506175995, -0.07781285047531128, 0.04752983897924423, -0.004614874720573425, 0.02139011211693287, -0.03547053411602974, 0.03129356727004051, 0.06801044940948486, -0.032792557030916214, 0.018661610782146454, 0.0012547742808237672, 0.015301509760320187, 0.013650934211909771, 0.033129408955574036, 0.014417272992432117, -0.02435441128909588, -0.031125139445066452, -0.024573365226387978, -0.00584017438814044, 0.006185447797179222, 0.08185507357120514, 0.03574001416563988, 0.001274774898774922, 0.012286682613193989, -0.05935335159301758, -0.02907034195959568, -0.022080659866333008, 0.05723118409514427, 0.0420728363096714, -0.006842309609055519, -0.03247254714369774, -0.05736592411994934, 0.010770848020911217, 0.06925680488348007, 0.01807211898267269, 0.014905707910656929, -0.046014007180929184, -0.0111666489392519, 0.08670574426651001, 0.06602302193641663, -0.04877619445323944, -0.02133958414196968, -0.010846639983355999, -0.011966673657298088, -0.020244814455509186, 0.0012031937949359417, 0.011621399782598019, 0.07707177847623825, 0.040725428611040115, 0.05012360215187073, -0.03452734649181366, 0.05177417770028114, -0.046788766980171204, -0.07363588362932205, -0.02635868266224861, 0.03671688586473465, -0.06187974289059639, 0.03253991901874542, -0.015107819810509682, -0.007389694452285767, -0.017002612352371216, 0.04298233613371849, -0.055715348571538925, -0.01945321261882782, 0.002701133256778121, -0.06767360121011734, 0.04139913246035576, 0.006833888124674559, -0.0356389582157135, 0.03483051434159279, -0.001920057344250381, -0.05342475324869156, -0.016438385471701622, 0.01558783371001482, 0.07080632448196411, -0.019806906580924988, 0.00961712934076786, -0.027891360223293304, -0.0225522518157959, -0.009027638472616673, -0.07895814627408981, -0.016808923333883286, 0.017718423157930374, 0.020430084317922592, 0.029525091871619225, 0.0002688238164409995, 0.019907962530851364, 0.05376160517334938, 0.022737521678209305, 0.03567264601588249, 0.028666120022535324, -0.08643626421689987, -0.01798790507018566, 0.022956475615501404, 0.030720917508006096, -0.04190440848469734, 0.029356665909290314, -0.04486870765686035, -0.031546205282211304, -0.024842847138643265, -0.034375764429569244, -0.04193809628486633, 0.01007188018411398, -0.044296059757471085, 0.06127341091632843, 0.0016547862906008959, -0.0007652860367670655, -0.025179699063301086, -0.0065012467093765736, -0.035403162240982056, 0.025146014988422394, -0.07154739648103714, 0.06369874626398087, -0.02546602301299572, 0.014762545935809612, -0.0037685337010771036, -0.0031200931407511234, -0.009667657315731049, -0.02095220424234867, 0.016194168478250504, 0.003711689729243517, 0.02507864311337471, -0.05844385176897049, 0.00544437300413847, 0.007124423515051603, -0.03577369824051857, 0.04160124436020851, 0.026375524699687958, 0.05467110499739647, 0.03466208651661873, -0.018543710932135582, 0.03432523459196091, 0.025954458862543106, 0.01945321261882782, 0.07491592317819595, 0.0002154011745005846, -0.009347647428512573, 0.021457482129335403, -0.0300640556961298, -0.003324309829622507, -0.048506710678339005, -0.0429486520588398, -0.05140364170074463, 0.01795422099530697, -0.02314174361526966, -0.008892897516489029, -0.012834067456424236, 0.027335552498698235, -0.01953742653131485, 0.06366506218910217, -0.020632194355130196, 0.027369238436222076, 0.05440162494778633, 0.0023537545930594206, 0.010526630096137524, -0.01696050725877285, -0.007844444364309311, 0.010678214021027088, -0.03211885318160057, 0.009145536459982395, 0.02069956623017788, 0.012909859418869019, -0.010880324989557266, 0.006210711784660816, 0.05376160517334938, 0.004783300682902336, 0.04230863228440285, -0.037255849689245224, -0.04358867183327675, -0.002726397244259715, 0.04833828657865524, -0.01269090548157692, -0.04325181990861893, 0.04503713548183441, 0.018476340919733047, 0.022855419665575027, 0.04402657970786095, -0.0014884654665365815, -0.023124901577830315, -0.011722455732524395, 0.0038232721854001284, -0.018088961020112038, -0.02460705116391182, 0.009869768284261227, -0.050830990076065063, 0.05413214489817619, 0.01151192281395197, -0.012589849531650543, -0.003551685018464923, -0.011116121895611286, 0.03621160611510277, -0.02430388331413269, -0.07329902797937393, 0.007027578540146351, -0.0033769430592656136, 0.0022716468665748835, -0.04237600415945053, 0.04840565472841263, -0.02674606256186962, -0.007979185320436954, -0.004136965610086918, -0.05379528924822807, 0.058208055794239044, -0.028009258210659027, 0.04715930297970772, -0.02482600510120392, 0.03594212606549263, 0.0010147670982405543, 0.03353363275527954, -0.04375709593296051, 0.02091852016746998, 0.05588377267122269, -0.001231615780852735, -0.03395469859242439, 0.016691025346517563, -0.008353933691978455, 0.011427709832787514, -0.06043127924203873, 0.06450718641281128, -0.02155853807926178, -0.04018646478652954, 0.010829797014594078, 0.02812715619802475, -0.04591295123100281, 0.015570991672575474, -0.0033264150843024254, 0.018088961020112038, 0.03988329693675041, -0.007848655804991722, -0.01637943647801876, -0.0036990579683333635, 0.035706330090761185, 0.02091852016746998, -0.00754548842087388, -0.03353363275527954, -0.04301602020859718, -0.002400071593001485, -0.03792955353856087, -0.0221143439412117, -0.010265570133924484, -0.006395980715751648, -0.027335552498698235, -0.03253991901874542, -0.03769375756382942, -0.017533155158162117, -0.004183282610028982, -0.05605220049619675, -0.013937258161604404, -0.04786669462919235, -0.015672046691179276, -0.034796830266714096, -0.05935335159301758, -0.017499469220638275, 0.029777731746435165, 0.07700440287590027, 0.0759938508272171, -0.0161015335470438, 0.035874754190444946, 0.029188239946961403, -0.02039639838039875, -0.023343855515122414, -0.03375258669257164, -0.004103280603885651, 0.0007194951758719981, 0.04968569427728653, -0.03346626088023186, -0.02976088970899582, -0.04608137533068657, -0.030603019520640373, -0.017448943108320236, 0.04362235590815544, -0.03147883340716362, -0.028396638110280037, -0.04517187550663948, -0.01453517097979784, -0.018004748970270157, -0.04611506313085556, 0.03702005371451378, -0.024573365226387978, -0.03641371801495552, -0.014888865873217583, 0.015562569722533226, -0.004783300682902336, -0.012766697444021702, 0.022232243791222572, 0.012749854475259781, 0.05985863134264946, 0.0022695413790643215, -0.01748262718319893, -0.008892897516489029, -0.03483051434159279, -0.03958012908697128, -0.028143998235464096, -0.02186170592904091, -0.002941140439361334, 0.062418706715106964, 0.013086706399917603, 0.07606121897697449, -0.059285979717969894, -0.022922789677977562, 0.018577396869659424, 0.0343589223921299, 0.02524706907570362, -0.016413122415542603, -0.0656861737370491, -0.013162498362362385, -0.019082674756646156, 0.025903930887579918, -0.016084691509604454, -0.009246592409908772, 0.013474086299538612, 0.028581906110048294, -0.051976289600133896, -0.027251340448856354, -0.019082674756646156, -0.023815447464585304, 0.0122361546382308, -0.013642513193190098, -0.06801044940948486, -0.01837528496980667, 0.000730021798517555, 0.012808803468942642, -0.018947934731841087, 0.024960745126008987, -0.017398415133357048, -0.04075911268591881, 0.032876770943403244, 0.013853045180439949, 0.0011747719254344702, 0.05800594389438629, -0.015672046691179276, 0.0026632375083863735, -0.004812775179743767, -0.0049727801233530045, 0.021878547966480255, 0.002068482805043459, -0.020581668242812157, 0.04614874720573425, 0.03762638568878174, 0.0009784502908587456, 0.042746540158987045, -0.010914009995758533, 0.022181715816259384, 0.06110498309135437, 0.000520278699696064, 0.059791259467601776, 0.07633069902658463, -0.05568166449666023, 0.022265927866101265, 0.04608137533068657, 0.014930971898138523, 0.007709703873842955, 0.05234682559967041, 0.0605323351919651, 0.007204425521194935, 0.035706330090761185, -0.017583683133125305, 0.04126438871026039, -0.027251340448856354, -0.051167845726013184, -0.06366506218910217, -0.038367461413145065, 0.010273991152644157, 0.0678420290350914, 0.10786006599664688, -0.03526842221617699, -0.02438809722661972 ]
730,236
mmengine.fileio.handlers.pickle_handler
dump_to_str
null
def dump_to_str(self, obj, **kwargs): kwargs.setdefault('protocol', 2) return pickle.dumps(obj, **kwargs)
(self, obj, **kwargs)
[ -0.02054470218718052, -0.006544617936015129, -0.02592545747756958, -0.03420743718743324, 0.017019379884004593, -0.08130169659852982, -0.014624184928834438, 0.015104910358786583, 0.006489798426628113, -0.056540101766586304, -0.014084422960877419, -0.013595262542366982, -0.06035217270255089, -0.009428972378373146, -0.003700323635712266, 0.024272436276078224, -0.095065638422966, -0.06446786224842072, 0.04162916913628578, 0.04139302298426628, -0.005085573066025972, 0.029771264642477036, 0.0463520884513855, 0.02899535559117794, 0.00047334624105133116, -0.005258465651422739, -0.022113386541604996, 0.01379767432808876, -0.043619539588689804, 0.044327978044748306, -0.01023018267005682, -0.09027524292469025, 0.023142307996749878, 0.006696425843983889, -0.010280785150825977, 0.006831366568803787, -0.0009904426988214254, 0.057248540222644806, -0.04567738622426987, -0.05792324244976044, -0.030698981136083603, 0.03822191804647446, -0.05080512538552284, -0.021995313465595245, 0.03214959055185318, 0.005815095268189907, -0.028489328920841217, 0.07900770753622055, 0.006717510521411896, -0.03245320916175842, -0.01679166778922081, 0.0047060525976121426, -0.023817012086510658, -0.02940017729997635, -0.029164031147956848, 0.007341610733419657, 0.029130296781659126, 0.01929650269448757, -0.002095795702189207, 0.03464599326252937, -0.023867614567279816, 0.03214959055185318, 0.04655449837446213, -0.005427141208201647, -0.04092073068022728, -0.07387996464967728, -0.06477147340774536, 0.016901306807994843, -0.016698896884918213, 0.013924180530011654, 0.04466532915830612, -0.05461719632148743, -0.0458797961473465, 0.02297363243997097, -0.03815444931387901, -0.0009314062190242112, -0.0024352557957172394, -0.02616160362958908, -0.04237134009599686, 0.027966434136033058, 0.026178471744060516, -0.05556178092956543, -0.020949523895978928, -0.015324189327657223, -0.033886950463056564, -0.07212574034929276, -0.006738595198839903, 0.015265152789652348, -0.00032364652724936604, -0.017660347744822502, 0.01272658258676529, 0.010103675536811352, -0.04483400657773018, 0.057450950145721436, -0.07435225695371628, -0.06328713148832321, 0.0058825658634305, 0.011621757410466671, 0.013898879289627075, -0.055460575968027115, -0.025739915668964386, -0.05954252928495407, -0.14371171593666077, -0.011706095188856125, -0.04787017032504082, -0.049793072044849396, 0.03940264880657196, -0.0072193206287920475, -0.04652076214551926, 0.0001048293270287104, 0.04709425941109657, 0.04210146144032478, -0.04068458452820778, -0.013241044245660305, 0.06763896346092224, -0.0209832601249218, 0.018216976895928383, 0.005262682680040598, -0.0012798269744962454, -0.03785083070397377, -0.018014566972851753, 0.03145802021026611, -0.03656889498233795, 0.03879541531205177, 0.0034473100677132607, 0.06831366568803787, 0.022956766188144684, -0.01914469338953495, 0.04480027034878731, -0.05222200229763985, 0.037952035665512085, -0.0037256248760968447, -0.055899132043123245, 0.04665570333600044, 0.05006295442581177, -0.01230489369481802, -0.016960343345999718, -0.01750854030251503, 0.036029133945703506, -0.004845209885388613, 0.039031561464071274, -0.04442918300628662, 0.025217020884156227, 0.019279634580016136, 0.023951951414346695, 0.021792903542518616, 0.008134386502206326, -0.03616407513618469, -0.01911095902323723, -0.02373267337679863, 0.0906800702214241, 0.018048301339149475, -0.06406303495168686, -0.01698564551770687, -0.0389978252351284, 0.024238700047135353, -0.02852306328713894, -0.023833878338336945, 0.020477231591939926, -0.020612172782421112, -0.015003705397248268, -0.00603437377139926, 0.029720662161707878, -0.027511009946465492, 0.03761468455195427, 0.015349490568041801, 0.05947506055235863, -0.029686925932765007, 0.021759167313575745, 0.028371255844831467, -0.044530391693115234, 0.005325935781002045, -0.069224514067173, 0.04986054450273514, 0.06935945898294449, 0.061128079891204834, 0.007206670008599758, 0.023698939010500908, -0.06153290346264839, 0.01566997356712818, 0.005684371571987867, -0.03139055147767067, 0.007767517119646072, 0.04031349718570709, 0.053301528096199036, -0.024592919275164604, 0.027629083022475243, 0.030344761908054352, 0.037479743361473083, 0.0064096772111952305, 0.06369195133447647, 0.023479660972952843, -0.008484388701617718, -0.010635004378855228, 0.020949523895978928, -0.022636281326413155, 0.009175959043204784, -0.06747028976678848, -0.016420580446720123, 0.04878101870417595, 0.01319887489080429, 0.01698564551770687, -0.007573539856821299, -0.02540256269276142, 0.0013009115355089307, -0.024457979947328568, 0.050838861614465714, 0.002595497528091073, 0.018250713124871254, -0.00961451604962349, 0.058969032019376755, 0.0030867657624185085, -0.03569178283214569, -0.005583166144788265, 0.06868475675582886, -0.012102482840418816, -0.019920602440834045, 0.015341056510806084, 0.03361707180738449, 0.012836222536861897, 0.007856071926653385, 0.011436213739216328, -0.03764842078089714, -0.0023235080298036337, -0.06085820123553276, 0.008260893635451794, 0.010989222675561905, -0.05751841887831688, 0.006173531524837017, -0.03273995593190193, 0.04331592470407486, -0.021489286795258522, -0.035792987793684006, 0.06416424363851547, 0.02552063576877117, 0.10498376935720444, -0.0458797961473465, -0.07259803265333176, -0.010778378695249557, -0.02057843841612339, 0.052829235792160034, -0.04250628128647804, 0.016901306807994843, -0.04807258024811745, 0.07772576808929443, 0.01911095902323723, 0.04372074827551842, -0.003942795097827911, -0.04284363240003586, -0.0024668823461979628, 0.07691612839698792, 0.015560335479676723, -0.04685811325907707, -0.01894228346645832, -0.02616160362958908, -0.06814499199390411, 0.021961579099297523, -0.010635004378855228, -0.02245073765516281, 0.013367550447583199, -0.06386062502861023, -0.018014566972851753, -0.038829151540994644, 0.0006826095632277429, 0.011554286815226078, -0.010263917967677116, -0.06794258207082748, -0.03420743718743324, 0.0019028729293495417, 0.0472966730594635, -0.008922945708036423, -0.04061711207032204, -0.03656889498233795, 0.07104621082544327, -0.05080512538552284, -0.06645823270082474, -0.035995397716760635, 0.003367189085111022, 0.029653191566467285, -0.027224261313676834, 0.020645909011363983, 0.011638624593615532, 0.03572551906108856, -0.08528244495391846, 0.031812239438295364, -0.026178471744060516, 0.029855601489543915, 0.01911095902323723, 0.0375809520483017, -0.006633172743022442, 0.015366357751190662, 0.028489328920841217, -0.006405460648238659, -0.00011906134022865444, -0.02800017036497593, 0.018200110644102097, 0.038390595465898514, -0.002584955422207713, 0.04894969239830971, 0.010238615795969963, -0.030665244907140732, -0.0009182284702546895, -0.0076157087460160255, 0.018891680985689163, 0.018992885947227478, -0.01192537322640419, 0.015442262403666973, -0.010955488309264183, -0.028135109692811966, 0.016960343345999718, 0.028371255844831467, -0.017778420820832253, 0.035995397716760635, 0.04139302298426628, 0.005195212084800005, 0.04699305444955826, -0.011368743143975735, 0.002762064803391695, -0.016327809542417526, 0.043180983513593674, -0.02732546627521515, -0.032082121819257736, -0.016808535903692245, -0.006312688812613487, 0.0726654976606369, -0.056978657841682434, -0.022045915946364403, -0.0001722337183309719, 0.05734974518418312, 0.007750649470835924, -0.04685811325907707, -0.006122928578406572, 0.07253056019544601, 0.012768751941621304, 0.07205826789140701, 0.005819312296807766, 0.009066320024430752, -0.01547599770128727, -0.03569178283214569, -0.015982024371623993, 0.06763896346092224, -0.006494014989584684, 0.017879625782370567, 0.0024394725915044546, -0.01623503863811493, 0.024710992351174355, -0.04614967852830887, 0.03542190045118332, 0.005182561464607716, 0.046284615993499756, -0.06895463168621063, -0.00843378622084856, 0.0009925512131303549, 0.015366357751190662, -0.03338092565536499, 0.012448268011212349, 0.017997698858380318, 0.02557123824954033, 0.0037298419047147036, -0.033920686691999435, -0.014700088649988174, -0.014312135055661201, 0.005646419711410999, -0.013030199334025383, 0.017061548307538033, 0.02919776737689972, 0.013822975568473339, -0.0004071937291882932, 0.05384128913283348, -0.026853173971176147, -0.07205826789140701, 0.02206278406083584, -0.04159543290734291, -0.028050772845745087, -0.04820752143859863, 0.05579792708158493, 0.004130446817725897, -0.009150657802820206, -0.012085615657269955, -0.05967747047543526, 0.04372074827551842, -0.023901348933577538, 0.04237134009599686, 0.022113386541604996, 0.06537871062755585, 0.03764842078089714, 0.006645823363214731, 0.047566551715135574, 0.020848318934440613, 0.0035211057402193546, 0.012136218138039112, 0.033431526273489, 0.015484430827200413, -0.00602172315120697, -0.012448268011212349, -0.0025976060424000025, 0.01292056031525135, 0.03083392232656479, -0.028843548148870468, 0.03825565427541733, -0.007864505052566528, -0.013047066517174244, -0.06153290346264839, 0.017879625782370567, -0.03673757240176201, 0.05755215510725975, -0.0011079886462539434, -0.026617027819156647, 0.018419388681650162, 0.005313285160809755, -0.016580823808908463, 0.008184988982975483, -0.02213025465607643, -0.04894969239830971, 0.042540017515420914, 0.018672402948141098, -0.029568852856755257, 0.03191344439983368, -0.0073669119738042355, 0.001960855210199952, -0.01911095902323723, 0.07597154378890991, 0.0274435393512249, -0.009791625663638115, 0.005321718752384186, -0.006890403106808662, -0.023530263453722, -0.013131405226886272, 0.08150410652160645, 0.06983175128698349, 0.012313327752053738, -0.04655449837446213, -0.015610937960445881, -0.03346526250243187, 0.036838777363300323, -0.002390978392213583, 0.03704118728637695, -0.017963964492082596, 0.004744004458189011, 0.061836518347263336, 0.05707986280322075, -0.009884397499263287, -0.031727902591228485, 0.028303785249590874, 0.02189410850405693, 0.0004029768460895866, -0.020831450819969177, -0.018115771934390068, 0.020038675516843796, 0.06841487437486649, 0.04223639890551567, -0.031491756439208984, -0.0058825658634305, -0.03501708060503006, -0.028017036616802216, -0.05090633034706116, 0.08373063057661057, -0.012659112922847271, -0.03257128223776817, -0.03474719822406769, -0.021118199452757835, -0.04965813085436821, 0.026431486010551453, 0.0167157631367445, -0.019853131845593452, 0.006578353233635426, -0.03358333557844162, 0.05667504295706749, -0.007843420840799809, -0.007982578128576279, 0.0027051367796957493, 0.028371255844831467, -0.02572304755449295, 0.015341056510806084, 0.02847246080636978, 0.07786071300506592, 0.0008539208211004734, -0.03690624609589577, -0.00487472815439105, -0.08825113624334335, -0.05444852262735367, -0.058935295790433884, 0.04638582468032837, 0.00989283062517643, -0.019043488427996635, 0.009681986644864082, 0.055224429816007614, 0.032807428389787674, 0.03815444931387901, 0.0770510658621788, 0.008872343227267265, 0.10741269588470459, -0.09317646920681, -0.029248369857668877, 0.041426755487918854, 0.03940264880657196, -0.09283911436796188, -0.005465093534439802, -0.06655944138765335, -0.0010563316754996777, -0.026111001148819923, 0.012794053182005882, -0.006278953514993191, -0.04260748624801636, -0.004052434116601944, -0.049320779740810394, -0.0017573900986462831, 0.04382195323705673, -0.023344719782471657, 0.034882139414548874, -0.047060526907444, -0.019094090908765793, 0.033279720693826675, 0.06214013695716858, -0.01547599770128727, 0.021624227985739708, 0.023361587896943092, 0.00613136263564229, -0.024272436276078224, 0.0031985132955014706, 0.015577202662825584, 0.057687096297740936, 0.010862716473639011, -0.03370140865445137, 0.014320568181574345, -0.0514460951089859, -0.052829235792160034, 0.02022421918809414, -0.007265706546604633, 0.07448719441890717, 0.02320977859199047, 0.02656642533838749, 0.021067596971988678, -0.002711462089791894, 0.0546509325504303, 0.06429918110370636, -0.019127827137708664, 0.01978566125035286, 0.013544660061597824, -0.061161816120147705, -0.01372176967561245, -0.05276176333427429, -0.028843548148870468, -0.0712486207485199, -0.02557123824954033, -0.002418388146907091, 0.0592726469039917, 0.08136916905641556, -0.01116633228957653, -0.01611696556210518, 0.023310983553528786, -0.05799071118235588, 0.03223393112421036, 0.000011588219422264956, -0.04071831703186035, -0.030682113021612167, -0.0194989126175642, 0.03311104327440262, 0.010365122929215431, -0.01862179860472679, 0.00012723157124128193, 0.029248369857668877, -0.010601269081234932, 0.028135109692811966, 0.00654040090739727, 0.06524376571178436, 0.02788209728896618, -0.02639774978160858, -0.023462792858481407, -0.006983174942433834, 0.006966307293623686, -0.016041060909628868, 0.015982024371623993, 0.004773522727191448, 0.021826637908816338, 0.03115440532565117, 0.011680793948471546, 0.04284363240003586, 0.018655534833669662, 0.010061507113277912, -0.004773522727191448, 0.033127911388874054, -0.008539208211004734, -0.02955198660492897, 0.051749709993600845, 0.0019513672450557351, 0.0385255329310894, -0.04436171427369118, 0.018925415351986885, -0.015416961163282394, -0.010601269081234932, 0.004507858771830797, -0.010457894764840603, -0.01563623920083046, 0.07145103812217712, -0.04011108726263046, -0.013932614587247372, 0.0016551305307075381, 0.05100753903388977, -0.02093265764415264, 0.03226766362786293, 0.02017361670732498, 0.021168801933526993, -0.0209832601249218, 0.04007735103368759, 0.04749908298254013, -0.07057391852140427, 0.026751969009637833, 0.010702474042773247, 0.02660016156733036, -0.046487029641866684, 0.030091747641563416, 0.007312092464417219, -0.03717612847685814, -0.02639774978160858, -0.0209832601249218, -0.005659070331603289, 0.0039027344901114702, -0.07165344804525375, -0.024424243718385696, 0.03166043385863304, 0.03940264880657196, -0.02788209728896618, 0.01719648949801922, -0.031120670959353447, 0.03680504113435745, -0.030496569350361824, 0.03596166521310806, 0.017660347744822502, -0.06740281730890274, -0.005313285160809755, 0.011773564852774143, 0.04415930435061455, -0.007025343831628561, -0.03616407513618469, -0.04044843837618828, -0.02177603542804718, 0.033920686691999435, -0.07772576808929443, 0.010356688871979713, 0.006793414708226919, 0.013502491638064384, -0.0468243807554245, -0.04618341103196144, -0.07138356566429138, 0.01270128134638071, 0.028253182768821716, -0.046487029641866684, 0.009125356562435627, -0.04662196710705757, -0.0072867912240326405, -0.04011108726263046, 0.024862801656126976, 0.006915704347193241, 0.016614558175206184, 0.08447279781103134, 0.093648761510849, 0.02385074645280838, 0.035084549337625504, -0.0030635728035122156, -0.04469906538724899, -0.01116633228957653, -0.01599889248609543, -0.03879541531205177, -0.0035042380914092064, 0.045205093920230865, -0.045441240072250366, -0.03015921823680401, -0.006586786825209856, -0.07151850312948227, -0.013612130656838417, 0.049759335815906525, -0.003000319469720125, -0.00024273490998893976, -0.027730287984013557, -0.009403671137988567, -0.03110380284488201, -0.0031057416927069426, 0.0012977487640455365, -0.04179784283041954, 0.018048301339149475, -0.02297363243997097, -0.027629083022475243, -0.04200025275349617, -0.04132555052638054, 0.010828981176018715, -0.009918131865561008, 0.06237627938389778, 0.01226272527128458, -0.03223393112421036, 0.004807258024811745, 0.007750649470835924, -0.030968861654400826, 0.009808492846786976, 0.004208459053188562, -0.014784426428377628, 0.05650636553764343, -0.022231459617614746, 0.05954252928495407, -0.034241169691085815, 0.0005634823464788496, 0.0035906843841075897, 0.05201959237456322, 0.010381990112364292, 0.03358333557844162, -0.02049409970641136, 0.009538612328469753, -0.038188181817531586, 0.022197725251317024, -0.009901264682412148, -0.027780890464782715, 0.048038844019174576, 0.03139055147767067, -0.02943391352891922, -0.04065084829926491, 0.02393508516252041, -0.011908506043255329, 0.03761468455195427, -0.06308472156524658, 0.010896451771259308, -0.05164850503206253, 0.0038036375772207975, 0.019127827137708664, -0.008319930173456669, 0.06929198652505875, 0.027544744312763214, -0.0016076904721558094, 0.00859824474900961, 0.004406653344631195, 0.009816926904022694, 0.034241169691085815, 0.007573539856821299, -0.026515822857618332, -0.0034662859980016947, 0.010289219208061695, 0.02891101874411106, -0.006485581398010254, -0.031238744035363197, 0.003727733390405774, 0.05029910057783127, 0.016285641118884087, 0.04240507632493973, 0.028658004477620125, 0.0331953801214695, 0.015939855948090553, -0.025014609098434448, 0.05664130672812462, 0.07232815027236938, -0.01655552163720131, -0.022804956883192062, 0.031221875920891762, 0.03936891257762909, -0.013190440833568573, -0.004992801230400801, 0.06740281730890274, -0.03187971189618111, -0.0327736921608448, 0.03203151747584343, 0.010989222675561905, -0.023277249187231064, -0.08791378140449524, -0.024002555757761, 0.016420580446720123, 0.009032584726810455, -0.005140392575412989, 0.05967747047543526, -0.021118199452757835, -0.04071831703186035 ]
730,237
mmengine.fileio.handlers.pickle_handler
load_from_fileobj
null
def load_from_fileobj(self, file, **kwargs): return pickle.load(file, **kwargs)
(self, file, **kwargs)
[ 0.01803433708846569, -0.03957917541265488, -0.03889084234833717, 0.011994211003184319, -0.015995148569345474, -0.03723884001374245, -0.015100316144526005, 0.06866126507520676, 0.0058809490874409676, -0.001169091439805925, -0.012037231586873531, 0.043743591755628586, -0.06108959764242172, 0.006569282617419958, -0.015478899702429771, -0.003273886162787676, -0.09024052321910858, 0.0016251123743131757, -0.048355426639318466, 0.004568813368678093, -0.01052289828658104, 0.028049590066075325, 0.03309163078665733, 0.0713113471865654, 0.0604700967669487, 0.0019649770110845566, -0.01084985677152872, 0.018344087526202202, -0.011977002955973148, 0.0070296055637300014, 0.029099298641085625, 0.000678116048220545, -0.013955960981547832, 0.06077984720468521, 0.0032244122121483088, -0.02495208941400051, 0.015117524191737175, 0.04880284518003464, -0.1031123548746109, -0.03002854809165001, -0.006926355883479118, 0.009843168780207634, 0.02338613010942936, 0.017492273822426796, -0.010170127265155315, -0.00842348113656044, -0.012398607097566128, -0.0012443779269233346, 0.008728928864002228, -0.0025963077787309885, 0.04085259139537811, -0.005102272145450115, -0.010488481260836124, -0.009404356591403484, -0.022852672263979912, 0.050351593643426895, -0.045980677008628845, 0.09209901839494705, 0.007838397286832333, 0.052795179188251495, -0.013947357423603535, -0.012054440565407276, 0.05231334641575813, -0.057372596114873886, -0.01978958770632744, -0.02820446528494358, -0.00411494355648756, 0.01023896038532257, 0.005829324014484882, 0.010161522775888443, 0.03527709096670151, 0.00710274139419198, 0.036894675344228745, -0.018395712599158287, 0.018361296504735947, 0.010462668724358082, -0.0517282597720623, -0.014799170196056366, -0.0443975105881691, 0.048493094742298126, -0.03243771567940712, -0.05998826399445534, -0.03954475745558739, 0.005265751387923956, -0.06442801654338837, -0.09409518539905548, 0.07902068644762039, -0.007920137606561184, -0.022181546315550804, 0.011426336131989956, -0.017638545483350754, 0.05317376181483269, -0.0716555193066597, 0.03125033900141716, -0.038959674537181854, -0.10366301983594894, 0.04680667817592621, 0.056994013488292694, -0.05152176320552826, -0.010694981552660465, -0.0443975105881691, -0.11102819442749023, -0.04890609532594681, -0.02803238108754158, -0.011951190419495106, -0.00949039775878191, 0.03834017366170883, 0.0033857403323054314, -0.016855565831065178, 0.002145664533600211, -0.022388046607375145, -0.003252375638112426, -0.006044428329914808, 0.09698618948459625, -0.0234205462038517, -0.021975046023726463, -0.019411005079746246, 0.021992255002260208, -0.01076381467282772, -0.01650279574096203, -0.05782001465559006, 0.026862215250730515, -0.038959674537181854, 0.0797090157866478, 0.01653721183538437, 0.016520002856850624, 0.045946259051561356, -0.07144901901483536, 0.04467284306883812, -0.03020063228905201, 0.04990417882800102, -0.04326175898313522, -0.030011339113116264, -0.009060189127922058, -0.0002450843749102205, -0.026655714958906174, 0.03837459161877632, 0.012269544415175915, 0.010462668724358082, 0.04980092868208885, 0.1062786877155304, -0.01072939857840538, 0.04322734475135803, -0.034519925713539124, -0.02823888137936592, -0.0050678551197052, 0.014059211127460003, -0.02558879740536213, -0.09092885255813599, 0.03988892585039139, 0.0559270940721035, -0.03551800921559334, -0.03617192432284355, 0.012037231586873531, -0.008776252157986164, -0.0684891790151596, 0.010342210531234741, -0.012312564998865128, -0.01929054595530033, -0.01286323182284832, -0.0009233348537236452, 0.07261918485164642, 0.027344048023223877, -0.011237043887376785, -0.006298251450061798, 0.014291523955762386, 0.026277130469679832, -0.024143297225236893, 0.00003942456896766089, -0.011882356368005276, -0.04711642861366272, -0.013035315088927746, -0.057062845677137375, 0.07220618426799774, -0.011512377299368382, -0.01908404566347599, -0.012183502316474915, -0.022388046607375145, 0.020684421062469482, 0.0475294254720211, -0.03336696699261665, -0.01996167190372944, 0.03193867206573486, 0.01891196332871914, 0.05365559458732605, 0.021063005551695824, 0.024126088246703148, 0.06697484850883484, 0.0422980934381485, 0.005923970136791468, 0.06274159997701645, -0.011417731642723083, 0.005674449261277914, -0.00705972034484148, -0.009516210295259953, -0.05651218071579933, -0.017182525247335434, -0.03328092396259308, -0.057200513780117035, 0.09189251810312271, 0.005093667656183243, -0.009232273325324059, 0.0496288426220417, -0.02806679718196392, -0.05372443050146103, 0.021734129637479782, 0.036688175052404404, 0.0074641164392232895, 0.024315379559993744, 0.034726426005363464, 0.0171222947537899, -0.06067659705877304, -0.02768821455538273, 0.02572646364569664, 0.10201102495193481, 0.018688254058361053, -0.03298838064074516, 0.007834095507860184, -0.013517148792743683, 0.018189212307333946, 0.09980835765600204, 0.09092885255813599, -0.07874535024166107, 0.020684421062469482, -0.014678712002933025, 0.0014347451506182551, 0.004366615787148476, -0.006156282499432564, -0.011994211003184319, 0.020684421062469482, -0.01294927392154932, -0.04873400926589966, -0.008806366473436356, -0.01282881572842598, 0.059127844870090485, 0.054791346192359924, -0.0040375059470534325, 0.009567835368216038, -0.0024607921950519085, 0.0033190581016242504, 0.08927685022354126, -0.015745628625154495, 0.02212992124259472, -0.023076379671692848, 0.031646132469177246, -0.014773357659578323, 0.03978567570447922, 0.000930863490793854, -0.05011067911982536, -0.010144314728677273, 0.12892486155033112, 0.05561734735965729, -0.022009463980793953, 0.05651218071579933, -0.017492273822426796, -0.0022263287100940943, 0.05782001465559006, -0.08019085228443146, 0.012553482316434383, 0.0035427664406597614, -0.02335171401500702, -0.054584845900535583, 0.07578551769256592, 0.006814501713961363, -0.001091653946787119, -0.012269544415175915, -0.05062692612409592, -0.021923420950770378, 0.039407093077898026, -0.01946263015270233, 0.011908168904483318, 0.010462668724358082, 0.009120418690145016, 0.05110876262187958, -0.026191089302301407, -0.06972818076610565, 0.017948295921087265, -0.052623096853494644, 0.015780044719576836, 0.04277992621064186, -0.02240525558590889, 0.013405295088887215, 0.03336696699261665, -0.041300009936094284, 0.02037467062473297, -0.0058723450638353825, 0.007851303555071354, -0.020116545259952545, 0.011538189835846424, -0.012433023191988468, 0.005399115849286318, 0.002776995301246643, -0.048080094158649445, -0.03209354728460312, -0.01880871318280697, 0.007042511831969023, -0.06404943019151688, -0.007240407634526491, 0.06845476478338242, -0.01786225475370884, -0.03257538378238678, -0.07248151302337646, 0.06490984559059143, -0.013009502552449703, 0.0016982477391138673, -0.04006100818514824, 0.00032184968586079776, -0.020650004968047142, -0.07509718090295792, 0.03331534191966057, 0.04866517707705498, 0.02596738003194332, -0.003577183000743389, -0.0031534277368336916, -0.014265711419284344, -0.003751417389139533, 0.011486564762890339, 0.00028823965112678707, 0.03651609271764755, -0.03278188407421112, -0.046049509197473526, -0.022938713431358337, -0.05782001465559006, -0.010006648488342762, 0.08294418454170227, -0.041403260082006454, 0.015891900286078453, -0.025175796821713448, 0.0277914647012949, 0.008711720816791058, 0.007868512533605099, 0.03491571545600891, 0.045980677008628845, -0.009378544054925442, -0.00989479385316372, 0.005979896988719702, 0.002974891336634755, 0.02830771543085575, 0.02681059017777443, 0.0017090030014514923, 0.04057725891470909, -0.041919510811567307, -0.016511399298906326, -0.00781258475035429, -0.030183423310518265, 0.013078336603939533, 0.0093527315184474, -0.0015132582047954202, 0.026432005688548088, -0.01762133650481701, -0.05830184742808342, -0.0166060458868742, 0.015410065650939941, 0.0019520707428455353, -0.06556376814842224, 0.0002592005766928196, 0.01562516950070858, 0.0684891790151596, 0.01076381467282772, -0.050489261746406555, -0.023110797628760338, -0.031009424477815628, -0.05609918013215065, -0.022181546315550804, 0.0520724281668663, 0.026965463533997536, 0.0004581719695124775, 0.007300637196749449, -0.04663459211587906, -0.016933003440499306, -0.02491767145693302, -0.007365168537944555, -0.04102467745542526, 0.00752434553578496, 0.04460401087999344, -0.006861824542284012, -0.01999608799815178, -0.0027640892658382654, -0.006814501713961363, 0.03799600899219513, 0.02104579657316208, -0.008358949795365334, 0.04673784226179123, 0.003635261207818985, -0.002282255794852972, 0.06391176581382751, -0.013018107041716576, 0.02915092371404171, 0.032386090606451035, -0.01884312927722931, 0.01128866896033287, 0.00454300083220005, -0.04037075862288475, 0.0019015212310478091, 0.013792482204735279, -0.0038073447067290545, 0.04260784387588501, 0.054688096046447754, 0.022181546315550804, -0.005274355411529541, -0.004925886634737253, -0.018481753766536713, -0.07922718673944473, 0.01873987913131714, -0.052554260939359665, 0.028669089078903198, 0.003428761148825288, -0.020908130332827568, 0.03341859206557274, -0.01705346256494522, 0.03396925702691078, 0.016227461397647858, -0.004564511589705944, -0.0601259283721447, 0.0034201571252197027, 0.08700535446405411, -0.029563922435045242, -0.043502677232027054, -0.02810121513903141, -0.0398545078933239, -0.011624231934547424, 0.05578942969441414, -0.0054808552376925945, -0.0601259283721447, -0.00008234458073275164, -0.014394774101674557, 0.02768821455538273, -0.052864011377096176, 0.05310492962598801, 0.023867962881922722, -0.02789471484720707, -0.007309241220355034, 0.004347256384789944, -0.029030464589595795, 0.06948726624250412, -0.05090226233005524, -0.05544526129961014, -0.025020921602845192, 0.01494544092565775, 0.04780476167798042, -0.006547772325575352, -0.0471852608025074, 0.03569009155035019, 0.007434001658111811, -0.04339942708611488, -0.03429621458053589, -0.03188704699277878, -0.011787710711359978, 0.023713089525699615, -0.0037363602314144373, -0.020787671208381653, -0.013766669668257236, 0.03816809132695198, -0.0255199633538723, -0.003482537344098091, -0.006922053638845682, 0.004719386342912912, -0.025038130581378937, 0.052519846707582474, 0.007722241338342428, -0.025158589705824852, -0.06026359647512436, 0.04986976087093353, -0.08418318629264832, 0.02006492204964161, 0.024091672152280807, -0.04267667606472969, 0.04450076073408127, -0.017277169972658157, -0.021372754126787186, -0.006091751158237457, -0.02660408988595009, -0.04023309051990509, -0.03751417621970177, -0.010901481844484806, 0.07337635010480881, 0.021303921937942505, 0.0008787006954662502, 0.008565450087189674, -0.04429426044225693, 0.02600179798901081, -0.0583706796169281, 0.00893112737685442, 0.021441588178277016, -0.01401619054377079, -0.0033685320522636175, 0.043812427669763565, 0.038856424391269684, 0.06370526552200317, -0.022560130804777145, 0.0028329226188361645, 0.10386952012777328, -0.04484492540359497, 0.016296295449137688, 0.021613672375679016, 0.03501896560192108, -0.02054675482213497, 0.003538464428856969, 0.01050569023936987, -0.012020023539662361, 0.0065434700809419155, 0.007984668016433716, -0.010454065166413784, 0.015194961801171303, 0.00006513624248327687, 0.014859398826956749, -0.045980677008628845, 0.016803940758109093, 0.014842190779745579, -0.017561107873916626, -0.02806679718196392, -0.025640422478318214, 0.0015240133507177234, 0.03644725680351257, 0.014566857367753983, 0.05193476006388664, -0.05334584414958954, 0.05296726152300835, -0.041816260665655136, 0.04732292890548706, 0.02274942211806774, 0.0037643236573785543, 0.05764792859554291, -0.026724547147750854, -0.01525519136339426, -0.07282568514347076, -0.0513840951025486, -0.031095465645194054, 0.045911844819784164, 0.05809534713625908, 0.022215962409973145, -0.07523485273122787, -0.03372834250330925, -0.02145879715681076, -0.0063197617419064045, 0.045946259051561356, -0.007257616147398949, 0.0006834936211816967, 0.023867962881922722, -0.028049590066075325, 0.015117524191737175, -0.02474558912217617, 0.015349837020039558, -0.00851382501423359, -0.008268605917692184, -0.0510399267077446, -0.012295356951653957, 0.048114512115716934, 0.010058272629976273, -0.0006582189234904945, 0.07530368119478226, -0.06408384442329407, 0.006423011887818575, 0.015461690723896027, 0.011133793741464615, -0.061502598226070404, -0.023919587954878807, -0.04980092868208885, -0.03162892535328865, -0.04112792760133743, 0.02670734003186226, 0.04436309263110161, 0.0019327113404870033, 0.03572450950741768, -0.032041922211647034, 0.04766709357500076, 0.001198130426928401, 0.033745549619197845, -0.03751417621970177, -0.0028415266424417496, 0.06033242866396904, 0.025433922186493874, -0.008810668252408504, 0.015599357895553112, 0.024470254778862, 0.03864992409944534, 0.03410692512989044, 0.017208337783813477, -0.011082169599831104, -0.03300559148192406, 0.015676794573664665, 0.007442605681717396, -0.00003305546852061525, -0.022043880075216293, -0.018791504204273224, 0.02111463062465191, -0.024590713903307915, 0.012020023539662361, 0.04642809182405472, 0.013448315672576427, 0.04728851094841957, 0.03176658973097801, -0.018154796212911606, 0.0035320112947374582, 0.022525712847709656, -0.010127106681466103, 0.00610035564750433, -0.01504869107156992, -0.002046716632321477, -0.018430128693580627, -0.011951190419495106, -0.006715553812682629, -0.028497006744146347, 0.01128866896033287, -0.04725409299135208, 0.04009542614221573, -0.014842190779745579, 0.016193045303225517, -0.004637646954506636, 0.010583126917481422, 0.004033204168081284, -0.04560209438204765, 0.004753803368657827, -0.02331729605793953, 0.03854667395353317, 0.004383823834359646, 0.011443544179201126, -0.013947357423603535, -0.036929093301296234, -0.026397589594125748, 0.007089835125952959, 0.0036804331466555595, 0.03734209015965462, 0.08253118395805359, 0.015263794921338558, 0.003721302840858698, 0.0076060849241912365, 0.007042511831969023, 0.016124211251735687, -0.04092142730951309, 0.012002815492451191, -0.008014783263206482, 0.056925177574157715, -0.010755211114883423, 0.01167585700750351, -0.013155774213373661, 0.04202276095747948, 0.002992099616676569, -0.028927214443683624, 0.019669128581881523, 0.00017544438014738262, -0.06855801492929459, -0.02142437919974327, -0.029030464589595795, -0.031611714512109756, -0.01074660662561655, 0.03586217388510704, -0.01615002378821373, 0.0580265112221241, -0.0008276134612970054, 0.006917751394212246, -0.0298908818513155, -0.048217762261629105, -0.010066877119243145, 0.033607881516218185, 0.005721772089600563, 0.0863170176744461, 0.011555398814380169, 0.02369588054716587, 0.025330672040581703, -0.04288317635655403, 0.0025102661456912756, -0.04422542825341225, 0.001559505588375032, 0.03527709096670151, 0.021751338616013527, -0.03534592315554619, 0.006233720108866692, 0.012544877827167511, 0.041403260082006454, -0.04429426044225693, 0.05062692612409592, -0.007614689413458109, 0.008853689767420292, 0.022078296169638634, -0.024590713903307915, -0.03875317424535751, -0.07330751419067383, 0.0328679233789444, 0.010170127265155315, 0.01508310716599226, 0.006582188885658979, -0.03193867206573486, 0.033711131662130356, -0.041300009936094284, 0.06776643544435501, -0.024057256057858467, 0.048252176493406296, 0.025003714486956596, 0.013861315324902534, -0.0235926304012537, 0.08824435621500015, -0.0464969277381897, -0.023867962881922722, -0.039062924683094025, 0.0027942038141191006, 0.039166174829006195, -0.03464038297533989, 0.03823692351579666, 0.002486604731529951, -0.041265591979026794, -0.050489261746406555, 0.02768821455538273, 0.015926316380500793, -0.017595523968338966, -0.016020961105823517, -0.03551800921559334, 0.010781023651361465, -0.006164886988699436, -0.01918729580938816, 0.0023725994396954775, 0.029340215027332306, 0.016683483496308327, -0.003478235099464655, 0.046049509197473526, 0.04047400876879692, -0.03723884001374245, -0.0004043959197588265, -0.03513942286372185, -0.043674759566783905, -0.03737650811672211, 0.01576283760368824, -0.01894637942314148, 0.03613750636577606, 0.05678751319646835, -0.009378544054925442, -0.041403260082006454, -0.04463842511177063, -0.05809534713625908, 0.0758543536067009, 0.07110484689474106, -0.025915754958987236, -0.023093588650226593, -0.02087371237576008, -0.013190190307796001, -0.06515076756477356, 0.021940629929304123, -0.001189526286907494, 0.03183542191982269, 0.031508464366197586, -0.017294378951191902, -0.0049387929029762745, -0.02453908883035183, 0.049938593059778214, 0.01326762791723013, -0.0328507162630558, 0.05568617954850197, 0.018533378839492798, -0.01590050384402275, 0.033298131078481674, -0.011486564762890339, 0.04790801182389259, 0.021200671792030334, 0.07227501273155212, 0.02121787890791893, -0.03125033900141716, -0.0001925182732520625, -0.05062692612409592, 0.04326175898313522, -0.059265512973070145, -0.07743752002716064, -0.03892526030540466, -0.014222690835595131, -0.022043880075216293, 0.023816337808966637, 0.011194023303687572, -0.004564511589705944, 0.00005313746441970579 ]